@smithery/api 0.46.0 → 0.48.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 (94) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -10
  3. package/client.d.mts +2 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +2 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/index.d.mts +1 -1
  11. package/resources/index.d.mts.map +1 -1
  12. package/resources/index.d.ts +1 -1
  13. package/resources/index.d.ts.map +1 -1
  14. package/resources/index.js.map +1 -1
  15. package/resources/index.mjs.map +1 -1
  16. package/resources/servers/domains.d.mts +176 -0
  17. package/resources/servers/domains.d.mts.map +1 -0
  18. package/resources/servers/domains.d.ts +176 -0
  19. package/resources/servers/domains.d.ts.map +1 -0
  20. package/resources/servers/domains.js +67 -0
  21. package/resources/servers/domains.js.map +1 -0
  22. package/resources/servers/domains.mjs +63 -0
  23. package/resources/servers/domains.mjs.map +1 -0
  24. package/resources/servers/index.d.mts +6 -5
  25. package/resources/servers/index.d.mts.map +1 -1
  26. package/resources/servers/index.d.ts +6 -5
  27. package/resources/servers/index.d.ts.map +1 -1
  28. package/resources/servers/index.js +5 -3
  29. package/resources/servers/index.js.map +1 -1
  30. package/resources/servers/index.mjs +3 -2
  31. package/resources/servers/index.mjs.map +1 -1
  32. package/resources/servers/logs.d.mts +5 -79
  33. package/resources/servers/logs.d.mts.map +1 -1
  34. package/resources/servers/logs.d.ts +5 -79
  35. package/resources/servers/logs.d.ts.map +1 -1
  36. package/resources/servers/logs.js +5 -21
  37. package/resources/servers/logs.js.map +1 -1
  38. package/resources/servers/logs.mjs +5 -21
  39. package/resources/servers/logs.mjs.map +1 -1
  40. package/resources/servers/releases.d.mts +437 -0
  41. package/resources/servers/releases.d.mts.map +1 -0
  42. package/resources/servers/releases.d.ts +437 -0
  43. package/resources/servers/releases.d.ts.map +1 -0
  44. package/resources/servers/releases.js +91 -0
  45. package/resources/servers/releases.js.map +1 -0
  46. package/resources/servers/releases.mjs +87 -0
  47. package/resources/servers/releases.mjs.map +1 -0
  48. package/resources/servers/repo.d.mts +13 -103
  49. package/resources/servers/repo.d.mts.map +1 -1
  50. package/resources/servers/repo.d.ts +13 -103
  51. package/resources/servers/repo.d.ts.map +1 -1
  52. package/resources/servers/repo.js +15 -61
  53. package/resources/servers/repo.js.map +1 -1
  54. package/resources/servers/repo.mjs +15 -61
  55. package/resources/servers/repo.mjs.map +1 -1
  56. package/resources/servers/secrets.d.mts +14 -85
  57. package/resources/servers/secrets.d.mts.map +1 -1
  58. package/resources/servers/secrets.d.ts +14 -85
  59. package/resources/servers/secrets.d.ts.map +1 -1
  60. package/resources/servers/secrets.js +13 -63
  61. package/resources/servers/secrets.js.map +1 -1
  62. package/resources/servers/secrets.mjs +13 -63
  63. package/resources/servers/secrets.mjs.map +1 -1
  64. package/resources/servers/servers.d.mts +32 -184
  65. package/resources/servers/servers.d.mts.map +1 -1
  66. package/resources/servers/servers.d.ts +32 -184
  67. package/resources/servers/servers.d.ts.map +1 -1
  68. package/resources/servers/servers.js +30 -83
  69. package/resources/servers/servers.js.map +1 -1
  70. package/resources/servers/servers.mjs +32 -85
  71. package/resources/servers/servers.mjs.map +1 -1
  72. package/src/client.ts +0 -16
  73. package/src/resources/index.ts +0 -8
  74. package/src/resources/servers/domains.ts +270 -0
  75. package/src/resources/servers/index.ts +22 -48
  76. package/src/resources/servers/logs.ts +9 -118
  77. package/src/resources/servers/releases.ts +621 -0
  78. package/src/resources/servers/repo.ts +15 -150
  79. package/src/resources/servers/secrets.ts +17 -126
  80. package/src/resources/servers/servers.ts +76 -344
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
  86. package/resources/servers/deployments.d.mts +0 -686
  87. package/resources/servers/deployments.d.mts.map +0 -1
  88. package/resources/servers/deployments.d.ts +0 -686
  89. package/resources/servers/deployments.d.ts.map +0 -1
  90. package/resources/servers/deployments.js +0 -179
  91. package/resources/servers/deployments.js.map +0 -1
  92. package/resources/servers/deployments.mjs +0 -175
  93. package/resources/servers/deployments.mjs.map +0 -1
  94. package/src/resources/servers/deployments.ts +0 -978
@@ -1,978 +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 { Stream } from '../../core/streaming';
6
- import { type Uploadable } from '../../core/uploads';
7
- import { buildHeaders } from '../../internal/headers';
8
- import { RequestOptions } from '../../internal/request-options';
9
- import { multipartFormRequestOptions } from '../../internal/uploads';
10
- import { path } from '../../internal/utils/path';
11
-
12
- export class Deployments extends APIResource {
13
- /**
14
- * List all deployments for a server, ordered by most recent first. Does not
15
- * include deployment logs — fetch a specific deployment to see logs.
16
- *
17
- * @example
18
- * ```ts
19
- * const deployments = await client.servers.deployments.list(
20
- * 'server',
21
- * { namespace: 'namespace' },
22
- * );
23
- * ```
24
- */
25
- list(
26
- server: string,
27
- params: DeploymentListParams,
28
- options?: RequestOptions,
29
- ): APIPromise<DeploymentListResponse> {
30
- const { namespace } = params;
31
- return this._client.get(path`/servers/${namespace}/${server}/deployments`, options);
32
- }
33
-
34
- /**
35
- * Deploy an MCP server via multipart form. Supports hosted deployments (upload a
36
- * JS module), external deployments (register a URL), stdio deployments (upload an
37
- * MCPB bundle), and repo deployments (build from a connected GitHub repository).
38
- *
39
- * @example
40
- * ```ts
41
- * const response = await client.servers.deployments.deploy(
42
- * 'server',
43
- * { namespace: 'namespace', payload: 'payload' },
44
- * );
45
- * ```
46
- */
47
- deploy(
48
- server: string,
49
- params: DeploymentDeployParams,
50
- options?: RequestOptions,
51
- ): APIPromise<DeploymentDeployResponse> {
52
- const { namespace, ...body } = params;
53
- return this._client.put(
54
- path`/servers/${namespace}/${server}/deployments`,
55
- multipartFormRequestOptions({ body, ...options }, this._client),
56
- );
57
- }
58
-
59
- /**
60
- * Deploy an MCP server via multipart form. Supports hosted deployments (upload a
61
- * JS module), external deployments (register a URL), stdio deployments (upload an
62
- * MCPB bundle), and repo deployments (build from a connected GitHub repository).
63
- *
64
- * @example
65
- * ```ts
66
- * const response =
67
- * await client.servers.deployments.deployByNamespace(
68
- * 'namespace',
69
- * { payload: 'payload' },
70
- * );
71
- * ```
72
- */
73
- deployByNamespace(
74
- namespace: string,
75
- body: DeploymentDeployByNamespaceParams,
76
- options?: RequestOptions,
77
- ): APIPromise<DeploymentDeployByNamespaceResponse> {
78
- return this._client.put(
79
- path`/servers/${namespace}/deployments`,
80
- multipartFormRequestOptions({ body, ...options }, this._client),
81
- );
82
- }
83
-
84
- /**
85
- * Get full details for a specific deployment, including status, type, git
86
- * metadata, pipeline logs, and MCP endpoint URL.
87
- *
88
- * @example
89
- * ```ts
90
- * const deployment = await client.servers.deployments.get(
91
- * 'id',
92
- * { namespace: 'namespace', server: 'server' },
93
- * );
94
- * ```
95
- */
96
- get(id: string, params: DeploymentGetParams, options?: RequestOptions): APIPromise<DeploymentGetResponse> {
97
- const { namespace, server } = params;
98
- return this._client.get(path`/servers/${namespace}/${server}/deployments/${id}`, options);
99
- }
100
-
101
- /**
102
- * Get full details for a specific deployment, including status, type, git
103
- * metadata, pipeline logs, and MCP endpoint URL.
104
- *
105
- * @example
106
- * ```ts
107
- * const response =
108
- * await client.servers.deployments.getByNamespace('id', {
109
- * namespace: 'namespace',
110
- * });
111
- * ```
112
- */
113
- getByNamespace(
114
- id: string,
115
- params: DeploymentGetByNamespaceParams,
116
- options?: RequestOptions,
117
- ): APIPromise<DeploymentGetByNamespaceResponse> {
118
- const { namespace } = params;
119
- return this._client.get(path`/servers/${namespace}/deployments/${id}`, options);
120
- }
121
-
122
- /**
123
- * List all deployments for a server, ordered by most recent first. Does not
124
- * include deployment logs — fetch a specific deployment to see logs.
125
- *
126
- * @example
127
- * ```ts
128
- * const response =
129
- * await client.servers.deployments.listByNamespace(
130
- * 'namespace',
131
- * );
132
- * ```
133
- */
134
- listByNamespace(
135
- namespace: string,
136
- options?: RequestOptions,
137
- ): APIPromise<DeploymentListByNamespaceResponse> {
138
- return this._client.get(path`/servers/${namespace}/deployments`, options);
139
- }
140
-
141
- /**
142
- * Use id='latest' to resume the most recent deployment
143
- *
144
- * @example
145
- * ```ts
146
- * const response = await client.servers.deployments.resume(
147
- * 'id',
148
- * { namespace: 'namespace', server: 'server' },
149
- * );
150
- * ```
151
- */
152
- resume(
153
- id: string,
154
- params: DeploymentResumeParams,
155
- options?: RequestOptions,
156
- ): APIPromise<DeploymentResumeResponse> {
157
- const { namespace, server } = params;
158
- return this._client.post(path`/servers/${namespace}/${server}/deployments/${id}/resume`, options);
159
- }
160
-
161
- /**
162
- * Use id='latest' to resume the most recent deployment
163
- *
164
- * @example
165
- * ```ts
166
- * const response =
167
- * await client.servers.deployments.resumeByNamespace('id', {
168
- * namespace: 'namespace',
169
- * });
170
- * ```
171
- */
172
- resumeByNamespace(
173
- id: string,
174
- params: DeploymentResumeByNamespaceParams,
175
- options?: RequestOptions,
176
- ): APIPromise<DeploymentResumeByNamespaceResponse> {
177
- const { namespace } = params;
178
- return this._client.post(path`/servers/${namespace}/deployments/${id}/resume`, options);
179
- }
180
-
181
- /**
182
- * Returns a real-time SSE stream of deployment logs and status updates. Connect to
183
- * this endpoint to receive live updates as the deployment progresses.
184
- *
185
- * @example
186
- * ```ts
187
- * const response = await client.servers.deployments.stream(
188
- * 'id',
189
- * { namespace: 'namespace', server: 'server' },
190
- * );
191
- * ```
192
- */
193
- stream(
194
- id: string,
195
- params: DeploymentStreamParams,
196
- options?: RequestOptions,
197
- ): APIPromise<Stream<DeploymentStreamResponse>> {
198
- const { namespace, server } = params;
199
- return this._client.get(path`/servers/${namespace}/${server}/deployments/${id}/stream`, {
200
- ...options,
201
- headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
202
- stream: true,
203
- }) as APIPromise<Stream<DeploymentStreamResponse>>;
204
- }
205
-
206
- /**
207
- * Returns a real-time SSE stream of deployment logs and status updates. Connect to
208
- * this endpoint to receive live updates as the deployment progresses.
209
- *
210
- * @example
211
- * ```ts
212
- * const response =
213
- * await client.servers.deployments.streamByNamespace('id', {
214
- * namespace: 'namespace',
215
- * });
216
- * ```
217
- */
218
- streamByNamespace(
219
- id: string,
220
- params: DeploymentStreamByNamespaceParams,
221
- options?: RequestOptions,
222
- ): APIPromise<Stream<DeploymentStreamByNamespaceResponse>> {
223
- const { namespace } = params;
224
- return this._client.get(path`/servers/${namespace}/deployments/${id}/stream`, {
225
- ...options,
226
- headers: buildHeaders([{ Accept: 'text/event-stream' }, options?.headers]),
227
- stream: true,
228
- }) as APIPromise<Stream<DeploymentStreamByNamespaceResponse>>;
229
- }
230
- }
231
-
232
- export type DeployPayload =
233
- | HostedDeployPayload
234
- | ExternalDeployPayload
235
- | StdioDeployPayload
236
- | DeployPayload.RepoDeployPayload;
237
-
238
- export namespace DeployPayload {
239
- export interface RepoDeployPayload {
240
- type: 'repo';
241
-
242
- baseDirectory?: string;
243
-
244
- branch?: string;
245
-
246
- repoName?: string;
247
-
248
- repoOwner?: string;
249
- }
250
- }
251
-
252
- export interface ExternalDeployPayload {
253
- type: 'external';
254
-
255
- upstreamUrl: string;
256
-
257
- configSchema?: { [key: string]: unknown };
258
-
259
- scanCredentials?: { [key: string]: string };
260
- }
261
-
262
- export interface HostedDeployPayload {
263
- hasAuthAdapter: boolean;
264
-
265
- stateful: boolean;
266
-
267
- type: 'hosted';
268
-
269
- configSchema?: { [key: string]: unknown };
270
-
271
- serverCard?: ServerCard;
272
-
273
- source?: HostedDeployPayload.Source;
274
- }
275
-
276
- export namespace HostedDeployPayload {
277
- export interface Source {
278
- branch?: string;
279
-
280
- commit?: string;
281
- }
282
- }
283
-
284
- export interface ServerCard {
285
- serverInfo: ServerCard.ServerInfo;
286
-
287
- authentication?: ServerCard.Authentication;
288
-
289
- prompts?: Array<ServerCard.Prompt>;
290
-
291
- resources?: Array<ServerCard.Resource>;
292
-
293
- tools?: Array<ServerCard.Tool>;
294
-
295
- [k: string]: unknown;
296
- }
297
-
298
- export namespace ServerCard {
299
- export interface ServerInfo {
300
- name: string;
301
-
302
- version: string;
303
-
304
- description?: string;
305
-
306
- icons?: Array<ServerInfo.Icon>;
307
-
308
- title?: string;
309
-
310
- websiteUrl?: string;
311
- }
312
-
313
- export namespace ServerInfo {
314
- export interface Icon {
315
- src: string;
316
-
317
- mimeType?: string;
318
-
319
- sizes?: Array<string>;
320
-
321
- theme?: 'light' | 'dark';
322
- }
323
- }
324
-
325
- export interface Authentication {
326
- required: boolean;
327
-
328
- schemes: Array<string>;
329
- }
330
-
331
- export interface Prompt {
332
- name: string;
333
-
334
- _meta?: { [key: string]: unknown };
335
-
336
- arguments?: Array<Prompt.Argument>;
337
-
338
- description?: string;
339
-
340
- icons?: Array<Prompt.Icon>;
341
-
342
- title?: string;
343
- }
344
-
345
- export namespace Prompt {
346
- export interface Argument {
347
- name: string;
348
-
349
- description?: string;
350
-
351
- required?: boolean;
352
- }
353
-
354
- export interface Icon {
355
- src: string;
356
-
357
- mimeType?: string;
358
-
359
- sizes?: Array<string>;
360
-
361
- theme?: 'light' | 'dark';
362
- }
363
- }
364
-
365
- export interface Resource {
366
- name: string;
367
-
368
- uri: string;
369
-
370
- _meta?: { [key: string]: unknown };
371
-
372
- annotations?: Resource.Annotations;
373
-
374
- description?: string;
375
-
376
- icons?: Array<Resource.Icon>;
377
-
378
- mimeType?: string;
379
-
380
- title?: string;
381
- }
382
-
383
- export namespace Resource {
384
- export interface Annotations {
385
- audience?: Array<'user' | 'assistant'>;
386
-
387
- lastModified?: string;
388
-
389
- priority?: number;
390
- }
391
-
392
- export interface Icon {
393
- src: string;
394
-
395
- mimeType?: string;
396
-
397
- sizes?: Array<string>;
398
-
399
- theme?: 'light' | 'dark';
400
- }
401
- }
402
-
403
- export interface Tool {
404
- inputSchema: Tool.InputSchema;
405
-
406
- name: string;
407
-
408
- _meta?: { [key: string]: unknown };
409
-
410
- annotations?: Tool.Annotations;
411
-
412
- description?: string;
413
-
414
- execution?: Tool.Execution;
415
-
416
- icons?: Array<Tool.Icon>;
417
-
418
- outputSchema?: Tool.OutputSchema;
419
-
420
- title?: string;
421
- }
422
-
423
- export namespace Tool {
424
- export interface InputSchema {
425
- type: 'object';
426
-
427
- properties?: { [key: string]: unknown };
428
-
429
- required?: Array<string>;
430
-
431
- [k: string]: unknown;
432
- }
433
-
434
- export interface Annotations {
435
- destructiveHint?: boolean;
436
-
437
- idempotentHint?: boolean;
438
-
439
- openWorldHint?: boolean;
440
-
441
- readOnlyHint?: boolean;
442
-
443
- title?: string;
444
- }
445
-
446
- export interface Execution {
447
- taskSupport?: 'required' | 'optional' | 'forbidden';
448
- }
449
-
450
- export interface Icon {
451
- src: string;
452
-
453
- mimeType?: string;
454
-
455
- sizes?: Array<string>;
456
-
457
- theme?: 'light' | 'dark';
458
- }
459
-
460
- export interface OutputSchema {
461
- type: 'object';
462
-
463
- properties?: { [key: string]: unknown };
464
-
465
- required?: Array<string>;
466
-
467
- [k: string]: unknown;
468
- }
469
- }
470
- }
471
-
472
- export interface StdioDeployPayload {
473
- hasAuthAdapter: boolean;
474
-
475
- runtime: 'node';
476
-
477
- type: 'stdio';
478
-
479
- configSchema?: { [key: string]: unknown };
480
-
481
- serverCard?: ServerCard;
482
-
483
- source?: StdioDeployPayload.Source;
484
- }
485
-
486
- export namespace StdioDeployPayload {
487
- export interface Source {
488
- branch?: string;
489
-
490
- commit?: string;
491
- }
492
- }
493
-
494
- export type DeploymentListResponse = Array<DeploymentListResponse.DeploymentListResponseItem>;
495
-
496
- export namespace DeploymentListResponse {
497
- export interface DeploymentListResponseItem {
498
- id: string;
499
-
500
- /**
501
- * ISO 8601 timestamp of when the deployment was created.
502
- */
503
- createdAt: string;
504
-
505
- /**
506
- * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
507
- * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
508
- */
509
- status: string;
510
-
511
- /**
512
- * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
513
- * or stdio (local binary).
514
- */
515
- type: string;
516
-
517
- /**
518
- * ISO 8601 timestamp of the last status change.
519
- */
520
- updatedAt: string;
521
-
522
- /**
523
- * Git branch this deployment was built from.
524
- */
525
- branch?: string | null;
526
-
527
- /**
528
- * Git commit SHA that triggered this deployment. Present for repo and
529
- * source-tracked deployments.
530
- */
531
- commit?: string | null;
532
-
533
- /**
534
- * Git commit message associated with this deployment.
535
- */
536
- commitMessage?: string | null;
537
-
538
- /**
539
- * The MCP endpoint URL for connecting to this server.
540
- */
541
- mcpUrl?: string;
542
-
543
- /**
544
- * Upstream MCP server URL. Present only for external deployments.
545
- */
546
- upstreamUrl?: string | null;
547
- }
548
- }
549
-
550
- export interface DeploymentDeployResponse {
551
- /**
552
- * Unique identifier for this deployment.
553
- */
554
- deploymentId: string;
555
-
556
- /**
557
- * The MCP endpoint URL for connecting to this server once deployed.
558
- */
559
- mcpUrl: string;
560
-
561
- /**
562
- * Initial deployment status. Will be WORKING while the deployment is in progress.
563
- */
564
- status: string;
565
-
566
- /**
567
- * Non-fatal warnings encountered during deployment submission.
568
- */
569
- warnings?: Array<string>;
570
- }
571
-
572
- export interface DeploymentDeployByNamespaceResponse {
573
- /**
574
- * Unique identifier for this deployment.
575
- */
576
- deploymentId: string;
577
-
578
- /**
579
- * The MCP endpoint URL for connecting to this server once deployed.
580
- */
581
- mcpUrl: string;
582
-
583
- /**
584
- * Initial deployment status. Will be WORKING while the deployment is in progress.
585
- */
586
- status: string;
587
-
588
- /**
589
- * Non-fatal warnings encountered during deployment submission.
590
- */
591
- warnings?: Array<string>;
592
- }
593
-
594
- export interface DeploymentGetResponse {
595
- id: string;
596
-
597
- /**
598
- * ISO 8601 timestamp of when the deployment was created.
599
- */
600
- createdAt: string;
601
-
602
- /**
603
- * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
604
- * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
605
- */
606
- status: string;
607
-
608
- /**
609
- * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
610
- * or stdio (local binary).
611
- */
612
- type: string;
613
-
614
- /**
615
- * ISO 8601 timestamp of the last status change.
616
- */
617
- updatedAt: string;
618
-
619
- /**
620
- * Git branch this deployment was built from.
621
- */
622
- branch?: string | null;
623
-
624
- /**
625
- * Git commit SHA that triggered this deployment. Present for repo and
626
- * source-tracked deployments.
627
- */
628
- commit?: string | null;
629
-
630
- /**
631
- * Git commit message associated with this deployment.
632
- */
633
- commitMessage?: string | null;
634
-
635
- /**
636
- * Deployment pipeline log entries. Only included when fetching a single
637
- * deployment.
638
- */
639
- logs?: Array<DeploymentGetResponse.Log>;
640
-
641
- /**
642
- * The MCP endpoint URL for connecting to this server.
643
- */
644
- mcpUrl?: string;
645
-
646
- /**
647
- * Upstream MCP server URL. Present only for external deployments.
648
- */
649
- upstreamUrl?: string | null;
650
- }
651
-
652
- export namespace DeploymentGetResponse {
653
- export interface Log {
654
- /**
655
- * Log level: 'start', 'end', 'info', 'success', or 'failure'.
656
- */
657
- level: string;
658
-
659
- /**
660
- * Human-readable log message.
661
- */
662
- message: string;
663
-
664
- /**
665
- * Deployment pipeline stage: deploy (bundle upload), scan (security/OAuth check),
666
- * metadata (tool discovery), publish (making the server live).
667
- */
668
- stage: 'deploy' | 'scan' | 'metadata' | 'publish';
669
-
670
- /**
671
- * ISO 8601 timestamp of the log entry.
672
- */
673
- timestamp: string;
674
-
675
- /**
676
- * Error details, present only when the stage failed.
677
- */
678
- error?: Log.Error;
679
- }
680
-
681
- export namespace Log {
682
- /**
683
- * Error details, present only when the stage failed.
684
- */
685
- export interface Error {
686
- message?: string;
687
- }
688
- }
689
- }
690
-
691
- export interface DeploymentGetByNamespaceResponse {
692
- id: string;
693
-
694
- /**
695
- * ISO 8601 timestamp of when the deployment was created.
696
- */
697
- createdAt: string;
698
-
699
- /**
700
- * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
701
- * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
702
- */
703
- status: string;
704
-
705
- /**
706
- * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
707
- * or stdio (local binary).
708
- */
709
- type: string;
710
-
711
- /**
712
- * ISO 8601 timestamp of the last status change.
713
- */
714
- updatedAt: string;
715
-
716
- /**
717
- * Git branch this deployment was built from.
718
- */
719
- branch?: string | null;
720
-
721
- /**
722
- * Git commit SHA that triggered this deployment. Present for repo and
723
- * source-tracked deployments.
724
- */
725
- commit?: string | null;
726
-
727
- /**
728
- * Git commit message associated with this deployment.
729
- */
730
- commitMessage?: string | null;
731
-
732
- /**
733
- * Deployment pipeline log entries. Only included when fetching a single
734
- * deployment.
735
- */
736
- logs?: Array<DeploymentGetByNamespaceResponse.Log>;
737
-
738
- /**
739
- * The MCP endpoint URL for connecting to this server.
740
- */
741
- mcpUrl?: string;
742
-
743
- /**
744
- * Upstream MCP server URL. Present only for external deployments.
745
- */
746
- upstreamUrl?: string | null;
747
- }
748
-
749
- export namespace DeploymentGetByNamespaceResponse {
750
- export interface Log {
751
- /**
752
- * Log level: 'start', 'end', 'info', 'success', or 'failure'.
753
- */
754
- level: string;
755
-
756
- /**
757
- * Human-readable log message.
758
- */
759
- message: string;
760
-
761
- /**
762
- * Deployment pipeline stage: deploy (bundle upload), scan (security/OAuth check),
763
- * metadata (tool discovery), publish (making the server live).
764
- */
765
- stage: 'deploy' | 'scan' | 'metadata' | 'publish';
766
-
767
- /**
768
- * ISO 8601 timestamp of the log entry.
769
- */
770
- timestamp: string;
771
-
772
- /**
773
- * Error details, present only when the stage failed.
774
- */
775
- error?: Log.Error;
776
- }
777
-
778
- export namespace Log {
779
- /**
780
- * Error details, present only when the stage failed.
781
- */
782
- export interface Error {
783
- message?: string;
784
- }
785
- }
786
- }
787
-
788
- export type DeploymentListByNamespaceResponse =
789
- Array<DeploymentListByNamespaceResponse.DeploymentListByNamespaceResponseItem>;
790
-
791
- export namespace DeploymentListByNamespaceResponse {
792
- export interface DeploymentListByNamespaceResponseItem {
793
- id: string;
794
-
795
- /**
796
- * ISO 8601 timestamp of when the deployment was created.
797
- */
798
- createdAt: string;
799
-
800
- /**
801
- * Current deployment status: QUEUED, WORKING, SUCCESS, FAILURE, FAILURE_SCAN,
802
- * AUTH_REQUIRED, CANCELLED, or INTERNAL_ERROR.
803
- */
804
- status: string;
805
-
806
- /**
807
- * Deployment type: hosted_shttp (Smithery-hosted), external_shttp (external URL),
808
- * or stdio (local binary).
809
- */
810
- type: string;
811
-
812
- /**
813
- * ISO 8601 timestamp of the last status change.
814
- */
815
- updatedAt: string;
816
-
817
- /**
818
- * Git branch this deployment was built from.
819
- */
820
- branch?: string | null;
821
-
822
- /**
823
- * Git commit SHA that triggered this deployment. Present for repo and
824
- * source-tracked deployments.
825
- */
826
- commit?: string | null;
827
-
828
- /**
829
- * Git commit message associated with this deployment.
830
- */
831
- commitMessage?: string | null;
832
-
833
- /**
834
- * The MCP endpoint URL for connecting to this server.
835
- */
836
- mcpUrl?: string;
837
-
838
- /**
839
- * Upstream MCP server URL. Present only for external deployments.
840
- */
841
- upstreamUrl?: string | null;
842
- }
843
- }
844
-
845
- export interface DeploymentResumeResponse {
846
- deploymentId: string;
847
-
848
- status: string;
849
- }
850
-
851
- export interface DeploymentResumeByNamespaceResponse {
852
- deploymentId: string;
853
-
854
- status: string;
855
- }
856
-
857
- /**
858
- * SSE events: init (with buffered logs), log, status, complete
859
- */
860
- export type DeploymentStreamResponse = string;
861
-
862
- /**
863
- * SSE events: init (with buffered logs), log, status, complete
864
- */
865
- export type DeploymentStreamByNamespaceResponse = string;
866
-
867
- export interface DeploymentListParams {
868
- namespace: string;
869
- }
870
-
871
- export interface DeploymentDeployParams {
872
- /**
873
- * Path param
874
- */
875
- namespace: string;
876
-
877
- /**
878
- * Body param: JSON-encoded deployment payload. See DeployPayload schema for
879
- * structure.
880
- */
881
- payload: string;
882
-
883
- /**
884
- * Body param: MCPB bundle file (for stdio deployments)
885
- */
886
- bundle?: Uploadable;
887
-
888
- /**
889
- * Body param: JavaScript module file (for hosted deployments)
890
- */
891
- module?: Uploadable;
892
-
893
- /**
894
- * Body param: Source map file (for hosted deployments)
895
- */
896
- sourcemap?: Uploadable;
897
- }
898
-
899
- export interface DeploymentDeployByNamespaceParams {
900
- /**
901
- * JSON-encoded deployment payload. See DeployPayload schema for structure.
902
- */
903
- payload: string;
904
-
905
- /**
906
- * MCPB bundle file (for stdio deployments)
907
- */
908
- bundle?: Uploadable;
909
-
910
- /**
911
- * JavaScript module file (for hosted deployments)
912
- */
913
- module?: Uploadable;
914
-
915
- /**
916
- * Source map file (for hosted deployments)
917
- */
918
- sourcemap?: Uploadable;
919
- }
920
-
921
- export interface DeploymentGetParams {
922
- namespace: string;
923
-
924
- server: string;
925
- }
926
-
927
- export interface DeploymentGetByNamespaceParams {
928
- namespace: string;
929
- }
930
-
931
- export interface DeploymentResumeParams {
932
- namespace: string;
933
-
934
- server: string;
935
- }
936
-
937
- export interface DeploymentResumeByNamespaceParams {
938
- namespace: string;
939
- }
940
-
941
- export interface DeploymentStreamParams {
942
- namespace: string;
943
-
944
- server: string;
945
- }
946
-
947
- export interface DeploymentStreamByNamespaceParams {
948
- namespace: string;
949
- }
950
-
951
- export declare namespace Deployments {
952
- export {
953
- type DeployPayload as DeployPayload,
954
- type ExternalDeployPayload as ExternalDeployPayload,
955
- type HostedDeployPayload as HostedDeployPayload,
956
- type ServerCard as ServerCard,
957
- type StdioDeployPayload as StdioDeployPayload,
958
- type DeploymentListResponse as DeploymentListResponse,
959
- type DeploymentDeployResponse as DeploymentDeployResponse,
960
- type DeploymentDeployByNamespaceResponse as DeploymentDeployByNamespaceResponse,
961
- type DeploymentGetResponse as DeploymentGetResponse,
962
- type DeploymentGetByNamespaceResponse as DeploymentGetByNamespaceResponse,
963
- type DeploymentListByNamespaceResponse as DeploymentListByNamespaceResponse,
964
- type DeploymentResumeResponse as DeploymentResumeResponse,
965
- type DeploymentResumeByNamespaceResponse as DeploymentResumeByNamespaceResponse,
966
- type DeploymentStreamResponse as DeploymentStreamResponse,
967
- type DeploymentStreamByNamespaceResponse as DeploymentStreamByNamespaceResponse,
968
- type DeploymentListParams as DeploymentListParams,
969
- type DeploymentDeployParams as DeploymentDeployParams,
970
- type DeploymentDeployByNamespaceParams as DeploymentDeployByNamespaceParams,
971
- type DeploymentGetParams as DeploymentGetParams,
972
- type DeploymentGetByNamespaceParams as DeploymentGetByNamespaceParams,
973
- type DeploymentResumeParams as DeploymentResumeParams,
974
- type DeploymentResumeByNamespaceParams as DeploymentResumeByNamespaceParams,
975
- type DeploymentStreamParams as DeploymentStreamParams,
976
- type DeploymentStreamByNamespaceParams as DeploymentStreamByNamespaceParams,
977
- };
978
- }