@segmentstream/ontology 0.150.2 → 0.152.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.
- package/CHANGELOG.md +47 -0
- package/README.md +2 -2
- package/dist/agent-chat.d.ts +6 -1
- package/dist/agent-chat.js +9 -6
- package/dist/analyze.d.ts +16 -0
- package/dist/analyze.js +71 -19
- package/dist/chat.d.ts +25 -3
- package/dist/chat.js +17 -1
- package/dist/files.d.ts +7 -0
- package/dist/files.js +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/manifest.d.ts +272 -54
- package/dist/manifest.js +44 -6
- package/dist/migrate/model.d.ts +164 -36
- package/dist/runtime/agents.js +40 -27
- package/dist/runtime/chat-messages.d.ts +7 -2
- package/dist/runtime/chat-messages.js +41 -14
- package/dist/service/agent/protocol.js +2 -1
- package/dist/service/agent/server.js +4 -4
- package/dist/service/chat/delivery.js +3 -1
- package/dist/service/chat/history-import.d.ts +19 -5
- package/dist/service/chat/history-import.js +183 -8
- package/dist/service/runtime-contract.d.ts +6 -4
- package/dist/service/schemas.d.ts +32 -0
- package/dist/storage/attachments.d.ts +40 -9
- package/dist/storage/attachments.js +185 -21
- package/dist/storage/sessions.js +16 -8
- package/dist/storage/tables.d.ts +2 -1
- package/dist/storage/tables.js +2 -1
- package/package.json +1 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -105,6 +105,9 @@ import { type ResolvedGuest, type ResolvedSignInOptions, type SignInPolicy } fro
|
|
|
105
105
|
* publication adds a daily cron for that route. Within version 16, `chat` may carry
|
|
106
106
|
* `retention_days`, written only when declared, and then also without a channel: how many days
|
|
107
107
|
* the workspace keeps its chats' messages. Older readers ignore it and keep them 365 days.
|
|
108
|
+
* Within version 16, `inbox` may carry `channels`, written only when declared: the channels whose
|
|
109
|
+
* chats with people who are no users the agent registers as `agent_chat` records of kind
|
|
110
|
+
* `private` without members. Older readers ignore it and register no chat without members.
|
|
108
111
|
*/
|
|
109
112
|
export declare const MANIFEST_VERSION = 16;
|
|
110
113
|
/** The phrase used for a direction the author did not phrase. */
|
|
@@ -1294,24 +1297,41 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1294
1297
|
* declared connection, and the attribution it adds. Absent, or without a channel, delivers
|
|
1295
1298
|
* nowhere. The channel named after each kind has its key; `channels` holds the others by name,
|
|
1296
1299
|
* with their kinds. `email`, within version 15, is the mailbox reviewed replies to mail leave
|
|
1297
|
-
* from; no chat post goes to it, nor to another channel of its kind.
|
|
1300
|
+
* from; no chat post goes to it, nor to another channel of its kind. Within version 16, a
|
|
1301
|
+
* channel may carry `files: { keep: true }`, written only when declared: its chats keep their
|
|
1302
|
+
* files as long as their messages. Older readers ignore it and keep files 24 hours.
|
|
1298
1303
|
*/
|
|
1299
1304
|
readonly chat: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
1300
1305
|
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
1301
1306
|
readonly connection: Schema.String;
|
|
1307
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1308
|
+
readonly keep: Schema.Boolean;
|
|
1309
|
+
}>>;
|
|
1302
1310
|
}>>;
|
|
1303
1311
|
readonly slack: Schema.optionalKey<Schema.Struct<{
|
|
1304
1312
|
readonly connection: Schema.String;
|
|
1313
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1314
|
+
readonly keep: Schema.Boolean;
|
|
1315
|
+
}>>;
|
|
1305
1316
|
}>>;
|
|
1306
1317
|
readonly whatsapp: Schema.optionalKey<Schema.Struct<{
|
|
1307
1318
|
readonly connection: Schema.String;
|
|
1319
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1320
|
+
readonly keep: Schema.Boolean;
|
|
1321
|
+
}>>;
|
|
1308
1322
|
}>>;
|
|
1309
1323
|
readonly email: Schema.optionalKey<Schema.Struct<{
|
|
1310
1324
|
readonly connection: Schema.String;
|
|
1325
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1326
|
+
readonly keep: Schema.Boolean;
|
|
1327
|
+
}>>;
|
|
1311
1328
|
}>>;
|
|
1312
1329
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
1313
1330
|
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
1314
1331
|
readonly connection: Schema.optionalKey<Schema.String>;
|
|
1332
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
1333
|
+
readonly keep: Schema.Boolean;
|
|
1334
|
+
}>>;
|
|
1315
1335
|
}>>>;
|
|
1316
1336
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
1317
1337
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -1327,10 +1347,13 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1327
1347
|
* channels whose chats staff may take over from the agent, and `attribution: "none"` when a
|
|
1328
1348
|
* member's own reply there goes without their name. Written only when declared; absent
|
|
1329
1349
|
* registers no private chat, absent `takeover` lets no chat be taken over, absent `attribution`
|
|
1330
|
-
* signs replies, and older readers ignore all three.
|
|
1350
|
+
* signs replies, and older readers ignore all three. Within version 16, `channels`, written only
|
|
1351
|
+
* when it lists some, names the channels whose chats with people who are no users join it too,
|
|
1352
|
+
* without members; absent registers none.
|
|
1331
1353
|
*/
|
|
1332
1354
|
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
1333
1355
|
readonly roles: Schema.$Array<Schema.String>;
|
|
1356
|
+
readonly channels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1334
1357
|
readonly takeover: Schema.optionalKey<Schema.Struct<{
|
|
1335
1358
|
readonly channels: Schema.$Array<Schema.String>;
|
|
1336
1359
|
}>>;
|
|
@@ -1573,13 +1596,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1573
1596
|
readonly [x: string]: Schema.Json;
|
|
1574
1597
|
};
|
|
1575
1598
|
readonly permission?: string | undefined;
|
|
1576
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1577
|
-
readonly writes?: readonly string[] | undefined;
|
|
1578
|
-
readonly connections?: readonly string[] | undefined;
|
|
1579
1599
|
readonly files?: readonly {
|
|
1580
1600
|
readonly entity: string;
|
|
1581
1601
|
readonly property: string;
|
|
1582
1602
|
}[] | undefined;
|
|
1603
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1604
|
+
readonly writes?: readonly string[] | undefined;
|
|
1605
|
+
readonly connections?: readonly string[] | undefined;
|
|
1583
1606
|
readonly hints?: {
|
|
1584
1607
|
readonly readOnly?: boolean | undefined;
|
|
1585
1608
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1620,19 +1643,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1620
1643
|
readonly chat?: {
|
|
1621
1644
|
readonly telegram?: {
|
|
1622
1645
|
readonly connection: string;
|
|
1646
|
+
readonly files?: {
|
|
1647
|
+
readonly keep: boolean;
|
|
1648
|
+
} | undefined;
|
|
1623
1649
|
} | undefined;
|
|
1624
1650
|
readonly slack?: {
|
|
1625
1651
|
readonly connection: string;
|
|
1652
|
+
readonly files?: {
|
|
1653
|
+
readonly keep: boolean;
|
|
1654
|
+
} | undefined;
|
|
1626
1655
|
} | undefined;
|
|
1627
1656
|
readonly whatsapp?: {
|
|
1628
1657
|
readonly connection: string;
|
|
1658
|
+
readonly files?: {
|
|
1659
|
+
readonly keep: boolean;
|
|
1660
|
+
} | undefined;
|
|
1629
1661
|
} | undefined;
|
|
1630
1662
|
readonly email?: {
|
|
1631
1663
|
readonly connection: string;
|
|
1664
|
+
readonly files?: {
|
|
1665
|
+
readonly keep: boolean;
|
|
1666
|
+
} | undefined;
|
|
1632
1667
|
} | undefined;
|
|
1633
1668
|
readonly channels?: {
|
|
1634
1669
|
readonly [x: string]: {
|
|
1635
1670
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
1671
|
+
readonly files?: {
|
|
1672
|
+
readonly keep: boolean;
|
|
1673
|
+
} | undefined;
|
|
1636
1674
|
readonly connection?: string | undefined;
|
|
1637
1675
|
};
|
|
1638
1676
|
} | undefined;
|
|
@@ -1817,6 +1855,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1817
1855
|
} | undefined;
|
|
1818
1856
|
readonly inbox?: {
|
|
1819
1857
|
readonly roles: readonly string[];
|
|
1858
|
+
readonly channels?: readonly string[] | undefined;
|
|
1820
1859
|
readonly attribution?: "name" | "none" | undefined;
|
|
1821
1860
|
readonly takeover?: {
|
|
1822
1861
|
readonly channels: readonly string[];
|
|
@@ -1841,13 +1880,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1841
1880
|
readonly [x: string]: Schema.Json;
|
|
1842
1881
|
};
|
|
1843
1882
|
readonly permission?: string | undefined;
|
|
1844
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1845
|
-
readonly writes?: readonly string[] | undefined;
|
|
1846
|
-
readonly connections?: readonly string[] | undefined;
|
|
1847
1883
|
readonly files?: readonly {
|
|
1848
1884
|
readonly entity: string;
|
|
1849
1885
|
readonly property: string;
|
|
1850
1886
|
}[] | undefined;
|
|
1887
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1888
|
+
readonly writes?: readonly string[] | undefined;
|
|
1889
|
+
readonly connections?: readonly string[] | undefined;
|
|
1851
1890
|
readonly hints?: {
|
|
1852
1891
|
readonly readOnly?: boolean | undefined;
|
|
1853
1892
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1929,13 +1968,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1929
1968
|
readonly [x: string]: Schema.Json;
|
|
1930
1969
|
};
|
|
1931
1970
|
readonly permission?: string | undefined;
|
|
1932
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1933
|
-
readonly writes?: readonly string[] | undefined;
|
|
1934
|
-
readonly connections?: readonly string[] | undefined;
|
|
1935
1971
|
readonly files?: readonly {
|
|
1936
1972
|
readonly entity: string;
|
|
1937
1973
|
readonly property: string;
|
|
1938
1974
|
}[] | undefined;
|
|
1975
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1976
|
+
readonly writes?: readonly string[] | undefined;
|
|
1977
|
+
readonly connections?: readonly string[] | undefined;
|
|
1939
1978
|
readonly hints?: {
|
|
1940
1979
|
readonly readOnly?: boolean | undefined;
|
|
1941
1980
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1976,19 +2015,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1976
2015
|
readonly chat?: {
|
|
1977
2016
|
readonly telegram?: {
|
|
1978
2017
|
readonly connection: string;
|
|
2018
|
+
readonly files?: {
|
|
2019
|
+
readonly keep: boolean;
|
|
2020
|
+
} | undefined;
|
|
1979
2021
|
} | undefined;
|
|
1980
2022
|
readonly slack?: {
|
|
1981
2023
|
readonly connection: string;
|
|
2024
|
+
readonly files?: {
|
|
2025
|
+
readonly keep: boolean;
|
|
2026
|
+
} | undefined;
|
|
1982
2027
|
} | undefined;
|
|
1983
2028
|
readonly whatsapp?: {
|
|
1984
2029
|
readonly connection: string;
|
|
2030
|
+
readonly files?: {
|
|
2031
|
+
readonly keep: boolean;
|
|
2032
|
+
} | undefined;
|
|
1985
2033
|
} | undefined;
|
|
1986
2034
|
readonly email?: {
|
|
1987
2035
|
readonly connection: string;
|
|
2036
|
+
readonly files?: {
|
|
2037
|
+
readonly keep: boolean;
|
|
2038
|
+
} | undefined;
|
|
1988
2039
|
} | undefined;
|
|
1989
2040
|
readonly channels?: {
|
|
1990
2041
|
readonly [x: string]: {
|
|
1991
2042
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2043
|
+
readonly files?: {
|
|
2044
|
+
readonly keep: boolean;
|
|
2045
|
+
} | undefined;
|
|
1992
2046
|
readonly connection?: string | undefined;
|
|
1993
2047
|
};
|
|
1994
2048
|
} | undefined;
|
|
@@ -2173,6 +2227,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2173
2227
|
} | undefined;
|
|
2174
2228
|
readonly inbox?: {
|
|
2175
2229
|
readonly roles: readonly string[];
|
|
2230
|
+
readonly channels?: readonly string[] | undefined;
|
|
2176
2231
|
readonly attribution?: "name" | "none" | undefined;
|
|
2177
2232
|
readonly takeover?: {
|
|
2178
2233
|
readonly channels: readonly string[];
|
|
@@ -2197,13 +2252,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2197
2252
|
readonly [x: string]: Schema.Json;
|
|
2198
2253
|
};
|
|
2199
2254
|
readonly permission?: string | undefined;
|
|
2200
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2201
|
-
readonly writes?: readonly string[] | undefined;
|
|
2202
|
-
readonly connections?: readonly string[] | undefined;
|
|
2203
2255
|
readonly files?: readonly {
|
|
2204
2256
|
readonly entity: string;
|
|
2205
2257
|
readonly property: string;
|
|
2206
2258
|
}[] | undefined;
|
|
2259
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2260
|
+
readonly writes?: readonly string[] | undefined;
|
|
2261
|
+
readonly connections?: readonly string[] | undefined;
|
|
2207
2262
|
readonly hints?: {
|
|
2208
2263
|
readonly readOnly?: boolean | undefined;
|
|
2209
2264
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2285,13 +2340,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2285
2340
|
readonly [x: string]: Schema.Json;
|
|
2286
2341
|
};
|
|
2287
2342
|
readonly permission?: string | undefined;
|
|
2288
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2289
|
-
readonly writes?: readonly string[] | undefined;
|
|
2290
|
-
readonly connections?: readonly string[] | undefined;
|
|
2291
2343
|
readonly files?: readonly {
|
|
2292
2344
|
readonly entity: string;
|
|
2293
2345
|
readonly property: string;
|
|
2294
2346
|
}[] | undefined;
|
|
2347
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2348
|
+
readonly writes?: readonly string[] | undefined;
|
|
2349
|
+
readonly connections?: readonly string[] | undefined;
|
|
2295
2350
|
readonly hints?: {
|
|
2296
2351
|
readonly readOnly?: boolean | undefined;
|
|
2297
2352
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2332,19 +2387,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2332
2387
|
readonly chat?: {
|
|
2333
2388
|
readonly telegram?: {
|
|
2334
2389
|
readonly connection: string;
|
|
2390
|
+
readonly files?: {
|
|
2391
|
+
readonly keep: boolean;
|
|
2392
|
+
} | undefined;
|
|
2335
2393
|
} | undefined;
|
|
2336
2394
|
readonly slack?: {
|
|
2337
2395
|
readonly connection: string;
|
|
2396
|
+
readonly files?: {
|
|
2397
|
+
readonly keep: boolean;
|
|
2398
|
+
} | undefined;
|
|
2338
2399
|
} | undefined;
|
|
2339
2400
|
readonly whatsapp?: {
|
|
2340
2401
|
readonly connection: string;
|
|
2402
|
+
readonly files?: {
|
|
2403
|
+
readonly keep: boolean;
|
|
2404
|
+
} | undefined;
|
|
2341
2405
|
} | undefined;
|
|
2342
2406
|
readonly email?: {
|
|
2343
2407
|
readonly connection: string;
|
|
2408
|
+
readonly files?: {
|
|
2409
|
+
readonly keep: boolean;
|
|
2410
|
+
} | undefined;
|
|
2344
2411
|
} | undefined;
|
|
2345
2412
|
readonly channels?: {
|
|
2346
2413
|
readonly [x: string]: {
|
|
2347
2414
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2415
|
+
readonly files?: {
|
|
2416
|
+
readonly keep: boolean;
|
|
2417
|
+
} | undefined;
|
|
2348
2418
|
readonly connection?: string | undefined;
|
|
2349
2419
|
};
|
|
2350
2420
|
} | undefined;
|
|
@@ -2492,6 +2562,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2492
2562
|
} | undefined;
|
|
2493
2563
|
readonly inbox?: {
|
|
2494
2564
|
readonly roles: readonly string[];
|
|
2565
|
+
readonly channels?: readonly string[] | undefined;
|
|
2495
2566
|
readonly attribution?: "name" | "none" | undefined;
|
|
2496
2567
|
readonly takeover?: {
|
|
2497
2568
|
readonly channels: readonly string[];
|
|
@@ -2516,13 +2587,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2516
2587
|
readonly [x: string]: Schema.Json;
|
|
2517
2588
|
};
|
|
2518
2589
|
readonly permission?: string | undefined;
|
|
2519
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2520
|
-
readonly writes?: readonly string[] | undefined;
|
|
2521
|
-
readonly connections?: readonly string[] | undefined;
|
|
2522
2590
|
readonly files?: readonly {
|
|
2523
2591
|
readonly entity: string;
|
|
2524
2592
|
readonly property: string;
|
|
2525
2593
|
}[] | undefined;
|
|
2594
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2595
|
+
readonly writes?: readonly string[] | undefined;
|
|
2596
|
+
readonly connections?: readonly string[] | undefined;
|
|
2526
2597
|
readonly hints?: {
|
|
2527
2598
|
readonly readOnly?: boolean | undefined;
|
|
2528
2599
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2641,13 +2712,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2641
2712
|
readonly [x: string]: Schema.Json;
|
|
2642
2713
|
};
|
|
2643
2714
|
readonly permission?: string | undefined;
|
|
2644
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2645
|
-
readonly writes?: readonly string[] | undefined;
|
|
2646
|
-
readonly connections?: readonly string[] | undefined;
|
|
2647
2715
|
readonly files?: readonly {
|
|
2648
2716
|
readonly entity: string;
|
|
2649
2717
|
readonly property: string;
|
|
2650
2718
|
}[] | undefined;
|
|
2719
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2720
|
+
readonly writes?: readonly string[] | undefined;
|
|
2721
|
+
readonly connections?: readonly string[] | undefined;
|
|
2651
2722
|
readonly hints?: {
|
|
2652
2723
|
readonly readOnly?: boolean | undefined;
|
|
2653
2724
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2688,19 +2759,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2688
2759
|
readonly chat?: {
|
|
2689
2760
|
readonly telegram?: {
|
|
2690
2761
|
readonly connection: string;
|
|
2762
|
+
readonly files?: {
|
|
2763
|
+
readonly keep: boolean;
|
|
2764
|
+
} | undefined;
|
|
2691
2765
|
} | undefined;
|
|
2692
2766
|
readonly slack?: {
|
|
2693
2767
|
readonly connection: string;
|
|
2768
|
+
readonly files?: {
|
|
2769
|
+
readonly keep: boolean;
|
|
2770
|
+
} | undefined;
|
|
2694
2771
|
} | undefined;
|
|
2695
2772
|
readonly whatsapp?: {
|
|
2696
2773
|
readonly connection: string;
|
|
2774
|
+
readonly files?: {
|
|
2775
|
+
readonly keep: boolean;
|
|
2776
|
+
} | undefined;
|
|
2697
2777
|
} | undefined;
|
|
2698
2778
|
readonly email?: {
|
|
2699
2779
|
readonly connection: string;
|
|
2780
|
+
readonly files?: {
|
|
2781
|
+
readonly keep: boolean;
|
|
2782
|
+
} | undefined;
|
|
2700
2783
|
} | undefined;
|
|
2701
2784
|
readonly channels?: {
|
|
2702
2785
|
readonly [x: string]: {
|
|
2703
2786
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2787
|
+
readonly files?: {
|
|
2788
|
+
readonly keep: boolean;
|
|
2789
|
+
} | undefined;
|
|
2704
2790
|
readonly connection?: string | undefined;
|
|
2705
2791
|
};
|
|
2706
2792
|
} | undefined;
|
|
@@ -2885,6 +2971,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2885
2971
|
} | undefined;
|
|
2886
2972
|
readonly inbox?: {
|
|
2887
2973
|
readonly roles: readonly string[];
|
|
2974
|
+
readonly channels?: readonly string[] | undefined;
|
|
2888
2975
|
readonly attribution?: "name" | "none" | undefined;
|
|
2889
2976
|
readonly takeover?: {
|
|
2890
2977
|
readonly channels: readonly string[];
|
|
@@ -2909,13 +2996,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2909
2996
|
readonly [x: string]: Schema.Json;
|
|
2910
2997
|
};
|
|
2911
2998
|
readonly permission?: string | undefined;
|
|
2912
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2913
|
-
readonly writes?: readonly string[] | undefined;
|
|
2914
|
-
readonly connections?: readonly string[] | undefined;
|
|
2915
2999
|
readonly files?: readonly {
|
|
2916
3000
|
readonly entity: string;
|
|
2917
3001
|
readonly property: string;
|
|
2918
3002
|
}[] | undefined;
|
|
3003
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
3004
|
+
readonly writes?: readonly string[] | undefined;
|
|
3005
|
+
readonly connections?: readonly string[] | undefined;
|
|
2919
3006
|
readonly hints?: {
|
|
2920
3007
|
readonly readOnly?: boolean | undefined;
|
|
2921
3008
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -3215,24 +3302,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3215
3302
|
* declared connection, and the attribution it adds. Absent, or without a channel, delivers
|
|
3216
3303
|
* nowhere. The channel named after each kind has its key; `channels` holds the others by name,
|
|
3217
3304
|
* with their kinds. `email`, within version 15, is the mailbox reviewed replies to mail leave
|
|
3218
|
-
* from; no chat post goes to it, nor to another channel of its kind.
|
|
3305
|
+
* from; no chat post goes to it, nor to another channel of its kind. Within version 16, a
|
|
3306
|
+
* channel may carry `files: { keep: true }`, written only when declared: its chats keep their
|
|
3307
|
+
* files as long as their messages. Older readers ignore it and keep files 24 hours.
|
|
3219
3308
|
*/
|
|
3220
3309
|
readonly chat: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
3221
3310
|
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
3222
3311
|
readonly connection: Schema.String;
|
|
3312
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3313
|
+
readonly keep: Schema.Boolean;
|
|
3314
|
+
}>>;
|
|
3223
3315
|
}>>;
|
|
3224
3316
|
readonly slack: Schema.optionalKey<Schema.Struct<{
|
|
3225
3317
|
readonly connection: Schema.String;
|
|
3318
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3319
|
+
readonly keep: Schema.Boolean;
|
|
3320
|
+
}>>;
|
|
3226
3321
|
}>>;
|
|
3227
3322
|
readonly whatsapp: Schema.optionalKey<Schema.Struct<{
|
|
3228
3323
|
readonly connection: Schema.String;
|
|
3324
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3325
|
+
readonly keep: Schema.Boolean;
|
|
3326
|
+
}>>;
|
|
3229
3327
|
}>>;
|
|
3230
3328
|
readonly email: Schema.optionalKey<Schema.Struct<{
|
|
3231
3329
|
readonly connection: Schema.String;
|
|
3330
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3331
|
+
readonly keep: Schema.Boolean;
|
|
3332
|
+
}>>;
|
|
3232
3333
|
}>>;
|
|
3233
3334
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
3234
3335
|
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
3235
3336
|
readonly connection: Schema.optionalKey<Schema.String>;
|
|
3337
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3338
|
+
readonly keep: Schema.Boolean;
|
|
3339
|
+
}>>;
|
|
3236
3340
|
}>>>;
|
|
3237
3341
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
3238
3342
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -3248,10 +3352,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3248
3352
|
* channels whose chats staff may take over from the agent, and `attribution: "none"` when a
|
|
3249
3353
|
* member's own reply there goes without their name. Written only when declared; absent
|
|
3250
3354
|
* registers no private chat, absent `takeover` lets no chat be taken over, absent `attribution`
|
|
3251
|
-
* signs replies, and older readers ignore all three.
|
|
3355
|
+
* signs replies, and older readers ignore all three. Within version 16, `channels`, written only
|
|
3356
|
+
* when it lists some, names the channels whose chats with people who are no users join it too,
|
|
3357
|
+
* without members; absent registers none.
|
|
3252
3358
|
*/
|
|
3253
3359
|
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
3254
3360
|
readonly roles: Schema.$Array<Schema.String>;
|
|
3361
|
+
readonly channels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3255
3362
|
readonly takeover: Schema.optionalKey<Schema.Struct<{
|
|
3256
3363
|
readonly channels: Schema.$Array<Schema.String>;
|
|
3257
3364
|
}>>;
|
|
@@ -3698,24 +3805,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3698
3805
|
* declared connection, and the attribution it adds. Absent, or without a channel, delivers
|
|
3699
3806
|
* nowhere. The channel named after each kind has its key; `channels` holds the others by name,
|
|
3700
3807
|
* with their kinds. `email`, within version 15, is the mailbox reviewed replies to mail leave
|
|
3701
|
-
* from; no chat post goes to it, nor to another channel of its kind.
|
|
3808
|
+
* from; no chat post goes to it, nor to another channel of its kind. Within version 16, a
|
|
3809
|
+
* channel may carry `files: { keep: true }`, written only when declared: its chats keep their
|
|
3810
|
+
* files as long as their messages. Older readers ignore it and keep files 24 hours.
|
|
3702
3811
|
*/
|
|
3703
3812
|
readonly chat: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
3704
3813
|
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
3705
3814
|
readonly connection: Schema.String;
|
|
3815
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3816
|
+
readonly keep: Schema.Boolean;
|
|
3817
|
+
}>>;
|
|
3706
3818
|
}>>;
|
|
3707
3819
|
readonly slack: Schema.optionalKey<Schema.Struct<{
|
|
3708
3820
|
readonly connection: Schema.String;
|
|
3821
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3822
|
+
readonly keep: Schema.Boolean;
|
|
3823
|
+
}>>;
|
|
3709
3824
|
}>>;
|
|
3710
3825
|
readonly whatsapp: Schema.optionalKey<Schema.Struct<{
|
|
3711
3826
|
readonly connection: Schema.String;
|
|
3827
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3828
|
+
readonly keep: Schema.Boolean;
|
|
3829
|
+
}>>;
|
|
3712
3830
|
}>>;
|
|
3713
3831
|
readonly email: Schema.optionalKey<Schema.Struct<{
|
|
3714
3832
|
readonly connection: Schema.String;
|
|
3833
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3834
|
+
readonly keep: Schema.Boolean;
|
|
3835
|
+
}>>;
|
|
3715
3836
|
}>>;
|
|
3716
3837
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
3717
3838
|
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
3718
3839
|
readonly connection: Schema.optionalKey<Schema.String>;
|
|
3840
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
3841
|
+
readonly keep: Schema.Boolean;
|
|
3842
|
+
}>>;
|
|
3719
3843
|
}>>>;
|
|
3720
3844
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
3721
3845
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -3731,10 +3855,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3731
3855
|
* channels whose chats staff may take over from the agent, and `attribution: "none"` when a
|
|
3732
3856
|
* member's own reply there goes without their name. Written only when declared; absent
|
|
3733
3857
|
* registers no private chat, absent `takeover` lets no chat be taken over, absent `attribution`
|
|
3734
|
-
* signs replies, and older readers ignore all three.
|
|
3858
|
+
* signs replies, and older readers ignore all three. Within version 16, `channels`, written only
|
|
3859
|
+
* when it lists some, names the channels whose chats with people who are no users join it too,
|
|
3860
|
+
* without members; absent registers none.
|
|
3735
3861
|
*/
|
|
3736
3862
|
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
3737
3863
|
readonly roles: Schema.$Array<Schema.String>;
|
|
3864
|
+
readonly channels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
3738
3865
|
readonly takeover: Schema.optionalKey<Schema.Struct<{
|
|
3739
3866
|
readonly channels: Schema.$Array<Schema.String>;
|
|
3740
3867
|
}>>;
|
|
@@ -3969,13 +4096,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3969
4096
|
readonly [x: string]: Schema.Json;
|
|
3970
4097
|
};
|
|
3971
4098
|
readonly permission?: string | undefined;
|
|
3972
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
3973
|
-
readonly writes?: readonly string[] | undefined;
|
|
3974
|
-
readonly connections?: readonly string[] | undefined;
|
|
3975
4099
|
readonly files?: readonly {
|
|
3976
4100
|
readonly entity: string;
|
|
3977
4101
|
readonly property: string;
|
|
3978
4102
|
}[] | undefined;
|
|
4103
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
4104
|
+
readonly writes?: readonly string[] | undefined;
|
|
4105
|
+
readonly connections?: readonly string[] | undefined;
|
|
3979
4106
|
readonly hints?: {
|
|
3980
4107
|
readonly readOnly?: boolean | undefined;
|
|
3981
4108
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -4016,19 +4143,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4016
4143
|
readonly chat?: {
|
|
4017
4144
|
readonly telegram?: {
|
|
4018
4145
|
readonly connection: string;
|
|
4146
|
+
readonly files?: {
|
|
4147
|
+
readonly keep: boolean;
|
|
4148
|
+
} | undefined;
|
|
4019
4149
|
} | undefined;
|
|
4020
4150
|
readonly slack?: {
|
|
4021
4151
|
readonly connection: string;
|
|
4152
|
+
readonly files?: {
|
|
4153
|
+
readonly keep: boolean;
|
|
4154
|
+
} | undefined;
|
|
4022
4155
|
} | undefined;
|
|
4023
4156
|
readonly whatsapp?: {
|
|
4024
4157
|
readonly connection: string;
|
|
4158
|
+
readonly files?: {
|
|
4159
|
+
readonly keep: boolean;
|
|
4160
|
+
} | undefined;
|
|
4025
4161
|
} | undefined;
|
|
4026
4162
|
readonly email?: {
|
|
4027
4163
|
readonly connection: string;
|
|
4164
|
+
readonly files?: {
|
|
4165
|
+
readonly keep: boolean;
|
|
4166
|
+
} | undefined;
|
|
4028
4167
|
} | undefined;
|
|
4029
4168
|
readonly channels?: {
|
|
4030
4169
|
readonly [x: string]: {
|
|
4031
4170
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
4171
|
+
readonly files?: {
|
|
4172
|
+
readonly keep: boolean;
|
|
4173
|
+
} | undefined;
|
|
4032
4174
|
readonly connection?: string | undefined;
|
|
4033
4175
|
};
|
|
4034
4176
|
} | undefined;
|
|
@@ -4213,6 +4355,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4213
4355
|
} | undefined;
|
|
4214
4356
|
readonly inbox?: {
|
|
4215
4357
|
readonly roles: readonly string[];
|
|
4358
|
+
readonly channels?: readonly string[] | undefined;
|
|
4216
4359
|
readonly attribution?: "name" | "none" | undefined;
|
|
4217
4360
|
readonly takeover?: {
|
|
4218
4361
|
readonly channels: readonly string[];
|
|
@@ -4237,13 +4380,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4237
4380
|
readonly [x: string]: Schema.Json;
|
|
4238
4381
|
};
|
|
4239
4382
|
readonly permission?: string | undefined;
|
|
4240
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
4241
|
-
readonly writes?: readonly string[] | undefined;
|
|
4242
|
-
readonly connections?: readonly string[] | undefined;
|
|
4243
4383
|
readonly files?: readonly {
|
|
4244
4384
|
readonly entity: string;
|
|
4245
4385
|
readonly property: string;
|
|
4246
4386
|
}[] | undefined;
|
|
4387
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
4388
|
+
readonly writes?: readonly string[] | undefined;
|
|
4389
|
+
readonly connections?: readonly string[] | undefined;
|
|
4247
4390
|
readonly hints?: {
|
|
4248
4391
|
readonly readOnly?: boolean | undefined;
|
|
4249
4392
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -4325,13 +4468,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4325
4468
|
readonly [x: string]: Schema.Json;
|
|
4326
4469
|
};
|
|
4327
4470
|
readonly permission?: string | undefined;
|
|
4328
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
4329
|
-
readonly writes?: readonly string[] | undefined;
|
|
4330
|
-
readonly connections?: readonly string[] | undefined;
|
|
4331
4471
|
readonly files?: readonly {
|
|
4332
4472
|
readonly entity: string;
|
|
4333
4473
|
readonly property: string;
|
|
4334
4474
|
}[] | undefined;
|
|
4475
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
4476
|
+
readonly writes?: readonly string[] | undefined;
|
|
4477
|
+
readonly connections?: readonly string[] | undefined;
|
|
4335
4478
|
readonly hints?: {
|
|
4336
4479
|
readonly readOnly?: boolean | undefined;
|
|
4337
4480
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -4372,19 +4515,34 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4372
4515
|
readonly chat?: {
|
|
4373
4516
|
readonly telegram?: {
|
|
4374
4517
|
readonly connection: string;
|
|
4518
|
+
readonly files?: {
|
|
4519
|
+
readonly keep: boolean;
|
|
4520
|
+
} | undefined;
|
|
4375
4521
|
} | undefined;
|
|
4376
4522
|
readonly slack?: {
|
|
4377
4523
|
readonly connection: string;
|
|
4524
|
+
readonly files?: {
|
|
4525
|
+
readonly keep: boolean;
|
|
4526
|
+
} | undefined;
|
|
4378
4527
|
} | undefined;
|
|
4379
4528
|
readonly whatsapp?: {
|
|
4380
4529
|
readonly connection: string;
|
|
4530
|
+
readonly files?: {
|
|
4531
|
+
readonly keep: boolean;
|
|
4532
|
+
} | undefined;
|
|
4381
4533
|
} | undefined;
|
|
4382
4534
|
readonly email?: {
|
|
4383
4535
|
readonly connection: string;
|
|
4536
|
+
readonly files?: {
|
|
4537
|
+
readonly keep: boolean;
|
|
4538
|
+
} | undefined;
|
|
4384
4539
|
} | undefined;
|
|
4385
4540
|
readonly channels?: {
|
|
4386
4541
|
readonly [x: string]: {
|
|
4387
4542
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
4543
|
+
readonly files?: {
|
|
4544
|
+
readonly keep: boolean;
|
|
4545
|
+
} | undefined;
|
|
4388
4546
|
readonly connection?: string | undefined;
|
|
4389
4547
|
};
|
|
4390
4548
|
} | undefined;
|
|
@@ -4569,6 +4727,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4569
4727
|
} | undefined;
|
|
4570
4728
|
readonly inbox?: {
|
|
4571
4729
|
readonly roles: readonly string[];
|
|
4730
|
+
readonly channels?: readonly string[] | undefined;
|
|
4572
4731
|
readonly attribution?: "name" | "none" | undefined;
|
|
4573
4732
|
readonly takeover?: {
|
|
4574
4733
|
readonly channels: readonly string[];
|
|
@@ -4593,13 +4752,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
4593
4752
|
readonly [x: string]: Schema.Json;
|
|
4594
4753
|
};
|
|
4595
4754
|
readonly permission?: string | undefined;
|
|
4596
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
4597
|
-
readonly writes?: readonly string[] | undefined;
|
|
4598
|
-
readonly connections?: readonly string[] | undefined;
|
|
4599
4755
|
readonly files?: readonly {
|
|
4600
4756
|
readonly entity: string;
|
|
4601
4757
|
readonly property: string;
|
|
4602
4758
|
}[] | undefined;
|
|
4759
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
4760
|
+
readonly writes?: readonly string[] | undefined;
|
|
4761
|
+
readonly connections?: readonly string[] | undefined;
|
|
4603
4762
|
readonly hints?: {
|
|
4604
4763
|
readonly readOnly?: boolean | undefined;
|
|
4605
4764
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -4687,13 +4846,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4687
4846
|
readonly [x: string]: Schema.Json;
|
|
4688
4847
|
};
|
|
4689
4848
|
readonly permission?: string | undefined;
|
|
4690
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
4691
|
-
readonly writes?: readonly string[] | undefined;
|
|
4692
|
-
readonly connections?: readonly string[] | undefined;
|
|
4693
4849
|
readonly files?: readonly {
|
|
4694
4850
|
readonly entity: string;
|
|
4695
4851
|
readonly property: string;
|
|
4696
4852
|
}[] | undefined;
|
|
4853
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
4854
|
+
readonly writes?: readonly string[] | undefined;
|
|
4855
|
+
readonly connections?: readonly string[] | undefined;
|
|
4697
4856
|
readonly hints?: {
|
|
4698
4857
|
readonly readOnly?: boolean | undefined;
|
|
4699
4858
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -4734,19 +4893,34 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4734
4893
|
readonly chat?: {
|
|
4735
4894
|
readonly telegram?: {
|
|
4736
4895
|
readonly connection: string;
|
|
4896
|
+
readonly files?: {
|
|
4897
|
+
readonly keep: boolean;
|
|
4898
|
+
} | undefined;
|
|
4737
4899
|
} | undefined;
|
|
4738
4900
|
readonly slack?: {
|
|
4739
4901
|
readonly connection: string;
|
|
4902
|
+
readonly files?: {
|
|
4903
|
+
readonly keep: boolean;
|
|
4904
|
+
} | undefined;
|
|
4740
4905
|
} | undefined;
|
|
4741
4906
|
readonly whatsapp?: {
|
|
4742
4907
|
readonly connection: string;
|
|
4908
|
+
readonly files?: {
|
|
4909
|
+
readonly keep: boolean;
|
|
4910
|
+
} | undefined;
|
|
4743
4911
|
} | undefined;
|
|
4744
4912
|
readonly email?: {
|
|
4745
4913
|
readonly connection: string;
|
|
4914
|
+
readonly files?: {
|
|
4915
|
+
readonly keep: boolean;
|
|
4916
|
+
} | undefined;
|
|
4746
4917
|
} | undefined;
|
|
4747
4918
|
readonly channels?: {
|
|
4748
4919
|
readonly [x: string]: {
|
|
4749
4920
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
4921
|
+
readonly files?: {
|
|
4922
|
+
readonly keep: boolean;
|
|
4923
|
+
} | undefined;
|
|
4750
4924
|
readonly connection?: string | undefined;
|
|
4751
4925
|
};
|
|
4752
4926
|
} | undefined;
|
|
@@ -4931,6 +5105,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4931
5105
|
} | undefined;
|
|
4932
5106
|
readonly inbox?: {
|
|
4933
5107
|
readonly roles: readonly string[];
|
|
5108
|
+
readonly channels?: readonly string[] | undefined;
|
|
4934
5109
|
readonly attribution?: "name" | "none" | undefined;
|
|
4935
5110
|
readonly takeover?: {
|
|
4936
5111
|
readonly channels: readonly string[];
|
|
@@ -4955,13 +5130,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4955
5130
|
readonly [x: string]: Schema.Json;
|
|
4956
5131
|
};
|
|
4957
5132
|
readonly permission?: string | undefined;
|
|
4958
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
4959
|
-
readonly writes?: readonly string[] | undefined;
|
|
4960
|
-
readonly connections?: readonly string[] | undefined;
|
|
4961
5133
|
readonly files?: readonly {
|
|
4962
5134
|
readonly entity: string;
|
|
4963
5135
|
readonly property: string;
|
|
4964
5136
|
}[] | undefined;
|
|
5137
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
5138
|
+
readonly writes?: readonly string[] | undefined;
|
|
5139
|
+
readonly connections?: readonly string[] | undefined;
|
|
4965
5140
|
readonly hints?: {
|
|
4966
5141
|
readonly readOnly?: boolean | undefined;
|
|
4967
5142
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -5043,13 +5218,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
5043
5218
|
readonly [x: string]: Schema.Json;
|
|
5044
5219
|
};
|
|
5045
5220
|
readonly permission?: string | undefined;
|
|
5046
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
5047
|
-
readonly writes?: readonly string[] | undefined;
|
|
5048
|
-
readonly connections?: readonly string[] | undefined;
|
|
5049
5221
|
readonly files?: readonly {
|
|
5050
5222
|
readonly entity: string;
|
|
5051
5223
|
readonly property: string;
|
|
5052
5224
|
}[] | undefined;
|
|
5225
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
5226
|
+
readonly writes?: readonly string[] | undefined;
|
|
5227
|
+
readonly connections?: readonly string[] | undefined;
|
|
5053
5228
|
readonly hints?: {
|
|
5054
5229
|
readonly readOnly?: boolean | undefined;
|
|
5055
5230
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -5090,19 +5265,34 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
5090
5265
|
readonly chat?: {
|
|
5091
5266
|
readonly telegram?: {
|
|
5092
5267
|
readonly connection: string;
|
|
5268
|
+
readonly files?: {
|
|
5269
|
+
readonly keep: boolean;
|
|
5270
|
+
} | undefined;
|
|
5093
5271
|
} | undefined;
|
|
5094
5272
|
readonly slack?: {
|
|
5095
5273
|
readonly connection: string;
|
|
5274
|
+
readonly files?: {
|
|
5275
|
+
readonly keep: boolean;
|
|
5276
|
+
} | undefined;
|
|
5096
5277
|
} | undefined;
|
|
5097
5278
|
readonly whatsapp?: {
|
|
5098
5279
|
readonly connection: string;
|
|
5280
|
+
readonly files?: {
|
|
5281
|
+
readonly keep: boolean;
|
|
5282
|
+
} | undefined;
|
|
5099
5283
|
} | undefined;
|
|
5100
5284
|
readonly email?: {
|
|
5101
5285
|
readonly connection: string;
|
|
5286
|
+
readonly files?: {
|
|
5287
|
+
readonly keep: boolean;
|
|
5288
|
+
} | undefined;
|
|
5102
5289
|
} | undefined;
|
|
5103
5290
|
readonly channels?: {
|
|
5104
5291
|
readonly [x: string]: {
|
|
5105
5292
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
5293
|
+
readonly files?: {
|
|
5294
|
+
readonly keep: boolean;
|
|
5295
|
+
} | undefined;
|
|
5106
5296
|
readonly connection?: string | undefined;
|
|
5107
5297
|
};
|
|
5108
5298
|
} | undefined;
|
|
@@ -5287,6 +5477,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
5287
5477
|
} | undefined;
|
|
5288
5478
|
readonly inbox?: {
|
|
5289
5479
|
readonly roles: readonly string[];
|
|
5480
|
+
readonly channels?: readonly string[] | undefined;
|
|
5290
5481
|
readonly attribution?: "name" | "none" | undefined;
|
|
5291
5482
|
readonly takeover?: {
|
|
5292
5483
|
readonly channels: readonly string[];
|
|
@@ -5311,13 +5502,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
5311
5502
|
readonly [x: string]: Schema.Json;
|
|
5312
5503
|
};
|
|
5313
5504
|
readonly permission?: string | undefined;
|
|
5314
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
5315
|
-
readonly writes?: readonly string[] | undefined;
|
|
5316
|
-
readonly connections?: readonly string[] | undefined;
|
|
5317
5505
|
readonly files?: readonly {
|
|
5318
5506
|
readonly entity: string;
|
|
5319
5507
|
readonly property: string;
|
|
5320
5508
|
}[] | undefined;
|
|
5509
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
5510
|
+
readonly writes?: readonly string[] | undefined;
|
|
5511
|
+
readonly connections?: readonly string[] | undefined;
|
|
5321
5512
|
readonly hints?: {
|
|
5322
5513
|
readonly readOnly?: boolean | undefined;
|
|
5323
5514
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -5359,8 +5550,19 @@ export declare function declaredChatRetentionDaysOf(manifest: Pick<OntologyManif
|
|
|
5359
5550
|
* number in range, else the default.
|
|
5360
5551
|
*/
|
|
5361
5552
|
export declare function chatRetentionDaysOf(manifest: Pick<OntologyManifest, "chat">): number;
|
|
5553
|
+
/**
|
|
5554
|
+
* Whether the chats of the agent's channel `name` keep their files as long as their messages, as
|
|
5555
|
+
* the channel's `files: { keep: true }` in `chat` declares; otherwise a file expires 24 hours after
|
|
5556
|
+
* it arrives.
|
|
5557
|
+
*/
|
|
5558
|
+
export declare function keepsChatFiles(manifest: Pick<OntologyManifest, "chat">, name: string): boolean;
|
|
5362
5559
|
/** The wire names of the roles whose people's private chats join the inbox; empty without one. */
|
|
5363
5560
|
export declare function inboxRolesOf(manifest: Pick<OntologyManifest, "inbox">): ReadonlySet<string>;
|
|
5561
|
+
/**
|
|
5562
|
+
* The channels whose chats with people who are no users join the inbox, as records without members;
|
|
5563
|
+
* empty without any.
|
|
5564
|
+
*/
|
|
5565
|
+
export declare function inboxChannelsOf(manifest: Pick<OntologyManifest, "inbox">): ReadonlySet<string>;
|
|
5364
5566
|
/** The channels whose private chats staff may take over from the agent; empty without any. */
|
|
5365
5567
|
export declare function takeoverChannelsOf(manifest: Pick<OntologyManifest, "inbox">): ReadonlySet<string>;
|
|
5366
5568
|
/** Whether a member's own reply in the inbox carries their name: `name` unless declared `none`. */
|
|
@@ -5406,19 +5608,34 @@ export declare function metricsManifest(resolved: ResolvedEntity): ReadonlyArray
|
|
|
5406
5608
|
export interface ChatManifestInput {
|
|
5407
5609
|
readonly telegram?: {
|
|
5408
5610
|
readonly connection: string;
|
|
5611
|
+
readonly files?: {
|
|
5612
|
+
readonly keep: boolean;
|
|
5613
|
+
};
|
|
5409
5614
|
};
|
|
5410
5615
|
readonly slack?: {
|
|
5411
5616
|
readonly connection: string;
|
|
5617
|
+
readonly files?: {
|
|
5618
|
+
readonly keep: boolean;
|
|
5619
|
+
};
|
|
5412
5620
|
};
|
|
5413
5621
|
readonly whatsapp?: {
|
|
5414
5622
|
readonly connection: string;
|
|
5623
|
+
readonly files?: {
|
|
5624
|
+
readonly keep: boolean;
|
|
5625
|
+
};
|
|
5415
5626
|
};
|
|
5416
5627
|
readonly email?: {
|
|
5417
5628
|
readonly connection: string;
|
|
5629
|
+
readonly files?: {
|
|
5630
|
+
readonly keep: boolean;
|
|
5631
|
+
};
|
|
5418
5632
|
};
|
|
5419
5633
|
readonly channels?: Readonly<Record<string, {
|
|
5420
5634
|
readonly kind: (typeof CHAT_KINDS)[number];
|
|
5421
5635
|
readonly connection?: string;
|
|
5636
|
+
readonly files?: {
|
|
5637
|
+
readonly keep: boolean;
|
|
5638
|
+
};
|
|
5422
5639
|
}>>;
|
|
5423
5640
|
readonly attribution?: ChatAttributionSettings;
|
|
5424
5641
|
readonly retentionDays?: number;
|
|
@@ -5429,6 +5646,7 @@ export declare function buildManifest(input: {
|
|
|
5429
5646
|
readonly chat?: ChatManifestInput;
|
|
5430
5647
|
readonly inbox?: {
|
|
5431
5648
|
readonly roles: ReadonlyArray<string>;
|
|
5649
|
+
readonly channels?: ReadonlyArray<string>;
|
|
5432
5650
|
readonly takeover: {
|
|
5433
5651
|
readonly channels: ReadonlyArray<string>;
|
|
5434
5652
|
};
|