@sssoman/ember 0.1.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 (134) hide show
  1. package/README.md +131 -0
  2. package/dist/constants/event-type.d.ts +10 -0
  3. package/dist/constants/event-type.d.ts.map +1 -0
  4. package/dist/constants/event-type.js +9 -0
  5. package/dist/constants/event-type.js.map +1 -0
  6. package/dist/constants/index.d.ts +6 -0
  7. package/dist/constants/index.d.ts.map +1 -0
  8. package/dist/constants/index.js +6 -0
  9. package/dist/constants/index.js.map +1 -0
  10. package/dist/constants/record-status.d.ts +9 -0
  11. package/dist/constants/record-status.d.ts.map +1 -0
  12. package/dist/constants/record-status.js +8 -0
  13. package/dist/constants/record-status.js.map +1 -0
  14. package/dist/constants/record-type.d.ts +12 -0
  15. package/dist/constants/record-type.d.ts.map +1 -0
  16. package/dist/constants/record-type.js +11 -0
  17. package/dist/constants/record-type.js.map +1 -0
  18. package/dist/constants/schema-version.d.ts +16 -0
  19. package/dist/constants/schema-version.d.ts.map +1 -0
  20. package/dist/constants/schema-version.js +15 -0
  21. package/dist/constants/schema-version.js.map +1 -0
  22. package/dist/constants/visibility.d.ts +8 -0
  23. package/dist/constants/visibility.d.ts.map +1 -0
  24. package/dist/constants/visibility.js +7 -0
  25. package/dist/constants/visibility.js.map +1 -0
  26. package/dist/events/factory.d.ts +19 -0
  27. package/dist/events/factory.d.ts.map +1 -0
  28. package/dist/events/factory.js +51 -0
  29. package/dist/events/factory.js.map +1 -0
  30. package/dist/events/index.d.ts +4 -0
  31. package/dist/events/index.d.ts.map +1 -0
  32. package/dist/events/index.js +3 -0
  33. package/dist/events/index.js.map +1 -0
  34. package/dist/events/schemas.d.ts +4206 -0
  35. package/dist/events/schemas.d.ts.map +1 -0
  36. package/dist/events/schemas.js +59 -0
  37. package/dist/events/schemas.js.map +1 -0
  38. package/dist/events/types.d.ts +48 -0
  39. package/dist/events/types.d.ts.map +1 -0
  40. package/dist/events/types.js +2 -0
  41. package/dist/events/types.js.map +1 -0
  42. package/dist/index.d.ts +7 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +7 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/json-schema/index.d.ts +2 -0
  47. package/dist/json-schema/index.d.ts.map +1 -0
  48. package/dist/json-schema/index.js +2 -0
  49. package/dist/json-schema/index.js.map +1 -0
  50. package/dist/json-schema/registry.d.ts +8 -0
  51. package/dist/json-schema/registry.d.ts.map +1 -0
  52. package/dist/json-schema/registry.js +29 -0
  53. package/dist/json-schema/registry.js.map +1 -0
  54. package/dist/schemas/asset.d.ts +62 -0
  55. package/dist/schemas/asset.d.ts.map +1 -0
  56. package/dist/schemas/asset.js +19 -0
  57. package/dist/schemas/asset.js.map +1 -0
  58. package/dist/schemas/base-record.d.ts +78 -0
  59. package/dist/schemas/base-record.d.ts.map +1 -0
  60. package/dist/schemas/base-record.js +34 -0
  61. package/dist/schemas/base-record.js.map +1 -0
  62. package/dist/schemas/circle.d.ts +53 -0
  63. package/dist/schemas/circle.d.ts.map +1 -0
  64. package/dist/schemas/circle.js +19 -0
  65. package/dist/schemas/circle.js.map +1 -0
  66. package/dist/schemas/document.d.ts +92 -0
  67. package/dist/schemas/document.d.ts.map +1 -0
  68. package/dist/schemas/document.js +22 -0
  69. package/dist/schemas/document.js.map +1 -0
  70. package/dist/schemas/index.d.ts +11 -0
  71. package/dist/schemas/index.d.ts.map +1 -0
  72. package/dist/schemas/index.js +11 -0
  73. package/dist/schemas/index.js.map +1 -0
  74. package/dist/schemas/liability.d.ts +62 -0
  75. package/dist/schemas/liability.d.ts.map +1 -0
  76. package/dist/schemas/liability.js +19 -0
  77. package/dist/schemas/liability.js.map +1 -0
  78. package/dist/schemas/policy.d.ts +67 -0
  79. package/dist/schemas/policy.d.ts.map +1 -0
  80. package/dist/schemas/policy.js +25 -0
  81. package/dist/schemas/policy.js.map +1 -0
  82. package/dist/schemas/primitives.d.ts +28 -0
  83. package/dist/schemas/primitives.d.ts.map +1 -0
  84. package/dist/schemas/primitives.js +25 -0
  85. package/dist/schemas/primitives.js.map +1 -0
  86. package/dist/schemas/record-union.d.ts +832 -0
  87. package/dist/schemas/record-union.d.ts.map +1 -0
  88. package/dist/schemas/record-union.js +30 -0
  89. package/dist/schemas/record-union.js.map +1 -0
  90. package/dist/schemas/reminder.d.ts +68 -0
  91. package/dist/schemas/reminder.d.ts.map +1 -0
  92. package/dist/schemas/reminder.js +26 -0
  93. package/dist/schemas/reminder.js.map +1 -0
  94. package/dist/schemas/user.d.ts +53 -0
  95. package/dist/schemas/user.d.ts.map +1 -0
  96. package/dist/schemas/user.js +15 -0
  97. package/dist/schemas/user.js.map +1 -0
  98. package/dist/types/events.d.ts +2 -0
  99. package/dist/types/events.d.ts.map +1 -0
  100. package/dist/types/events.js +2 -0
  101. package/dist/types/events.js.map +1 -0
  102. package/dist/types/index.d.ts +5 -0
  103. package/dist/types/index.d.ts.map +1 -0
  104. package/dist/types/index.js +2 -0
  105. package/dist/types/index.js.map +1 -0
  106. package/dist/types/records.d.ts +2 -0
  107. package/dist/types/records.d.ts.map +1 -0
  108. package/dist/types/records.js +2 -0
  109. package/dist/types/records.js.map +1 -0
  110. package/dist/types/validation.d.ts +13 -0
  111. package/dist/types/validation.d.ts.map +1 -0
  112. package/dist/types/validation.js +2 -0
  113. package/dist/types/validation.js.map +1 -0
  114. package/dist/validators/events.d.ts +5 -0
  115. package/dist/validators/events.d.ts.map +1 -0
  116. package/dist/validators/events.js +9 -0
  117. package/dist/validators/events.js.map +1 -0
  118. package/dist/validators/index.d.ts +5 -0
  119. package/dist/validators/index.d.ts.map +1 -0
  120. package/dist/validators/index.js +5 -0
  121. package/dist/validators/index.js.map +1 -0
  122. package/dist/validators/parse.d.ts +5 -0
  123. package/dist/validators/parse.d.ts.map +1 -0
  124. package/dist/validators/parse.js +11 -0
  125. package/dist/validators/parse.js.map +1 -0
  126. package/dist/validators/records.d.ts +16 -0
  127. package/dist/validators/records.d.ts.map +1 -0
  128. package/dist/validators/records.js +44 -0
  129. package/dist/validators/records.js.map +1 -0
  130. package/dist/validators/schema-version.d.ts +11 -0
  131. package/dist/validators/schema-version.d.ts.map +1 -0
  132. package/dist/validators/schema-version.js +53 -0
  133. package/dist/validators/schema-version.js.map +1 -0
  134. package/package.json +77 -0
@@ -0,0 +1,832 @@
1
+ import { z } from "zod";
2
+ /** Discriminated union of all domain record schemas. */
3
+ export declare const hearthRecordSchema: z.ZodDiscriminatedUnion<"record_type", [z.ZodObject<{
4
+ id: z.ZodString;
5
+ created_at: z.ZodString;
6
+ updated_at: z.ZodString;
7
+ created_by: z.ZodString;
8
+ circle_id: z.ZodString;
9
+ visibility: z.ZodEnum<[string, ...string[]]>;
10
+ tags: z.ZodArray<z.ZodString, "many">;
11
+ status: z.ZodEnum<[string, ...string[]]>;
12
+ record_version: z.ZodNumber;
13
+ } & {
14
+ record_type: z.ZodLiteral<"circle">;
15
+ schema_version: z.ZodLiteral<1>;
16
+ name: z.ZodString;
17
+ slug: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ member_ids: z.ZodArray<z.ZodString, "many">;
20
+ }, "strict", z.ZodTypeAny, {
21
+ status: string;
22
+ id: string;
23
+ created_at: string;
24
+ updated_at: string;
25
+ created_by: string;
26
+ circle_id: string;
27
+ visibility: string;
28
+ tags: string[];
29
+ schema_version: 1;
30
+ record_version: number;
31
+ record_type: "circle";
32
+ name: string;
33
+ slug: string;
34
+ member_ids: string[];
35
+ description?: string | undefined;
36
+ }, {
37
+ status: string;
38
+ id: string;
39
+ created_at: string;
40
+ updated_at: string;
41
+ created_by: string;
42
+ circle_id: string;
43
+ visibility: string;
44
+ tags: string[];
45
+ schema_version: 1;
46
+ record_version: number;
47
+ record_type: "circle";
48
+ name: string;
49
+ slug: string;
50
+ member_ids: string[];
51
+ description?: string | undefined;
52
+ }>, z.ZodObject<{
53
+ id: z.ZodString;
54
+ created_at: z.ZodString;
55
+ updated_at: z.ZodString;
56
+ created_by: z.ZodString;
57
+ circle_id: z.ZodString;
58
+ visibility: z.ZodEnum<[string, ...string[]]>;
59
+ tags: z.ZodArray<z.ZodString, "many">;
60
+ status: z.ZodEnum<[string, ...string[]]>;
61
+ record_version: z.ZodNumber;
62
+ } & {
63
+ record_type: z.ZodLiteral<"user">;
64
+ schema_version: z.ZodLiteral<1>;
65
+ display_name: z.ZodString;
66
+ email: z.ZodOptional<z.ZodString>;
67
+ public_key: z.ZodOptional<z.ZodString>;
68
+ locale: z.ZodOptional<z.ZodString>;
69
+ }, "strict", z.ZodTypeAny, {
70
+ status: string;
71
+ id: string;
72
+ created_at: string;
73
+ updated_at: string;
74
+ created_by: string;
75
+ circle_id: string;
76
+ visibility: string;
77
+ tags: string[];
78
+ schema_version: 1;
79
+ record_version: number;
80
+ record_type: "user";
81
+ display_name: string;
82
+ email?: string | undefined;
83
+ public_key?: string | undefined;
84
+ locale?: string | undefined;
85
+ }, {
86
+ status: string;
87
+ id: string;
88
+ created_at: string;
89
+ updated_at: string;
90
+ created_by: string;
91
+ circle_id: string;
92
+ visibility: string;
93
+ tags: string[];
94
+ schema_version: 1;
95
+ record_version: number;
96
+ record_type: "user";
97
+ display_name: string;
98
+ email?: string | undefined;
99
+ public_key?: string | undefined;
100
+ locale?: string | undefined;
101
+ }>, z.ZodObject<{
102
+ id: z.ZodString;
103
+ created_at: z.ZodString;
104
+ updated_at: z.ZodString;
105
+ created_by: z.ZodString;
106
+ circle_id: z.ZodString;
107
+ visibility: z.ZodEnum<[string, ...string[]]>;
108
+ tags: z.ZodArray<z.ZodString, "many">;
109
+ status: z.ZodEnum<[string, ...string[]]>;
110
+ record_version: z.ZodNumber;
111
+ } & {
112
+ record_type: z.ZodLiteral<"policy">;
113
+ schema_version: z.ZodLiteral<1>;
114
+ name: z.ZodString;
115
+ kind: z.ZodEnum<[string, ...string[]]>;
116
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
117
+ effective_from: z.ZodOptional<z.ZodString>;
118
+ effective_until: z.ZodOptional<z.ZodString>;
119
+ linked_record_id: z.ZodOptional<z.ZodString>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ status: string;
122
+ id: string;
123
+ created_at: string;
124
+ updated_at: string;
125
+ created_by: string;
126
+ circle_id: string;
127
+ visibility: string;
128
+ tags: string[];
129
+ schema_version: 1;
130
+ record_version: number;
131
+ record_type: "policy";
132
+ name: string;
133
+ kind: string;
134
+ rules: Record<string, unknown>;
135
+ effective_from?: string | undefined;
136
+ effective_until?: string | undefined;
137
+ linked_record_id?: string | undefined;
138
+ }, {
139
+ status: string;
140
+ id: string;
141
+ created_at: string;
142
+ updated_at: string;
143
+ created_by: string;
144
+ circle_id: string;
145
+ visibility: string;
146
+ tags: string[];
147
+ schema_version: 1;
148
+ record_version: number;
149
+ record_type: "policy";
150
+ name: string;
151
+ kind: string;
152
+ rules: Record<string, unknown>;
153
+ effective_from?: string | undefined;
154
+ effective_until?: string | undefined;
155
+ linked_record_id?: string | undefined;
156
+ }>, z.ZodObject<{
157
+ id: z.ZodString;
158
+ created_at: z.ZodString;
159
+ updated_at: z.ZodString;
160
+ created_by: z.ZodString;
161
+ circle_id: z.ZodString;
162
+ visibility: z.ZodEnum<[string, ...string[]]>;
163
+ tags: z.ZodArray<z.ZodString, "many">;
164
+ status: z.ZodEnum<[string, ...string[]]>;
165
+ record_version: z.ZodNumber;
166
+ } & {
167
+ record_type: z.ZodLiteral<"asset">;
168
+ schema_version: z.ZodLiteral<1>;
169
+ name: z.ZodString;
170
+ asset_type: z.ZodString;
171
+ value: z.ZodNumber;
172
+ currency: z.ZodString;
173
+ acquired_at: z.ZodOptional<z.ZodString>;
174
+ notes: z.ZodOptional<z.ZodString>;
175
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
176
+ }, "strict", z.ZodTypeAny, {
177
+ value: number;
178
+ status: string;
179
+ id: string;
180
+ created_at: string;
181
+ updated_at: string;
182
+ created_by: string;
183
+ circle_id: string;
184
+ visibility: string;
185
+ tags: string[];
186
+ schema_version: 1;
187
+ record_version: number;
188
+ record_type: "asset";
189
+ name: string;
190
+ asset_type: string;
191
+ currency: string;
192
+ linked_record_ids: string[];
193
+ acquired_at?: string | undefined;
194
+ notes?: string | undefined;
195
+ }, {
196
+ value: number;
197
+ status: string;
198
+ id: string;
199
+ created_at: string;
200
+ updated_at: string;
201
+ created_by: string;
202
+ circle_id: string;
203
+ visibility: string;
204
+ tags: string[];
205
+ schema_version: 1;
206
+ record_version: number;
207
+ record_type: "asset";
208
+ name: string;
209
+ asset_type: string;
210
+ currency: string;
211
+ linked_record_ids: string[];
212
+ acquired_at?: string | undefined;
213
+ notes?: string | undefined;
214
+ }>, z.ZodObject<{
215
+ id: z.ZodString;
216
+ created_at: z.ZodString;
217
+ updated_at: z.ZodString;
218
+ created_by: z.ZodString;
219
+ circle_id: z.ZodString;
220
+ visibility: z.ZodEnum<[string, ...string[]]>;
221
+ tags: z.ZodArray<z.ZodString, "many">;
222
+ status: z.ZodEnum<[string, ...string[]]>;
223
+ record_version: z.ZodNumber;
224
+ } & {
225
+ record_type: z.ZodLiteral<"liability">;
226
+ schema_version: z.ZodLiteral<1>;
227
+ name: z.ZodString;
228
+ liability_type: z.ZodString;
229
+ amount: z.ZodNumber;
230
+ currency: z.ZodString;
231
+ due_at: z.ZodOptional<z.ZodString>;
232
+ creditor: z.ZodOptional<z.ZodString>;
233
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
234
+ }, "strict", z.ZodTypeAny, {
235
+ status: string;
236
+ id: string;
237
+ created_at: string;
238
+ updated_at: string;
239
+ created_by: string;
240
+ circle_id: string;
241
+ visibility: string;
242
+ tags: string[];
243
+ schema_version: 1;
244
+ record_version: number;
245
+ record_type: "liability";
246
+ name: string;
247
+ currency: string;
248
+ linked_record_ids: string[];
249
+ liability_type: string;
250
+ amount: number;
251
+ due_at?: string | undefined;
252
+ creditor?: string | undefined;
253
+ }, {
254
+ status: string;
255
+ id: string;
256
+ created_at: string;
257
+ updated_at: string;
258
+ created_by: string;
259
+ circle_id: string;
260
+ visibility: string;
261
+ tags: string[];
262
+ schema_version: 1;
263
+ record_version: number;
264
+ record_type: "liability";
265
+ name: string;
266
+ currency: string;
267
+ linked_record_ids: string[];
268
+ liability_type: string;
269
+ amount: number;
270
+ due_at?: string | undefined;
271
+ creditor?: string | undefined;
272
+ }>, z.ZodObject<{
273
+ id: z.ZodString;
274
+ created_at: z.ZodString;
275
+ updated_at: z.ZodString;
276
+ created_by: z.ZodString;
277
+ circle_id: z.ZodString;
278
+ visibility: z.ZodEnum<[string, ...string[]]>;
279
+ tags: z.ZodArray<z.ZodString, "many">;
280
+ status: z.ZodEnum<[string, ...string[]]>;
281
+ record_version: z.ZodNumber;
282
+ } & {
283
+ record_type: z.ZodLiteral<"document">;
284
+ schema_version: z.ZodLiteral<1>;
285
+ title: z.ZodString;
286
+ mime_type: z.ZodOptional<z.ZodString>;
287
+ storage_reference: z.ZodString;
288
+ checksum: z.ZodString;
289
+ encryption_metadata: z.ZodObject<{
290
+ algorithm: z.ZodString;
291
+ key_id: z.ZodOptional<z.ZodString>;
292
+ iv: z.ZodOptional<z.ZodString>;
293
+ wrapped_key: z.ZodOptional<z.ZodString>;
294
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
295
+ algorithm: z.ZodString;
296
+ key_id: z.ZodOptional<z.ZodString>;
297
+ iv: z.ZodOptional<z.ZodString>;
298
+ wrapped_key: z.ZodOptional<z.ZodString>;
299
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
300
+ algorithm: z.ZodString;
301
+ key_id: z.ZodOptional<z.ZodString>;
302
+ iv: z.ZodOptional<z.ZodString>;
303
+ wrapped_key: z.ZodOptional<z.ZodString>;
304
+ }, z.ZodTypeAny, "passthrough">>;
305
+ linked_record_id: z.ZodString;
306
+ }, "strict", z.ZodTypeAny, {
307
+ status: string;
308
+ id: string;
309
+ created_at: string;
310
+ updated_at: string;
311
+ created_by: string;
312
+ circle_id: string;
313
+ visibility: string;
314
+ tags: string[];
315
+ schema_version: 1;
316
+ record_version: number;
317
+ record_type: "document";
318
+ linked_record_id: string;
319
+ title: string;
320
+ storage_reference: string;
321
+ checksum: string;
322
+ encryption_metadata: {
323
+ algorithm: string;
324
+ key_id?: string | undefined;
325
+ iv?: string | undefined;
326
+ wrapped_key?: string | undefined;
327
+ } & {
328
+ [k: string]: unknown;
329
+ };
330
+ mime_type?: string | undefined;
331
+ }, {
332
+ status: string;
333
+ id: string;
334
+ created_at: string;
335
+ updated_at: string;
336
+ created_by: string;
337
+ circle_id: string;
338
+ visibility: string;
339
+ tags: string[];
340
+ schema_version: 1;
341
+ record_version: number;
342
+ record_type: "document";
343
+ linked_record_id: string;
344
+ title: string;
345
+ storage_reference: string;
346
+ checksum: string;
347
+ encryption_metadata: {
348
+ algorithm: string;
349
+ key_id?: string | undefined;
350
+ iv?: string | undefined;
351
+ wrapped_key?: string | undefined;
352
+ } & {
353
+ [k: string]: unknown;
354
+ };
355
+ mime_type?: string | undefined;
356
+ }>, z.ZodObject<{
357
+ id: z.ZodString;
358
+ created_at: z.ZodString;
359
+ updated_at: z.ZodString;
360
+ created_by: z.ZodString;
361
+ circle_id: z.ZodString;
362
+ visibility: z.ZodEnum<[string, ...string[]]>;
363
+ tags: z.ZodArray<z.ZodString, "many">;
364
+ status: z.ZodEnum<[string, ...string[]]>;
365
+ record_version: z.ZodNumber;
366
+ } & {
367
+ record_type: z.ZodLiteral<"reminder">;
368
+ schema_version: z.ZodLiteral<1>;
369
+ title: z.ZodString;
370
+ message: z.ZodOptional<z.ZodString>;
371
+ remind_at: z.ZodString;
372
+ recurrence: z.ZodEnum<[string, ...string[]]>;
373
+ linked_record_id: z.ZodString;
374
+ triggered_at: z.ZodOptional<z.ZodString>;
375
+ }, "strict", z.ZodTypeAny, {
376
+ status: string;
377
+ id: string;
378
+ created_at: string;
379
+ updated_at: string;
380
+ created_by: string;
381
+ circle_id: string;
382
+ visibility: string;
383
+ tags: string[];
384
+ schema_version: 1;
385
+ record_version: number;
386
+ record_type: "reminder";
387
+ linked_record_id: string;
388
+ title: string;
389
+ remind_at: string;
390
+ recurrence: string;
391
+ message?: string | undefined;
392
+ triggered_at?: string | undefined;
393
+ }, {
394
+ status: string;
395
+ id: string;
396
+ created_at: string;
397
+ updated_at: string;
398
+ created_by: string;
399
+ circle_id: string;
400
+ visibility: string;
401
+ tags: string[];
402
+ schema_version: 1;
403
+ record_version: number;
404
+ record_type: "reminder";
405
+ linked_record_id: string;
406
+ title: string;
407
+ remind_at: string;
408
+ recurrence: string;
409
+ message?: string | undefined;
410
+ triggered_at?: string | undefined;
411
+ }>]>;
412
+ export type HearthRecord = z.infer<typeof hearthRecordSchema>;
413
+ export declare const RECORD_SCHEMA_BY_VERSION: {
414
+ readonly 1: {
415
+ readonly circle: z.ZodObject<{
416
+ id: z.ZodString;
417
+ created_at: z.ZodString;
418
+ updated_at: z.ZodString;
419
+ created_by: z.ZodString;
420
+ circle_id: z.ZodString;
421
+ visibility: z.ZodEnum<[string, ...string[]]>;
422
+ tags: z.ZodArray<z.ZodString, "many">;
423
+ status: z.ZodEnum<[string, ...string[]]>;
424
+ record_version: z.ZodNumber;
425
+ } & {
426
+ record_type: z.ZodLiteral<"circle">;
427
+ schema_version: z.ZodLiteral<1>;
428
+ name: z.ZodString;
429
+ slug: z.ZodString;
430
+ description: z.ZodOptional<z.ZodString>;
431
+ member_ids: z.ZodArray<z.ZodString, "many">;
432
+ }, "strict", z.ZodTypeAny, {
433
+ status: string;
434
+ id: string;
435
+ created_at: string;
436
+ updated_at: string;
437
+ created_by: string;
438
+ circle_id: string;
439
+ visibility: string;
440
+ tags: string[];
441
+ schema_version: 1;
442
+ record_version: number;
443
+ record_type: "circle";
444
+ name: string;
445
+ slug: string;
446
+ member_ids: string[];
447
+ description?: string | undefined;
448
+ }, {
449
+ status: string;
450
+ id: string;
451
+ created_at: string;
452
+ updated_at: string;
453
+ created_by: string;
454
+ circle_id: string;
455
+ visibility: string;
456
+ tags: string[];
457
+ schema_version: 1;
458
+ record_version: number;
459
+ record_type: "circle";
460
+ name: string;
461
+ slug: string;
462
+ member_ids: string[];
463
+ description?: string | undefined;
464
+ }>;
465
+ readonly user: z.ZodObject<{
466
+ id: z.ZodString;
467
+ created_at: z.ZodString;
468
+ updated_at: z.ZodString;
469
+ created_by: z.ZodString;
470
+ circle_id: z.ZodString;
471
+ visibility: z.ZodEnum<[string, ...string[]]>;
472
+ tags: z.ZodArray<z.ZodString, "many">;
473
+ status: z.ZodEnum<[string, ...string[]]>;
474
+ record_version: z.ZodNumber;
475
+ } & {
476
+ record_type: z.ZodLiteral<"user">;
477
+ schema_version: z.ZodLiteral<1>;
478
+ display_name: z.ZodString;
479
+ email: z.ZodOptional<z.ZodString>;
480
+ public_key: z.ZodOptional<z.ZodString>;
481
+ locale: z.ZodOptional<z.ZodString>;
482
+ }, "strict", z.ZodTypeAny, {
483
+ status: string;
484
+ id: string;
485
+ created_at: string;
486
+ updated_at: string;
487
+ created_by: string;
488
+ circle_id: string;
489
+ visibility: string;
490
+ tags: string[];
491
+ schema_version: 1;
492
+ record_version: number;
493
+ record_type: "user";
494
+ display_name: string;
495
+ email?: string | undefined;
496
+ public_key?: string | undefined;
497
+ locale?: string | undefined;
498
+ }, {
499
+ status: string;
500
+ id: string;
501
+ created_at: string;
502
+ updated_at: string;
503
+ created_by: string;
504
+ circle_id: string;
505
+ visibility: string;
506
+ tags: string[];
507
+ schema_version: 1;
508
+ record_version: number;
509
+ record_type: "user";
510
+ display_name: string;
511
+ email?: string | undefined;
512
+ public_key?: string | undefined;
513
+ locale?: string | undefined;
514
+ }>;
515
+ readonly policy: z.ZodObject<{
516
+ id: z.ZodString;
517
+ created_at: z.ZodString;
518
+ updated_at: z.ZodString;
519
+ created_by: z.ZodString;
520
+ circle_id: z.ZodString;
521
+ visibility: z.ZodEnum<[string, ...string[]]>;
522
+ tags: z.ZodArray<z.ZodString, "many">;
523
+ status: z.ZodEnum<[string, ...string[]]>;
524
+ record_version: z.ZodNumber;
525
+ } & {
526
+ record_type: z.ZodLiteral<"policy">;
527
+ schema_version: z.ZodLiteral<1>;
528
+ name: z.ZodString;
529
+ kind: z.ZodEnum<[string, ...string[]]>;
530
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
531
+ effective_from: z.ZodOptional<z.ZodString>;
532
+ effective_until: z.ZodOptional<z.ZodString>;
533
+ linked_record_id: z.ZodOptional<z.ZodString>;
534
+ }, "strict", z.ZodTypeAny, {
535
+ status: string;
536
+ id: string;
537
+ created_at: string;
538
+ updated_at: string;
539
+ created_by: string;
540
+ circle_id: string;
541
+ visibility: string;
542
+ tags: string[];
543
+ schema_version: 1;
544
+ record_version: number;
545
+ record_type: "policy";
546
+ name: string;
547
+ kind: string;
548
+ rules: Record<string, unknown>;
549
+ effective_from?: string | undefined;
550
+ effective_until?: string | undefined;
551
+ linked_record_id?: string | undefined;
552
+ }, {
553
+ status: string;
554
+ id: string;
555
+ created_at: string;
556
+ updated_at: string;
557
+ created_by: string;
558
+ circle_id: string;
559
+ visibility: string;
560
+ tags: string[];
561
+ schema_version: 1;
562
+ record_version: number;
563
+ record_type: "policy";
564
+ name: string;
565
+ kind: string;
566
+ rules: Record<string, unknown>;
567
+ effective_from?: string | undefined;
568
+ effective_until?: string | undefined;
569
+ linked_record_id?: string | undefined;
570
+ }>;
571
+ readonly asset: z.ZodObject<{
572
+ id: z.ZodString;
573
+ created_at: z.ZodString;
574
+ updated_at: z.ZodString;
575
+ created_by: z.ZodString;
576
+ circle_id: z.ZodString;
577
+ visibility: z.ZodEnum<[string, ...string[]]>;
578
+ tags: z.ZodArray<z.ZodString, "many">;
579
+ status: z.ZodEnum<[string, ...string[]]>;
580
+ record_version: z.ZodNumber;
581
+ } & {
582
+ record_type: z.ZodLiteral<"asset">;
583
+ schema_version: z.ZodLiteral<1>;
584
+ name: z.ZodString;
585
+ asset_type: z.ZodString;
586
+ value: z.ZodNumber;
587
+ currency: z.ZodString;
588
+ acquired_at: z.ZodOptional<z.ZodString>;
589
+ notes: z.ZodOptional<z.ZodString>;
590
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
591
+ }, "strict", z.ZodTypeAny, {
592
+ value: number;
593
+ status: string;
594
+ id: string;
595
+ created_at: string;
596
+ updated_at: string;
597
+ created_by: string;
598
+ circle_id: string;
599
+ visibility: string;
600
+ tags: string[];
601
+ schema_version: 1;
602
+ record_version: number;
603
+ record_type: "asset";
604
+ name: string;
605
+ asset_type: string;
606
+ currency: string;
607
+ linked_record_ids: string[];
608
+ acquired_at?: string | undefined;
609
+ notes?: string | undefined;
610
+ }, {
611
+ value: number;
612
+ status: string;
613
+ id: string;
614
+ created_at: string;
615
+ updated_at: string;
616
+ created_by: string;
617
+ circle_id: string;
618
+ visibility: string;
619
+ tags: string[];
620
+ schema_version: 1;
621
+ record_version: number;
622
+ record_type: "asset";
623
+ name: string;
624
+ asset_type: string;
625
+ currency: string;
626
+ linked_record_ids: string[];
627
+ acquired_at?: string | undefined;
628
+ notes?: string | undefined;
629
+ }>;
630
+ readonly liability: z.ZodObject<{
631
+ id: z.ZodString;
632
+ created_at: z.ZodString;
633
+ updated_at: z.ZodString;
634
+ created_by: z.ZodString;
635
+ circle_id: z.ZodString;
636
+ visibility: z.ZodEnum<[string, ...string[]]>;
637
+ tags: z.ZodArray<z.ZodString, "many">;
638
+ status: z.ZodEnum<[string, ...string[]]>;
639
+ record_version: z.ZodNumber;
640
+ } & {
641
+ record_type: z.ZodLiteral<"liability">;
642
+ schema_version: z.ZodLiteral<1>;
643
+ name: z.ZodString;
644
+ liability_type: z.ZodString;
645
+ amount: z.ZodNumber;
646
+ currency: z.ZodString;
647
+ due_at: z.ZodOptional<z.ZodString>;
648
+ creditor: z.ZodOptional<z.ZodString>;
649
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
650
+ }, "strict", z.ZodTypeAny, {
651
+ status: string;
652
+ id: string;
653
+ created_at: string;
654
+ updated_at: string;
655
+ created_by: string;
656
+ circle_id: string;
657
+ visibility: string;
658
+ tags: string[];
659
+ schema_version: 1;
660
+ record_version: number;
661
+ record_type: "liability";
662
+ name: string;
663
+ currency: string;
664
+ linked_record_ids: string[];
665
+ liability_type: string;
666
+ amount: number;
667
+ due_at?: string | undefined;
668
+ creditor?: string | undefined;
669
+ }, {
670
+ status: string;
671
+ id: string;
672
+ created_at: string;
673
+ updated_at: string;
674
+ created_by: string;
675
+ circle_id: string;
676
+ visibility: string;
677
+ tags: string[];
678
+ schema_version: 1;
679
+ record_version: number;
680
+ record_type: "liability";
681
+ name: string;
682
+ currency: string;
683
+ linked_record_ids: string[];
684
+ liability_type: string;
685
+ amount: number;
686
+ due_at?: string | undefined;
687
+ creditor?: string | undefined;
688
+ }>;
689
+ readonly document: z.ZodObject<{
690
+ id: z.ZodString;
691
+ created_at: z.ZodString;
692
+ updated_at: z.ZodString;
693
+ created_by: z.ZodString;
694
+ circle_id: z.ZodString;
695
+ visibility: z.ZodEnum<[string, ...string[]]>;
696
+ tags: z.ZodArray<z.ZodString, "many">;
697
+ status: z.ZodEnum<[string, ...string[]]>;
698
+ record_version: z.ZodNumber;
699
+ } & {
700
+ record_type: z.ZodLiteral<"document">;
701
+ schema_version: z.ZodLiteral<1>;
702
+ title: z.ZodString;
703
+ mime_type: z.ZodOptional<z.ZodString>;
704
+ storage_reference: z.ZodString;
705
+ checksum: z.ZodString;
706
+ encryption_metadata: z.ZodObject<{
707
+ algorithm: z.ZodString;
708
+ key_id: z.ZodOptional<z.ZodString>;
709
+ iv: z.ZodOptional<z.ZodString>;
710
+ wrapped_key: z.ZodOptional<z.ZodString>;
711
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
712
+ algorithm: z.ZodString;
713
+ key_id: z.ZodOptional<z.ZodString>;
714
+ iv: z.ZodOptional<z.ZodString>;
715
+ wrapped_key: z.ZodOptional<z.ZodString>;
716
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
717
+ algorithm: z.ZodString;
718
+ key_id: z.ZodOptional<z.ZodString>;
719
+ iv: z.ZodOptional<z.ZodString>;
720
+ wrapped_key: z.ZodOptional<z.ZodString>;
721
+ }, z.ZodTypeAny, "passthrough">>;
722
+ linked_record_id: z.ZodString;
723
+ }, "strict", z.ZodTypeAny, {
724
+ status: string;
725
+ id: string;
726
+ created_at: string;
727
+ updated_at: string;
728
+ created_by: string;
729
+ circle_id: string;
730
+ visibility: string;
731
+ tags: string[];
732
+ schema_version: 1;
733
+ record_version: number;
734
+ record_type: "document";
735
+ linked_record_id: string;
736
+ title: string;
737
+ storage_reference: string;
738
+ checksum: string;
739
+ encryption_metadata: {
740
+ algorithm: string;
741
+ key_id?: string | undefined;
742
+ iv?: string | undefined;
743
+ wrapped_key?: string | undefined;
744
+ } & {
745
+ [k: string]: unknown;
746
+ };
747
+ mime_type?: string | undefined;
748
+ }, {
749
+ status: string;
750
+ id: string;
751
+ created_at: string;
752
+ updated_at: string;
753
+ created_by: string;
754
+ circle_id: string;
755
+ visibility: string;
756
+ tags: string[];
757
+ schema_version: 1;
758
+ record_version: number;
759
+ record_type: "document";
760
+ linked_record_id: string;
761
+ title: string;
762
+ storage_reference: string;
763
+ checksum: string;
764
+ encryption_metadata: {
765
+ algorithm: string;
766
+ key_id?: string | undefined;
767
+ iv?: string | undefined;
768
+ wrapped_key?: string | undefined;
769
+ } & {
770
+ [k: string]: unknown;
771
+ };
772
+ mime_type?: string | undefined;
773
+ }>;
774
+ readonly reminder: z.ZodObject<{
775
+ id: z.ZodString;
776
+ created_at: z.ZodString;
777
+ updated_at: z.ZodString;
778
+ created_by: z.ZodString;
779
+ circle_id: z.ZodString;
780
+ visibility: z.ZodEnum<[string, ...string[]]>;
781
+ tags: z.ZodArray<z.ZodString, "many">;
782
+ status: z.ZodEnum<[string, ...string[]]>;
783
+ record_version: z.ZodNumber;
784
+ } & {
785
+ record_type: z.ZodLiteral<"reminder">;
786
+ schema_version: z.ZodLiteral<1>;
787
+ title: z.ZodString;
788
+ message: z.ZodOptional<z.ZodString>;
789
+ remind_at: z.ZodString;
790
+ recurrence: z.ZodEnum<[string, ...string[]]>;
791
+ linked_record_id: z.ZodString;
792
+ triggered_at: z.ZodOptional<z.ZodString>;
793
+ }, "strict", z.ZodTypeAny, {
794
+ status: string;
795
+ id: string;
796
+ created_at: string;
797
+ updated_at: string;
798
+ created_by: string;
799
+ circle_id: string;
800
+ visibility: string;
801
+ tags: string[];
802
+ schema_version: 1;
803
+ record_version: number;
804
+ record_type: "reminder";
805
+ linked_record_id: string;
806
+ title: string;
807
+ remind_at: string;
808
+ recurrence: string;
809
+ message?: string | undefined;
810
+ triggered_at?: string | undefined;
811
+ }, {
812
+ status: string;
813
+ id: string;
814
+ created_at: string;
815
+ updated_at: string;
816
+ created_by: string;
817
+ circle_id: string;
818
+ visibility: string;
819
+ tags: string[];
820
+ schema_version: 1;
821
+ record_version: number;
822
+ record_type: "reminder";
823
+ linked_record_id: string;
824
+ title: string;
825
+ remind_at: string;
826
+ recurrence: string;
827
+ message?: string | undefined;
828
+ triggered_at?: string | undefined;
829
+ }>;
830
+ };
831
+ };
832
+ //# sourceMappingURL=record-union.d.ts.map