@roarkanalytics/sdk 7.8.0 → 8.0.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 (205) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +1952 -0
  12. package/resources/agent-connection.d.mts.map +1 -0
  13. package/resources/agent-connection.d.ts +1952 -0
  14. package/resources/agent-connection.d.ts.map +1 -0
  15. package/resources/agent-connection.js +173 -0
  16. package/resources/agent-connection.js.map +1 -0
  17. package/resources/agent-connection.mjs +169 -0
  18. package/resources/agent-connection.mjs.map +1 -0
  19. package/resources/agent-conversation.d.mts +110 -0
  20. package/resources/agent-conversation.d.mts.map +1 -0
  21. package/resources/agent-conversation.d.ts +110 -0
  22. package/resources/agent-conversation.d.ts.map +1 -0
  23. package/resources/agent-conversation.js +41 -0
  24. package/resources/agent-conversation.js.map +1 -0
  25. package/resources/agent-conversation.mjs +37 -0
  26. package/resources/agent-conversation.mjs.map +1 -0
  27. package/resources/agent-draft.d.mts +101 -35
  28. package/resources/agent-draft.d.mts.map +1 -1
  29. package/resources/agent-draft.d.ts +101 -35
  30. package/resources/agent-draft.d.ts.map +1 -1
  31. package/resources/agent-endpoint.d.mts +4 -4
  32. package/resources/agent-endpoint.d.mts.map +1 -1
  33. package/resources/agent-endpoint.d.ts +4 -4
  34. package/resources/agent-endpoint.d.ts.map +1 -1
  35. package/resources/agent-setup.d.mts +1057 -0
  36. package/resources/agent-setup.d.mts.map +1 -0
  37. package/resources/agent-setup.d.ts +1057 -0
  38. package/resources/agent-setup.d.ts.map +1 -0
  39. package/resources/agent-setup.js +113 -0
  40. package/resources/agent-setup.js.map +1 -0
  41. package/resources/agent-setup.mjs +109 -0
  42. package/resources/agent-setup.mjs.map +1 -0
  43. package/resources/agent-version.d.mts +57 -18
  44. package/resources/agent-version.d.mts.map +1 -1
  45. package/resources/agent-version.d.ts +57 -18
  46. package/resources/agent-version.d.ts.map +1 -1
  47. package/resources/agent.d.mts +263 -4
  48. package/resources/agent.d.mts.map +1 -1
  49. package/resources/agent.d.ts +263 -4
  50. package/resources/agent.d.ts.map +1 -1
  51. package/resources/calendar-connection.d.mts +834 -56
  52. package/resources/calendar-connection.d.mts.map +1 -1
  53. package/resources/calendar-connection.d.ts +834 -56
  54. package/resources/calendar-connection.d.ts.map +1 -1
  55. package/resources/calendar-connection.js +127 -8
  56. package/resources/calendar-connection.js.map +1 -1
  57. package/resources/calendar-connection.mjs +127 -8
  58. package/resources/calendar-connection.mjs.map +1 -1
  59. package/resources/call.d.mts +2 -2
  60. package/resources/call.d.mts.map +1 -1
  61. package/resources/call.d.ts +2 -2
  62. package/resources/call.d.ts.map +1 -1
  63. package/resources/config.d.mts +78 -36
  64. package/resources/config.d.mts.map +1 -1
  65. package/resources/config.d.ts +78 -36
  66. package/resources/config.d.ts.map +1 -1
  67. package/resources/conversation.d.mts +156 -0
  68. package/resources/conversation.d.mts.map +1 -0
  69. package/resources/conversation.d.ts +156 -0
  70. package/resources/conversation.d.ts.map +1 -0
  71. package/resources/conversation.js +40 -0
  72. package/resources/conversation.js.map +1 -0
  73. package/resources/conversation.mjs +36 -0
  74. package/resources/conversation.mjs.map +1 -0
  75. package/resources/customer-flow-edge-case.d.mts +637 -40
  76. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  77. package/resources/customer-flow-edge-case.d.ts +637 -40
  78. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  79. package/resources/customer-flow.d.mts +2583 -156
  80. package/resources/customer-flow.d.mts.map +1 -1
  81. package/resources/customer-flow.d.ts +2583 -156
  82. package/resources/customer-flow.d.ts.map +1 -1
  83. package/resources/{customer-profile.d.mts → customer.d.mts} +287 -98
  84. package/resources/customer.d.mts.map +1 -0
  85. package/resources/{customer-profile.d.ts → customer.d.ts} +287 -98
  86. package/resources/customer.d.ts.map +1 -0
  87. package/resources/customer.js +180 -0
  88. package/resources/customer.js.map +1 -0
  89. package/resources/customer.mjs +176 -0
  90. package/resources/customer.mjs.map +1 -0
  91. package/resources/index.d.mts +7 -2
  92. package/resources/index.d.mts.map +1 -1
  93. package/resources/index.d.ts +7 -2
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +13 -3
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +6 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/mcp-server.d.mts +588 -0
  100. package/resources/mcp-server.d.mts.map +1 -0
  101. package/resources/mcp-server.d.ts +588 -0
  102. package/resources/mcp-server.d.ts.map +1 -0
  103. package/resources/mcp-server.js +109 -0
  104. package/resources/mcp-server.js.map +1 -0
  105. package/resources/mcp-server.mjs +105 -0
  106. package/resources/mcp-server.mjs.map +1 -0
  107. package/resources/metric-policy.d.mts +5 -4
  108. package/resources/metric-policy.d.mts.map +1 -1
  109. package/resources/metric-policy.d.ts +5 -4
  110. package/resources/metric-policy.d.ts.map +1 -1
  111. package/resources/metric-policy.js +1 -1
  112. package/resources/metric-policy.mjs +1 -1
  113. package/resources/metric-variant.d.mts +4 -1
  114. package/resources/metric-variant.d.mts.map +1 -1
  115. package/resources/metric-variant.d.ts +4 -1
  116. package/resources/metric-variant.d.ts.map +1 -1
  117. package/resources/metric.d.mts +7 -2
  118. package/resources/metric.d.mts.map +1 -1
  119. package/resources/metric.d.ts +7 -2
  120. package/resources/metric.d.ts.map +1 -1
  121. package/resources/simulation-environment.d.mts +366 -0
  122. package/resources/simulation-environment.d.mts.map +1 -1
  123. package/resources/simulation-environment.d.ts +366 -0
  124. package/resources/simulation-environment.d.ts.map +1 -1
  125. package/resources/simulation-job.d.mts +12 -8
  126. package/resources/simulation-job.d.mts.map +1 -1
  127. package/resources/simulation-job.d.ts +12 -8
  128. package/resources/simulation-job.d.ts.map +1 -1
  129. package/resources/simulation-persona.d.mts +25 -15
  130. package/resources/simulation-persona.d.mts.map +1 -1
  131. package/resources/simulation-persona.d.ts +25 -15
  132. package/resources/simulation-persona.d.ts.map +1 -1
  133. package/resources/simulation-run-plan-job.d.mts +32 -6
  134. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  135. package/resources/simulation-run-plan-job.d.ts +32 -6
  136. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  137. package/resources/simulation-run-plan.d.mts +126 -13
  138. package/resources/simulation-run-plan.d.mts.map +1 -1
  139. package/resources/simulation-run-plan.d.ts +126 -13
  140. package/resources/simulation-run-plan.d.ts.map +1 -1
  141. package/resources/simulation-template.d.mts +1 -1
  142. package/resources/simulation-template.d.mts.map +1 -1
  143. package/resources/simulation-template.d.ts +1 -1
  144. package/resources/simulation-template.d.ts.map +1 -1
  145. package/resources/simulation.d.mts +35 -3
  146. package/resources/simulation.d.mts.map +1 -1
  147. package/resources/simulation.d.ts +35 -3
  148. package/resources/simulation.d.ts.map +1 -1
  149. package/resources/tool.d.mts +565 -6
  150. package/resources/tool.d.mts.map +1 -1
  151. package/resources/tool.d.ts +565 -6
  152. package/resources/tool.d.ts.map +1 -1
  153. package/resources/tool.js +9 -6
  154. package/resources/tool.js.map +1 -1
  155. package/resources/tool.mjs +9 -6
  156. package/resources/tool.mjs.map +1 -1
  157. package/resources/usage.d.mts +1 -1
  158. package/resources/usage.d.mts.map +1 -1
  159. package/resources/usage.d.ts +1 -1
  160. package/resources/usage.d.ts.map +1 -1
  161. package/resources/webhook.d.mts +4 -4
  162. package/resources/webhook.d.mts.map +1 -1
  163. package/resources/webhook.d.ts +4 -4
  164. package/resources/webhook.d.ts.map +1 -1
  165. package/src/client.ts +197 -34
  166. package/src/resources/agent-connection.ts +2523 -0
  167. package/src/resources/agent-conversation.ts +139 -0
  168. package/src/resources/agent-draft.ts +239 -35
  169. package/src/resources/agent-endpoint.ts +8 -4
  170. package/src/resources/agent-setup.ts +1685 -0
  171. package/src/resources/agent-version.ts +126 -18
  172. package/src/resources/agent.ts +506 -4
  173. package/src/resources/calendar-connection.ts +1035 -63
  174. package/src/resources/call.ts +12 -2
  175. package/src/resources/config.ts +198 -36
  176. package/src/resources/conversation.ts +205 -0
  177. package/src/resources/customer-flow-edge-case.ts +709 -40
  178. package/src/resources/customer-flow.ts +3141 -156
  179. package/src/resources/{customer-profile.ts → customer.ts} +406 -306
  180. package/src/resources/index.ts +91 -17
  181. package/src/resources/mcp-server.ts +786 -0
  182. package/src/resources/metric-policy.ts +5 -4
  183. package/src/resources/metric-variant.ts +4 -1
  184. package/src/resources/metric.ts +7 -2
  185. package/src/resources/simulation-environment.ts +414 -0
  186. package/src/resources/simulation-job.ts +14 -8
  187. package/src/resources/simulation-persona.ts +25 -15
  188. package/src/resources/simulation-run-plan-job.ts +47 -6
  189. package/src/resources/simulation-run-plan.ts +140 -0
  190. package/src/resources/simulation-template.ts +1 -0
  191. package/src/resources/simulation.ts +39 -0
  192. package/src/resources/tool.ts +697 -6
  193. package/src/resources/usage.ts +6 -1
  194. package/src/resources/webhook.ts +8 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
  200. package/resources/customer-profile.d.mts.map +0 -1
  201. package/resources/customer-profile.d.ts.map +0 -1
  202. package/resources/customer-profile.js +0 -141
  203. package/resources/customer-profile.js.map +0 -1
  204. package/resources/customer-profile.mjs +0 -137
  205. package/resources/customer-profile.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-server.d.mts","sourceRoot":"","sources":["../src/resources/mcp-server.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,SAAU,SAAQ,WA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EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,588 @@
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 McpServer extends APIResource {
5
+ /**
6
+ * Connects to the server, reads its tools, then stores it for the project. A
7
+ * server that does not answer, or refuses the credential, returns 400 and nothing
8
+ * is stored. The credential is encrypted and never returned.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const mcpServer = await client.mcpServer.create({
13
+ * label: 'CRM',
14
+ * url: 'https://mcp.example.com/mcp',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: McpServerCreateParams, options?: RequestOptions): APIPromise<McpServerCreateResponse>;
19
+ /**
20
+ * Renames the server or replaces its credential. A new credential is checked by
21
+ * connecting with it first; one the server refuses returns 400 and changes
22
+ * nothing.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const mcpServer = await client.mcpServer.update(
27
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
28
+ * );
29
+ * ```
30
+ */
31
+ update(serverID: string, body?: McpServerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<McpServerUpdateResponse>;
32
+ /**
33
+ * The project's MCP servers, by label, each with the tools it offered when last
34
+ * checked. Credentials are never returned.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const mcpServers = await client.mcpServer.list();
39
+ * ```
40
+ */
41
+ list(options?: RequestOptions): APIPromise<McpServerListResponse>;
42
+ /**
43
+ * Deletes the server and its stored credential. A server a tool still uses returns
44
+ * 409, naming the tools.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const mcpServer = await client.mcpServer.delete(
49
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
50
+ * );
51
+ * ```
52
+ */
53
+ delete(serverID: string, options?: RequestOptions): APIPromise<McpServerDeleteResponse>;
54
+ /**
55
+ * Connects to a server and returns the tools it offers, without storing anything.
56
+ * Use it to check a url and credential before connecting.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const response = await client.mcpServer.discover({
61
+ * url: 'https://mcp.example.com/mcp',
62
+ * });
63
+ * ```
64
+ */
65
+ discover(body: McpServerDiscoverParams, options?: RequestOptions): APIPromise<McpServerDiscoverResponse>;
66
+ /**
67
+ * One MCP server. The credential is never returned.
68
+ *
69
+ * @example
70
+ * ```ts
71
+ * const response = await client.mcpServer.getByID(
72
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
73
+ * );
74
+ * ```
75
+ */
76
+ getByID(serverID: string, options?: RequestOptions): APIPromise<McpServerGetByIDResponse>;
77
+ /**
78
+ * Connects to the server again and records the tools it offers now. Agents keep
79
+ * calling the tools they were given; a new tool reaches an agent only once you add
80
+ * it.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const response = await client.mcpServer.refresh(
85
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
86
+ * );
87
+ * ```
88
+ */
89
+ refresh(serverID: string, options?: RequestOptions): APIPromise<McpServerRefreshResponse>;
90
+ }
91
+ export interface McpServerCreateResponse {
92
+ data: McpServerCreateResponse.Data;
93
+ }
94
+ export declare namespace McpServerCreateResponse {
95
+ interface Data {
96
+ /**
97
+ * The id a tool names the server by
98
+ */
99
+ id: string;
100
+ /**
101
+ * The header a HEADER credential is sent in
102
+ */
103
+ authHeaderName: string | null;
104
+ /**
105
+ * How the server authenticates. The credential is never returned.
106
+ */
107
+ authType: 'NONE' | 'BEARER' | 'HEADER';
108
+ /**
109
+ * The tools calling on this server, and whether it still offers each
110
+ */
111
+ boundTools: Array<Data.BoundTool>;
112
+ /**
113
+ * Changes when the server changes the tools it offers
114
+ */
115
+ catalogHash: string;
116
+ createdAt: string;
117
+ /**
118
+ * The MCP registry entry it was connected from
119
+ */
120
+ directoryKey: string | null;
121
+ /**
122
+ * The server's own advice on using it, for you to read. Never shown to the agent.
123
+ */
124
+ instructions: string | null;
125
+ label: string;
126
+ lastDiscoveredAt: string;
127
+ /**
128
+ * The name the server gives itself
129
+ */
130
+ serverName: string | null;
131
+ serverVersion: string | null;
132
+ tools: Array<Data.Tool>;
133
+ transport: 'STREAMABLE_HTTP' | 'SSE';
134
+ updatedAt: string;
135
+ url: string;
136
+ }
137
+ namespace Data {
138
+ interface BoundTool {
139
+ name: string;
140
+ /**
141
+ * False when the server stopped offering it: agents lose the tool
142
+ */
143
+ offered: boolean;
144
+ /**
145
+ * The tool it calls, as the server names it
146
+ */
147
+ remoteToolName: string;
148
+ toolDefinitionId: string;
149
+ }
150
+ interface Tool {
151
+ description: string | null;
152
+ /**
153
+ * The tool as the server names it
154
+ */
155
+ name: string;
156
+ /**
157
+ * The server's hint that the tool only reads
158
+ */
159
+ readOnly: boolean | null;
160
+ /**
161
+ * What a tool for it is called by default: the name with unusable characters
162
+ * replaced
163
+ */
164
+ suggestedName: string | null;
165
+ /**
166
+ * Why an agent could not use this tool, such as a name a built-in tool already has
167
+ */
168
+ unavailableReason: string | null;
169
+ }
170
+ }
171
+ }
172
+ export interface McpServerUpdateResponse {
173
+ data: McpServerUpdateResponse.Data;
174
+ }
175
+ export declare namespace McpServerUpdateResponse {
176
+ interface Data {
177
+ /**
178
+ * The id a tool names the server by
179
+ */
180
+ id: string;
181
+ /**
182
+ * The header a HEADER credential is sent in
183
+ */
184
+ authHeaderName: string | null;
185
+ /**
186
+ * How the server authenticates. The credential is never returned.
187
+ */
188
+ authType: 'NONE' | 'BEARER' | 'HEADER';
189
+ /**
190
+ * The tools calling on this server, and whether it still offers each
191
+ */
192
+ boundTools: Array<Data.BoundTool>;
193
+ /**
194
+ * Changes when the server changes the tools it offers
195
+ */
196
+ catalogHash: string;
197
+ createdAt: string;
198
+ /**
199
+ * The MCP registry entry it was connected from
200
+ */
201
+ directoryKey: string | null;
202
+ /**
203
+ * The server's own advice on using it, for you to read. Never shown to the agent.
204
+ */
205
+ instructions: string | null;
206
+ label: string;
207
+ lastDiscoveredAt: string;
208
+ /**
209
+ * The name the server gives itself
210
+ */
211
+ serverName: string | null;
212
+ serverVersion: string | null;
213
+ tools: Array<Data.Tool>;
214
+ transport: 'STREAMABLE_HTTP' | 'SSE';
215
+ updatedAt: string;
216
+ url: string;
217
+ }
218
+ namespace Data {
219
+ interface BoundTool {
220
+ name: string;
221
+ /**
222
+ * False when the server stopped offering it: agents lose the tool
223
+ */
224
+ offered: boolean;
225
+ /**
226
+ * The tool it calls, as the server names it
227
+ */
228
+ remoteToolName: string;
229
+ toolDefinitionId: string;
230
+ }
231
+ interface Tool {
232
+ description: string | null;
233
+ /**
234
+ * The tool as the server names it
235
+ */
236
+ name: string;
237
+ /**
238
+ * The server's hint that the tool only reads
239
+ */
240
+ readOnly: boolean | null;
241
+ /**
242
+ * What a tool for it is called by default: the name with unusable characters
243
+ * replaced
244
+ */
245
+ suggestedName: string | null;
246
+ /**
247
+ * Why an agent could not use this tool, such as a name a built-in tool already has
248
+ */
249
+ unavailableReason: string | null;
250
+ }
251
+ }
252
+ }
253
+ export interface McpServerListResponse {
254
+ data: Array<McpServerListResponse.Data>;
255
+ }
256
+ export declare namespace McpServerListResponse {
257
+ interface Data {
258
+ /**
259
+ * The id a tool names the server by
260
+ */
261
+ id: string;
262
+ /**
263
+ * The header a HEADER credential is sent in
264
+ */
265
+ authHeaderName: string | null;
266
+ /**
267
+ * How the server authenticates. The credential is never returned.
268
+ */
269
+ authType: 'NONE' | 'BEARER' | 'HEADER';
270
+ /**
271
+ * The tools calling on this server, and whether it still offers each
272
+ */
273
+ boundTools: Array<Data.BoundTool>;
274
+ /**
275
+ * Changes when the server changes the tools it offers
276
+ */
277
+ catalogHash: string;
278
+ createdAt: string;
279
+ /**
280
+ * The MCP registry entry it was connected from
281
+ */
282
+ directoryKey: string | null;
283
+ /**
284
+ * The server's own advice on using it, for you to read. Never shown to the agent.
285
+ */
286
+ instructions: string | null;
287
+ label: string;
288
+ lastDiscoveredAt: string;
289
+ /**
290
+ * The name the server gives itself
291
+ */
292
+ serverName: string | null;
293
+ serverVersion: string | null;
294
+ tools: Array<Data.Tool>;
295
+ transport: 'STREAMABLE_HTTP' | 'SSE';
296
+ updatedAt: string;
297
+ url: string;
298
+ }
299
+ namespace Data {
300
+ interface BoundTool {
301
+ name: string;
302
+ /**
303
+ * False when the server stopped offering it: agents lose the tool
304
+ */
305
+ offered: boolean;
306
+ /**
307
+ * The tool it calls, as the server names it
308
+ */
309
+ remoteToolName: string;
310
+ toolDefinitionId: string;
311
+ }
312
+ interface Tool {
313
+ description: string | null;
314
+ /**
315
+ * The tool as the server names it
316
+ */
317
+ name: string;
318
+ /**
319
+ * The server's hint that the tool only reads
320
+ */
321
+ readOnly: boolean | null;
322
+ /**
323
+ * What a tool for it is called by default: the name with unusable characters
324
+ * replaced
325
+ */
326
+ suggestedName: string | null;
327
+ /**
328
+ * Why an agent could not use this tool, such as a name a built-in tool already has
329
+ */
330
+ unavailableReason: string | null;
331
+ }
332
+ }
333
+ }
334
+ export interface McpServerDeleteResponse {
335
+ data: McpServerDeleteResponse.Data;
336
+ }
337
+ export declare namespace McpServerDeleteResponse {
338
+ interface Data {
339
+ id: string;
340
+ deleted: true;
341
+ }
342
+ }
343
+ export interface McpServerDiscoverResponse {
344
+ data: McpServerDiscoverResponse.Data;
345
+ }
346
+ export declare namespace McpServerDiscoverResponse {
347
+ interface Data {
348
+ /**
349
+ * Changes when the server changes the tools it offers
350
+ */
351
+ catalogHash: string;
352
+ /**
353
+ * The server's own advice on using it, for you to read. Never shown to the agent.
354
+ */
355
+ instructions: string | null;
356
+ /**
357
+ * The name the server gives itself
358
+ */
359
+ serverName: string | null;
360
+ serverVersion: string | null;
361
+ tools: Array<Data.Tool>;
362
+ }
363
+ namespace Data {
364
+ interface Tool {
365
+ description: string | null;
366
+ /**
367
+ * The tool as the server names it
368
+ */
369
+ name: string;
370
+ /**
371
+ * The server's hint that the tool only reads
372
+ */
373
+ readOnly: boolean | null;
374
+ /**
375
+ * What a tool for it is called by default: the name with unusable characters
376
+ * replaced
377
+ */
378
+ suggestedName: string | null;
379
+ /**
380
+ * Why an agent could not use this tool, such as a name a built-in tool already has
381
+ */
382
+ unavailableReason: string | null;
383
+ }
384
+ }
385
+ }
386
+ export interface McpServerGetByIDResponse {
387
+ data: McpServerGetByIDResponse.Data;
388
+ }
389
+ export declare namespace McpServerGetByIDResponse {
390
+ interface Data {
391
+ /**
392
+ * The id a tool names the server by
393
+ */
394
+ id: string;
395
+ /**
396
+ * The header a HEADER credential is sent in
397
+ */
398
+ authHeaderName: string | null;
399
+ /**
400
+ * How the server authenticates. The credential is never returned.
401
+ */
402
+ authType: 'NONE' | 'BEARER' | 'HEADER';
403
+ /**
404
+ * The tools calling on this server, and whether it still offers each
405
+ */
406
+ boundTools: Array<Data.BoundTool>;
407
+ /**
408
+ * Changes when the server changes the tools it offers
409
+ */
410
+ catalogHash: string;
411
+ createdAt: string;
412
+ /**
413
+ * The MCP registry entry it was connected from
414
+ */
415
+ directoryKey: string | null;
416
+ /**
417
+ * The server's own advice on using it, for you to read. Never shown to the agent.
418
+ */
419
+ instructions: string | null;
420
+ label: string;
421
+ lastDiscoveredAt: string;
422
+ /**
423
+ * The name the server gives itself
424
+ */
425
+ serverName: string | null;
426
+ serverVersion: string | null;
427
+ tools: Array<Data.Tool>;
428
+ transport: 'STREAMABLE_HTTP' | 'SSE';
429
+ updatedAt: string;
430
+ url: string;
431
+ }
432
+ namespace Data {
433
+ interface BoundTool {
434
+ name: string;
435
+ /**
436
+ * False when the server stopped offering it: agents lose the tool
437
+ */
438
+ offered: boolean;
439
+ /**
440
+ * The tool it calls, as the server names it
441
+ */
442
+ remoteToolName: string;
443
+ toolDefinitionId: string;
444
+ }
445
+ interface Tool {
446
+ description: string | null;
447
+ /**
448
+ * The tool as the server names it
449
+ */
450
+ name: string;
451
+ /**
452
+ * The server's hint that the tool only reads
453
+ */
454
+ readOnly: boolean | null;
455
+ /**
456
+ * What a tool for it is called by default: the name with unusable characters
457
+ * replaced
458
+ */
459
+ suggestedName: string | null;
460
+ /**
461
+ * Why an agent could not use this tool, such as a name a built-in tool already has
462
+ */
463
+ unavailableReason: string | null;
464
+ }
465
+ }
466
+ }
467
+ export interface McpServerRefreshResponse {
468
+ data: McpServerRefreshResponse.Data;
469
+ }
470
+ export declare namespace McpServerRefreshResponse {
471
+ interface Data {
472
+ /**
473
+ * The id a tool names the server by
474
+ */
475
+ id: string;
476
+ /**
477
+ * The header a HEADER credential is sent in
478
+ */
479
+ authHeaderName: string | null;
480
+ /**
481
+ * How the server authenticates. The credential is never returned.
482
+ */
483
+ authType: 'NONE' | 'BEARER' | 'HEADER';
484
+ /**
485
+ * The tools calling on this server, and whether it still offers each
486
+ */
487
+ boundTools: Array<Data.BoundTool>;
488
+ /**
489
+ * Changes when the server changes the tools it offers
490
+ */
491
+ catalogHash: string;
492
+ createdAt: string;
493
+ /**
494
+ * The MCP registry entry it was connected from
495
+ */
496
+ directoryKey: string | null;
497
+ /**
498
+ * The server's own advice on using it, for you to read. Never shown to the agent.
499
+ */
500
+ instructions: string | null;
501
+ label: string;
502
+ lastDiscoveredAt: string;
503
+ /**
504
+ * The name the server gives itself
505
+ */
506
+ serverName: string | null;
507
+ serverVersion: string | null;
508
+ tools: Array<Data.Tool>;
509
+ transport: 'STREAMABLE_HTTP' | 'SSE';
510
+ updatedAt: string;
511
+ url: string;
512
+ }
513
+ namespace Data {
514
+ interface BoundTool {
515
+ name: string;
516
+ /**
517
+ * False when the server stopped offering it: agents lose the tool
518
+ */
519
+ offered: boolean;
520
+ /**
521
+ * The tool it calls, as the server names it
522
+ */
523
+ remoteToolName: string;
524
+ toolDefinitionId: string;
525
+ }
526
+ interface Tool {
527
+ description: string | null;
528
+ /**
529
+ * The tool as the server names it
530
+ */
531
+ name: string;
532
+ /**
533
+ * The server's hint that the tool only reads
534
+ */
535
+ readOnly: boolean | null;
536
+ /**
537
+ * What a tool for it is called by default: the name with unusable characters
538
+ * replaced
539
+ */
540
+ suggestedName: string | null;
541
+ /**
542
+ * Why an agent could not use this tool, such as a name a built-in tool already has
543
+ */
544
+ unavailableReason: string | null;
545
+ }
546
+ }
547
+ }
548
+ export interface McpServerCreateParams {
549
+ label: string;
550
+ url: string;
551
+ auth?: {
552
+ [key: string]: unknown;
553
+ };
554
+ directoryKey?: string | null;
555
+ transport?: 'STREAMABLE_HTTP' | 'SSE';
556
+ }
557
+ export interface McpServerUpdateParams {
558
+ /**
559
+ * How the server authenticates. Stored encrypted; never returned.
560
+ */
561
+ auth?: McpServerUpdateParams.UnionMember0 | McpServerUpdateParams.UnionMember1 | McpServerUpdateParams.UnionMember2;
562
+ label?: string;
563
+ }
564
+ export declare namespace McpServerUpdateParams {
565
+ interface UnionMember0 {
566
+ type: 'NONE';
567
+ }
568
+ interface UnionMember1 {
569
+ token: string;
570
+ type: 'BEARER';
571
+ }
572
+ interface UnionMember2 {
573
+ name: string;
574
+ type: 'HEADER';
575
+ value: string;
576
+ }
577
+ }
578
+ export interface McpServerDiscoverParams {
579
+ url: string;
580
+ auth?: {
581
+ [key: string]: unknown;
582
+ };
583
+ transport?: 'STREAMABLE_HTTP' | 'SSE';
584
+ }
585
+ export declare namespace McpServer {
586
+ export { type McpServerCreateResponse as McpServerCreateResponse, type McpServerUpdateResponse as McpServerUpdateResponse, type McpServerListResponse as McpServerListResponse, type McpServerDeleteResponse as McpServerDeleteResponse, type McpServerDiscoverResponse as McpServerDiscoverResponse, type McpServerGetByIDResponse as McpServerGetByIDResponse, type McpServerRefreshResponse as McpServerRefreshResponse, type McpServerCreateParams as McpServerCreateParams, type McpServerUpdateParams as McpServerUpdateParams, type McpServerDiscoverParams as McpServerDiscoverParams, };
587
+ }
588
+ //# sourceMappingURL=mcp-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/res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