@task-mcp/shared 1.0.6 → 1.0.7

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.
@@ -1,24 +1,55 @@
1
- export declare const InboxStatus: import("arktype/internal/methods/string.ts").StringType<"pending" | "promoted" | "discarded", {}>;
2
- export type InboxStatus = typeof InboxStatus.infer;
3
- export declare const InboxItem: import("arktype/internal/methods/object.ts").ObjectType<{
1
+ import { z } from "zod";
2
+ export declare const InboxStatus: z.ZodEnum<["pending", "promoted", "discarded"]>;
3
+ export type InboxStatus = z.infer<typeof InboxStatus>;
4
+ export declare const InboxItem: z.ZodObject<{
5
+ id: z.ZodString;
6
+ content: z.ZodString;
7
+ capturedAt: z.ZodString;
8
+ source: z.ZodOptional<z.ZodString>;
9
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
+ promotedToTaskId: z.ZodOptional<z.ZodString>;
11
+ status: z.ZodEnum<["pending", "promoted", "discarded"]>;
12
+ }, "strip", z.ZodTypeAny, {
4
13
  id: string;
14
+ status: "pending" | "promoted" | "discarded";
5
15
  content: string;
6
16
  capturedAt: string;
17
+ tags?: string[] | undefined;
18
+ source?: string | undefined;
19
+ promotedToTaskId?: string | undefined;
20
+ }, {
21
+ id: string;
7
22
  status: "pending" | "promoted" | "discarded";
8
- source?: string;
9
- tags?: string[];
10
- promotedToTaskId?: string;
11
- }, {}>;
12
- export type InboxItem = typeof InboxItem.infer;
13
- export declare const InboxCreateInput: import("arktype/internal/methods/object.ts").ObjectType<{
14
23
  content: string;
15
- source?: string;
16
- tags?: string[];
17
- }, {}>;
18
- export type InboxCreateInput = typeof InboxCreateInput.infer;
19
- export declare const InboxUpdateInput: import("arktype/internal/methods/object.ts").ObjectType<{
20
- content?: string;
21
- tags?: string[];
22
- }, {}>;
23
- export type InboxUpdateInput = typeof InboxUpdateInput.infer;
24
+ capturedAt: string;
25
+ tags?: string[] | undefined;
26
+ source?: string | undefined;
27
+ promotedToTaskId?: string | undefined;
28
+ }>;
29
+ export type InboxItem = z.infer<typeof InboxItem>;
30
+ export declare const InboxCreateInput: z.ZodObject<{
31
+ content: z.ZodString;
32
+ source: z.ZodOptional<z.ZodString>;
33
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ content: string;
36
+ tags?: string[] | undefined;
37
+ source?: string | undefined;
38
+ }, {
39
+ content: string;
40
+ tags?: string[] | undefined;
41
+ source?: string | undefined;
42
+ }>;
43
+ export type InboxCreateInput = z.infer<typeof InboxCreateInput>;
44
+ export declare const InboxUpdateInput: z.ZodObject<{
45
+ content: z.ZodOptional<z.ZodString>;
46
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ tags?: string[] | undefined;
49
+ content?: string | undefined;
50
+ }, {
51
+ tags?: string[] | undefined;
52
+ content?: string | undefined;
53
+ }>;
54
+ export type InboxUpdateInput = z.infer<typeof InboxUpdateInput>;
24
55
  //# sourceMappingURL=inbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,mGAA+C,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,KAAK,CAAC;AAGnD,eAAO,MAAM,SAAS;;;;;;;;MAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;MAI3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,KAAK,CAAC;AAG7D,eAAO,MAAM,gBAAgB;;;MAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,KAAK,CAAC"}
1
+ {"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW,iDAA+C,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAGtD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAGlD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGhE,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,25 +1,25 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  // Inbox item status
3
- export const InboxStatus = type("'pending' | 'promoted' | 'discarded'");
3
+ export const InboxStatus = z.enum(["pending", "promoted", "discarded"]);
4
4
  // Inbox item schema - lightweight idea/memo capture
5
- export const InboxItem = type({
6
- id: "string",
7
- content: "string", // The memo/idea content
8
- capturedAt: "string", // ISO timestamp
9
- "source?": "string", // Origin: 'cli', 'mcp', 'api', etc.
10
- "tags?": "string[]", // Simple tags for organization
11
- "promotedToTaskId?": "string", // Task ID if promoted
5
+ export const InboxItem = z.object({
6
+ id: z.string(),
7
+ content: z.string(), // The memo/idea content
8
+ capturedAt: z.string(), // ISO timestamp
9
+ source: z.string().optional(), // Origin: 'cli', 'mcp', 'api', etc.
10
+ tags: z.array(z.string()).optional(), // Simple tags for organization
11
+ promotedToTaskId: z.string().optional(), // Task ID if promoted
12
12
  status: InboxStatus,
13
13
  });
14
14
  // Inbox item creation input (minimal)
15
- export const InboxCreateInput = type({
16
- content: "string",
17
- "source?": "string",
18
- "tags?": "string[]",
15
+ export const InboxCreateInput = z.object({
16
+ content: z.string(),
17
+ source: z.string().optional(),
18
+ tags: z.array(z.string()).optional(),
19
19
  });
20
20
  // Inbox item update input
21
- export const InboxUpdateInput = type({
22
- "content?": "string",
23
- "tags?": "string[]",
21
+ export const InboxUpdateInput = z.object({
22
+ content: z.string().optional(),
23
+ tags: z.array(z.string()).optional(),
24
24
  });
25
25
  //# sourceMappingURL=inbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,oBAAoB;AACpB,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,sCAAsC,CAAC,CAAC;AAGxE,oDAAoD;AACpD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,QAAQ,EAAE,wBAAwB;IAC3C,UAAU,EAAE,QAAQ,EAAE,gBAAgB;IACtC,SAAS,EAAE,QAAQ,EAAE,oCAAoC;IACzD,OAAO,EAAE,UAAU,EAAE,+BAA+B;IACpD,mBAAmB,EAAE,QAAQ,EAAE,sBAAsB;IACrD,MAAM,EAAE,WAAW;CACpB,CAAC,CAAC;AAGH,sCAAsC;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC;AAGH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC"}
1
+ {"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,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C,CAAC,CAAC"}
@@ -1,55 +1,168 @@
1
- export declare const ProjectStatus: import("arktype/internal/methods/string.ts").StringType<"completed" | "active" | "on_hold" | "archived", {}>;
2
- export type ProjectStatus = typeof ProjectStatus.infer;
3
- export declare const Context: import("arktype/internal/methods/object.ts").ObjectType<{
1
+ import { z } from "zod";
2
+ export declare const ProjectStatus: z.ZodEnum<["active", "on_hold", "completed", "archived"]>;
3
+ export type ProjectStatus = z.infer<typeof ProjectStatus>;
4
+ export declare const Context: z.ZodObject<{
5
+ name: z.ZodString;
6
+ color: z.ZodOptional<z.ZodString>;
7
+ description: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
4
9
  name: string;
5
- color?: string;
6
- description?: string;
7
- }, {}>;
8
- export type Context = typeof Context.infer;
9
- export declare const Project: import("arktype/internal/methods/object.ts").ObjectType<{
10
+ description?: string | undefined;
11
+ color?: string | undefined;
12
+ }, {
13
+ name: string;
14
+ description?: string | undefined;
15
+ color?: string | undefined;
16
+ }>;
17
+ export type Context = z.infer<typeof Context>;
18
+ export declare const Project: z.ZodObject<{
19
+ id: z.ZodString;
20
+ name: z.ZodString;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ status: z.ZodEnum<["active", "on_hold", "completed", "archived"]>;
23
+ defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
24
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ name: z.ZodString;
26
+ color: z.ZodOptional<z.ZodString>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ description?: string | undefined;
31
+ color?: string | undefined;
32
+ }, {
33
+ name: string;
34
+ description?: string | undefined;
35
+ color?: string | undefined;
36
+ }>, "many">>;
37
+ createdAt: z.ZodString;
38
+ updatedAt: z.ZodString;
39
+ targetDate: z.ZodOptional<z.ZodString>;
40
+ completionPercentage: z.ZodOptional<z.ZodNumber>;
41
+ criticalPathLength: z.ZodOptional<z.ZodNumber>;
42
+ blockedTaskCount: z.ZodOptional<z.ZodNumber>;
43
+ totalTasks: z.ZodOptional<z.ZodNumber>;
44
+ completedTasks: z.ZodOptional<z.ZodNumber>;
45
+ }, "strip", z.ZodTypeAny, {
10
46
  id: string;
47
+ status: "completed" | "active" | "on_hold" | "archived";
48
+ createdAt: string;
49
+ updatedAt: string;
11
50
  name: string;
51
+ description?: string | undefined;
52
+ contexts?: {
53
+ name: string;
54
+ description?: string | undefined;
55
+ color?: string | undefined;
56
+ }[] | undefined;
57
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
58
+ targetDate?: string | undefined;
59
+ completionPercentage?: number | undefined;
60
+ criticalPathLength?: number | undefined;
61
+ blockedTaskCount?: number | undefined;
62
+ totalTasks?: number | undefined;
63
+ completedTasks?: number | undefined;
64
+ }, {
65
+ id: string;
12
66
  status: "completed" | "active" | "on_hold" | "archived";
13
67
  createdAt: string;
14
68
  updatedAt: string;
15
- description?: string;
16
- defaultPriority?: "critical" | "high" | "medium" | "low";
69
+ name: string;
70
+ description?: string | undefined;
17
71
  contexts?: {
18
72
  name: string;
19
- color?: string;
20
- description?: string;
21
- }[];
22
- targetDate?: string;
23
- completionPercentage?: number;
24
- criticalPathLength?: number;
25
- blockedTaskCount?: number;
26
- totalTasks?: number;
27
- completedTasks?: number;
28
- }, {}>;
29
- export type Project = typeof Project.infer;
30
- export declare const ProjectCreateInput: import("arktype/internal/methods/object.ts").ObjectType<{
73
+ description?: string | undefined;
74
+ color?: string | undefined;
75
+ }[] | undefined;
76
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
77
+ targetDate?: string | undefined;
78
+ completionPercentage?: number | undefined;
79
+ criticalPathLength?: number | undefined;
80
+ blockedTaskCount?: number | undefined;
81
+ totalTasks?: number | undefined;
82
+ completedTasks?: number | undefined;
83
+ }>;
84
+ export type Project = z.infer<typeof Project>;
85
+ export declare const ProjectCreateInput: z.ZodObject<{
86
+ name: z.ZodString;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
89
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ name: z.ZodString;
91
+ color: z.ZodOptional<z.ZodString>;
92
+ description: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ name: string;
95
+ description?: string | undefined;
96
+ color?: string | undefined;
97
+ }, {
98
+ name: string;
99
+ description?: string | undefined;
100
+ color?: string | undefined;
101
+ }>, "many">>;
102
+ targetDate: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ name: string;
105
+ description?: string | undefined;
106
+ contexts?: {
107
+ name: string;
108
+ description?: string | undefined;
109
+ color?: string | undefined;
110
+ }[] | undefined;
111
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
112
+ targetDate?: string | undefined;
113
+ }, {
31
114
  name: string;
32
- description?: string;
33
- defaultPriority?: "critical" | "high" | "medium" | "low";
115
+ description?: string | undefined;
116
+ contexts?: {
117
+ name: string;
118
+ description?: string | undefined;
119
+ color?: string | undefined;
120
+ }[] | undefined;
121
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
122
+ targetDate?: string | undefined;
123
+ }>;
124
+ export type ProjectCreateInput = z.infer<typeof ProjectCreateInput>;
125
+ export declare const ProjectUpdateInput: z.ZodObject<{
126
+ name: z.ZodOptional<z.ZodString>;
127
+ description: z.ZodOptional<z.ZodString>;
128
+ status: z.ZodOptional<z.ZodEnum<["active", "on_hold", "completed", "archived"]>>;
129
+ defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
130
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
+ name: z.ZodString;
132
+ color: z.ZodOptional<z.ZodString>;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ name: string;
136
+ description?: string | undefined;
137
+ color?: string | undefined;
138
+ }, {
139
+ name: string;
140
+ description?: string | undefined;
141
+ color?: string | undefined;
142
+ }>, "many">>;
143
+ targetDate: z.ZodOptional<z.ZodString>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ description?: string | undefined;
146
+ status?: "completed" | "active" | "on_hold" | "archived" | undefined;
34
147
  contexts?: {
35
148
  name: string;
36
- color?: string;
37
- description?: string;
38
- }[];
39
- targetDate?: string;
40
- }, {}>;
41
- export type ProjectCreateInput = typeof ProjectCreateInput.infer;
42
- export declare const ProjectUpdateInput: import("arktype/internal/methods/object.ts").ObjectType<{
43
- name?: string;
44
- description?: string;
45
- status?: "completed" | "active" | "on_hold" | "archived";
46
- defaultPriority?: "critical" | "high" | "medium" | "low";
149
+ description?: string | undefined;
150
+ color?: string | undefined;
151
+ }[] | undefined;
152
+ name?: string | undefined;
153
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
154
+ targetDate?: string | undefined;
155
+ }, {
156
+ description?: string | undefined;
157
+ status?: "completed" | "active" | "on_hold" | "archived" | undefined;
47
158
  contexts?: {
48
159
  name: string;
49
- color?: string;
50
- description?: string;
51
- }[];
52
- targetDate?: string;
53
- }, {}>;
54
- export type ProjectUpdateInput = typeof ProjectUpdateInput.infer;
160
+ description?: string | undefined;
161
+ color?: string | undefined;
162
+ }[] | undefined;
163
+ name?: string | undefined;
164
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
165
+ targetDate?: string | undefined;
166
+ }>;
167
+ export type ProjectUpdateInput = z.infer<typeof ProjectUpdateInput>;
55
168
  //# sourceMappingURL=project.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,8GAEzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,KAAK,CAAC;AAGvD,eAAO,MAAM,OAAO;;;;MAIlB,CAAC;AACH,MAAM,MAAM,OAAO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GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,48 +1,53 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  import { Priority } from "./task.js";
3
3
  // Project status
4
- export const ProjectStatus = type("'active' | 'on_hold' | 'completed' | 'archived'");
4
+ export const ProjectStatus = z.enum([
5
+ "active",
6
+ "on_hold",
7
+ "completed",
8
+ "archived",
9
+ ]);
5
10
  // Context definition
6
- export const Context = type({
7
- name: "string",
8
- "color?": "string", // hex color
9
- "description?": "string",
11
+ export const Context = z.object({
12
+ name: z.string(),
13
+ color: z.string().optional(), // hex color
14
+ description: z.string().optional(),
10
15
  });
11
16
  // Project schema
12
- export const Project = type({
13
- id: "string",
14
- name: "string",
15
- "description?": "string",
17
+ export const Project = z.object({
18
+ id: z.string(),
19
+ name: z.string(),
20
+ description: z.string().optional(),
16
21
  status: ProjectStatus,
17
22
  // Project-level settings
18
- "defaultPriority?": Priority,
19
- "contexts?": Context.array(),
23
+ defaultPriority: Priority.optional(),
24
+ contexts: z.array(Context).optional(),
20
25
  // Metadata
21
- createdAt: "string",
22
- updatedAt: "string",
23
- "targetDate?": "string",
26
+ createdAt: z.string(),
27
+ updatedAt: z.string(),
28
+ targetDate: z.string().optional(),
24
29
  // Computed stats
25
- "completionPercentage?": "number",
26
- "criticalPathLength?": "number", // Total minutes on critical path
27
- "blockedTaskCount?": "number",
28
- "totalTasks?": "number",
29
- "completedTasks?": "number",
30
+ completionPercentage: z.number().optional(),
31
+ criticalPathLength: z.number().optional(), // Total minutes on critical path
32
+ blockedTaskCount: z.number().optional(),
33
+ totalTasks: z.number().optional(),
34
+ completedTasks: z.number().optional(),
30
35
  });
31
36
  // Project creation input
32
- export const ProjectCreateInput = type({
33
- name: "string",
34
- "description?": "string",
35
- "defaultPriority?": Priority,
36
- "contexts?": Context.array(),
37
- "targetDate?": "string",
37
+ export const ProjectCreateInput = z.object({
38
+ name: z.string(),
39
+ description: z.string().optional(),
40
+ defaultPriority: Priority.optional(),
41
+ contexts: z.array(Context).optional(),
42
+ targetDate: z.string().optional(),
38
43
  });
39
44
  // Project update input
40
- export const ProjectUpdateInput = type({
41
- "name?": "string",
42
- "description?": "string",
43
- "status?": ProjectStatus,
44
- "defaultPriority?": Priority,
45
- "contexts?": Context.array(),
46
- "targetDate?": "string",
45
+ export const ProjectUpdateInput = z.object({
46
+ name: z.string().optional(),
47
+ description: z.string().optional(),
48
+ status: ProjectStatus.optional(),
49
+ defaultPriority: Priority.optional(),
50
+ contexts: z.array(Context).optional(),
51
+ targetDate: z.string().optional(),
47
52
  });
48
53
  //# sourceMappingURL=project.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,iBAAiB;AACjB,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAC/B,iDAAiD,CAClD,CAAC;AAGF,qBAAqB;AACrB,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ,EAAE,YAAY;IAChC,cAAc,EAAE,QAAQ;CACzB,CAAC,CAAC;AAGH,iBAAiB;AACjB,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,aAAa;IAErB,yBAAyB;IACzB,kBAAkB,EAAE,QAAQ;IAC5B,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE;IAE5B,WAAW;IACX,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,QAAQ;IACnB,aAAa,EAAE,QAAQ;IAEvB,iBAAiB;IACjB,uBAAuB,EAAE,QAAQ;IACjC,qBAAqB,E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C;AAGH,uBAAuB;AACvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE;IAChC,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { z } from "zod";
1
2
  /**
2
3
  * Response Format Schema
3
4
  *
@@ -8,8 +9,8 @@
8
9
  * - standard: Common fields (7-10), balanced for most use cases
9
10
  * - detailed: Full object, human-readable format
10
11
  */
11
- export declare const ResponseFormat: import("arktype/internal/methods/string.ts").StringType<"concise" | "standard" | "detailed", {}>;
12
- export type ResponseFormat = typeof ResponseFormat.infer;
12
+ export declare const ResponseFormat: z.ZodEnum<["concise", "standard", "detailed"]>;
13
+ export type ResponseFormat = z.infer<typeof ResponseFormat>;
13
14
  export declare const DEFAULT_LIMIT = 20;
14
15
  export declare const MAX_LIMIT = 100;
15
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"response-format.d.ts","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAGH,eAAO,MAAM,cAAc,kGAA8C,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,KAAK,CAAC;AAGzD,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,EAAE,CAA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MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AAGH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AAGH,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1,4 +1,4 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  /**
3
3
  * Response Format Schema
4
4
  *
@@ -10,7 +10,7 @@ import { type } from "arktype";
10
10
  * - detailed: Full object, human-readable format
11
11
  */
12
12
  // Response format options
13
- export const ResponseFormat = type("'concise' | 'standard' | 'detailed'");
13
+ export const ResponseFormat = z.enum(["concise", "standard", "detailed"]);
14
14
  // Default limits for pagination
15
15
  export const DEFAULT_LIMIT = 20;
16
16
  export const MAX_LIMIT = 100;
@@ -1 +1 @@
1
- {"version":3,"file":"response-format.js","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;;;;;;;GASG;AAEH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,qCAAqC,CAAC,CAAC;AAG1E,gCAAgC;AAChC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"response-format.js","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AAEH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAG1E,gCAAgC;AAChC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC"}