@agentshouse/app-bridge 0.1.0-caae3da69c1c2 → 0.1.0-cad9b7e2b6d0c
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.
- package/README.md +5 -5
- package/dist/calls.d.ts +133 -365
- package/dist/index.d.ts +24 -2
- package/dist/mdmodel/condition.d.ts +18 -3
- package/dist/mdmodel/definition.d.ts +2 -1
- package/dist/mdmodel/document.d.ts +4 -4
- package/dist/mdmodel/index.d.ts +7 -6
- package/dist/mdmodel/links.d.ts +28 -0
- package/dist/mdmodel/types.d.ts +9 -4
- package/dist/mdmodel/validate.d.ts +25 -4
- package/dist/mdruntime/adapter.d.ts +57 -29
- package/dist/mdruntime/binary.d.ts +0 -5
- package/dist/mdruntime/chain.d.ts +10 -0
- package/dist/mdruntime/change-set.d.ts +6 -16
- package/dist/mdruntime/change.d.ts +31 -1
- package/dist/mdruntime/client.d.ts +9 -5
- package/dist/mdruntime/collection.d.ts +11 -20
- package/dist/mdruntime/compile.d.ts +15 -0
- package/dist/mdruntime/connection.d.ts +18 -10
- package/dist/mdruntime/conversation.d.ts +8 -6
- package/dist/mdruntime/durability.d.ts +3 -5
- package/dist/mdruntime/fulltext.d.ts +26 -0
- package/dist/mdruntime/identity.d.ts +6 -0
- package/dist/mdruntime/media.d.ts +7 -0
- package/dist/mdruntime/messages.d.ts +27 -0
- package/dist/mdruntime/model.d.ts +6 -0
- package/dist/mdruntime/observation.d.ts +13 -0
- package/dist/mdruntime/opened.d.ts +21 -0
- package/dist/mdruntime/outcome.d.ts +40 -5
- package/dist/mdruntime/overlay.d.ts +1 -4
- package/dist/mdruntime/query.d.ts +11 -1
- package/dist/mdruntime/reach.d.ts +13 -4
- package/dist/mdruntime/readiness.d.ts +19 -9
- package/dist/mdruntime/recovery.d.ts +2 -2
- package/dist/mdruntime/replica.d.ts +56 -39
- package/dist/mdruntime/room-draft.d.ts +21 -3
- package/dist/mdruntime/save.d.ts +51 -14
- package/dist/mdruntime/search.d.ts +11 -43
- package/dist/mdruntime/shared.d.ts +4 -3
- package/dist/mdruntime/status.d.ts +5 -0
- package/dist/mdruntime/store.d.ts +85 -95
- package/dist/mdruntime/stored.d.ts +134 -0
- package/dist/mdruntime/tables.d.ts +351 -0
- package/dist/mdruntime/wire.d.ts +17 -1
- package/dist/test-host.d.ts +7 -1
- package/dist/test-host.js +16 -0
- package/docs/families.md +34 -14
- package/package.json +8 -3
- package/dist/mdruntime/file.d.ts +0 -19
- package/dist/mdruntime/rows.d.ts +0 -38
- package/dist/mdruntime/turn.d.ts +0 -8
package/README.md
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
The types of the agents.house App bridge, an accessor and an in-page test host.
|
|
4
4
|
House builds the bridge object in every App it serves and hands it to the page
|
|
5
5
|
before the App's own scripts run; `houseBridge()` returns that object, so an App
|
|
6
|
-
carries no bridge code of its own. It carries
|
|
6
|
+
carries no bridge code of its own. It carries twelve families: navigation,
|
|
7
7
|
ceremonies, installation, notifications, status, Site image reads, App release
|
|
8
|
-
code, external calls, App messages
|
|
8
|
+
code, external calls, App messages, App and Site screenshot reads and the Chat.
|
|
9
9
|
[docs/families.md](docs/families.md) describes each and the test host.
|
|
10
10
|
|
|
11
11
|
The bridge carries no credential handling and no Runtime family. House builds
|
|
12
|
-
the MD Runtime client into the page beside the bridge
|
|
13
|
-
|
|
12
|
+
the MD Runtime client into the page beside the bridge and serves it the Chat, so
|
|
13
|
+
the App imports, constructs and bundles neither: `bridge.runtime` resolves to the client.
|
|
14
14
|
|
|
15
|
-
House's
|
|
15
|
+
House's guide to building an App is its Guide's `apps/` pages, which `open_guide` opens.
|
|
16
16
|
|
|
17
17
|
## Use
|
|
18
18
|
|
package/dist/calls.d.ts
CHANGED
|
@@ -16,18 +16,18 @@ export interface HouseMethods {
|
|
|
16
16
|
readonly user_name: string;
|
|
17
17
|
readonly entries: readonly {
|
|
18
18
|
readonly namespace: string;
|
|
19
|
-
readonly
|
|
19
|
+
readonly level: 'search' | 'open' | 'keep' | null;
|
|
20
20
|
readonly operations: readonly ('write' | 'delete' | 'export' | 'manageAccess')[];
|
|
21
21
|
readonly sources: readonly {
|
|
22
22
|
readonly kind: 'direct' | 'inherited';
|
|
23
23
|
readonly namespace: string;
|
|
24
|
-
readonly
|
|
24
|
+
readonly level: 'search' | 'open' | 'keep' | null;
|
|
25
25
|
readonly operations: readonly ('write' | 'delete' | 'export' | 'manageAccess')[];
|
|
26
26
|
}[];
|
|
27
27
|
}[];
|
|
28
28
|
readonly direct: readonly {
|
|
29
29
|
readonly namespace: string;
|
|
30
|
-
readonly
|
|
30
|
+
readonly level: 'search' | 'open' | 'keep' | null;
|
|
31
31
|
readonly operations: readonly ('write' | 'delete' | 'export' | 'manageAccess')[];
|
|
32
32
|
}[];
|
|
33
33
|
readonly admitted_at: string | null;
|
|
@@ -68,6 +68,7 @@ export interface HouseMethods {
|
|
|
68
68
|
readonly params: {
|
|
69
69
|
readonly agent_id: string;
|
|
70
70
|
readonly operation_id?: string;
|
|
71
|
+
readonly replaces?: string;
|
|
71
72
|
};
|
|
72
73
|
readonly result: {
|
|
73
74
|
readonly agent_id: string;
|
|
@@ -192,40 +193,13 @@ export interface HouseMethods {
|
|
|
192
193
|
readonly 'conversation.send': {
|
|
193
194
|
readonly params: {
|
|
194
195
|
readonly conversation: string;
|
|
195
|
-
readonly files?: readonly {
|
|
196
|
-
readonly blob: Blob;
|
|
197
|
-
readonly byteLength: number;
|
|
198
|
-
readonly contentHash: string;
|
|
199
|
-
readonly height?: number;
|
|
200
|
-
readonly mediaType: string;
|
|
201
|
-
readonly name: string;
|
|
202
|
-
readonly width?: number;
|
|
203
|
-
}[];
|
|
204
196
|
readonly operation_id: string;
|
|
205
|
-
readonly text
|
|
197
|
+
readonly text: string;
|
|
206
198
|
};
|
|
207
199
|
readonly result: {
|
|
208
200
|
readonly agent_id: string;
|
|
209
201
|
readonly authority: string;
|
|
210
202
|
readonly conversation_id: string;
|
|
211
|
-
readonly files: readonly {
|
|
212
|
-
readonly name: string;
|
|
213
|
-
readonly media_type: string | null;
|
|
214
|
-
readonly dimensions: {
|
|
215
|
-
readonly width: number;
|
|
216
|
-
readonly height: number;
|
|
217
|
-
} | null;
|
|
218
|
-
readonly bytes: number;
|
|
219
|
-
readonly sha256: string;
|
|
220
|
-
readonly file: string | null;
|
|
221
|
-
readonly page: string;
|
|
222
|
-
readonly upload?: {
|
|
223
|
-
readonly method: 'POST';
|
|
224
|
-
readonly operation: string;
|
|
225
|
-
readonly url: string;
|
|
226
|
-
readonly expires_at: string;
|
|
227
|
-
};
|
|
228
|
-
}[];
|
|
229
203
|
readonly log_epoch: string;
|
|
230
204
|
readonly message_id: string;
|
|
231
205
|
readonly position: string;
|
|
@@ -253,7 +227,7 @@ export interface HouseMethods {
|
|
|
253
227
|
readonly params: Readonly<Record<string, never>>;
|
|
254
228
|
readonly result: {
|
|
255
229
|
readonly features: readonly {
|
|
256
|
-
readonly feature:
|
|
230
|
+
readonly feature: string;
|
|
257
231
|
readonly allowed: boolean;
|
|
258
232
|
}[];
|
|
259
233
|
};
|
|
@@ -278,6 +252,86 @@ export interface HouseMethods {
|
|
|
278
252
|
readonly log_epoch: string;
|
|
279
253
|
};
|
|
280
254
|
};
|
|
255
|
+
readonly 'inboxChat.assign': {
|
|
256
|
+
readonly params: {
|
|
257
|
+
readonly room_ref: string;
|
|
258
|
+
readonly path: string;
|
|
259
|
+
readonly assignee: {
|
|
260
|
+
readonly user: string;
|
|
261
|
+
} | {
|
|
262
|
+
readonly agent: string;
|
|
263
|
+
} | null;
|
|
264
|
+
};
|
|
265
|
+
readonly result: {
|
|
266
|
+
readonly room_ref: string;
|
|
267
|
+
readonly path: string;
|
|
268
|
+
readonly assignee: {
|
|
269
|
+
readonly user: string;
|
|
270
|
+
readonly name: string;
|
|
271
|
+
} | {
|
|
272
|
+
readonly agent: string;
|
|
273
|
+
readonly name: string;
|
|
274
|
+
} | null;
|
|
275
|
+
readonly return_to: {
|
|
276
|
+
readonly agent: string;
|
|
277
|
+
readonly name: string;
|
|
278
|
+
} | null;
|
|
279
|
+
readonly authority: string;
|
|
280
|
+
readonly position: string;
|
|
281
|
+
readonly log_epoch: string;
|
|
282
|
+
readonly url: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly 'inboxChat.return': {
|
|
286
|
+
readonly params: {
|
|
287
|
+
readonly room_ref: string;
|
|
288
|
+
readonly path: string;
|
|
289
|
+
};
|
|
290
|
+
readonly result: {
|
|
291
|
+
readonly room_ref: string;
|
|
292
|
+
readonly path: string;
|
|
293
|
+
readonly assignee: {
|
|
294
|
+
readonly user: string;
|
|
295
|
+
readonly name: string;
|
|
296
|
+
} | {
|
|
297
|
+
readonly agent: string;
|
|
298
|
+
readonly name: string;
|
|
299
|
+
} | null;
|
|
300
|
+
readonly return_to: {
|
|
301
|
+
readonly agent: string;
|
|
302
|
+
readonly name: string;
|
|
303
|
+
} | null;
|
|
304
|
+
readonly authority: string;
|
|
305
|
+
readonly position: string;
|
|
306
|
+
readonly log_epoch: string;
|
|
307
|
+
readonly url: string;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
readonly 'inboxChat.takeControl': {
|
|
311
|
+
readonly params: {
|
|
312
|
+
readonly room_ref: string;
|
|
313
|
+
readonly path: string;
|
|
314
|
+
};
|
|
315
|
+
readonly result: {
|
|
316
|
+
readonly room_ref: string;
|
|
317
|
+
readonly path: string;
|
|
318
|
+
readonly assignee: {
|
|
319
|
+
readonly user: string;
|
|
320
|
+
readonly name: string;
|
|
321
|
+
} | {
|
|
322
|
+
readonly agent: string;
|
|
323
|
+
readonly name: string;
|
|
324
|
+
} | null;
|
|
325
|
+
readonly return_to: {
|
|
326
|
+
readonly agent: string;
|
|
327
|
+
readonly name: string;
|
|
328
|
+
} | null;
|
|
329
|
+
readonly authority: string;
|
|
330
|
+
readonly position: string;
|
|
331
|
+
readonly log_epoch: string;
|
|
332
|
+
readonly url: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
281
335
|
readonly 'member.list': {
|
|
282
336
|
readonly params: {
|
|
283
337
|
readonly room_ref: string;
|
|
@@ -292,7 +346,8 @@ export interface HouseMethods {
|
|
|
292
346
|
readonly owner: boolean;
|
|
293
347
|
readonly email?: string;
|
|
294
348
|
readonly since: string | null;
|
|
295
|
-
readonly access?: 'owner' | 'manage' | 'edit' | '
|
|
349
|
+
readonly access?: 'owner' | 'manage' | 'edit' | 'keep' | 'open' | 'search';
|
|
350
|
+
readonly only_while_online?: true;
|
|
296
351
|
readonly member_document: string | null;
|
|
297
352
|
readonly schema_roles?: readonly string[];
|
|
298
353
|
}[];
|
|
@@ -347,48 +402,19 @@ export interface HouseMethods {
|
|
|
347
402
|
readonly 'record.list': {
|
|
348
403
|
readonly params: {
|
|
349
404
|
readonly room_ref: string;
|
|
350
|
-
readonly record?: string;
|
|
351
405
|
readonly cursor?: string;
|
|
352
406
|
readonly limit?: number;
|
|
353
407
|
readonly order?: 'asc' | 'desc';
|
|
354
408
|
};
|
|
355
409
|
readonly result: {
|
|
356
|
-
readonly attachments: readonly {
|
|
357
|
-
readonly bytes: number;
|
|
358
|
-
readonly file: string;
|
|
359
|
-
readonly media_type: string | null;
|
|
360
|
-
readonly name: string | null;
|
|
361
|
-
readonly referrer: {
|
|
362
|
-
readonly record: string;
|
|
363
|
-
readonly room_ref: string;
|
|
364
|
-
};
|
|
365
|
-
readonly sha256: string;
|
|
366
|
-
}[];
|
|
367
|
-
readonly body: string | null;
|
|
368
|
-
readonly claimed: unknown;
|
|
369
|
-
readonly created_at: string;
|
|
370
|
-
readonly record: string;
|
|
371
|
-
readonly ref: string;
|
|
372
|
-
} | {
|
|
373
|
-
readonly next_cursor?: string;
|
|
374
410
|
readonly records: readonly {
|
|
375
|
-
readonly attachments: readonly {
|
|
376
|
-
readonly bytes: number;
|
|
377
|
-
readonly file: string;
|
|
378
|
-
readonly media_type: string | null;
|
|
379
|
-
readonly name: string | null;
|
|
380
|
-
readonly referrer: {
|
|
381
|
-
readonly record: string;
|
|
382
|
-
readonly room_ref: string;
|
|
383
|
-
};
|
|
384
|
-
readonly sha256: string;
|
|
385
|
-
}[];
|
|
386
|
-
readonly body: string | null;
|
|
387
|
-
readonly claimed: unknown;
|
|
388
|
-
readonly created_at: string;
|
|
389
411
|
readonly record: string;
|
|
390
412
|
readonly ref: string;
|
|
413
|
+
readonly created_at: string;
|
|
414
|
+
readonly body: string | null;
|
|
415
|
+
readonly claimed: unknown;
|
|
391
416
|
}[];
|
|
417
|
+
readonly next_cursor?: string;
|
|
392
418
|
};
|
|
393
419
|
};
|
|
394
420
|
readonly 'relay.read': {
|
|
@@ -468,11 +494,7 @@ export interface HouseMethods {
|
|
|
468
494
|
readonly reach: 'selected';
|
|
469
495
|
readonly refs: readonly string[];
|
|
470
496
|
};
|
|
471
|
-
readonly
|
|
472
|
-
readonly id: string;
|
|
473
|
-
readonly name: string;
|
|
474
|
-
readonly origin: string;
|
|
475
|
-
}[];
|
|
497
|
+
readonly key_origins?: readonly string[];
|
|
476
498
|
readonly url: string;
|
|
477
499
|
}[];
|
|
478
500
|
};
|
|
@@ -488,11 +510,11 @@ export interface HouseMethods {
|
|
|
488
510
|
readonly name: string;
|
|
489
511
|
readonly email: string;
|
|
490
512
|
readonly used: number;
|
|
491
|
-
readonly
|
|
513
|
+
readonly allowance: number | null;
|
|
492
514
|
} | {
|
|
493
515
|
readonly room: string;
|
|
494
516
|
readonly used: number;
|
|
495
|
-
readonly
|
|
517
|
+
readonly allowance: number | null;
|
|
496
518
|
readonly url: string;
|
|
497
519
|
})[];
|
|
498
520
|
};
|
|
@@ -585,292 +607,6 @@ export interface HouseMethods {
|
|
|
585
607
|
readonly submitted: true;
|
|
586
608
|
};
|
|
587
609
|
};
|
|
588
|
-
readonly 'trigger.list': {
|
|
589
|
-
readonly params: {
|
|
590
|
-
readonly room_ref: string;
|
|
591
|
-
};
|
|
592
|
-
readonly result: {
|
|
593
|
-
readonly triggers: readonly {
|
|
594
|
-
readonly trigger: string;
|
|
595
|
-
readonly creator: {
|
|
596
|
-
readonly user: string;
|
|
597
|
-
readonly name: string;
|
|
598
|
-
};
|
|
599
|
-
readonly description: string;
|
|
600
|
-
readonly condition: {
|
|
601
|
-
readonly on: 'documents';
|
|
602
|
-
readonly scope: {
|
|
603
|
-
readonly type: string;
|
|
604
|
-
} | {
|
|
605
|
-
readonly folder: string;
|
|
606
|
-
} | {
|
|
607
|
-
readonly document: string;
|
|
608
|
-
};
|
|
609
|
-
readonly mode: 'starts_matching';
|
|
610
|
-
readonly new_documents: boolean;
|
|
611
|
-
readonly match: {
|
|
612
|
-
readonly all: readonly unknown[];
|
|
613
|
-
} | {
|
|
614
|
-
readonly any: readonly unknown[];
|
|
615
|
-
} | {
|
|
616
|
-
readonly not: unknown;
|
|
617
|
-
} | {
|
|
618
|
-
readonly path: string;
|
|
619
|
-
readonly eq: string | number | boolean;
|
|
620
|
-
} | {
|
|
621
|
-
readonly path: string;
|
|
622
|
-
readonly in: readonly (string | number | boolean)[];
|
|
623
|
-
} | {
|
|
624
|
-
readonly path: string;
|
|
625
|
-
readonly exists: boolean;
|
|
626
|
-
} | {
|
|
627
|
-
readonly path: string;
|
|
628
|
-
readonly contains: string | number | boolean;
|
|
629
|
-
} | {
|
|
630
|
-
readonly path: string;
|
|
631
|
-
readonly gt: number | string;
|
|
632
|
-
} | {
|
|
633
|
-
readonly path: string;
|
|
634
|
-
readonly gte: number | string;
|
|
635
|
-
} | {
|
|
636
|
-
readonly path: string;
|
|
637
|
-
readonly lt: number | string;
|
|
638
|
-
} | {
|
|
639
|
-
readonly path: string;
|
|
640
|
-
readonly lte: number | string;
|
|
641
|
-
} | {
|
|
642
|
-
readonly path: string;
|
|
643
|
-
readonly prefix: string;
|
|
644
|
-
};
|
|
645
|
-
readonly by?: {
|
|
646
|
-
readonly all: readonly unknown[];
|
|
647
|
-
} | {
|
|
648
|
-
readonly any: readonly unknown[];
|
|
649
|
-
} | {
|
|
650
|
-
readonly not: unknown;
|
|
651
|
-
} | {
|
|
652
|
-
readonly path: string;
|
|
653
|
-
readonly eq: string | number | boolean;
|
|
654
|
-
} | {
|
|
655
|
-
readonly path: string;
|
|
656
|
-
readonly in: readonly (string | number | boolean)[];
|
|
657
|
-
} | {
|
|
658
|
-
readonly path: string;
|
|
659
|
-
readonly exists: boolean;
|
|
660
|
-
} | {
|
|
661
|
-
readonly path: string;
|
|
662
|
-
readonly contains: string | number | boolean;
|
|
663
|
-
} | {
|
|
664
|
-
readonly path: string;
|
|
665
|
-
readonly gt: number | string;
|
|
666
|
-
} | {
|
|
667
|
-
readonly path: string;
|
|
668
|
-
readonly gte: number | string;
|
|
669
|
-
} | {
|
|
670
|
-
readonly path: string;
|
|
671
|
-
readonly lt: number | string;
|
|
672
|
-
} | {
|
|
673
|
-
readonly path: string;
|
|
674
|
-
readonly lte: number | string;
|
|
675
|
-
} | {
|
|
676
|
-
readonly path: string;
|
|
677
|
-
readonly prefix: string;
|
|
678
|
-
};
|
|
679
|
-
} | {
|
|
680
|
-
readonly on: 'documents';
|
|
681
|
-
readonly scope: {
|
|
682
|
-
readonly type: string;
|
|
683
|
-
} | {
|
|
684
|
-
readonly folder: string;
|
|
685
|
-
} | {
|
|
686
|
-
readonly document: string;
|
|
687
|
-
};
|
|
688
|
-
readonly mode: 'field_changes';
|
|
689
|
-
readonly field: string;
|
|
690
|
-
readonly from?: readonly (string | number | boolean)[] | 'new';
|
|
691
|
-
readonly to?: readonly (string | number | boolean)[] | 'deleted';
|
|
692
|
-
readonly match?: {
|
|
693
|
-
readonly all: readonly unknown[];
|
|
694
|
-
} | {
|
|
695
|
-
readonly any: readonly unknown[];
|
|
696
|
-
} | {
|
|
697
|
-
readonly not: unknown;
|
|
698
|
-
} | {
|
|
699
|
-
readonly path: string;
|
|
700
|
-
readonly eq: string | number | boolean;
|
|
701
|
-
} | {
|
|
702
|
-
readonly path: string;
|
|
703
|
-
readonly in: readonly (string | number | boolean)[];
|
|
704
|
-
} | {
|
|
705
|
-
readonly path: string;
|
|
706
|
-
readonly exists: boolean;
|
|
707
|
-
} | {
|
|
708
|
-
readonly path: string;
|
|
709
|
-
readonly contains: string | number | boolean;
|
|
710
|
-
} | {
|
|
711
|
-
readonly path: string;
|
|
712
|
-
readonly gt: number | string;
|
|
713
|
-
} | {
|
|
714
|
-
readonly path: string;
|
|
715
|
-
readonly gte: number | string;
|
|
716
|
-
} | {
|
|
717
|
-
readonly path: string;
|
|
718
|
-
readonly lt: number | string;
|
|
719
|
-
} | {
|
|
720
|
-
readonly path: string;
|
|
721
|
-
readonly lte: number | string;
|
|
722
|
-
} | {
|
|
723
|
-
readonly path: string;
|
|
724
|
-
readonly prefix: string;
|
|
725
|
-
};
|
|
726
|
-
readonly by?: {
|
|
727
|
-
readonly all: readonly unknown[];
|
|
728
|
-
} | {
|
|
729
|
-
readonly any: readonly unknown[];
|
|
730
|
-
} | {
|
|
731
|
-
readonly not: unknown;
|
|
732
|
-
} | {
|
|
733
|
-
readonly path: string;
|
|
734
|
-
readonly eq: string | number | boolean;
|
|
735
|
-
} | {
|
|
736
|
-
readonly path: string;
|
|
737
|
-
readonly in: readonly (string | number | boolean)[];
|
|
738
|
-
} | {
|
|
739
|
-
readonly path: string;
|
|
740
|
-
readonly exists: boolean;
|
|
741
|
-
} | {
|
|
742
|
-
readonly path: string;
|
|
743
|
-
readonly contains: string | number | boolean;
|
|
744
|
-
} | {
|
|
745
|
-
readonly path: string;
|
|
746
|
-
readonly gt: number | string;
|
|
747
|
-
} | {
|
|
748
|
-
readonly path: string;
|
|
749
|
-
readonly gte: number | string;
|
|
750
|
-
} | {
|
|
751
|
-
readonly path: string;
|
|
752
|
-
readonly lt: number | string;
|
|
753
|
-
} | {
|
|
754
|
-
readonly path: string;
|
|
755
|
-
readonly lte: number | string;
|
|
756
|
-
} | {
|
|
757
|
-
readonly path: string;
|
|
758
|
-
readonly prefix: string;
|
|
759
|
-
};
|
|
760
|
-
} | {
|
|
761
|
-
readonly on: 'items';
|
|
762
|
-
readonly source?: string;
|
|
763
|
-
readonly address?: string;
|
|
764
|
-
readonly match?: {
|
|
765
|
-
readonly all: readonly unknown[];
|
|
766
|
-
} | {
|
|
767
|
-
readonly any: readonly unknown[];
|
|
768
|
-
} | {
|
|
769
|
-
readonly not: unknown;
|
|
770
|
-
} | {
|
|
771
|
-
readonly path: string;
|
|
772
|
-
readonly eq: string | number | boolean;
|
|
773
|
-
} | {
|
|
774
|
-
readonly path: string;
|
|
775
|
-
readonly in: readonly (string | number | boolean)[];
|
|
776
|
-
} | {
|
|
777
|
-
readonly path: string;
|
|
778
|
-
readonly exists: boolean;
|
|
779
|
-
} | {
|
|
780
|
-
readonly path: string;
|
|
781
|
-
readonly contains: string | number | boolean;
|
|
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 on: 'clock';
|
|
800
|
-
readonly cron: string;
|
|
801
|
-
readonly time_zone: string;
|
|
802
|
-
} | {
|
|
803
|
-
readonly on: 'clock';
|
|
804
|
-
readonly scope: {
|
|
805
|
-
readonly type: string;
|
|
806
|
-
};
|
|
807
|
-
readonly date: string;
|
|
808
|
-
readonly days: number;
|
|
809
|
-
readonly at: string;
|
|
810
|
-
readonly time_zone: string;
|
|
811
|
-
readonly match?: {
|
|
812
|
-
readonly all: readonly unknown[];
|
|
813
|
-
} | {
|
|
814
|
-
readonly any: readonly unknown[];
|
|
815
|
-
} | {
|
|
816
|
-
readonly not: unknown;
|
|
817
|
-
} | {
|
|
818
|
-
readonly path: string;
|
|
819
|
-
readonly eq: string | number | boolean;
|
|
820
|
-
} | {
|
|
821
|
-
readonly path: string;
|
|
822
|
-
readonly in: readonly (string | number | boolean)[];
|
|
823
|
-
} | {
|
|
824
|
-
readonly path: string;
|
|
825
|
-
readonly exists: boolean;
|
|
826
|
-
} | {
|
|
827
|
-
readonly path: string;
|
|
828
|
-
readonly contains: string | number | boolean;
|
|
829
|
-
} | {
|
|
830
|
-
readonly path: string;
|
|
831
|
-
readonly gt: number | string;
|
|
832
|
-
} | {
|
|
833
|
-
readonly path: string;
|
|
834
|
-
readonly gte: number | string;
|
|
835
|
-
} | {
|
|
836
|
-
readonly path: string;
|
|
837
|
-
readonly lt: number | string;
|
|
838
|
-
} | {
|
|
839
|
-
readonly path: string;
|
|
840
|
-
readonly lte: number | string;
|
|
841
|
-
} | {
|
|
842
|
-
readonly path: string;
|
|
843
|
-
readonly prefix: string;
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
readonly enabled: boolean;
|
|
847
|
-
readonly paused_by?: 'types';
|
|
848
|
-
readonly actions: readonly ({
|
|
849
|
-
readonly kind: 'notify';
|
|
850
|
-
readonly enabled: boolean;
|
|
851
|
-
readonly title: string;
|
|
852
|
-
readonly text: string;
|
|
853
|
-
readonly to: {
|
|
854
|
-
readonly users: readonly string[];
|
|
855
|
-
readonly fields: readonly string[];
|
|
856
|
-
readonly roles: readonly string[];
|
|
857
|
-
};
|
|
858
|
-
readonly holds: boolean;
|
|
859
|
-
} | {
|
|
860
|
-
readonly kind: 'routine';
|
|
861
|
-
readonly enabled: boolean;
|
|
862
|
-
readonly access?: string;
|
|
863
|
-
readonly payload: string;
|
|
864
|
-
readonly references: readonly {
|
|
865
|
-
readonly room_ref: string;
|
|
866
|
-
readonly ref: string;
|
|
867
|
-
readonly url: string;
|
|
868
|
-
}[];
|
|
869
|
-
readonly holds: boolean;
|
|
870
|
-
})[];
|
|
871
|
-
}[];
|
|
872
|
-
};
|
|
873
|
-
};
|
|
874
610
|
readonly 'triggerOccurrence.list': {
|
|
875
611
|
readonly params: {
|
|
876
612
|
readonly room_ref: string;
|
|
@@ -889,10 +625,15 @@ export interface HouseMethods {
|
|
|
889
625
|
} | {
|
|
890
626
|
readonly position: number;
|
|
891
627
|
readonly outcome: 'no_target';
|
|
628
|
+
readonly code: 'no_recipient' | 'routine_access_not_found' | 'routine_retired' | 'target_agent_unavailable' | 'app_not_found' | 'app_function_not_found';
|
|
892
629
|
} | {
|
|
893
630
|
readonly position: number;
|
|
894
631
|
readonly outcome: 'requested';
|
|
895
632
|
readonly request: string;
|
|
633
|
+
} | {
|
|
634
|
+
readonly position: number;
|
|
635
|
+
readonly outcome: 'continued';
|
|
636
|
+
readonly request: string;
|
|
896
637
|
} | {
|
|
897
638
|
readonly position: number;
|
|
898
639
|
readonly outcome: 'refused';
|
|
@@ -901,12 +642,12 @@ export interface HouseMethods {
|
|
|
901
642
|
readonly position: number;
|
|
902
643
|
readonly outcome: 'refused';
|
|
903
644
|
readonly code: 'limit_reached';
|
|
904
|
-
readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | '
|
|
645
|
+
readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | 'mcp_reads' | 'mcp_downloads' | 'external_calls' | 'routine_requests' | 'routine_mail';
|
|
905
646
|
} | {
|
|
906
647
|
readonly position: number;
|
|
907
648
|
readonly outcome: 'refused';
|
|
908
649
|
readonly code: 'limit_reached';
|
|
909
|
-
readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | '
|
|
650
|
+
readonly limit: 'sites' | 'custom_domains' | 'publish_data' | 'site_submissions' | 'mcp_reads' | 'mcp_downloads' | 'external_calls' | 'routine_requests' | 'routine_mail';
|
|
910
651
|
readonly retry_at: string;
|
|
911
652
|
} | {
|
|
912
653
|
readonly position: number;
|
|
@@ -927,22 +668,49 @@ export interface HouseMethods {
|
|
|
927
668
|
readonly position: number;
|
|
928
669
|
readonly outcome: 'refused';
|
|
929
670
|
readonly code: 'limit_reached';
|
|
930
|
-
readonly limit: '
|
|
671
|
+
readonly limit: 'writes';
|
|
931
672
|
readonly period: 'minute' | 'day';
|
|
932
673
|
readonly retry_at: string;
|
|
933
674
|
} | {
|
|
934
675
|
readonly position: number;
|
|
935
676
|
readonly outcome: 'refused';
|
|
936
|
-
readonly code: '
|
|
937
|
-
readonly
|
|
938
|
-
|
|
677
|
+
readonly code: 'cap_reached';
|
|
678
|
+
readonly cap: 'address_submissions' | 'writes' | 'push_addresses' | 'push_deliveries' | 'service_keys' | 'shared_schemas' | 'export_starts' | 'share_creations' | 'share_room_creations' | 'live_shares' | 'ownership_offers' | 'site_rooms' | 'slot_rooms' | 'room_triggers' | 'app_sockets' | 'kit_connections' | 'open_uploads' | 'waiting_web_wizards' | 'folder_subscriptions';
|
|
679
|
+
} | {
|
|
680
|
+
readonly position: number;
|
|
681
|
+
readonly outcome: 'refused';
|
|
682
|
+
readonly code: 'cap_reached';
|
|
683
|
+
readonly cap: 'address_submissions' | 'writes' | 'push_addresses' | 'push_deliveries' | 'service_keys' | 'shared_schemas' | 'export_starts' | 'share_creations' | 'share_room_creations' | 'live_shares' | 'ownership_offers' | 'site_rooms' | 'slot_rooms' | 'room_triggers' | 'app_sockets' | 'kit_connections' | 'open_uploads' | 'waiting_web_wizards' | 'folder_subscriptions';
|
|
939
684
|
readonly retry_at: string;
|
|
940
685
|
} | {
|
|
941
686
|
readonly position: number;
|
|
942
687
|
readonly outcome: 'withdrawn';
|
|
688
|
+
readonly code: 'agent_unavailable';
|
|
689
|
+
} | {
|
|
690
|
+
readonly position: number;
|
|
691
|
+
readonly outcome: 'failed';
|
|
692
|
+
readonly code: 'internal_error' | 'routine_request_not_started';
|
|
943
693
|
} | {
|
|
944
694
|
readonly position: number;
|
|
945
695
|
readonly outcome: 'failed';
|
|
696
|
+
readonly code: 'function_failed';
|
|
697
|
+
readonly error: string;
|
|
698
|
+
readonly release: string;
|
|
699
|
+
readonly final: true;
|
|
700
|
+
} | {
|
|
701
|
+
readonly position: number;
|
|
702
|
+
readonly outcome: 'failed';
|
|
703
|
+
readonly code: 'function_not_started';
|
|
704
|
+
readonly tries: number;
|
|
705
|
+
readonly final?: true;
|
|
706
|
+
} | {
|
|
707
|
+
readonly position: number;
|
|
708
|
+
readonly outcome: 'running';
|
|
709
|
+
readonly release: string;
|
|
710
|
+
} | {
|
|
711
|
+
readonly position: number;
|
|
712
|
+
readonly outcome: 'ran';
|
|
713
|
+
readonly release: string;
|
|
946
714
|
} | {
|
|
947
715
|
readonly position: number;
|
|
948
716
|
readonly outcome: 'waiting';
|