@fuzdev/fuz_app 0.67.1 → 0.68.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.
Files changed (164) hide show
  1. package/dist/auth/CLAUDE.md +99 -5
  2. package/dist/auth/account_queries.d.ts +87 -4
  3. package/dist/auth/account_queries.d.ts.map +1 -1
  4. package/dist/auth/account_queries.js +107 -17
  5. package/dist/auth/account_schema.d.ts +19 -0
  6. package/dist/auth/account_schema.d.ts.map +1 -1
  7. package/dist/auth/account_schema.js +8 -0
  8. package/dist/auth/admin_action_specs.d.ts +168 -0
  9. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  10. package/dist/auth/admin_action_specs.js +146 -1
  11. package/dist/auth/admin_actions.d.ts.map +1 -1
  12. package/dist/auth/admin_actions.js +218 -4
  13. package/dist/auth/audit_log_ddl.d.ts +10 -1
  14. package/dist/auth/audit_log_ddl.d.ts.map +1 -1
  15. package/dist/auth/audit_log_ddl.js +13 -4
  16. package/dist/auth/audit_log_schema.d.ts +34 -1
  17. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  18. package/dist/auth/audit_log_schema.js +73 -0
  19. package/dist/auth/auth_ddl.d.ts +2 -2
  20. package/dist/auth/auth_ddl.d.ts.map +1 -1
  21. package/dist/auth/auth_ddl.js +10 -2
  22. package/dist/auth/cell_action_specs.d.ts +1295 -0
  23. package/dist/auth/cell_action_specs.d.ts.map +1 -0
  24. package/dist/auth/cell_action_specs.js +397 -0
  25. package/dist/auth/cell_actions.d.ts +63 -0
  26. package/dist/auth/cell_actions.d.ts.map +1 -0
  27. package/dist/auth/cell_actions.js +546 -0
  28. package/dist/auth/cell_audit_action_specs.d.ts +131 -0
  29. package/dist/auth/cell_audit_action_specs.d.ts.map +1 -0
  30. package/dist/auth/cell_audit_action_specs.js +70 -0
  31. package/dist/auth/cell_audit_actions.d.ts +18 -0
  32. package/dist/auth/cell_audit_actions.d.ts.map +1 -0
  33. package/dist/auth/cell_audit_actions.js +59 -0
  34. package/dist/auth/cell_audit_events.d.ts +28 -0
  35. package/dist/auth/cell_audit_events.d.ts.map +1 -0
  36. package/dist/auth/cell_audit_events.js +42 -0
  37. package/dist/auth/cell_audit_metadata.d.ts +48 -0
  38. package/dist/auth/cell_audit_metadata.d.ts.map +1 -0
  39. package/dist/auth/cell_audit_metadata.js +46 -0
  40. package/dist/auth/cell_authorize.d.ts +88 -0
  41. package/dist/auth/cell_authorize.d.ts.map +1 -0
  42. package/dist/auth/cell_authorize.js +172 -0
  43. package/dist/auth/cell_data_schema.d.ts +44 -0
  44. package/dist/auth/cell_data_schema.d.ts.map +1 -0
  45. package/dist/auth/cell_data_schema.js +42 -0
  46. package/dist/auth/cell_field_action_specs.d.ts +244 -0
  47. package/dist/auth/cell_field_action_specs.d.ts.map +1 -0
  48. package/dist/auth/cell_field_action_specs.js +136 -0
  49. package/dist/auth/cell_field_actions.d.ts +34 -0
  50. package/dist/auth/cell_field_actions.d.ts.map +1 -0
  51. package/dist/auth/cell_field_actions.js +153 -0
  52. package/dist/auth/cell_field_audit_metadata.d.ts +30 -0
  53. package/dist/auth/cell_field_audit_metadata.d.ts.map +1 -0
  54. package/dist/auth/cell_field_audit_metadata.js +28 -0
  55. package/dist/auth/cell_grant_action_specs.d.ts +333 -0
  56. package/dist/auth/cell_grant_action_specs.d.ts.map +1 -0
  57. package/dist/auth/cell_grant_action_specs.js +148 -0
  58. package/dist/auth/cell_grant_actions.d.ts +50 -0
  59. package/dist/auth/cell_grant_actions.d.ts.map +1 -0
  60. package/dist/auth/cell_grant_actions.js +208 -0
  61. package/dist/auth/cell_grant_audit_metadata.d.ts +75 -0
  62. package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -0
  63. package/dist/auth/cell_grant_audit_metadata.js +54 -0
  64. package/dist/auth/cell_item_action_specs.d.ts +331 -0
  65. package/dist/auth/cell_item_action_specs.d.ts.map +1 -0
  66. package/dist/auth/cell_item_action_specs.js +182 -0
  67. package/dist/auth/cell_item_actions.d.ts +37 -0
  68. package/dist/auth/cell_item_actions.d.ts.map +1 -0
  69. package/dist/auth/cell_item_actions.js +204 -0
  70. package/dist/auth/cell_item_audit_metadata.d.ts +35 -0
  71. package/dist/auth/cell_item_audit_metadata.d.ts.map +1 -0
  72. package/dist/auth/cell_item_audit_metadata.js +32 -0
  73. package/dist/auth/cell_relation_visibility.d.ts +32 -0
  74. package/dist/auth/cell_relation_visibility.d.ts.map +1 -0
  75. package/dist/auth/cell_relation_visibility.js +57 -0
  76. package/dist/auth/deps.d.ts +9 -0
  77. package/dist/auth/deps.d.ts.map +1 -1
  78. package/dist/auth/role_grant_queries.d.ts +30 -0
  79. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  80. package/dist/auth/role_grant_queries.js +54 -0
  81. package/dist/db/CLAUDE.md +118 -0
  82. package/dist/db/cell_audit_queries.d.ts +26 -0
  83. package/dist/db/cell_audit_queries.d.ts.map +1 -0
  84. package/dist/db/cell_audit_queries.js +53 -0
  85. package/dist/db/cell_ddl.d.ts +151 -0
  86. package/dist/db/cell_ddl.d.ts.map +1 -0
  87. package/dist/db/cell_ddl.js +247 -0
  88. package/dist/db/cell_field_queries.d.ts +105 -0
  89. package/dist/db/cell_field_queries.d.ts.map +1 -0
  90. package/dist/db/cell_field_queries.js +113 -0
  91. package/dist/db/cell_grant_queries.d.ts +132 -0
  92. package/dist/db/cell_grant_queries.d.ts.map +1 -0
  93. package/dist/db/cell_grant_queries.js +145 -0
  94. package/dist/db/cell_history_ddl.d.ts +38 -0
  95. package/dist/db/cell_history_ddl.d.ts.map +1 -0
  96. package/dist/db/cell_history_ddl.js +61 -0
  97. package/dist/db/cell_item_queries.d.ts +107 -0
  98. package/dist/db/cell_item_queries.d.ts.map +1 -0
  99. package/dist/db/cell_item_queries.js +119 -0
  100. package/dist/db/cell_queries.d.ts +327 -0
  101. package/dist/db/cell_queries.d.ts.map +1 -0
  102. package/dist/db/cell_queries.js +431 -0
  103. package/dist/db/fact_ddl.d.ts +38 -0
  104. package/dist/db/fact_ddl.d.ts.map +1 -0
  105. package/dist/db/fact_ddl.js +71 -0
  106. package/dist/db/fact_queries.d.ts +140 -0
  107. package/dist/db/fact_queries.d.ts.map +1 -0
  108. package/dist/db/fact_queries.js +161 -0
  109. package/dist/db/fact_store.d.ts +112 -0
  110. package/dist/db/fact_store.d.ts.map +1 -0
  111. package/dist/db/fact_store.js +225 -0
  112. package/dist/server/env.d.ts +2 -0
  113. package/dist/server/env.d.ts.map +1 -1
  114. package/dist/server/env.js +6 -0
  115. package/dist/server/fact_write.d.ts +32 -0
  116. package/dist/server/fact_write.d.ts.map +1 -0
  117. package/dist/server/fact_write.js +56 -0
  118. package/dist/server/file_fact_fetcher.d.ts +42 -0
  119. package/dist/server/file_fact_fetcher.d.ts.map +1 -0
  120. package/dist/server/file_fact_fetcher.js +60 -0
  121. package/dist/server/file_fact_url.d.ts +53 -0
  122. package/dist/server/file_fact_url.d.ts.map +1 -0
  123. package/dist/server/file_fact_url.js +52 -0
  124. package/dist/server/serve_fact_route.d.ts +78 -0
  125. package/dist/server/serve_fact_route.d.ts.map +1 -0
  126. package/dist/server/serve_fact_route.js +205 -0
  127. package/dist/testing/CLAUDE.md +58 -5
  128. package/dist/testing/app_server.d.ts +12 -0
  129. package/dist/testing/app_server.d.ts.map +1 -1
  130. package/dist/testing/app_server.js +36 -2
  131. package/dist/testing/audit_completeness.d.ts.map +1 -1
  132. package/dist/testing/audit_completeness.js +67 -1
  133. package/dist/testing/cross_backend/account_lifecycle.d.ts +10 -0
  134. package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -0
  135. package/dist/testing/cross_backend/account_lifecycle.js +76 -0
  136. package/dist/testing/cross_backend/capabilities.d.ts +31 -0
  137. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  138. package/dist/testing/cross_backend/capabilities.js +3 -0
  139. package/dist/testing/cross_backend/cell_cross_helpers.d.ts +39 -0
  140. package/dist/testing/cross_backend/cell_cross_helpers.d.ts.map +1 -0
  141. package/dist/testing/cross_backend/cell_cross_helpers.js +45 -0
  142. package/dist/testing/cross_backend/cell_crud.d.ts +4 -0
  143. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -0
  144. package/dist/testing/cross_backend/cell_crud.js +168 -0
  145. package/dist/testing/cross_backend/cell_relations.d.ts +4 -0
  146. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -0
  147. package/dist/testing/cross_backend/cell_relations.js +229 -0
  148. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  149. package/dist/testing/cross_backend/default_backend_configs.js +6 -0
  150. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  151. package/dist/testing/cross_backend/setup.js +5 -0
  152. package/dist/testing/entities.d.ts.map +1 -1
  153. package/dist/testing/entities.js +4 -0
  154. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  155. package/dist/testing/ws_round_trip.js +4 -0
  156. package/dist/ui/AdminAccounts.svelte +58 -0
  157. package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
  158. package/dist/ui/admin_accounts_state.svelte.d.ts +30 -2
  159. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  160. package/dist/ui/admin_accounts_state.svelte.js +45 -1
  161. package/dist/ui/admin_rpc_adapters.d.ts +6 -2
  162. package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
  163. package/dist/ui/admin_rpc_adapters.js +5 -1
  164. package/package.json +2 -2
@@ -0,0 +1,1295 @@
1
+ /**
2
+ * Cell RPC action specs — the declarative contract for the six generic
3
+ * cell verbs. App vocabulary (galleries, posts, events) lives in
4
+ * client-side helpers; the wire stays generic.
5
+ *
6
+ * @module
7
+ */
8
+ import { z } from 'zod';
9
+ import { cell_grant_create_action_spec, cell_grant_revoke_action_spec, cell_grant_list_action_spec } from './cell_grant_action_specs.js';
10
+ import { cell_field_set_action_spec, cell_field_delete_action_spec, cell_field_list_action_spec } from './cell_field_action_specs.js';
11
+ import { cell_item_insert_action_spec, cell_item_move_action_spec, cell_item_delete_action_spec, cell_item_list_action_spec } from './cell_item_action_specs.js';
12
+ import { cell_audit_list_action_spec } from './cell_audit_action_specs.js';
13
+ /**
14
+ * Cell visibility — the coarse-grained access-control axis for a cell.
15
+ * Sibling to `cell_grant` (the fine-grained allowlist of actor- /
16
+ * role-shaped principals at `viewer` / `editor` levels). Together they
17
+ * form the cell-layer access-control surface:
18
+ *
19
+ * - `cell.visibility = 'public'` admits everyone, including
20
+ * unauthenticated visitors. `cell_grant` rows still apply for edit-
21
+ * level admit; read is universal.
22
+ * - `cell.visibility = 'private'` (default) restricts read to admin /
23
+ * owner (`created_by`) / `cell_grant`-admitted callers.
24
+ *
25
+ * Stored as a top-level PG enum column (`cell.visibility`) — NOT inside
26
+ * `cell.data`, which is content metadata only. `can_view_cell` reads
27
+ * the column directly.
28
+ */
29
+ export declare const CellVisibility: z.ZodEnum<{
30
+ private: "private";
31
+ public: "public";
32
+ }>;
33
+ export type CellVisibility = z.infer<typeof CellVisibility>;
34
+ export { cell_grant_create_action_spec, cell_grant_revoke_action_spec, cell_grant_list_action_spec };
35
+ export { cell_field_set_action_spec, cell_field_delete_action_spec, cell_field_list_action_spec };
36
+ export { cell_item_insert_action_spec, cell_item_move_action_spec, cell_item_delete_action_spec, cell_item_list_action_spec, };
37
+ export { cell_audit_list_action_spec };
38
+ /** Error reason — cell id did not resolve, or caller can't view it. */
39
+ export declare const ERROR_CELL_NOT_FOUND: "cell_not_found";
40
+ /** Error reason — caller is not an admin and supplied a `path` write. */
41
+ export declare const ERROR_CELL_PATH_ADMIN_ONLY: "cell_path_admin_only";
42
+ /**
43
+ * Error reason — a `path` write collided with an existing active cell's
44
+ * path. `path` is globally unique on active rows (`idx_cell_path_unique`);
45
+ * the create / update handlers translate the unique-index violation into
46
+ * this `conflict` (409) reason rather than leaking a raw internal error.
47
+ * Soft-deleted rows free their path (the index is partial on
48
+ * `deleted_at IS NULL`), so reusing a deleted cell's path does not collide.
49
+ */
50
+ export declare const ERROR_CELL_PATH_TAKEN: "cell_path_taken";
51
+ /**
52
+ * Error reason — caller tried to write `cell.visibility` without the
53
+ * manage tier (`can_manage_cell` = admin / owner). Editor-grant holders
54
+ * may edit `data` but cannot flip a cell's visibility — that is a
55
+ * manage-tier-only operation.
56
+ */
57
+ export declare const ERROR_CELL_VISIBILITY_MANAGE_ONLY: "cell_visibility_manage_only";
58
+ /** Error reason — input shape for `cell_get` lacked both `id` and `path`. */
59
+ export declare const ERROR_CELL_GET_REQUIRES_ID_OR_PATH: "cell_get_requires_id_or_path";
60
+ /**
61
+ * Error reason — `cell_clone` `with_data_patch` would change `data.kind`.
62
+ * Per-kind shape validation can pass coincidentally (e.g., one kind's
63
+ * schema accepts most of another's fields), so we reject the cross-kind
64
+ * patch explicitly to prevent incoherent clones.
65
+ */
66
+ export declare const ERROR_CELL_CLONE_KIND_MISMATCH: "cell_clone_kind_mismatch";
67
+ /**
68
+ * Error reason — null-auth `cell_list` caller passed a `created_by`
69
+ * filter. The filter is a soft account-id enumeration vector ("does
70
+ * account X have any public cells?"), so we require an authenticated
71
+ * caller to use it.
72
+ */
73
+ export declare const ERROR_CELL_LIST_CREATED_BY_REQUIRES_AUTH: "cell_list_created_by_requires_auth";
74
+ /**
75
+ * Error reason — null-auth `cell_list` caller passed `shared_with: 'me'`.
76
+ * The filter resolves to the caller's account + role_grants, which only
77
+ * exist for an authenticated session.
78
+ */
79
+ export declare const ERROR_CELL_LIST_SHARED_WITH_REQUIRES_AUTH: "cell_list_shared_with_requires_auth";
80
+ /**
81
+ * Wire form for `cell.path`.
82
+ *
83
+ * At the spec level we only enforce that the value is a non-empty string
84
+ * with a sane upper bound — the cell layer is generic and doesn't impose
85
+ * a path grammar. App-side curation (well-known names like `/map/main`,
86
+ * `/site/events`) is admin-driven.
87
+ */
88
+ export declare const CELL_PATH_LENGTH_MAX = 256;
89
+ /**
90
+ * Branded so the type system distinguishes a validated path from any other
91
+ * string. Construct via `CellPath.parse(s)` at external boundaries; the
92
+ * RPC dispatcher does this automatically when the wire schema (`CellCreateInput`,
93
+ * `CellGetInput`, `CellUpdateInput`, `CellListInput`) is parsed at the entry
94
+ * point. Frontend callers handing a raw string to `api.cell_*` cast at the
95
+ * callsite (`as CellPath`) — the runtime check still runs server-side.
96
+ */
97
+ export declare const CellPath: z.core.$ZodBranded<z.ZodString, "CellPath", "out">;
98
+ export type CellPath = z.infer<typeof CellPath>;
99
+ /**
100
+ * Soft cap on the size of a `cell.list` request page. Larger pages chew
101
+ * memory both server- and client-side; combined with the visibility
102
+ * predicate's filter cost, 200 is a safe ceiling.
103
+ */
104
+ export declare const CELL_LIST_LIMIT_MAX = 200;
105
+ export declare const CELL_LIST_LIMIT_DEFAULT = 50;
106
+ /**
107
+ * Hard cap on bundled relation arrays in `cell_get` (per-relation
108
+ * `LIMIT`). Beyond this the response sets `*_truncated: true` and the
109
+ * client paginates via `cell_item_list({parent_id, position_after})` /
110
+ * `cell_field_list({source_id, name_after})`.
111
+ */
112
+ export declare const CELL_RELATIONS_BUNDLE_LIMIT = 500;
113
+ /**
114
+ * Wire form for a cell row. `data` is the typed-but-permissive `CellData`
115
+ * shape (kind / label / summary typed-and-optional, additional fields
116
+ * pass through). Per-kind shape validation is sub-API and handled by
117
+ * the app's `validate_data` deps callback (see `cell_actions.ts`).
118
+ *
119
+ * `visibility` is the access-control axis — a top-level column on the
120
+ * row, not a field inside `data`. `cell_grant` and `visibility` are the
121
+ * two ACL surfaces; both live as peers, not embedded in content.
122
+ *
123
+ * `path` is the global namespace axis (no tenant/hub scoping).
124
+ *
125
+ * Relations (`items`, `fields`) are NOT carried on the cell row — they
126
+ * live in the `cell_item` / `cell_field` sibling tables. Bundled arrays
127
+ * appear on `CellGetOutput`; other read verbs (`cell_list`) do not bundle.
128
+ */
129
+ export declare const CellJson: z.ZodObject<{
130
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
131
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
132
+ data: z.ZodObject<{
133
+ kind: z.ZodOptional<z.ZodString>;
134
+ label: z.ZodOptional<z.ZodString>;
135
+ summary: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$loose>;
137
+ visibility: z.ZodEnum<{
138
+ private: "private";
139
+ public: "public";
140
+ }>;
141
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
142
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
143
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
144
+ created_at: z.ZodString;
145
+ updated_at: z.ZodNullable<z.ZodString>;
146
+ deleted_at: z.ZodNullable<z.ZodString>;
147
+ grant_count: z.ZodNumber;
148
+ }, z.core.$strict>;
149
+ export type CellJson = z.infer<typeof CellJson>;
150
+ /**
151
+ * Input for `cell_create`. `created_by` is NOT on the wire — the handler
152
+ * stamps it from auth.actor.id. `path` is admin-only; non-admin callers
153
+ * supplying `path` get `ERROR_CELL_PATH_ADMIN_ONLY` (forbidden).
154
+ */
155
+ export declare const CellCreateInput: z.ZodObject<{
156
+ data: z.ZodObject<{
157
+ kind: z.ZodOptional<z.ZodString>;
158
+ label: z.ZodOptional<z.ZodString>;
159
+ summary: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$loose>;
161
+ visibility: z.ZodOptional<z.ZodEnum<{
162
+ private: "private";
163
+ public: "public";
164
+ }>>;
165
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
166
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
167
+ }, z.core.$strict>;
168
+ export type CellCreateInput = z.infer<typeof CellCreateInput>;
169
+ export declare const CellCreateOutput: z.ZodObject<{
170
+ cell: z.ZodObject<{
171
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
172
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
173
+ data: z.ZodObject<{
174
+ kind: z.ZodOptional<z.ZodString>;
175
+ label: z.ZodOptional<z.ZodString>;
176
+ summary: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$loose>;
178
+ visibility: z.ZodEnum<{
179
+ private: "private";
180
+ public: "public";
181
+ }>;
182
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
183
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
184
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
185
+ created_at: z.ZodString;
186
+ updated_at: z.ZodNullable<z.ZodString>;
187
+ deleted_at: z.ZodNullable<z.ZodString>;
188
+ grant_count: z.ZodNumber;
189
+ }, z.core.$strict>;
190
+ }, z.core.$strict>;
191
+ export type CellCreateOutput = z.infer<typeof CellCreateOutput>;
192
+ /**
193
+ * Input for `cell_get`. Pass `id` OR `path` (exactly one expected; both
194
+ * accepted, `id` takes precedence). The handler responds with 404 when no
195
+ * row matches OR when `can_view_cell` rejects the caller — same code so
196
+ * private-cell existence doesn't leak.
197
+ */
198
+ export declare const CellGetInput: z.ZodObject<{
199
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
200
+ path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
201
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
202
+ }, z.core.$strict>;
203
+ export type CellGetInput = z.infer<typeof CellGetInput>;
204
+ /**
205
+ * Output for `cell_get`. Bundles relation arrays (`fields` + `items`)
206
+ * server-side via JOINs so the common "show this cell with its
207
+ * children" flow needs one round-trip. Targets are filtered to those the
208
+ * caller may view (strict target-visibility). Per-relation `LIMIT
209
+ * CELL_RELATIONS_BUNDLE_LIMIT`; clients paginate via
210
+ * `cell_item_list({parent_id, position_after})` /
211
+ * `cell_field_list({source_id})` when truncated.
212
+ */
213
+ export declare const CellGetOutput: z.ZodObject<{
214
+ cell: z.ZodObject<{
215
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
216
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
217
+ data: z.ZodObject<{
218
+ kind: z.ZodOptional<z.ZodString>;
219
+ label: z.ZodOptional<z.ZodString>;
220
+ summary: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$loose>;
222
+ visibility: z.ZodEnum<{
223
+ private: "private";
224
+ public: "public";
225
+ }>;
226
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
227
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
228
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
229
+ created_at: z.ZodString;
230
+ updated_at: z.ZodNullable<z.ZodString>;
231
+ deleted_at: z.ZodNullable<z.ZodString>;
232
+ grant_count: z.ZodNumber;
233
+ }, z.core.$strict>;
234
+ fields: z.ZodArray<z.ZodObject<{
235
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
236
+ name: z.ZodString;
237
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
238
+ created_at: z.ZodString;
239
+ }, z.core.$strict>>;
240
+ fields_truncated: z.ZodBoolean;
241
+ items: z.ZodArray<z.ZodObject<{
242
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
243
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
244
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
245
+ created_at: z.ZodString;
246
+ }, z.core.$strict>>;
247
+ items_truncated: z.ZodBoolean;
248
+ can_edit: z.ZodBoolean;
249
+ can_grant: z.ZodBoolean;
250
+ }, z.core.$strict>;
251
+ export type CellGetOutput = z.infer<typeof CellGetOutput>;
252
+ /**
253
+ * Input for `cell_update`. Fields left undefined keep their existing value.
254
+ * `path` writes are admin-only (handler-enforced); non-admin callers
255
+ * supplying `path` get `ERROR_CELL_PATH_ADMIN_ONLY` even if no other field
256
+ * is changing. `visibility` writes require the manage tier
257
+ * (`can_manage_cell` = admin / owner) — editor-grant holders editing
258
+ * `data` cannot flip visibility (`ERROR_CELL_VISIBILITY_MANAGE_ONLY`).
259
+ */
260
+ export declare const CellUpdateInput: z.ZodObject<{
261
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
262
+ data: z.ZodOptional<z.ZodObject<{
263
+ kind: z.ZodOptional<z.ZodString>;
264
+ label: z.ZodOptional<z.ZodString>;
265
+ summary: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$loose>>;
267
+ visibility: z.ZodOptional<z.ZodEnum<{
268
+ private: "private";
269
+ public: "public";
270
+ }>>;
271
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
272
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
273
+ }, z.core.$strict>;
274
+ export type CellUpdateInput = z.infer<typeof CellUpdateInput>;
275
+ export declare const CellUpdateOutput: z.ZodObject<{
276
+ cell: z.ZodObject<{
277
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
278
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
279
+ data: z.ZodObject<{
280
+ kind: z.ZodOptional<z.ZodString>;
281
+ label: z.ZodOptional<z.ZodString>;
282
+ summary: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$loose>;
284
+ visibility: z.ZodEnum<{
285
+ private: "private";
286
+ public: "public";
287
+ }>;
288
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
289
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
290
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
291
+ created_at: z.ZodString;
292
+ updated_at: z.ZodNullable<z.ZodString>;
293
+ deleted_at: z.ZodNullable<z.ZodString>;
294
+ grant_count: z.ZodNumber;
295
+ }, z.core.$strict>;
296
+ }, z.core.$strict>;
297
+ export type CellUpdateOutput = z.infer<typeof CellUpdateOutput>;
298
+ export declare const CellDeleteInput: z.ZodObject<{
299
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
300
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
301
+ }, z.core.$strict>;
302
+ export type CellDeleteInput = z.infer<typeof CellDeleteInput>;
303
+ export declare const CellDeleteOutput: z.ZodObject<{
304
+ ok: z.ZodLiteral<true>;
305
+ deleted: z.ZodBoolean;
306
+ }, z.core.$strict>;
307
+ export type CellDeleteOutput = z.infer<typeof CellDeleteOutput>;
308
+ /**
309
+ * Input for `cell_list`. Filters are optional and combine with AND. The
310
+ * handler applies the SQL-side visibility predicate from
311
+ * `query_cell_list` so the page-window stays correct under pagination —
312
+ * post-filtering in JS would silently truncate pages.
313
+ *
314
+ * `ids` is the batch-read filter — pass a list of cell ids to fetch them
315
+ * in one round-trip (avoids N+1 when rendering a collection's `items[]`).
316
+ * The visibility predicate still runs, so callers passing ids they can't
317
+ * view simply get fewer rows back. Capped at `CELL_LIST_LIMIT_MAX`.
318
+ *
319
+ * `shared_with: 'me'` narrows to cells that admit the caller via a
320
+ * `cell_grant` row (actor-shaped or role-shaped principal) AND that
321
+ * the caller does not own. Authenticated only; combine with
322
+ * `data_kind` / `path_prefix` etc. to scope further. Combining with
323
+ * `created_by: <my-actor-id>` produces an empty result by definition
324
+ * (owner is implicit, never appears as a grant principal); we don't
325
+ * reject the combination at the schema layer because SQL emptiness is
326
+ * correct.
327
+ */
328
+ export declare const CellListInput: z.ZodDefault<z.ZodObject<{
329
+ ids: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
330
+ data_kind: z.ZodOptional<z.ZodString>;
331
+ visibility: z.ZodOptional<z.ZodEnum<{
332
+ private: "private";
333
+ public: "public";
334
+ }>>;
335
+ ref: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>;
336
+ created_by: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
337
+ path_prefix: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
338
+ shared_with: z.ZodOptional<z.ZodLiteral<"me">>;
339
+ order_by: z.ZodOptional<z.ZodEnum<{
340
+ created_at: "created_at";
341
+ updated_at: "updated_at";
342
+ }>>;
343
+ order_direction: z.ZodOptional<z.ZodEnum<{
344
+ asc: "asc";
345
+ desc: "desc";
346
+ }>>;
347
+ limit: z.ZodOptional<z.ZodNumber>;
348
+ offset: z.ZodOptional<z.ZodNumber>;
349
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
350
+ }, z.core.$strict>>;
351
+ export type CellListInput = z.infer<typeof CellListInput>;
352
+ export declare const CellListOutput: z.ZodObject<{
353
+ cells: z.ZodArray<z.ZodObject<{
354
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
355
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
356
+ data: z.ZodObject<{
357
+ kind: z.ZodOptional<z.ZodString>;
358
+ label: z.ZodOptional<z.ZodString>;
359
+ summary: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$loose>;
361
+ visibility: z.ZodEnum<{
362
+ private: "private";
363
+ public: "public";
364
+ }>;
365
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
366
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
367
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
368
+ created_at: z.ZodString;
369
+ updated_at: z.ZodNullable<z.ZodString>;
370
+ deleted_at: z.ZodNullable<z.ZodString>;
371
+ grant_count: z.ZodNumber;
372
+ }, z.core.$strict>>;
373
+ cell_grants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
374
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
375
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
376
+ level: z.ZodEnum<{
377
+ viewer: "viewer";
378
+ editor: "editor";
379
+ }>;
380
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
381
+ role: z.ZodNullable<z.ZodString>;
382
+ scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
383
+ granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
384
+ created_at: z.ZodString;
385
+ }, z.core.$strict>>>>;
386
+ }, z.core.$strict>;
387
+ export type CellListOutput = z.infer<typeof CellListOutput>;
388
+ /**
389
+ * Input for `cell_clone`. Source must be view-admitted by `can_view_cell`
390
+ * (404 otherwise — IDOR mask). The clone is owned by the caller; `path`
391
+ * is always nulled (admin-only paths can't auto-clone). Provenance lives
392
+ * only in the `cell_clone` audit row's `source_id` — no provenance
393
+ * fields are stamped into `data`.
394
+ */
395
+ export declare const CellCloneInput: z.ZodObject<{
396
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
397
+ deep: z.ZodOptional<z.ZodBoolean>;
398
+ with_data_patch: z.ZodOptional<z.ZodObject<{
399
+ kind: z.ZodOptional<z.ZodString>;
400
+ label: z.ZodOptional<z.ZodString>;
401
+ summary: z.ZodOptional<z.ZodString>;
402
+ }, z.core.$loose>>;
403
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
404
+ }, z.core.$strict>;
405
+ export type CellCloneInput = z.infer<typeof CellCloneInput>;
406
+ export declare const CellCloneOutput: z.ZodObject<{
407
+ cell: z.ZodObject<{
408
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
409
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
410
+ data: z.ZodObject<{
411
+ kind: z.ZodOptional<z.ZodString>;
412
+ label: z.ZodOptional<z.ZodString>;
413
+ summary: z.ZodOptional<z.ZodString>;
414
+ }, z.core.$loose>;
415
+ visibility: z.ZodEnum<{
416
+ private: "private";
417
+ public: "public";
418
+ }>;
419
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
420
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
421
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
422
+ created_at: z.ZodString;
423
+ updated_at: z.ZodNullable<z.ZodString>;
424
+ deleted_at: z.ZodNullable<z.ZodString>;
425
+ grant_count: z.ZodNumber;
426
+ }, z.core.$strict>;
427
+ }, z.core.$strict>;
428
+ export type CellCloneOutput = z.infer<typeof CellCloneOutput>;
429
+ export declare const cell_create_action_spec: {
430
+ method: string;
431
+ kind: "request_response";
432
+ initiator: "frontend";
433
+ auth: {
434
+ account: "required";
435
+ actor: "required";
436
+ };
437
+ side_effects: true;
438
+ input: z.ZodObject<{
439
+ data: z.ZodObject<{
440
+ kind: z.ZodOptional<z.ZodString>;
441
+ label: z.ZodOptional<z.ZodString>;
442
+ summary: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$loose>;
444
+ visibility: z.ZodOptional<z.ZodEnum<{
445
+ private: "private";
446
+ public: "public";
447
+ }>>;
448
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
449
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
450
+ }, z.core.$strict>;
451
+ output: z.ZodObject<{
452
+ cell: z.ZodObject<{
453
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
454
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
455
+ data: z.ZodObject<{
456
+ kind: z.ZodOptional<z.ZodString>;
457
+ label: z.ZodOptional<z.ZodString>;
458
+ summary: z.ZodOptional<z.ZodString>;
459
+ }, z.core.$loose>;
460
+ visibility: z.ZodEnum<{
461
+ private: "private";
462
+ public: "public";
463
+ }>;
464
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
465
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
466
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
467
+ created_at: z.ZodString;
468
+ updated_at: z.ZodNullable<z.ZodString>;
469
+ deleted_at: z.ZodNullable<z.ZodString>;
470
+ grant_count: z.ZodNumber;
471
+ }, z.core.$strict>;
472
+ }, z.core.$strict>;
473
+ async: true;
474
+ rate_limit: "account";
475
+ description: string;
476
+ };
477
+ export declare const cell_get_action_spec: {
478
+ method: string;
479
+ kind: "request_response";
480
+ initiator: "frontend";
481
+ auth: {
482
+ account: "optional";
483
+ actor: "optional";
484
+ };
485
+ side_effects: false;
486
+ input: z.ZodObject<{
487
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
488
+ path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
489
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
490
+ }, z.core.$strict>;
491
+ output: z.ZodObject<{
492
+ cell: z.ZodObject<{
493
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
494
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
495
+ data: z.ZodObject<{
496
+ kind: z.ZodOptional<z.ZodString>;
497
+ label: z.ZodOptional<z.ZodString>;
498
+ summary: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$loose>;
500
+ visibility: z.ZodEnum<{
501
+ private: "private";
502
+ public: "public";
503
+ }>;
504
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
505
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
506
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
507
+ created_at: z.ZodString;
508
+ updated_at: z.ZodNullable<z.ZodString>;
509
+ deleted_at: z.ZodNullable<z.ZodString>;
510
+ grant_count: z.ZodNumber;
511
+ }, z.core.$strict>;
512
+ fields: z.ZodArray<z.ZodObject<{
513
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
514
+ name: z.ZodString;
515
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
516
+ created_at: z.ZodString;
517
+ }, z.core.$strict>>;
518
+ fields_truncated: z.ZodBoolean;
519
+ items: z.ZodArray<z.ZodObject<{
520
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
521
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
522
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
523
+ created_at: z.ZodString;
524
+ }, z.core.$strict>>;
525
+ items_truncated: z.ZodBoolean;
526
+ can_edit: z.ZodBoolean;
527
+ can_grant: z.ZodBoolean;
528
+ }, z.core.$strict>;
529
+ async: true;
530
+ rate_limit: "ip";
531
+ description: string;
532
+ };
533
+ export declare const cell_update_action_spec: {
534
+ method: string;
535
+ kind: "request_response";
536
+ initiator: "frontend";
537
+ auth: {
538
+ account: "required";
539
+ actor: "required";
540
+ };
541
+ side_effects: true;
542
+ input: z.ZodObject<{
543
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
544
+ data: z.ZodOptional<z.ZodObject<{
545
+ kind: z.ZodOptional<z.ZodString>;
546
+ label: z.ZodOptional<z.ZodString>;
547
+ summary: z.ZodOptional<z.ZodString>;
548
+ }, z.core.$loose>>;
549
+ visibility: z.ZodOptional<z.ZodEnum<{
550
+ private: "private";
551
+ public: "public";
552
+ }>>;
553
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
554
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
555
+ }, z.core.$strict>;
556
+ output: z.ZodObject<{
557
+ cell: z.ZodObject<{
558
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
559
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
560
+ data: z.ZodObject<{
561
+ kind: z.ZodOptional<z.ZodString>;
562
+ label: z.ZodOptional<z.ZodString>;
563
+ summary: z.ZodOptional<z.ZodString>;
564
+ }, z.core.$loose>;
565
+ visibility: z.ZodEnum<{
566
+ private: "private";
567
+ public: "public";
568
+ }>;
569
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
570
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
571
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
572
+ created_at: z.ZodString;
573
+ updated_at: z.ZodNullable<z.ZodString>;
574
+ deleted_at: z.ZodNullable<z.ZodString>;
575
+ grant_count: z.ZodNumber;
576
+ }, z.core.$strict>;
577
+ }, z.core.$strict>;
578
+ async: true;
579
+ description: string;
580
+ };
581
+ export declare const cell_delete_action_spec: {
582
+ method: string;
583
+ kind: "request_response";
584
+ initiator: "frontend";
585
+ auth: {
586
+ account: "required";
587
+ actor: "required";
588
+ };
589
+ side_effects: true;
590
+ input: z.ZodObject<{
591
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
592
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
593
+ }, z.core.$strict>;
594
+ output: z.ZodObject<{
595
+ ok: z.ZodLiteral<true>;
596
+ deleted: z.ZodBoolean;
597
+ }, z.core.$strict>;
598
+ async: true;
599
+ description: string;
600
+ };
601
+ export declare const cell_list_action_spec: {
602
+ method: string;
603
+ kind: "request_response";
604
+ initiator: "frontend";
605
+ auth: {
606
+ account: "optional";
607
+ actor: "optional";
608
+ };
609
+ side_effects: false;
610
+ input: z.ZodDefault<z.ZodObject<{
611
+ ids: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
612
+ data_kind: z.ZodOptional<z.ZodString>;
613
+ visibility: z.ZodOptional<z.ZodEnum<{
614
+ private: "private";
615
+ public: "public";
616
+ }>>;
617
+ ref: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>;
618
+ created_by: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
619
+ path_prefix: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
620
+ shared_with: z.ZodOptional<z.ZodLiteral<"me">>;
621
+ order_by: z.ZodOptional<z.ZodEnum<{
622
+ created_at: "created_at";
623
+ updated_at: "updated_at";
624
+ }>>;
625
+ order_direction: z.ZodOptional<z.ZodEnum<{
626
+ asc: "asc";
627
+ desc: "desc";
628
+ }>>;
629
+ limit: z.ZodOptional<z.ZodNumber>;
630
+ offset: z.ZodOptional<z.ZodNumber>;
631
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
632
+ }, z.core.$strict>>;
633
+ output: z.ZodObject<{
634
+ cells: z.ZodArray<z.ZodObject<{
635
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
636
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
637
+ data: z.ZodObject<{
638
+ kind: z.ZodOptional<z.ZodString>;
639
+ label: z.ZodOptional<z.ZodString>;
640
+ summary: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$loose>;
642
+ visibility: z.ZodEnum<{
643
+ private: "private";
644
+ public: "public";
645
+ }>;
646
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
647
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
648
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
649
+ created_at: z.ZodString;
650
+ updated_at: z.ZodNullable<z.ZodString>;
651
+ deleted_at: z.ZodNullable<z.ZodString>;
652
+ grant_count: z.ZodNumber;
653
+ }, z.core.$strict>>;
654
+ cell_grants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
655
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
656
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
657
+ level: z.ZodEnum<{
658
+ viewer: "viewer";
659
+ editor: "editor";
660
+ }>;
661
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
662
+ role: z.ZodNullable<z.ZodString>;
663
+ scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
664
+ granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
665
+ created_at: z.ZodString;
666
+ }, z.core.$strict>>>>;
667
+ }, z.core.$strict>;
668
+ async: true;
669
+ rate_limit: "ip";
670
+ description: string;
671
+ };
672
+ export declare const cell_clone_action_spec: {
673
+ method: string;
674
+ kind: "request_response";
675
+ initiator: "frontend";
676
+ auth: {
677
+ account: "required";
678
+ actor: "required";
679
+ };
680
+ side_effects: true;
681
+ input: z.ZodObject<{
682
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
683
+ deep: z.ZodOptional<z.ZodBoolean>;
684
+ with_data_patch: z.ZodOptional<z.ZodObject<{
685
+ kind: z.ZodOptional<z.ZodString>;
686
+ label: z.ZodOptional<z.ZodString>;
687
+ summary: z.ZodOptional<z.ZodString>;
688
+ }, z.core.$loose>>;
689
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
690
+ }, z.core.$strict>;
691
+ output: z.ZodObject<{
692
+ cell: z.ZodObject<{
693
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
694
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
695
+ data: z.ZodObject<{
696
+ kind: z.ZodOptional<z.ZodString>;
697
+ label: z.ZodOptional<z.ZodString>;
698
+ summary: z.ZodOptional<z.ZodString>;
699
+ }, z.core.$loose>;
700
+ visibility: z.ZodEnum<{
701
+ private: "private";
702
+ public: "public";
703
+ }>;
704
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
705
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
706
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
707
+ created_at: z.ZodString;
708
+ updated_at: z.ZodNullable<z.ZodString>;
709
+ deleted_at: z.ZodNullable<z.ZodString>;
710
+ grant_count: z.ZodNumber;
711
+ }, z.core.$strict>;
712
+ }, z.core.$strict>;
713
+ async: true;
714
+ rate_limit: "account";
715
+ description: string;
716
+ };
717
+ /**
718
+ * All cell-layer action specs — composed by app registries. Bundles the
719
+ * six generic verbs (this module), the three `cell_grant_*` specs, the
720
+ * three `cell_field_*` specs, the four `cell_item_*` specs, and the
721
+ * `cell_audit_list` spec so codegen + UI clients see a single cell
722
+ * namespace.
723
+ */
724
+ export declare const all_cell_action_specs: readonly [{
725
+ method: string;
726
+ kind: "request_response";
727
+ initiator: "frontend";
728
+ auth: {
729
+ account: "required";
730
+ actor: "required";
731
+ };
732
+ side_effects: true;
733
+ input: z.ZodObject<{
734
+ data: z.ZodObject<{
735
+ kind: z.ZodOptional<z.ZodString>;
736
+ label: z.ZodOptional<z.ZodString>;
737
+ summary: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$loose>;
739
+ visibility: z.ZodOptional<z.ZodEnum<{
740
+ private: "private";
741
+ public: "public";
742
+ }>>;
743
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
744
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
745
+ }, z.core.$strict>;
746
+ output: z.ZodObject<{
747
+ cell: z.ZodObject<{
748
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
749
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
750
+ data: z.ZodObject<{
751
+ kind: z.ZodOptional<z.ZodString>;
752
+ label: z.ZodOptional<z.ZodString>;
753
+ summary: z.ZodOptional<z.ZodString>;
754
+ }, z.core.$loose>;
755
+ visibility: z.ZodEnum<{
756
+ private: "private";
757
+ public: "public";
758
+ }>;
759
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
760
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
761
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
762
+ created_at: z.ZodString;
763
+ updated_at: z.ZodNullable<z.ZodString>;
764
+ deleted_at: z.ZodNullable<z.ZodString>;
765
+ grant_count: z.ZodNumber;
766
+ }, z.core.$strict>;
767
+ }, z.core.$strict>;
768
+ async: true;
769
+ rate_limit: "account";
770
+ description: string;
771
+ }, {
772
+ method: string;
773
+ kind: "request_response";
774
+ initiator: "frontend";
775
+ auth: {
776
+ account: "optional";
777
+ actor: "optional";
778
+ };
779
+ side_effects: false;
780
+ input: z.ZodObject<{
781
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
782
+ path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
783
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
784
+ }, z.core.$strict>;
785
+ output: z.ZodObject<{
786
+ cell: z.ZodObject<{
787
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
788
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
789
+ data: z.ZodObject<{
790
+ kind: z.ZodOptional<z.ZodString>;
791
+ label: z.ZodOptional<z.ZodString>;
792
+ summary: z.ZodOptional<z.ZodString>;
793
+ }, z.core.$loose>;
794
+ visibility: z.ZodEnum<{
795
+ private: "private";
796
+ public: "public";
797
+ }>;
798
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
799
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
800
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
801
+ created_at: z.ZodString;
802
+ updated_at: z.ZodNullable<z.ZodString>;
803
+ deleted_at: z.ZodNullable<z.ZodString>;
804
+ grant_count: z.ZodNumber;
805
+ }, z.core.$strict>;
806
+ fields: z.ZodArray<z.ZodObject<{
807
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
808
+ name: z.ZodString;
809
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
810
+ created_at: z.ZodString;
811
+ }, z.core.$strict>>;
812
+ fields_truncated: z.ZodBoolean;
813
+ items: z.ZodArray<z.ZodObject<{
814
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
815
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
816
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
817
+ created_at: z.ZodString;
818
+ }, z.core.$strict>>;
819
+ items_truncated: z.ZodBoolean;
820
+ can_edit: z.ZodBoolean;
821
+ can_grant: z.ZodBoolean;
822
+ }, z.core.$strict>;
823
+ async: true;
824
+ rate_limit: "ip";
825
+ description: string;
826
+ }, {
827
+ method: string;
828
+ kind: "request_response";
829
+ initiator: "frontend";
830
+ auth: {
831
+ account: "required";
832
+ actor: "required";
833
+ };
834
+ side_effects: true;
835
+ input: z.ZodObject<{
836
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
837
+ data: z.ZodOptional<z.ZodObject<{
838
+ kind: z.ZodOptional<z.ZodString>;
839
+ label: z.ZodOptional<z.ZodString>;
840
+ summary: z.ZodOptional<z.ZodString>;
841
+ }, z.core.$loose>>;
842
+ visibility: z.ZodOptional<z.ZodEnum<{
843
+ private: "private";
844
+ public: "public";
845
+ }>>;
846
+ path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
847
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
848
+ }, z.core.$strict>;
849
+ output: z.ZodObject<{
850
+ cell: z.ZodObject<{
851
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
852
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
853
+ data: z.ZodObject<{
854
+ kind: z.ZodOptional<z.ZodString>;
855
+ label: z.ZodOptional<z.ZodString>;
856
+ summary: z.ZodOptional<z.ZodString>;
857
+ }, z.core.$loose>;
858
+ visibility: z.ZodEnum<{
859
+ private: "private";
860
+ public: "public";
861
+ }>;
862
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
863
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
864
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
865
+ created_at: z.ZodString;
866
+ updated_at: z.ZodNullable<z.ZodString>;
867
+ deleted_at: z.ZodNullable<z.ZodString>;
868
+ grant_count: z.ZodNumber;
869
+ }, z.core.$strict>;
870
+ }, z.core.$strict>;
871
+ async: true;
872
+ description: string;
873
+ }, {
874
+ method: string;
875
+ kind: "request_response";
876
+ initiator: "frontend";
877
+ auth: {
878
+ account: "required";
879
+ actor: "required";
880
+ };
881
+ side_effects: true;
882
+ input: z.ZodObject<{
883
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
884
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
885
+ }, z.core.$strict>;
886
+ output: z.ZodObject<{
887
+ ok: z.ZodLiteral<true>;
888
+ deleted: z.ZodBoolean;
889
+ }, z.core.$strict>;
890
+ async: true;
891
+ description: string;
892
+ }, {
893
+ method: string;
894
+ kind: "request_response";
895
+ initiator: "frontend";
896
+ auth: {
897
+ account: "optional";
898
+ actor: "optional";
899
+ };
900
+ side_effects: false;
901
+ input: z.ZodDefault<z.ZodObject<{
902
+ ids: z.ZodOptional<z.ZodArray<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
903
+ data_kind: z.ZodOptional<z.ZodString>;
904
+ visibility: z.ZodOptional<z.ZodEnum<{
905
+ private: "private";
906
+ public: "public";
907
+ }>>;
908
+ ref: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>;
909
+ created_by: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
910
+ path_prefix: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
911
+ shared_with: z.ZodOptional<z.ZodLiteral<"me">>;
912
+ order_by: z.ZodOptional<z.ZodEnum<{
913
+ created_at: "created_at";
914
+ updated_at: "updated_at";
915
+ }>>;
916
+ order_direction: z.ZodOptional<z.ZodEnum<{
917
+ asc: "asc";
918
+ desc: "desc";
919
+ }>>;
920
+ limit: z.ZodOptional<z.ZodNumber>;
921
+ offset: z.ZodOptional<z.ZodNumber>;
922
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
923
+ }, z.core.$strict>>;
924
+ output: z.ZodObject<{
925
+ cells: z.ZodArray<z.ZodObject<{
926
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
927
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
928
+ data: z.ZodObject<{
929
+ kind: z.ZodOptional<z.ZodString>;
930
+ label: z.ZodOptional<z.ZodString>;
931
+ summary: z.ZodOptional<z.ZodString>;
932
+ }, z.core.$loose>;
933
+ visibility: z.ZodEnum<{
934
+ private: "private";
935
+ public: "public";
936
+ }>;
937
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
938
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
939
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
940
+ created_at: z.ZodString;
941
+ updated_at: z.ZodNullable<z.ZodString>;
942
+ deleted_at: z.ZodNullable<z.ZodString>;
943
+ grant_count: z.ZodNumber;
944
+ }, z.core.$strict>>;
945
+ cell_grants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
946
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
947
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
948
+ level: z.ZodEnum<{
949
+ viewer: "viewer";
950
+ editor: "editor";
951
+ }>;
952
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
953
+ role: z.ZodNullable<z.ZodString>;
954
+ scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
955
+ granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
956
+ created_at: z.ZodString;
957
+ }, z.core.$strict>>>>;
958
+ }, z.core.$strict>;
959
+ async: true;
960
+ rate_limit: "ip";
961
+ description: string;
962
+ }, {
963
+ method: string;
964
+ kind: "request_response";
965
+ initiator: "frontend";
966
+ auth: {
967
+ account: "required";
968
+ actor: "required";
969
+ };
970
+ side_effects: true;
971
+ input: z.ZodObject<{
972
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
973
+ deep: z.ZodOptional<z.ZodBoolean>;
974
+ with_data_patch: z.ZodOptional<z.ZodObject<{
975
+ kind: z.ZodOptional<z.ZodString>;
976
+ label: z.ZodOptional<z.ZodString>;
977
+ summary: z.ZodOptional<z.ZodString>;
978
+ }, z.core.$loose>>;
979
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
980
+ }, z.core.$strict>;
981
+ output: z.ZodObject<{
982
+ cell: z.ZodObject<{
983
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
984
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
985
+ data: z.ZodObject<{
986
+ kind: z.ZodOptional<z.ZodString>;
987
+ label: z.ZodOptional<z.ZodString>;
988
+ summary: z.ZodOptional<z.ZodString>;
989
+ }, z.core.$loose>;
990
+ visibility: z.ZodEnum<{
991
+ private: "private";
992
+ public: "public";
993
+ }>;
994
+ refs: z.ZodNullable<z.ZodArray<z.core.$ZodBranded<z.ZodString, "FactHash", "out">>>;
995
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
996
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
997
+ created_at: z.ZodString;
998
+ updated_at: z.ZodNullable<z.ZodString>;
999
+ deleted_at: z.ZodNullable<z.ZodString>;
1000
+ grant_count: z.ZodNumber;
1001
+ }, z.core.$strict>;
1002
+ }, z.core.$strict>;
1003
+ async: true;
1004
+ rate_limit: "account";
1005
+ description: string;
1006
+ }, {
1007
+ method: string;
1008
+ kind: "request_response";
1009
+ initiator: "frontend";
1010
+ auth: {
1011
+ account: "required";
1012
+ actor: "required";
1013
+ };
1014
+ side_effects: true;
1015
+ input: z.ZodObject<{
1016
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1017
+ level: z.ZodEnum<{
1018
+ viewer: "viewer";
1019
+ editor: "editor";
1020
+ }>;
1021
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
1022
+ kind: z.ZodLiteral<"actor">;
1023
+ actor_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1024
+ }, z.core.$strict>, z.ZodObject<{
1025
+ kind: z.ZodLiteral<"role">;
1026
+ role: z.ZodString;
1027
+ scope_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
1028
+ }, z.core.$strict>], "kind">;
1029
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1030
+ }, z.core.$strict>;
1031
+ output: z.ZodObject<{
1032
+ grant: z.ZodObject<{
1033
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1034
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1035
+ level: z.ZodEnum<{
1036
+ viewer: "viewer";
1037
+ editor: "editor";
1038
+ }>;
1039
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1040
+ role: z.ZodNullable<z.ZodString>;
1041
+ scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1042
+ granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1043
+ created_at: z.ZodString;
1044
+ }, z.core.$strict>;
1045
+ }, z.core.$strict>;
1046
+ async: true;
1047
+ description: string;
1048
+ }, {
1049
+ method: string;
1050
+ kind: "request_response";
1051
+ initiator: "frontend";
1052
+ auth: {
1053
+ account: "required";
1054
+ actor: "required";
1055
+ };
1056
+ side_effects: true;
1057
+ input: z.ZodObject<{
1058
+ grant_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1059
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1060
+ }, z.core.$strict>;
1061
+ output: z.ZodObject<{
1062
+ ok: z.ZodLiteral<true>;
1063
+ still_admitted: z.ZodBoolean;
1064
+ }, z.core.$strict>;
1065
+ async: true;
1066
+ description: string;
1067
+ }, {
1068
+ method: string;
1069
+ kind: "request_response";
1070
+ initiator: "frontend";
1071
+ auth: {
1072
+ account: "required";
1073
+ actor: "required";
1074
+ };
1075
+ side_effects: false;
1076
+ input: z.ZodObject<{
1077
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1078
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1079
+ }, z.core.$strict>;
1080
+ output: z.ZodObject<{
1081
+ grants: z.ZodArray<z.ZodObject<{
1082
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1083
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1084
+ level: z.ZodEnum<{
1085
+ viewer: "viewer";
1086
+ editor: "editor";
1087
+ }>;
1088
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1089
+ role: z.ZodNullable<z.ZodString>;
1090
+ scope_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1091
+ granted_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1092
+ created_at: z.ZodString;
1093
+ }, z.core.$strict>>;
1094
+ }, z.core.$strict>;
1095
+ async: true;
1096
+ description: string;
1097
+ }, {
1098
+ method: string;
1099
+ kind: "request_response";
1100
+ initiator: "frontend";
1101
+ auth: {
1102
+ account: "required";
1103
+ actor: "required";
1104
+ };
1105
+ side_effects: true;
1106
+ input: z.ZodObject<{
1107
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1108
+ name: z.core.$ZodBranded<z.ZodString, "CellFieldName", "out">;
1109
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1110
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1111
+ }, z.core.$strict>;
1112
+ output: z.ZodObject<{
1113
+ field: z.ZodObject<{
1114
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1115
+ name: z.ZodString;
1116
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1117
+ created_at: z.ZodString;
1118
+ }, z.core.$strict>;
1119
+ }, z.core.$strict>;
1120
+ async: true;
1121
+ description: string;
1122
+ }, {
1123
+ method: string;
1124
+ kind: "request_response";
1125
+ initiator: "frontend";
1126
+ auth: {
1127
+ account: "required";
1128
+ actor: "required";
1129
+ };
1130
+ side_effects: true;
1131
+ input: z.ZodObject<{
1132
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1133
+ name: z.core.$ZodBranded<z.ZodString, "CellFieldName", "out">;
1134
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1135
+ }, z.core.$strict>;
1136
+ output: z.ZodObject<{
1137
+ ok: z.ZodLiteral<true>;
1138
+ deleted: z.ZodBoolean;
1139
+ }, z.core.$strict>;
1140
+ async: true;
1141
+ description: string;
1142
+ }, {
1143
+ method: string;
1144
+ kind: "request_response";
1145
+ initiator: "frontend";
1146
+ auth: {
1147
+ account: "optional";
1148
+ actor: "optional";
1149
+ };
1150
+ side_effects: false;
1151
+ input: z.ZodObject<{
1152
+ source_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1153
+ target_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1154
+ name_after: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellFieldName", "out">>;
1155
+ limit: z.ZodOptional<z.ZodNumber>;
1156
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1157
+ }, z.core.$strict>;
1158
+ output: z.ZodObject<{
1159
+ fields: z.ZodArray<z.ZodObject<{
1160
+ source_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1161
+ name: z.ZodString;
1162
+ target_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1163
+ created_at: z.ZodString;
1164
+ }, z.core.$strict>>;
1165
+ }, z.core.$strict>;
1166
+ async: true;
1167
+ rate_limit: "ip";
1168
+ description: string;
1169
+ }, {
1170
+ method: string;
1171
+ kind: "request_response";
1172
+ initiator: "frontend";
1173
+ auth: {
1174
+ account: "required";
1175
+ actor: "required";
1176
+ };
1177
+ side_effects: true;
1178
+ input: z.ZodObject<{
1179
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1180
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1181
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1182
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1183
+ }, z.core.$strict>;
1184
+ output: z.ZodObject<{
1185
+ item: z.ZodObject<{
1186
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1187
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1188
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1189
+ created_at: z.ZodString;
1190
+ }, z.core.$strict>;
1191
+ }, z.core.$strict>;
1192
+ async: true;
1193
+ description: string;
1194
+ }, {
1195
+ method: string;
1196
+ kind: "request_response";
1197
+ initiator: "frontend";
1198
+ auth: {
1199
+ account: "required";
1200
+ actor: "required";
1201
+ };
1202
+ side_effects: true;
1203
+ input: z.ZodObject<{
1204
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1205
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1206
+ new_position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1207
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1208
+ }, z.core.$strict>;
1209
+ output: z.ZodObject<{
1210
+ item: z.ZodObject<{
1211
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1212
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1213
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1214
+ created_at: z.ZodString;
1215
+ }, z.core.$strict>;
1216
+ }, z.core.$strict>;
1217
+ async: true;
1218
+ description: string;
1219
+ }, {
1220
+ method: string;
1221
+ kind: "request_response";
1222
+ initiator: "frontend";
1223
+ auth: {
1224
+ account: "required";
1225
+ actor: "required";
1226
+ };
1227
+ side_effects: true;
1228
+ input: z.ZodObject<{
1229
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1230
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1231
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1232
+ }, z.core.$strict>;
1233
+ output: z.ZodObject<{
1234
+ ok: z.ZodLiteral<true>;
1235
+ deleted: z.ZodBoolean;
1236
+ }, z.core.$strict>;
1237
+ async: true;
1238
+ description: string;
1239
+ }, {
1240
+ method: string;
1241
+ kind: "request_response";
1242
+ initiator: "frontend";
1243
+ auth: {
1244
+ account: "optional";
1245
+ actor: "optional";
1246
+ };
1247
+ side_effects: false;
1248
+ input: z.ZodObject<{
1249
+ parent_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1250
+ child_id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1251
+ position_after: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">>;
1252
+ limit: z.ZodOptional<z.ZodNumber>;
1253
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1254
+ }, z.core.$strict>;
1255
+ output: z.ZodObject<{
1256
+ items: z.ZodArray<z.ZodObject<{
1257
+ parent_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1258
+ position: z.core.$ZodBranded<z.ZodString, "CellItemPosition", "out">;
1259
+ child_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1260
+ created_at: z.ZodString;
1261
+ }, z.core.$strict>>;
1262
+ }, z.core.$strict>;
1263
+ async: true;
1264
+ rate_limit: "ip";
1265
+ description: string;
1266
+ }, {
1267
+ method: string;
1268
+ kind: "request_response";
1269
+ initiator: "frontend";
1270
+ auth: {
1271
+ account: "required";
1272
+ actor: "required";
1273
+ };
1274
+ side_effects: false;
1275
+ input: z.ZodObject<{
1276
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1277
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1278
+ }, z.core.$strict>;
1279
+ output: z.ZodObject<{
1280
+ events: z.ZodArray<z.ZodObject<{
1281
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1282
+ seq: z.ZodNumber;
1283
+ event_type: z.ZodString;
1284
+ outcome: z.ZodEnum<{
1285
+ success: "success";
1286
+ failure: "failure";
1287
+ }>;
1288
+ actor_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1289
+ created_at: z.ZodString;
1290
+ }, z.core.$strict>>;
1291
+ }, z.core.$strict>;
1292
+ async: true;
1293
+ description: string;
1294
+ }];
1295
+ //# sourceMappingURL=cell_action_specs.d.ts.map