@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.js
CHANGED
|
@@ -106,6 +106,9 @@ import { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, isGuestBotCheckScheme, isGue
|
|
|
106
106
|
* publication adds a daily cron for that route. Within version 16, `chat` may carry
|
|
107
107
|
* `retention_days`, written only when declared, and then also without a channel: how many days
|
|
108
108
|
* the workspace keeps its chats' messages. Older readers ignore it and keep them 365 days.
|
|
109
|
+
* Within version 16, `inbox` may carry `channels`, written only when declared: the channels whose
|
|
110
|
+
* chats with people who are no users the agent registers as `agent_chat` records of kind
|
|
111
|
+
* `private` without members. Older readers ignore it and register no chat without members.
|
|
109
112
|
*/
|
|
110
113
|
export const MANIFEST_VERSION = 16;
|
|
111
114
|
/** The first version whose documents use snake_case names on the wire. */
|
|
@@ -566,6 +569,13 @@ export const EmailDocumentManifest = Schema.Struct({
|
|
|
566
569
|
}).pipe(Schema.encodeKeys({ replyTo: "reply_to" }));
|
|
567
570
|
/** One of the workspace's emails, as `defineOntology({ emails })` declares it; see `EmailTemplate`. */
|
|
568
571
|
export const EmailTemplateManifest = Schema.Union([EmailDocumentManifest, EmailLayoutManifest]);
|
|
572
|
+
/** What a chat channel keeps of its chats' files: `keep`, for as long as their messages. */
|
|
573
|
+
const ChatFilesManifest = Schema.Struct({ keep: Schema.Boolean });
|
|
574
|
+
/** A chat channel named after its kind: the connection posts go through, and what it keeps. */
|
|
575
|
+
const ChatChannelManifest = Schema.Struct({
|
|
576
|
+
connection: Schema.String,
|
|
577
|
+
files: Schema.optionalKey(ChatFilesManifest),
|
|
578
|
+
});
|
|
569
579
|
/**
|
|
570
580
|
* The ontology catalog: the contract between the SDK, backend-next, the console and the CLI. Decoding
|
|
571
581
|
* ignores unknown fields and accepts any `version`. The closed sets (property types, cardinalities,
|
|
@@ -600,17 +610,20 @@ const OntologyManifestModel = Schema.Struct({
|
|
|
600
610
|
* declared connection, and the attribution it adds. Absent, or without a channel, delivers
|
|
601
611
|
* nowhere. The channel named after each kind has its key; `channels` holds the others by name,
|
|
602
612
|
* with their kinds. `email`, within version 15, is the mailbox reviewed replies to mail leave
|
|
603
|
-
* from; no chat post goes to it, nor to another channel of its kind.
|
|
613
|
+
* from; no chat post goes to it, nor to another channel of its kind. Within version 16, a
|
|
614
|
+
* channel may carry `files: { keep: true }`, written only when declared: its chats keep their
|
|
615
|
+
* files as long as their messages. Older readers ignore it and keep files 24 hours.
|
|
604
616
|
*/
|
|
605
617
|
chat: Schema.optionalKey(Schema.Struct({
|
|
606
|
-
telegram: Schema.optionalKey(
|
|
607
|
-
slack: Schema.optionalKey(
|
|
608
|
-
whatsapp: Schema.optionalKey(
|
|
609
|
-
email: Schema.optionalKey(
|
|
618
|
+
telegram: Schema.optionalKey(ChatChannelManifest),
|
|
619
|
+
slack: Schema.optionalKey(ChatChannelManifest),
|
|
620
|
+
whatsapp: Schema.optionalKey(ChatChannelManifest),
|
|
621
|
+
email: Schema.optionalKey(ChatChannelManifest),
|
|
610
622
|
channels: Schema.optionalKey(Schema.Record(Schema.String.check(Schema.isPattern(CHAT_CHANNEL_NAME)), Schema.Struct({
|
|
611
623
|
kind: Schema.Literals(CHAT_KINDS),
|
|
612
624
|
// A workspace channel (`custom`) has none: the agent sends through it.
|
|
613
625
|
connection: Schema.optionalKey(Schema.String),
|
|
626
|
+
files: Schema.optionalKey(ChatFilesManifest),
|
|
614
627
|
}))),
|
|
615
628
|
attribution: Schema.optionalKey(Schema.Struct({
|
|
616
629
|
template: Schema.optionalKey(Schema.String),
|
|
@@ -624,10 +637,13 @@ const OntologyManifestModel = Schema.Struct({
|
|
|
624
637
|
* channels whose chats staff may take over from the agent, and `attribution: "none"` when a
|
|
625
638
|
* member's own reply there goes without their name. Written only when declared; absent
|
|
626
639
|
* registers no private chat, absent `takeover` lets no chat be taken over, absent `attribution`
|
|
627
|
-
* signs replies, and older readers ignore all three.
|
|
640
|
+
* signs replies, and older readers ignore all three. Within version 16, `channels`, written only
|
|
641
|
+
* when it lists some, names the channels whose chats with people who are no users join it too,
|
|
642
|
+
* without members; absent registers none.
|
|
628
643
|
*/
|
|
629
644
|
inbox: Schema.optionalKey(Schema.Struct({
|
|
630
645
|
roles: Schema.Array(Schema.String),
|
|
646
|
+
channels: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
631
647
|
takeover: Schema.optionalKey(Schema.Struct({ channels: Schema.Array(Schema.String) })),
|
|
632
648
|
attribution: Schema.optionalKey(Schema.Literals(["name", "none"])),
|
|
633
649
|
})),
|
|
@@ -751,10 +767,29 @@ export function chatRetentionDaysOf(manifest) {
|
|
|
751
767
|
? days
|
|
752
768
|
: CHAT_RETENTION_DAYS.default;
|
|
753
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* Whether the chats of the agent's channel `name` keep their files as long as their messages, as
|
|
772
|
+
* the channel's `files: { keep: true }` in `chat` declares; otherwise a file expires 24 hours after
|
|
773
|
+
* it arrives.
|
|
774
|
+
*/
|
|
775
|
+
export function keepsChatFiles(manifest, name) {
|
|
776
|
+
const chat = manifest.chat;
|
|
777
|
+
const channel = name === "telegram" || name === "slack" || name === "whatsapp" || name === "email"
|
|
778
|
+
? chat?.[name]
|
|
779
|
+
: chat?.channels?.[name];
|
|
780
|
+
return channel?.files?.keep === true;
|
|
781
|
+
}
|
|
754
782
|
/** The wire names of the roles whose people's private chats join the inbox; empty without one. */
|
|
755
783
|
export function inboxRolesOf(manifest) {
|
|
756
784
|
return new Set(manifest.inbox?.roles ?? []);
|
|
757
785
|
}
|
|
786
|
+
/**
|
|
787
|
+
* The channels whose chats with people who are no users join the inbox, as records without members;
|
|
788
|
+
* empty without any.
|
|
789
|
+
*/
|
|
790
|
+
export function inboxChannelsOf(manifest) {
|
|
791
|
+
return new Set(manifest.inbox?.channels ?? []);
|
|
792
|
+
}
|
|
758
793
|
/** The channels whose private chats staff may take over from the agent; empty without any. */
|
|
759
794
|
export function takeoverChannelsOf(manifest) {
|
|
760
795
|
return new Set(manifest.inbox?.takeover?.channels ?? []);
|
|
@@ -1140,6 +1175,9 @@ export function buildManifest(input) {
|
|
|
1140
1175
|
: {
|
|
1141
1176
|
inbox: {
|
|
1142
1177
|
roles: [...input.inbox.roles],
|
|
1178
|
+
...((input.inbox.channels ?? []).length === 0
|
|
1179
|
+
? {}
|
|
1180
|
+
: { channels: [...(input.inbox.channels ?? [])] }),
|
|
1143
1181
|
takeover: { channels: [...input.inbox.takeover.channels] },
|
|
1144
1182
|
...(input.inbox.attribution === "none" ? { attribution: "none" } : {}),
|
|
1145
1183
|
},
|
package/dist/migrate/model.d.ts
CHANGED
|
@@ -361,13 +361,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
361
361
|
readonly [x: string]: Schema.Json;
|
|
362
362
|
};
|
|
363
363
|
readonly permission?: string | undefined;
|
|
364
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
365
|
-
readonly writes?: readonly string[] | undefined;
|
|
366
|
-
readonly connections?: readonly string[] | undefined;
|
|
367
364
|
readonly files?: readonly {
|
|
368
365
|
readonly entity: string;
|
|
369
366
|
readonly property: string;
|
|
370
367
|
}[] | undefined;
|
|
368
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
369
|
+
readonly writes?: readonly string[] | undefined;
|
|
370
|
+
readonly connections?: readonly string[] | undefined;
|
|
371
371
|
readonly hints?: {
|
|
372
372
|
readonly readOnly?: boolean | undefined;
|
|
373
373
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -408,19 +408,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
408
408
|
readonly chat?: {
|
|
409
409
|
readonly telegram?: {
|
|
410
410
|
readonly connection: string;
|
|
411
|
+
readonly files?: {
|
|
412
|
+
readonly keep: boolean;
|
|
413
|
+
} | undefined;
|
|
411
414
|
} | undefined;
|
|
412
415
|
readonly slack?: {
|
|
413
416
|
readonly connection: string;
|
|
417
|
+
readonly files?: {
|
|
418
|
+
readonly keep: boolean;
|
|
419
|
+
} | undefined;
|
|
414
420
|
} | undefined;
|
|
415
421
|
readonly whatsapp?: {
|
|
416
422
|
readonly connection: string;
|
|
423
|
+
readonly files?: {
|
|
424
|
+
readonly keep: boolean;
|
|
425
|
+
} | undefined;
|
|
417
426
|
} | undefined;
|
|
418
427
|
readonly email?: {
|
|
419
428
|
readonly connection: string;
|
|
429
|
+
readonly files?: {
|
|
430
|
+
readonly keep: boolean;
|
|
431
|
+
} | undefined;
|
|
420
432
|
} | undefined;
|
|
421
433
|
readonly channels?: {
|
|
422
434
|
readonly [x: string]: {
|
|
423
435
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
436
|
+
readonly files?: {
|
|
437
|
+
readonly keep: boolean;
|
|
438
|
+
} | undefined;
|
|
424
439
|
readonly connection?: string | undefined;
|
|
425
440
|
};
|
|
426
441
|
} | undefined;
|
|
@@ -605,6 +620,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
605
620
|
} | undefined;
|
|
606
621
|
readonly inbox?: {
|
|
607
622
|
readonly roles: readonly string[];
|
|
623
|
+
readonly channels?: readonly string[] | undefined;
|
|
608
624
|
readonly attribution?: "name" | "none" | undefined;
|
|
609
625
|
readonly takeover?: {
|
|
610
626
|
readonly channels: readonly string[];
|
|
@@ -629,13 +645,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
629
645
|
readonly [x: string]: Schema.Json;
|
|
630
646
|
};
|
|
631
647
|
readonly permission?: string | undefined;
|
|
632
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
633
|
-
readonly writes?: readonly string[] | undefined;
|
|
634
|
-
readonly connections?: readonly string[] | undefined;
|
|
635
648
|
readonly files?: readonly {
|
|
636
649
|
readonly entity: string;
|
|
637
650
|
readonly property: string;
|
|
638
651
|
}[] | undefined;
|
|
652
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
653
|
+
readonly writes?: readonly string[] | undefined;
|
|
654
|
+
readonly connections?: readonly string[] | undefined;
|
|
639
655
|
readonly hints?: {
|
|
640
656
|
readonly readOnly?: boolean | undefined;
|
|
641
657
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -717,13 +733,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
717
733
|
readonly [x: string]: Schema.Json;
|
|
718
734
|
};
|
|
719
735
|
readonly permission?: string | undefined;
|
|
720
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
721
|
-
readonly writes?: readonly string[] | undefined;
|
|
722
|
-
readonly connections?: readonly string[] | undefined;
|
|
723
736
|
readonly files?: readonly {
|
|
724
737
|
readonly entity: string;
|
|
725
738
|
readonly property: string;
|
|
726
739
|
}[] | undefined;
|
|
740
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
741
|
+
readonly writes?: readonly string[] | undefined;
|
|
742
|
+
readonly connections?: readonly string[] | undefined;
|
|
727
743
|
readonly hints?: {
|
|
728
744
|
readonly readOnly?: boolean | undefined;
|
|
729
745
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -764,19 +780,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
764
780
|
readonly chat?: {
|
|
765
781
|
readonly telegram?: {
|
|
766
782
|
readonly connection: string;
|
|
783
|
+
readonly files?: {
|
|
784
|
+
readonly keep: boolean;
|
|
785
|
+
} | undefined;
|
|
767
786
|
} | undefined;
|
|
768
787
|
readonly slack?: {
|
|
769
788
|
readonly connection: string;
|
|
789
|
+
readonly files?: {
|
|
790
|
+
readonly keep: boolean;
|
|
791
|
+
} | undefined;
|
|
770
792
|
} | undefined;
|
|
771
793
|
readonly whatsapp?: {
|
|
772
794
|
readonly connection: string;
|
|
795
|
+
readonly files?: {
|
|
796
|
+
readonly keep: boolean;
|
|
797
|
+
} | undefined;
|
|
773
798
|
} | undefined;
|
|
774
799
|
readonly email?: {
|
|
775
800
|
readonly connection: string;
|
|
801
|
+
readonly files?: {
|
|
802
|
+
readonly keep: boolean;
|
|
803
|
+
} | undefined;
|
|
776
804
|
} | undefined;
|
|
777
805
|
readonly channels?: {
|
|
778
806
|
readonly [x: string]: {
|
|
779
807
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
808
|
+
readonly files?: {
|
|
809
|
+
readonly keep: boolean;
|
|
810
|
+
} | undefined;
|
|
780
811
|
readonly connection?: string | undefined;
|
|
781
812
|
};
|
|
782
813
|
} | undefined;
|
|
@@ -961,6 +992,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
961
992
|
} | undefined;
|
|
962
993
|
readonly inbox?: {
|
|
963
994
|
readonly roles: readonly string[];
|
|
995
|
+
readonly channels?: readonly string[] | undefined;
|
|
964
996
|
readonly attribution?: "name" | "none" | undefined;
|
|
965
997
|
readonly takeover?: {
|
|
966
998
|
readonly channels: readonly string[];
|
|
@@ -985,13 +1017,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
985
1017
|
readonly [x: string]: Schema.Json;
|
|
986
1018
|
};
|
|
987
1019
|
readonly permission?: string | undefined;
|
|
988
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
989
|
-
readonly writes?: readonly string[] | undefined;
|
|
990
|
-
readonly connections?: readonly string[] | undefined;
|
|
991
1020
|
readonly files?: readonly {
|
|
992
1021
|
readonly entity: string;
|
|
993
1022
|
readonly property: string;
|
|
994
1023
|
}[] | undefined;
|
|
1024
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1025
|
+
readonly writes?: readonly string[] | undefined;
|
|
1026
|
+
readonly connections?: readonly string[] | undefined;
|
|
995
1027
|
readonly hints?: {
|
|
996
1028
|
readonly readOnly?: boolean | undefined;
|
|
997
1029
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1073,13 +1105,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1073
1105
|
readonly [x: string]: Schema.Json;
|
|
1074
1106
|
};
|
|
1075
1107
|
readonly permission?: string | undefined;
|
|
1076
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1077
|
-
readonly writes?: readonly string[] | undefined;
|
|
1078
|
-
readonly connections?: readonly string[] | undefined;
|
|
1079
1108
|
readonly files?: readonly {
|
|
1080
1109
|
readonly entity: string;
|
|
1081
1110
|
readonly property: string;
|
|
1082
1111
|
}[] | undefined;
|
|
1112
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1113
|
+
readonly writes?: readonly string[] | undefined;
|
|
1114
|
+
readonly connections?: readonly string[] | undefined;
|
|
1083
1115
|
readonly hints?: {
|
|
1084
1116
|
readonly readOnly?: boolean | undefined;
|
|
1085
1117
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1120,19 +1152,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1120
1152
|
readonly chat?: {
|
|
1121
1153
|
readonly telegram?: {
|
|
1122
1154
|
readonly connection: string;
|
|
1155
|
+
readonly files?: {
|
|
1156
|
+
readonly keep: boolean;
|
|
1157
|
+
} | undefined;
|
|
1123
1158
|
} | undefined;
|
|
1124
1159
|
readonly slack?: {
|
|
1125
1160
|
readonly connection: string;
|
|
1161
|
+
readonly files?: {
|
|
1162
|
+
readonly keep: boolean;
|
|
1163
|
+
} | undefined;
|
|
1126
1164
|
} | undefined;
|
|
1127
1165
|
readonly whatsapp?: {
|
|
1128
1166
|
readonly connection: string;
|
|
1167
|
+
readonly files?: {
|
|
1168
|
+
readonly keep: boolean;
|
|
1169
|
+
} | undefined;
|
|
1129
1170
|
} | undefined;
|
|
1130
1171
|
readonly email?: {
|
|
1131
1172
|
readonly connection: string;
|
|
1173
|
+
readonly files?: {
|
|
1174
|
+
readonly keep: boolean;
|
|
1175
|
+
} | undefined;
|
|
1132
1176
|
} | undefined;
|
|
1133
1177
|
readonly channels?: {
|
|
1134
1178
|
readonly [x: string]: {
|
|
1135
1179
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
1180
|
+
readonly files?: {
|
|
1181
|
+
readonly keep: boolean;
|
|
1182
|
+
} | undefined;
|
|
1136
1183
|
readonly connection?: string | undefined;
|
|
1137
1184
|
};
|
|
1138
1185
|
} | undefined;
|
|
@@ -1280,6 +1327,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1280
1327
|
} | undefined;
|
|
1281
1328
|
readonly inbox?: {
|
|
1282
1329
|
readonly roles: readonly string[];
|
|
1330
|
+
readonly channels?: readonly string[] | undefined;
|
|
1283
1331
|
readonly attribution?: "name" | "none" | undefined;
|
|
1284
1332
|
readonly takeover?: {
|
|
1285
1333
|
readonly channels: readonly string[];
|
|
@@ -1304,13 +1352,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1304
1352
|
readonly [x: string]: Schema.Json;
|
|
1305
1353
|
};
|
|
1306
1354
|
readonly permission?: string | undefined;
|
|
1307
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1308
|
-
readonly writes?: readonly string[] | undefined;
|
|
1309
|
-
readonly connections?: readonly string[] | undefined;
|
|
1310
1355
|
readonly files?: readonly {
|
|
1311
1356
|
readonly entity: string;
|
|
1312
1357
|
readonly property: string;
|
|
1313
1358
|
}[] | undefined;
|
|
1359
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1360
|
+
readonly writes?: readonly string[] | undefined;
|
|
1361
|
+
readonly connections?: readonly string[] | undefined;
|
|
1314
1362
|
readonly hints?: {
|
|
1315
1363
|
readonly readOnly?: boolean | undefined;
|
|
1316
1364
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1429,13 +1477,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1429
1477
|
readonly [x: string]: Schema.Json;
|
|
1430
1478
|
};
|
|
1431
1479
|
readonly permission?: string | undefined;
|
|
1432
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1433
|
-
readonly writes?: readonly string[] | undefined;
|
|
1434
|
-
readonly connections?: readonly string[] | undefined;
|
|
1435
1480
|
readonly files?: readonly {
|
|
1436
1481
|
readonly entity: string;
|
|
1437
1482
|
readonly property: string;
|
|
1438
1483
|
}[] | undefined;
|
|
1484
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1485
|
+
readonly writes?: readonly string[] | undefined;
|
|
1486
|
+
readonly connections?: readonly string[] | undefined;
|
|
1439
1487
|
readonly hints?: {
|
|
1440
1488
|
readonly readOnly?: boolean | undefined;
|
|
1441
1489
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1476,19 +1524,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1476
1524
|
readonly chat?: {
|
|
1477
1525
|
readonly telegram?: {
|
|
1478
1526
|
readonly connection: string;
|
|
1527
|
+
readonly files?: {
|
|
1528
|
+
readonly keep: boolean;
|
|
1529
|
+
} | undefined;
|
|
1479
1530
|
} | undefined;
|
|
1480
1531
|
readonly slack?: {
|
|
1481
1532
|
readonly connection: string;
|
|
1533
|
+
readonly files?: {
|
|
1534
|
+
readonly keep: boolean;
|
|
1535
|
+
} | undefined;
|
|
1482
1536
|
} | undefined;
|
|
1483
1537
|
readonly whatsapp?: {
|
|
1484
1538
|
readonly connection: string;
|
|
1539
|
+
readonly files?: {
|
|
1540
|
+
readonly keep: boolean;
|
|
1541
|
+
} | undefined;
|
|
1485
1542
|
} | undefined;
|
|
1486
1543
|
readonly email?: {
|
|
1487
1544
|
readonly connection: string;
|
|
1545
|
+
readonly files?: {
|
|
1546
|
+
readonly keep: boolean;
|
|
1547
|
+
} | undefined;
|
|
1488
1548
|
} | undefined;
|
|
1489
1549
|
readonly channels?: {
|
|
1490
1550
|
readonly [x: string]: {
|
|
1491
1551
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
1552
|
+
readonly files?: {
|
|
1553
|
+
readonly keep: boolean;
|
|
1554
|
+
} | undefined;
|
|
1492
1555
|
readonly connection?: string | undefined;
|
|
1493
1556
|
};
|
|
1494
1557
|
} | undefined;
|
|
@@ -1673,6 +1736,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1673
1736
|
} | undefined;
|
|
1674
1737
|
readonly inbox?: {
|
|
1675
1738
|
readonly roles: readonly string[];
|
|
1739
|
+
readonly channels?: readonly string[] | undefined;
|
|
1676
1740
|
readonly attribution?: "name" | "none" | undefined;
|
|
1677
1741
|
readonly takeover?: {
|
|
1678
1742
|
readonly channels: readonly string[];
|
|
@@ -1697,13 +1761,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1697
1761
|
readonly [x: string]: Schema.Json;
|
|
1698
1762
|
};
|
|
1699
1763
|
readonly permission?: string | undefined;
|
|
1700
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
1701
|
-
readonly writes?: readonly string[] | undefined;
|
|
1702
|
-
readonly connections?: readonly string[] | undefined;
|
|
1703
1764
|
readonly files?: readonly {
|
|
1704
1765
|
readonly entity: string;
|
|
1705
1766
|
readonly property: string;
|
|
1706
1767
|
}[] | undefined;
|
|
1768
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
1769
|
+
readonly writes?: readonly string[] | undefined;
|
|
1770
|
+
readonly connections?: readonly string[] | undefined;
|
|
1707
1771
|
readonly hints?: {
|
|
1708
1772
|
readonly readOnly?: boolean | undefined;
|
|
1709
1773
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -1942,19 +2006,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1942
2006
|
readonly chat: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
1943
2007
|
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
1944
2008
|
readonly connection: Schema.String;
|
|
2009
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2010
|
+
readonly keep: Schema.Boolean;
|
|
2011
|
+
}>>;
|
|
1945
2012
|
}>>;
|
|
1946
2013
|
readonly slack: Schema.optionalKey<Schema.Struct<{
|
|
1947
2014
|
readonly connection: Schema.String;
|
|
2015
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2016
|
+
readonly keep: Schema.Boolean;
|
|
2017
|
+
}>>;
|
|
1948
2018
|
}>>;
|
|
1949
2019
|
readonly whatsapp: Schema.optionalKey<Schema.Struct<{
|
|
1950
2020
|
readonly connection: Schema.String;
|
|
2021
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2022
|
+
readonly keep: Schema.Boolean;
|
|
2023
|
+
}>>;
|
|
1951
2024
|
}>>;
|
|
1952
2025
|
readonly email: Schema.optionalKey<Schema.Struct<{
|
|
1953
2026
|
readonly connection: Schema.String;
|
|
2027
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2028
|
+
readonly keep: Schema.Boolean;
|
|
2029
|
+
}>>;
|
|
1954
2030
|
}>>;
|
|
1955
2031
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
1956
2032
|
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
1957
2033
|
readonly connection: Schema.optionalKey<Schema.String>;
|
|
2034
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2035
|
+
readonly keep: Schema.Boolean;
|
|
2036
|
+
}>>;
|
|
1958
2037
|
}>>>;
|
|
1959
2038
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
1960
2039
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -1966,6 +2045,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1966
2045
|
}>>;
|
|
1967
2046
|
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
1968
2047
|
readonly roles: Schema.$Array<Schema.String>;
|
|
2048
|
+
readonly channels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1969
2049
|
readonly takeover: Schema.optionalKey<Schema.Struct<{
|
|
1970
2050
|
readonly channels: Schema.$Array<Schema.String>;
|
|
1971
2051
|
}>>;
|
|
@@ -2296,19 +2376,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2296
2376
|
readonly chat: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
|
|
2297
2377
|
readonly telegram: Schema.optionalKey<Schema.Struct<{
|
|
2298
2378
|
readonly connection: Schema.String;
|
|
2379
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2380
|
+
readonly keep: Schema.Boolean;
|
|
2381
|
+
}>>;
|
|
2299
2382
|
}>>;
|
|
2300
2383
|
readonly slack: Schema.optionalKey<Schema.Struct<{
|
|
2301
2384
|
readonly connection: Schema.String;
|
|
2385
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2386
|
+
readonly keep: Schema.Boolean;
|
|
2387
|
+
}>>;
|
|
2302
2388
|
}>>;
|
|
2303
2389
|
readonly whatsapp: Schema.optionalKey<Schema.Struct<{
|
|
2304
2390
|
readonly connection: Schema.String;
|
|
2391
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2392
|
+
readonly keep: Schema.Boolean;
|
|
2393
|
+
}>>;
|
|
2305
2394
|
}>>;
|
|
2306
2395
|
readonly email: Schema.optionalKey<Schema.Struct<{
|
|
2307
2396
|
readonly connection: Schema.String;
|
|
2397
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2398
|
+
readonly keep: Schema.Boolean;
|
|
2399
|
+
}>>;
|
|
2308
2400
|
}>>;
|
|
2309
2401
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
2310
2402
|
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
2311
2403
|
readonly connection: Schema.optionalKey<Schema.String>;
|
|
2404
|
+
readonly files: Schema.optionalKey<Schema.Struct<{
|
|
2405
|
+
readonly keep: Schema.Boolean;
|
|
2406
|
+
}>>;
|
|
2312
2407
|
}>>>;
|
|
2313
2408
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
2314
2409
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -2320,6 +2415,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2320
2415
|
}>>;
|
|
2321
2416
|
readonly inbox: Schema.optionalKey<Schema.Struct<{
|
|
2322
2417
|
readonly roles: Schema.$Array<Schema.String>;
|
|
2418
|
+
readonly channels: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2323
2419
|
readonly takeover: Schema.optionalKey<Schema.Struct<{
|
|
2324
2420
|
readonly channels: Schema.$Array<Schema.String>;
|
|
2325
2421
|
}>>;
|
|
@@ -2507,13 +2603,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2507
2603
|
readonly [x: string]: Schema.Json;
|
|
2508
2604
|
};
|
|
2509
2605
|
readonly permission?: string | undefined;
|
|
2510
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2511
|
-
readonly writes?: readonly string[] | undefined;
|
|
2512
|
-
readonly connections?: readonly string[] | undefined;
|
|
2513
2606
|
readonly files?: readonly {
|
|
2514
2607
|
readonly entity: string;
|
|
2515
2608
|
readonly property: string;
|
|
2516
2609
|
}[] | undefined;
|
|
2610
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2611
|
+
readonly writes?: readonly string[] | undefined;
|
|
2612
|
+
readonly connections?: readonly string[] | undefined;
|
|
2517
2613
|
readonly hints?: {
|
|
2518
2614
|
readonly readOnly?: boolean | undefined;
|
|
2519
2615
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2554,19 +2650,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2554
2650
|
readonly chat?: {
|
|
2555
2651
|
readonly telegram?: {
|
|
2556
2652
|
readonly connection: string;
|
|
2653
|
+
readonly files?: {
|
|
2654
|
+
readonly keep: boolean;
|
|
2655
|
+
} | undefined;
|
|
2557
2656
|
} | undefined;
|
|
2558
2657
|
readonly slack?: {
|
|
2559
2658
|
readonly connection: string;
|
|
2659
|
+
readonly files?: {
|
|
2660
|
+
readonly keep: boolean;
|
|
2661
|
+
} | undefined;
|
|
2560
2662
|
} | undefined;
|
|
2561
2663
|
readonly whatsapp?: {
|
|
2562
2664
|
readonly connection: string;
|
|
2665
|
+
readonly files?: {
|
|
2666
|
+
readonly keep: boolean;
|
|
2667
|
+
} | undefined;
|
|
2563
2668
|
} | undefined;
|
|
2564
2669
|
readonly email?: {
|
|
2565
2670
|
readonly connection: string;
|
|
2671
|
+
readonly files?: {
|
|
2672
|
+
readonly keep: boolean;
|
|
2673
|
+
} | undefined;
|
|
2566
2674
|
} | undefined;
|
|
2567
2675
|
readonly channels?: {
|
|
2568
2676
|
readonly [x: string]: {
|
|
2569
2677
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2678
|
+
readonly files?: {
|
|
2679
|
+
readonly keep: boolean;
|
|
2680
|
+
} | undefined;
|
|
2570
2681
|
readonly connection?: string | undefined;
|
|
2571
2682
|
};
|
|
2572
2683
|
} | undefined;
|
|
@@ -2751,6 +2862,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2751
2862
|
} | undefined;
|
|
2752
2863
|
readonly inbox?: {
|
|
2753
2864
|
readonly roles: readonly string[];
|
|
2865
|
+
readonly channels?: readonly string[] | undefined;
|
|
2754
2866
|
readonly attribution?: "name" | "none" | undefined;
|
|
2755
2867
|
readonly takeover?: {
|
|
2756
2868
|
readonly channels: readonly string[];
|
|
@@ -2775,13 +2887,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2775
2887
|
readonly [x: string]: Schema.Json;
|
|
2776
2888
|
};
|
|
2777
2889
|
readonly permission?: string | undefined;
|
|
2778
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2779
|
-
readonly writes?: readonly string[] | undefined;
|
|
2780
|
-
readonly connections?: readonly string[] | undefined;
|
|
2781
2890
|
readonly files?: readonly {
|
|
2782
2891
|
readonly entity: string;
|
|
2783
2892
|
readonly property: string;
|
|
2784
2893
|
}[] | undefined;
|
|
2894
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2895
|
+
readonly writes?: readonly string[] | undefined;
|
|
2896
|
+
readonly connections?: readonly string[] | undefined;
|
|
2785
2897
|
readonly hints?: {
|
|
2786
2898
|
readonly readOnly?: boolean | undefined;
|
|
2787
2899
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2863,13 +2975,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2863
2975
|
readonly [x: string]: Schema.Json;
|
|
2864
2976
|
};
|
|
2865
2977
|
readonly permission?: string | undefined;
|
|
2866
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
2867
|
-
readonly writes?: readonly string[] | undefined;
|
|
2868
|
-
readonly connections?: readonly string[] | undefined;
|
|
2869
2978
|
readonly files?: readonly {
|
|
2870
2979
|
readonly entity: string;
|
|
2871
2980
|
readonly property: string;
|
|
2872
2981
|
}[] | undefined;
|
|
2982
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
2983
|
+
readonly writes?: readonly string[] | undefined;
|
|
2984
|
+
readonly connections?: readonly string[] | undefined;
|
|
2873
2985
|
readonly hints?: {
|
|
2874
2986
|
readonly readOnly?: boolean | undefined;
|
|
2875
2987
|
readonly connectionsReadOnly?: boolean | undefined;
|
|
@@ -2910,19 +3022,34 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2910
3022
|
readonly chat?: {
|
|
2911
3023
|
readonly telegram?: {
|
|
2912
3024
|
readonly connection: string;
|
|
3025
|
+
readonly files?: {
|
|
3026
|
+
readonly keep: boolean;
|
|
3027
|
+
} | undefined;
|
|
2913
3028
|
} | undefined;
|
|
2914
3029
|
readonly slack?: {
|
|
2915
3030
|
readonly connection: string;
|
|
3031
|
+
readonly files?: {
|
|
3032
|
+
readonly keep: boolean;
|
|
3033
|
+
} | undefined;
|
|
2916
3034
|
} | undefined;
|
|
2917
3035
|
readonly whatsapp?: {
|
|
2918
3036
|
readonly connection: string;
|
|
3037
|
+
readonly files?: {
|
|
3038
|
+
readonly keep: boolean;
|
|
3039
|
+
} | undefined;
|
|
2919
3040
|
} | undefined;
|
|
2920
3041
|
readonly email?: {
|
|
2921
3042
|
readonly connection: string;
|
|
3043
|
+
readonly files?: {
|
|
3044
|
+
readonly keep: boolean;
|
|
3045
|
+
} | undefined;
|
|
2922
3046
|
} | undefined;
|
|
2923
3047
|
readonly channels?: {
|
|
2924
3048
|
readonly [x: string]: {
|
|
2925
3049
|
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
3050
|
+
readonly files?: {
|
|
3051
|
+
readonly keep: boolean;
|
|
3052
|
+
} | undefined;
|
|
2926
3053
|
readonly connection?: string | undefined;
|
|
2927
3054
|
};
|
|
2928
3055
|
} | undefined;
|
|
@@ -3107,6 +3234,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
3107
3234
|
} | undefined;
|
|
3108
3235
|
readonly inbox?: {
|
|
3109
3236
|
readonly roles: readonly string[];
|
|
3237
|
+
readonly channels?: readonly string[] | undefined;
|
|
3110
3238
|
readonly attribution?: "name" | "none" | undefined;
|
|
3111
3239
|
readonly takeover?: {
|
|
3112
3240
|
readonly channels: readonly string[];
|
|
@@ -3131,13 +3259,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
3131
3259
|
readonly [x: string]: Schema.Json;
|
|
3132
3260
|
};
|
|
3133
3261
|
readonly permission?: string | undefined;
|
|
3134
|
-
readonly retryOnDeadlock?: boolean | undefined;
|
|
3135
|
-
readonly writes?: readonly string[] | undefined;
|
|
3136
|
-
readonly connections?: readonly string[] | undefined;
|
|
3137
3262
|
readonly files?: readonly {
|
|
3138
3263
|
readonly entity: string;
|
|
3139
3264
|
readonly property: string;
|
|
3140
3265
|
}[] | undefined;
|
|
3266
|
+
readonly retryOnDeadlock?: boolean | undefined;
|
|
3267
|
+
readonly writes?: readonly string[] | undefined;
|
|
3268
|
+
readonly connections?: readonly string[] | undefined;
|
|
3141
3269
|
readonly hints?: {
|
|
3142
3270
|
readonly readOnly?: boolean | undefined;
|
|
3143
3271
|
readonly connectionsReadOnly?: boolean | undefined;
|