@statelyai/mcp 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { z } from "zod";
2
+ import { z as z$1 } from "zod";
3
3
 
4
4
  //#region ../api-contract/dist/errors.d.mts
5
5
  /**
@@ -7,7 +7,7 @@ import { z } from "zod";
7
7
  * operations keep the flat `{ error: string }` shape above unchanged; the
8
8
  * nested envelope below applies to resource operations only.
9
9
  */
10
- declare const resourceErrorCodeSchema: z.ZodEnum<{
10
+ declare const resourceErrorCodeSchema: z$1.ZodEnum<{
11
11
  bad_request: "bad_request";
12
12
  unauthenticated: "unauthenticated";
13
13
  forbidden: "forbidden";
@@ -19,61 +19,61 @@ declare const resourceErrorCodeSchema: z.ZodEnum<{
19
19
  upstream_error: "upstream_error";
20
20
  internal_error: "internal_error";
21
21
  }>;
22
- type ResourceErrorCode = z.infer<typeof resourceErrorCodeSchema>;
22
+ type ResourceErrorCode = z$1.infer<typeof resourceErrorCodeSchema>;
23
23
  /** Factory, matching `createApiErrorResponseSchema`, for per-route OpenAPI components. */
24
24
  //#endregion
25
25
  //#region ../api-contract/dist/resources.d.mts
26
- declare const projectSummarySchema: z.ZodObject<{
27
- projectId: z.ZodString;
28
- projectVersionId: z.ZodString;
29
- name: z.ZodString;
30
- description: z.ZodNullable<z.ZodString>;
31
- visibility: z.ZodEnum<{
26
+ declare const projectSummarySchema: z$1.ZodObject<{
27
+ projectId: z$1.ZodString;
28
+ projectVersionId: z$1.ZodString;
29
+ name: z$1.ZodString;
30
+ description: z$1.ZodNullable<z$1.ZodString>;
31
+ visibility: z$1.ZodEnum<{
32
32
  public: "public";
33
33
  unlisted: "unlisted";
34
34
  private: "private";
35
35
  }>;
36
- createdAt: z.ZodString;
37
- updatedAt: z.ZodString;
38
- }, z.core.$strip>;
39
- type ProjectSummary = z.infer<typeof projectSummarySchema>;
40
- declare const projectSchema: z.ZodObject<{
41
- projectId: z.ZodString;
42
- projectVersionId: z.ZodString;
43
- name: z.ZodString;
44
- description: z.ZodNullable<z.ZodString>;
45
- visibility: z.ZodEnum<{
36
+ createdAt: z$1.ZodString;
37
+ updatedAt: z$1.ZodString;
38
+ }, z$1.core.$strip>;
39
+ type ProjectSummary = z$1.infer<typeof projectSummarySchema>;
40
+ declare const projectSchema: z$1.ZodObject<{
41
+ projectId: z$1.ZodString;
42
+ projectVersionId: z$1.ZodString;
43
+ name: z$1.ZodString;
44
+ description: z$1.ZodNullable<z$1.ZodString>;
45
+ visibility: z$1.ZodEnum<{
46
46
  public: "public";
47
47
  unlisted: "unlisted";
48
48
  private: "private";
49
49
  }>;
50
- createdAt: z.ZodString;
51
- updatedAt: z.ZodString;
52
- rootMachineId: z.ZodNullable<z.ZodString>;
53
- machines: z.ZodArray<z.ZodObject<{
54
- machineId: z.ZodString;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>;
57
- type Project = z.infer<typeof projectSchema>;
50
+ createdAt: z$1.ZodString;
51
+ updatedAt: z$1.ZodString;
52
+ rootMachineId: z$1.ZodNullable<z$1.ZodString>;
53
+ machines: z$1.ZodArray<z$1.ZodObject<{
54
+ machineId: z$1.ZodString;
55
+ }, z$1.core.$strip>>;
56
+ }, z$1.core.$strip>;
57
+ type Project = z$1.infer<typeof projectSchema>;
58
58
  /**
59
59
  * `name` is optional: the Registry project envelope only returns machine ids.
60
60
  * Providers that can supply names cheaply should.
61
61
  */
62
- declare const projectMachineSummarySchema: z.ZodObject<{
63
- machineId: z.ZodString;
64
- name: z.ZodOptional<z.ZodString>;
65
- }, z.core.$strip>;
66
- type ProjectMachineSummary = z.infer<typeof projectMachineSummarySchema>;
67
- declare const machineSchema: z.ZodObject<{
68
- machineId: z.ZodString;
69
- name: z.ZodString;
70
- projectId: z.ZodOptional<z.ZodString>;
71
- projectVersionId: z.ZodString;
72
- definition: z.ZodUnknown;
73
- createdAt: z.ZodOptional<z.ZodString>;
74
- updatedAt: z.ZodOptional<z.ZodString>;
75
- }, z.core.$strip>;
76
- type Machine = z.infer<typeof machineSchema>;
62
+ declare const projectMachineSummarySchema: z$1.ZodObject<{
63
+ machineId: z$1.ZodString;
64
+ name: z$1.ZodOptional<z$1.ZodString>;
65
+ }, z$1.core.$strip>;
66
+ type ProjectMachineSummary = z$1.infer<typeof projectMachineSummarySchema>;
67
+ declare const machineSchema: z$1.ZodObject<{
68
+ machineId: z$1.ZodString;
69
+ name: z$1.ZodString;
70
+ projectId: z$1.ZodOptional<z$1.ZodString>;
71
+ projectVersionId: z$1.ZodString;
72
+ definition: z$1.ZodUnknown;
73
+ createdAt: z$1.ZodOptional<z$1.ZodString>;
74
+ updatedAt: z$1.ZodOptional<z$1.ZodString>;
75
+ }, z$1.core.$strip>;
76
+ type Machine = z$1.infer<typeof machineSchema>;
77
77
  //#endregion
78
78
  //#region src/resourceClient.d.ts
79
79
  type ResourceCallOptions = {