@agentshouse/app-bridge 0.1.0-c21de2fb5ecc4 → 0.1.0-c232fa6e62dc2

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 (56) hide show
  1. package/README.md +4 -2
  2. package/dist/calls.d.ts +901 -0
  3. package/dist/calls.js +1 -0
  4. package/dist/index.d.ts +32 -4
  5. package/dist/mdmodel/blocks.d.ts +10 -0
  6. package/dist/mdmodel/condition.d.ts +148 -0
  7. package/dist/mdmodel/definition.d.ts +79 -0
  8. package/dist/mdmodel/divide.d.ts +2 -0
  9. package/dist/mdmodel/document.d.ts +15 -0
  10. package/dist/mdmodel/fields.d.ts +5 -0
  11. package/dist/mdmodel/index.d.ts +18 -0
  12. package/dist/mdmodel/paths.d.ts +17 -0
  13. package/dist/mdmodel/profile.d.ts +5 -0
  14. package/dist/mdmodel/project.d.ts +20 -0
  15. package/dist/mdmodel/references.d.ts +3 -0
  16. package/dist/mdmodel/types.d.ts +143 -0
  17. package/dist/mdmodel/validate.d.ts +7 -0
  18. package/dist/mdmodel/version.d.ts +1 -0
  19. package/dist/mdmodel/yaml.d.ts +55 -0
  20. package/dist/mdruntime/acquisition.d.ts +13 -0
  21. package/dist/mdruntime/adapter.d.ts +496 -0
  22. package/dist/mdruntime/binary.d.ts +22 -0
  23. package/dist/mdruntime/change-set.d.ts +34 -0
  24. package/dist/mdruntime/change.d.ts +88 -0
  25. package/dist/mdruntime/client.d.ts +86 -0
  26. package/dist/mdruntime/collection.d.ts +38 -0
  27. package/dist/mdruntime/connection.d.ts +148 -0
  28. package/dist/mdruntime/conversation.d.ts +110 -0
  29. package/dist/mdruntime/durability.d.ts +14 -0
  30. package/dist/mdruntime/failure.d.ts +12 -0
  31. package/dist/mdruntime/file.d.ts +19 -0
  32. package/dist/mdruntime/model.d.ts +57 -0
  33. package/dist/mdruntime/observation.d.ts +31 -0
  34. package/dist/mdruntime/open.d.ts +1 -0
  35. package/dist/mdruntime/outcome.d.ts +52 -0
  36. package/dist/mdruntime/overlay.d.ts +27 -0
  37. package/dist/mdruntime/query.d.ts +273 -0
  38. package/dist/mdruntime/reach.d.ts +44 -0
  39. package/dist/mdruntime/readiness.d.ts +52 -0
  40. package/dist/mdruntime/recovery.d.ts +24 -0
  41. package/dist/mdruntime/replica.d.ts +49 -0
  42. package/dist/mdruntime/room-draft.d.ts +155 -0
  43. package/dist/mdruntime/rows.d.ts +38 -0
  44. package/dist/mdruntime/save.d.ts +64 -0
  45. package/dist/mdruntime/search.d.ts +104 -0
  46. package/dist/mdruntime/seed.d.ts +15 -0
  47. package/dist/mdruntime/shared.d.ts +10 -0
  48. package/dist/mdruntime/status.d.ts +26 -0
  49. package/dist/mdruntime/store.d.ts +174 -0
  50. package/dist/mdruntime/transfer.d.ts +9 -0
  51. package/dist/mdruntime/turn.d.ts +6 -0
  52. package/dist/mdruntime/wire.d.ts +222 -0
  53. package/dist/test-host.d.ts +5 -2
  54. package/dist/test-host.js +57 -11
  55. package/docs/families.md +49 -7
  56. package/package.json +1 -4
@@ -0,0 +1,901 @@
1
+ export interface HouseCalls {
2
+ readonly 'access.read': {
3
+ readonly room_ref: string;
4
+ readonly statistics?: boolean;
5
+ };
6
+ readonly 'conversation.answer': {
7
+ readonly answer: {
8
+ readonly interaction_id: string;
9
+ readonly response: unknown;
10
+ };
11
+ readonly conversation: string;
12
+ readonly operation_id?: string;
13
+ };
14
+ readonly 'conversation.create': {
15
+ readonly agent_id: string;
16
+ readonly operation_id?: string;
17
+ };
18
+ readonly 'conversation.delete': {
19
+ readonly conversation: string;
20
+ readonly operation_id?: string;
21
+ };
22
+ readonly 'conversation.history': {
23
+ readonly conversations: readonly {
24
+ readonly after?: string;
25
+ readonly conversation: string;
26
+ }[];
27
+ };
28
+ readonly 'conversation.interrupt': {
29
+ readonly conversation: string;
30
+ readonly operation_id?: string;
31
+ };
32
+ readonly 'conversation.kill': {
33
+ readonly conversation: string;
34
+ readonly operation_id?: string;
35
+ };
36
+ readonly 'conversation.markDone': {
37
+ readonly conversation_id?: string;
38
+ readonly result?: string;
39
+ readonly operation_id: string;
40
+ };
41
+ readonly 'conversation.rename': {
42
+ readonly conversation_id: string;
43
+ readonly operation_id: string;
44
+ readonly name: string;
45
+ };
46
+ readonly 'conversation.send': {
47
+ readonly conversation: string;
48
+ readonly files?: readonly {
49
+ readonly blob: Blob;
50
+ readonly byteLength: number;
51
+ readonly contentHash: string;
52
+ readonly height?: number;
53
+ readonly mediaType: string;
54
+ readonly name: string;
55
+ readonly width?: number;
56
+ }[];
57
+ readonly operation_id: string;
58
+ readonly text?: string;
59
+ };
60
+ readonly 'conversation.setOption': {
61
+ readonly conversation_id: string;
62
+ readonly operation_id: string;
63
+ readonly option: string;
64
+ readonly value: string | boolean;
65
+ };
66
+ readonly 'feature.list': Readonly<Record<string, never>>;
67
+ readonly 'holder.list': Readonly<Record<string, never>>;
68
+ readonly 'holder.ring': {
69
+ readonly to: string;
70
+ };
71
+ readonly 'member.list': {
72
+ readonly room_ref: string;
73
+ readonly history?: boolean;
74
+ readonly limit?: number;
75
+ readonly cursor?: string;
76
+ };
77
+ readonly 'message.send': {
78
+ readonly to: string;
79
+ readonly body: unknown;
80
+ };
81
+ readonly 'processing.read': {
82
+ readonly room_ref: string;
83
+ readonly path: string;
84
+ };
85
+ readonly 'record.list': {
86
+ readonly room_ref: string;
87
+ readonly record?: string;
88
+ readonly cursor?: string;
89
+ readonly limit?: number;
90
+ readonly order?: 'asc' | 'desc';
91
+ };
92
+ readonly 'relay.read': Readonly<Record<string, never>>;
93
+ readonly 'routine.list': {
94
+ readonly room_ref: string;
95
+ };
96
+ readonly 'routineAccess.list': {
97
+ readonly room_ref: string;
98
+ };
99
+ readonly 'routineAllowance.list': {
100
+ readonly room_ref: string;
101
+ readonly access: string;
102
+ };
103
+ readonly 'routineRequest.list': {
104
+ readonly room_ref: string;
105
+ };
106
+ readonly 'storage.read': {
107
+ readonly room_ref?: string;
108
+ };
109
+ readonly submit: {
110
+ readonly content: string;
111
+ };
112
+ readonly 'trigger.list': {
113
+ readonly room_ref: string;
114
+ };
115
+ readonly 'triggerOccurrence.list': {
116
+ readonly room_ref: string;
117
+ };
118
+ }
119
+ export interface HouseAnswers {
120
+ readonly 'access.read': {
121
+ readonly room_ref: string;
122
+ readonly viewer: string;
123
+ readonly owner: string;
124
+ readonly authority: 'owner' | 'administrator' | 'member';
125
+ readonly namespaces: readonly string[];
126
+ readonly members: readonly {
127
+ readonly key: string | null;
128
+ readonly user: string;
129
+ readonly user_name: string;
130
+ readonly entries: readonly {
131
+ readonly namespace: string;
132
+ readonly operations: readonly ('read' | 'write' | 'delete' | 'sync' | 'export' | 'manageAccess')[];
133
+ readonly sources: readonly {
134
+ readonly kind: 'direct' | 'inherited';
135
+ readonly namespace: string;
136
+ readonly operations: readonly ('read' | 'write' | 'delete' | 'sync' | 'export' | 'manageAccess')[];
137
+ }[];
138
+ }[];
139
+ readonly direct: readonly {
140
+ readonly namespace: string;
141
+ readonly operations: readonly ('read' | 'write' | 'delete' | 'sync' | 'export' | 'manageAccess')[];
142
+ }[];
143
+ readonly admitted_at: string | null;
144
+ readonly schema_roles: readonly string[];
145
+ readonly requests_per_day?: number;
146
+ readonly downloads_per_day?: number;
147
+ }[];
148
+ readonly statistics?: readonly {
149
+ readonly user: string;
150
+ readonly day: string;
151
+ readonly requests: number;
152
+ readonly text_bytes: number;
153
+ readonly downloads: number;
154
+ }[];
155
+ readonly url: string;
156
+ };
157
+ readonly 'conversation.answer': {
158
+ readonly conversation_id: string;
159
+ readonly agent_id: string;
160
+ readonly interaction_id: string;
161
+ readonly authority: string;
162
+ readonly position: string;
163
+ readonly log_epoch: string;
164
+ readonly url: string;
165
+ };
166
+ readonly 'conversation.create': {
167
+ readonly agent_id: string;
168
+ readonly authority: string;
169
+ readonly conversation: string;
170
+ readonly conversation_id: string;
171
+ readonly log_epoch: string;
172
+ readonly position: string;
173
+ readonly url: string;
174
+ };
175
+ readonly 'conversation.delete': {
176
+ readonly conversation_id: string;
177
+ readonly outcome: 'deleted';
178
+ readonly authority: string;
179
+ readonly position: string;
180
+ readonly log_epoch: string;
181
+ };
182
+ readonly 'conversation.history': {
183
+ readonly histories: readonly {
184
+ readonly conversation: string;
185
+ readonly messages: readonly {
186
+ readonly identity: string;
187
+ readonly message: unknown;
188
+ readonly position: string;
189
+ readonly text: string;
190
+ readonly turn: string;
191
+ }[];
192
+ readonly next?: string;
193
+ }[];
194
+ };
195
+ readonly 'conversation.interrupt': {
196
+ readonly conversation_id: string;
197
+ readonly agent_id: string;
198
+ readonly authority: string;
199
+ readonly position: string;
200
+ readonly log_epoch: string;
201
+ readonly url: string;
202
+ };
203
+ readonly 'conversation.kill': {
204
+ readonly conversation_id: string;
205
+ readonly agent_id: string;
206
+ readonly authority: string;
207
+ readonly position: string;
208
+ readonly log_epoch: string;
209
+ readonly url: string;
210
+ };
211
+ readonly 'conversation.markDone': {
212
+ readonly conversation_id: string;
213
+ readonly agent_id: string;
214
+ readonly done: string | null;
215
+ readonly authority: string;
216
+ readonly position: string;
217
+ readonly log_epoch: string;
218
+ readonly url: string;
219
+ };
220
+ readonly 'conversation.rename': {
221
+ readonly conversation_id: string;
222
+ readonly agent_id: string;
223
+ readonly name: string;
224
+ readonly authority: string;
225
+ readonly position: string;
226
+ readonly log_epoch: string;
227
+ readonly url: string;
228
+ };
229
+ readonly 'conversation.send': {
230
+ readonly agent_id: string;
231
+ readonly authority: string;
232
+ readonly conversation_id: string;
233
+ readonly files: readonly {
234
+ readonly name: string;
235
+ readonly media_type: string | null;
236
+ readonly dimensions: {
237
+ readonly width: number;
238
+ readonly height: number;
239
+ } | null;
240
+ readonly bytes: number;
241
+ readonly sha256: string;
242
+ readonly file: string | null;
243
+ readonly page: string;
244
+ readonly upload?: {
245
+ readonly method: 'POST';
246
+ readonly operation: string;
247
+ readonly url: string;
248
+ readonly expires_at: string;
249
+ };
250
+ }[];
251
+ readonly log_epoch: string;
252
+ readonly message_id: string;
253
+ readonly position: string;
254
+ readonly turn: string;
255
+ readonly url: string;
256
+ };
257
+ readonly 'conversation.setOption': {
258
+ readonly conversation_id: string;
259
+ readonly agent_id: string;
260
+ readonly authority: string;
261
+ readonly position: string;
262
+ readonly log_epoch: string;
263
+ readonly url: string;
264
+ };
265
+ readonly 'feature.list': {
266
+ readonly features: readonly {
267
+ readonly feature: 'microphone' | 'camera' | 'geolocation' | 'clipboard-read' | 'notifications';
268
+ readonly allowed: boolean;
269
+ }[];
270
+ };
271
+ readonly 'holder.list': {
272
+ readonly holders: readonly {
273
+ readonly user: string;
274
+ readonly name: string;
275
+ readonly email: string;
276
+ }[];
277
+ };
278
+ readonly 'holder.ring': {
279
+ readonly authority: string;
280
+ readonly position: string;
281
+ readonly log_epoch: string;
282
+ };
283
+ readonly 'member.list': {
284
+ readonly members: readonly {
285
+ readonly user: string;
286
+ readonly display_name: string;
287
+ readonly owner: boolean;
288
+ readonly email?: string;
289
+ readonly since: string | null;
290
+ readonly access?: 'owner' | 'manage' | 'edit' | 'read';
291
+ readonly member_document: string | null;
292
+ readonly schema_roles?: readonly string[];
293
+ }[];
294
+ readonly next_cursor?: string;
295
+ readonly history?: readonly {
296
+ readonly kind: 'granted' | 'revoked';
297
+ readonly user: string;
298
+ readonly at: string;
299
+ }[];
300
+ };
301
+ readonly 'message.send': Readonly<Record<string, never>>;
302
+ readonly 'processing.read': {
303
+ readonly path: string;
304
+ readonly policy: {
305
+ readonly value: 'On' | 'Off';
306
+ readonly origin: 'explicit' | 'inherited' | 'default';
307
+ readonly from: string | null;
308
+ readonly reason: 'unfunded' | 'room_too_large' | null;
309
+ };
310
+ readonly explicit: readonly {
311
+ readonly path: string;
312
+ readonly policy: 'On' | 'Off';
313
+ }[];
314
+ readonly writable: boolean;
315
+ readonly embedding: {
316
+ readonly finished: boolean;
317
+ readonly condition: {
318
+ readonly kind: 'demand_failed' | 'embed_again_failed';
319
+ readonly path: string;
320
+ } | null;
321
+ readonly embedding_estimate: {
322
+ readonly documents: number;
323
+ readonly measured_tokens: number;
324
+ readonly unmeasured_documents: number;
325
+ } | null;
326
+ readonly indexed_chunks: number;
327
+ };
328
+ };
329
+ readonly 'record.list': {
330
+ readonly attachments: readonly {
331
+ readonly bytes: number;
332
+ readonly file: string;
333
+ readonly media_type: string | null;
334
+ readonly name: string | null;
335
+ readonly referrer: {
336
+ readonly record: string;
337
+ readonly room_ref: string;
338
+ };
339
+ readonly sha256: string;
340
+ }[];
341
+ readonly body: string | null;
342
+ readonly claimed: unknown;
343
+ readonly created_at: string;
344
+ readonly record: string;
345
+ readonly ref: string;
346
+ } | {
347
+ readonly next_cursor?: string;
348
+ readonly records: readonly {
349
+ readonly attachments: readonly {
350
+ readonly bytes: number;
351
+ readonly file: string;
352
+ readonly media_type: string | null;
353
+ readonly name: string | null;
354
+ readonly referrer: {
355
+ readonly record: string;
356
+ readonly room_ref: string;
357
+ };
358
+ readonly sha256: string;
359
+ }[];
360
+ readonly body: string | null;
361
+ readonly claimed: unknown;
362
+ readonly created_at: string;
363
+ readonly record: string;
364
+ readonly ref: string;
365
+ }[];
366
+ };
367
+ readonly 'relay.read': {
368
+ readonly ice_servers: readonly {
369
+ readonly urls: readonly string[];
370
+ readonly username: string;
371
+ readonly credential: string;
372
+ }[];
373
+ readonly expires_at: string;
374
+ };
375
+ readonly 'routine.list': readonly {
376
+ readonly accessId: string;
377
+ readonly agentId: string;
378
+ readonly ownerDisplayName: string;
379
+ readonly name: string;
380
+ readonly description: string;
381
+ readonly input: string;
382
+ readonly version: number;
383
+ readonly startsWithoutApproval: boolean;
384
+ readonly url: string;
385
+ }[];
386
+ readonly 'routineAccess.list': {
387
+ readonly access: readonly {
388
+ readonly access: string;
389
+ readonly agent: string;
390
+ readonly routine: string;
391
+ readonly name: string;
392
+ readonly current_version: number;
393
+ readonly state: 'live' | 'revoked' | 'routine_retired' | 'agent_retired' | 'target_owner_key_inactive';
394
+ readonly invokers: {
395
+ readonly scope: 'all_members' | 'selected_users';
396
+ readonly users: readonly {
397
+ readonly user: string;
398
+ readonly display_name: string | null;
399
+ }[];
400
+ };
401
+ readonly starts_without_approval: {
402
+ readonly scope: 'none' | 'all_admitted' | 'selected_users';
403
+ readonly users: readonly {
404
+ readonly user: string;
405
+ readonly display_name: string | null;
406
+ }[];
407
+ };
408
+ readonly granted_at: string;
409
+ readonly revoked_at: string | null;
410
+ readonly rooms?: {
411
+ readonly reach: 'all';
412
+ } | {
413
+ readonly reach: 'all_but_private';
414
+ } | {
415
+ readonly reach: 'selected';
416
+ readonly refs: readonly string[];
417
+ };
418
+ readonly accounts?: readonly {
419
+ readonly id: string;
420
+ readonly name: string;
421
+ readonly origin: string;
422
+ }[];
423
+ readonly url: string;
424
+ }[];
425
+ };
426
+ readonly 'routineAllowance.list': {
427
+ readonly grantees: readonly {
428
+ readonly user: string;
429
+ readonly name: string;
430
+ readonly email: string;
431
+ readonly used: number;
432
+ readonly quota: number | null;
433
+ }[];
434
+ };
435
+ readonly 'routineRequest.list': {
436
+ readonly current: readonly {
437
+ readonly name: string;
438
+ readonly document: string;
439
+ }[];
440
+ readonly history: readonly {
441
+ readonly name: string;
442
+ readonly document: string;
443
+ }[];
444
+ };
445
+ readonly 'storage.read': {
446
+ readonly measurement: {
447
+ readonly page_reference: {
448
+ readonly bytes_per_page: string;
449
+ readonly font: string;
450
+ readonly font_size_pt: string;
451
+ readonly layout: string;
452
+ readonly encoding: string;
453
+ } | null;
454
+ };
455
+ readonly total: {
456
+ readonly bytes: string;
457
+ readonly gigabytes: string;
458
+ };
459
+ readonly indexed_text: {
460
+ readonly bytes: string;
461
+ readonly gigabytes: string;
462
+ readonly approximate_pages: string | null;
463
+ };
464
+ readonly blob: {
465
+ readonly bytes: string;
466
+ readonly gigabytes: string;
467
+ };
468
+ readonly freshness: {
469
+ readonly state: 'settled';
470
+ };
471
+ readonly site_images: {
472
+ readonly payloads: string;
473
+ readonly bytes: string;
474
+ readonly bound: string;
475
+ };
476
+ } | {
477
+ readonly measurement: {
478
+ readonly page_reference: {
479
+ readonly bytes_per_page: string;
480
+ readonly font: string;
481
+ readonly font_size_pt: string;
482
+ readonly layout: string;
483
+ readonly encoding: string;
484
+ } | null;
485
+ };
486
+ readonly total: {
487
+ readonly bytes: string;
488
+ readonly gigabytes: string;
489
+ };
490
+ readonly indexed_text: {
491
+ readonly bytes: string;
492
+ readonly gigabytes: string;
493
+ readonly approximate_pages: string | null;
494
+ };
495
+ readonly blob: {
496
+ readonly bytes: string;
497
+ readonly gigabytes: string;
498
+ };
499
+ readonly freshness: {
500
+ readonly state: 'settled';
501
+ };
502
+ readonly room_ref: string;
503
+ readonly url: string;
504
+ };
505
+ readonly submit: {
506
+ readonly submitted: true;
507
+ };
508
+ readonly 'trigger.list': {
509
+ readonly triggers: readonly {
510
+ readonly trigger: string;
511
+ readonly owner: string;
512
+ readonly description: string;
513
+ readonly condition: {
514
+ readonly on: 'documents';
515
+ readonly scope: {
516
+ readonly type: string;
517
+ } | {
518
+ readonly folder: string;
519
+ } | {
520
+ readonly document: string;
521
+ };
522
+ readonly mode: 'starts_matching';
523
+ readonly new_documents: boolean;
524
+ readonly match: {
525
+ readonly all: readonly unknown[];
526
+ } | {
527
+ readonly any: readonly unknown[];
528
+ } | {
529
+ readonly not: unknown;
530
+ } | {
531
+ readonly path: string;
532
+ readonly eq: string | number | boolean | {
533
+ readonly owner: true;
534
+ };
535
+ } | {
536
+ readonly path: string;
537
+ readonly in: readonly (string | number | boolean | {
538
+ readonly owner: true;
539
+ })[];
540
+ } | {
541
+ readonly path: string;
542
+ readonly exists: boolean;
543
+ } | {
544
+ readonly path: string;
545
+ readonly contains: string | number | boolean | {
546
+ readonly owner: true;
547
+ };
548
+ } | {
549
+ readonly path: string;
550
+ readonly gt: number | string;
551
+ } | {
552
+ readonly path: string;
553
+ readonly gte: number | string;
554
+ } | {
555
+ readonly path: string;
556
+ readonly lt: number | string;
557
+ } | {
558
+ readonly path: string;
559
+ readonly lte: number | string;
560
+ } | {
561
+ readonly path: string;
562
+ readonly prefix: string;
563
+ };
564
+ readonly by?: {
565
+ readonly all: readonly unknown[];
566
+ } | {
567
+ readonly any: readonly unknown[];
568
+ } | {
569
+ readonly not: unknown;
570
+ } | {
571
+ readonly path: string;
572
+ readonly eq: string | number | boolean | {
573
+ readonly owner: true;
574
+ };
575
+ } | {
576
+ readonly path: string;
577
+ readonly in: readonly (string | number | boolean | {
578
+ readonly owner: true;
579
+ })[];
580
+ } | {
581
+ readonly path: string;
582
+ readonly exists: boolean;
583
+ } | {
584
+ readonly path: string;
585
+ readonly contains: string | number | boolean | {
586
+ readonly owner: true;
587
+ };
588
+ } | {
589
+ readonly path: string;
590
+ readonly gt: number | string;
591
+ } | {
592
+ readonly path: string;
593
+ readonly gte: number | string;
594
+ } | {
595
+ readonly path: string;
596
+ readonly lt: number | string;
597
+ } | {
598
+ readonly path: string;
599
+ readonly lte: number | string;
600
+ } | {
601
+ readonly path: string;
602
+ readonly prefix: string;
603
+ };
604
+ } | {
605
+ readonly on: 'documents';
606
+ readonly scope: {
607
+ readonly type: string;
608
+ } | {
609
+ readonly folder: string;
610
+ } | {
611
+ readonly document: string;
612
+ };
613
+ readonly mode: 'field_changes';
614
+ readonly field: string;
615
+ readonly from?: readonly (string | number | boolean | {
616
+ readonly owner: true;
617
+ })[] | 'new';
618
+ readonly to?: readonly (string | number | boolean | {
619
+ readonly owner: true;
620
+ })[] | 'deleted';
621
+ readonly match?: {
622
+ readonly all: readonly unknown[];
623
+ } | {
624
+ readonly any: readonly unknown[];
625
+ } | {
626
+ readonly not: unknown;
627
+ } | {
628
+ readonly path: string;
629
+ readonly eq: string | number | boolean | {
630
+ readonly owner: true;
631
+ };
632
+ } | {
633
+ readonly path: string;
634
+ readonly in: readonly (string | number | boolean | {
635
+ readonly owner: true;
636
+ })[];
637
+ } | {
638
+ readonly path: string;
639
+ readonly exists: boolean;
640
+ } | {
641
+ readonly path: string;
642
+ readonly contains: string | number | boolean | {
643
+ readonly owner: true;
644
+ };
645
+ } | {
646
+ readonly path: string;
647
+ readonly gt: number | string;
648
+ } | {
649
+ readonly path: string;
650
+ readonly gte: number | string;
651
+ } | {
652
+ readonly path: string;
653
+ readonly lt: number | string;
654
+ } | {
655
+ readonly path: string;
656
+ readonly lte: number | string;
657
+ } | {
658
+ readonly path: string;
659
+ readonly prefix: string;
660
+ };
661
+ readonly by?: {
662
+ readonly all: readonly unknown[];
663
+ } | {
664
+ readonly any: readonly unknown[];
665
+ } | {
666
+ readonly not: unknown;
667
+ } | {
668
+ readonly path: string;
669
+ readonly eq: string | number | boolean | {
670
+ readonly owner: true;
671
+ };
672
+ } | {
673
+ readonly path: string;
674
+ readonly in: readonly (string | number | boolean | {
675
+ readonly owner: true;
676
+ })[];
677
+ } | {
678
+ readonly path: string;
679
+ readonly exists: boolean;
680
+ } | {
681
+ readonly path: string;
682
+ readonly contains: string | number | boolean | {
683
+ readonly owner: true;
684
+ };
685
+ } | {
686
+ readonly path: string;
687
+ readonly gt: number | string;
688
+ } | {
689
+ readonly path: string;
690
+ readonly gte: number | string;
691
+ } | {
692
+ readonly path: string;
693
+ readonly lt: number | string;
694
+ } | {
695
+ readonly path: string;
696
+ readonly lte: number | string;
697
+ } | {
698
+ readonly path: string;
699
+ readonly prefix: string;
700
+ };
701
+ } | {
702
+ readonly on: 'items';
703
+ readonly source?: string;
704
+ readonly address?: string;
705
+ readonly match?: {
706
+ readonly all: readonly unknown[];
707
+ } | {
708
+ readonly any: readonly unknown[];
709
+ } | {
710
+ readonly not: unknown;
711
+ } | {
712
+ readonly path: string;
713
+ readonly eq: string | number | boolean | {
714
+ readonly owner: true;
715
+ };
716
+ } | {
717
+ readonly path: string;
718
+ readonly in: readonly (string | number | boolean | {
719
+ readonly owner: true;
720
+ })[];
721
+ } | {
722
+ readonly path: string;
723
+ readonly exists: boolean;
724
+ } | {
725
+ readonly path: string;
726
+ readonly contains: string | number | boolean | {
727
+ readonly owner: true;
728
+ };
729
+ } | {
730
+ readonly path: string;
731
+ readonly gt: number | string;
732
+ } | {
733
+ readonly path: string;
734
+ readonly gte: number | string;
735
+ } | {
736
+ readonly path: string;
737
+ readonly lt: number | string;
738
+ } | {
739
+ readonly path: string;
740
+ readonly lte: number | string;
741
+ } | {
742
+ readonly path: string;
743
+ readonly prefix: string;
744
+ };
745
+ } | {
746
+ readonly on: 'clock';
747
+ readonly cron: string;
748
+ readonly time_zone: string;
749
+ } | {
750
+ readonly on: 'clock';
751
+ readonly scope: {
752
+ readonly type: string;
753
+ };
754
+ readonly date: string;
755
+ readonly days: number;
756
+ readonly at: string;
757
+ readonly time_zone: string;
758
+ readonly match?: {
759
+ readonly all: readonly unknown[];
760
+ } | {
761
+ readonly any: readonly unknown[];
762
+ } | {
763
+ readonly not: unknown;
764
+ } | {
765
+ readonly path: string;
766
+ readonly eq: string | number | boolean | {
767
+ readonly owner: true;
768
+ };
769
+ } | {
770
+ readonly path: string;
771
+ readonly in: readonly (string | number | boolean | {
772
+ readonly owner: true;
773
+ })[];
774
+ } | {
775
+ readonly path: string;
776
+ readonly exists: boolean;
777
+ } | {
778
+ readonly path: string;
779
+ readonly contains: string | number | boolean | {
780
+ readonly owner: true;
781
+ };
782
+ } | {
783
+ readonly path: string;
784
+ readonly gt: number | string;
785
+ } | {
786
+ readonly path: string;
787
+ readonly gte: number | string;
788
+ } | {
789
+ readonly path: string;
790
+ readonly lt: number | string;
791
+ } | {
792
+ readonly path: string;
793
+ readonly lte: number | string;
794
+ } | {
795
+ readonly path: string;
796
+ readonly prefix: string;
797
+ };
798
+ };
799
+ readonly enabled: boolean;
800
+ readonly actions: readonly ({
801
+ readonly kind: 'notify';
802
+ readonly enabled?: boolean;
803
+ readonly title?: string;
804
+ readonly text?: string;
805
+ } | {
806
+ readonly kind: 'routine';
807
+ readonly enabled?: boolean;
808
+ readonly access?: string;
809
+ readonly payload?: string;
810
+ readonly references?: readonly {
811
+ readonly room_ref: string;
812
+ readonly ref: string;
813
+ readonly url: string;
814
+ }[];
815
+ } | {
816
+ readonly kind: 'conversation';
817
+ readonly enabled?: boolean;
818
+ readonly conversation_id?: string;
819
+ })[];
820
+ }[];
821
+ };
822
+ readonly 'triggerOccurrence.list': {
823
+ readonly occurrences: readonly {
824
+ readonly trigger: string;
825
+ readonly path?: string;
826
+ readonly moment?: string;
827
+ readonly missed?: 'skipped' | 'failed';
828
+ readonly created_at: string;
829
+ readonly actions: readonly ({
830
+ readonly position: number;
831
+ readonly outcome: 'notified';
832
+ readonly notification: string;
833
+ } | {
834
+ readonly position: number;
835
+ readonly outcome: 'requested';
836
+ readonly request: string;
837
+ } | {
838
+ readonly position: number;
839
+ readonly outcome: 'sent';
840
+ readonly message: string;
841
+ } | {
842
+ readonly position: number;
843
+ readonly outcome: 'refused';
844
+ readonly code: string;
845
+ } | {
846
+ readonly position: number;
847
+ readonly outcome: 'refused';
848
+ readonly code: 'limit_reached';
849
+ readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | 'address_submissions' | 'house_writes' | 'push_addresses' | 'push_deliveries' | 'external_accounts' | 'external_calls' | 'export_starts' | 'routine_requests' | 'share_creations' | 'share_room_creations' | 'live_shares' | 'ownership_offers' | 'site_rooms' | 'slot_rooms' | 'room_triggers' | 'member_triggers' | 'app_sockets' | 'kit_sockets';
850
+ } | {
851
+ readonly position: number;
852
+ readonly outcome: 'refused';
853
+ readonly code: 'limit_reached';
854
+ readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | 'address_submissions' | 'house_writes' | 'push_addresses' | 'push_deliveries' | 'external_accounts' | 'external_calls' | 'export_starts' | 'routine_requests' | 'share_creations' | 'share_room_creations' | 'live_shares' | 'ownership_offers' | 'site_rooms' | 'slot_rooms' | 'room_triggers' | 'member_triggers' | 'app_sockets' | 'kit_sockets';
855
+ readonly retry_at: string;
856
+ } | {
857
+ readonly position: number;
858
+ readonly outcome: 'refused';
859
+ readonly code: 'limit_reached';
860
+ readonly limit: 'indexed_text' | 'blob';
861
+ readonly value: string;
862
+ readonly used: string;
863
+ } | {
864
+ readonly position: number;
865
+ readonly outcome: 'refused';
866
+ readonly code: 'limit_reached';
867
+ readonly limit: 'reads';
868
+ readonly period: 'minute' | 'day';
869
+ readonly value: string;
870
+ readonly retry_at: string;
871
+ } | {
872
+ readonly position: number;
873
+ readonly outcome: 'refused';
874
+ readonly code: 'limit_reached';
875
+ readonly limit: 'house_writes';
876
+ readonly period: 'minute' | 'day';
877
+ readonly retry_at: string;
878
+ } | {
879
+ readonly position: number;
880
+ readonly outcome: 'refused';
881
+ readonly code: 'limit_reached';
882
+ readonly limit: 'mcp_reads' | 'mcp_downloads';
883
+ readonly value: string;
884
+ readonly retry_at: string;
885
+ } | {
886
+ readonly position: number;
887
+ readonly outcome: 'withdrawn';
888
+ } | {
889
+ readonly position: number;
890
+ readonly outcome: 'failed';
891
+ } | {
892
+ readonly position: number;
893
+ readonly outcome: 'waiting';
894
+ } | {
895
+ readonly position: number;
896
+ readonly outcome: 'paused';
897
+ })[];
898
+ readonly url?: string;
899
+ }[];
900
+ };
901
+ }