@rippledb/zod 0.1.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.ts +260 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Zod schema for HLC (Hybrid Logical Clock) timestamps.
|
|
4
|
+
* Format: "{wallTimeMs}:{counter}:{nodeId}"
|
|
5
|
+
*/
|
|
6
|
+
export declare const hlcSchema: z.ZodString;
|
|
7
|
+
/**
|
|
8
|
+
* Zod schema for change kind (upsert or delete).
|
|
9
|
+
*/
|
|
10
|
+
export declare const changeKindSchema: z.ZodEnum<["upsert", "delete"]>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Zod schema for a Change object.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const todoChangeSchema = createChangeSchema(z.object({
|
|
17
|
+
* id: z.string(),
|
|
18
|
+
* title: z.string(),
|
|
19
|
+
* done: z.boolean().optional(),
|
|
20
|
+
* }));
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function createChangeSchema<T extends z.ZodObject<z.ZodRawShape>>(patchSchema: T): z.ZodObject<{
|
|
24
|
+
stream: z.ZodString;
|
|
25
|
+
entity: z.ZodString;
|
|
26
|
+
entityId: z.ZodString;
|
|
27
|
+
kind: z.ZodEnum<["upsert", "delete"]>;
|
|
28
|
+
patch: z.ZodObject<{
|
|
29
|
+
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
|
30
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
}, {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
}>;
|
|
35
|
+
tags: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
36
|
+
hlc: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
stream: string;
|
|
39
|
+
entity: string;
|
|
40
|
+
entityId: string;
|
|
41
|
+
kind: "upsert" | "delete";
|
|
42
|
+
patch: {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
};
|
|
45
|
+
tags: Record<string, string>;
|
|
46
|
+
hlc: string;
|
|
47
|
+
}, {
|
|
48
|
+
stream: string;
|
|
49
|
+
entity: string;
|
|
50
|
+
entityId: string;
|
|
51
|
+
kind: "upsert" | "delete";
|
|
52
|
+
patch: {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
};
|
|
55
|
+
tags: Record<string, string>;
|
|
56
|
+
hlc: string;
|
|
57
|
+
}>;
|
|
58
|
+
/**
|
|
59
|
+
* Generic change schema when patch structure is unknown.
|
|
60
|
+
*/
|
|
61
|
+
export declare const changeSchema: z.ZodObject<{
|
|
62
|
+
stream: z.ZodString;
|
|
63
|
+
entity: z.ZodString;
|
|
64
|
+
entityId: z.ZodString;
|
|
65
|
+
kind: z.ZodEnum<["upsert", "delete"]>;
|
|
66
|
+
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
67
|
+
tags: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
68
|
+
hlc: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
stream: string;
|
|
71
|
+
entity: string;
|
|
72
|
+
entityId: string;
|
|
73
|
+
kind: "upsert" | "delete";
|
|
74
|
+
patch: Record<string, unknown>;
|
|
75
|
+
tags: Record<string, string>;
|
|
76
|
+
hlc: string;
|
|
77
|
+
}, {
|
|
78
|
+
stream: string;
|
|
79
|
+
entity: string;
|
|
80
|
+
entityId: string;
|
|
81
|
+
kind: "upsert" | "delete";
|
|
82
|
+
patch: Record<string, unknown>;
|
|
83
|
+
tags: Record<string, string>;
|
|
84
|
+
hlc: string;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* Zod schema for PullRequest.
|
|
88
|
+
*/
|
|
89
|
+
export declare const pullRequestSchema: z.ZodObject<{
|
|
90
|
+
stream: z.ZodString;
|
|
91
|
+
cursor: z.ZodNullable<z.ZodString>;
|
|
92
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
stream: string;
|
|
95
|
+
cursor: string | null;
|
|
96
|
+
limit?: number | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
stream: string;
|
|
99
|
+
cursor: string | null;
|
|
100
|
+
limit?: number | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a Zod schema for PullResponse with typed changes.
|
|
104
|
+
*/
|
|
105
|
+
export declare function createPullResponseSchema<T extends z.ZodTypeAny>(changeSchema: T): z.ZodObject<{
|
|
106
|
+
changes: z.ZodArray<T, "many">;
|
|
107
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
changes: T["_output"][];
|
|
110
|
+
nextCursor: string | null;
|
|
111
|
+
}, {
|
|
112
|
+
changes: T["_input"][];
|
|
113
|
+
nextCursor: string | null;
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
* Generic pull response schema.
|
|
117
|
+
*/
|
|
118
|
+
export declare const pullResponseSchema: z.ZodObject<{
|
|
119
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
120
|
+
stream: z.ZodString;
|
|
121
|
+
entity: z.ZodString;
|
|
122
|
+
entityId: z.ZodString;
|
|
123
|
+
kind: z.ZodEnum<["upsert", "delete"]>;
|
|
124
|
+
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
125
|
+
tags: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
126
|
+
hlc: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
stream: string;
|
|
129
|
+
entity: string;
|
|
130
|
+
entityId: string;
|
|
131
|
+
kind: "upsert" | "delete";
|
|
132
|
+
patch: Record<string, unknown>;
|
|
133
|
+
tags: Record<string, string>;
|
|
134
|
+
hlc: string;
|
|
135
|
+
}, {
|
|
136
|
+
stream: string;
|
|
137
|
+
entity: string;
|
|
138
|
+
entityId: string;
|
|
139
|
+
kind: "upsert" | "delete";
|
|
140
|
+
patch: Record<string, unknown>;
|
|
141
|
+
tags: Record<string, string>;
|
|
142
|
+
hlc: string;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
changes: {
|
|
147
|
+
stream: string;
|
|
148
|
+
entity: string;
|
|
149
|
+
entityId: string;
|
|
150
|
+
kind: "upsert" | "delete";
|
|
151
|
+
patch: Record<string, unknown>;
|
|
152
|
+
tags: Record<string, string>;
|
|
153
|
+
hlc: string;
|
|
154
|
+
}[];
|
|
155
|
+
nextCursor: string | null;
|
|
156
|
+
}, {
|
|
157
|
+
changes: {
|
|
158
|
+
stream: string;
|
|
159
|
+
entity: string;
|
|
160
|
+
entityId: string;
|
|
161
|
+
kind: "upsert" | "delete";
|
|
162
|
+
patch: Record<string, unknown>;
|
|
163
|
+
tags: Record<string, string>;
|
|
164
|
+
hlc: string;
|
|
165
|
+
}[];
|
|
166
|
+
nextCursor: string | null;
|
|
167
|
+
}>;
|
|
168
|
+
/**
|
|
169
|
+
* Creates a Zod schema for AppendRequest with typed changes.
|
|
170
|
+
*/
|
|
171
|
+
export declare function createAppendRequestSchema<T extends z.ZodTypeAny>(changeSchema: T): z.ZodObject<{
|
|
172
|
+
stream: z.ZodString;
|
|
173
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
174
|
+
changes: z.ZodArray<T, "many">;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
stream: string;
|
|
177
|
+
changes: T["_output"][];
|
|
178
|
+
idempotencyKey?: string | undefined;
|
|
179
|
+
}, {
|
|
180
|
+
stream: string;
|
|
181
|
+
changes: T["_input"][];
|
|
182
|
+
idempotencyKey?: string | undefined;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Generic append request schema.
|
|
186
|
+
*/
|
|
187
|
+
export declare const appendRequestSchema: z.ZodObject<{
|
|
188
|
+
stream: z.ZodString;
|
|
189
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
190
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
191
|
+
stream: z.ZodString;
|
|
192
|
+
entity: z.ZodString;
|
|
193
|
+
entityId: z.ZodString;
|
|
194
|
+
kind: z.ZodEnum<["upsert", "delete"]>;
|
|
195
|
+
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
196
|
+
tags: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
197
|
+
hlc: z.ZodString;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
stream: string;
|
|
200
|
+
entity: string;
|
|
201
|
+
entityId: string;
|
|
202
|
+
kind: "upsert" | "delete";
|
|
203
|
+
patch: Record<string, unknown>;
|
|
204
|
+
tags: Record<string, string>;
|
|
205
|
+
hlc: string;
|
|
206
|
+
}, {
|
|
207
|
+
stream: string;
|
|
208
|
+
entity: string;
|
|
209
|
+
entityId: string;
|
|
210
|
+
kind: "upsert" | "delete";
|
|
211
|
+
patch: Record<string, unknown>;
|
|
212
|
+
tags: Record<string, string>;
|
|
213
|
+
hlc: string;
|
|
214
|
+
}>, "many">;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
stream: string;
|
|
217
|
+
changes: {
|
|
218
|
+
stream: string;
|
|
219
|
+
entity: string;
|
|
220
|
+
entityId: string;
|
|
221
|
+
kind: "upsert" | "delete";
|
|
222
|
+
patch: Record<string, unknown>;
|
|
223
|
+
tags: Record<string, string>;
|
|
224
|
+
hlc: string;
|
|
225
|
+
}[];
|
|
226
|
+
idempotencyKey?: string | undefined;
|
|
227
|
+
}, {
|
|
228
|
+
stream: string;
|
|
229
|
+
changes: {
|
|
230
|
+
stream: string;
|
|
231
|
+
entity: string;
|
|
232
|
+
entityId: string;
|
|
233
|
+
kind: "upsert" | "delete";
|
|
234
|
+
patch: Record<string, unknown>;
|
|
235
|
+
tags: Record<string, string>;
|
|
236
|
+
hlc: string;
|
|
237
|
+
}[];
|
|
238
|
+
idempotencyKey?: string | undefined;
|
|
239
|
+
}>;
|
|
240
|
+
/**
|
|
241
|
+
* Zod schema for AppendResult.
|
|
242
|
+
*/
|
|
243
|
+
export declare const appendResultSchema: z.ZodObject<{
|
|
244
|
+
accepted: z.ZodNumber;
|
|
245
|
+
hlc: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
accepted: number;
|
|
248
|
+
hlc?: string | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
accepted: number;
|
|
251
|
+
hlc?: string | undefined;
|
|
252
|
+
}>;
|
|
253
|
+
export type HlcInput = z.infer<typeof hlcSchema>;
|
|
254
|
+
export type ChangeKindInput = z.infer<typeof changeKindSchema>;
|
|
255
|
+
export type ChangeInput = z.infer<typeof changeSchema>;
|
|
256
|
+
export type PullRequestInput = z.infer<typeof pullRequestSchema>;
|
|
257
|
+
export type PullResponseInput = z.infer<typeof pullResponseSchema>;
|
|
258
|
+
export type AppendRequestInput = z.infer<typeof appendRequestSchema>;
|
|
259
|
+
export type AppendResultInput = z.infer<typeof appendResultSchema>;
|
|
260
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,SAAS,aAAyD,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,gBAAgB,iCAA+B,CAAC;AA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,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var hlcSchema = z.string().regex(/^\d+:\d+:.+$/, "Invalid HLC format");
|
|
4
|
+
var changeKindSchema = z.enum(["upsert", "delete"]);
|
|
5
|
+
function createChangeSchema(patchSchema) {
|
|
6
|
+
return z.object({
|
|
7
|
+
stream: z.string(),
|
|
8
|
+
entity: z.string(),
|
|
9
|
+
entityId: z.string(),
|
|
10
|
+
kind: changeKindSchema,
|
|
11
|
+
patch: patchSchema.partial(),
|
|
12
|
+
tags: z.record(z.string(), hlcSchema),
|
|
13
|
+
hlc: hlcSchema
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
var changeSchema = z.object({
|
|
17
|
+
stream: z.string(),
|
|
18
|
+
entity: z.string(),
|
|
19
|
+
entityId: z.string(),
|
|
20
|
+
kind: changeKindSchema,
|
|
21
|
+
patch: z.record(z.string(), z.unknown()),
|
|
22
|
+
tags: z.record(z.string(), hlcSchema),
|
|
23
|
+
hlc: hlcSchema
|
|
24
|
+
});
|
|
25
|
+
var pullRequestSchema = z.object({
|
|
26
|
+
stream: z.string(),
|
|
27
|
+
cursor: z.string().nullable(),
|
|
28
|
+
limit: z.number().int().positive().optional()
|
|
29
|
+
});
|
|
30
|
+
function createPullResponseSchema(changeSchema2) {
|
|
31
|
+
return z.object({
|
|
32
|
+
changes: z.array(changeSchema2),
|
|
33
|
+
nextCursor: z.string().nullable()
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
var pullResponseSchema = createPullResponseSchema(changeSchema);
|
|
37
|
+
function createAppendRequestSchema(changeSchema2) {
|
|
38
|
+
return z.object({
|
|
39
|
+
stream: z.string(),
|
|
40
|
+
idempotencyKey: z.string().optional(),
|
|
41
|
+
changes: z.array(changeSchema2)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
var appendRequestSchema = createAppendRequestSchema(changeSchema);
|
|
45
|
+
var appendResultSchema = z.object({
|
|
46
|
+
accepted: z.number().int().nonnegative(),
|
|
47
|
+
hlc: hlcSchema.optional()
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
appendRequestSchema,
|
|
51
|
+
appendResultSchema,
|
|
52
|
+
changeKindSchema,
|
|
53
|
+
changeSchema,
|
|
54
|
+
createAppendRequestSchema,
|
|
55
|
+
createChangeSchema,
|
|
56
|
+
createPullResponseSchema,
|
|
57
|
+
hlcSchema,
|
|
58
|
+
pullRequestSchema,
|
|
59
|
+
pullResponseSchema
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Zod schema for HLC (Hybrid Logical Clock) timestamps.\n * Format: \"{wallTimeMs}:{counter}:{nodeId}\"\n */\nexport const hlcSchema = z.string().regex(/^\\d+:\\d+:.+$/, 'Invalid HLC format');\n\n/**\n * Zod schema for change kind (upsert or delete).\n */\nexport const changeKindSchema = z.enum(['upsert', 'delete']);\n\n/**\n * Creates a Zod schema for a Change object.\n * \n * @example\n * ```ts\n * const todoChangeSchema = createChangeSchema(z.object({\n * id: z.string(),\n * title: z.string(),\n * done: z.boolean().optional(),\n * }));\n * ```\n */\nexport function createChangeSchema<T extends z.ZodObject<z.ZodRawShape>>(patchSchema: T) {\n return z.object({\n stream: z.string(),\n entity: z.string(),\n entityId: z.string(),\n kind: changeKindSchema,\n patch: patchSchema.partial(),\n tags: z.record(z.string(), hlcSchema),\n hlc: hlcSchema,\n });\n}\n\n/**\n * Generic change schema when patch structure is unknown.\n */\nexport const changeSchema = z.object({\n stream: z.string(),\n entity: z.string(),\n entityId: z.string(),\n kind: changeKindSchema,\n patch: z.record(z.string(), z.unknown()),\n tags: z.record(z.string(), hlcSchema),\n hlc: hlcSchema,\n});\n\n/**\n * Zod schema for PullRequest.\n */\nexport const pullRequestSchema = z.object({\n stream: z.string(),\n cursor: z.string().nullable(),\n limit: z.number().int().positive().optional(),\n});\n\n/**\n * Creates a Zod schema for PullResponse with typed changes.\n */\nexport function createPullResponseSchema<T extends z.ZodTypeAny>(changeSchema: T) {\n return z.object({\n changes: z.array(changeSchema),\n nextCursor: z.string().nullable(),\n });\n}\n\n/**\n * Generic pull response schema.\n */\nexport const pullResponseSchema = createPullResponseSchema(changeSchema);\n\n/**\n * Creates a Zod schema for AppendRequest with typed changes.\n */\nexport function createAppendRequestSchema<T extends z.ZodTypeAny>(changeSchema: T) {\n return z.object({\n stream: z.string(),\n idempotencyKey: z.string().optional(),\n changes: z.array(changeSchema),\n });\n}\n\n/**\n * Generic append request schema.\n */\nexport const appendRequestSchema = createAppendRequestSchema(changeSchema);\n\n/**\n * Zod schema for AppendResult.\n */\nexport const appendResultSchema = z.object({\n accepted: z.number().int().nonnegative(),\n hlc: hlcSchema.optional(),\n});\n\n// Re-export zod types for convenience\nexport type HlcInput = z.infer<typeof hlcSchema>;\nexport type ChangeKindInput = z.infer<typeof changeKindSchema>;\nexport type ChangeInput = z.infer<typeof changeSchema>;\nexport type PullRequestInput = z.infer<typeof pullRequestSchema>;\nexport type PullResponseInput = z.infer<typeof pullResponseSchema>;\nexport type AppendRequestInput = z.infer<typeof appendRequestSchema>;\nexport type AppendResultInput = z.infer<typeof appendResultSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAMX,IAAM,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,oBAAoB;AAKvE,IAAM,mBAAmB,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC;AAcpD,SAAS,mBAAyD,aAAgB;AACvF,SAAO,EAAE,OAAO;AAAA,IACd,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S;AAC1B,CAAC;","names":["changeSchema"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rippledb/zod",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@rippledb/core": "workspace:*"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"zod": "^3.0.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@rippledb/server": "workspace:*",
|
|
24
|
+
"eslint": "^9.37.0",
|
|
25
|
+
"tsup": "^8.5.0",
|
|
26
|
+
"typescript": "^5.9.3",
|
|
27
|
+
"vitest": "^3.2.4",
|
|
28
|
+
"zod": "^3.24.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup && tsc -p tsconfig.build.json",
|
|
32
|
+
"test": "vitest run --pool=threads",
|
|
33
|
+
"test:watch": "vitest --pool=threads",
|
|
34
|
+
"lint": "eslint ."
|
|
35
|
+
},
|
|
36
|
+
"tsup": {
|
|
37
|
+
"entry": [
|
|
38
|
+
"src/index.ts"
|
|
39
|
+
],
|
|
40
|
+
"format": [
|
|
41
|
+
"esm"
|
|
42
|
+
],
|
|
43
|
+
"dts": false,
|
|
44
|
+
"sourcemap": true,
|
|
45
|
+
"clean": true
|
|
46
|
+
}
|
|
47
|
+
}
|