@smithery/api 0.61.0 → 0.62.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 (86) hide show
  1. package/CHANGELOG.md +19 -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/servers.d.mts +2 -3
  52. package/resources/servers/servers.d.mts.map +1 -1
  53. package/resources/servers/servers.d.ts +2 -3
  54. package/resources/servers/servers.d.ts.map +1 -1
  55. package/resources/servers/servers.js.map +1 -1
  56. package/resources/servers/servers.mjs.map +1 -1
  57. package/resources/subscriptions.d.mts +76 -0
  58. package/resources/subscriptions.d.mts.map +1 -0
  59. package/resources/subscriptions.d.ts +76 -0
  60. package/resources/subscriptions.d.ts.map +1 -0
  61. package/resources/subscriptions.js +40 -0
  62. package/resources/subscriptions.js.map +1 -0
  63. package/resources/subscriptions.mjs +36 -0
  64. package/resources/subscriptions.mjs.map +1 -0
  65. package/src/client.ts +21 -0
  66. package/src/resources/connections/connections.ts +68 -13
  67. package/src/resources/connections/index.ts +20 -1
  68. package/src/resources/connections/subscriptions.ts +112 -0
  69. package/src/resources/connections/triggers.ts +245 -0
  70. package/src/resources/index.ts +9 -0
  71. package/src/resources/servers/servers.ts +4 -6
  72. package/src/resources/subscriptions.ts +122 -0
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
  78. package/resources/connections/mcp.d.mts +0 -44
  79. package/resources/connections/mcp.d.mts.map +0 -1
  80. package/resources/connections/mcp.d.ts +0 -44
  81. package/resources/connections/mcp.d.ts.map +0 -1
  82. package/resources/connections/mcp.js +0 -28
  83. package/resources/connections/mcp.js.map +0 -1
  84. package/resources/connections/mcp.mjs +0 -24
  85. package/resources/connections/mcp.mjs.map +0 -1
  86. package/src/resources/connections/mcp.ts +0 -63
@@ -0,0 +1,245 @@
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 Triggers extends APIResource {
9
+ /**
10
+ * Create a trigger instance for a connection using the trigger's declared params.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const triggerInstance =
15
+ * await client.connections.triggers.create('triggerName', {
16
+ * namespace: 'namespace',
17
+ * connectionId: 'connectionId',
18
+ * });
19
+ * ```
20
+ */
21
+ create(
22
+ triggerName: string,
23
+ params: TriggerCreateParams,
24
+ options?: RequestOptions,
25
+ ): APIPromise<TriggerInstance> {
26
+ const { namespace, connectionId } = params;
27
+ return this._client.post(path`/${namespace}/${connectionId}/.triggers/${triggerName}`, {
28
+ defaultBaseURL: 'https://smithery.run',
29
+ ...options,
30
+ });
31
+ }
32
+
33
+ /**
34
+ * List trigger types exposed by a connection.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const triggerDefinitionList =
39
+ * await client.connections.triggers.list('connectionId', {
40
+ * namespace: 'namespace',
41
+ * });
42
+ * ```
43
+ */
44
+ list(
45
+ connectionID: string,
46
+ params: TriggerListParams,
47
+ options?: RequestOptions,
48
+ ): APIPromise<TriggerDefinitionList> {
49
+ const { namespace } = params;
50
+ return this._client.get(path`/${namespace}/${connectionID}/.triggers`, {
51
+ defaultBaseURL: 'https://smithery.run',
52
+ ...options,
53
+ });
54
+ }
55
+
56
+ /**
57
+ * Delete a trigger instance and deregister its upstream webhook.
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const trigger = await client.connections.triggers.delete(
62
+ * 'triggerId',
63
+ * {
64
+ * namespace: 'namespace',
65
+ * connectionId: 'connectionId',
66
+ * triggerName: 'triggerName',
67
+ * },
68
+ * );
69
+ * ```
70
+ */
71
+ delete(
72
+ triggerID: string,
73
+ params: TriggerDeleteParams,
74
+ options?: RequestOptions,
75
+ ): APIPromise<TriggerDeleteResponse> {
76
+ const { namespace, connectionId, triggerName } = params;
77
+ return this._client.delete(path`/${namespace}/${connectionId}/.triggers/${triggerName}/${triggerID}`, {
78
+ defaultBaseURL: 'https://smithery.run',
79
+ ...options,
80
+ });
81
+ }
82
+
83
+ /**
84
+ * Get the schema for a single trigger type.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const triggerDefinition =
89
+ * await client.connections.triggers.get('triggerName', {
90
+ * namespace: 'namespace',
91
+ * connectionId: 'connectionId',
92
+ * });
93
+ * ```
94
+ */
95
+ get(
96
+ triggerName: string,
97
+ params: TriggerGetParams,
98
+ options?: RequestOptions,
99
+ ): APIPromise<TriggerDefinition> {
100
+ const { namespace, connectionId } = params;
101
+ return this._client.get(path`/${namespace}/${connectionId}/.triggers/${triggerName}`, {
102
+ defaultBaseURL: 'https://smithery.run',
103
+ ...options,
104
+ });
105
+ }
106
+
107
+ /**
108
+ * Get a specific trigger instance for a connection.
109
+ *
110
+ * @example
111
+ * ```ts
112
+ * const triggerInstance =
113
+ * await client.connections.triggers.getInstance(
114
+ * 'triggerId',
115
+ * {
116
+ * namespace: 'namespace',
117
+ * connectionId: 'connectionId',
118
+ * triggerName: 'triggerName',
119
+ * },
120
+ * );
121
+ * ```
122
+ */
123
+ getInstance(
124
+ triggerID: string,
125
+ params: TriggerGetInstanceParams,
126
+ options?: RequestOptions,
127
+ ): APIPromise<TriggerInstance> {
128
+ const { namespace, connectionId, triggerName } = params;
129
+ return this._client.get(path`/${namespace}/${connectionId}/.triggers/${triggerName}/${triggerID}`, {
130
+ defaultBaseURL: 'https://smithery.run',
131
+ ...options,
132
+ });
133
+ }
134
+ }
135
+
136
+ export interface CreateTriggerRequest {
137
+ /**
138
+ * Trigger-specific parameters defined by the trigger inputSchema
139
+ */
140
+ params: { [key: string]: unknown };
141
+ }
142
+
143
+ export interface TriggerDefinition {
144
+ /**
145
+ * Supported delivery modes
146
+ */
147
+ delivery: Array<string>;
148
+
149
+ /**
150
+ * Trigger name exposed by the MCP server
151
+ */
152
+ name: string;
153
+
154
+ description?: string;
155
+
156
+ /**
157
+ * JSON Schema for the params required to create the trigger
158
+ */
159
+ inputSchema?: { [key: string]: unknown };
160
+
161
+ /**
162
+ * JSON Schema for the event payload delivered by the trigger
163
+ */
164
+ payloadSchema?: { [key: string]: unknown };
165
+ }
166
+
167
+ export type TriggerDefinitionList = Array<TriggerDefinition>;
168
+
169
+ export interface TriggerInstance {
170
+ /**
171
+ * Stable trigger instance id generated by Smithery
172
+ */
173
+ id: string;
174
+
175
+ /**
176
+ * Connection id the trigger belongs to
177
+ */
178
+ connection_id: string;
179
+
180
+ /**
181
+ * ISO 8601 timestamp
182
+ */
183
+ created_at: string;
184
+
185
+ /**
186
+ * Trigger name
187
+ */
188
+ name: string;
189
+
190
+ /**
191
+ * Trigger instance parameters
192
+ */
193
+ params: { [key: string]: unknown };
194
+ }
195
+
196
+ export interface TriggerDeleteResponse {
197
+ success: true;
198
+ }
199
+
200
+ export interface TriggerCreateParams {
201
+ namespace: string;
202
+
203
+ connectionId: string;
204
+ }
205
+
206
+ export interface TriggerListParams {
207
+ namespace: string;
208
+ }
209
+
210
+ export interface TriggerDeleteParams {
211
+ namespace: string;
212
+
213
+ connectionId: string;
214
+
215
+ triggerName: string;
216
+ }
217
+
218
+ export interface TriggerGetParams {
219
+ namespace: string;
220
+
221
+ connectionId: string;
222
+ }
223
+
224
+ export interface TriggerGetInstanceParams {
225
+ namespace: string;
226
+
227
+ connectionId: string;
228
+
229
+ triggerName: string;
230
+ }
231
+
232
+ export declare namespace Triggers {
233
+ export {
234
+ type CreateTriggerRequest as CreateTriggerRequest,
235
+ type TriggerDefinition as TriggerDefinition,
236
+ type TriggerDefinitionList as TriggerDefinitionList,
237
+ type TriggerInstance as TriggerInstance,
238
+ type TriggerDeleteResponse as TriggerDeleteResponse,
239
+ type TriggerCreateParams as TriggerCreateParams,
240
+ type TriggerListParams as TriggerListParams,
241
+ type TriggerDeleteParams as TriggerDeleteParams,
242
+ type TriggerGetParams as TriggerGetParams,
243
+ type TriggerGetInstanceParams as TriggerGetInstanceParams,
244
+ };
245
+ }
@@ -57,6 +57,15 @@ export {
57
57
  type SkillUploadParams,
58
58
  type SkillListResponsesSkillsPage,
59
59
  } from './skills';
60
+ export {
61
+ Subscriptions,
62
+ type CreateSubscriptionRequest,
63
+ type CreateSubscriptionResponse,
64
+ type Subscription,
65
+ type SubscriptionList,
66
+ type SubscriptionDeleteResponse,
67
+ type SubscriptionDeleteParams,
68
+ } from './subscriptions';
60
69
  export {
61
70
  Tokens,
62
71
  type Constraint,
@@ -341,15 +341,13 @@ export interface ServerGetResponse {
341
341
 
342
342
  export namespace ServerGetResponse {
343
343
  export interface StdioConnection {
344
- configSchema: { [key: string]: unknown };
345
-
346
- type: 'stdio';
344
+ bundleUrl: string;
347
345
 
348
- bundleUrl?: string;
346
+ configSchema: { [key: string]: unknown };
349
347
 
350
- runtime?: string;
348
+ runtime: 'node' | 'binary' | 'python' | 'bun';
351
349
 
352
- stdioFunction?: string;
350
+ type: 'stdio';
353
351
  }
354
352
 
355
353
  export interface HTTPConnection {
@@ -0,0 +1,122 @@
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 Subscriptions extends APIResource {
9
+ /**
10
+ * Create a namespace-scoped subscription that receives events from every
11
+ * connection in the namespace.
12
+ */
13
+ create(namespace: string, options?: RequestOptions): APIPromise<CreateSubscriptionResponse> {
14
+ return this._client.post(path`/${namespace}/.subscriptions`, {
15
+ defaultBaseURL: 'https://smithery.run',
16
+ ...options,
17
+ });
18
+ }
19
+
20
+ /**
21
+ * List namespace-scoped trigger subscriptions for all connections in the
22
+ * namespace.
23
+ */
24
+ list(namespace: string, options?: RequestOptions): APIPromise<SubscriptionList> {
25
+ return this._client.get(path`/${namespace}/.subscriptions`, {
26
+ defaultBaseURL: 'https://smithery.run',
27
+ ...options,
28
+ });
29
+ }
30
+
31
+ /**
32
+ * Delete a namespace-scoped trigger subscription.
33
+ */
34
+ delete(
35
+ subscriptionID: string,
36
+ params: SubscriptionDeleteParams,
37
+ options?: RequestOptions,
38
+ ): APIPromise<SubscriptionDeleteResponse> {
39
+ const { namespace } = params;
40
+ return this._client.delete(path`/${namespace}/.subscriptions/${subscriptionID}`, {
41
+ defaultBaseURL: 'https://smithery.run',
42
+ ...options,
43
+ });
44
+ }
45
+ }
46
+
47
+ export interface CreateSubscriptionRequest {
48
+ /**
49
+ * HTTPS webhook destination
50
+ */
51
+ url: string;
52
+ }
53
+
54
+ export interface CreateSubscriptionResponse {
55
+ /**
56
+ * Stable subscription id generated by Smithery
57
+ */
58
+ id: string;
59
+
60
+ /**
61
+ * Connection scope. Null for namespace-wide subscriptions.
62
+ */
63
+ connection_id: string | null;
64
+
65
+ /**
66
+ * ISO 8601 timestamp
67
+ */
68
+ created_at: string;
69
+
70
+ /**
71
+ * Webhook signing secret. Returned only once at creation time.
72
+ */
73
+ secret: string;
74
+
75
+ /**
76
+ * Destination URL for webhook deliveries
77
+ */
78
+ url: string;
79
+ }
80
+
81
+ export interface Subscription {
82
+ /**
83
+ * Stable subscription id generated by Smithery
84
+ */
85
+ id: string;
86
+
87
+ /**
88
+ * Connection scope. Null for namespace-wide subscriptions.
89
+ */
90
+ connection_id: string | null;
91
+
92
+ /**
93
+ * ISO 8601 timestamp
94
+ */
95
+ created_at: string;
96
+
97
+ /**
98
+ * Destination URL for webhook deliveries
99
+ */
100
+ url: string;
101
+ }
102
+
103
+ export type SubscriptionList = Array<Subscription>;
104
+
105
+ export interface SubscriptionDeleteResponse {
106
+ success: true;
107
+ }
108
+
109
+ export interface SubscriptionDeleteParams {
110
+ namespace: string;
111
+ }
112
+
113
+ export declare namespace Subscriptions {
114
+ export {
115
+ type CreateSubscriptionRequest as CreateSubscriptionRequest,
116
+ type CreateSubscriptionResponse as CreateSubscriptionResponse,
117
+ type Subscription as Subscription,
118
+ type SubscriptionList as SubscriptionList,
119
+ type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
120
+ type SubscriptionDeleteParams as SubscriptionDeleteParams,
121
+ };
122
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.61.0'; // x-release-please-version
1
+ export const VERSION = '0.62.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.61.0";
1
+ export declare const VERSION = "0.62.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.61.0";
1
+ export declare const VERSION = "0.62.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.61.0'; // x-release-please-version
4
+ exports.VERSION = '0.62.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.61.0'; // x-release-please-version
1
+ export const VERSION = '0.62.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,44 +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
- export declare 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: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
20
- }
21
- export interface JsonRpcRequest {
22
- jsonrpc: '2.0';
23
- /**
24
- * MCP method to call
25
- */
26
- method: string;
27
- id?: string | number;
28
- /**
29
- * Method parameters
30
- */
31
- params?: unknown;
32
- }
33
- export interface JsonRpcResponse {
34
- id: string | number | null;
35
- jsonrpc: '2.0';
36
- result?: unknown;
37
- }
38
- export interface McpCallParams {
39
- namespace: string;
40
- }
41
- export declare namespace Mcp {
42
- export { type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
43
- }
44
- //# sourceMappingURL=mcp.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.d.mts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -1,44 +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
- export declare 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: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse>;
20
- }
21
- export interface JsonRpcRequest {
22
- jsonrpc: '2.0';
23
- /**
24
- * MCP method to call
25
- */
26
- method: string;
27
- id?: string | number;
28
- /**
29
- * Method parameters
30
- */
31
- params?: unknown;
32
- }
33
- export interface JsonRpcResponse {
34
- id: string | number | null;
35
- jsonrpc: '2.0';
36
- result?: unknown;
37
- }
38
- export interface McpCallParams {
39
- namespace: string;
40
- }
41
- export declare namespace Mcp {
42
- export { type JsonRpcRequest as JsonRpcRequest, type JsonRpcResponse as JsonRpcResponse, type McpCallParams as McpCallParams, };
43
- }
44
- //# sourceMappingURL=mcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/resources/connections/mcp.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAIzG;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAE3B,OAAO,EAAE,KAAK,CAAC;IAEf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
@@ -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,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
- }