@myagentroam/protocol 0.9.126 → 0.9.128

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.js CHANGED
@@ -8,6 +8,7 @@ export * from './mcp.js';
8
8
  export * from './git-identity.js';
9
9
  export * from './direct-transfer.js';
10
10
  export * from './terminal-direct.js';
11
+ export * from './mail-notification.js';
11
12
  export const healthStatusSchema = z.object({
12
13
  status: z.literal('ok')
13
14
  });
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod';
2
+ export declare const mailNotificationRequestSchema: z.ZodObject<{
3
+ executionId: z.ZodString;
4
+ sessionId: z.ZodString;
5
+ workspaceId: z.ZodString;
6
+ userId: z.ZodNumber;
7
+ source: z.ZodEnum<["MANUAL", "SCHEDULED"]>;
8
+ callId: z.ZodString;
9
+ templateId: z.ZodString;
10
+ title: z.ZodOptional<z.ZodString>;
11
+ recipientEmail: z.ZodString;
12
+ message: z.ZodString;
13
+ }, "strict", z.ZodTypeAny, {
14
+ message: string;
15
+ workspaceId: string;
16
+ templateId: string;
17
+ sessionId: string;
18
+ executionId: string;
19
+ userId: number;
20
+ source: "MANUAL" | "SCHEDULED";
21
+ callId: string;
22
+ recipientEmail: string;
23
+ title?: string | undefined;
24
+ }, {
25
+ message: string;
26
+ workspaceId: string;
27
+ templateId: string;
28
+ sessionId: string;
29
+ executionId: string;
30
+ userId: number;
31
+ source: "MANUAL" | "SCHEDULED";
32
+ callId: string;
33
+ recipientEmail: string;
34
+ title?: string | undefined;
35
+ }>;
36
+ export type MailNotificationRequest = z.infer<typeof mailNotificationRequestSchema>;
37
+ export declare const mailNotificationResponseSchema: z.ZodUnion<[z.ZodObject<{
38
+ accepted: z.ZodLiteral<true>;
39
+ }, "strict", z.ZodTypeAny, {
40
+ accepted: true;
41
+ }, {
42
+ accepted: true;
43
+ }>, z.ZodObject<{
44
+ error: z.ZodObject<{
45
+ code: z.ZodString;
46
+ message: z.ZodString;
47
+ }, "strict", z.ZodTypeAny, {
48
+ code: string;
49
+ message: string;
50
+ }, {
51
+ code: string;
52
+ message: string;
53
+ }>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ error: {
56
+ code: string;
57
+ message: string;
58
+ };
59
+ }, {
60
+ error: {
61
+ code: string;
62
+ message: string;
63
+ };
64
+ }>]>;
65
+ export type MailNotificationResponse = z.infer<typeof mailNotificationResponseSchema>;
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ const id = z
3
+ .string()
4
+ .min(1)
5
+ .max(128)
6
+ .regex(/^[A-Za-z0-9_-]+$/u);
7
+ export const mailNotificationRequestSchema = z
8
+ .object({
9
+ executionId: id,
10
+ sessionId: id,
11
+ workspaceId: id,
12
+ userId: z.number().int().positive().safe(),
13
+ source: z.enum(['MANUAL', 'SCHEDULED']),
14
+ callId: z.string().uuid(),
15
+ templateId: z
16
+ .string()
17
+ .max(64)
18
+ .regex(/^[A-Za-z0-9-]*$/u),
19
+ title: z
20
+ .string()
21
+ .max(160)
22
+ .regex(/^[^\r\n]*$/u)
23
+ .optional(),
24
+ recipientEmail: z.string().min(3).max(320),
25
+ message: z.string().min(1).max(4000)
26
+ })
27
+ .strict();
28
+ export const mailNotificationResponseSchema = z.union([
29
+ z.object({ accepted: z.literal(true) }).strict(),
30
+ z
31
+ .object({
32
+ error: z
33
+ .object({
34
+ code: z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/u),
35
+ message: z.string().min(1).max(512)
36
+ })
37
+ .strict()
38
+ })
39
+ .strict()
40
+ ]);
package/dist/mcp.d.ts CHANGED
@@ -410,6 +410,7 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
410
410
  catalogEntryId: string;
411
411
  origin: "NODE" | "WORKSPACE";
412
412
  }>, "many">;
413
+ executionBuiltIns: z.ZodOptional<z.ZodArray<z.ZodEnum<["mar_schedule", "mar_notification"]>, "many">>;
413
414
  }, "strict", z.ZodTypeAny, {
414
415
  targetKind: "NODE" | "WORKSPACE";
415
416
  installations: {
@@ -422,6 +423,7 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
422
423
  catalogEntryId: string;
423
424
  origin: "NODE" | "WORKSPACE";
424
425
  }[];
426
+ executionBuiltIns?: ("mar_schedule" | "mar_notification")[] | undefined;
425
427
  }, {
426
428
  targetKind: "NODE" | "WORKSPACE";
427
429
  installations: {
@@ -434,5 +436,6 @@ export declare const mcpTargetInspectionSchema: z.ZodObject<{
434
436
  catalogEntryId: string;
435
437
  origin: "NODE" | "WORKSPACE";
436
438
  }[];
439
+ executionBuiltIns?: ("mar_schedule" | "mar_notification")[] | undefined;
437
440
  }>;
438
441
  export type McpTargetInspection = z.infer<typeof mcpTargetInspectionSchema>;
package/dist/mcp.js CHANGED
@@ -136,6 +136,10 @@ export const installedMcpSchema = z
136
136
  export const mcpTargetInspectionSchema = z
137
137
  .object({
138
138
  targetKind: z.enum(['NODE', 'WORKSPACE']),
139
- installations: z.array(installedMcpSchema).max(500)
139
+ installations: z.array(installedMcpSchema).max(500),
140
+ executionBuiltIns: z
141
+ .array(z.enum(['mar_schedule', 'mar_notification']))
142
+ .max(2)
143
+ .optional()
140
144
  })
141
145
  .strict();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.126",
3
+ "version": "0.9.128",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",