@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,4206 @@
1
+ import { z } from "zod";
2
+ export declare const recordCreatedEventSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ occurred_at: z.ZodString;
5
+ circle_id: z.ZodString;
6
+ actor_id: z.ZodString;
7
+ record_id: z.ZodString;
8
+ record_type: z.ZodEnum<[string, ...string[]]>;
9
+ schema_version: z.ZodNumber;
10
+ } & {
11
+ type: z.ZodLiteral<"record_created">;
12
+ payload: z.ZodObject<{
13
+ record: z.ZodDiscriminatedUnion<"record_type", [z.ZodObject<{
14
+ id: z.ZodString;
15
+ created_at: z.ZodString;
16
+ updated_at: z.ZodString;
17
+ created_by: z.ZodString;
18
+ circle_id: z.ZodString;
19
+ visibility: z.ZodEnum<[string, ...string[]]>;
20
+ tags: z.ZodArray<z.ZodString, "many">;
21
+ status: z.ZodEnum<[string, ...string[]]>;
22
+ record_version: z.ZodNumber;
23
+ } & {
24
+ record_type: z.ZodLiteral<"circle">;
25
+ schema_version: z.ZodLiteral<1>;
26
+ name: z.ZodString;
27
+ slug: z.ZodString;
28
+ description: z.ZodOptional<z.ZodString>;
29
+ member_ids: z.ZodArray<z.ZodString, "many">;
30
+ }, "strict", z.ZodTypeAny, {
31
+ status: string;
32
+ id: string;
33
+ created_at: string;
34
+ updated_at: string;
35
+ created_by: string;
36
+ circle_id: string;
37
+ visibility: string;
38
+ tags: string[];
39
+ schema_version: 1;
40
+ record_version: number;
41
+ record_type: "circle";
42
+ name: string;
43
+ slug: string;
44
+ member_ids: string[];
45
+ description?: string | undefined;
46
+ }, {
47
+ status: string;
48
+ id: string;
49
+ created_at: string;
50
+ updated_at: string;
51
+ created_by: string;
52
+ circle_id: string;
53
+ visibility: string;
54
+ tags: string[];
55
+ schema_version: 1;
56
+ record_version: number;
57
+ record_type: "circle";
58
+ name: string;
59
+ slug: string;
60
+ member_ids: string[];
61
+ description?: string | undefined;
62
+ }>, z.ZodObject<{
63
+ id: z.ZodString;
64
+ created_at: z.ZodString;
65
+ updated_at: z.ZodString;
66
+ created_by: z.ZodString;
67
+ circle_id: z.ZodString;
68
+ visibility: z.ZodEnum<[string, ...string[]]>;
69
+ tags: z.ZodArray<z.ZodString, "many">;
70
+ status: z.ZodEnum<[string, ...string[]]>;
71
+ record_version: z.ZodNumber;
72
+ } & {
73
+ record_type: z.ZodLiteral<"user">;
74
+ schema_version: z.ZodLiteral<1>;
75
+ display_name: z.ZodString;
76
+ email: z.ZodOptional<z.ZodString>;
77
+ public_key: z.ZodOptional<z.ZodString>;
78
+ locale: z.ZodOptional<z.ZodString>;
79
+ }, "strict", z.ZodTypeAny, {
80
+ status: string;
81
+ id: string;
82
+ created_at: string;
83
+ updated_at: string;
84
+ created_by: string;
85
+ circle_id: string;
86
+ visibility: string;
87
+ tags: string[];
88
+ schema_version: 1;
89
+ record_version: number;
90
+ record_type: "user";
91
+ display_name: string;
92
+ email?: string | undefined;
93
+ public_key?: string | undefined;
94
+ locale?: string | undefined;
95
+ }, {
96
+ status: string;
97
+ id: string;
98
+ created_at: string;
99
+ updated_at: string;
100
+ created_by: string;
101
+ circle_id: string;
102
+ visibility: string;
103
+ tags: string[];
104
+ schema_version: 1;
105
+ record_version: number;
106
+ record_type: "user";
107
+ display_name: string;
108
+ email?: string | undefined;
109
+ public_key?: string | undefined;
110
+ locale?: string | undefined;
111
+ }>, z.ZodObject<{
112
+ id: z.ZodString;
113
+ created_at: z.ZodString;
114
+ updated_at: z.ZodString;
115
+ created_by: z.ZodString;
116
+ circle_id: z.ZodString;
117
+ visibility: z.ZodEnum<[string, ...string[]]>;
118
+ tags: z.ZodArray<z.ZodString, "many">;
119
+ status: z.ZodEnum<[string, ...string[]]>;
120
+ record_version: z.ZodNumber;
121
+ } & {
122
+ record_type: z.ZodLiteral<"policy">;
123
+ schema_version: z.ZodLiteral<1>;
124
+ name: z.ZodString;
125
+ kind: z.ZodEnum<[string, ...string[]]>;
126
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
127
+ effective_from: z.ZodOptional<z.ZodString>;
128
+ effective_until: z.ZodOptional<z.ZodString>;
129
+ linked_record_id: z.ZodOptional<z.ZodString>;
130
+ }, "strict", z.ZodTypeAny, {
131
+ status: string;
132
+ id: string;
133
+ created_at: string;
134
+ updated_at: string;
135
+ created_by: string;
136
+ circle_id: string;
137
+ visibility: string;
138
+ tags: string[];
139
+ schema_version: 1;
140
+ record_version: number;
141
+ record_type: "policy";
142
+ name: string;
143
+ kind: string;
144
+ rules: Record<string, unknown>;
145
+ effective_from?: string | undefined;
146
+ effective_until?: string | undefined;
147
+ linked_record_id?: string | undefined;
148
+ }, {
149
+ status: string;
150
+ id: string;
151
+ created_at: string;
152
+ updated_at: string;
153
+ created_by: string;
154
+ circle_id: string;
155
+ visibility: string;
156
+ tags: string[];
157
+ schema_version: 1;
158
+ record_version: number;
159
+ record_type: "policy";
160
+ name: string;
161
+ kind: string;
162
+ rules: Record<string, unknown>;
163
+ effective_from?: string | undefined;
164
+ effective_until?: string | undefined;
165
+ linked_record_id?: string | undefined;
166
+ }>, z.ZodObject<{
167
+ id: z.ZodString;
168
+ created_at: z.ZodString;
169
+ updated_at: z.ZodString;
170
+ created_by: z.ZodString;
171
+ circle_id: z.ZodString;
172
+ visibility: z.ZodEnum<[string, ...string[]]>;
173
+ tags: z.ZodArray<z.ZodString, "many">;
174
+ status: z.ZodEnum<[string, ...string[]]>;
175
+ record_version: z.ZodNumber;
176
+ } & {
177
+ record_type: z.ZodLiteral<"asset">;
178
+ schema_version: z.ZodLiteral<1>;
179
+ name: z.ZodString;
180
+ asset_type: z.ZodString;
181
+ value: z.ZodNumber;
182
+ currency: z.ZodString;
183
+ acquired_at: z.ZodOptional<z.ZodString>;
184
+ notes: z.ZodOptional<z.ZodString>;
185
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
186
+ }, "strict", z.ZodTypeAny, {
187
+ value: number;
188
+ status: string;
189
+ id: string;
190
+ created_at: string;
191
+ updated_at: string;
192
+ created_by: string;
193
+ circle_id: string;
194
+ visibility: string;
195
+ tags: string[];
196
+ schema_version: 1;
197
+ record_version: number;
198
+ record_type: "asset";
199
+ name: string;
200
+ asset_type: string;
201
+ currency: string;
202
+ linked_record_ids: string[];
203
+ acquired_at?: string | undefined;
204
+ notes?: string | undefined;
205
+ }, {
206
+ value: number;
207
+ status: string;
208
+ id: string;
209
+ created_at: string;
210
+ updated_at: string;
211
+ created_by: string;
212
+ circle_id: string;
213
+ visibility: string;
214
+ tags: string[];
215
+ schema_version: 1;
216
+ record_version: number;
217
+ record_type: "asset";
218
+ name: string;
219
+ asset_type: string;
220
+ currency: string;
221
+ linked_record_ids: string[];
222
+ acquired_at?: string | undefined;
223
+ notes?: string | undefined;
224
+ }>, z.ZodObject<{
225
+ id: z.ZodString;
226
+ created_at: z.ZodString;
227
+ updated_at: z.ZodString;
228
+ created_by: z.ZodString;
229
+ circle_id: z.ZodString;
230
+ visibility: z.ZodEnum<[string, ...string[]]>;
231
+ tags: z.ZodArray<z.ZodString, "many">;
232
+ status: z.ZodEnum<[string, ...string[]]>;
233
+ record_version: z.ZodNumber;
234
+ } & {
235
+ record_type: z.ZodLiteral<"liability">;
236
+ schema_version: z.ZodLiteral<1>;
237
+ name: z.ZodString;
238
+ liability_type: z.ZodString;
239
+ amount: z.ZodNumber;
240
+ currency: z.ZodString;
241
+ due_at: z.ZodOptional<z.ZodString>;
242
+ creditor: z.ZodOptional<z.ZodString>;
243
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
244
+ }, "strict", z.ZodTypeAny, {
245
+ status: string;
246
+ id: string;
247
+ created_at: string;
248
+ updated_at: string;
249
+ created_by: string;
250
+ circle_id: string;
251
+ visibility: string;
252
+ tags: string[];
253
+ schema_version: 1;
254
+ record_version: number;
255
+ record_type: "liability";
256
+ name: string;
257
+ currency: string;
258
+ linked_record_ids: string[];
259
+ liability_type: string;
260
+ amount: number;
261
+ due_at?: string | undefined;
262
+ creditor?: string | undefined;
263
+ }, {
264
+ status: string;
265
+ id: string;
266
+ created_at: string;
267
+ updated_at: string;
268
+ created_by: string;
269
+ circle_id: string;
270
+ visibility: string;
271
+ tags: string[];
272
+ schema_version: 1;
273
+ record_version: number;
274
+ record_type: "liability";
275
+ name: string;
276
+ currency: string;
277
+ linked_record_ids: string[];
278
+ liability_type: string;
279
+ amount: number;
280
+ due_at?: string | undefined;
281
+ creditor?: string | undefined;
282
+ }>, z.ZodObject<{
283
+ id: z.ZodString;
284
+ created_at: z.ZodString;
285
+ updated_at: z.ZodString;
286
+ created_by: z.ZodString;
287
+ circle_id: z.ZodString;
288
+ visibility: z.ZodEnum<[string, ...string[]]>;
289
+ tags: z.ZodArray<z.ZodString, "many">;
290
+ status: z.ZodEnum<[string, ...string[]]>;
291
+ record_version: z.ZodNumber;
292
+ } & {
293
+ record_type: z.ZodLiteral<"document">;
294
+ schema_version: z.ZodLiteral<1>;
295
+ title: z.ZodString;
296
+ mime_type: z.ZodOptional<z.ZodString>;
297
+ storage_reference: z.ZodString;
298
+ checksum: z.ZodString;
299
+ encryption_metadata: z.ZodObject<{
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
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
305
+ algorithm: z.ZodString;
306
+ key_id: z.ZodOptional<z.ZodString>;
307
+ iv: z.ZodOptional<z.ZodString>;
308
+ wrapped_key: z.ZodOptional<z.ZodString>;
309
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
310
+ algorithm: z.ZodString;
311
+ key_id: z.ZodOptional<z.ZodString>;
312
+ iv: z.ZodOptional<z.ZodString>;
313
+ wrapped_key: z.ZodOptional<z.ZodString>;
314
+ }, z.ZodTypeAny, "passthrough">>;
315
+ linked_record_id: z.ZodString;
316
+ }, "strict", z.ZodTypeAny, {
317
+ status: string;
318
+ id: string;
319
+ created_at: string;
320
+ updated_at: string;
321
+ created_by: string;
322
+ circle_id: string;
323
+ visibility: string;
324
+ tags: string[];
325
+ schema_version: 1;
326
+ record_version: number;
327
+ record_type: "document";
328
+ linked_record_id: string;
329
+ title: string;
330
+ storage_reference: string;
331
+ checksum: string;
332
+ encryption_metadata: {
333
+ algorithm: string;
334
+ key_id?: string | undefined;
335
+ iv?: string | undefined;
336
+ wrapped_key?: string | undefined;
337
+ } & {
338
+ [k: string]: unknown;
339
+ };
340
+ mime_type?: string | undefined;
341
+ }, {
342
+ status: string;
343
+ id: string;
344
+ created_at: string;
345
+ updated_at: string;
346
+ created_by: string;
347
+ circle_id: string;
348
+ visibility: string;
349
+ tags: string[];
350
+ schema_version: 1;
351
+ record_version: number;
352
+ record_type: "document";
353
+ linked_record_id: string;
354
+ title: string;
355
+ storage_reference: string;
356
+ checksum: string;
357
+ encryption_metadata: {
358
+ algorithm: string;
359
+ key_id?: string | undefined;
360
+ iv?: string | undefined;
361
+ wrapped_key?: string | undefined;
362
+ } & {
363
+ [k: string]: unknown;
364
+ };
365
+ mime_type?: string | undefined;
366
+ }>, z.ZodObject<{
367
+ id: z.ZodString;
368
+ created_at: z.ZodString;
369
+ updated_at: z.ZodString;
370
+ created_by: z.ZodString;
371
+ circle_id: z.ZodString;
372
+ visibility: z.ZodEnum<[string, ...string[]]>;
373
+ tags: z.ZodArray<z.ZodString, "many">;
374
+ status: z.ZodEnum<[string, ...string[]]>;
375
+ record_version: z.ZodNumber;
376
+ } & {
377
+ record_type: z.ZodLiteral<"reminder">;
378
+ schema_version: z.ZodLiteral<1>;
379
+ title: z.ZodString;
380
+ message: z.ZodOptional<z.ZodString>;
381
+ remind_at: z.ZodString;
382
+ recurrence: z.ZodEnum<[string, ...string[]]>;
383
+ linked_record_id: z.ZodString;
384
+ triggered_at: z.ZodOptional<z.ZodString>;
385
+ }, "strict", z.ZodTypeAny, {
386
+ status: string;
387
+ id: string;
388
+ created_at: string;
389
+ updated_at: string;
390
+ created_by: string;
391
+ circle_id: string;
392
+ visibility: string;
393
+ tags: string[];
394
+ schema_version: 1;
395
+ record_version: number;
396
+ record_type: "reminder";
397
+ linked_record_id: string;
398
+ title: string;
399
+ remind_at: string;
400
+ recurrence: string;
401
+ message?: string | undefined;
402
+ triggered_at?: string | undefined;
403
+ }, {
404
+ status: string;
405
+ id: string;
406
+ created_at: string;
407
+ updated_at: string;
408
+ created_by: string;
409
+ circle_id: string;
410
+ visibility: string;
411
+ tags: string[];
412
+ schema_version: 1;
413
+ record_version: number;
414
+ record_type: "reminder";
415
+ linked_record_id: string;
416
+ title: string;
417
+ remind_at: string;
418
+ recurrence: string;
419
+ message?: string | undefined;
420
+ triggered_at?: string | undefined;
421
+ }>]>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ record: {
424
+ status: string;
425
+ id: string;
426
+ created_at: string;
427
+ updated_at: string;
428
+ created_by: string;
429
+ circle_id: string;
430
+ visibility: string;
431
+ tags: string[];
432
+ schema_version: 1;
433
+ record_version: number;
434
+ record_type: "circle";
435
+ name: string;
436
+ slug: string;
437
+ member_ids: string[];
438
+ description?: string | undefined;
439
+ } | {
440
+ status: string;
441
+ id: string;
442
+ created_at: string;
443
+ updated_at: string;
444
+ created_by: string;
445
+ circle_id: string;
446
+ visibility: string;
447
+ tags: string[];
448
+ schema_version: 1;
449
+ record_version: number;
450
+ record_type: "user";
451
+ display_name: string;
452
+ email?: string | undefined;
453
+ public_key?: string | undefined;
454
+ locale?: string | undefined;
455
+ } | {
456
+ status: string;
457
+ id: string;
458
+ created_at: string;
459
+ updated_at: string;
460
+ created_by: string;
461
+ circle_id: string;
462
+ visibility: string;
463
+ tags: string[];
464
+ schema_version: 1;
465
+ record_version: number;
466
+ record_type: "policy";
467
+ name: string;
468
+ kind: string;
469
+ rules: Record<string, unknown>;
470
+ effective_from?: string | undefined;
471
+ effective_until?: string | undefined;
472
+ linked_record_id?: string | undefined;
473
+ } | {
474
+ value: number;
475
+ status: string;
476
+ id: string;
477
+ created_at: string;
478
+ updated_at: string;
479
+ created_by: string;
480
+ circle_id: string;
481
+ visibility: string;
482
+ tags: string[];
483
+ schema_version: 1;
484
+ record_version: number;
485
+ record_type: "asset";
486
+ name: string;
487
+ asset_type: string;
488
+ currency: string;
489
+ linked_record_ids: string[];
490
+ acquired_at?: string | undefined;
491
+ notes?: string | undefined;
492
+ } | {
493
+ status: string;
494
+ id: string;
495
+ created_at: string;
496
+ updated_at: string;
497
+ created_by: string;
498
+ circle_id: string;
499
+ visibility: string;
500
+ tags: string[];
501
+ schema_version: 1;
502
+ record_version: number;
503
+ record_type: "liability";
504
+ name: string;
505
+ currency: string;
506
+ linked_record_ids: string[];
507
+ liability_type: string;
508
+ amount: number;
509
+ due_at?: string | undefined;
510
+ creditor?: string | undefined;
511
+ } | {
512
+ status: string;
513
+ id: string;
514
+ created_at: string;
515
+ updated_at: string;
516
+ created_by: string;
517
+ circle_id: string;
518
+ visibility: string;
519
+ tags: string[];
520
+ schema_version: 1;
521
+ record_version: number;
522
+ record_type: "document";
523
+ linked_record_id: string;
524
+ title: string;
525
+ storage_reference: string;
526
+ checksum: string;
527
+ encryption_metadata: {
528
+ algorithm: string;
529
+ key_id?: string | undefined;
530
+ iv?: string | undefined;
531
+ wrapped_key?: string | undefined;
532
+ } & {
533
+ [k: string]: unknown;
534
+ };
535
+ mime_type?: string | undefined;
536
+ } | {
537
+ status: string;
538
+ id: string;
539
+ created_at: string;
540
+ updated_at: string;
541
+ created_by: string;
542
+ circle_id: string;
543
+ visibility: string;
544
+ tags: string[];
545
+ schema_version: 1;
546
+ record_version: number;
547
+ record_type: "reminder";
548
+ linked_record_id: string;
549
+ title: string;
550
+ remind_at: string;
551
+ recurrence: string;
552
+ message?: string | undefined;
553
+ triggered_at?: string | undefined;
554
+ };
555
+ }, {
556
+ record: {
557
+ status: string;
558
+ id: string;
559
+ created_at: string;
560
+ updated_at: string;
561
+ created_by: string;
562
+ circle_id: string;
563
+ visibility: string;
564
+ tags: string[];
565
+ schema_version: 1;
566
+ record_version: number;
567
+ record_type: "circle";
568
+ name: string;
569
+ slug: string;
570
+ member_ids: string[];
571
+ description?: string | undefined;
572
+ } | {
573
+ status: string;
574
+ id: string;
575
+ created_at: string;
576
+ updated_at: string;
577
+ created_by: string;
578
+ circle_id: string;
579
+ visibility: string;
580
+ tags: string[];
581
+ schema_version: 1;
582
+ record_version: number;
583
+ record_type: "user";
584
+ display_name: string;
585
+ email?: string | undefined;
586
+ public_key?: string | undefined;
587
+ locale?: string | undefined;
588
+ } | {
589
+ status: string;
590
+ id: string;
591
+ created_at: string;
592
+ updated_at: string;
593
+ created_by: string;
594
+ circle_id: string;
595
+ visibility: string;
596
+ tags: string[];
597
+ schema_version: 1;
598
+ record_version: number;
599
+ record_type: "policy";
600
+ name: string;
601
+ kind: string;
602
+ rules: Record<string, unknown>;
603
+ effective_from?: string | undefined;
604
+ effective_until?: string | undefined;
605
+ linked_record_id?: string | undefined;
606
+ } | {
607
+ value: number;
608
+ status: string;
609
+ id: string;
610
+ created_at: string;
611
+ updated_at: string;
612
+ created_by: string;
613
+ circle_id: string;
614
+ visibility: string;
615
+ tags: string[];
616
+ schema_version: 1;
617
+ record_version: number;
618
+ record_type: "asset";
619
+ name: string;
620
+ asset_type: string;
621
+ currency: string;
622
+ linked_record_ids: string[];
623
+ acquired_at?: string | undefined;
624
+ notes?: string | undefined;
625
+ } | {
626
+ status: string;
627
+ id: string;
628
+ created_at: string;
629
+ updated_at: string;
630
+ created_by: string;
631
+ circle_id: string;
632
+ visibility: string;
633
+ tags: string[];
634
+ schema_version: 1;
635
+ record_version: number;
636
+ record_type: "liability";
637
+ name: string;
638
+ currency: string;
639
+ linked_record_ids: string[];
640
+ liability_type: string;
641
+ amount: number;
642
+ due_at?: string | undefined;
643
+ creditor?: string | undefined;
644
+ } | {
645
+ status: string;
646
+ id: string;
647
+ created_at: string;
648
+ updated_at: string;
649
+ created_by: string;
650
+ circle_id: string;
651
+ visibility: string;
652
+ tags: string[];
653
+ schema_version: 1;
654
+ record_version: number;
655
+ record_type: "document";
656
+ linked_record_id: string;
657
+ title: string;
658
+ storage_reference: string;
659
+ checksum: string;
660
+ encryption_metadata: {
661
+ algorithm: string;
662
+ key_id?: string | undefined;
663
+ iv?: string | undefined;
664
+ wrapped_key?: string | undefined;
665
+ } & {
666
+ [k: string]: unknown;
667
+ };
668
+ mime_type?: 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: "reminder";
681
+ linked_record_id: string;
682
+ title: string;
683
+ remind_at: string;
684
+ recurrence: string;
685
+ message?: string | undefined;
686
+ triggered_at?: string | undefined;
687
+ };
688
+ }>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ type: "record_created";
691
+ id: string;
692
+ circle_id: string;
693
+ schema_version: number;
694
+ record_type: string;
695
+ occurred_at: string;
696
+ actor_id: string;
697
+ record_id: string;
698
+ payload: {
699
+ record: {
700
+ status: string;
701
+ id: string;
702
+ created_at: string;
703
+ updated_at: string;
704
+ created_by: string;
705
+ circle_id: string;
706
+ visibility: string;
707
+ tags: string[];
708
+ schema_version: 1;
709
+ record_version: number;
710
+ record_type: "circle";
711
+ name: string;
712
+ slug: string;
713
+ member_ids: string[];
714
+ description?: string | undefined;
715
+ } | {
716
+ status: string;
717
+ id: string;
718
+ created_at: string;
719
+ updated_at: string;
720
+ created_by: string;
721
+ circle_id: string;
722
+ visibility: string;
723
+ tags: string[];
724
+ schema_version: 1;
725
+ record_version: number;
726
+ record_type: "user";
727
+ display_name: string;
728
+ email?: string | undefined;
729
+ public_key?: string | undefined;
730
+ locale?: string | undefined;
731
+ } | {
732
+ status: string;
733
+ id: string;
734
+ created_at: string;
735
+ updated_at: string;
736
+ created_by: string;
737
+ circle_id: string;
738
+ visibility: string;
739
+ tags: string[];
740
+ schema_version: 1;
741
+ record_version: number;
742
+ record_type: "policy";
743
+ name: string;
744
+ kind: string;
745
+ rules: Record<string, unknown>;
746
+ effective_from?: string | undefined;
747
+ effective_until?: string | undefined;
748
+ linked_record_id?: string | undefined;
749
+ } | {
750
+ value: number;
751
+ status: string;
752
+ id: string;
753
+ created_at: string;
754
+ updated_at: string;
755
+ created_by: string;
756
+ circle_id: string;
757
+ visibility: string;
758
+ tags: string[];
759
+ schema_version: 1;
760
+ record_version: number;
761
+ record_type: "asset";
762
+ name: string;
763
+ asset_type: string;
764
+ currency: string;
765
+ linked_record_ids: string[];
766
+ acquired_at?: string | undefined;
767
+ notes?: string | undefined;
768
+ } | {
769
+ status: string;
770
+ id: string;
771
+ created_at: string;
772
+ updated_at: string;
773
+ created_by: string;
774
+ circle_id: string;
775
+ visibility: string;
776
+ tags: string[];
777
+ schema_version: 1;
778
+ record_version: number;
779
+ record_type: "liability";
780
+ name: string;
781
+ currency: string;
782
+ linked_record_ids: string[];
783
+ liability_type: string;
784
+ amount: number;
785
+ due_at?: string | undefined;
786
+ creditor?: string | undefined;
787
+ } | {
788
+ status: string;
789
+ id: string;
790
+ created_at: string;
791
+ updated_at: string;
792
+ created_by: string;
793
+ circle_id: string;
794
+ visibility: string;
795
+ tags: string[];
796
+ schema_version: 1;
797
+ record_version: number;
798
+ record_type: "document";
799
+ linked_record_id: string;
800
+ title: string;
801
+ storage_reference: string;
802
+ checksum: string;
803
+ encryption_metadata: {
804
+ algorithm: string;
805
+ key_id?: string | undefined;
806
+ iv?: string | undefined;
807
+ wrapped_key?: string | undefined;
808
+ } & {
809
+ [k: string]: unknown;
810
+ };
811
+ mime_type?: string | undefined;
812
+ } | {
813
+ status: string;
814
+ id: string;
815
+ created_at: string;
816
+ updated_at: string;
817
+ created_by: string;
818
+ circle_id: string;
819
+ visibility: string;
820
+ tags: string[];
821
+ schema_version: 1;
822
+ record_version: number;
823
+ record_type: "reminder";
824
+ linked_record_id: string;
825
+ title: string;
826
+ remind_at: string;
827
+ recurrence: string;
828
+ message?: string | undefined;
829
+ triggered_at?: string | undefined;
830
+ };
831
+ };
832
+ }, {
833
+ type: "record_created";
834
+ id: string;
835
+ circle_id: string;
836
+ schema_version: number;
837
+ record_type: string;
838
+ occurred_at: string;
839
+ actor_id: string;
840
+ record_id: string;
841
+ payload: {
842
+ record: {
843
+ status: string;
844
+ id: string;
845
+ created_at: string;
846
+ updated_at: string;
847
+ created_by: string;
848
+ circle_id: string;
849
+ visibility: string;
850
+ tags: string[];
851
+ schema_version: 1;
852
+ record_version: number;
853
+ record_type: "circle";
854
+ name: string;
855
+ slug: string;
856
+ member_ids: string[];
857
+ description?: string | undefined;
858
+ } | {
859
+ status: string;
860
+ id: string;
861
+ created_at: string;
862
+ updated_at: string;
863
+ created_by: string;
864
+ circle_id: string;
865
+ visibility: string;
866
+ tags: string[];
867
+ schema_version: 1;
868
+ record_version: number;
869
+ record_type: "user";
870
+ display_name: string;
871
+ email?: string | undefined;
872
+ public_key?: string | undefined;
873
+ locale?: string | undefined;
874
+ } | {
875
+ status: string;
876
+ id: string;
877
+ created_at: string;
878
+ updated_at: string;
879
+ created_by: string;
880
+ circle_id: string;
881
+ visibility: string;
882
+ tags: string[];
883
+ schema_version: 1;
884
+ record_version: number;
885
+ record_type: "policy";
886
+ name: string;
887
+ kind: string;
888
+ rules: Record<string, unknown>;
889
+ effective_from?: string | undefined;
890
+ effective_until?: string | undefined;
891
+ linked_record_id?: string | undefined;
892
+ } | {
893
+ value: number;
894
+ status: string;
895
+ id: string;
896
+ created_at: string;
897
+ updated_at: string;
898
+ created_by: string;
899
+ circle_id: string;
900
+ visibility: string;
901
+ tags: string[];
902
+ schema_version: 1;
903
+ record_version: number;
904
+ record_type: "asset";
905
+ name: string;
906
+ asset_type: string;
907
+ currency: string;
908
+ linked_record_ids: string[];
909
+ acquired_at?: string | undefined;
910
+ notes?: string | undefined;
911
+ } | {
912
+ status: string;
913
+ id: string;
914
+ created_at: string;
915
+ updated_at: string;
916
+ created_by: string;
917
+ circle_id: string;
918
+ visibility: string;
919
+ tags: string[];
920
+ schema_version: 1;
921
+ record_version: number;
922
+ record_type: "liability";
923
+ name: string;
924
+ currency: string;
925
+ linked_record_ids: string[];
926
+ liability_type: string;
927
+ amount: number;
928
+ due_at?: string | undefined;
929
+ creditor?: string | undefined;
930
+ } | {
931
+ status: string;
932
+ id: string;
933
+ created_at: string;
934
+ updated_at: string;
935
+ created_by: string;
936
+ circle_id: string;
937
+ visibility: string;
938
+ tags: string[];
939
+ schema_version: 1;
940
+ record_version: number;
941
+ record_type: "document";
942
+ linked_record_id: string;
943
+ title: string;
944
+ storage_reference: string;
945
+ checksum: string;
946
+ encryption_metadata: {
947
+ algorithm: string;
948
+ key_id?: string | undefined;
949
+ iv?: string | undefined;
950
+ wrapped_key?: string | undefined;
951
+ } & {
952
+ [k: string]: unknown;
953
+ };
954
+ mime_type?: string | undefined;
955
+ } | {
956
+ status: string;
957
+ id: string;
958
+ created_at: string;
959
+ updated_at: string;
960
+ created_by: string;
961
+ circle_id: string;
962
+ visibility: string;
963
+ tags: string[];
964
+ schema_version: 1;
965
+ record_version: number;
966
+ record_type: "reminder";
967
+ linked_record_id: string;
968
+ title: string;
969
+ remind_at: string;
970
+ recurrence: string;
971
+ message?: string | undefined;
972
+ triggered_at?: string | undefined;
973
+ };
974
+ };
975
+ }>;
976
+ export declare const recordUpdatedEventSchema: z.ZodObject<{
977
+ id: z.ZodString;
978
+ occurred_at: z.ZodString;
979
+ circle_id: z.ZodString;
980
+ actor_id: z.ZodString;
981
+ record_id: z.ZodString;
982
+ record_type: z.ZodEnum<[string, ...string[]]>;
983
+ schema_version: z.ZodNumber;
984
+ } & {
985
+ type: z.ZodLiteral<"record_updated">;
986
+ payload: z.ZodObject<{
987
+ record: z.ZodDiscriminatedUnion<"record_type", [z.ZodObject<{
988
+ id: z.ZodString;
989
+ created_at: z.ZodString;
990
+ updated_at: z.ZodString;
991
+ created_by: z.ZodString;
992
+ circle_id: z.ZodString;
993
+ visibility: z.ZodEnum<[string, ...string[]]>;
994
+ tags: z.ZodArray<z.ZodString, "many">;
995
+ status: z.ZodEnum<[string, ...string[]]>;
996
+ record_version: z.ZodNumber;
997
+ } & {
998
+ record_type: z.ZodLiteral<"circle">;
999
+ schema_version: z.ZodLiteral<1>;
1000
+ name: z.ZodString;
1001
+ slug: z.ZodString;
1002
+ description: z.ZodOptional<z.ZodString>;
1003
+ member_ids: z.ZodArray<z.ZodString, "many">;
1004
+ }, "strict", z.ZodTypeAny, {
1005
+ status: string;
1006
+ id: string;
1007
+ created_at: string;
1008
+ updated_at: string;
1009
+ created_by: string;
1010
+ circle_id: string;
1011
+ visibility: string;
1012
+ tags: string[];
1013
+ schema_version: 1;
1014
+ record_version: number;
1015
+ record_type: "circle";
1016
+ name: string;
1017
+ slug: string;
1018
+ member_ids: string[];
1019
+ description?: string | undefined;
1020
+ }, {
1021
+ status: string;
1022
+ id: string;
1023
+ created_at: string;
1024
+ updated_at: string;
1025
+ created_by: string;
1026
+ circle_id: string;
1027
+ visibility: string;
1028
+ tags: string[];
1029
+ schema_version: 1;
1030
+ record_version: number;
1031
+ record_type: "circle";
1032
+ name: string;
1033
+ slug: string;
1034
+ member_ids: string[];
1035
+ description?: string | undefined;
1036
+ }>, z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ created_at: z.ZodString;
1039
+ updated_at: z.ZodString;
1040
+ created_by: z.ZodString;
1041
+ circle_id: z.ZodString;
1042
+ visibility: z.ZodEnum<[string, ...string[]]>;
1043
+ tags: z.ZodArray<z.ZodString, "many">;
1044
+ status: z.ZodEnum<[string, ...string[]]>;
1045
+ record_version: z.ZodNumber;
1046
+ } & {
1047
+ record_type: z.ZodLiteral<"user">;
1048
+ schema_version: z.ZodLiteral<1>;
1049
+ display_name: z.ZodString;
1050
+ email: z.ZodOptional<z.ZodString>;
1051
+ public_key: z.ZodOptional<z.ZodString>;
1052
+ locale: z.ZodOptional<z.ZodString>;
1053
+ }, "strict", z.ZodTypeAny, {
1054
+ status: string;
1055
+ id: string;
1056
+ created_at: string;
1057
+ updated_at: string;
1058
+ created_by: string;
1059
+ circle_id: string;
1060
+ visibility: string;
1061
+ tags: string[];
1062
+ schema_version: 1;
1063
+ record_version: number;
1064
+ record_type: "user";
1065
+ display_name: string;
1066
+ email?: string | undefined;
1067
+ public_key?: string | undefined;
1068
+ locale?: string | undefined;
1069
+ }, {
1070
+ status: string;
1071
+ id: string;
1072
+ created_at: string;
1073
+ updated_at: string;
1074
+ created_by: string;
1075
+ circle_id: string;
1076
+ visibility: string;
1077
+ tags: string[];
1078
+ schema_version: 1;
1079
+ record_version: number;
1080
+ record_type: "user";
1081
+ display_name: string;
1082
+ email?: string | undefined;
1083
+ public_key?: string | undefined;
1084
+ locale?: string | undefined;
1085
+ }>, z.ZodObject<{
1086
+ id: z.ZodString;
1087
+ created_at: z.ZodString;
1088
+ updated_at: z.ZodString;
1089
+ created_by: z.ZodString;
1090
+ circle_id: z.ZodString;
1091
+ visibility: z.ZodEnum<[string, ...string[]]>;
1092
+ tags: z.ZodArray<z.ZodString, "many">;
1093
+ status: z.ZodEnum<[string, ...string[]]>;
1094
+ record_version: z.ZodNumber;
1095
+ } & {
1096
+ record_type: z.ZodLiteral<"policy">;
1097
+ schema_version: z.ZodLiteral<1>;
1098
+ name: z.ZodString;
1099
+ kind: z.ZodEnum<[string, ...string[]]>;
1100
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1101
+ effective_from: z.ZodOptional<z.ZodString>;
1102
+ effective_until: z.ZodOptional<z.ZodString>;
1103
+ linked_record_id: z.ZodOptional<z.ZodString>;
1104
+ }, "strict", z.ZodTypeAny, {
1105
+ status: string;
1106
+ id: string;
1107
+ created_at: string;
1108
+ updated_at: string;
1109
+ created_by: string;
1110
+ circle_id: string;
1111
+ visibility: string;
1112
+ tags: string[];
1113
+ schema_version: 1;
1114
+ record_version: number;
1115
+ record_type: "policy";
1116
+ name: string;
1117
+ kind: string;
1118
+ rules: Record<string, unknown>;
1119
+ effective_from?: string | undefined;
1120
+ effective_until?: string | undefined;
1121
+ linked_record_id?: string | undefined;
1122
+ }, {
1123
+ status: string;
1124
+ id: string;
1125
+ created_at: string;
1126
+ updated_at: string;
1127
+ created_by: string;
1128
+ circle_id: string;
1129
+ visibility: string;
1130
+ tags: string[];
1131
+ schema_version: 1;
1132
+ record_version: number;
1133
+ record_type: "policy";
1134
+ name: string;
1135
+ kind: string;
1136
+ rules: Record<string, unknown>;
1137
+ effective_from?: string | undefined;
1138
+ effective_until?: string | undefined;
1139
+ linked_record_id?: string | undefined;
1140
+ }>, z.ZodObject<{
1141
+ id: z.ZodString;
1142
+ created_at: z.ZodString;
1143
+ updated_at: z.ZodString;
1144
+ created_by: z.ZodString;
1145
+ circle_id: z.ZodString;
1146
+ visibility: z.ZodEnum<[string, ...string[]]>;
1147
+ tags: z.ZodArray<z.ZodString, "many">;
1148
+ status: z.ZodEnum<[string, ...string[]]>;
1149
+ record_version: z.ZodNumber;
1150
+ } & {
1151
+ record_type: z.ZodLiteral<"asset">;
1152
+ schema_version: z.ZodLiteral<1>;
1153
+ name: z.ZodString;
1154
+ asset_type: z.ZodString;
1155
+ value: z.ZodNumber;
1156
+ currency: z.ZodString;
1157
+ acquired_at: z.ZodOptional<z.ZodString>;
1158
+ notes: z.ZodOptional<z.ZodString>;
1159
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
1160
+ }, "strict", z.ZodTypeAny, {
1161
+ value: number;
1162
+ status: string;
1163
+ id: string;
1164
+ created_at: string;
1165
+ updated_at: string;
1166
+ created_by: string;
1167
+ circle_id: string;
1168
+ visibility: string;
1169
+ tags: string[];
1170
+ schema_version: 1;
1171
+ record_version: number;
1172
+ record_type: "asset";
1173
+ name: string;
1174
+ asset_type: string;
1175
+ currency: string;
1176
+ linked_record_ids: string[];
1177
+ acquired_at?: string | undefined;
1178
+ notes?: string | undefined;
1179
+ }, {
1180
+ value: number;
1181
+ status: string;
1182
+ id: string;
1183
+ created_at: string;
1184
+ updated_at: string;
1185
+ created_by: string;
1186
+ circle_id: string;
1187
+ visibility: string;
1188
+ tags: string[];
1189
+ schema_version: 1;
1190
+ record_version: number;
1191
+ record_type: "asset";
1192
+ name: string;
1193
+ asset_type: string;
1194
+ currency: string;
1195
+ linked_record_ids: string[];
1196
+ acquired_at?: string | undefined;
1197
+ notes?: string | undefined;
1198
+ }>, z.ZodObject<{
1199
+ id: z.ZodString;
1200
+ created_at: z.ZodString;
1201
+ updated_at: z.ZodString;
1202
+ created_by: z.ZodString;
1203
+ circle_id: z.ZodString;
1204
+ visibility: z.ZodEnum<[string, ...string[]]>;
1205
+ tags: z.ZodArray<z.ZodString, "many">;
1206
+ status: z.ZodEnum<[string, ...string[]]>;
1207
+ record_version: z.ZodNumber;
1208
+ } & {
1209
+ record_type: z.ZodLiteral<"liability">;
1210
+ schema_version: z.ZodLiteral<1>;
1211
+ name: z.ZodString;
1212
+ liability_type: z.ZodString;
1213
+ amount: z.ZodNumber;
1214
+ currency: z.ZodString;
1215
+ due_at: z.ZodOptional<z.ZodString>;
1216
+ creditor: z.ZodOptional<z.ZodString>;
1217
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
1218
+ }, "strict", z.ZodTypeAny, {
1219
+ status: string;
1220
+ id: string;
1221
+ created_at: string;
1222
+ updated_at: string;
1223
+ created_by: string;
1224
+ circle_id: string;
1225
+ visibility: string;
1226
+ tags: string[];
1227
+ schema_version: 1;
1228
+ record_version: number;
1229
+ record_type: "liability";
1230
+ name: string;
1231
+ currency: string;
1232
+ linked_record_ids: string[];
1233
+ liability_type: string;
1234
+ amount: number;
1235
+ due_at?: string | undefined;
1236
+ creditor?: string | undefined;
1237
+ }, {
1238
+ status: string;
1239
+ id: string;
1240
+ created_at: string;
1241
+ updated_at: string;
1242
+ created_by: string;
1243
+ circle_id: string;
1244
+ visibility: string;
1245
+ tags: string[];
1246
+ schema_version: 1;
1247
+ record_version: number;
1248
+ record_type: "liability";
1249
+ name: string;
1250
+ currency: string;
1251
+ linked_record_ids: string[];
1252
+ liability_type: string;
1253
+ amount: number;
1254
+ due_at?: string | undefined;
1255
+ creditor?: string | undefined;
1256
+ }>, z.ZodObject<{
1257
+ id: z.ZodString;
1258
+ created_at: z.ZodString;
1259
+ updated_at: z.ZodString;
1260
+ created_by: z.ZodString;
1261
+ circle_id: z.ZodString;
1262
+ visibility: z.ZodEnum<[string, ...string[]]>;
1263
+ tags: z.ZodArray<z.ZodString, "many">;
1264
+ status: z.ZodEnum<[string, ...string[]]>;
1265
+ record_version: z.ZodNumber;
1266
+ } & {
1267
+ record_type: z.ZodLiteral<"document">;
1268
+ schema_version: z.ZodLiteral<1>;
1269
+ title: z.ZodString;
1270
+ mime_type: z.ZodOptional<z.ZodString>;
1271
+ storage_reference: z.ZodString;
1272
+ checksum: z.ZodString;
1273
+ encryption_metadata: z.ZodObject<{
1274
+ algorithm: z.ZodString;
1275
+ key_id: z.ZodOptional<z.ZodString>;
1276
+ iv: z.ZodOptional<z.ZodString>;
1277
+ wrapped_key: z.ZodOptional<z.ZodString>;
1278
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1279
+ algorithm: z.ZodString;
1280
+ key_id: z.ZodOptional<z.ZodString>;
1281
+ iv: z.ZodOptional<z.ZodString>;
1282
+ wrapped_key: z.ZodOptional<z.ZodString>;
1283
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1284
+ algorithm: z.ZodString;
1285
+ key_id: z.ZodOptional<z.ZodString>;
1286
+ iv: z.ZodOptional<z.ZodString>;
1287
+ wrapped_key: z.ZodOptional<z.ZodString>;
1288
+ }, z.ZodTypeAny, "passthrough">>;
1289
+ linked_record_id: z.ZodString;
1290
+ }, "strict", z.ZodTypeAny, {
1291
+ status: string;
1292
+ id: string;
1293
+ created_at: string;
1294
+ updated_at: string;
1295
+ created_by: string;
1296
+ circle_id: string;
1297
+ visibility: string;
1298
+ tags: string[];
1299
+ schema_version: 1;
1300
+ record_version: number;
1301
+ record_type: "document";
1302
+ linked_record_id: string;
1303
+ title: string;
1304
+ storage_reference: string;
1305
+ checksum: string;
1306
+ encryption_metadata: {
1307
+ algorithm: string;
1308
+ key_id?: string | undefined;
1309
+ iv?: string | undefined;
1310
+ wrapped_key?: string | undefined;
1311
+ } & {
1312
+ [k: string]: unknown;
1313
+ };
1314
+ mime_type?: string | undefined;
1315
+ }, {
1316
+ status: string;
1317
+ id: string;
1318
+ created_at: string;
1319
+ updated_at: string;
1320
+ created_by: string;
1321
+ circle_id: string;
1322
+ visibility: string;
1323
+ tags: string[];
1324
+ schema_version: 1;
1325
+ record_version: number;
1326
+ record_type: "document";
1327
+ linked_record_id: string;
1328
+ title: string;
1329
+ storage_reference: string;
1330
+ checksum: string;
1331
+ encryption_metadata: {
1332
+ algorithm: string;
1333
+ key_id?: string | undefined;
1334
+ iv?: string | undefined;
1335
+ wrapped_key?: string | undefined;
1336
+ } & {
1337
+ [k: string]: unknown;
1338
+ };
1339
+ mime_type?: string | undefined;
1340
+ }>, z.ZodObject<{
1341
+ id: z.ZodString;
1342
+ created_at: z.ZodString;
1343
+ updated_at: z.ZodString;
1344
+ created_by: z.ZodString;
1345
+ circle_id: z.ZodString;
1346
+ visibility: z.ZodEnum<[string, ...string[]]>;
1347
+ tags: z.ZodArray<z.ZodString, "many">;
1348
+ status: z.ZodEnum<[string, ...string[]]>;
1349
+ record_version: z.ZodNumber;
1350
+ } & {
1351
+ record_type: z.ZodLiteral<"reminder">;
1352
+ schema_version: z.ZodLiteral<1>;
1353
+ title: z.ZodString;
1354
+ message: z.ZodOptional<z.ZodString>;
1355
+ remind_at: z.ZodString;
1356
+ recurrence: z.ZodEnum<[string, ...string[]]>;
1357
+ linked_record_id: z.ZodString;
1358
+ triggered_at: z.ZodOptional<z.ZodString>;
1359
+ }, "strict", z.ZodTypeAny, {
1360
+ status: string;
1361
+ id: string;
1362
+ created_at: string;
1363
+ updated_at: string;
1364
+ created_by: string;
1365
+ circle_id: string;
1366
+ visibility: string;
1367
+ tags: string[];
1368
+ schema_version: 1;
1369
+ record_version: number;
1370
+ record_type: "reminder";
1371
+ linked_record_id: string;
1372
+ title: string;
1373
+ remind_at: string;
1374
+ recurrence: string;
1375
+ message?: string | undefined;
1376
+ triggered_at?: string | undefined;
1377
+ }, {
1378
+ status: string;
1379
+ id: string;
1380
+ created_at: string;
1381
+ updated_at: string;
1382
+ created_by: string;
1383
+ circle_id: string;
1384
+ visibility: string;
1385
+ tags: string[];
1386
+ schema_version: 1;
1387
+ record_version: number;
1388
+ record_type: "reminder";
1389
+ linked_record_id: string;
1390
+ title: string;
1391
+ remind_at: string;
1392
+ recurrence: string;
1393
+ message?: string | undefined;
1394
+ triggered_at?: string | undefined;
1395
+ }>]>;
1396
+ previous_record_version: z.ZodNumber;
1397
+ changed_fields: z.ZodArray<z.ZodString, "many">;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ record: {
1400
+ status: string;
1401
+ id: string;
1402
+ created_at: string;
1403
+ updated_at: string;
1404
+ created_by: string;
1405
+ circle_id: string;
1406
+ visibility: string;
1407
+ tags: string[];
1408
+ schema_version: 1;
1409
+ record_version: number;
1410
+ record_type: "circle";
1411
+ name: string;
1412
+ slug: string;
1413
+ member_ids: string[];
1414
+ description?: string | undefined;
1415
+ } | {
1416
+ status: string;
1417
+ id: string;
1418
+ created_at: string;
1419
+ updated_at: string;
1420
+ created_by: string;
1421
+ circle_id: string;
1422
+ visibility: string;
1423
+ tags: string[];
1424
+ schema_version: 1;
1425
+ record_version: number;
1426
+ record_type: "user";
1427
+ display_name: string;
1428
+ email?: string | undefined;
1429
+ public_key?: string | undefined;
1430
+ locale?: string | undefined;
1431
+ } | {
1432
+ status: string;
1433
+ id: string;
1434
+ created_at: string;
1435
+ updated_at: string;
1436
+ created_by: string;
1437
+ circle_id: string;
1438
+ visibility: string;
1439
+ tags: string[];
1440
+ schema_version: 1;
1441
+ record_version: number;
1442
+ record_type: "policy";
1443
+ name: string;
1444
+ kind: string;
1445
+ rules: Record<string, unknown>;
1446
+ effective_from?: string | undefined;
1447
+ effective_until?: string | undefined;
1448
+ linked_record_id?: string | undefined;
1449
+ } | {
1450
+ value: number;
1451
+ status: string;
1452
+ id: string;
1453
+ created_at: string;
1454
+ updated_at: string;
1455
+ created_by: string;
1456
+ circle_id: string;
1457
+ visibility: string;
1458
+ tags: string[];
1459
+ schema_version: 1;
1460
+ record_version: number;
1461
+ record_type: "asset";
1462
+ name: string;
1463
+ asset_type: string;
1464
+ currency: string;
1465
+ linked_record_ids: string[];
1466
+ acquired_at?: string | undefined;
1467
+ notes?: string | undefined;
1468
+ } | {
1469
+ status: string;
1470
+ id: string;
1471
+ created_at: string;
1472
+ updated_at: string;
1473
+ created_by: string;
1474
+ circle_id: string;
1475
+ visibility: string;
1476
+ tags: string[];
1477
+ schema_version: 1;
1478
+ record_version: number;
1479
+ record_type: "liability";
1480
+ name: string;
1481
+ currency: string;
1482
+ linked_record_ids: string[];
1483
+ liability_type: string;
1484
+ amount: number;
1485
+ due_at?: string | undefined;
1486
+ creditor?: string | undefined;
1487
+ } | {
1488
+ status: string;
1489
+ id: string;
1490
+ created_at: string;
1491
+ updated_at: string;
1492
+ created_by: string;
1493
+ circle_id: string;
1494
+ visibility: string;
1495
+ tags: string[];
1496
+ schema_version: 1;
1497
+ record_version: number;
1498
+ record_type: "document";
1499
+ linked_record_id: string;
1500
+ title: string;
1501
+ storage_reference: string;
1502
+ checksum: string;
1503
+ encryption_metadata: {
1504
+ algorithm: string;
1505
+ key_id?: string | undefined;
1506
+ iv?: string | undefined;
1507
+ wrapped_key?: string | undefined;
1508
+ } & {
1509
+ [k: string]: unknown;
1510
+ };
1511
+ mime_type?: string | undefined;
1512
+ } | {
1513
+ status: string;
1514
+ id: string;
1515
+ created_at: string;
1516
+ updated_at: string;
1517
+ created_by: string;
1518
+ circle_id: string;
1519
+ visibility: string;
1520
+ tags: string[];
1521
+ schema_version: 1;
1522
+ record_version: number;
1523
+ record_type: "reminder";
1524
+ linked_record_id: string;
1525
+ title: string;
1526
+ remind_at: string;
1527
+ recurrence: string;
1528
+ message?: string | undefined;
1529
+ triggered_at?: string | undefined;
1530
+ };
1531
+ previous_record_version: number;
1532
+ changed_fields: string[];
1533
+ }, {
1534
+ record: {
1535
+ status: string;
1536
+ id: string;
1537
+ created_at: string;
1538
+ updated_at: string;
1539
+ created_by: string;
1540
+ circle_id: string;
1541
+ visibility: string;
1542
+ tags: string[];
1543
+ schema_version: 1;
1544
+ record_version: number;
1545
+ record_type: "circle";
1546
+ name: string;
1547
+ slug: string;
1548
+ member_ids: string[];
1549
+ description?: string | undefined;
1550
+ } | {
1551
+ status: string;
1552
+ id: string;
1553
+ created_at: string;
1554
+ updated_at: string;
1555
+ created_by: string;
1556
+ circle_id: string;
1557
+ visibility: string;
1558
+ tags: string[];
1559
+ schema_version: 1;
1560
+ record_version: number;
1561
+ record_type: "user";
1562
+ display_name: string;
1563
+ email?: string | undefined;
1564
+ public_key?: string | undefined;
1565
+ locale?: string | undefined;
1566
+ } | {
1567
+ status: string;
1568
+ id: string;
1569
+ created_at: string;
1570
+ updated_at: string;
1571
+ created_by: string;
1572
+ circle_id: string;
1573
+ visibility: string;
1574
+ tags: string[];
1575
+ schema_version: 1;
1576
+ record_version: number;
1577
+ record_type: "policy";
1578
+ name: string;
1579
+ kind: string;
1580
+ rules: Record<string, unknown>;
1581
+ effective_from?: string | undefined;
1582
+ effective_until?: string | undefined;
1583
+ linked_record_id?: string | undefined;
1584
+ } | {
1585
+ value: number;
1586
+ status: string;
1587
+ id: string;
1588
+ created_at: string;
1589
+ updated_at: string;
1590
+ created_by: string;
1591
+ circle_id: string;
1592
+ visibility: string;
1593
+ tags: string[];
1594
+ schema_version: 1;
1595
+ record_version: number;
1596
+ record_type: "asset";
1597
+ name: string;
1598
+ asset_type: string;
1599
+ currency: string;
1600
+ linked_record_ids: string[];
1601
+ acquired_at?: string | undefined;
1602
+ notes?: string | undefined;
1603
+ } | {
1604
+ status: string;
1605
+ id: string;
1606
+ created_at: string;
1607
+ updated_at: string;
1608
+ created_by: string;
1609
+ circle_id: string;
1610
+ visibility: string;
1611
+ tags: string[];
1612
+ schema_version: 1;
1613
+ record_version: number;
1614
+ record_type: "liability";
1615
+ name: string;
1616
+ currency: string;
1617
+ linked_record_ids: string[];
1618
+ liability_type: string;
1619
+ amount: number;
1620
+ due_at?: string | undefined;
1621
+ creditor?: string | undefined;
1622
+ } | {
1623
+ status: string;
1624
+ id: string;
1625
+ created_at: string;
1626
+ updated_at: string;
1627
+ created_by: string;
1628
+ circle_id: string;
1629
+ visibility: string;
1630
+ tags: string[];
1631
+ schema_version: 1;
1632
+ record_version: number;
1633
+ record_type: "document";
1634
+ linked_record_id: string;
1635
+ title: string;
1636
+ storage_reference: string;
1637
+ checksum: string;
1638
+ encryption_metadata: {
1639
+ algorithm: string;
1640
+ key_id?: string | undefined;
1641
+ iv?: string | undefined;
1642
+ wrapped_key?: string | undefined;
1643
+ } & {
1644
+ [k: string]: unknown;
1645
+ };
1646
+ mime_type?: string | undefined;
1647
+ } | {
1648
+ status: string;
1649
+ id: string;
1650
+ created_at: string;
1651
+ updated_at: string;
1652
+ created_by: string;
1653
+ circle_id: string;
1654
+ visibility: string;
1655
+ tags: string[];
1656
+ schema_version: 1;
1657
+ record_version: number;
1658
+ record_type: "reminder";
1659
+ linked_record_id: string;
1660
+ title: string;
1661
+ remind_at: string;
1662
+ recurrence: string;
1663
+ message?: string | undefined;
1664
+ triggered_at?: string | undefined;
1665
+ };
1666
+ previous_record_version: number;
1667
+ changed_fields: string[];
1668
+ }>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ type: "record_updated";
1671
+ id: string;
1672
+ circle_id: string;
1673
+ schema_version: number;
1674
+ record_type: string;
1675
+ occurred_at: string;
1676
+ actor_id: string;
1677
+ record_id: string;
1678
+ payload: {
1679
+ record: {
1680
+ status: string;
1681
+ id: string;
1682
+ created_at: string;
1683
+ updated_at: string;
1684
+ created_by: string;
1685
+ circle_id: string;
1686
+ visibility: string;
1687
+ tags: string[];
1688
+ schema_version: 1;
1689
+ record_version: number;
1690
+ record_type: "circle";
1691
+ name: string;
1692
+ slug: string;
1693
+ member_ids: string[];
1694
+ description?: string | undefined;
1695
+ } | {
1696
+ status: string;
1697
+ id: string;
1698
+ created_at: string;
1699
+ updated_at: string;
1700
+ created_by: string;
1701
+ circle_id: string;
1702
+ visibility: string;
1703
+ tags: string[];
1704
+ schema_version: 1;
1705
+ record_version: number;
1706
+ record_type: "user";
1707
+ display_name: string;
1708
+ email?: string | undefined;
1709
+ public_key?: string | undefined;
1710
+ locale?: string | undefined;
1711
+ } | {
1712
+ status: string;
1713
+ id: string;
1714
+ created_at: string;
1715
+ updated_at: string;
1716
+ created_by: string;
1717
+ circle_id: string;
1718
+ visibility: string;
1719
+ tags: string[];
1720
+ schema_version: 1;
1721
+ record_version: number;
1722
+ record_type: "policy";
1723
+ name: string;
1724
+ kind: string;
1725
+ rules: Record<string, unknown>;
1726
+ effective_from?: string | undefined;
1727
+ effective_until?: string | undefined;
1728
+ linked_record_id?: string | undefined;
1729
+ } | {
1730
+ value: number;
1731
+ status: string;
1732
+ id: string;
1733
+ created_at: string;
1734
+ updated_at: string;
1735
+ created_by: string;
1736
+ circle_id: string;
1737
+ visibility: string;
1738
+ tags: string[];
1739
+ schema_version: 1;
1740
+ record_version: number;
1741
+ record_type: "asset";
1742
+ name: string;
1743
+ asset_type: string;
1744
+ currency: string;
1745
+ linked_record_ids: string[];
1746
+ acquired_at?: string | undefined;
1747
+ notes?: string | undefined;
1748
+ } | {
1749
+ status: string;
1750
+ id: string;
1751
+ created_at: string;
1752
+ updated_at: string;
1753
+ created_by: string;
1754
+ circle_id: string;
1755
+ visibility: string;
1756
+ tags: string[];
1757
+ schema_version: 1;
1758
+ record_version: number;
1759
+ record_type: "liability";
1760
+ name: string;
1761
+ currency: string;
1762
+ linked_record_ids: string[];
1763
+ liability_type: string;
1764
+ amount: number;
1765
+ due_at?: string | undefined;
1766
+ creditor?: string | undefined;
1767
+ } | {
1768
+ status: string;
1769
+ id: string;
1770
+ created_at: string;
1771
+ updated_at: string;
1772
+ created_by: string;
1773
+ circle_id: string;
1774
+ visibility: string;
1775
+ tags: string[];
1776
+ schema_version: 1;
1777
+ record_version: number;
1778
+ record_type: "document";
1779
+ linked_record_id: string;
1780
+ title: string;
1781
+ storage_reference: string;
1782
+ checksum: string;
1783
+ encryption_metadata: {
1784
+ algorithm: string;
1785
+ key_id?: string | undefined;
1786
+ iv?: string | undefined;
1787
+ wrapped_key?: string | undefined;
1788
+ } & {
1789
+ [k: string]: unknown;
1790
+ };
1791
+ mime_type?: string | undefined;
1792
+ } | {
1793
+ status: string;
1794
+ id: string;
1795
+ created_at: string;
1796
+ updated_at: string;
1797
+ created_by: string;
1798
+ circle_id: string;
1799
+ visibility: string;
1800
+ tags: string[];
1801
+ schema_version: 1;
1802
+ record_version: number;
1803
+ record_type: "reminder";
1804
+ linked_record_id: string;
1805
+ title: string;
1806
+ remind_at: string;
1807
+ recurrence: string;
1808
+ message?: string | undefined;
1809
+ triggered_at?: string | undefined;
1810
+ };
1811
+ previous_record_version: number;
1812
+ changed_fields: string[];
1813
+ };
1814
+ }, {
1815
+ type: "record_updated";
1816
+ id: string;
1817
+ circle_id: string;
1818
+ schema_version: number;
1819
+ record_type: string;
1820
+ occurred_at: string;
1821
+ actor_id: string;
1822
+ record_id: string;
1823
+ payload: {
1824
+ record: {
1825
+ status: string;
1826
+ id: string;
1827
+ created_at: string;
1828
+ updated_at: string;
1829
+ created_by: string;
1830
+ circle_id: string;
1831
+ visibility: string;
1832
+ tags: string[];
1833
+ schema_version: 1;
1834
+ record_version: number;
1835
+ record_type: "circle";
1836
+ name: string;
1837
+ slug: string;
1838
+ member_ids: string[];
1839
+ description?: string | undefined;
1840
+ } | {
1841
+ status: string;
1842
+ id: string;
1843
+ created_at: string;
1844
+ updated_at: string;
1845
+ created_by: string;
1846
+ circle_id: string;
1847
+ visibility: string;
1848
+ tags: string[];
1849
+ schema_version: 1;
1850
+ record_version: number;
1851
+ record_type: "user";
1852
+ display_name: string;
1853
+ email?: string | undefined;
1854
+ public_key?: string | undefined;
1855
+ locale?: string | undefined;
1856
+ } | {
1857
+ status: string;
1858
+ id: string;
1859
+ created_at: string;
1860
+ updated_at: string;
1861
+ created_by: string;
1862
+ circle_id: string;
1863
+ visibility: string;
1864
+ tags: string[];
1865
+ schema_version: 1;
1866
+ record_version: number;
1867
+ record_type: "policy";
1868
+ name: string;
1869
+ kind: string;
1870
+ rules: Record<string, unknown>;
1871
+ effective_from?: string | undefined;
1872
+ effective_until?: string | undefined;
1873
+ linked_record_id?: string | undefined;
1874
+ } | {
1875
+ value: number;
1876
+ status: string;
1877
+ id: string;
1878
+ created_at: string;
1879
+ updated_at: string;
1880
+ created_by: string;
1881
+ circle_id: string;
1882
+ visibility: string;
1883
+ tags: string[];
1884
+ schema_version: 1;
1885
+ record_version: number;
1886
+ record_type: "asset";
1887
+ name: string;
1888
+ asset_type: string;
1889
+ currency: string;
1890
+ linked_record_ids: string[];
1891
+ acquired_at?: string | undefined;
1892
+ notes?: string | undefined;
1893
+ } | {
1894
+ status: string;
1895
+ id: string;
1896
+ created_at: string;
1897
+ updated_at: string;
1898
+ created_by: string;
1899
+ circle_id: string;
1900
+ visibility: string;
1901
+ tags: string[];
1902
+ schema_version: 1;
1903
+ record_version: number;
1904
+ record_type: "liability";
1905
+ name: string;
1906
+ currency: string;
1907
+ linked_record_ids: string[];
1908
+ liability_type: string;
1909
+ amount: number;
1910
+ due_at?: string | undefined;
1911
+ creditor?: string | undefined;
1912
+ } | {
1913
+ status: string;
1914
+ id: string;
1915
+ created_at: string;
1916
+ updated_at: string;
1917
+ created_by: string;
1918
+ circle_id: string;
1919
+ visibility: string;
1920
+ tags: string[];
1921
+ schema_version: 1;
1922
+ record_version: number;
1923
+ record_type: "document";
1924
+ linked_record_id: string;
1925
+ title: string;
1926
+ storage_reference: string;
1927
+ checksum: string;
1928
+ encryption_metadata: {
1929
+ algorithm: string;
1930
+ key_id?: string | undefined;
1931
+ iv?: string | undefined;
1932
+ wrapped_key?: string | undefined;
1933
+ } & {
1934
+ [k: string]: unknown;
1935
+ };
1936
+ mime_type?: string | undefined;
1937
+ } | {
1938
+ status: string;
1939
+ id: string;
1940
+ created_at: string;
1941
+ updated_at: string;
1942
+ created_by: string;
1943
+ circle_id: string;
1944
+ visibility: string;
1945
+ tags: string[];
1946
+ schema_version: 1;
1947
+ record_version: number;
1948
+ record_type: "reminder";
1949
+ linked_record_id: string;
1950
+ title: string;
1951
+ remind_at: string;
1952
+ recurrence: string;
1953
+ message?: string | undefined;
1954
+ triggered_at?: string | undefined;
1955
+ };
1956
+ previous_record_version: number;
1957
+ changed_fields: string[];
1958
+ };
1959
+ }>;
1960
+ export declare const visibilityChangedEventSchema: z.ZodObject<{
1961
+ id: z.ZodString;
1962
+ occurred_at: z.ZodString;
1963
+ circle_id: z.ZodString;
1964
+ actor_id: z.ZodString;
1965
+ record_id: z.ZodString;
1966
+ record_type: z.ZodEnum<[string, ...string[]]>;
1967
+ schema_version: z.ZodNumber;
1968
+ } & {
1969
+ type: z.ZodLiteral<"visibility_changed">;
1970
+ payload: z.ZodObject<{
1971
+ previous_visibility: z.ZodEnum<[string, ...string[]]>;
1972
+ next_visibility: z.ZodEnum<[string, ...string[]]>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ previous_visibility: string;
1975
+ next_visibility: string;
1976
+ }, {
1977
+ previous_visibility: string;
1978
+ next_visibility: string;
1979
+ }>;
1980
+ }, "strip", z.ZodTypeAny, {
1981
+ type: "visibility_changed";
1982
+ id: string;
1983
+ circle_id: string;
1984
+ schema_version: number;
1985
+ record_type: string;
1986
+ occurred_at: string;
1987
+ actor_id: string;
1988
+ record_id: string;
1989
+ payload: {
1990
+ previous_visibility: string;
1991
+ next_visibility: string;
1992
+ };
1993
+ }, {
1994
+ type: "visibility_changed";
1995
+ id: string;
1996
+ circle_id: string;
1997
+ schema_version: number;
1998
+ record_type: string;
1999
+ occurred_at: string;
2000
+ actor_id: string;
2001
+ record_id: string;
2002
+ payload: {
2003
+ previous_visibility: string;
2004
+ next_visibility: string;
2005
+ };
2006
+ }>;
2007
+ export declare const documentLinkedEventSchema: z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ occurred_at: z.ZodString;
2010
+ circle_id: z.ZodString;
2011
+ actor_id: z.ZodString;
2012
+ record_id: z.ZodString;
2013
+ record_type: z.ZodEnum<[string, ...string[]]>;
2014
+ schema_version: z.ZodNumber;
2015
+ } & {
2016
+ type: z.ZodLiteral<"document_linked">;
2017
+ payload: z.ZodObject<{
2018
+ document_id: z.ZodString;
2019
+ linked_record_id: z.ZodString;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ linked_record_id: string;
2022
+ document_id: string;
2023
+ }, {
2024
+ linked_record_id: string;
2025
+ document_id: string;
2026
+ }>;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ type: "document_linked";
2029
+ id: string;
2030
+ circle_id: string;
2031
+ schema_version: number;
2032
+ record_type: string;
2033
+ occurred_at: string;
2034
+ actor_id: string;
2035
+ record_id: string;
2036
+ payload: {
2037
+ linked_record_id: string;
2038
+ document_id: string;
2039
+ };
2040
+ }, {
2041
+ type: "document_linked";
2042
+ id: string;
2043
+ circle_id: string;
2044
+ schema_version: number;
2045
+ record_type: string;
2046
+ occurred_at: string;
2047
+ actor_id: string;
2048
+ record_id: string;
2049
+ payload: {
2050
+ linked_record_id: string;
2051
+ document_id: string;
2052
+ };
2053
+ }>;
2054
+ export declare const reminderTriggeredEventSchema: z.ZodObject<{
2055
+ id: z.ZodString;
2056
+ occurred_at: z.ZodString;
2057
+ circle_id: z.ZodString;
2058
+ actor_id: z.ZodString;
2059
+ record_id: z.ZodString;
2060
+ record_type: z.ZodEnum<[string, ...string[]]>;
2061
+ schema_version: z.ZodNumber;
2062
+ } & {
2063
+ type: z.ZodLiteral<"reminder_triggered">;
2064
+ payload: z.ZodObject<{
2065
+ reminder_id: z.ZodString;
2066
+ linked_record_id: z.ZodString;
2067
+ remind_at: z.ZodString;
2068
+ }, "strip", z.ZodTypeAny, {
2069
+ linked_record_id: string;
2070
+ remind_at: string;
2071
+ reminder_id: string;
2072
+ }, {
2073
+ linked_record_id: string;
2074
+ remind_at: string;
2075
+ reminder_id: string;
2076
+ }>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ type: "reminder_triggered";
2079
+ id: string;
2080
+ circle_id: string;
2081
+ schema_version: number;
2082
+ record_type: string;
2083
+ occurred_at: string;
2084
+ actor_id: string;
2085
+ record_id: string;
2086
+ payload: {
2087
+ linked_record_id: string;
2088
+ remind_at: string;
2089
+ reminder_id: string;
2090
+ };
2091
+ }, {
2092
+ type: "reminder_triggered";
2093
+ id: string;
2094
+ circle_id: string;
2095
+ schema_version: number;
2096
+ record_type: string;
2097
+ occurred_at: string;
2098
+ actor_id: string;
2099
+ record_id: string;
2100
+ payload: {
2101
+ linked_record_id: string;
2102
+ remind_at: string;
2103
+ reminder_id: string;
2104
+ };
2105
+ }>;
2106
+ export declare const emberEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2107
+ id: z.ZodString;
2108
+ occurred_at: z.ZodString;
2109
+ circle_id: z.ZodString;
2110
+ actor_id: z.ZodString;
2111
+ record_id: z.ZodString;
2112
+ record_type: z.ZodEnum<[string, ...string[]]>;
2113
+ schema_version: z.ZodNumber;
2114
+ } & {
2115
+ type: z.ZodLiteral<"record_created">;
2116
+ payload: z.ZodObject<{
2117
+ record: z.ZodDiscriminatedUnion<"record_type", [z.ZodObject<{
2118
+ id: z.ZodString;
2119
+ created_at: z.ZodString;
2120
+ updated_at: z.ZodString;
2121
+ created_by: z.ZodString;
2122
+ circle_id: z.ZodString;
2123
+ visibility: z.ZodEnum<[string, ...string[]]>;
2124
+ tags: z.ZodArray<z.ZodString, "many">;
2125
+ status: z.ZodEnum<[string, ...string[]]>;
2126
+ record_version: z.ZodNumber;
2127
+ } & {
2128
+ record_type: z.ZodLiteral<"circle">;
2129
+ schema_version: z.ZodLiteral<1>;
2130
+ name: z.ZodString;
2131
+ slug: z.ZodString;
2132
+ description: z.ZodOptional<z.ZodString>;
2133
+ member_ids: z.ZodArray<z.ZodString, "many">;
2134
+ }, "strict", z.ZodTypeAny, {
2135
+ status: string;
2136
+ id: string;
2137
+ created_at: string;
2138
+ updated_at: string;
2139
+ created_by: string;
2140
+ circle_id: string;
2141
+ visibility: string;
2142
+ tags: string[];
2143
+ schema_version: 1;
2144
+ record_version: number;
2145
+ record_type: "circle";
2146
+ name: string;
2147
+ slug: string;
2148
+ member_ids: string[];
2149
+ description?: string | undefined;
2150
+ }, {
2151
+ status: string;
2152
+ id: string;
2153
+ created_at: string;
2154
+ updated_at: string;
2155
+ created_by: string;
2156
+ circle_id: string;
2157
+ visibility: string;
2158
+ tags: string[];
2159
+ schema_version: 1;
2160
+ record_version: number;
2161
+ record_type: "circle";
2162
+ name: string;
2163
+ slug: string;
2164
+ member_ids: string[];
2165
+ description?: string | undefined;
2166
+ }>, z.ZodObject<{
2167
+ id: z.ZodString;
2168
+ created_at: z.ZodString;
2169
+ updated_at: z.ZodString;
2170
+ created_by: z.ZodString;
2171
+ circle_id: z.ZodString;
2172
+ visibility: z.ZodEnum<[string, ...string[]]>;
2173
+ tags: z.ZodArray<z.ZodString, "many">;
2174
+ status: z.ZodEnum<[string, ...string[]]>;
2175
+ record_version: z.ZodNumber;
2176
+ } & {
2177
+ record_type: z.ZodLiteral<"user">;
2178
+ schema_version: z.ZodLiteral<1>;
2179
+ display_name: z.ZodString;
2180
+ email: z.ZodOptional<z.ZodString>;
2181
+ public_key: z.ZodOptional<z.ZodString>;
2182
+ locale: z.ZodOptional<z.ZodString>;
2183
+ }, "strict", z.ZodTypeAny, {
2184
+ status: string;
2185
+ id: string;
2186
+ created_at: string;
2187
+ updated_at: string;
2188
+ created_by: string;
2189
+ circle_id: string;
2190
+ visibility: string;
2191
+ tags: string[];
2192
+ schema_version: 1;
2193
+ record_version: number;
2194
+ record_type: "user";
2195
+ display_name: string;
2196
+ email?: string | undefined;
2197
+ public_key?: string | undefined;
2198
+ locale?: string | undefined;
2199
+ }, {
2200
+ status: string;
2201
+ id: string;
2202
+ created_at: string;
2203
+ updated_at: string;
2204
+ created_by: string;
2205
+ circle_id: string;
2206
+ visibility: string;
2207
+ tags: string[];
2208
+ schema_version: 1;
2209
+ record_version: number;
2210
+ record_type: "user";
2211
+ display_name: string;
2212
+ email?: string | undefined;
2213
+ public_key?: string | undefined;
2214
+ locale?: string | undefined;
2215
+ }>, z.ZodObject<{
2216
+ id: z.ZodString;
2217
+ created_at: z.ZodString;
2218
+ updated_at: z.ZodString;
2219
+ created_by: z.ZodString;
2220
+ circle_id: z.ZodString;
2221
+ visibility: z.ZodEnum<[string, ...string[]]>;
2222
+ tags: z.ZodArray<z.ZodString, "many">;
2223
+ status: z.ZodEnum<[string, ...string[]]>;
2224
+ record_version: z.ZodNumber;
2225
+ } & {
2226
+ record_type: z.ZodLiteral<"policy">;
2227
+ schema_version: z.ZodLiteral<1>;
2228
+ name: z.ZodString;
2229
+ kind: z.ZodEnum<[string, ...string[]]>;
2230
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2231
+ effective_from: z.ZodOptional<z.ZodString>;
2232
+ effective_until: z.ZodOptional<z.ZodString>;
2233
+ linked_record_id: z.ZodOptional<z.ZodString>;
2234
+ }, "strict", z.ZodTypeAny, {
2235
+ status: string;
2236
+ id: string;
2237
+ created_at: string;
2238
+ updated_at: string;
2239
+ created_by: string;
2240
+ circle_id: string;
2241
+ visibility: string;
2242
+ tags: string[];
2243
+ schema_version: 1;
2244
+ record_version: number;
2245
+ record_type: "policy";
2246
+ name: string;
2247
+ kind: string;
2248
+ rules: Record<string, unknown>;
2249
+ effective_from?: string | undefined;
2250
+ effective_until?: string | undefined;
2251
+ linked_record_id?: string | undefined;
2252
+ }, {
2253
+ status: string;
2254
+ id: string;
2255
+ created_at: string;
2256
+ updated_at: string;
2257
+ created_by: string;
2258
+ circle_id: string;
2259
+ visibility: string;
2260
+ tags: string[];
2261
+ schema_version: 1;
2262
+ record_version: number;
2263
+ record_type: "policy";
2264
+ name: string;
2265
+ kind: string;
2266
+ rules: Record<string, unknown>;
2267
+ effective_from?: string | undefined;
2268
+ effective_until?: string | undefined;
2269
+ linked_record_id?: string | undefined;
2270
+ }>, z.ZodObject<{
2271
+ id: z.ZodString;
2272
+ created_at: z.ZodString;
2273
+ updated_at: z.ZodString;
2274
+ created_by: z.ZodString;
2275
+ circle_id: z.ZodString;
2276
+ visibility: z.ZodEnum<[string, ...string[]]>;
2277
+ tags: z.ZodArray<z.ZodString, "many">;
2278
+ status: z.ZodEnum<[string, ...string[]]>;
2279
+ record_version: z.ZodNumber;
2280
+ } & {
2281
+ record_type: z.ZodLiteral<"asset">;
2282
+ schema_version: z.ZodLiteral<1>;
2283
+ name: z.ZodString;
2284
+ asset_type: z.ZodString;
2285
+ value: z.ZodNumber;
2286
+ currency: z.ZodString;
2287
+ acquired_at: z.ZodOptional<z.ZodString>;
2288
+ notes: z.ZodOptional<z.ZodString>;
2289
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
2290
+ }, "strict", z.ZodTypeAny, {
2291
+ value: number;
2292
+ status: string;
2293
+ id: string;
2294
+ created_at: string;
2295
+ updated_at: string;
2296
+ created_by: string;
2297
+ circle_id: string;
2298
+ visibility: string;
2299
+ tags: string[];
2300
+ schema_version: 1;
2301
+ record_version: number;
2302
+ record_type: "asset";
2303
+ name: string;
2304
+ asset_type: string;
2305
+ currency: string;
2306
+ linked_record_ids: string[];
2307
+ acquired_at?: string | undefined;
2308
+ notes?: string | undefined;
2309
+ }, {
2310
+ value: number;
2311
+ status: string;
2312
+ id: string;
2313
+ created_at: string;
2314
+ updated_at: string;
2315
+ created_by: string;
2316
+ circle_id: string;
2317
+ visibility: string;
2318
+ tags: string[];
2319
+ schema_version: 1;
2320
+ record_version: number;
2321
+ record_type: "asset";
2322
+ name: string;
2323
+ asset_type: string;
2324
+ currency: string;
2325
+ linked_record_ids: string[];
2326
+ acquired_at?: string | undefined;
2327
+ notes?: string | undefined;
2328
+ }>, z.ZodObject<{
2329
+ id: z.ZodString;
2330
+ created_at: z.ZodString;
2331
+ updated_at: z.ZodString;
2332
+ created_by: z.ZodString;
2333
+ circle_id: z.ZodString;
2334
+ visibility: z.ZodEnum<[string, ...string[]]>;
2335
+ tags: z.ZodArray<z.ZodString, "many">;
2336
+ status: z.ZodEnum<[string, ...string[]]>;
2337
+ record_version: z.ZodNumber;
2338
+ } & {
2339
+ record_type: z.ZodLiteral<"liability">;
2340
+ schema_version: z.ZodLiteral<1>;
2341
+ name: z.ZodString;
2342
+ liability_type: z.ZodString;
2343
+ amount: z.ZodNumber;
2344
+ currency: z.ZodString;
2345
+ due_at: z.ZodOptional<z.ZodString>;
2346
+ creditor: z.ZodOptional<z.ZodString>;
2347
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
2348
+ }, "strict", z.ZodTypeAny, {
2349
+ status: string;
2350
+ id: string;
2351
+ created_at: string;
2352
+ updated_at: string;
2353
+ created_by: string;
2354
+ circle_id: string;
2355
+ visibility: string;
2356
+ tags: string[];
2357
+ schema_version: 1;
2358
+ record_version: number;
2359
+ record_type: "liability";
2360
+ name: string;
2361
+ currency: string;
2362
+ linked_record_ids: string[];
2363
+ liability_type: string;
2364
+ amount: number;
2365
+ due_at?: string | undefined;
2366
+ creditor?: string | undefined;
2367
+ }, {
2368
+ status: string;
2369
+ id: string;
2370
+ created_at: string;
2371
+ updated_at: string;
2372
+ created_by: string;
2373
+ circle_id: string;
2374
+ visibility: string;
2375
+ tags: string[];
2376
+ schema_version: 1;
2377
+ record_version: number;
2378
+ record_type: "liability";
2379
+ name: string;
2380
+ currency: string;
2381
+ linked_record_ids: string[];
2382
+ liability_type: string;
2383
+ amount: number;
2384
+ due_at?: string | undefined;
2385
+ creditor?: string | undefined;
2386
+ }>, z.ZodObject<{
2387
+ id: z.ZodString;
2388
+ created_at: z.ZodString;
2389
+ updated_at: z.ZodString;
2390
+ created_by: z.ZodString;
2391
+ circle_id: z.ZodString;
2392
+ visibility: z.ZodEnum<[string, ...string[]]>;
2393
+ tags: z.ZodArray<z.ZodString, "many">;
2394
+ status: z.ZodEnum<[string, ...string[]]>;
2395
+ record_version: z.ZodNumber;
2396
+ } & {
2397
+ record_type: z.ZodLiteral<"document">;
2398
+ schema_version: z.ZodLiteral<1>;
2399
+ title: z.ZodString;
2400
+ mime_type: z.ZodOptional<z.ZodString>;
2401
+ storage_reference: z.ZodString;
2402
+ checksum: z.ZodString;
2403
+ encryption_metadata: z.ZodObject<{
2404
+ algorithm: z.ZodString;
2405
+ key_id: z.ZodOptional<z.ZodString>;
2406
+ iv: z.ZodOptional<z.ZodString>;
2407
+ wrapped_key: z.ZodOptional<z.ZodString>;
2408
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2409
+ algorithm: z.ZodString;
2410
+ key_id: z.ZodOptional<z.ZodString>;
2411
+ iv: z.ZodOptional<z.ZodString>;
2412
+ wrapped_key: z.ZodOptional<z.ZodString>;
2413
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2414
+ algorithm: z.ZodString;
2415
+ key_id: z.ZodOptional<z.ZodString>;
2416
+ iv: z.ZodOptional<z.ZodString>;
2417
+ wrapped_key: z.ZodOptional<z.ZodString>;
2418
+ }, z.ZodTypeAny, "passthrough">>;
2419
+ linked_record_id: z.ZodString;
2420
+ }, "strict", z.ZodTypeAny, {
2421
+ status: string;
2422
+ id: string;
2423
+ created_at: string;
2424
+ updated_at: string;
2425
+ created_by: string;
2426
+ circle_id: string;
2427
+ visibility: string;
2428
+ tags: string[];
2429
+ schema_version: 1;
2430
+ record_version: number;
2431
+ record_type: "document";
2432
+ linked_record_id: string;
2433
+ title: string;
2434
+ storage_reference: string;
2435
+ checksum: string;
2436
+ encryption_metadata: {
2437
+ algorithm: string;
2438
+ key_id?: string | undefined;
2439
+ iv?: string | undefined;
2440
+ wrapped_key?: string | undefined;
2441
+ } & {
2442
+ [k: string]: unknown;
2443
+ };
2444
+ mime_type?: string | undefined;
2445
+ }, {
2446
+ status: string;
2447
+ id: string;
2448
+ created_at: string;
2449
+ updated_at: string;
2450
+ created_by: string;
2451
+ circle_id: string;
2452
+ visibility: string;
2453
+ tags: string[];
2454
+ schema_version: 1;
2455
+ record_version: number;
2456
+ record_type: "document";
2457
+ linked_record_id: string;
2458
+ title: string;
2459
+ storage_reference: string;
2460
+ checksum: string;
2461
+ encryption_metadata: {
2462
+ algorithm: string;
2463
+ key_id?: string | undefined;
2464
+ iv?: string | undefined;
2465
+ wrapped_key?: string | undefined;
2466
+ } & {
2467
+ [k: string]: unknown;
2468
+ };
2469
+ mime_type?: string | undefined;
2470
+ }>, z.ZodObject<{
2471
+ id: z.ZodString;
2472
+ created_at: z.ZodString;
2473
+ updated_at: z.ZodString;
2474
+ created_by: z.ZodString;
2475
+ circle_id: z.ZodString;
2476
+ visibility: z.ZodEnum<[string, ...string[]]>;
2477
+ tags: z.ZodArray<z.ZodString, "many">;
2478
+ status: z.ZodEnum<[string, ...string[]]>;
2479
+ record_version: z.ZodNumber;
2480
+ } & {
2481
+ record_type: z.ZodLiteral<"reminder">;
2482
+ schema_version: z.ZodLiteral<1>;
2483
+ title: z.ZodString;
2484
+ message: z.ZodOptional<z.ZodString>;
2485
+ remind_at: z.ZodString;
2486
+ recurrence: z.ZodEnum<[string, ...string[]]>;
2487
+ linked_record_id: z.ZodString;
2488
+ triggered_at: z.ZodOptional<z.ZodString>;
2489
+ }, "strict", z.ZodTypeAny, {
2490
+ status: string;
2491
+ id: string;
2492
+ created_at: string;
2493
+ updated_at: string;
2494
+ created_by: string;
2495
+ circle_id: string;
2496
+ visibility: string;
2497
+ tags: string[];
2498
+ schema_version: 1;
2499
+ record_version: number;
2500
+ record_type: "reminder";
2501
+ linked_record_id: string;
2502
+ title: string;
2503
+ remind_at: string;
2504
+ recurrence: string;
2505
+ message?: string | undefined;
2506
+ triggered_at?: string | undefined;
2507
+ }, {
2508
+ status: string;
2509
+ id: string;
2510
+ created_at: string;
2511
+ updated_at: string;
2512
+ created_by: string;
2513
+ circle_id: string;
2514
+ visibility: string;
2515
+ tags: string[];
2516
+ schema_version: 1;
2517
+ record_version: number;
2518
+ record_type: "reminder";
2519
+ linked_record_id: string;
2520
+ title: string;
2521
+ remind_at: string;
2522
+ recurrence: string;
2523
+ message?: string | undefined;
2524
+ triggered_at?: string | undefined;
2525
+ }>]>;
2526
+ }, "strip", z.ZodTypeAny, {
2527
+ record: {
2528
+ status: string;
2529
+ id: string;
2530
+ created_at: string;
2531
+ updated_at: string;
2532
+ created_by: string;
2533
+ circle_id: string;
2534
+ visibility: string;
2535
+ tags: string[];
2536
+ schema_version: 1;
2537
+ record_version: number;
2538
+ record_type: "circle";
2539
+ name: string;
2540
+ slug: string;
2541
+ member_ids: string[];
2542
+ description?: string | undefined;
2543
+ } | {
2544
+ status: string;
2545
+ id: string;
2546
+ created_at: string;
2547
+ updated_at: string;
2548
+ created_by: string;
2549
+ circle_id: string;
2550
+ visibility: string;
2551
+ tags: string[];
2552
+ schema_version: 1;
2553
+ record_version: number;
2554
+ record_type: "user";
2555
+ display_name: string;
2556
+ email?: string | undefined;
2557
+ public_key?: string | undefined;
2558
+ locale?: string | undefined;
2559
+ } | {
2560
+ status: string;
2561
+ id: string;
2562
+ created_at: string;
2563
+ updated_at: string;
2564
+ created_by: string;
2565
+ circle_id: string;
2566
+ visibility: string;
2567
+ tags: string[];
2568
+ schema_version: 1;
2569
+ record_version: number;
2570
+ record_type: "policy";
2571
+ name: string;
2572
+ kind: string;
2573
+ rules: Record<string, unknown>;
2574
+ effective_from?: string | undefined;
2575
+ effective_until?: string | undefined;
2576
+ linked_record_id?: string | undefined;
2577
+ } | {
2578
+ value: number;
2579
+ status: string;
2580
+ id: string;
2581
+ created_at: string;
2582
+ updated_at: string;
2583
+ created_by: string;
2584
+ circle_id: string;
2585
+ visibility: string;
2586
+ tags: string[];
2587
+ schema_version: 1;
2588
+ record_version: number;
2589
+ record_type: "asset";
2590
+ name: string;
2591
+ asset_type: string;
2592
+ currency: string;
2593
+ linked_record_ids: string[];
2594
+ acquired_at?: string | undefined;
2595
+ notes?: string | undefined;
2596
+ } | {
2597
+ status: string;
2598
+ id: string;
2599
+ created_at: string;
2600
+ updated_at: string;
2601
+ created_by: string;
2602
+ circle_id: string;
2603
+ visibility: string;
2604
+ tags: string[];
2605
+ schema_version: 1;
2606
+ record_version: number;
2607
+ record_type: "liability";
2608
+ name: string;
2609
+ currency: string;
2610
+ linked_record_ids: string[];
2611
+ liability_type: string;
2612
+ amount: number;
2613
+ due_at?: string | undefined;
2614
+ creditor?: string | undefined;
2615
+ } | {
2616
+ status: string;
2617
+ id: string;
2618
+ created_at: string;
2619
+ updated_at: string;
2620
+ created_by: string;
2621
+ circle_id: string;
2622
+ visibility: string;
2623
+ tags: string[];
2624
+ schema_version: 1;
2625
+ record_version: number;
2626
+ record_type: "document";
2627
+ linked_record_id: string;
2628
+ title: string;
2629
+ storage_reference: string;
2630
+ checksum: string;
2631
+ encryption_metadata: {
2632
+ algorithm: string;
2633
+ key_id?: string | undefined;
2634
+ iv?: string | undefined;
2635
+ wrapped_key?: string | undefined;
2636
+ } & {
2637
+ [k: string]: unknown;
2638
+ };
2639
+ mime_type?: string | undefined;
2640
+ } | {
2641
+ status: string;
2642
+ id: string;
2643
+ created_at: string;
2644
+ updated_at: string;
2645
+ created_by: string;
2646
+ circle_id: string;
2647
+ visibility: string;
2648
+ tags: string[];
2649
+ schema_version: 1;
2650
+ record_version: number;
2651
+ record_type: "reminder";
2652
+ linked_record_id: string;
2653
+ title: string;
2654
+ remind_at: string;
2655
+ recurrence: string;
2656
+ message?: string | undefined;
2657
+ triggered_at?: string | undefined;
2658
+ };
2659
+ }, {
2660
+ record: {
2661
+ status: string;
2662
+ id: string;
2663
+ created_at: string;
2664
+ updated_at: string;
2665
+ created_by: string;
2666
+ circle_id: string;
2667
+ visibility: string;
2668
+ tags: string[];
2669
+ schema_version: 1;
2670
+ record_version: number;
2671
+ record_type: "circle";
2672
+ name: string;
2673
+ slug: string;
2674
+ member_ids: string[];
2675
+ description?: string | undefined;
2676
+ } | {
2677
+ status: string;
2678
+ id: string;
2679
+ created_at: string;
2680
+ updated_at: string;
2681
+ created_by: string;
2682
+ circle_id: string;
2683
+ visibility: string;
2684
+ tags: string[];
2685
+ schema_version: 1;
2686
+ record_version: number;
2687
+ record_type: "user";
2688
+ display_name: string;
2689
+ email?: string | undefined;
2690
+ public_key?: string | undefined;
2691
+ locale?: string | undefined;
2692
+ } | {
2693
+ status: string;
2694
+ id: string;
2695
+ created_at: string;
2696
+ updated_at: string;
2697
+ created_by: string;
2698
+ circle_id: string;
2699
+ visibility: string;
2700
+ tags: string[];
2701
+ schema_version: 1;
2702
+ record_version: number;
2703
+ record_type: "policy";
2704
+ name: string;
2705
+ kind: string;
2706
+ rules: Record<string, unknown>;
2707
+ effective_from?: string | undefined;
2708
+ effective_until?: string | undefined;
2709
+ linked_record_id?: string | undefined;
2710
+ } | {
2711
+ value: number;
2712
+ status: string;
2713
+ id: string;
2714
+ created_at: string;
2715
+ updated_at: string;
2716
+ created_by: string;
2717
+ circle_id: string;
2718
+ visibility: string;
2719
+ tags: string[];
2720
+ schema_version: 1;
2721
+ record_version: number;
2722
+ record_type: "asset";
2723
+ name: string;
2724
+ asset_type: string;
2725
+ currency: string;
2726
+ linked_record_ids: string[];
2727
+ acquired_at?: string | undefined;
2728
+ notes?: string | undefined;
2729
+ } | {
2730
+ status: string;
2731
+ id: string;
2732
+ created_at: string;
2733
+ updated_at: string;
2734
+ created_by: string;
2735
+ circle_id: string;
2736
+ visibility: string;
2737
+ tags: string[];
2738
+ schema_version: 1;
2739
+ record_version: number;
2740
+ record_type: "liability";
2741
+ name: string;
2742
+ currency: string;
2743
+ linked_record_ids: string[];
2744
+ liability_type: string;
2745
+ amount: number;
2746
+ due_at?: string | undefined;
2747
+ creditor?: string | undefined;
2748
+ } | {
2749
+ status: string;
2750
+ id: string;
2751
+ created_at: string;
2752
+ updated_at: string;
2753
+ created_by: string;
2754
+ circle_id: string;
2755
+ visibility: string;
2756
+ tags: string[];
2757
+ schema_version: 1;
2758
+ record_version: number;
2759
+ record_type: "document";
2760
+ linked_record_id: string;
2761
+ title: string;
2762
+ storage_reference: string;
2763
+ checksum: string;
2764
+ encryption_metadata: {
2765
+ algorithm: string;
2766
+ key_id?: string | undefined;
2767
+ iv?: string | undefined;
2768
+ wrapped_key?: string | undefined;
2769
+ } & {
2770
+ [k: string]: unknown;
2771
+ };
2772
+ mime_type?: string | undefined;
2773
+ } | {
2774
+ status: string;
2775
+ id: string;
2776
+ created_at: string;
2777
+ updated_at: string;
2778
+ created_by: string;
2779
+ circle_id: string;
2780
+ visibility: string;
2781
+ tags: string[];
2782
+ schema_version: 1;
2783
+ record_version: number;
2784
+ record_type: "reminder";
2785
+ linked_record_id: string;
2786
+ title: string;
2787
+ remind_at: string;
2788
+ recurrence: string;
2789
+ message?: string | undefined;
2790
+ triggered_at?: string | undefined;
2791
+ };
2792
+ }>;
2793
+ }, "strip", z.ZodTypeAny, {
2794
+ type: "record_created";
2795
+ id: string;
2796
+ circle_id: string;
2797
+ schema_version: number;
2798
+ record_type: string;
2799
+ occurred_at: string;
2800
+ actor_id: string;
2801
+ record_id: string;
2802
+ payload: {
2803
+ record: {
2804
+ status: string;
2805
+ id: string;
2806
+ created_at: string;
2807
+ updated_at: string;
2808
+ created_by: string;
2809
+ circle_id: string;
2810
+ visibility: string;
2811
+ tags: string[];
2812
+ schema_version: 1;
2813
+ record_version: number;
2814
+ record_type: "circle";
2815
+ name: string;
2816
+ slug: string;
2817
+ member_ids: string[];
2818
+ description?: string | undefined;
2819
+ } | {
2820
+ status: string;
2821
+ id: string;
2822
+ created_at: string;
2823
+ updated_at: string;
2824
+ created_by: string;
2825
+ circle_id: string;
2826
+ visibility: string;
2827
+ tags: string[];
2828
+ schema_version: 1;
2829
+ record_version: number;
2830
+ record_type: "user";
2831
+ display_name: string;
2832
+ email?: string | undefined;
2833
+ public_key?: string | undefined;
2834
+ locale?: string | undefined;
2835
+ } | {
2836
+ status: string;
2837
+ id: string;
2838
+ created_at: string;
2839
+ updated_at: string;
2840
+ created_by: string;
2841
+ circle_id: string;
2842
+ visibility: string;
2843
+ tags: string[];
2844
+ schema_version: 1;
2845
+ record_version: number;
2846
+ record_type: "policy";
2847
+ name: string;
2848
+ kind: string;
2849
+ rules: Record<string, unknown>;
2850
+ effective_from?: string | undefined;
2851
+ effective_until?: string | undefined;
2852
+ linked_record_id?: string | undefined;
2853
+ } | {
2854
+ value: number;
2855
+ status: string;
2856
+ id: string;
2857
+ created_at: string;
2858
+ updated_at: string;
2859
+ created_by: string;
2860
+ circle_id: string;
2861
+ visibility: string;
2862
+ tags: string[];
2863
+ schema_version: 1;
2864
+ record_version: number;
2865
+ record_type: "asset";
2866
+ name: string;
2867
+ asset_type: string;
2868
+ currency: string;
2869
+ linked_record_ids: string[];
2870
+ acquired_at?: string | undefined;
2871
+ notes?: string | undefined;
2872
+ } | {
2873
+ status: string;
2874
+ id: string;
2875
+ created_at: string;
2876
+ updated_at: string;
2877
+ created_by: string;
2878
+ circle_id: string;
2879
+ visibility: string;
2880
+ tags: string[];
2881
+ schema_version: 1;
2882
+ record_version: number;
2883
+ record_type: "liability";
2884
+ name: string;
2885
+ currency: string;
2886
+ linked_record_ids: string[];
2887
+ liability_type: string;
2888
+ amount: number;
2889
+ due_at?: string | undefined;
2890
+ creditor?: string | undefined;
2891
+ } | {
2892
+ status: string;
2893
+ id: string;
2894
+ created_at: string;
2895
+ updated_at: string;
2896
+ created_by: string;
2897
+ circle_id: string;
2898
+ visibility: string;
2899
+ tags: string[];
2900
+ schema_version: 1;
2901
+ record_version: number;
2902
+ record_type: "document";
2903
+ linked_record_id: string;
2904
+ title: string;
2905
+ storage_reference: string;
2906
+ checksum: string;
2907
+ encryption_metadata: {
2908
+ algorithm: string;
2909
+ key_id?: string | undefined;
2910
+ iv?: string | undefined;
2911
+ wrapped_key?: string | undefined;
2912
+ } & {
2913
+ [k: string]: unknown;
2914
+ };
2915
+ mime_type?: string | undefined;
2916
+ } | {
2917
+ status: string;
2918
+ id: string;
2919
+ created_at: string;
2920
+ updated_at: string;
2921
+ created_by: string;
2922
+ circle_id: string;
2923
+ visibility: string;
2924
+ tags: string[];
2925
+ schema_version: 1;
2926
+ record_version: number;
2927
+ record_type: "reminder";
2928
+ linked_record_id: string;
2929
+ title: string;
2930
+ remind_at: string;
2931
+ recurrence: string;
2932
+ message?: string | undefined;
2933
+ triggered_at?: string | undefined;
2934
+ };
2935
+ };
2936
+ }, {
2937
+ type: "record_created";
2938
+ id: string;
2939
+ circle_id: string;
2940
+ schema_version: number;
2941
+ record_type: string;
2942
+ occurred_at: string;
2943
+ actor_id: string;
2944
+ record_id: string;
2945
+ payload: {
2946
+ record: {
2947
+ status: string;
2948
+ id: string;
2949
+ created_at: string;
2950
+ updated_at: string;
2951
+ created_by: string;
2952
+ circle_id: string;
2953
+ visibility: string;
2954
+ tags: string[];
2955
+ schema_version: 1;
2956
+ record_version: number;
2957
+ record_type: "circle";
2958
+ name: string;
2959
+ slug: string;
2960
+ member_ids: string[];
2961
+ description?: string | undefined;
2962
+ } | {
2963
+ status: string;
2964
+ id: string;
2965
+ created_at: string;
2966
+ updated_at: string;
2967
+ created_by: string;
2968
+ circle_id: string;
2969
+ visibility: string;
2970
+ tags: string[];
2971
+ schema_version: 1;
2972
+ record_version: number;
2973
+ record_type: "user";
2974
+ display_name: string;
2975
+ email?: string | undefined;
2976
+ public_key?: string | undefined;
2977
+ locale?: string | undefined;
2978
+ } | {
2979
+ status: string;
2980
+ id: string;
2981
+ created_at: string;
2982
+ updated_at: string;
2983
+ created_by: string;
2984
+ circle_id: string;
2985
+ visibility: string;
2986
+ tags: string[];
2987
+ schema_version: 1;
2988
+ record_version: number;
2989
+ record_type: "policy";
2990
+ name: string;
2991
+ kind: string;
2992
+ rules: Record<string, unknown>;
2993
+ effective_from?: string | undefined;
2994
+ effective_until?: string | undefined;
2995
+ linked_record_id?: string | undefined;
2996
+ } | {
2997
+ value: number;
2998
+ status: string;
2999
+ id: string;
3000
+ created_at: string;
3001
+ updated_at: string;
3002
+ created_by: string;
3003
+ circle_id: string;
3004
+ visibility: string;
3005
+ tags: string[];
3006
+ schema_version: 1;
3007
+ record_version: number;
3008
+ record_type: "asset";
3009
+ name: string;
3010
+ asset_type: string;
3011
+ currency: string;
3012
+ linked_record_ids: string[];
3013
+ acquired_at?: string | undefined;
3014
+ notes?: string | undefined;
3015
+ } | {
3016
+ status: string;
3017
+ id: string;
3018
+ created_at: string;
3019
+ updated_at: string;
3020
+ created_by: string;
3021
+ circle_id: string;
3022
+ visibility: string;
3023
+ tags: string[];
3024
+ schema_version: 1;
3025
+ record_version: number;
3026
+ record_type: "liability";
3027
+ name: string;
3028
+ currency: string;
3029
+ linked_record_ids: string[];
3030
+ liability_type: string;
3031
+ amount: number;
3032
+ due_at?: string | undefined;
3033
+ creditor?: string | undefined;
3034
+ } | {
3035
+ status: string;
3036
+ id: string;
3037
+ created_at: string;
3038
+ updated_at: string;
3039
+ created_by: string;
3040
+ circle_id: string;
3041
+ visibility: string;
3042
+ tags: string[];
3043
+ schema_version: 1;
3044
+ record_version: number;
3045
+ record_type: "document";
3046
+ linked_record_id: string;
3047
+ title: string;
3048
+ storage_reference: string;
3049
+ checksum: string;
3050
+ encryption_metadata: {
3051
+ algorithm: string;
3052
+ key_id?: string | undefined;
3053
+ iv?: string | undefined;
3054
+ wrapped_key?: string | undefined;
3055
+ } & {
3056
+ [k: string]: unknown;
3057
+ };
3058
+ mime_type?: string | undefined;
3059
+ } | {
3060
+ status: string;
3061
+ id: string;
3062
+ created_at: string;
3063
+ updated_at: string;
3064
+ created_by: string;
3065
+ circle_id: string;
3066
+ visibility: string;
3067
+ tags: string[];
3068
+ schema_version: 1;
3069
+ record_version: number;
3070
+ record_type: "reminder";
3071
+ linked_record_id: string;
3072
+ title: string;
3073
+ remind_at: string;
3074
+ recurrence: string;
3075
+ message?: string | undefined;
3076
+ triggered_at?: string | undefined;
3077
+ };
3078
+ };
3079
+ }>, z.ZodObject<{
3080
+ id: z.ZodString;
3081
+ occurred_at: z.ZodString;
3082
+ circle_id: z.ZodString;
3083
+ actor_id: z.ZodString;
3084
+ record_id: z.ZodString;
3085
+ record_type: z.ZodEnum<[string, ...string[]]>;
3086
+ schema_version: z.ZodNumber;
3087
+ } & {
3088
+ type: z.ZodLiteral<"record_updated">;
3089
+ payload: z.ZodObject<{
3090
+ record: z.ZodDiscriminatedUnion<"record_type", [z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ created_at: z.ZodString;
3093
+ updated_at: z.ZodString;
3094
+ created_by: z.ZodString;
3095
+ circle_id: z.ZodString;
3096
+ visibility: z.ZodEnum<[string, ...string[]]>;
3097
+ tags: z.ZodArray<z.ZodString, "many">;
3098
+ status: z.ZodEnum<[string, ...string[]]>;
3099
+ record_version: z.ZodNumber;
3100
+ } & {
3101
+ record_type: z.ZodLiteral<"circle">;
3102
+ schema_version: z.ZodLiteral<1>;
3103
+ name: z.ZodString;
3104
+ slug: z.ZodString;
3105
+ description: z.ZodOptional<z.ZodString>;
3106
+ member_ids: z.ZodArray<z.ZodString, "many">;
3107
+ }, "strict", z.ZodTypeAny, {
3108
+ status: string;
3109
+ id: string;
3110
+ created_at: string;
3111
+ updated_at: string;
3112
+ created_by: string;
3113
+ circle_id: string;
3114
+ visibility: string;
3115
+ tags: string[];
3116
+ schema_version: 1;
3117
+ record_version: number;
3118
+ record_type: "circle";
3119
+ name: string;
3120
+ slug: string;
3121
+ member_ids: string[];
3122
+ description?: string | undefined;
3123
+ }, {
3124
+ status: string;
3125
+ id: string;
3126
+ created_at: string;
3127
+ updated_at: string;
3128
+ created_by: string;
3129
+ circle_id: string;
3130
+ visibility: string;
3131
+ tags: string[];
3132
+ schema_version: 1;
3133
+ record_version: number;
3134
+ record_type: "circle";
3135
+ name: string;
3136
+ slug: string;
3137
+ member_ids: string[];
3138
+ description?: string | undefined;
3139
+ }>, z.ZodObject<{
3140
+ id: z.ZodString;
3141
+ created_at: z.ZodString;
3142
+ updated_at: z.ZodString;
3143
+ created_by: z.ZodString;
3144
+ circle_id: z.ZodString;
3145
+ visibility: z.ZodEnum<[string, ...string[]]>;
3146
+ tags: z.ZodArray<z.ZodString, "many">;
3147
+ status: z.ZodEnum<[string, ...string[]]>;
3148
+ record_version: z.ZodNumber;
3149
+ } & {
3150
+ record_type: z.ZodLiteral<"user">;
3151
+ schema_version: z.ZodLiteral<1>;
3152
+ display_name: z.ZodString;
3153
+ email: z.ZodOptional<z.ZodString>;
3154
+ public_key: z.ZodOptional<z.ZodString>;
3155
+ locale: z.ZodOptional<z.ZodString>;
3156
+ }, "strict", z.ZodTypeAny, {
3157
+ status: string;
3158
+ id: string;
3159
+ created_at: string;
3160
+ updated_at: string;
3161
+ created_by: string;
3162
+ circle_id: string;
3163
+ visibility: string;
3164
+ tags: string[];
3165
+ schema_version: 1;
3166
+ record_version: number;
3167
+ record_type: "user";
3168
+ display_name: string;
3169
+ email?: string | undefined;
3170
+ public_key?: string | undefined;
3171
+ locale?: string | undefined;
3172
+ }, {
3173
+ status: string;
3174
+ id: string;
3175
+ created_at: string;
3176
+ updated_at: string;
3177
+ created_by: string;
3178
+ circle_id: string;
3179
+ visibility: string;
3180
+ tags: string[];
3181
+ schema_version: 1;
3182
+ record_version: number;
3183
+ record_type: "user";
3184
+ display_name: string;
3185
+ email?: string | undefined;
3186
+ public_key?: string | undefined;
3187
+ locale?: string | undefined;
3188
+ }>, z.ZodObject<{
3189
+ id: z.ZodString;
3190
+ created_at: z.ZodString;
3191
+ updated_at: z.ZodString;
3192
+ created_by: z.ZodString;
3193
+ circle_id: z.ZodString;
3194
+ visibility: z.ZodEnum<[string, ...string[]]>;
3195
+ tags: z.ZodArray<z.ZodString, "many">;
3196
+ status: z.ZodEnum<[string, ...string[]]>;
3197
+ record_version: z.ZodNumber;
3198
+ } & {
3199
+ record_type: z.ZodLiteral<"policy">;
3200
+ schema_version: z.ZodLiteral<1>;
3201
+ name: z.ZodString;
3202
+ kind: z.ZodEnum<[string, ...string[]]>;
3203
+ rules: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3204
+ effective_from: z.ZodOptional<z.ZodString>;
3205
+ effective_until: z.ZodOptional<z.ZodString>;
3206
+ linked_record_id: z.ZodOptional<z.ZodString>;
3207
+ }, "strict", z.ZodTypeAny, {
3208
+ status: string;
3209
+ id: string;
3210
+ created_at: string;
3211
+ updated_at: string;
3212
+ created_by: string;
3213
+ circle_id: string;
3214
+ visibility: string;
3215
+ tags: string[];
3216
+ schema_version: 1;
3217
+ record_version: number;
3218
+ record_type: "policy";
3219
+ name: string;
3220
+ kind: string;
3221
+ rules: Record<string, unknown>;
3222
+ effective_from?: string | undefined;
3223
+ effective_until?: string | undefined;
3224
+ linked_record_id?: string | undefined;
3225
+ }, {
3226
+ status: string;
3227
+ id: string;
3228
+ created_at: string;
3229
+ updated_at: string;
3230
+ created_by: string;
3231
+ circle_id: string;
3232
+ visibility: string;
3233
+ tags: string[];
3234
+ schema_version: 1;
3235
+ record_version: number;
3236
+ record_type: "policy";
3237
+ name: string;
3238
+ kind: string;
3239
+ rules: Record<string, unknown>;
3240
+ effective_from?: string | undefined;
3241
+ effective_until?: string | undefined;
3242
+ linked_record_id?: string | undefined;
3243
+ }>, z.ZodObject<{
3244
+ id: z.ZodString;
3245
+ created_at: z.ZodString;
3246
+ updated_at: z.ZodString;
3247
+ created_by: z.ZodString;
3248
+ circle_id: z.ZodString;
3249
+ visibility: z.ZodEnum<[string, ...string[]]>;
3250
+ tags: z.ZodArray<z.ZodString, "many">;
3251
+ status: z.ZodEnum<[string, ...string[]]>;
3252
+ record_version: z.ZodNumber;
3253
+ } & {
3254
+ record_type: z.ZodLiteral<"asset">;
3255
+ schema_version: z.ZodLiteral<1>;
3256
+ name: z.ZodString;
3257
+ asset_type: z.ZodString;
3258
+ value: z.ZodNumber;
3259
+ currency: z.ZodString;
3260
+ acquired_at: z.ZodOptional<z.ZodString>;
3261
+ notes: z.ZodOptional<z.ZodString>;
3262
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
3263
+ }, "strict", z.ZodTypeAny, {
3264
+ value: number;
3265
+ status: string;
3266
+ id: string;
3267
+ created_at: string;
3268
+ updated_at: string;
3269
+ created_by: string;
3270
+ circle_id: string;
3271
+ visibility: string;
3272
+ tags: string[];
3273
+ schema_version: 1;
3274
+ record_version: number;
3275
+ record_type: "asset";
3276
+ name: string;
3277
+ asset_type: string;
3278
+ currency: string;
3279
+ linked_record_ids: string[];
3280
+ acquired_at?: string | undefined;
3281
+ notes?: string | undefined;
3282
+ }, {
3283
+ value: number;
3284
+ status: string;
3285
+ id: string;
3286
+ created_at: string;
3287
+ updated_at: string;
3288
+ created_by: string;
3289
+ circle_id: string;
3290
+ visibility: string;
3291
+ tags: string[];
3292
+ schema_version: 1;
3293
+ record_version: number;
3294
+ record_type: "asset";
3295
+ name: string;
3296
+ asset_type: string;
3297
+ currency: string;
3298
+ linked_record_ids: string[];
3299
+ acquired_at?: string | undefined;
3300
+ notes?: string | undefined;
3301
+ }>, z.ZodObject<{
3302
+ id: z.ZodString;
3303
+ created_at: z.ZodString;
3304
+ updated_at: z.ZodString;
3305
+ created_by: z.ZodString;
3306
+ circle_id: z.ZodString;
3307
+ visibility: z.ZodEnum<[string, ...string[]]>;
3308
+ tags: z.ZodArray<z.ZodString, "many">;
3309
+ status: z.ZodEnum<[string, ...string[]]>;
3310
+ record_version: z.ZodNumber;
3311
+ } & {
3312
+ record_type: z.ZodLiteral<"liability">;
3313
+ schema_version: z.ZodLiteral<1>;
3314
+ name: z.ZodString;
3315
+ liability_type: z.ZodString;
3316
+ amount: z.ZodNumber;
3317
+ currency: z.ZodString;
3318
+ due_at: z.ZodOptional<z.ZodString>;
3319
+ creditor: z.ZodOptional<z.ZodString>;
3320
+ linked_record_ids: z.ZodArray<z.ZodString, "many">;
3321
+ }, "strict", z.ZodTypeAny, {
3322
+ status: string;
3323
+ id: string;
3324
+ created_at: string;
3325
+ updated_at: string;
3326
+ created_by: string;
3327
+ circle_id: string;
3328
+ visibility: string;
3329
+ tags: string[];
3330
+ schema_version: 1;
3331
+ record_version: number;
3332
+ record_type: "liability";
3333
+ name: string;
3334
+ currency: string;
3335
+ linked_record_ids: string[];
3336
+ liability_type: string;
3337
+ amount: number;
3338
+ due_at?: string | undefined;
3339
+ creditor?: string | undefined;
3340
+ }, {
3341
+ status: string;
3342
+ id: string;
3343
+ created_at: string;
3344
+ updated_at: string;
3345
+ created_by: string;
3346
+ circle_id: string;
3347
+ visibility: string;
3348
+ tags: string[];
3349
+ schema_version: 1;
3350
+ record_version: number;
3351
+ record_type: "liability";
3352
+ name: string;
3353
+ currency: string;
3354
+ linked_record_ids: string[];
3355
+ liability_type: string;
3356
+ amount: number;
3357
+ due_at?: string | undefined;
3358
+ creditor?: string | undefined;
3359
+ }>, z.ZodObject<{
3360
+ id: z.ZodString;
3361
+ created_at: z.ZodString;
3362
+ updated_at: z.ZodString;
3363
+ created_by: z.ZodString;
3364
+ circle_id: z.ZodString;
3365
+ visibility: z.ZodEnum<[string, ...string[]]>;
3366
+ tags: z.ZodArray<z.ZodString, "many">;
3367
+ status: z.ZodEnum<[string, ...string[]]>;
3368
+ record_version: z.ZodNumber;
3369
+ } & {
3370
+ record_type: z.ZodLiteral<"document">;
3371
+ schema_version: z.ZodLiteral<1>;
3372
+ title: z.ZodString;
3373
+ mime_type: z.ZodOptional<z.ZodString>;
3374
+ storage_reference: z.ZodString;
3375
+ checksum: z.ZodString;
3376
+ encryption_metadata: z.ZodObject<{
3377
+ algorithm: z.ZodString;
3378
+ key_id: z.ZodOptional<z.ZodString>;
3379
+ iv: z.ZodOptional<z.ZodString>;
3380
+ wrapped_key: z.ZodOptional<z.ZodString>;
3381
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3382
+ algorithm: z.ZodString;
3383
+ key_id: z.ZodOptional<z.ZodString>;
3384
+ iv: z.ZodOptional<z.ZodString>;
3385
+ wrapped_key: z.ZodOptional<z.ZodString>;
3386
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3387
+ algorithm: z.ZodString;
3388
+ key_id: z.ZodOptional<z.ZodString>;
3389
+ iv: z.ZodOptional<z.ZodString>;
3390
+ wrapped_key: z.ZodOptional<z.ZodString>;
3391
+ }, z.ZodTypeAny, "passthrough">>;
3392
+ linked_record_id: z.ZodString;
3393
+ }, "strict", z.ZodTypeAny, {
3394
+ status: string;
3395
+ id: string;
3396
+ created_at: string;
3397
+ updated_at: string;
3398
+ created_by: string;
3399
+ circle_id: string;
3400
+ visibility: string;
3401
+ tags: string[];
3402
+ schema_version: 1;
3403
+ record_version: number;
3404
+ record_type: "document";
3405
+ linked_record_id: string;
3406
+ title: string;
3407
+ storage_reference: string;
3408
+ checksum: string;
3409
+ encryption_metadata: {
3410
+ algorithm: string;
3411
+ key_id?: string | undefined;
3412
+ iv?: string | undefined;
3413
+ wrapped_key?: string | undefined;
3414
+ } & {
3415
+ [k: string]: unknown;
3416
+ };
3417
+ mime_type?: string | undefined;
3418
+ }, {
3419
+ status: string;
3420
+ id: string;
3421
+ created_at: string;
3422
+ updated_at: string;
3423
+ created_by: string;
3424
+ circle_id: string;
3425
+ visibility: string;
3426
+ tags: string[];
3427
+ schema_version: 1;
3428
+ record_version: number;
3429
+ record_type: "document";
3430
+ linked_record_id: string;
3431
+ title: string;
3432
+ storage_reference: string;
3433
+ checksum: string;
3434
+ encryption_metadata: {
3435
+ algorithm: string;
3436
+ key_id?: string | undefined;
3437
+ iv?: string | undefined;
3438
+ wrapped_key?: string | undefined;
3439
+ } & {
3440
+ [k: string]: unknown;
3441
+ };
3442
+ mime_type?: string | undefined;
3443
+ }>, z.ZodObject<{
3444
+ id: z.ZodString;
3445
+ created_at: z.ZodString;
3446
+ updated_at: z.ZodString;
3447
+ created_by: z.ZodString;
3448
+ circle_id: z.ZodString;
3449
+ visibility: z.ZodEnum<[string, ...string[]]>;
3450
+ tags: z.ZodArray<z.ZodString, "many">;
3451
+ status: z.ZodEnum<[string, ...string[]]>;
3452
+ record_version: z.ZodNumber;
3453
+ } & {
3454
+ record_type: z.ZodLiteral<"reminder">;
3455
+ schema_version: z.ZodLiteral<1>;
3456
+ title: z.ZodString;
3457
+ message: z.ZodOptional<z.ZodString>;
3458
+ remind_at: z.ZodString;
3459
+ recurrence: z.ZodEnum<[string, ...string[]]>;
3460
+ linked_record_id: z.ZodString;
3461
+ triggered_at: z.ZodOptional<z.ZodString>;
3462
+ }, "strict", z.ZodTypeAny, {
3463
+ status: string;
3464
+ id: string;
3465
+ created_at: string;
3466
+ updated_at: string;
3467
+ created_by: string;
3468
+ circle_id: string;
3469
+ visibility: string;
3470
+ tags: string[];
3471
+ schema_version: 1;
3472
+ record_version: number;
3473
+ record_type: "reminder";
3474
+ linked_record_id: string;
3475
+ title: string;
3476
+ remind_at: string;
3477
+ recurrence: string;
3478
+ message?: string | undefined;
3479
+ triggered_at?: string | undefined;
3480
+ }, {
3481
+ status: string;
3482
+ id: string;
3483
+ created_at: string;
3484
+ updated_at: string;
3485
+ created_by: string;
3486
+ circle_id: string;
3487
+ visibility: string;
3488
+ tags: string[];
3489
+ schema_version: 1;
3490
+ record_version: number;
3491
+ record_type: "reminder";
3492
+ linked_record_id: string;
3493
+ title: string;
3494
+ remind_at: string;
3495
+ recurrence: string;
3496
+ message?: string | undefined;
3497
+ triggered_at?: string | undefined;
3498
+ }>]>;
3499
+ previous_record_version: z.ZodNumber;
3500
+ changed_fields: z.ZodArray<z.ZodString, "many">;
3501
+ }, "strip", z.ZodTypeAny, {
3502
+ record: {
3503
+ status: string;
3504
+ id: string;
3505
+ created_at: string;
3506
+ updated_at: string;
3507
+ created_by: string;
3508
+ circle_id: string;
3509
+ visibility: string;
3510
+ tags: string[];
3511
+ schema_version: 1;
3512
+ record_version: number;
3513
+ record_type: "circle";
3514
+ name: string;
3515
+ slug: string;
3516
+ member_ids: string[];
3517
+ description?: string | undefined;
3518
+ } | {
3519
+ status: string;
3520
+ id: string;
3521
+ created_at: string;
3522
+ updated_at: string;
3523
+ created_by: string;
3524
+ circle_id: string;
3525
+ visibility: string;
3526
+ tags: string[];
3527
+ schema_version: 1;
3528
+ record_version: number;
3529
+ record_type: "user";
3530
+ display_name: string;
3531
+ email?: string | undefined;
3532
+ public_key?: string | undefined;
3533
+ locale?: string | undefined;
3534
+ } | {
3535
+ status: string;
3536
+ id: string;
3537
+ created_at: string;
3538
+ updated_at: string;
3539
+ created_by: string;
3540
+ circle_id: string;
3541
+ visibility: string;
3542
+ tags: string[];
3543
+ schema_version: 1;
3544
+ record_version: number;
3545
+ record_type: "policy";
3546
+ name: string;
3547
+ kind: string;
3548
+ rules: Record<string, unknown>;
3549
+ effective_from?: string | undefined;
3550
+ effective_until?: string | undefined;
3551
+ linked_record_id?: string | undefined;
3552
+ } | {
3553
+ value: number;
3554
+ status: string;
3555
+ id: string;
3556
+ created_at: string;
3557
+ updated_at: string;
3558
+ created_by: string;
3559
+ circle_id: string;
3560
+ visibility: string;
3561
+ tags: string[];
3562
+ schema_version: 1;
3563
+ record_version: number;
3564
+ record_type: "asset";
3565
+ name: string;
3566
+ asset_type: string;
3567
+ currency: string;
3568
+ linked_record_ids: string[];
3569
+ acquired_at?: string | undefined;
3570
+ notes?: string | undefined;
3571
+ } | {
3572
+ status: string;
3573
+ id: string;
3574
+ created_at: string;
3575
+ updated_at: string;
3576
+ created_by: string;
3577
+ circle_id: string;
3578
+ visibility: string;
3579
+ tags: string[];
3580
+ schema_version: 1;
3581
+ record_version: number;
3582
+ record_type: "liability";
3583
+ name: string;
3584
+ currency: string;
3585
+ linked_record_ids: string[];
3586
+ liability_type: string;
3587
+ amount: number;
3588
+ due_at?: string | undefined;
3589
+ creditor?: string | undefined;
3590
+ } | {
3591
+ status: string;
3592
+ id: string;
3593
+ created_at: string;
3594
+ updated_at: string;
3595
+ created_by: string;
3596
+ circle_id: string;
3597
+ visibility: string;
3598
+ tags: string[];
3599
+ schema_version: 1;
3600
+ record_version: number;
3601
+ record_type: "document";
3602
+ linked_record_id: string;
3603
+ title: string;
3604
+ storage_reference: string;
3605
+ checksum: string;
3606
+ encryption_metadata: {
3607
+ algorithm: string;
3608
+ key_id?: string | undefined;
3609
+ iv?: string | undefined;
3610
+ wrapped_key?: string | undefined;
3611
+ } & {
3612
+ [k: string]: unknown;
3613
+ };
3614
+ mime_type?: string | undefined;
3615
+ } | {
3616
+ status: string;
3617
+ id: string;
3618
+ created_at: string;
3619
+ updated_at: string;
3620
+ created_by: string;
3621
+ circle_id: string;
3622
+ visibility: string;
3623
+ tags: string[];
3624
+ schema_version: 1;
3625
+ record_version: number;
3626
+ record_type: "reminder";
3627
+ linked_record_id: string;
3628
+ title: string;
3629
+ remind_at: string;
3630
+ recurrence: string;
3631
+ message?: string | undefined;
3632
+ triggered_at?: string | undefined;
3633
+ };
3634
+ previous_record_version: number;
3635
+ changed_fields: string[];
3636
+ }, {
3637
+ record: {
3638
+ status: string;
3639
+ id: string;
3640
+ created_at: string;
3641
+ updated_at: string;
3642
+ created_by: string;
3643
+ circle_id: string;
3644
+ visibility: string;
3645
+ tags: string[];
3646
+ schema_version: 1;
3647
+ record_version: number;
3648
+ record_type: "circle";
3649
+ name: string;
3650
+ slug: string;
3651
+ member_ids: string[];
3652
+ description?: string | undefined;
3653
+ } | {
3654
+ status: string;
3655
+ id: string;
3656
+ created_at: string;
3657
+ updated_at: string;
3658
+ created_by: string;
3659
+ circle_id: string;
3660
+ visibility: string;
3661
+ tags: string[];
3662
+ schema_version: 1;
3663
+ record_version: number;
3664
+ record_type: "user";
3665
+ display_name: string;
3666
+ email?: string | undefined;
3667
+ public_key?: string | undefined;
3668
+ locale?: string | undefined;
3669
+ } | {
3670
+ status: string;
3671
+ id: string;
3672
+ created_at: string;
3673
+ updated_at: string;
3674
+ created_by: string;
3675
+ circle_id: string;
3676
+ visibility: string;
3677
+ tags: string[];
3678
+ schema_version: 1;
3679
+ record_version: number;
3680
+ record_type: "policy";
3681
+ name: string;
3682
+ kind: string;
3683
+ rules: Record<string, unknown>;
3684
+ effective_from?: string | undefined;
3685
+ effective_until?: string | undefined;
3686
+ linked_record_id?: string | undefined;
3687
+ } | {
3688
+ value: number;
3689
+ status: string;
3690
+ id: string;
3691
+ created_at: string;
3692
+ updated_at: string;
3693
+ created_by: string;
3694
+ circle_id: string;
3695
+ visibility: string;
3696
+ tags: string[];
3697
+ schema_version: 1;
3698
+ record_version: number;
3699
+ record_type: "asset";
3700
+ name: string;
3701
+ asset_type: string;
3702
+ currency: string;
3703
+ linked_record_ids: string[];
3704
+ acquired_at?: string | undefined;
3705
+ notes?: string | undefined;
3706
+ } | {
3707
+ status: string;
3708
+ id: string;
3709
+ created_at: string;
3710
+ updated_at: string;
3711
+ created_by: string;
3712
+ circle_id: string;
3713
+ visibility: string;
3714
+ tags: string[];
3715
+ schema_version: 1;
3716
+ record_version: number;
3717
+ record_type: "liability";
3718
+ name: string;
3719
+ currency: string;
3720
+ linked_record_ids: string[];
3721
+ liability_type: string;
3722
+ amount: number;
3723
+ due_at?: string | undefined;
3724
+ creditor?: string | undefined;
3725
+ } | {
3726
+ status: string;
3727
+ id: string;
3728
+ created_at: string;
3729
+ updated_at: string;
3730
+ created_by: string;
3731
+ circle_id: string;
3732
+ visibility: string;
3733
+ tags: string[];
3734
+ schema_version: 1;
3735
+ record_version: number;
3736
+ record_type: "document";
3737
+ linked_record_id: string;
3738
+ title: string;
3739
+ storage_reference: string;
3740
+ checksum: string;
3741
+ encryption_metadata: {
3742
+ algorithm: string;
3743
+ key_id?: string | undefined;
3744
+ iv?: string | undefined;
3745
+ wrapped_key?: string | undefined;
3746
+ } & {
3747
+ [k: string]: unknown;
3748
+ };
3749
+ mime_type?: string | undefined;
3750
+ } | {
3751
+ status: string;
3752
+ id: string;
3753
+ created_at: string;
3754
+ updated_at: string;
3755
+ created_by: string;
3756
+ circle_id: string;
3757
+ visibility: string;
3758
+ tags: string[];
3759
+ schema_version: 1;
3760
+ record_version: number;
3761
+ record_type: "reminder";
3762
+ linked_record_id: string;
3763
+ title: string;
3764
+ remind_at: string;
3765
+ recurrence: string;
3766
+ message?: string | undefined;
3767
+ triggered_at?: string | undefined;
3768
+ };
3769
+ previous_record_version: number;
3770
+ changed_fields: string[];
3771
+ }>;
3772
+ }, "strip", z.ZodTypeAny, {
3773
+ type: "record_updated";
3774
+ id: string;
3775
+ circle_id: string;
3776
+ schema_version: number;
3777
+ record_type: string;
3778
+ occurred_at: string;
3779
+ actor_id: string;
3780
+ record_id: string;
3781
+ payload: {
3782
+ record: {
3783
+ status: string;
3784
+ id: string;
3785
+ created_at: string;
3786
+ updated_at: string;
3787
+ created_by: string;
3788
+ circle_id: string;
3789
+ visibility: string;
3790
+ tags: string[];
3791
+ schema_version: 1;
3792
+ record_version: number;
3793
+ record_type: "circle";
3794
+ name: string;
3795
+ slug: string;
3796
+ member_ids: string[];
3797
+ description?: string | undefined;
3798
+ } | {
3799
+ status: string;
3800
+ id: string;
3801
+ created_at: string;
3802
+ updated_at: string;
3803
+ created_by: string;
3804
+ circle_id: string;
3805
+ visibility: string;
3806
+ tags: string[];
3807
+ schema_version: 1;
3808
+ record_version: number;
3809
+ record_type: "user";
3810
+ display_name: string;
3811
+ email?: string | undefined;
3812
+ public_key?: string | undefined;
3813
+ locale?: string | undefined;
3814
+ } | {
3815
+ status: string;
3816
+ id: string;
3817
+ created_at: string;
3818
+ updated_at: string;
3819
+ created_by: string;
3820
+ circle_id: string;
3821
+ visibility: string;
3822
+ tags: string[];
3823
+ schema_version: 1;
3824
+ record_version: number;
3825
+ record_type: "policy";
3826
+ name: string;
3827
+ kind: string;
3828
+ rules: Record<string, unknown>;
3829
+ effective_from?: string | undefined;
3830
+ effective_until?: string | undefined;
3831
+ linked_record_id?: string | undefined;
3832
+ } | {
3833
+ value: number;
3834
+ status: string;
3835
+ id: string;
3836
+ created_at: string;
3837
+ updated_at: string;
3838
+ created_by: string;
3839
+ circle_id: string;
3840
+ visibility: string;
3841
+ tags: string[];
3842
+ schema_version: 1;
3843
+ record_version: number;
3844
+ record_type: "asset";
3845
+ name: string;
3846
+ asset_type: string;
3847
+ currency: string;
3848
+ linked_record_ids: string[];
3849
+ acquired_at?: string | undefined;
3850
+ notes?: string | undefined;
3851
+ } | {
3852
+ status: string;
3853
+ id: string;
3854
+ created_at: string;
3855
+ updated_at: string;
3856
+ created_by: string;
3857
+ circle_id: string;
3858
+ visibility: string;
3859
+ tags: string[];
3860
+ schema_version: 1;
3861
+ record_version: number;
3862
+ record_type: "liability";
3863
+ name: string;
3864
+ currency: string;
3865
+ linked_record_ids: string[];
3866
+ liability_type: string;
3867
+ amount: number;
3868
+ due_at?: string | undefined;
3869
+ creditor?: string | undefined;
3870
+ } | {
3871
+ status: string;
3872
+ id: string;
3873
+ created_at: string;
3874
+ updated_at: string;
3875
+ created_by: string;
3876
+ circle_id: string;
3877
+ visibility: string;
3878
+ tags: string[];
3879
+ schema_version: 1;
3880
+ record_version: number;
3881
+ record_type: "document";
3882
+ linked_record_id: string;
3883
+ title: string;
3884
+ storage_reference: string;
3885
+ checksum: string;
3886
+ encryption_metadata: {
3887
+ algorithm: string;
3888
+ key_id?: string | undefined;
3889
+ iv?: string | undefined;
3890
+ wrapped_key?: string | undefined;
3891
+ } & {
3892
+ [k: string]: unknown;
3893
+ };
3894
+ mime_type?: string | undefined;
3895
+ } | {
3896
+ status: string;
3897
+ id: string;
3898
+ created_at: string;
3899
+ updated_at: string;
3900
+ created_by: string;
3901
+ circle_id: string;
3902
+ visibility: string;
3903
+ tags: string[];
3904
+ schema_version: 1;
3905
+ record_version: number;
3906
+ record_type: "reminder";
3907
+ linked_record_id: string;
3908
+ title: string;
3909
+ remind_at: string;
3910
+ recurrence: string;
3911
+ message?: string | undefined;
3912
+ triggered_at?: string | undefined;
3913
+ };
3914
+ previous_record_version: number;
3915
+ changed_fields: string[];
3916
+ };
3917
+ }, {
3918
+ type: "record_updated";
3919
+ id: string;
3920
+ circle_id: string;
3921
+ schema_version: number;
3922
+ record_type: string;
3923
+ occurred_at: string;
3924
+ actor_id: string;
3925
+ record_id: string;
3926
+ payload: {
3927
+ record: {
3928
+ status: string;
3929
+ id: string;
3930
+ created_at: string;
3931
+ updated_at: string;
3932
+ created_by: string;
3933
+ circle_id: string;
3934
+ visibility: string;
3935
+ tags: string[];
3936
+ schema_version: 1;
3937
+ record_version: number;
3938
+ record_type: "circle";
3939
+ name: string;
3940
+ slug: string;
3941
+ member_ids: string[];
3942
+ description?: string | undefined;
3943
+ } | {
3944
+ status: string;
3945
+ id: string;
3946
+ created_at: string;
3947
+ updated_at: string;
3948
+ created_by: string;
3949
+ circle_id: string;
3950
+ visibility: string;
3951
+ tags: string[];
3952
+ schema_version: 1;
3953
+ record_version: number;
3954
+ record_type: "user";
3955
+ display_name: string;
3956
+ email?: string | undefined;
3957
+ public_key?: string | undefined;
3958
+ locale?: string | undefined;
3959
+ } | {
3960
+ status: string;
3961
+ id: string;
3962
+ created_at: string;
3963
+ updated_at: string;
3964
+ created_by: string;
3965
+ circle_id: string;
3966
+ visibility: string;
3967
+ tags: string[];
3968
+ schema_version: 1;
3969
+ record_version: number;
3970
+ record_type: "policy";
3971
+ name: string;
3972
+ kind: string;
3973
+ rules: Record<string, unknown>;
3974
+ effective_from?: string | undefined;
3975
+ effective_until?: string | undefined;
3976
+ linked_record_id?: string | undefined;
3977
+ } | {
3978
+ value: number;
3979
+ status: string;
3980
+ id: string;
3981
+ created_at: string;
3982
+ updated_at: string;
3983
+ created_by: string;
3984
+ circle_id: string;
3985
+ visibility: string;
3986
+ tags: string[];
3987
+ schema_version: 1;
3988
+ record_version: number;
3989
+ record_type: "asset";
3990
+ name: string;
3991
+ asset_type: string;
3992
+ currency: string;
3993
+ linked_record_ids: string[];
3994
+ acquired_at?: string | undefined;
3995
+ notes?: string | undefined;
3996
+ } | {
3997
+ status: string;
3998
+ id: string;
3999
+ created_at: string;
4000
+ updated_at: string;
4001
+ created_by: string;
4002
+ circle_id: string;
4003
+ visibility: string;
4004
+ tags: string[];
4005
+ schema_version: 1;
4006
+ record_version: number;
4007
+ record_type: "liability";
4008
+ name: string;
4009
+ currency: string;
4010
+ linked_record_ids: string[];
4011
+ liability_type: string;
4012
+ amount: number;
4013
+ due_at?: string | undefined;
4014
+ creditor?: string | undefined;
4015
+ } | {
4016
+ status: string;
4017
+ id: string;
4018
+ created_at: string;
4019
+ updated_at: string;
4020
+ created_by: string;
4021
+ circle_id: string;
4022
+ visibility: string;
4023
+ tags: string[];
4024
+ schema_version: 1;
4025
+ record_version: number;
4026
+ record_type: "document";
4027
+ linked_record_id: string;
4028
+ title: string;
4029
+ storage_reference: string;
4030
+ checksum: string;
4031
+ encryption_metadata: {
4032
+ algorithm: string;
4033
+ key_id?: string | undefined;
4034
+ iv?: string | undefined;
4035
+ wrapped_key?: string | undefined;
4036
+ } & {
4037
+ [k: string]: unknown;
4038
+ };
4039
+ mime_type?: string | undefined;
4040
+ } | {
4041
+ status: string;
4042
+ id: string;
4043
+ created_at: string;
4044
+ updated_at: string;
4045
+ created_by: string;
4046
+ circle_id: string;
4047
+ visibility: string;
4048
+ tags: string[];
4049
+ schema_version: 1;
4050
+ record_version: number;
4051
+ record_type: "reminder";
4052
+ linked_record_id: string;
4053
+ title: string;
4054
+ remind_at: string;
4055
+ recurrence: string;
4056
+ message?: string | undefined;
4057
+ triggered_at?: string | undefined;
4058
+ };
4059
+ previous_record_version: number;
4060
+ changed_fields: string[];
4061
+ };
4062
+ }>, z.ZodObject<{
4063
+ id: z.ZodString;
4064
+ occurred_at: z.ZodString;
4065
+ circle_id: z.ZodString;
4066
+ actor_id: z.ZodString;
4067
+ record_id: z.ZodString;
4068
+ record_type: z.ZodEnum<[string, ...string[]]>;
4069
+ schema_version: z.ZodNumber;
4070
+ } & {
4071
+ type: z.ZodLiteral<"visibility_changed">;
4072
+ payload: z.ZodObject<{
4073
+ previous_visibility: z.ZodEnum<[string, ...string[]]>;
4074
+ next_visibility: z.ZodEnum<[string, ...string[]]>;
4075
+ }, "strip", z.ZodTypeAny, {
4076
+ previous_visibility: string;
4077
+ next_visibility: string;
4078
+ }, {
4079
+ previous_visibility: string;
4080
+ next_visibility: string;
4081
+ }>;
4082
+ }, "strip", z.ZodTypeAny, {
4083
+ type: "visibility_changed";
4084
+ id: string;
4085
+ circle_id: string;
4086
+ schema_version: number;
4087
+ record_type: string;
4088
+ occurred_at: string;
4089
+ actor_id: string;
4090
+ record_id: string;
4091
+ payload: {
4092
+ previous_visibility: string;
4093
+ next_visibility: string;
4094
+ };
4095
+ }, {
4096
+ type: "visibility_changed";
4097
+ id: string;
4098
+ circle_id: string;
4099
+ schema_version: number;
4100
+ record_type: string;
4101
+ occurred_at: string;
4102
+ actor_id: string;
4103
+ record_id: string;
4104
+ payload: {
4105
+ previous_visibility: string;
4106
+ next_visibility: string;
4107
+ };
4108
+ }>, z.ZodObject<{
4109
+ id: z.ZodString;
4110
+ occurred_at: z.ZodString;
4111
+ circle_id: z.ZodString;
4112
+ actor_id: z.ZodString;
4113
+ record_id: z.ZodString;
4114
+ record_type: z.ZodEnum<[string, ...string[]]>;
4115
+ schema_version: z.ZodNumber;
4116
+ } & {
4117
+ type: z.ZodLiteral<"document_linked">;
4118
+ payload: z.ZodObject<{
4119
+ document_id: z.ZodString;
4120
+ linked_record_id: z.ZodString;
4121
+ }, "strip", z.ZodTypeAny, {
4122
+ linked_record_id: string;
4123
+ document_id: string;
4124
+ }, {
4125
+ linked_record_id: string;
4126
+ document_id: string;
4127
+ }>;
4128
+ }, "strip", z.ZodTypeAny, {
4129
+ type: "document_linked";
4130
+ id: string;
4131
+ circle_id: string;
4132
+ schema_version: number;
4133
+ record_type: string;
4134
+ occurred_at: string;
4135
+ actor_id: string;
4136
+ record_id: string;
4137
+ payload: {
4138
+ linked_record_id: string;
4139
+ document_id: string;
4140
+ };
4141
+ }, {
4142
+ type: "document_linked";
4143
+ id: string;
4144
+ circle_id: string;
4145
+ schema_version: number;
4146
+ record_type: string;
4147
+ occurred_at: string;
4148
+ actor_id: string;
4149
+ record_id: string;
4150
+ payload: {
4151
+ linked_record_id: string;
4152
+ document_id: string;
4153
+ };
4154
+ }>, z.ZodObject<{
4155
+ id: z.ZodString;
4156
+ occurred_at: z.ZodString;
4157
+ circle_id: z.ZodString;
4158
+ actor_id: z.ZodString;
4159
+ record_id: z.ZodString;
4160
+ record_type: z.ZodEnum<[string, ...string[]]>;
4161
+ schema_version: z.ZodNumber;
4162
+ } & {
4163
+ type: z.ZodLiteral<"reminder_triggered">;
4164
+ payload: z.ZodObject<{
4165
+ reminder_id: z.ZodString;
4166
+ linked_record_id: z.ZodString;
4167
+ remind_at: z.ZodString;
4168
+ }, "strip", z.ZodTypeAny, {
4169
+ linked_record_id: string;
4170
+ remind_at: string;
4171
+ reminder_id: string;
4172
+ }, {
4173
+ linked_record_id: string;
4174
+ remind_at: string;
4175
+ reminder_id: string;
4176
+ }>;
4177
+ }, "strip", z.ZodTypeAny, {
4178
+ type: "reminder_triggered";
4179
+ id: string;
4180
+ circle_id: string;
4181
+ schema_version: number;
4182
+ record_type: string;
4183
+ occurred_at: string;
4184
+ actor_id: string;
4185
+ record_id: string;
4186
+ payload: {
4187
+ linked_record_id: string;
4188
+ remind_at: string;
4189
+ reminder_id: string;
4190
+ };
4191
+ }, {
4192
+ type: "reminder_triggered";
4193
+ id: string;
4194
+ circle_id: string;
4195
+ schema_version: number;
4196
+ record_type: string;
4197
+ occurred_at: string;
4198
+ actor_id: string;
4199
+ record_id: string;
4200
+ payload: {
4201
+ linked_record_id: string;
4202
+ remind_at: string;
4203
+ reminder_id: string;
4204
+ };
4205
+ }>]>;
4206
+ //# sourceMappingURL=schemas.d.ts.map