@segmentstream/ontology 0.107.0 → 0.109.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 +30 -0
- package/README.md +7 -3
- package/dist/analyze.js +34 -3
- package/dist/email.d.ts +18 -2
- package/dist/email.js +57 -7
- package/dist/emails.d.ts +36 -5
- package/dist/emails.js +139 -2
- package/dist/index.d.ts +1 -1
- package/dist/manifest.d.ts +193 -0
- package/dist/manifest.js +22 -0
- package/dist/migrate/model.d.ts +122 -0
- package/dist/service/agent/authentication.js +5 -1
- package/dist/service/chat/providers/email.d.ts +3 -1
- package/dist/service/chat/providers/email.js +8 -1
- package/dist/service/schemas.d.ts +32 -0
- package/dist/sign-in.d.ts +8 -0
- package/package.json +1 -1
package/dist/manifest.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ import { type ResolvedGuest, type ResolvedSignInOptions, type SignInPolicy } fro
|
|
|
68
68
|
* `guest` role, which holds the guests' permissions. Origins of `guest` and `signUp` may be patterns
|
|
69
69
|
* such as `https://*.example.com`. Older readers ignore `guest` and admit no guests, and leave out
|
|
70
70
|
* the patterns they cannot read.
|
|
71
|
+
* Within version 15, an email may carry `sections`, boxes below its button, and its texts may use
|
|
72
|
+
* `{{app.url}}` and `{{app.mcpUrl}}`; `signIn` may carry `invitationEmail`, written only when
|
|
73
|
+
* declared: the wire name of the email the platform sends instead of its own invitation. Older
|
|
74
|
+
* readers ignore `sections` and `invitationEmail`, leave the two values empty and send the
|
|
75
|
+
* platform's invitation.
|
|
71
76
|
*/
|
|
72
77
|
export declare const MANIFEST_VERSION = 15;
|
|
73
78
|
/** The phrase used for a direction the author did not phrase. */
|
|
@@ -657,11 +662,14 @@ export declare const SignInManifest: Schema.encodeKeys<Schema.Struct<{
|
|
|
657
662
|
readonly channels: Schema.$Array<Schema.String>;
|
|
658
663
|
readonly origins: Schema.$Array<Schema.String>;
|
|
659
664
|
}>>;
|
|
665
|
+
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
666
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
660
667
|
}>, {
|
|
661
668
|
readonly onNewUser: "on_new_user";
|
|
662
669
|
readonly codeLink: "code_link";
|
|
663
670
|
readonly signUp: "sign_up";
|
|
664
671
|
readonly onSignUp: "on_sign_up";
|
|
672
|
+
readonly invitationEmail: "invitation_email";
|
|
665
673
|
}>;
|
|
666
674
|
export type SignInManifest = typeof SignInManifest.Type;
|
|
667
675
|
/** One of the workspace's emails, as `defineOntology({ emails })` declares it; see `EmailTemplate`. */
|
|
@@ -676,6 +684,20 @@ export declare const EmailTemplateManifest: Schema.encodeKeys<Schema.Struct<{
|
|
|
676
684
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
677
685
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
678
686
|
readonly action: Schema.String;
|
|
687
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
688
|
+
readonly title: Schema.String;
|
|
689
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
690
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
691
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
692
|
+
readonly value: Schema.String;
|
|
693
|
+
}>>;
|
|
694
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
695
|
+
readonly label: Schema.String;
|
|
696
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
697
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
698
|
+
}>>>;
|
|
699
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
700
|
+
}>>>;
|
|
679
701
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
680
702
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
681
703
|
}>, {
|
|
@@ -942,11 +964,14 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
942
964
|
readonly channels: Schema.$Array<Schema.String>;
|
|
943
965
|
readonly origins: Schema.$Array<Schema.String>;
|
|
944
966
|
}>>;
|
|
967
|
+
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
968
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
945
969
|
}>, {
|
|
946
970
|
readonly onNewUser: "on_new_user";
|
|
947
971
|
readonly codeLink: "code_link";
|
|
948
972
|
readonly signUp: "sign_up";
|
|
949
973
|
readonly onSignUp: "on_sign_up";
|
|
974
|
+
readonly invitationEmail: "invitation_email";
|
|
950
975
|
}>>;
|
|
951
976
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
952
977
|
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
@@ -960,6 +985,20 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
|
|
|
960
985
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
961
986
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
962
987
|
readonly action: Schema.String;
|
|
988
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
989
|
+
readonly title: Schema.String;
|
|
990
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
991
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
992
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
993
|
+
readonly value: Schema.String;
|
|
994
|
+
}>>;
|
|
995
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
996
|
+
readonly label: Schema.String;
|
|
997
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
998
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
999
|
+
}>>>;
|
|
1000
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
1001
|
+
}>>>;
|
|
963
1002
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
964
1003
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
965
1004
|
}>, {
|
|
@@ -1338,6 +1377,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1338
1377
|
readonly origins?: readonly string[] | undefined;
|
|
1339
1378
|
} | undefined;
|
|
1340
1379
|
readonly onSignUp?: string | undefined;
|
|
1380
|
+
readonly invitationEmail?: string | undefined;
|
|
1341
1381
|
} | undefined;
|
|
1342
1382
|
readonly emails?: {
|
|
1343
1383
|
readonly [x: string]: {
|
|
@@ -1352,6 +1392,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1352
1392
|
} | undefined;
|
|
1353
1393
|
readonly note?: string | undefined;
|
|
1354
1394
|
readonly paragraphs?: readonly string[] | undefined;
|
|
1395
|
+
readonly sections?: readonly {
|
|
1396
|
+
readonly title: string;
|
|
1397
|
+
readonly text?: string | undefined;
|
|
1398
|
+
readonly items?: readonly {
|
|
1399
|
+
readonly label: string;
|
|
1400
|
+
readonly code?: string | undefined;
|
|
1401
|
+
readonly text?: string | undefined;
|
|
1402
|
+
}[] | undefined;
|
|
1403
|
+
readonly note?: string | undefined;
|
|
1404
|
+
readonly copy?: {
|
|
1405
|
+
readonly value: string;
|
|
1406
|
+
readonly label?: string | undefined;
|
|
1407
|
+
} | undefined;
|
|
1408
|
+
}[] | undefined;
|
|
1355
1409
|
readonly footer?: string | undefined;
|
|
1356
1410
|
};
|
|
1357
1411
|
} | undefined;
|
|
@@ -1614,6 +1668,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1614
1668
|
readonly origins?: readonly string[] | undefined;
|
|
1615
1669
|
} | undefined;
|
|
1616
1670
|
readonly onSignUp?: string | undefined;
|
|
1671
|
+
readonly invitationEmail?: string | undefined;
|
|
1617
1672
|
} | undefined;
|
|
1618
1673
|
readonly emails?: {
|
|
1619
1674
|
readonly [x: string]: {
|
|
@@ -1628,6 +1683,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1628
1683
|
} | undefined;
|
|
1629
1684
|
readonly note?: string | undefined;
|
|
1630
1685
|
readonly paragraphs?: readonly string[] | undefined;
|
|
1686
|
+
readonly sections?: readonly {
|
|
1687
|
+
readonly title: string;
|
|
1688
|
+
readonly text?: string | undefined;
|
|
1689
|
+
readonly items?: readonly {
|
|
1690
|
+
readonly label: string;
|
|
1691
|
+
readonly code?: string | undefined;
|
|
1692
|
+
readonly text?: string | undefined;
|
|
1693
|
+
}[] | undefined;
|
|
1694
|
+
readonly note?: string | undefined;
|
|
1695
|
+
readonly copy?: {
|
|
1696
|
+
readonly value: string;
|
|
1697
|
+
readonly label?: string | undefined;
|
|
1698
|
+
} | undefined;
|
|
1699
|
+
}[] | undefined;
|
|
1631
1700
|
readonly footer?: string | undefined;
|
|
1632
1701
|
};
|
|
1633
1702
|
} | undefined;
|
|
@@ -1876,6 +1945,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1876
1945
|
} | undefined;
|
|
1877
1946
|
readonly note?: string | undefined;
|
|
1878
1947
|
readonly paragraphs?: readonly string[] | undefined;
|
|
1948
|
+
readonly sections?: readonly {
|
|
1949
|
+
readonly title: string;
|
|
1950
|
+
readonly text?: string | undefined;
|
|
1951
|
+
readonly items?: readonly {
|
|
1952
|
+
readonly label: string;
|
|
1953
|
+
readonly code?: string | undefined;
|
|
1954
|
+
readonly text?: string | undefined;
|
|
1955
|
+
}[] | undefined;
|
|
1956
|
+
readonly note?: string | undefined;
|
|
1957
|
+
readonly copy?: {
|
|
1958
|
+
readonly value: string;
|
|
1959
|
+
readonly label?: string | undefined;
|
|
1960
|
+
} | undefined;
|
|
1961
|
+
}[] | undefined;
|
|
1879
1962
|
readonly footer?: string | undefined;
|
|
1880
1963
|
readonly reply_to?: string | undefined;
|
|
1881
1964
|
};
|
|
@@ -1941,6 +2024,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
1941
2024
|
readonly origins?: readonly string[] | undefined;
|
|
1942
2025
|
} | undefined;
|
|
1943
2026
|
readonly on_sign_up?: string | undefined;
|
|
2027
|
+
readonly invitation_email?: string | undefined;
|
|
1944
2028
|
} | undefined;
|
|
1945
2029
|
} | {
|
|
1946
2030
|
readonly version: number;
|
|
@@ -2166,6 +2250,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2166
2250
|
readonly origins?: readonly string[] | undefined;
|
|
2167
2251
|
} | undefined;
|
|
2168
2252
|
readonly on_sign_up?: string | undefined;
|
|
2253
|
+
readonly invitation_email?: string | undefined;
|
|
2169
2254
|
} | undefined;
|
|
2170
2255
|
readonly emails?: {
|
|
2171
2256
|
readonly [x: string]: {
|
|
@@ -2179,6 +2264,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2179
2264
|
} | undefined;
|
|
2180
2265
|
readonly note?: string | undefined;
|
|
2181
2266
|
readonly paragraphs?: readonly string[] | undefined;
|
|
2267
|
+
readonly sections?: readonly {
|
|
2268
|
+
readonly title: string;
|
|
2269
|
+
readonly text?: string | undefined;
|
|
2270
|
+
readonly items?: readonly {
|
|
2271
|
+
readonly label: string;
|
|
2272
|
+
readonly code?: string | undefined;
|
|
2273
|
+
readonly text?: string | undefined;
|
|
2274
|
+
}[] | undefined;
|
|
2275
|
+
readonly note?: string | undefined;
|
|
2276
|
+
readonly copy?: {
|
|
2277
|
+
readonly value: string;
|
|
2278
|
+
readonly label?: string | undefined;
|
|
2279
|
+
} | undefined;
|
|
2280
|
+
}[] | undefined;
|
|
2182
2281
|
readonly footer?: string | undefined;
|
|
2183
2282
|
readonly reply_to?: string | undefined;
|
|
2184
2283
|
};
|
|
@@ -2423,11 +2522,14 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2423
2522
|
readonly channels: Schema.$Array<Schema.String>;
|
|
2424
2523
|
readonly origins: Schema.$Array<Schema.String>;
|
|
2425
2524
|
}>>;
|
|
2525
|
+
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
2526
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
2426
2527
|
}>, {
|
|
2427
2528
|
readonly onNewUser: "on_new_user";
|
|
2428
2529
|
readonly codeLink: "code_link";
|
|
2429
2530
|
readonly signUp: "sign_up";
|
|
2430
2531
|
readonly onSignUp: "on_sign_up";
|
|
2532
|
+
readonly invitationEmail: "invitation_email";
|
|
2431
2533
|
}>>;
|
|
2432
2534
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
2433
2535
|
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
@@ -2441,6 +2543,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2441
2543
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
2442
2544
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2443
2545
|
readonly action: Schema.String;
|
|
2546
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2547
|
+
readonly title: Schema.String;
|
|
2548
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
2549
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
2550
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2551
|
+
readonly value: Schema.String;
|
|
2552
|
+
}>>;
|
|
2553
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2554
|
+
readonly label: Schema.String;
|
|
2555
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
2556
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2557
|
+
}>>>;
|
|
2558
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
2559
|
+
}>>>;
|
|
2444
2560
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2445
2561
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
2446
2562
|
}>, {
|
|
@@ -2787,11 +2903,14 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2787
2903
|
readonly channels: Schema.$Array<Schema.String>;
|
|
2788
2904
|
readonly origins: Schema.$Array<Schema.String>;
|
|
2789
2905
|
}>>;
|
|
2906
|
+
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
2907
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
2790
2908
|
}>, {
|
|
2791
2909
|
readonly onNewUser: "on_new_user";
|
|
2792
2910
|
readonly codeLink: "code_link";
|
|
2793
2911
|
readonly signUp: "sign_up";
|
|
2794
2912
|
readonly onSignUp: "on_sign_up";
|
|
2913
|
+
readonly invitationEmail: "invitation_email";
|
|
2795
2914
|
}>>;
|
|
2796
2915
|
/** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
|
|
2797
2916
|
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
@@ -2805,6 +2924,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
2805
2924
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
2806
2925
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
2807
2926
|
readonly action: Schema.String;
|
|
2927
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2928
|
+
readonly title: Schema.String;
|
|
2929
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
2930
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
2931
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
2932
|
+
readonly value: Schema.String;
|
|
2933
|
+
}>>;
|
|
2934
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2935
|
+
readonly label: Schema.String;
|
|
2936
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
2937
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
2938
|
+
}>>>;
|
|
2939
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
2940
|
+
}>>>;
|
|
2808
2941
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
2809
2942
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
2810
2943
|
}>, {
|
|
@@ -3175,6 +3308,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3175
3308
|
readonly origins?: readonly string[] | undefined;
|
|
3176
3309
|
} | undefined;
|
|
3177
3310
|
readonly onSignUp?: string | undefined;
|
|
3311
|
+
readonly invitationEmail?: string | undefined;
|
|
3178
3312
|
} | undefined;
|
|
3179
3313
|
readonly emails?: {
|
|
3180
3314
|
readonly [x: string]: {
|
|
@@ -3189,6 +3323,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3189
3323
|
} | undefined;
|
|
3190
3324
|
readonly note?: string | undefined;
|
|
3191
3325
|
readonly paragraphs?: readonly string[] | undefined;
|
|
3326
|
+
readonly sections?: readonly {
|
|
3327
|
+
readonly title: string;
|
|
3328
|
+
readonly text?: string | undefined;
|
|
3329
|
+
readonly items?: readonly {
|
|
3330
|
+
readonly label: string;
|
|
3331
|
+
readonly code?: string | undefined;
|
|
3332
|
+
readonly text?: string | undefined;
|
|
3333
|
+
}[] | undefined;
|
|
3334
|
+
readonly note?: string | undefined;
|
|
3335
|
+
readonly copy?: {
|
|
3336
|
+
readonly value: string;
|
|
3337
|
+
readonly label?: string | undefined;
|
|
3338
|
+
} | undefined;
|
|
3339
|
+
}[] | undefined;
|
|
3192
3340
|
readonly footer?: string | undefined;
|
|
3193
3341
|
};
|
|
3194
3342
|
} | undefined;
|
|
@@ -3451,6 +3599,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3451
3599
|
readonly origins?: readonly string[] | undefined;
|
|
3452
3600
|
} | undefined;
|
|
3453
3601
|
readonly onSignUp?: string | undefined;
|
|
3602
|
+
readonly invitationEmail?: string | undefined;
|
|
3454
3603
|
} | undefined;
|
|
3455
3604
|
readonly emails?: {
|
|
3456
3605
|
readonly [x: string]: {
|
|
@@ -3465,6 +3614,20 @@ export declare const OntologyManifest: Schema.declareConstructor<{
|
|
|
3465
3614
|
} | undefined;
|
|
3466
3615
|
readonly note?: string | undefined;
|
|
3467
3616
|
readonly paragraphs?: readonly string[] | undefined;
|
|
3617
|
+
readonly sections?: readonly {
|
|
3618
|
+
readonly title: string;
|
|
3619
|
+
readonly text?: string | undefined;
|
|
3620
|
+
readonly items?: readonly {
|
|
3621
|
+
readonly label: string;
|
|
3622
|
+
readonly code?: string | undefined;
|
|
3623
|
+
readonly text?: string | undefined;
|
|
3624
|
+
}[] | undefined;
|
|
3625
|
+
readonly note?: string | undefined;
|
|
3626
|
+
readonly copy?: {
|
|
3627
|
+
readonly value: string;
|
|
3628
|
+
readonly label?: string | undefined;
|
|
3629
|
+
} | undefined;
|
|
3630
|
+
}[] | undefined;
|
|
3468
3631
|
readonly footer?: string | undefined;
|
|
3469
3632
|
};
|
|
3470
3633
|
} | undefined;
|
|
@@ -3733,6 +3896,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
3733
3896
|
readonly origins?: readonly string[] | undefined;
|
|
3734
3897
|
} | undefined;
|
|
3735
3898
|
readonly onSignUp?: string | undefined;
|
|
3899
|
+
readonly invitationEmail?: string | undefined;
|
|
3736
3900
|
} | undefined;
|
|
3737
3901
|
readonly emails?: {
|
|
3738
3902
|
readonly [x: string]: {
|
|
@@ -3747,6 +3911,20 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
3747
3911
|
} | undefined;
|
|
3748
3912
|
readonly note?: string | undefined;
|
|
3749
3913
|
readonly paragraphs?: readonly string[] | undefined;
|
|
3914
|
+
readonly sections?: readonly {
|
|
3915
|
+
readonly title: string;
|
|
3916
|
+
readonly text?: string | undefined;
|
|
3917
|
+
readonly items?: readonly {
|
|
3918
|
+
readonly label: string;
|
|
3919
|
+
readonly code?: string | undefined;
|
|
3920
|
+
readonly text?: string | undefined;
|
|
3921
|
+
}[] | undefined;
|
|
3922
|
+
readonly note?: string | undefined;
|
|
3923
|
+
readonly copy?: {
|
|
3924
|
+
readonly value: string;
|
|
3925
|
+
readonly label?: string | undefined;
|
|
3926
|
+
} | undefined;
|
|
3927
|
+
}[] | undefined;
|
|
3750
3928
|
readonly footer?: string | undefined;
|
|
3751
3929
|
};
|
|
3752
3930
|
} | undefined;
|
|
@@ -4009,6 +4187,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4009
4187
|
readonly origins?: readonly string[] | undefined;
|
|
4010
4188
|
} | undefined;
|
|
4011
4189
|
readonly onSignUp?: string | undefined;
|
|
4190
|
+
readonly invitationEmail?: string | undefined;
|
|
4012
4191
|
} | undefined;
|
|
4013
4192
|
readonly emails?: {
|
|
4014
4193
|
readonly [x: string]: {
|
|
@@ -4023,6 +4202,20 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
|
|
|
4023
4202
|
} | undefined;
|
|
4024
4203
|
readonly note?: string | undefined;
|
|
4025
4204
|
readonly paragraphs?: readonly string[] | undefined;
|
|
4205
|
+
readonly sections?: readonly {
|
|
4206
|
+
readonly title: string;
|
|
4207
|
+
readonly text?: string | undefined;
|
|
4208
|
+
readonly items?: readonly {
|
|
4209
|
+
readonly label: string;
|
|
4210
|
+
readonly code?: string | undefined;
|
|
4211
|
+
readonly text?: string | undefined;
|
|
4212
|
+
}[] | undefined;
|
|
4213
|
+
readonly note?: string | undefined;
|
|
4214
|
+
readonly copy?: {
|
|
4215
|
+
readonly value: string;
|
|
4216
|
+
readonly label?: string | undefined;
|
|
4217
|
+
} | undefined;
|
|
4218
|
+
}[] | undefined;
|
|
4026
4219
|
readonly footer?: string | undefined;
|
|
4027
4220
|
};
|
|
4028
4221
|
} | undefined;
|
package/dist/manifest.js
CHANGED
|
@@ -68,6 +68,11 @@ import { CHANNEL_PROVIDERS, DEFAULT_SIGN_IN_POLICY, isGuestChannel, isSignInPoli
|
|
|
68
68
|
* `guest` role, which holds the guests' permissions. Origins of `guest` and `signUp` may be patterns
|
|
69
69
|
* such as `https://*.example.com`. Older readers ignore `guest` and admit no guests, and leave out
|
|
70
70
|
* the patterns they cannot read.
|
|
71
|
+
* Within version 15, an email may carry `sections`, boxes below its button, and its texts may use
|
|
72
|
+
* `{{app.url}}` and `{{app.mcpUrl}}`; `signIn` may carry `invitationEmail`, written only when
|
|
73
|
+
* declared: the wire name of the email the platform sends instead of its own invitation. Older
|
|
74
|
+
* readers ignore `sections` and `invitationEmail`, leave the two values empty and send the
|
|
75
|
+
* platform's invitation.
|
|
71
76
|
*/
|
|
72
77
|
export const MANIFEST_VERSION = 15;
|
|
73
78
|
/** The first version whose documents use snake_case names on the wire. */
|
|
@@ -420,11 +425,14 @@ export const SignInManifest = Schema.Struct({
|
|
|
420
425
|
signUp: Schema.optionalKey(SignUpManifest),
|
|
421
426
|
onSignUp: Schema.optionalKey(Schema.String),
|
|
422
427
|
guest: Schema.optionalKey(GuestManifest),
|
|
428
|
+
/** The wire name of the email the platform sends instead of its own invitation. */
|
|
429
|
+
invitationEmail: Schema.optionalKey(Schema.String),
|
|
423
430
|
}).pipe(Schema.encodeKeys({
|
|
424
431
|
onNewUser: "on_new_user",
|
|
425
432
|
codeLink: "code_link",
|
|
426
433
|
signUp: "sign_up",
|
|
427
434
|
onSignUp: "on_sign_up",
|
|
435
|
+
invitationEmail: "invitation_email",
|
|
428
436
|
}));
|
|
429
437
|
/** One of the workspace's emails, as `defineOntology({ emails })` declares it; see `EmailTemplate`. */
|
|
430
438
|
export const EmailTemplateManifest = Schema.Struct({
|
|
@@ -435,6 +443,17 @@ export const EmailTemplateManifest = Schema.Struct({
|
|
|
435
443
|
note: Schema.optionalKey(Schema.String),
|
|
436
444
|
paragraphs: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
437
445
|
action: Schema.String,
|
|
446
|
+
sections: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
447
|
+
title: Schema.String,
|
|
448
|
+
text: Schema.optionalKey(Schema.String),
|
|
449
|
+
copy: Schema.optionalKey(Schema.Struct({ label: Schema.optionalKey(Schema.String), value: Schema.String })),
|
|
450
|
+
items: Schema.optionalKey(Schema.Array(Schema.Struct({
|
|
451
|
+
label: Schema.String,
|
|
452
|
+
text: Schema.optionalKey(Schema.String),
|
|
453
|
+
code: Schema.optionalKey(Schema.String),
|
|
454
|
+
}))),
|
|
455
|
+
note: Schema.optionalKey(Schema.String),
|
|
456
|
+
}))),
|
|
438
457
|
footer: Schema.optionalKey(Schema.String),
|
|
439
458
|
replyTo: Schema.optionalKey(Schema.String),
|
|
440
459
|
}).pipe(Schema.encodeKeys({ replyTo: "reply_to" }));
|
|
@@ -854,6 +873,9 @@ export function buildManifest(input) {
|
|
|
854
873
|
...(input.signIn.browser === undefined ? {} : { browser: input.signIn.browser }),
|
|
855
874
|
...(input.signIn.onNewUser === undefined ? {} : { onNewUser: input.signIn.onNewUser }),
|
|
856
875
|
...(input.signIn.codeLink === undefined ? {} : { codeLink: input.signIn.codeLink }),
|
|
876
|
+
...(input.signIn.invitationEmail === undefined
|
|
877
|
+
? {}
|
|
878
|
+
: { invitationEmail: input.signIn.invitationEmail }),
|
|
857
879
|
...(Object.keys(input.signIn.channels ?? {}).length > 0
|
|
858
880
|
? { channels: input.signIn.channels }
|
|
859
881
|
: {}),
|
package/dist/migrate/model.d.ts
CHANGED
|
@@ -505,6 +505,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
505
505
|
readonly origins?: readonly string[] | undefined;
|
|
506
506
|
} | undefined;
|
|
507
507
|
readonly onSignUp?: string | undefined;
|
|
508
|
+
readonly invitationEmail?: string | undefined;
|
|
508
509
|
} | undefined;
|
|
509
510
|
readonly emails?: {
|
|
510
511
|
readonly [x: string]: {
|
|
@@ -519,6 +520,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
519
520
|
} | undefined;
|
|
520
521
|
readonly note?: string | undefined;
|
|
521
522
|
readonly paragraphs?: readonly string[] | undefined;
|
|
523
|
+
readonly sections?: readonly {
|
|
524
|
+
readonly title: string;
|
|
525
|
+
readonly text?: string | undefined;
|
|
526
|
+
readonly items?: readonly {
|
|
527
|
+
readonly label: string;
|
|
528
|
+
readonly code?: string | undefined;
|
|
529
|
+
readonly text?: string | undefined;
|
|
530
|
+
}[] | undefined;
|
|
531
|
+
readonly note?: string | undefined;
|
|
532
|
+
readonly copy?: {
|
|
533
|
+
readonly value: string;
|
|
534
|
+
readonly label?: string | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
}[] | undefined;
|
|
522
537
|
readonly footer?: string | undefined;
|
|
523
538
|
};
|
|
524
539
|
} | undefined;
|
|
@@ -781,6 +796,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
781
796
|
readonly origins?: readonly string[] | undefined;
|
|
782
797
|
} | undefined;
|
|
783
798
|
readonly onSignUp?: string | undefined;
|
|
799
|
+
readonly invitationEmail?: string | undefined;
|
|
784
800
|
} | undefined;
|
|
785
801
|
readonly emails?: {
|
|
786
802
|
readonly [x: string]: {
|
|
@@ -795,6 +811,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
795
811
|
} | undefined;
|
|
796
812
|
readonly note?: string | undefined;
|
|
797
813
|
readonly paragraphs?: readonly string[] | undefined;
|
|
814
|
+
readonly sections?: readonly {
|
|
815
|
+
readonly title: string;
|
|
816
|
+
readonly text?: string | undefined;
|
|
817
|
+
readonly items?: readonly {
|
|
818
|
+
readonly label: string;
|
|
819
|
+
readonly code?: string | undefined;
|
|
820
|
+
readonly text?: string | undefined;
|
|
821
|
+
}[] | undefined;
|
|
822
|
+
readonly note?: string | undefined;
|
|
823
|
+
readonly copy?: {
|
|
824
|
+
readonly value: string;
|
|
825
|
+
readonly label?: string | undefined;
|
|
826
|
+
} | undefined;
|
|
827
|
+
}[] | undefined;
|
|
798
828
|
readonly footer?: string | undefined;
|
|
799
829
|
};
|
|
800
830
|
} | undefined;
|
|
@@ -1043,6 +1073,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1043
1073
|
} | undefined;
|
|
1044
1074
|
readonly note?: string | undefined;
|
|
1045
1075
|
readonly paragraphs?: readonly string[] | undefined;
|
|
1076
|
+
readonly sections?: readonly {
|
|
1077
|
+
readonly title: string;
|
|
1078
|
+
readonly text?: string | undefined;
|
|
1079
|
+
readonly items?: readonly {
|
|
1080
|
+
readonly label: string;
|
|
1081
|
+
readonly code?: string | undefined;
|
|
1082
|
+
readonly text?: string | undefined;
|
|
1083
|
+
}[] | undefined;
|
|
1084
|
+
readonly note?: string | undefined;
|
|
1085
|
+
readonly copy?: {
|
|
1086
|
+
readonly value: string;
|
|
1087
|
+
readonly label?: string | undefined;
|
|
1088
|
+
} | undefined;
|
|
1089
|
+
}[] | undefined;
|
|
1046
1090
|
readonly footer?: string | undefined;
|
|
1047
1091
|
readonly reply_to?: string | undefined;
|
|
1048
1092
|
};
|
|
@@ -1108,6 +1152,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1108
1152
|
readonly origins?: readonly string[] | undefined;
|
|
1109
1153
|
} | undefined;
|
|
1110
1154
|
readonly on_sign_up?: string | undefined;
|
|
1155
|
+
readonly invitation_email?: string | undefined;
|
|
1111
1156
|
} | undefined;
|
|
1112
1157
|
} | {
|
|
1113
1158
|
readonly version: number;
|
|
@@ -1333,6 +1378,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1333
1378
|
readonly origins?: readonly string[] | undefined;
|
|
1334
1379
|
} | undefined;
|
|
1335
1380
|
readonly on_sign_up?: string | undefined;
|
|
1381
|
+
readonly invitation_email?: string | undefined;
|
|
1336
1382
|
} | undefined;
|
|
1337
1383
|
readonly emails?: {
|
|
1338
1384
|
readonly [x: string]: {
|
|
@@ -1346,6 +1392,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1346
1392
|
} | undefined;
|
|
1347
1393
|
readonly note?: string | undefined;
|
|
1348
1394
|
readonly paragraphs?: readonly string[] | undefined;
|
|
1395
|
+
readonly sections?: readonly {
|
|
1396
|
+
readonly title: string;
|
|
1397
|
+
readonly text?: string | undefined;
|
|
1398
|
+
readonly items?: readonly {
|
|
1399
|
+
readonly label: string;
|
|
1400
|
+
readonly code?: string | undefined;
|
|
1401
|
+
readonly text?: string | undefined;
|
|
1402
|
+
}[] | undefined;
|
|
1403
|
+
readonly note?: string | undefined;
|
|
1404
|
+
readonly copy?: {
|
|
1405
|
+
readonly value: string;
|
|
1406
|
+
readonly label?: string | undefined;
|
|
1407
|
+
} | undefined;
|
|
1408
|
+
}[] | undefined;
|
|
1349
1409
|
readonly footer?: string | undefined;
|
|
1350
1410
|
readonly reply_to?: string | undefined;
|
|
1351
1411
|
};
|
|
@@ -1546,11 +1606,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1546
1606
|
readonly channels: Schema.$Array<Schema.String>;
|
|
1547
1607
|
readonly origins: Schema.$Array<Schema.String>;
|
|
1548
1608
|
}>>;
|
|
1609
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
1549
1610
|
}>, {
|
|
1550
1611
|
readonly onNewUser: "on_new_user";
|
|
1551
1612
|
readonly codeLink: "code_link";
|
|
1552
1613
|
readonly signUp: "sign_up";
|
|
1553
1614
|
readonly onSignUp: "on_sign_up";
|
|
1615
|
+
readonly invitationEmail: "invitation_email";
|
|
1554
1616
|
}>>;
|
|
1555
1617
|
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
1556
1618
|
readonly subject: Schema.String;
|
|
@@ -1563,6 +1625,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1563
1625
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
1564
1626
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1565
1627
|
readonly action: Schema.String;
|
|
1628
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1629
|
+
readonly title: Schema.String;
|
|
1630
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
1631
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
1632
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1633
|
+
readonly value: Schema.String;
|
|
1634
|
+
}>>;
|
|
1635
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1636
|
+
readonly label: Schema.String;
|
|
1637
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
1638
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1639
|
+
}>>>;
|
|
1640
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
1641
|
+
}>>>;
|
|
1566
1642
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1567
1643
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
1568
1644
|
}>, {
|
|
@@ -1813,11 +1889,13 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1813
1889
|
readonly channels: Schema.$Array<Schema.String>;
|
|
1814
1890
|
readonly origins: Schema.$Array<Schema.String>;
|
|
1815
1891
|
}>>;
|
|
1892
|
+
readonly invitationEmail: Schema.optionalKey<Schema.String>;
|
|
1816
1893
|
}>, {
|
|
1817
1894
|
readonly onNewUser: "on_new_user";
|
|
1818
1895
|
readonly codeLink: "code_link";
|
|
1819
1896
|
readonly signUp: "sign_up";
|
|
1820
1897
|
readonly onSignUp: "on_sign_up";
|
|
1898
|
+
readonly invitationEmail: "invitation_email";
|
|
1821
1899
|
}>>;
|
|
1822
1900
|
readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
|
|
1823
1901
|
readonly subject: Schema.String;
|
|
@@ -1830,6 +1908,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
1830
1908
|
readonly note: Schema.optionalKey<Schema.String>;
|
|
1831
1909
|
readonly paragraphs: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
1832
1910
|
readonly action: Schema.String;
|
|
1911
|
+
readonly sections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1912
|
+
readonly title: Schema.String;
|
|
1913
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
1914
|
+
readonly copy: Schema.optionalKey<Schema.Struct<{
|
|
1915
|
+
readonly label: Schema.optionalKey<Schema.String>;
|
|
1916
|
+
readonly value: Schema.String;
|
|
1917
|
+
}>>;
|
|
1918
|
+
readonly items: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1919
|
+
readonly label: Schema.String;
|
|
1920
|
+
readonly text: Schema.optionalKey<Schema.String>;
|
|
1921
|
+
readonly code: Schema.optionalKey<Schema.String>;
|
|
1922
|
+
}>>>;
|
|
1923
|
+
readonly note: Schema.optionalKey<Schema.String>;
|
|
1924
|
+
}>>>;
|
|
1833
1925
|
readonly footer: Schema.optionalKey<Schema.String>;
|
|
1834
1926
|
readonly replyTo: Schema.optionalKey<Schema.String>;
|
|
1835
1927
|
}>, {
|
|
@@ -2156,6 +2248,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2156
2248
|
readonly origins?: readonly string[] | undefined;
|
|
2157
2249
|
} | undefined;
|
|
2158
2250
|
readonly onSignUp?: string | undefined;
|
|
2251
|
+
readonly invitationEmail?: string | undefined;
|
|
2159
2252
|
} | undefined;
|
|
2160
2253
|
readonly emails?: {
|
|
2161
2254
|
readonly [x: string]: {
|
|
@@ -2170,6 +2263,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2170
2263
|
} | undefined;
|
|
2171
2264
|
readonly note?: string | undefined;
|
|
2172
2265
|
readonly paragraphs?: readonly string[] | undefined;
|
|
2266
|
+
readonly sections?: readonly {
|
|
2267
|
+
readonly title: string;
|
|
2268
|
+
readonly text?: string | undefined;
|
|
2269
|
+
readonly items?: readonly {
|
|
2270
|
+
readonly label: string;
|
|
2271
|
+
readonly code?: string | undefined;
|
|
2272
|
+
readonly text?: string | undefined;
|
|
2273
|
+
}[] | undefined;
|
|
2274
|
+
readonly note?: string | undefined;
|
|
2275
|
+
readonly copy?: {
|
|
2276
|
+
readonly value: string;
|
|
2277
|
+
readonly label?: string | undefined;
|
|
2278
|
+
} | undefined;
|
|
2279
|
+
}[] | undefined;
|
|
2173
2280
|
readonly footer?: string | undefined;
|
|
2174
2281
|
};
|
|
2175
2282
|
} | undefined;
|
|
@@ -2432,6 +2539,7 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2432
2539
|
readonly origins?: readonly string[] | undefined;
|
|
2433
2540
|
} | undefined;
|
|
2434
2541
|
readonly onSignUp?: string | undefined;
|
|
2542
|
+
readonly invitationEmail?: string | undefined;
|
|
2435
2543
|
} | undefined;
|
|
2436
2544
|
readonly emails?: {
|
|
2437
2545
|
readonly [x: string]: {
|
|
@@ -2446,6 +2554,20 @@ export declare const MigrationPlan: Schema.Struct<{
|
|
|
2446
2554
|
} | undefined;
|
|
2447
2555
|
readonly note?: string | undefined;
|
|
2448
2556
|
readonly paragraphs?: readonly string[] | undefined;
|
|
2557
|
+
readonly sections?: readonly {
|
|
2558
|
+
readonly title: string;
|
|
2559
|
+
readonly text?: string | undefined;
|
|
2560
|
+
readonly items?: readonly {
|
|
2561
|
+
readonly label: string;
|
|
2562
|
+
readonly code?: string | undefined;
|
|
2563
|
+
readonly text?: string | undefined;
|
|
2564
|
+
}[] | undefined;
|
|
2565
|
+
readonly note?: string | undefined;
|
|
2566
|
+
readonly copy?: {
|
|
2567
|
+
readonly value: string;
|
|
2568
|
+
readonly label?: string | undefined;
|
|
2569
|
+
} | undefined;
|
|
2570
|
+
}[] | undefined;
|
|
2449
2571
|
readonly footer?: string | undefined;
|
|
2450
2572
|
};
|
|
2451
2573
|
} | undefined;
|