@roc-db/test-utils 0.2.0-pre.71 → 0.2.0-pre.72

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.
Files changed (51) hide show
  1. package/dist/index.js +213 -183
  2. package/dist/types/entities/BlockImageEntity.d.ts +3 -11
  3. package/dist/types/entities/BlockParagraph.d.ts +3 -11
  4. package/dist/types/entities/BlockRow.d.ts +5 -13
  5. package/dist/types/entities/Draft.d.ts +3 -11
  6. package/dist/types/entities/PostEntity.d.ts +6 -24
  7. package/dist/types/entities/PostVersion.d.ts +4 -14
  8. package/dist/types/entities/UserEntity.d.ts +1 -5
  9. package/dist/types/entities/index.d.ts +24 -88
  10. package/dist/types/operations/applyDraft.d.ts +1 -1
  11. package/dist/types/operations/createBlockImage.d.ts +2 -8
  12. package/dist/types/operations/createBlockParagraph.d.ts +2 -6
  13. package/dist/types/operations/createBlockRow.d.ts +2 -6
  14. package/dist/types/operations/createBlockTitle.d.ts +2 -6
  15. package/dist/types/operations/createDraft.d.ts +2 -6
  16. package/dist/types/operations/createImage.d.ts +5 -0
  17. package/dist/types/operations/createPost.d.ts +2 -10
  18. package/dist/types/operations/createUser.d.ts +1 -5
  19. package/dist/types/operations/crudBySlug.d.ts +1 -7
  20. package/dist/types/operations/deleteBlocks.d.ts +1 -1
  21. package/dist/types/operations/deleteDraft.d.ts +1 -1
  22. package/dist/types/operations/deletePost.d.ts +1 -1
  23. package/dist/types/operations/moveBlocks.d.ts +2 -8
  24. package/dist/types/operations/testTransactionalEdits.d.ts +3 -11
  25. package/dist/types/operations/updateBlockParagraph.d.ts +2 -8
  26. package/dist/types/operations/updatePost.d.ts +4 -14
  27. package/dist/types/operations/updatePostDescription.d.ts +2 -8
  28. package/dist/types/operations/updatePostSlug.d.ts +2 -8
  29. package/dist/types/operations/updatePostTags.d.ts +3 -9
  30. package/dist/types/operations/updatePostTitle.d.ts +2 -8
  31. package/dist/types/schemas/BlockImageRefSchema.d.ts +1 -1
  32. package/dist/types/schemas/BlockImageSchema.d.ts +18 -76
  33. package/dist/types/schemas/BlockParagraphRefSchema.d.ts +1 -1
  34. package/dist/types/schemas/BlockParagraphSchema.d.ts +18 -76
  35. package/dist/types/schemas/BlockRefSchema.d.ts +1 -1
  36. package/dist/types/schemas/BlockRowRefSchema.d.ts +1 -1
  37. package/dist/types/schemas/BlockRowSchema.d.ts +20 -82
  38. package/dist/types/schemas/BlockTitleRefSchema.d.ts +1 -1
  39. package/dist/types/schemas/BlockTitleSchema.d.ts +18 -76
  40. package/dist/types/schemas/CreatePostMutationSchema.d.ts +8 -62
  41. package/dist/types/schemas/CreateUserMutationSchema.d.ts +7 -53
  42. package/dist/types/schemas/DraftRefSchema.d.ts +1 -1
  43. package/dist/types/schemas/DraftSchema.d.ts +17 -67
  44. package/dist/types/schemas/ImageSchema.d.ts +23 -0
  45. package/dist/types/schemas/PostRefSchema.d.ts +1 -1
  46. package/dist/types/schemas/PostSchema.d.ts +21 -99
  47. package/dist/types/schemas/UpdatePostMutationSchema.d.ts +10 -68
  48. package/dist/types/schemas/UpdatePostTitleMutationSchema.d.ts +8 -58
  49. package/dist/types/schemas/UserRefSchema.d.ts +1 -1
  50. package/dist/types/schemas/index.d.ts +2 -1
  51. package/package.json +3 -3
@@ -2,14 +2,6 @@ import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
3
  export declare const BlockImageEntity: Entity<"BlockImage", z.ZodObject<{
4
4
  url: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- url: string;
7
- }, {
8
- url: string;
9
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
- parent: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
11
- }, "strip", z.ZodTypeAny, {
12
- parent: `Post/${string}`;
13
- }, {
14
- parent: `Post/${string}`;
15
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
5
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodTemplateLiteral<`Post/${number}`>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -2,14 +2,6 @@ import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
3
  export declare const BlockParagraph: Entity<"BlockParagraph", z.ZodObject<{
4
4
  content: z.ZodOptional<z.ZodString>;
5
- }, "strip", z.ZodTypeAny, {
6
- content?: string | undefined;
7
- }, {
8
- content?: string | undefined;
9
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
- parent: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>]>;
11
- }, "strip", z.ZodTypeAny, {
12
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
13
- }, {
14
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
15
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
5
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodUnion<readonly z.core.SomeType[]>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -1,15 +1,7 @@
1
1
  import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
- export declare const BlockRow: Entity<"BlockRow", z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
4
- blocks: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
5
- }, "strip", z.ZodTypeAny, {
6
- blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
7
- }, {
8
- blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
9
- }>, z.ZodObject<{
10
- parent: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>]>;
11
- }, "strip", z.ZodTypeAny, {
12
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
13
- }, {
14
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
15
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
3
+ export declare const BlockRow: Entity<"BlockRow", z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
4
+ blocks: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>;
5
+ }, z.core.$strip>, z.ZodObject<{
6
+ parent: z.ZodUnion<readonly z.core.SomeType[]>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -2,14 +2,6 @@ import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
3
  export declare const Draft: Entity<"Draft", z.ZodObject<{
4
4
  appliedAt: z.ZodOptional<z.ZodString>;
5
- }, "strip", z.ZodTypeAny, {
6
- appliedAt?: string | undefined;
7
- }, {
8
- appliedAt?: string | undefined;
9
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
10
- post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
11
- }, "strip", z.ZodTypeAny, {
12
- post: `Post/${string}`;
13
- }, {
14
- post: `Post/${string}`;
15
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
5
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
6
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
7
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -3,28 +3,10 @@ import { z } from "zod";
3
3
  export declare const PostEntity: Entity<"Post", z.ZodObject<{
4
4
  title: z.ZodString;
5
5
  text: z.ZodOptional<z.ZodString>;
6
- tags: z.ZodArray<z.ZodString, "many">;
6
+ tags: z.ZodArray<z.ZodString>;
7
7
  slug: z.ZodOptional<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- title: string;
10
- tags: string[];
11
- text?: string | undefined;
12
- slug?: string | undefined;
13
- }, {
14
- title: string;
15
- tags: string[];
16
- text?: string | undefined;
17
- slug?: string | undefined;
18
- }>, z.ZodObject<{
19
- blocks: z.ZodArray<z.ZodString, "many">;
20
- }, "strip", z.ZodTypeAny, {
21
- blocks: string[];
22
- }, {
23
- blocks: string[];
24
- }>, z.ZodObject<{
25
- author: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
26
- }, "strip", z.ZodTypeAny, {
27
- author?: `User/${string}` | undefined;
28
- }, {
29
- author?: `User/${string}` | undefined;
30
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ blocks: z.ZodArray<z.ZodString>;
10
+ }, z.core.$strip>, z.ZodObject<{
11
+ author: z.ZodOptional<z.ZodTemplateLiteral<`User/${number}`>>;
12
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -2,17 +2,7 @@ import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
3
  export declare const PostVersion: Entity<"PostVersion", z.ZodObject<{
4
4
  version: z.ZodNumber;
5
- snapshot: z.ZodArray<z.ZodAny, "many">;
6
- }, "strip", z.ZodTypeAny, {
7
- version: number;
8
- snapshot: any[];
9
- }, {
10
- version: number;
11
- snapshot: any[];
12
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{
13
- post: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
14
- }, "strip", z.ZodTypeAny, {
15
- post: `Post/${string}`;
16
- }, {
17
- post: `Post/${string}`;
18
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
5
+ snapshot: z.ZodArray<z.ZodAny>;
6
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
+ post: z.ZodTemplateLiteral<`Post/${number}`>;
8
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -2,8 +2,4 @@ import { Entity } from "roc-db";
2
2
  import { z } from "zod";
3
3
  export declare const UserEntity: Entity<"User", z.ZodObject<{
4
4
  email: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- email: string;
7
- }, {
8
- email: string;
9
- }>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>, z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>>;
5
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
@@ -1,97 +1,33 @@
1
1
  export declare const entities: (import("roc-db").Entity<"Draft", import("zod").ZodObject<{
2
2
  appliedAt: import("zod").ZodOptional<import("zod").ZodString>;
3
- }, "strip", import("zod").ZodTypeAny, {
4
- appliedAt?: string | undefined;
5
- }, {
6
- appliedAt?: string | undefined;
7
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
8
- post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
9
- }, "strip", import("zod").ZodTypeAny, {
10
- post: `Post/${string}`;
11
- }, {
12
- post: `Post/${string}`;
13
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockImage", import("zod").ZodObject<{
3
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
4
+ post: import("zod").ZodTemplateLiteral<`Post/${number}`>;
5
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockImage", import("zod").ZodObject<{
14
6
  url: import("zod").ZodString;
15
- }, "strip", import("zod").ZodTypeAny, {
16
- url: string;
17
- }, {
18
- url: string;
19
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
20
- parent: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
21
- }, "strip", import("zod").ZodTypeAny, {
22
- parent: `Post/${string}`;
23
- }, {
24
- parent: `Post/${string}`;
25
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"Post", import("zod").ZodObject<{
7
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
8
+ parent: import("zod").ZodTemplateLiteral<`Post/${number}`>;
9
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"Post", import("zod").ZodObject<{
26
10
  title: import("zod").ZodString;
27
11
  text: import("zod").ZodOptional<import("zod").ZodString>;
28
- tags: import("zod").ZodArray<import("zod").ZodString, "many">;
12
+ tags: import("zod").ZodArray<import("zod").ZodString>;
29
13
  slug: import("zod").ZodOptional<import("zod").ZodString>;
30
- }, "strip", import("zod").ZodTypeAny, {
31
- title: string;
32
- tags: string[];
33
- text?: string | undefined;
34
- slug?: string | undefined;
35
- }, {
36
- title: string;
37
- tags: string[];
38
- text?: string | undefined;
39
- slug?: string | undefined;
40
- }>, import("zod").ZodObject<{
41
- blocks: import("zod").ZodArray<import("zod").ZodString, "many">;
42
- }, "strip", import("zod").ZodTypeAny, {
43
- blocks: string[];
44
- }, {
45
- blocks: string[];
46
- }>, import("zod").ZodObject<{
47
- author: import("zod").ZodOptional<import("zod").ZodType<`User/${string}`, import("zod").ZodTypeDef, `User/${string}`>>;
48
- }, "strip", import("zod").ZodTypeAny, {
49
- author?: `User/${string}` | undefined;
50
- }, {
51
- author?: `User/${string}` | undefined;
52
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockParagraph", import("zod").ZodObject<{
14
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
15
+ blocks: import("zod").ZodArray<import("zod").ZodString>;
16
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
17
+ author: import("zod").ZodOptional<import("zod").ZodTemplateLiteral<`User/${number}`>>;
18
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockParagraph", import("zod").ZodObject<{
53
19
  content: import("zod").ZodOptional<import("zod").ZodString>;
54
- }, "strip", import("zod").ZodTypeAny, {
55
- content?: string | undefined;
56
- }, {
57
- content?: string | undefined;
58
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
59
- parent: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>]>;
60
- }, "strip", import("zod").ZodTypeAny, {
61
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
62
- }, {
63
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
64
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"BlockRow", import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
65
- blocks: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>, "many">;
66
- }, "strip", import("zod").ZodTypeAny, {
67
- blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
68
- }, {
69
- blocks: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
70
- }>, import("zod").ZodObject<{
71
- parent: import("zod").ZodUnion<[import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>, import("zod").ZodUnion<[import("zod").ZodType<`BlockParagraph/${string}`, import("zod").ZodTypeDef, `BlockParagraph/${string}`>, import("zod").ZodType<`BlockRow/${string}`, import("zod").ZodTypeDef, `BlockRow/${string}`>]>]>;
72
- }, "strip", import("zod").ZodTypeAny, {
73
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
74
- }, {
75
- parent: `Post/${string}` | `BlockParagraph/${string}` | `BlockRow/${string}`;
76
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"PostVersion", import("zod").ZodObject<{
20
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
21
+ parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
22
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"BlockRow", import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
23
+ blocks: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodTemplateLiteral<`BlockParagraph/${number}`>, import("zod").ZodTemplateLiteral<`BlockRow/${number}`>]>>;
24
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
25
+ parent: import("zod").ZodUnion<readonly import("zod/v4/core").SomeType[]>;
26
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"PostVersion", import("zod").ZodObject<{
77
27
  version: import("zod").ZodNumber;
78
- snapshot: import("zod").ZodArray<import("zod").ZodAny, "many">;
79
- }, "strip", import("zod").ZodTypeAny, {
80
- version: number;
81
- snapshot: any[];
82
- }, {
83
- version: number;
84
- snapshot: any[];
85
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
86
- post: import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>;
87
- }, "strip", import("zod").ZodTypeAny, {
88
- post: `Post/${string}`;
89
- }, {
90
- post: `Post/${string}`;
91
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>> | import("roc-db").Entity<"User", import("zod").ZodObject<{
28
+ snapshot: import("zod").ZodArray<import("zod").ZodAny>;
29
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
30
+ post: import("zod").ZodTemplateLiteral<`Post/${number}`>;
31
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>> | import("roc-db").Entity<"User", import("zod").ZodObject<{
92
32
  email: import("zod").ZodString;
93
- }, "strip", import("zod").ZodTypeAny, {
94
- email: string;
95
- }, {
96
- email: string;
97
- }>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{}, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {}, {}>>)[];
33
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>>)[];
@@ -1 +1 @@
1
- export declare const applyDraft: import("roc-db").WriteOperation<"applyDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>;
1
+ export declare const applyDraft: import("roc-db").WriteOperation<"applyDraft", import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const createBlockImage: import("roc-db").WriteOperation<"createBlockImage", z.ZodObject<{
3
- parentRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
3
+ parentRef: z.ZodTemplateLiteral<`Post/${number}`>;
4
4
  url: z.ZodString;
5
- }, "strict", z.ZodTypeAny, {
6
- url: string;
7
- parentRef: `Post/${string}`;
8
- }, {
9
- url: string;
10
- parentRef: `Post/${string}`;
11
- }>>;
5
+ }, z.core.$strict>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const createBlockParagrah: import("roc-db").WriteOperation<"createBlockParagraph", z.ZodObject<{
3
- parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
- }, "strict", z.ZodTypeAny, {
5
- parentRef: `Post/${string}` | `BlockRow/${string}`;
6
- }, {
7
- parentRef: `Post/${string}` | `BlockRow/${string}`;
8
- }>>;
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ }, z.core.$strict>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const createBlockRow: import("roc-db").WriteOperation<"createBlockRow", z.ZodObject<{
3
- parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
- }, "strict", z.ZodTypeAny, {
5
- parentRef: `Post/${string}` | `BlockRow/${string}`;
6
- }, {
7
- parentRef: `Post/${string}` | `BlockRow/${string}`;
8
- }>>;
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ }, z.core.$strict>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const createBlockTitle: import("roc-db").WriteOperation<"createBlockTitle", z.ZodObject<{
3
- parentRef: z.ZodUnion<[z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>;
4
- }, "strict", z.ZodTypeAny, {
5
- parentRef: `Post/${string}` | `BlockRow/${string}`;
6
- }, {
7
- parentRef: `Post/${string}` | `BlockRow/${string}`;
8
- }>>;
3
+ parentRef: z.ZodUnion<readonly [z.ZodTemplateLiteral<`Post/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>;
4
+ }, z.core.$strict>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const createDraft: import("roc-db").WriteOperation<"createDraft", z.ZodObject<{
3
- postRef: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
- }, "strict", z.ZodTypeAny, {
5
- postRef: `Post/${string}`;
6
- }, {
7
- postRef: `Post/${string}`;
8
- }>>;
3
+ postRef: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ }, z.core.$strict>>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export declare const createImage: import("roc-db").WriteOperation<"createImage", z.ZodObject<{
3
+ title: z.ZodString;
4
+ file: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strict>>;
@@ -2,13 +2,5 @@ import { z } from "zod";
2
2
  export declare const createPost: import("roc-db").WriteOperation<"createPost", z.ZodObject<{
3
3
  title: z.ZodString;
4
4
  slug: z.ZodOptional<z.ZodString>;
5
- tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6
- }, "strict", z.ZodTypeAny, {
7
- title: string;
8
- tags: string[];
9
- slug?: string | undefined;
10
- }, {
11
- title: string;
12
- tags?: string[] | undefined;
13
- slug?: string | undefined;
14
- }>>;
5
+ tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
6
+ }, z.core.$strict>>;
@@ -1,8 +1,4 @@
1
1
  import { z } from "zod";
2
2
  export declare const createUser: import("roc-db").WriteOperation<"createUser", z.ZodObject<{
3
3
  email: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- email: string;
6
- }, {
7
- email: string;
8
- }>>;
4
+ }, z.core.$strip>>;
@@ -2,10 +2,4 @@ import { z } from "zod";
2
2
  export declare const crudBySlug: import("roc-db").WriteOperation<"crudBySlug", z.ZodObject<{
3
3
  slug: z.ZodString;
4
4
  newSlug: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- slug: string;
7
- newSlug: string;
8
- }, {
9
- slug: string;
10
- newSlug: string;
11
- }>>;
5
+ }, z.core.$strip>>;
@@ -1,2 +1,2 @@
1
1
  import { z } from "zod";
2
- export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockImage/${string}`, z.ZodTypeDef, `BlockImage/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">>;
2
+ export declare const deleteBlocks: import("roc-db").WriteOperation<"deleteBlocks", z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockImage/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>>;
@@ -1 +1 @@
1
- export declare const deleteDraft: import("roc-db").WriteOperation<"deleteDraft", import("zod").ZodType<`Draft/${string}`, import("zod").ZodTypeDef, `Draft/${string}`>>;
1
+ export declare const deleteDraft: import("roc-db").WriteOperation<"deleteDraft", import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>>;
@@ -1 +1 @@
1
- export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodType<`Post/${string}`, import("zod").ZodTypeDef, `Post/${string}`>>;
1
+ export declare const deletePost: import("roc-db").WriteOperation<"deletePost", import("zod").ZodTemplateLiteral<`Post/${number}`>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const moveBlocks: import("roc-db").WriteOperation<"moveBlocks", z.ZodObject<{
3
- refs: z.ZodArray<z.ZodUnion<[z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>, z.ZodType<`BlockRow/${string}`, z.ZodTypeDef, `BlockRow/${string}`>]>, "many">;
3
+ refs: z.ZodArray<z.ZodUnion<readonly [z.ZodTemplateLiteral<`BlockParagraph/${number}`>, z.ZodTemplateLiteral<`BlockRow/${number}`>]>>;
4
4
  targetPosition: z.ZodNumber;
5
- }, "strict", z.ZodTypeAny, {
6
- refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
7
- targetPosition: number;
8
- }, {
9
- refs: (`BlockParagraph/${string}` | `BlockRow/${string}`)[];
10
- targetPosition: number;
11
- }>>;
5
+ }, z.core.$strict>>;
@@ -1,14 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const testTransactionalEdits: import("roc-db").WriteOperation<"testTransactionalEdits", z.ZodObject<{
3
3
  name: z.ZodOptional<z.ZodString>;
4
- post1ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
5
- post2ref: z.ZodOptional<z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>>;
6
- }, "strict", z.ZodTypeAny, {
7
- name?: string | undefined;
8
- post1ref?: `Post/${string}` | undefined;
9
- post2ref?: `Post/${string}` | undefined;
10
- }, {
11
- name?: string | undefined;
12
- post1ref?: `Post/${string}` | undefined;
13
- post2ref?: `Post/${string}` | undefined;
14
- }>>;
4
+ post1ref: z.ZodOptional<z.ZodTemplateLiteral<`Post/${number}`>>;
5
+ post2ref: z.ZodOptional<z.ZodTemplateLiteral<`Post/${number}`>>;
6
+ }, z.core.$strict>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const updateBlockParagraph: import("roc-db").WriteOperation<"updateBlockParagraph", z.ZodObject<{
3
- ref: z.ZodType<`BlockParagraph/${string}`, z.ZodTypeDef, `BlockParagraph/${string}`>;
3
+ ref: z.ZodTemplateLiteral<`BlockParagraph/${number}`>;
4
4
  content: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- ref: `BlockParagraph/${string}`;
7
- content: string;
8
- }, {
9
- ref: `BlockParagraph/${string}`;
10
- content: string;
11
- }>>;
5
+ }, z.core.$strip>>;
@@ -1,17 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const updatePost: import("roc-db").WriteOperation<"updatePost", z.ZodObject<{
3
- ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
4
  title: z.ZodOptional<z.ZodString>;
5
- tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6
- authorRef: z.ZodOptional<z.ZodType<`User/${string}`, z.ZodTypeDef, `User/${string}`>>;
7
- }, "strip", z.ZodTypeAny, {
8
- ref: `Post/${string}`;
9
- tags: string[];
10
- title?: string | undefined;
11
- authorRef?: `User/${string}` | undefined;
12
- }, {
13
- ref: `Post/${string}`;
14
- title?: string | undefined;
15
- tags?: string[] | undefined;
16
- authorRef?: `User/${string}` | undefined;
17
- }>>;
5
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
6
+ authorRef: z.ZodOptional<z.ZodTemplateLiteral<`User/${number}`>>;
7
+ }, z.core.$strip>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const updatePostDescription: import("roc-db").WriteOperation<"updatePostDescription", z.ZodObject<{
3
- ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
4
  description: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- ref: `Post/${string}`;
7
- description: string;
8
- }, {
9
- ref: `Post/${string}`;
10
- description: string;
11
- }>>;
5
+ }, z.core.$strip>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const updatePostSlug: import("roc-db").WriteOperation<"updatePostSlug", z.ZodObject<{
3
- ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
4
  slug: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- ref: `Post/${string}`;
7
- slug: string;
8
- }, {
9
- ref: `Post/${string}`;
10
- slug: string;
11
- }>>;
5
+ }, z.core.$strip>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const updatePostTags: import("roc-db").WriteOperation<"updatePostTags", z.ZodObject<{
3
- ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
4
- tags: z.ZodArray<z.ZodString, "many">;
5
- }, "strip", z.ZodTypeAny, {
6
- ref: `Post/${string}`;
7
- tags: string[];
8
- }, {
9
- ref: `Post/${string}`;
10
- tags: string[];
11
- }>>;
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
+ tags: z.ZodArray<z.ZodString>;
5
+ }, z.core.$strip>>;
@@ -1,11 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export declare const updatePostTitle: import("roc-db").WriteOperation<"updatePostTitle", z.ZodObject<{
3
- ref: z.ZodType<`Post/${string}`, z.ZodTypeDef, `Post/${string}`>;
3
+ ref: z.ZodTemplateLiteral<`Post/${number}`>;
4
4
  title: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- ref: `Post/${string}`;
7
- title: string;
8
- }, {
9
- ref: `Post/${string}`;
10
- title: string;
11
- }>>;
5
+ }, z.core.$strip>>;
@@ -1 +1 @@
1
- export declare const BlockImageRefSchema: import("zod").ZodType<`BlockImage/${string}`, import("zod").ZodTypeDef, `BlockImage/${string}`>;
1
+ export declare const BlockImageRefSchema: import("zod").ZodTemplateLiteral<`BlockImage/${number}`>;