@segmentstream/ontology 0.111.0 → 0.114.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 +41 -0
- package/README.md +9 -3
- package/dist/analyze.d.ts +8 -4
- package/dist/analyze.js +83 -35
- package/dist/chat-channel.d.ts +27 -2
- package/dist/chat-channel.js +36 -2
- package/dist/email-html.d.ts +23 -0
- package/dist/email-html.js +249 -0
- package/dist/emails.d.ts +38 -6
- package/dist/emails.js +71 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +3 -1
- package/dist/manifest.d.ts +208 -52
- package/dist/manifest.js +32 -6
- package/dist/migrate/model.d.ts +98 -34
- package/dist/permissions.d.ts +10 -3
- package/dist/permissions.js +10 -3
- package/dist/runtime/guests.d.ts +2 -1
- package/dist/runtime/guests.js +4 -3
- package/dist/runtime/resolve-agent-identity.js +4 -1
- package/dist/service/agent/protocol.d.ts +4 -1
- package/dist/service/agent/protocol.js +7 -3
- package/dist/service/agent/server.js +8 -2
- package/dist/service/authentication.d.ts +2 -1
- package/dist/service/authentication.js +13 -3
- package/dist/service/chat/delivery.d.ts +10 -1
- package/dist/service/chat/delivery.js +21 -3
- package/dist/service/chat/envelope.d.ts +2 -2
- package/dist/service/chat/providers/custom.d.ts +13 -0
- package/dist/service/chat/providers/custom.js +103 -0
- package/dist/service/chat/providers/index.d.ts +1 -0
- package/dist/service/chat/providers/index.js +12 -3
- package/dist/service/chat/providers/provider.d.ts +19 -0
- package/dist/service/chat/reads.d.ts +1 -1
- package/dist/service/chat/reads.js +2 -2
- package/dist/service/chat/resolve.d.ts +2 -1
- package/dist/service/chat/resolve.js +6 -2
- package/dist/service/chat/review-delivery.d.ts +3 -0
- package/dist/service/chat/review-delivery.js +9 -3
- package/dist/service/chat/schemas.d.ts +2 -2
- package/dist/service/chat/schemas.js +2 -2
- package/dist/service/config.d.ts +6 -2
- package/dist/service/schemas.d.ts +30 -8
- package/dist/service/service.js +6 -1
- package/dist/sign-in.d.ts +22 -1
- package/dist/sign-in.js +3 -1
- package/dist/storage/tables.d.ts +4 -3
- package/dist/storage/tables.js +11 -3
- package/dist/workspace-channel.d.ts +54 -0
- package/dist/workspace-channel.js +36 -0
- package/package.json +5 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatAttributionSettings } from "./chat.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CHAT_KINDS } from "./chat-channel.js";
|
|
3
3
|
import { Effect, Schema } from "effect";
|
|
4
4
|
import type { ResolvedConnection, ResolvedEntity } from "./analyze.js";
|
|
5
5
|
import type { ResolvedFeedback } from "./feedback-config.js";
|
|
@@ -78,9 +78,17 @@ import { type ResolvedGuest, type ResolvedSignInOptions, type SignInPolicy } fro
|
|
|
78
78
|
* guest passes and the workspace secret its verification reads, and `confirmations: true`, written
|
|
79
79
|
* only when declared. Older readers ignore both: they ask new guests for no challenge, and keep
|
|
80
80
|
* refusing guests the actions that need a confirmation.
|
|
81
|
+
* Within version 15, `signIn` may also carry `linkEmail` and `codeEmail`, written only when
|
|
82
|
+
* declared: the wire names of the emails the platform sends instead of its own sign-in link and
|
|
83
|
+
* sign-in code; the code email fills `{{code}}`. Older readers ignore both and send the platform's.
|
|
84
|
+
* Within version 15, an email may instead be a document the workspace lays out itself: `subject`,
|
|
85
|
+
* `html` and `text`, whose placeholders include `{{link}}`, the sign-in link. Older readers do not
|
|
86
|
+
* decode such an email and send the platform's own in its place where they can.
|
|
81
87
|
* Within version 15, `chat` may carry `channels`, written only when declared: the agent's channels
|
|
82
88
|
* not named after their kind, such as `sales_whatsapp`, each with its `kind` and connection. Older
|
|
83
|
-
* readers ignore it and send nothing through those channels.
|
|
89
|
+
* readers ignore it and send nothing through those channels. A channel the workspace defines in
|
|
90
|
+
* its own code has kind `custom` and no connection, as the agent sends through it; sign-up may open
|
|
91
|
+
* `channel:<name>`, its people's accounts.
|
|
84
92
|
*/
|
|
85
93
|
export declare const MANIFEST_VERSION = 15;
|
|
86
94
|
/** The phrase used for a direction the author did not phrase. */
|
|
@@ -690,16 +698,22 @@ export declare const SignInManifest: Schema.encodeKeys<Schema.Struct<{
|
|
|
690
698
|
}>>;
|
|
691
699
|
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
692
700
|
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
701
|
+
/** The wire name of the email the platform sends instead of its own sign-in link. */
|
|
702
|
+
readonly linkEmail: Schema.optionalKey<Schema.String>;
|
|
703
|
+
/** The wire name of the email the platform sends instead of its own sign-in code. */
|
|
704
|
+
readonly codeEmail: Schema.optionalKey<Schema.String>;
|
|
693
705
|
}>, {
|
|
694
706
|
readonly onNewUser: "on_new_user";
|
|
695
707
|
readonly codeLink: "code_link";
|
|
696
708
|
readonly signUp: "sign_up";
|
|
697
709
|
readonly onSignUp: "on_sign_up";
|
|
698
710
|
readonly invitationEmail: "invitation_email";
|
|
711
|
+
readonly linkEmail: "link_email";
|
|
712
|
+
readonly codeEmail: "code_email";
|
|
699
713
|
}>;
|
|
700
714
|
export type SignInManifest = typeof SignInManifest.Type;
|
|
701
|
-
/**
|
|
702
|
-
export declare const
|
|
715
|
+
/** An email as fields the platform lays out; see `EmailLayout`. */
|
|
716
|
+
export declare const EmailLayoutManifest: Schema.encodeKeys<Schema.Struct<{
|
|
703
717
|
readonly subject: Schema.String;
|
|
704
718
|
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
705
719
|
readonly heading: Schema.String;
|
|
@@ -729,6 +743,53 @@ export declare const EmailTemplateManifest: Schema.encodeKeys<Schema.Struct<{
|
|
|
729
743
|
}>, {
|
|
730
744
|
readonly replyTo: "reply_to";
|
|
731
745
|
}>;
|
|
746
|
+
/** An email the workspace lays out itself: subject, HTML and plain text; see `EmailDocument`. */
|
|
747
|
+
export declare const EmailDocumentManifest: Schema.encodeKeys<Schema.Struct<{
|
|
748
|
+
readonly subject: Schema.String;
|
|
749
|
+
readonly html: Schema.String;
|
|
750
|
+
readonly text: Schema.String;
|
|
751
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
752
|
+
}>, {
|
|
753
|
+
readonly replyTo: "reply_to";
|
|
754
|
+
}>;
|
|
755
|
+
/** One of the workspace's emails, as `defineOntology({ emails })` declares it; see `EmailTemplate`. */
|
|
756
|
+
export declare const EmailTemplateManifest: Schema.Union<readonly [Schema.encodeKeys<Schema.Struct<{
|
|
757
|
+
readonly subject: Schema.String;
|
|
758
|
+
readonly html: Schema.String;
|
|
759
|
+
readonly text: Schema.String;
|
|
760
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
761
|
+
}>, {
|
|
762
|
+
readonly replyTo: "reply_to";
|
|
763
|
+
}>, Schema.encodeKeys<Schema.Struct<{
|
|
764
|
+
readonly subject: Schema.String;
|
|
765
|
+
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
766
|
+
readonly heading: Schema.String;
|
|
767
|
+
readonly card: Schema.optionalKey<Schema.Struct<{
|
|
768
|
+
readonly title: Schema.String;
|
|
769
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
770
|
+
}>>;
|
|
771
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
772
|
+
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
773
|
+
readonly action: Schema.String;
|
|
774
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
775
|
+
readonly title: Schema.String;
|
|
776
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
777
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
778
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
779
|
+
readonly value: Schema.String;
|
|
780
|
+
}>>;
|
|
781
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
782
|
+
readonly label: Schema.String;
|
|
783
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
784
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
785
|
+
}>>>;
|
|
786
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
787
|
+
}>>>;
|
|
788
|
+
readonly footer: Schema.optionalKey<Schema.String>;
|
|
789
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
790
|
+
}>, {
|
|
791
|
+
readonly replyTo: "reply_to";
|
|
792
|
+
}>]>;
|
|
732
793
|
export type EmailTemplateManifest = typeof EmailTemplateManifest.Type;
|
|
733
794
|
/** A property in the snake_case wire spelling, for records that store definitions. */
|
|
734
795
|
export declare const PropertyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
@@ -1001,15 +1062,28 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1001
1062
|
}>>;
|
|
1002
1063
|
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
1003
1064
|
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
1065
|
+
/** The wire name of the email the platform sends instead of its own sign-in link. */
|
|
1066
|
+
readonly linkEmail: Schema.optionalKey<Schema.String>;
|
|
1067
|
+
/** The wire name of the email the platform sends instead of its own sign-in code. */
|
|
1068
|
+
readonly codeEmail: Schema.optionalKey<Schema.String>;
|
|
1004
1069
|
}>, {
|
|
1005
1070
|
readonly onNewUser: "on_new_user";
|
|
1006
1071
|
readonly codeLink: "code_link";
|
|
1007
1072
|
readonly signUp: "sign_up";
|
|
1008
1073
|
readonly onSignUp: "on_sign_up";
|
|
1009
1074
|
readonly invitationEmail: "invitation_email";
|
|
1075
|
+
readonly linkEmail: "link_email";
|
|
1076
|
+
readonly codeEmail: "code_email";
|
|
1010
1077
|
}>>;
|
|
1011
1078
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
1012
|
-
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
1079
|
+
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.encodeKeys<Schema.Struct<{
|
|
1080
|
+
readonly subject: Schema.String;
|
|
1081
|
+
readonly html: Schema.String;
|
|
1082
|
+
readonly text: Schema.String;
|
|
1083
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
1084
|
+
}>, {
|
|
1085
|
+
readonly replyTo: "reply_to";
|
|
1086
|
+
}>, Schema.encodeKeys<Schema.Struct<{
|
|
1013
1087
|
readonly subject: Schema.String;
|
|
1014
1088
|
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
1015
1089
|
readonly heading: Schema.String;
|
|
@@ -1038,7 +1112,7 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1038
1112
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
1039
1113
|
}>, {
|
|
1040
1114
|
readonly replyTo: "reply_to";
|
|
1041
|
-
}>>>;
|
|
1115
|
+
}>]>>>;
|
|
1042
1116
|
/** The connections the actions call. Written only when there are some; absent reads as none. */
|
|
1043
1117
|
readonly connections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1044
1118
|
readonly key: Schema.String;
|
|
@@ -1067,8 +1141,8 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
1067
1141
|
readonly connection: Schema.String;
|
|
1068
1142
|
}>>;
|
|
1069
1143
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
1070
|
-
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email"]>;
|
|
1071
|
-
readonly connection: Schema.String
|
|
1144
|
+
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
1145
|
+
readonly connection: Schema.optionalKey<Schema.String>;
|
|
1072
1146
|
}>>>;
|
|
1073
1147
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
1074
1148
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -1312,19 +1386,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1312
1386
|
readonly telegram?: {
|
|
1313
1387
|
readonly connection: string;
|
|
1314
1388
|
} | undefined;
|
|
1315
|
-
readonly
|
|
1389
|
+
readonly slack?: {
|
|
1316
1390
|
readonly connection: string;
|
|
1317
1391
|
} | undefined;
|
|
1318
1392
|
readonly whatsapp?: {
|
|
1319
1393
|
readonly connection: string;
|
|
1320
1394
|
} | undefined;
|
|
1321
|
-
readonly
|
|
1395
|
+
readonly email?: {
|
|
1322
1396
|
readonly connection: string;
|
|
1323
1397
|
} | undefined;
|
|
1324
1398
|
readonly channels?: {
|
|
1325
1399
|
readonly [x: string]: {
|
|
1326
|
-
readonly kind: "telegram" | "
|
|
1327
|
-
readonly connection
|
|
1400
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
1401
|
+
readonly connection?: string | undefined;
|
|
1328
1402
|
};
|
|
1329
1403
|
} | undefined;
|
|
1330
1404
|
readonly attribution?: {
|
|
@@ -1429,9 +1503,16 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1429
1503
|
} | undefined;
|
|
1430
1504
|
readonly onSignUp?: string | undefined;
|
|
1431
1505
|
readonly invitationEmail?: string | undefined;
|
|
1506
|
+
readonly linkEmail?: string | undefined;
|
|
1507
|
+
readonly codeEmail?: string | undefined;
|
|
1432
1508
|
} | undefined;
|
|
1433
1509
|
readonly emails?: {
|
|
1434
1510
|
readonly [x: string]: {
|
|
1511
|
+
readonly subject: string;
|
|
1512
|
+
readonly text: string;
|
|
1513
|
+
readonly html: string;
|
|
1514
|
+
readonly replyTo?: string | undefined;
|
|
1515
|
+
} | {
|
|
1435
1516
|
readonly subject: string;
|
|
1436
1517
|
readonly action: string;
|
|
1437
1518
|
readonly heading: string;
|
|
@@ -1614,19 +1695,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1614
1695
|
readonly telegram?: {
|
|
1615
1696
|
readonly connection: string;
|
|
1616
1697
|
} | undefined;
|
|
1617
|
-
readonly
|
|
1698
|
+
readonly slack?: {
|
|
1618
1699
|
readonly connection: string;
|
|
1619
1700
|
} | undefined;
|
|
1620
1701
|
readonly whatsapp?: {
|
|
1621
1702
|
readonly connection: string;
|
|
1622
1703
|
} | undefined;
|
|
1623
|
-
readonly
|
|
1704
|
+
readonly email?: {
|
|
1624
1705
|
readonly connection: string;
|
|
1625
1706
|
} | undefined;
|
|
1626
1707
|
readonly channels?: {
|
|
1627
1708
|
readonly [x: string]: {
|
|
1628
|
-
readonly kind: "telegram" | "
|
|
1629
|
-
readonly connection
|
|
1709
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
1710
|
+
readonly connection?: string | undefined;
|
|
1630
1711
|
};
|
|
1631
1712
|
} | undefined;
|
|
1632
1713
|
readonly attribution?: {
|
|
@@ -1731,9 +1812,16 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1731
1812
|
} | undefined;
|
|
1732
1813
|
readonly onSignUp?: string | undefined;
|
|
1733
1814
|
readonly invitationEmail?: string | undefined;
|
|
1815
|
+
readonly linkEmail?: string | undefined;
|
|
1816
|
+
readonly codeEmail?: string | undefined;
|
|
1734
1817
|
} | undefined;
|
|
1735
1818
|
readonly emails?: {
|
|
1736
1819
|
readonly [x: string]: {
|
|
1820
|
+
readonly subject: string;
|
|
1821
|
+
readonly text: string;
|
|
1822
|
+
readonly html: string;
|
|
1823
|
+
readonly replyTo?: string | undefined;
|
|
1824
|
+
} | {
|
|
1737
1825
|
readonly subject: string;
|
|
1738
1826
|
readonly action: string;
|
|
1739
1827
|
readonly heading: string;
|
|
@@ -1916,19 +2004,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1916
2004
|
readonly telegram?: {
|
|
1917
2005
|
readonly connection: string;
|
|
1918
2006
|
} | undefined;
|
|
1919
|
-
readonly
|
|
2007
|
+
readonly slack?: {
|
|
1920
2008
|
readonly connection: string;
|
|
1921
2009
|
} | undefined;
|
|
1922
2010
|
readonly whatsapp?: {
|
|
1923
2011
|
readonly connection: string;
|
|
1924
2012
|
} | undefined;
|
|
1925
|
-
readonly
|
|
2013
|
+
readonly email?: {
|
|
1926
2014
|
readonly connection: string;
|
|
1927
2015
|
} | undefined;
|
|
1928
2016
|
readonly channels?: {
|
|
1929
2017
|
readonly [x: string]: {
|
|
1930
|
-
readonly kind: "telegram" | "
|
|
1931
|
-
readonly connection
|
|
2018
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2019
|
+
readonly connection?: string | undefined;
|
|
1932
2020
|
};
|
|
1933
2021
|
} | undefined;
|
|
1934
2022
|
readonly attribution?: {
|
|
@@ -2003,9 +2091,15 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2003
2091
|
} | undefined;
|
|
2004
2092
|
readonly emails?: {
|
|
2005
2093
|
readonly [x: string]: {
|
|
2094
|
+
readonly subject: string;
|
|
2095
|
+
readonly text: string;
|
|
2096
|
+
readonly html: string;
|
|
2097
|
+
readonly reply_to?: string | undefined;
|
|
2098
|
+
} | {
|
|
2006
2099
|
readonly subject: string;
|
|
2007
2100
|
readonly action: string;
|
|
2008
2101
|
readonly heading: string;
|
|
2102
|
+
readonly reply_to?: string | undefined;
|
|
2009
2103
|
readonly eyebrow?: string | undefined;
|
|
2010
2104
|
readonly card?: {
|
|
2011
2105
|
readonly title: string;
|
|
@@ -2028,7 +2122,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2028
2122
|
} | undefined;
|
|
2029
2123
|
}[] | undefined;
|
|
2030
2124
|
readonly footer?: string | undefined;
|
|
2031
|
-
readonly reply_to?: string | undefined;
|
|
2032
2125
|
};
|
|
2033
2126
|
} | undefined;
|
|
2034
2127
|
readonly toolsets?: readonly {
|
|
@@ -2098,6 +2191,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2098
2191
|
} | undefined;
|
|
2099
2192
|
readonly on_sign_up?: string | undefined;
|
|
2100
2193
|
readonly invitation_email?: string | undefined;
|
|
2194
|
+
readonly link_email?: string | undefined;
|
|
2195
|
+
readonly code_email?: string | undefined;
|
|
2101
2196
|
} | undefined;
|
|
2102
2197
|
} | {
|
|
2103
2198
|
readonly version: number;
|
|
@@ -2218,19 +2313,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2218
2313
|
readonly telegram?: {
|
|
2219
2314
|
readonly connection: string;
|
|
2220
2315
|
} | undefined;
|
|
2221
|
-
readonly
|
|
2316
|
+
readonly slack?: {
|
|
2222
2317
|
readonly connection: string;
|
|
2223
2318
|
} | undefined;
|
|
2224
2319
|
readonly whatsapp?: {
|
|
2225
2320
|
readonly connection: string;
|
|
2226
2321
|
} | undefined;
|
|
2227
|
-
readonly
|
|
2322
|
+
readonly email?: {
|
|
2228
2323
|
readonly connection: string;
|
|
2229
2324
|
} | undefined;
|
|
2230
2325
|
readonly channels?: {
|
|
2231
2326
|
readonly [x: string]: {
|
|
2232
|
-
readonly kind: "telegram" | "
|
|
2233
|
-
readonly connection
|
|
2327
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
2328
|
+
readonly connection?: string | undefined;
|
|
2234
2329
|
};
|
|
2235
2330
|
} | undefined;
|
|
2236
2331
|
readonly attribution?: {
|
|
@@ -2335,12 +2430,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2335
2430
|
} | undefined;
|
|
2336
2431
|
readonly on_sign_up?: string | undefined;
|
|
2337
2432
|
readonly invitation_email?: string | undefined;
|
|
2433
|
+
readonly link_email?: string | undefined;
|
|
2434
|
+
readonly code_email?: string | undefined;
|
|
2338
2435
|
} | undefined;
|
|
2339
2436
|
readonly emails?: {
|
|
2340
2437
|
readonly [x: string]: {
|
|
2438
|
+
readonly subject: string;
|
|
2439
|
+
readonly text: string;
|
|
2440
|
+
readonly html: string;
|
|
2441
|
+
readonly reply_to?: string | undefined;
|
|
2442
|
+
} | {
|
|
2341
2443
|
readonly subject: string;
|
|
2342
2444
|
readonly action: string;
|
|
2343
2445
|
readonly heading: string;
|
|
2446
|
+
readonly reply_to?: string | undefined;
|
|
2344
2447
|
readonly eyebrow?: string | undefined;
|
|
2345
2448
|
readonly card?: {
|
|
2346
2449
|
readonly title: string;
|
|
@@ -2363,7 +2466,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2363
2466
|
} | undefined;
|
|
2364
2467
|
}[] | undefined;
|
|
2365
2468
|
readonly footer?: string | undefined;
|
|
2366
|
-
readonly reply_to?: string | undefined;
|
|
2367
2469
|
};
|
|
2368
2470
|
} | undefined;
|
|
2369
2471
|
readonly toolsets?: readonly {
|
|
@@ -2617,15 +2719,28 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2617
2719
|
}>>;
|
|
2618
2720
|
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
2619
2721
|
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
2722
|
+
/** The wire name of the email the platform sends instead of its own sign-in link. */
|
|
2723
|
+
readonly linkEmail: Schema.optionalKey<Schema.String>;
|
|
2724
|
+
/** The wire name of the email the platform sends instead of its own sign-in code. */
|
|
2725
|
+
readonly codeEmail: Schema.optionalKey<Schema.String>;
|
|
2620
2726
|
}>, {
|
|
2621
2727
|
readonly onNewUser: "on_new_user";
|
|
2622
2728
|
readonly codeLink: "code_link";
|
|
2623
2729
|
readonly signUp: "sign_up";
|
|
2624
2730
|
readonly onSignUp: "on_sign_up";
|
|
2625
2731
|
readonly invitationEmail: "invitation_email";
|
|
2732
|
+
readonly linkEmail: "link_email";
|
|
2733
|
+
readonly codeEmail: "code_email";
|
|
2626
2734
|
}>>;
|
|
2627
2735
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
2628
|
-
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
2736
|
+
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.encodeKeys<Schema.Struct<{
|
|
2737
|
+
readonly subject: Schema.String;
|
|
2738
|
+
readonly html: Schema.String;
|
|
2739
|
+
readonly text: Schema.String;
|
|
2740
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
2741
|
+
}>, {
|
|
2742
|
+
readonly replyTo: "reply_to";
|
|
2743
|
+
}>, Schema.encodeKeys<Schema.Struct<{
|
|
2629
2744
|
readonly subject: Schema.String;
|
|
2630
2745
|
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
2631
2746
|
readonly heading: Schema.String;
|
|
@@ -2654,7 +2769,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2654
2769
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
2655
2770
|
}>, {
|
|
2656
2771
|
readonly replyTo: "reply_to";
|
|
2657
|
-
}>>>;
|
|
2772
|
+
}>]>>>;
|
|
2658
2773
|
/** The connections the actions call. Written only when there are some; absent reads as none. */
|
|
2659
2774
|
readonly connections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2660
2775
|
readonly key: Schema.String;
|
|
@@ -2683,8 +2798,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2683
2798
|
readonly connection: Schema.String;
|
|
2684
2799
|
}>>;
|
|
2685
2800
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
2686
|
-
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email"]>;
|
|
2687
|
-
readonly connection: Schema.String
|
|
2801
|
+
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
2802
|
+
readonly connection: Schema.optionalKey<Schema.String>;
|
|
2688
2803
|
}>>>;
|
|
2689
2804
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
2690
2805
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -3012,15 +3127,28 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3012
3127
|
}>>;
|
|
3013
3128
|
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
3014
3129
|
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
3130
|
+
/** The wire name of the email the platform sends instead of its own sign-in link. */
|
|
3131
|
+
readonly linkEmail: Schema.optionalKey<Schema.String>;
|
|
3132
|
+
/** The wire name of the email the platform sends instead of its own sign-in code. */
|
|
3133
|
+
readonly codeEmail: Schema.optionalKey<Schema.String>;
|
|
3015
3134
|
}>, {
|
|
3016
3135
|
readonly onNewUser: "on_new_user";
|
|
3017
3136
|
readonly codeLink: "code_link";
|
|
3018
3137
|
readonly signUp: "sign_up";
|
|
3019
3138
|
readonly onSignUp: "on_sign_up";
|
|
3020
3139
|
readonly invitationEmail: "invitation_email";
|
|
3140
|
+
readonly linkEmail: "link_email";
|
|
3141
|
+
readonly codeEmail: "code_email";
|
|
3021
3142
|
}>>;
|
|
3022
3143
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
3023
|
-
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
3144
|
+
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.encodeKeys<Schema.Struct<{
|
|
3145
|
+
readonly subject: Schema.String;
|
|
3146
|
+
readonly html: Schema.String;
|
|
3147
|
+
readonly text: Schema.String;
|
|
3148
|
+
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
3149
|
+
}>, {
|
|
3150
|
+
readonly replyTo: "reply_to";
|
|
3151
|
+
}>, Schema.encodeKeys<Schema.Struct<{
|
|
3024
3152
|
readonly subject: Schema.String;
|
|
3025
3153
|
readonly eyebrow: Schema.optionalKey<Schema.String>;
|
|
3026
3154
|
readonly heading: Schema.String;
|
|
@@ -3049,7 +3177,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3049
3177
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
3050
3178
|
}>, {
|
|
3051
3179
|
readonly replyTo: "reply_to";
|
|
3052
|
-
}>>>;
|
|
3180
|
+
}>]>>>;
|
|
3053
3181
|
/** The connections the actions call. Written only when there are some; absent reads as none. */
|
|
3054
3182
|
readonly connections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3055
3183
|
readonly key: Schema.String;
|
|
@@ -3078,8 +3206,8 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3078
3206
|
readonly connection: Schema.String;
|
|
3079
3207
|
}>>;
|
|
3080
3208
|
readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
3081
|
-
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email"]>;
|
|
3082
|
-
readonly connection: Schema.String
|
|
3209
|
+
readonly kind: Schema.Literals<readonly ["telegram", "slack", "whatsapp", "email", "custom"]>;
|
|
3210
|
+
readonly connection: Schema.optionalKey<Schema.String>;
|
|
3083
3211
|
}>>>;
|
|
3084
3212
|
readonly attribution: Schema.optionalKey<Schema.Struct<{
|
|
3085
3213
|
readonly template: Schema.optionalKey<Schema.String>;
|
|
@@ -3315,19 +3443,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3315
3443
|
readonly telegram?: {
|
|
3316
3444
|
readonly connection: string;
|
|
3317
3445
|
} | undefined;
|
|
3318
|
-
readonly
|
|
3446
|
+
readonly slack?: {
|
|
3319
3447
|
readonly connection: string;
|
|
3320
3448
|
} | undefined;
|
|
3321
3449
|
readonly whatsapp?: {
|
|
3322
3450
|
readonly connection: string;
|
|
3323
3451
|
} | undefined;
|
|
3324
|
-
readonly
|
|
3452
|
+
readonly email?: {
|
|
3325
3453
|
readonly connection: string;
|
|
3326
3454
|
} | undefined;
|
|
3327
3455
|
readonly channels?: {
|
|
3328
3456
|
readonly [x: string]: {
|
|
3329
|
-
readonly kind: "telegram" | "
|
|
3330
|
-
readonly connection
|
|
3457
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
3458
|
+
readonly connection?: string | undefined;
|
|
3331
3459
|
};
|
|
3332
3460
|
} | undefined;
|
|
3333
3461
|
readonly attribution?: {
|
|
@@ -3432,9 +3560,16 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3432
3560
|
} | undefined;
|
|
3433
3561
|
readonly onSignUp?: string | undefined;
|
|
3434
3562
|
readonly invitationEmail?: string | undefined;
|
|
3563
|
+
readonly linkEmail?: string | undefined;
|
|
3564
|
+
readonly codeEmail?: string | undefined;
|
|
3435
3565
|
} | undefined;
|
|
3436
3566
|
readonly emails?: {
|
|
3437
3567
|
readonly [x: string]: {
|
|
3568
|
+
readonly subject: string;
|
|
3569
|
+
readonly text: string;
|
|
3570
|
+
readonly html: string;
|
|
3571
|
+
readonly replyTo?: string | undefined;
|
|
3572
|
+
} | {
|
|
3438
3573
|
readonly subject: string;
|
|
3439
3574
|
readonly action: string;
|
|
3440
3575
|
readonly heading: string;
|
|
@@ -3617,19 +3752,19 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3617
3752
|
readonly telegram?: {
|
|
3618
3753
|
readonly connection: string;
|
|
3619
3754
|
} | undefined;
|
|
3620
|
-
readonly
|
|
3755
|
+
readonly slack?: {
|
|
3621
3756
|
readonly connection: string;
|
|
3622
3757
|
} | undefined;
|
|
3623
3758
|
readonly whatsapp?: {
|
|
3624
3759
|
readonly connection: string;
|
|
3625
3760
|
} | undefined;
|
|
3626
|
-
readonly
|
|
3761
|
+
readonly email?: {
|
|
3627
3762
|
readonly connection: string;
|
|
3628
3763
|
} | undefined;
|
|
3629
3764
|
readonly channels?: {
|
|
3630
3765
|
readonly [x: string]: {
|
|
3631
|
-
readonly kind: "telegram" | "
|
|
3632
|
-
readonly connection
|
|
3766
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
3767
|
+
readonly connection?: string | undefined;
|
|
3633
3768
|
};
|
|
3634
3769
|
} | undefined;
|
|
3635
3770
|
readonly attribution?: {
|
|
@@ -3734,9 +3869,16 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3734
3869
|
} | undefined;
|
|
3735
3870
|
readonly onSignUp?: string | undefined;
|
|
3736
3871
|
readonly invitationEmail?: string | undefined;
|
|
3872
|
+
readonly linkEmail?: string | undefined;
|
|
3873
|
+
readonly codeEmail?: string | undefined;
|
|
3737
3874
|
} | undefined;
|
|
3738
3875
|
readonly emails?: {
|
|
3739
3876
|
readonly [x: string]: {
|
|
3877
|
+
readonly subject: string;
|
|
3878
|
+
readonly text: string;
|
|
3879
|
+
readonly html: string;
|
|
3880
|
+
readonly replyTo?: string | undefined;
|
|
3881
|
+
} | {
|
|
3740
3882
|
readonly subject: string;
|
|
3741
3883
|
readonly action: string;
|
|
3742
3884
|
readonly heading: string;
|
|
@@ -3925,19 +4067,19 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
3925
4067
|
readonly telegram?: {
|
|
3926
4068
|
readonly connection: string;
|
|
3927
4069
|
} | undefined;
|
|
3928
|
-
readonly
|
|
4070
|
+
readonly slack?: {
|
|
3929
4071
|
readonly connection: string;
|
|
3930
4072
|
} | undefined;
|
|
3931
4073
|
readonly whatsapp?: {
|
|
3932
4074
|
readonly connection: string;
|
|
3933
4075
|
} | undefined;
|
|
3934
|
-
readonly
|
|
4076
|
+
readonly email?: {
|
|
3935
4077
|
readonly connection: string;
|
|
3936
4078
|
} | undefined;
|
|
3937
4079
|
readonly channels?: {
|
|
3938
4080
|
readonly [x: string]: {
|
|
3939
|
-
readonly kind: "telegram" | "
|
|
3940
|
-
readonly connection
|
|
4081
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
4082
|
+
readonly connection?: string | undefined;
|
|
3941
4083
|
};
|
|
3942
4084
|
} | undefined;
|
|
3943
4085
|
readonly attribution?: {
|
|
@@ -4042,9 +4184,16 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4042
4184
|
} | undefined;
|
|
4043
4185
|
readonly onSignUp?: string | undefined;
|
|
4044
4186
|
readonly invitationEmail?: string | undefined;
|
|
4187
|
+
readonly linkEmail?: string | undefined;
|
|
4188
|
+
readonly codeEmail?: string | undefined;
|
|
4045
4189
|
} | undefined;
|
|
4046
4190
|
readonly emails?: {
|
|
4047
4191
|
readonly [x: string]: {
|
|
4192
|
+
readonly subject: string;
|
|
4193
|
+
readonly text: string;
|
|
4194
|
+
readonly html: string;
|
|
4195
|
+
readonly replyTo?: string | undefined;
|
|
4196
|
+
} | {
|
|
4048
4197
|
readonly subject: string;
|
|
4049
4198
|
readonly action: string;
|
|
4050
4199
|
readonly heading: string;
|
|
@@ -4227,19 +4376,19 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4227
4376
|
readonly telegram?: {
|
|
4228
4377
|
readonly connection: string;
|
|
4229
4378
|
} | undefined;
|
|
4230
|
-
readonly
|
|
4379
|
+
readonly slack?: {
|
|
4231
4380
|
readonly connection: string;
|
|
4232
4381
|
} | undefined;
|
|
4233
4382
|
readonly whatsapp?: {
|
|
4234
4383
|
readonly connection: string;
|
|
4235
4384
|
} | undefined;
|
|
4236
|
-
readonly
|
|
4385
|
+
readonly email?: {
|
|
4237
4386
|
readonly connection: string;
|
|
4238
4387
|
} | undefined;
|
|
4239
4388
|
readonly channels?: {
|
|
4240
4389
|
readonly [x: string]: {
|
|
4241
|
-
readonly kind: "telegram" | "
|
|
4242
|
-
readonly connection
|
|
4390
|
+
readonly kind: "telegram" | "slack" | "whatsapp" | "email" | "custom";
|
|
4391
|
+
readonly connection?: string | undefined;
|
|
4243
4392
|
};
|
|
4244
4393
|
} | undefined;
|
|
4245
4394
|
readonly attribution?: {
|
|
@@ -4344,9 +4493,16 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4344
4493
|
} | undefined;
|
|
4345
4494
|
readonly onSignUp?: string | undefined;
|
|
4346
4495
|
readonly invitationEmail?: string | undefined;
|
|
4496
|
+
readonly linkEmail?: string | undefined;
|
|
4497
|
+
readonly codeEmail?: string | undefined;
|
|
4347
4498
|
} | undefined;
|
|
4348
4499
|
readonly emails?: {
|
|
4349
4500
|
readonly [x: string]: {
|
|
4501
|
+
readonly subject: string;
|
|
4502
|
+
readonly text: string;
|
|
4503
|
+
readonly html: string;
|
|
4504
|
+
readonly replyTo?: string | undefined;
|
|
4505
|
+
} | {
|
|
4350
4506
|
readonly subject: string;
|
|
4351
4507
|
readonly action: string;
|
|
4352
4508
|
readonly heading: string;
|
|
@@ -4464,8 +4620,8 @@ export interface ChatManifestInput {
|
|
|
4464
4620
|
readonly connection: string;
|
|
4465
4621
|
};
|
|
4466
4622
|
readonly channels?: Readonly<Record<string, {
|
|
4467
|
-
readonly kind: (typeof
|
|
4468
|
-
readonly connection
|
|
4623
|
+
readonly kind: (typeof CHAT_KINDS)[number];
|
|
4624
|
+
readonly connection?: string;
|
|
4469
4625
|
}>>;
|
|
4470
4626
|
readonly attribution?: ChatAttributionSettings;
|
|
4471
4627
|
}
|