@journal.one/gateway-protocol 0.1.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.
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ export declare const GATEWAY_ERROR_CODES: readonly ["INTEGRATION_NOT_FOUND", "EXECUTION_FAILED", "TIMEOUT"];
3
+ export type GatewayErrorCode = (typeof GATEWAY_ERROR_CODES)[number];
4
+ export declare const GatewayErrorCodeSchema: z.ZodEnum<["INTEGRATION_NOT_FOUND", "EXECUTION_FAILED", "TIMEOUT"]>;
5
+ export declare const GatewayErrorSchema: z.ZodObject<{
6
+ code: z.ZodEnum<["INTEGRATION_NOT_FOUND", "EXECUTION_FAILED", "TIMEOUT"]>;
7
+ message: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
10
+ message: string;
11
+ }, {
12
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
13
+ message: string;
14
+ }>;
15
+ export type GatewayError = z.infer<typeof GatewayErrorSchema>;
16
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,mEAItB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB,qEAA8B,CAAC;AAElE,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/dist/errors.js ADDED
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export const GATEWAY_ERROR_CODES = [
3
+ "INTEGRATION_NOT_FOUND",
4
+ "EXECUTION_FAILED",
5
+ "TIMEOUT",
6
+ ];
7
+ export const GatewayErrorCodeSchema = z.enum(GATEWAY_ERROR_CODES);
8
+ export const GatewayErrorSchema = z.object({
9
+ code: GatewayErrorCodeSchema,
10
+ message: z.string(),
11
+ });
12
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,kBAAkB;IAClB,SAAS;CACD,CAAC;AAIX,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { GATEWAY_ERROR_CODES, GatewayErrorCodeSchema, GatewayErrorSchema, type GatewayError, type GatewayErrorCode, } from "./errors.js";
2
+ export { SkillSchema, type Skill } from "./skills.js";
3
+ export { ToolDefinitionSchema, IntegrationSchema, TextContentSchema, ImageContentSchema, ContentBlockSchema, ToolResultSchema, type ToolDefinition, type Integration, type TextContent, type ImageContent, type ContentBlock, type ToolResult, } from "./integrations.js";
4
+ export { AuthenticateMessageSchema, ToolResultMessageSchema, ToolErrorMessageSchema, PongMessageSchema, VersionChangedMessageSchema, VersionsMessageSchema, ToolsMessageSchema, SkillsMessageSchema, GatewayMessageSchema, AuthenticatedMessageSchema, AuthErrorMessageSchema, ToolCallMessageSchema, PingMessageSchema, GetVersionsMessageSchema, GetToolsMessageSchema, GetSkillsMessageSchema, ServiceMessageSchema, type AuthenticateMessage, type ToolResultMessage, type ToolErrorMessage, type PongMessage, type VersionChangedMessage, type VersionsMessage, type ToolsMessage, type SkillsMessage, type GatewayMessage, type AuthenticatedMessage, type AuthErrorMessage, type ToolCallMessage, type PingMessage, type GetVersionsMessage, type GetToolsMessage, type GetSkillsMessage, type ServiceMessage, } from "./messages.js";
5
+ export type { IntegrationProvider, GatewayConfig, GatewayVersions } from "./provider.js";
6
+ export { IntegrationNotFoundError } from "./provider.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,UAAU,GAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export { GATEWAY_ERROR_CODES, GatewayErrorCodeSchema, GatewayErrorSchema, } from "./errors.js";
2
+ export { SkillSchema } from "./skills.js";
3
+ export { ToolDefinitionSchema, IntegrationSchema, TextContentSchema, ImageContentSchema, ContentBlockSchema, ToolResultSchema, } from "./integrations.js";
4
+ export { AuthenticateMessageSchema, ToolResultMessageSchema, ToolErrorMessageSchema, PongMessageSchema, VersionChangedMessageSchema, VersionsMessageSchema, ToolsMessageSchema, SkillsMessageSchema, GatewayMessageSchema, AuthenticatedMessageSchema, AuthErrorMessageSchema, ToolCallMessageSchema, PingMessageSchema, GetVersionsMessageSchema, GetToolsMessageSchema, GetSkillsMessageSchema, ServiceMessageSchema, } from "./messages.js";
5
+ export { IntegrationNotFoundError } from "./provider.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,GAGnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AAEtD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GAOjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,GAkBrB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,165 @@
1
+ import { z } from "zod";
2
+ export declare const ToolDefinitionSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ description: z.ZodString;
5
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ name: string;
8
+ description: string;
9
+ inputSchema: Record<string, unknown>;
10
+ }, {
11
+ name: string;
12
+ description: string;
13
+ inputSchema: Record<string, unknown>;
14
+ }>;
15
+ export type ToolDefinition = z.infer<typeof ToolDefinitionSchema>;
16
+ export declare const IntegrationSchema: z.ZodObject<{
17
+ id: z.ZodString;
18
+ name: z.ZodString;
19
+ description: z.ZodString;
20
+ tools: z.ZodArray<z.ZodObject<{
21
+ name: z.ZodString;
22
+ description: z.ZodString;
23
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ name: string;
26
+ description: string;
27
+ inputSchema: Record<string, unknown>;
28
+ }, {
29
+ name: string;
30
+ description: string;
31
+ inputSchema: Record<string, unknown>;
32
+ }>, "many">;
33
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ content: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ id: string;
38
+ content: string;
39
+ }, {
40
+ id: string;
41
+ content: string;
42
+ }>, "many">>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ name: string;
46
+ description: string;
47
+ tools: {
48
+ name: string;
49
+ description: string;
50
+ inputSchema: Record<string, unknown>;
51
+ }[];
52
+ skills?: {
53
+ id: string;
54
+ content: string;
55
+ }[] | undefined;
56
+ }, {
57
+ id: string;
58
+ name: string;
59
+ description: string;
60
+ tools: {
61
+ name: string;
62
+ description: string;
63
+ inputSchema: Record<string, unknown>;
64
+ }[];
65
+ skills?: {
66
+ id: string;
67
+ content: string;
68
+ }[] | undefined;
69
+ }>;
70
+ export type Integration = z.infer<typeof IntegrationSchema>;
71
+ export declare const TextContentSchema: z.ZodObject<{
72
+ type: z.ZodLiteral<"text">;
73
+ text: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ type: "text";
76
+ text: string;
77
+ }, {
78
+ type: "text";
79
+ text: string;
80
+ }>;
81
+ export type TextContent = z.infer<typeof TextContentSchema>;
82
+ export declare const ImageContentSchema: z.ZodObject<{
83
+ type: z.ZodLiteral<"image">;
84
+ data: z.ZodString;
85
+ mimeType: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ type: "image";
88
+ data: string;
89
+ mimeType: string;
90
+ }, {
91
+ type: "image";
92
+ data: string;
93
+ mimeType: string;
94
+ }>;
95
+ export type ImageContent = z.infer<typeof ImageContentSchema>;
96
+ export declare const ContentBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
97
+ type: z.ZodLiteral<"text">;
98
+ text: z.ZodString;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type: "text";
101
+ text: string;
102
+ }, {
103
+ type: "text";
104
+ text: string;
105
+ }>, z.ZodObject<{
106
+ type: z.ZodLiteral<"image">;
107
+ data: z.ZodString;
108
+ mimeType: z.ZodString;
109
+ }, "strip", z.ZodTypeAny, {
110
+ type: "image";
111
+ data: string;
112
+ mimeType: string;
113
+ }, {
114
+ type: "image";
115
+ data: string;
116
+ mimeType: string;
117
+ }>]>;
118
+ export type ContentBlock = z.infer<typeof ContentBlockSchema>;
119
+ export declare const ToolResultSchema: z.ZodObject<{
120
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
121
+ type: z.ZodLiteral<"text">;
122
+ text: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ type: "text";
125
+ text: string;
126
+ }, {
127
+ type: "text";
128
+ text: string;
129
+ }>, z.ZodObject<{
130
+ type: z.ZodLiteral<"image">;
131
+ data: z.ZodString;
132
+ mimeType: z.ZodString;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type: "image";
135
+ data: string;
136
+ mimeType: string;
137
+ }, {
138
+ type: "image";
139
+ data: string;
140
+ mimeType: string;
141
+ }>]>, "many">;
142
+ isError: z.ZodOptional<z.ZodBoolean>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ content: ({
145
+ type: "text";
146
+ text: string;
147
+ } | {
148
+ type: "image";
149
+ data: string;
150
+ mimeType: string;
151
+ })[];
152
+ isError?: boolean | undefined;
153
+ }, {
154
+ content: ({
155
+ type: "text";
156
+ text: string;
157
+ } | {
158
+ type: "image";
159
+ data: string;
160
+ mimeType: string;
161
+ })[];
162
+ isError?: boolean | undefined;
163
+ }>;
164
+ export type ToolResult = z.infer<typeof ToolResultSchema>;
165
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;IAG7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ import { SkillSchema } from "./skills.js";
3
+ export const ToolDefinitionSchema = z.object({
4
+ name: z.string(),
5
+ description: z.string(),
6
+ inputSchema: z.record(z.unknown()),
7
+ });
8
+ export const IntegrationSchema = z.object({
9
+ id: z.string(),
10
+ name: z.string(),
11
+ description: z.string(),
12
+ tools: z.array(ToolDefinitionSchema),
13
+ skills: z.array(SkillSchema).optional(),
14
+ });
15
+ export const TextContentSchema = z.object({
16
+ type: z.literal("text"),
17
+ text: z.string(),
18
+ });
19
+ export const ImageContentSchema = z.object({
20
+ type: z.literal("image"),
21
+ data: z.string(),
22
+ mimeType: z.string(),
23
+ });
24
+ export const ContentBlockSchema = z.discriminatedUnion("type", [
25
+ TextContentSchema,
26
+ ImageContentSchema,
27
+ ]);
28
+ export const ToolResultSchema = z.object({
29
+ content: z.array(ContentBlockSchema),
30
+ isError: z.boolean().optional(),
31
+ });
32
+ //# sourceMappingURL=integrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/integr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MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACpC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
@@ -0,0 +1,730 @@
1
+ import { z } from "zod";
2
+ export declare const AuthenticateMessageSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"authenticate">;
4
+ token: z.ZodString;
5
+ protocolVersion: z.ZodNumber;
6
+ gatewayVersion: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type: "authenticate";
9
+ token: string;
10
+ protocolVersion: number;
11
+ gatewayVersion: string;
12
+ }, {
13
+ type: "authenticate";
14
+ token: string;
15
+ protocolVersion: number;
16
+ gatewayVersion: string;
17
+ }>;
18
+ export type AuthenticateMessage = z.infer<typeof AuthenticateMessageSchema>;
19
+ export declare const ToolResultMessageSchema: z.ZodObject<{
20
+ type: z.ZodLiteral<"tool_result">;
21
+ requestId: z.ZodString;
22
+ result: z.ZodObject<{
23
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
24
+ type: z.ZodLiteral<"text">;
25
+ text: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "text";
28
+ text: string;
29
+ }, {
30
+ type: "text";
31
+ text: string;
32
+ }>, z.ZodObject<{
33
+ type: z.ZodLiteral<"image">;
34
+ data: z.ZodString;
35
+ mimeType: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "image";
38
+ data: string;
39
+ mimeType: string;
40
+ }, {
41
+ type: "image";
42
+ data: string;
43
+ mimeType: string;
44
+ }>]>, "many">;
45
+ isError: z.ZodOptional<z.ZodBoolean>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ content: ({
48
+ type: "text";
49
+ text: string;
50
+ } | {
51
+ type: "image";
52
+ data: string;
53
+ mimeType: string;
54
+ })[];
55
+ isError?: boolean | undefined;
56
+ }, {
57
+ content: ({
58
+ type: "text";
59
+ text: string;
60
+ } | {
61
+ type: "image";
62
+ data: string;
63
+ mimeType: string;
64
+ })[];
65
+ isError?: boolean | undefined;
66
+ }>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ type: "tool_result";
69
+ requestId: string;
70
+ result: {
71
+ content: ({
72
+ type: "text";
73
+ text: string;
74
+ } | {
75
+ type: "image";
76
+ data: string;
77
+ mimeType: string;
78
+ })[];
79
+ isError?: boolean | undefined;
80
+ };
81
+ }, {
82
+ type: "tool_result";
83
+ requestId: string;
84
+ result: {
85
+ content: ({
86
+ type: "text";
87
+ text: string;
88
+ } | {
89
+ type: "image";
90
+ data: string;
91
+ mimeType: string;
92
+ })[];
93
+ isError?: boolean | undefined;
94
+ };
95
+ }>;
96
+ export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>;
97
+ export declare const ToolErrorMessageSchema: z.ZodObject<{
98
+ type: z.ZodLiteral<"tool_error">;
99
+ requestId: z.ZodString;
100
+ error: z.ZodObject<{
101
+ code: z.ZodEnum<["INTEGRATION_NOT_FOUND", "EXECUTION_FAILED", "TIMEOUT"]>;
102
+ message: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
105
+ message: string;
106
+ }, {
107
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
108
+ message: string;
109
+ }>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: "tool_error";
112
+ requestId: string;
113
+ error: {
114
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
115
+ message: string;
116
+ };
117
+ }, {
118
+ type: "tool_error";
119
+ requestId: string;
120
+ error: {
121
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
122
+ message: string;
123
+ };
124
+ }>;
125
+ export type ToolErrorMessage = z.infer<typeof ToolErrorMessageSchema>;
126
+ export declare const PongMessageSchema: z.ZodObject<{
127
+ type: z.ZodLiteral<"pong">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ type: "pong";
130
+ }, {
131
+ type: "pong";
132
+ }>;
133
+ export type PongMessage = z.infer<typeof PongMessageSchema>;
134
+ export declare const VersionChangedMessageSchema: z.ZodObject<{
135
+ type: z.ZodLiteral<"version_changed">;
136
+ mcpVersion: z.ZodNullable<z.ZodString>;
137
+ skillsVersion: z.ZodNullable<z.ZodString>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ type: "version_changed";
140
+ mcpVersion: string | null;
141
+ skillsVersion: string | null;
142
+ }, {
143
+ type: "version_changed";
144
+ mcpVersion: string | null;
145
+ skillsVersion: string | null;
146
+ }>;
147
+ export type VersionChangedMessage = z.infer<typeof VersionChangedMessageSchema>;
148
+ export declare const VersionsMessageSchema: z.ZodObject<{
149
+ type: z.ZodLiteral<"versions">;
150
+ requestId: z.ZodString;
151
+ mcpVersion: z.ZodNullable<z.ZodString>;
152
+ skillsVersion: z.ZodNullable<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "versions";
155
+ requestId: string;
156
+ mcpVersion: string | null;
157
+ skillsVersion: string | null;
158
+ }, {
159
+ type: "versions";
160
+ requestId: string;
161
+ mcpVersion: string | null;
162
+ skillsVersion: string | null;
163
+ }>;
164
+ export type VersionsMessage = z.infer<typeof VersionsMessageSchema>;
165
+ export declare const ToolsMessageSchema: z.ZodObject<{
166
+ type: z.ZodLiteral<"tools">;
167
+ requestId: z.ZodString;
168
+ integrations: z.ZodArray<z.ZodObject<{
169
+ id: z.ZodString;
170
+ name: z.ZodString;
171
+ description: z.ZodString;
172
+ tools: z.ZodArray<z.ZodObject<{
173
+ name: z.ZodString;
174
+ description: z.ZodString;
175
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ name: string;
178
+ description: string;
179
+ inputSchema: Record<string, unknown>;
180
+ }, {
181
+ name: string;
182
+ description: string;
183
+ inputSchema: Record<string, unknown>;
184
+ }>, "many">;
185
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
+ id: z.ZodString;
187
+ content: z.ZodString;
188
+ }, "strip", z.ZodTypeAny, {
189
+ id: string;
190
+ content: string;
191
+ }, {
192
+ id: string;
193
+ content: string;
194
+ }>, "many">>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ id: string;
197
+ name: string;
198
+ description: string;
199
+ tools: {
200
+ name: string;
201
+ description: string;
202
+ inputSchema: Record<string, unknown>;
203
+ }[];
204
+ skills?: {
205
+ id: string;
206
+ content: string;
207
+ }[] | undefined;
208
+ }, {
209
+ id: string;
210
+ name: string;
211
+ description: string;
212
+ tools: {
213
+ name: string;
214
+ description: string;
215
+ inputSchema: Record<string, unknown>;
216
+ }[];
217
+ skills?: {
218
+ id: string;
219
+ content: string;
220
+ }[] | undefined;
221
+ }>, "many">;
222
+ mcpVersion: z.ZodNullable<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "tools";
225
+ requestId: string;
226
+ mcpVersion: string | null;
227
+ integrations: {
228
+ id: string;
229
+ name: string;
230
+ description: string;
231
+ tools: {
232
+ name: string;
233
+ description: string;
234
+ inputSchema: Record<string, unknown>;
235
+ }[];
236
+ skills?: {
237
+ id: string;
238
+ content: string;
239
+ }[] | undefined;
240
+ }[];
241
+ }, {
242
+ type: "tools";
243
+ requestId: string;
244
+ mcpVersion: string | null;
245
+ integrations: {
246
+ id: string;
247
+ name: string;
248
+ description: string;
249
+ tools: {
250
+ name: string;
251
+ description: string;
252
+ inputSchema: Record<string, unknown>;
253
+ }[];
254
+ skills?: {
255
+ id: string;
256
+ content: string;
257
+ }[] | undefined;
258
+ }[];
259
+ }>;
260
+ export type ToolsMessage = z.infer<typeof ToolsMessageSchema>;
261
+ export declare const SkillsMessageSchema: z.ZodObject<{
262
+ type: z.ZodLiteral<"skills">;
263
+ requestId: z.ZodString;
264
+ skills: z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ content: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ id: string;
269
+ content: string;
270
+ }, {
271
+ id: string;
272
+ content: string;
273
+ }>, "many">;
274
+ skillsVersion: z.ZodNullable<z.ZodString>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ type: "skills";
277
+ skills: {
278
+ id: string;
279
+ content: string;
280
+ }[];
281
+ requestId: string;
282
+ skillsVersion: string | null;
283
+ }, {
284
+ type: "skills";
285
+ skills: {
286
+ id: string;
287
+ content: string;
288
+ }[];
289
+ requestId: string;
290
+ skillsVersion: string | null;
291
+ }>;
292
+ export type SkillsMessage = z.infer<typeof SkillsMessageSchema>;
293
+ export declare const GatewayMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
294
+ type: z.ZodLiteral<"authenticate">;
295
+ token: z.ZodString;
296
+ protocolVersion: z.ZodNumber;
297
+ gatewayVersion: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ type: "authenticate";
300
+ token: string;
301
+ protocolVersion: number;
302
+ gatewayVersion: string;
303
+ }, {
304
+ type: "authenticate";
305
+ token: string;
306
+ protocolVersion: number;
307
+ gatewayVersion: string;
308
+ }>, z.ZodObject<{
309
+ type: z.ZodLiteral<"tool_result">;
310
+ requestId: z.ZodString;
311
+ result: z.ZodObject<{
312
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
313
+ type: z.ZodLiteral<"text">;
314
+ text: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ type: "text";
317
+ text: string;
318
+ }, {
319
+ type: "text";
320
+ text: string;
321
+ }>, z.ZodObject<{
322
+ type: z.ZodLiteral<"image">;
323
+ data: z.ZodString;
324
+ mimeType: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ type: "image";
327
+ data: string;
328
+ mimeType: string;
329
+ }, {
330
+ type: "image";
331
+ data: string;
332
+ mimeType: string;
333
+ }>]>, "many">;
334
+ isError: z.ZodOptional<z.ZodBoolean>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ content: ({
337
+ type: "text";
338
+ text: string;
339
+ } | {
340
+ type: "image";
341
+ data: string;
342
+ mimeType: string;
343
+ })[];
344
+ isError?: boolean | undefined;
345
+ }, {
346
+ content: ({
347
+ type: "text";
348
+ text: string;
349
+ } | {
350
+ type: "image";
351
+ data: string;
352
+ mimeType: string;
353
+ })[];
354
+ isError?: boolean | undefined;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ type: "tool_result";
358
+ requestId: string;
359
+ result: {
360
+ content: ({
361
+ type: "text";
362
+ text: string;
363
+ } | {
364
+ type: "image";
365
+ data: string;
366
+ mimeType: string;
367
+ })[];
368
+ isError?: boolean | undefined;
369
+ };
370
+ }, {
371
+ type: "tool_result";
372
+ requestId: string;
373
+ result: {
374
+ content: ({
375
+ type: "text";
376
+ text: string;
377
+ } | {
378
+ type: "image";
379
+ data: string;
380
+ mimeType: string;
381
+ })[];
382
+ isError?: boolean | undefined;
383
+ };
384
+ }>, z.ZodObject<{
385
+ type: z.ZodLiteral<"tool_error">;
386
+ requestId: z.ZodString;
387
+ error: z.ZodObject<{
388
+ code: z.ZodEnum<["INTEGRATION_NOT_FOUND", "EXECUTION_FAILED", "TIMEOUT"]>;
389
+ message: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
392
+ message: string;
393
+ }, {
394
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
395
+ message: string;
396
+ }>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ type: "tool_error";
399
+ requestId: string;
400
+ error: {
401
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
402
+ message: string;
403
+ };
404
+ }, {
405
+ type: "tool_error";
406
+ requestId: string;
407
+ error: {
408
+ code: "INTEGRATION_NOT_FOUND" | "EXECUTION_FAILED" | "TIMEOUT";
409
+ message: string;
410
+ };
411
+ }>, z.ZodObject<{
412
+ type: z.ZodLiteral<"pong">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ type: "pong";
415
+ }, {
416
+ type: "pong";
417
+ }>, z.ZodObject<{
418
+ type: z.ZodLiteral<"version_changed">;
419
+ mcpVersion: z.ZodNullable<z.ZodString>;
420
+ skillsVersion: z.ZodNullable<z.ZodString>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ type: "version_changed";
423
+ mcpVersion: string | null;
424
+ skillsVersion: string | null;
425
+ }, {
426
+ type: "version_changed";
427
+ mcpVersion: string | null;
428
+ skillsVersion: string | null;
429
+ }>, z.ZodObject<{
430
+ type: z.ZodLiteral<"versions">;
431
+ requestId: z.ZodString;
432
+ mcpVersion: z.ZodNullable<z.ZodString>;
433
+ skillsVersion: z.ZodNullable<z.ZodString>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ type: "versions";
436
+ requestId: string;
437
+ mcpVersion: string | null;
438
+ skillsVersion: string | null;
439
+ }, {
440
+ type: "versions";
441
+ requestId: string;
442
+ mcpVersion: string | null;
443
+ skillsVersion: string | null;
444
+ }>, z.ZodObject<{
445
+ type: z.ZodLiteral<"tools">;
446
+ requestId: z.ZodString;
447
+ integrations: z.ZodArray<z.ZodObject<{
448
+ id: z.ZodString;
449
+ name: z.ZodString;
450
+ description: z.ZodString;
451
+ tools: z.ZodArray<z.ZodObject<{
452
+ name: z.ZodString;
453
+ description: z.ZodString;
454
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ name: string;
457
+ description: string;
458
+ inputSchema: Record<string, unknown>;
459
+ }, {
460
+ name: string;
461
+ description: string;
462
+ inputSchema: Record<string, unknown>;
463
+ }>, "many">;
464
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
465
+ id: z.ZodString;
466
+ content: z.ZodString;
467
+ }, "strip", z.ZodTypeAny, {
468
+ id: string;
469
+ content: string;
470
+ }, {
471
+ id: string;
472
+ content: string;
473
+ }>, "many">>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ id: string;
476
+ name: string;
477
+ description: string;
478
+ tools: {
479
+ name: string;
480
+ description: string;
481
+ inputSchema: Record<string, unknown>;
482
+ }[];
483
+ skills?: {
484
+ id: string;
485
+ content: string;
486
+ }[] | undefined;
487
+ }, {
488
+ id: string;
489
+ name: string;
490
+ description: string;
491
+ tools: {
492
+ name: string;
493
+ description: string;
494
+ inputSchema: Record<string, unknown>;
495
+ }[];
496
+ skills?: {
497
+ id: string;
498
+ content: string;
499
+ }[] | undefined;
500
+ }>, "many">;
501
+ mcpVersion: z.ZodNullable<z.ZodString>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ type: "tools";
504
+ requestId: string;
505
+ mcpVersion: string | null;
506
+ integrations: {
507
+ id: string;
508
+ name: string;
509
+ description: string;
510
+ tools: {
511
+ name: string;
512
+ description: string;
513
+ inputSchema: Record<string, unknown>;
514
+ }[];
515
+ skills?: {
516
+ id: string;
517
+ content: string;
518
+ }[] | undefined;
519
+ }[];
520
+ }, {
521
+ type: "tools";
522
+ requestId: string;
523
+ mcpVersion: string | null;
524
+ integrations: {
525
+ id: string;
526
+ name: string;
527
+ description: string;
528
+ tools: {
529
+ name: string;
530
+ description: string;
531
+ inputSchema: Record<string, unknown>;
532
+ }[];
533
+ skills?: {
534
+ id: string;
535
+ content: string;
536
+ }[] | undefined;
537
+ }[];
538
+ }>, z.ZodObject<{
539
+ type: z.ZodLiteral<"skills">;
540
+ requestId: z.ZodString;
541
+ skills: z.ZodArray<z.ZodObject<{
542
+ id: z.ZodString;
543
+ content: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ id: string;
546
+ content: string;
547
+ }, {
548
+ id: string;
549
+ content: string;
550
+ }>, "many">;
551
+ skillsVersion: z.ZodNullable<z.ZodString>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: "skills";
554
+ skills: {
555
+ id: string;
556
+ content: string;
557
+ }[];
558
+ requestId: string;
559
+ skillsVersion: string | null;
560
+ }, {
561
+ type: "skills";
562
+ skills: {
563
+ id: string;
564
+ content: string;
565
+ }[];
566
+ requestId: string;
567
+ skillsVersion: string | null;
568
+ }>]>;
569
+ export type GatewayMessage = z.infer<typeof GatewayMessageSchema>;
570
+ export declare const AuthenticatedMessageSchema: z.ZodObject<{
571
+ type: z.ZodLiteral<"authenticated">;
572
+ organizationId: z.ZodString;
573
+ organizationName: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "authenticated";
576
+ organizationId: string;
577
+ organizationName?: string | undefined;
578
+ }, {
579
+ type: "authenticated";
580
+ organizationId: string;
581
+ organizationName?: string | undefined;
582
+ }>;
583
+ export type AuthenticatedMessage = z.infer<typeof AuthenticatedMessageSchema>;
584
+ export declare const AuthErrorMessageSchema: z.ZodObject<{
585
+ type: z.ZodLiteral<"auth_error">;
586
+ error: z.ZodString;
587
+ }, "strip", z.ZodTypeAny, {
588
+ type: "auth_error";
589
+ error: string;
590
+ }, {
591
+ type: "auth_error";
592
+ error: string;
593
+ }>;
594
+ export type AuthErrorMessage = z.infer<typeof AuthErrorMessageSchema>;
595
+ export declare const ToolCallMessageSchema: z.ZodObject<{
596
+ type: z.ZodLiteral<"tool_call">;
597
+ requestId: z.ZodString;
598
+ integrationId: z.ZodString;
599
+ toolName: z.ZodString;
600
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ type: "tool_call";
603
+ requestId: string;
604
+ integrationId: string;
605
+ toolName: string;
606
+ arguments: Record<string, unknown>;
607
+ }, {
608
+ type: "tool_call";
609
+ requestId: string;
610
+ integrationId: string;
611
+ toolName: string;
612
+ arguments: Record<string, unknown>;
613
+ }>;
614
+ export type ToolCallMessage = z.infer<typeof ToolCallMessageSchema>;
615
+ export declare const PingMessageSchema: z.ZodObject<{
616
+ type: z.ZodLiteral<"ping">;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: "ping";
619
+ }, {
620
+ type: "ping";
621
+ }>;
622
+ export type PingMessage = z.infer<typeof PingMessageSchema>;
623
+ export declare const GetVersionsMessageSchema: z.ZodObject<{
624
+ type: z.ZodLiteral<"get_versions">;
625
+ requestId: z.ZodString;
626
+ }, "strip", z.ZodTypeAny, {
627
+ type: "get_versions";
628
+ requestId: string;
629
+ }, {
630
+ type: "get_versions";
631
+ requestId: string;
632
+ }>;
633
+ export type GetVersionsMessage = z.infer<typeof GetVersionsMessageSchema>;
634
+ export declare const GetToolsMessageSchema: z.ZodObject<{
635
+ type: z.ZodLiteral<"get_tools">;
636
+ requestId: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
638
+ type: "get_tools";
639
+ requestId: string;
640
+ }, {
641
+ type: "get_tools";
642
+ requestId: string;
643
+ }>;
644
+ export type GetToolsMessage = z.infer<typeof GetToolsMessageSchema>;
645
+ export declare const GetSkillsMessageSchema: z.ZodObject<{
646
+ type: z.ZodLiteral<"get_skills">;
647
+ requestId: z.ZodString;
648
+ }, "strip", z.ZodTypeAny, {
649
+ type: "get_skills";
650
+ requestId: string;
651
+ }, {
652
+ type: "get_skills";
653
+ requestId: string;
654
+ }>;
655
+ export type GetSkillsMessage = z.infer<typeof GetSkillsMessageSchema>;
656
+ export declare const ServiceMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
657
+ type: z.ZodLiteral<"authenticated">;
658
+ organizationId: z.ZodString;
659
+ organizationName: z.ZodOptional<z.ZodString>;
660
+ }, "strip", z.ZodTypeAny, {
661
+ type: "authenticated";
662
+ organizationId: string;
663
+ organizationName?: string | undefined;
664
+ }, {
665
+ type: "authenticated";
666
+ organizationId: string;
667
+ organizationName?: string | undefined;
668
+ }>, z.ZodObject<{
669
+ type: z.ZodLiteral<"auth_error">;
670
+ error: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ type: "auth_error";
673
+ error: string;
674
+ }, {
675
+ type: "auth_error";
676
+ error: string;
677
+ }>, z.ZodObject<{
678
+ type: z.ZodLiteral<"tool_call">;
679
+ requestId: z.ZodString;
680
+ integrationId: z.ZodString;
681
+ toolName: z.ZodString;
682
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ type: "tool_call";
685
+ requestId: string;
686
+ integrationId: string;
687
+ toolName: string;
688
+ arguments: Record<string, unknown>;
689
+ }, {
690
+ type: "tool_call";
691
+ requestId: string;
692
+ integrationId: string;
693
+ toolName: string;
694
+ arguments: Record<string, unknown>;
695
+ }>, z.ZodObject<{
696
+ type: z.ZodLiteral<"ping">;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: "ping";
699
+ }, {
700
+ type: "ping";
701
+ }>, z.ZodObject<{
702
+ type: z.ZodLiteral<"get_versions">;
703
+ requestId: z.ZodString;
704
+ }, "strip", z.ZodTypeAny, {
705
+ type: "get_versions";
706
+ requestId: string;
707
+ }, {
708
+ type: "get_versions";
709
+ requestId: string;
710
+ }>, z.ZodObject<{
711
+ type: z.ZodLiteral<"get_tools">;
712
+ requestId: z.ZodString;
713
+ }, "strip", z.ZodTypeAny, {
714
+ type: "get_tools";
715
+ requestId: string;
716
+ }, {
717
+ type: "get_tools";
718
+ requestId: string;
719
+ }>, z.ZodObject<{
720
+ type: z.ZodLiteral<"get_skills">;
721
+ requestId: z.ZodString;
722
+ }, "strip", z.ZodTypeAny, {
723
+ type: "get_skills";
724
+ requestId: string;
725
+ }, {
726
+ type: "get_skills";
727
+ requestId: string;
728
+ }>]>;
729
+ export type ServiceMessage = z.infer<typeof ServiceMessageSchema>;
730
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAA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,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,99 @@
1
+ import { z } from "zod";
2
+ import { GatewayErrorSchema } from "./errors.js";
3
+ import { IntegrationSchema, ToolResultSchema } from "./integrations.js";
4
+ import { SkillSchema } from "./skills.js";
5
+ // --- Gateway → Service messages ---
6
+ export const AuthenticateMessageSchema = z.object({
7
+ type: z.literal("authenticate"),
8
+ token: z.string(),
9
+ protocolVersion: z.number(),
10
+ gatewayVersion: z.string(),
11
+ });
12
+ export const ToolResultMessageSchema = z.object({
13
+ type: z.literal("tool_result"),
14
+ requestId: z.string(),
15
+ result: ToolResultSchema,
16
+ });
17
+ export const ToolErrorMessageSchema = z.object({
18
+ type: z.literal("tool_error"),
19
+ requestId: z.string(),
20
+ error: GatewayErrorSchema,
21
+ });
22
+ export const PongMessageSchema = z.object({
23
+ type: z.literal("pong"),
24
+ });
25
+ export const VersionChangedMessageSchema = z.object({
26
+ type: z.literal("version_changed"),
27
+ mcpVersion: z.string().nullable(),
28
+ skillsVersion: z.string().nullable(),
29
+ });
30
+ export const VersionsMessageSchema = z.object({
31
+ type: z.literal("versions"),
32
+ requestId: z.string(),
33
+ mcpVersion: z.string().nullable(),
34
+ skillsVersion: z.string().nullable(),
35
+ });
36
+ export const ToolsMessageSchema = z.object({
37
+ type: z.literal("tools"),
38
+ requestId: z.string(),
39
+ integrations: z.array(IntegrationSchema),
40
+ mcpVersion: z.string().nullable(),
41
+ });
42
+ export const SkillsMessageSchema = z.object({
43
+ type: z.literal("skills"),
44
+ requestId: z.string(),
45
+ skills: z.array(SkillSchema),
46
+ skillsVersion: z.string().nullable(),
47
+ });
48
+ export const GatewayMessageSchema = z.discriminatedUnion("type", [
49
+ AuthenticateMessageSchema,
50
+ ToolResultMessageSchema,
51
+ ToolErrorMessageSchema,
52
+ PongMessageSchema,
53
+ VersionChangedMessageSchema,
54
+ VersionsMessageSchema,
55
+ ToolsMessageSchema,
56
+ SkillsMessageSchema,
57
+ ]);
58
+ // --- Service → Gateway messages ---
59
+ export const AuthenticatedMessageSchema = z.object({
60
+ type: z.literal("authenticated"),
61
+ organizationId: z.string(),
62
+ organizationName: z.string().optional(),
63
+ });
64
+ export const AuthErrorMessageSchema = z.object({
65
+ type: z.literal("auth_error"),
66
+ error: z.string(),
67
+ });
68
+ export const ToolCallMessageSchema = z.object({
69
+ type: z.literal("tool_call"),
70
+ requestId: z.string(),
71
+ integrationId: z.string(),
72
+ toolName: z.string(),
73
+ arguments: z.record(z.unknown()),
74
+ });
75
+ export const PingMessageSchema = z.object({
76
+ type: z.literal("ping"),
77
+ });
78
+ export const GetVersionsMessageSchema = z.object({
79
+ type: z.literal("get_versions"),
80
+ requestId: z.string(),
81
+ });
82
+ export const GetToolsMessageSchema = z.object({
83
+ type: z.literal("get_tools"),
84
+ requestId: z.string(),
85
+ });
86
+ export const GetSkillsMessageSchema = z.object({
87
+ type: z.literal("get_skills"),
88
+ requestId: z.string(),
89
+ });
90
+ export const ServiceMessageSchema = z.discriminatedUnion("type", [
91
+ AuthenticatedMessageSchema,
92
+ AuthErrorMessageSchema,
93
+ ToolCallMessageSchema,
94
+ PingMessageSchema,
95
+ GetVersionsMessageSchema,
96
+ GetToolsMessageSchema,
97
+ GetSkillsMessageSchema,
98
+ ]);
99
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.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E;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC/D,0BAA0B;IAC1B,sBAAsB;IACtB,qBAAqB;IACrB,iBAAiB;IACjB,wBAAwB;IACxB,qBAAqB;IACrB,sBAAsB;CACvB,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Integration, ToolResult } from "./integrations.js";
2
+ import type { Skill } from "./skills.js";
3
+ export interface GatewayVersions {
4
+ mcpVersion: string | null;
5
+ skillsVersion: string | null;
6
+ }
7
+ export interface IntegrationProvider {
8
+ getTools(): Promise<Integration[]>;
9
+ getSkills(): Skill[];
10
+ getVersions(): GatewayVersions;
11
+ callTool(integrationId: string, toolName: string, args: Record<string, unknown>): Promise<ToolResult>;
12
+ start(): Promise<void>;
13
+ stop(): Promise<void>;
14
+ on?(event: "versions_changed", listener: () => void): void;
15
+ off?(event: "versions_changed", listener: () => void): void;
16
+ }
17
+ export declare class IntegrationNotFoundError extends Error {
18
+ constructor(integrationId: string, detail?: string);
19
+ }
20
+ export interface GatewayConfig {
21
+ token: string;
22
+ url: string;
23
+ logLevel: "debug" | "info" | "warn" | "error";
24
+ }
25
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACnC,SAAS,IAAI,KAAK,EAAE,CAAC;IACrB,WAAW,IAAI,eAAe,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACtG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,EAAE,CAAC,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC3D,GAAG,CAAC,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CAC7D;AAED,qBAAa,wBAAyB,SAAQ,KAAK;gBACrC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAInD;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC/C"}
@@ -0,0 +1,7 @@
1
+ export class IntegrationNotFoundError extends Error {
2
+ constructor(integrationId, detail) {
3
+ super(detail ?? `Integration "${integrationId}" is not registered`);
4
+ this.name = "IntegrationNotFoundError";
5
+ }
6
+ }
7
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IACjD,YAAY,aAAqB,EAAE,MAAe;QAChD,KAAK,CAAC,MAAM,IAAI,gBAAgB,aAAa,qBAAqB,CAAC,CAAC;QACpE,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAC;IACzC,CAAC;CACF"}
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ export declare const SkillSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ content: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ id: string;
7
+ content: string;
8
+ }, {
9
+ id: string;
10
+ content: string;
11
+ }>;
12
+ export type Skill = z.infer<typeof SkillSchema>;
13
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;EAGtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
package/dist/skills.js ADDED
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export const SkillSchema = z.object({
3
+ id: z.string(),
4
+ content: z.string(),
5
+ });
6
+ //# sourceMappingURL=skills.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.js","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@journal.one/gateway-protocol",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js"
14
+ }
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "dependencies": {
20
+ "zod": "^3.24"
21
+ },
22
+ "devDependencies": {
23
+ "typescript": "^5.7"
24
+ },
25
+ "scripts": {
26
+ "build": "tsc",
27
+ "typecheck": "tsc --noEmit"
28
+ }
29
+ }