@segmentstream/ontology 0.95.0 → 0.97.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.
Files changed (44) hide show
  1. package/README.md +39 -4
  2. package/dist/analyze.d.ts +23 -3
  3. package/dist/analyze.js +431 -17
  4. package/dist/authoring.js +3 -0
  5. package/dist/bin/check.js +2 -0
  6. package/dist/diagnostics.d.ts +3 -3
  7. package/dist/diagnostics.js +2 -0
  8. package/dist/index.d.ts +5 -3
  9. package/dist/index.js +3 -2
  10. package/dist/manifest.d.ts +607 -20
  11. package/dist/manifest.js +96 -4
  12. package/dist/migrate/apply.js +5 -1
  13. package/dist/migrate/model.d.ts +332 -12
  14. package/dist/migrate/storage.js +2 -0
  15. package/dist/ontology.d.ts +5 -2
  16. package/dist/ontology.js +1 -0
  17. package/dist/runtime/member-tables.d.ts +7 -2
  18. package/dist/runtime/member-tables.js +18 -3
  19. package/dist/runtime/new-user-hook.d.ts +11 -1
  20. package/dist/runtime/new-user-hook.js +69 -29
  21. package/dist/runtime/pipeline.d.ts +2 -0
  22. package/dist/runtime/pipeline.js +11 -3
  23. package/dist/runtime/principals.d.ts +13 -0
  24. package/dist/runtime/principals.js +98 -28
  25. package/dist/runtime/resolve-agent-identity.js +43 -12
  26. package/dist/runtime/service-binding.js +10 -4
  27. package/dist/service/catalog.js +10 -1
  28. package/dist/service/chat/envelope.d.ts +16 -16
  29. package/dist/service/connections.js +1 -0
  30. package/dist/service/discovery-search.d.ts +1 -1
  31. package/dist/service/mcp/server.js +13 -1
  32. package/dist/service/mcp/tools.d.ts +5 -0
  33. package/dist/service/mcp/tools.js +30 -0
  34. package/dist/service/operations.d.ts +3 -1
  35. package/dist/service/operations.js +3 -0
  36. package/dist/service/schemas.d.ts +74 -0
  37. package/dist/service/toolsets.d.ts +49 -0
  38. package/dist/service/toolsets.js +284 -0
  39. package/dist/sign-in.d.ts +32 -1
  40. package/dist/sign-in.js +12 -1
  41. package/dist/toolset.d.ts +141 -0
  42. package/dist/toolset.js +154 -0
  43. package/dist/user-identity.d.ts +1 -1
  44. package/package.json +1 -1
@@ -3,7 +3,8 @@ import { Effect, Schema } from "effect";
3
3
  import type { ResolvedConnection, ResolvedEntity } from "./analyze.js";
4
4
  import type { ResolvedFeedback } from "./feedback-config.js";
5
5
  import type { Role } from "./role.js";
6
- import { type SignInOptions, type SignInPolicy } from "./sign-in.js";
6
+ import type { ResolvedToolset } from "./toolset.js";
7
+ import { type ResolvedSignInOptions, type SignInPolicy } from "./sign-in.js";
7
8
  /**
8
9
  * The manifest format this SDK writes. Readers accept any version and ignore unknown fields. Version
9
10
  * 2 replaced the actions' `allow` with `permission`, and added the roles' `permissions` and the
@@ -56,6 +57,9 @@ import { type SignInOptions, type SignInPolicy } from "./sign-in.js";
56
57
  * Within version 15, `chat` may carry `slack` and `whatsapp` beside `telegram`: the connections
57
58
  * exact chat posts to Slack chats and to members' WhatsApp chats go through. Older readers ignore
58
59
  * them, and their services post to Telegram alone.
60
+ * Within version 15, `signIn` may carry `signUp`, the wire names of the roles each channel open to
61
+ * sign-up grants, and `onSignUp`, written only when declared. Older readers ignore them and keep
62
+ * every channel closed to sign-up.
59
63
  */
60
64
  export declare const MANIFEST_VERSION = 15;
61
65
  /** The phrase used for a direction the author did not phrase. */
@@ -525,6 +529,62 @@ export declare const WorkflowManifest: Schema.Struct<{
525
529
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
526
530
  }>;
527
531
  export type WorkflowManifest = typeof WorkflowManifest.Type;
532
+ /**
533
+ * A provider's MCP tools the ontology serves, `defineOntology({ toolsets })`: the connection's MCP
534
+ * API, each tool's declared access and fixed values, and the action the catalog serves it as, whose
535
+ * `connections` is the toolset's connection. A toolset has no records.
536
+ */
537
+ export declare const ToolsetManifest: Schema.Struct<{
538
+ readonly name: Schema.String;
539
+ readonly description: Schema.String;
540
+ readonly connection: Schema.String;
541
+ readonly api: Schema.String;
542
+ readonly tools: Schema.$Array<Schema.Struct<{
543
+ readonly name: Schema.String;
544
+ readonly access: Schema.Literals<readonly ["read", "write"]>;
545
+ readonly fixed: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
546
+ }>>;
547
+ readonly actions: Schema.$Array<Schema.Struct<{
548
+ readonly name: Schema.String;
549
+ readonly description: Schema.String;
550
+ /**
551
+ * The permission a principal needs to run the action, for example `lead:changeStatus`. Always
552
+ * written; absent from version 1 manifests, where it reads as `<entity>:<action name>`.
553
+ */
554
+ readonly permission: Schema.optionalKey<Schema.String>;
555
+ /** JSON Schema (draft 2020-12) of the input object. */
556
+ readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
557
+ /** Opt-in SQL handler replay after a confirmed deadlock rollback; absent means disabled. */
558
+ readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
559
+ /**
560
+ * The entities the handler writes, by name, as the action declares them; the runtime refuses any
561
+ * other write. Absent means it declares none and may write any entity; `[]` writes nothing.
562
+ */
563
+ readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
564
+ /**
565
+ * The keys of the workspace connections the action calls before its transaction. Written only
566
+ * when there are some; absent reads as none.
567
+ */
568
+ readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
569
+ /** File writes declared in code; absence grants preparation no staging targets. */
570
+ readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
571
+ readonly entity: Schema.String;
572
+ readonly property: Schema.String;
573
+ }>>>;
574
+ /**
575
+ * How the action behaves, as MCP tool annotations tell agents. Written only when the action
576
+ * declares hints; absent safety labels require agent confirmation for compatibility.
577
+ */
578
+ readonly hints: Schema.optionalKey<Schema.Struct<{
579
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
580
+ readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
581
+ readonly destructive: Schema.optionalKey<Schema.Boolean>;
582
+ readonly irreversible: Schema.optionalKey<Schema.Boolean>;
583
+ readonly idempotent: Schema.optionalKey<Schema.Boolean>;
584
+ }>>;
585
+ }>>;
586
+ }>;
587
+ export type ToolsetManifest = typeof ToolsetManifest.Type;
528
588
  /** A workspace connection the ontology's actions call, by its key in `connections/connections.py`. */
529
589
  export declare const ConnectionManifest: Schema.Struct<{
530
590
  readonly key: Schema.String;
@@ -548,6 +608,10 @@ export declare const BrowserSignInManifest: Schema.encodeKeys<Schema.Struct<{
548
608
  }>, {
549
609
  readonly autoRedirect: "auto_redirect";
550
610
  }>;
611
+ /** Sign-up: the wire names of the roles each open channel grants. Unknown channels stay closed. */
612
+ export declare const SignUpManifest: Schema.Struct<{
613
+ readonly channels: Schema.$Record<Schema.String, Schema.Unknown>;
614
+ }>;
551
615
  export declare const SignInManifest: Schema.encodeKeys<Schema.Struct<{
552
616
  readonly browser: Schema.optionalKey<Schema.encodeKeys<Schema.Struct<{
553
617
  readonly methods: Schema.$Array<Schema.String>;
@@ -563,9 +627,15 @@ export declare const SignInManifest: Schema.encodeKeys<Schema.Struct<{
563
627
  readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
564
628
  readonly onNewUser: Schema.optionalKey<Schema.String>;
565
629
  readonly codeLink: Schema.optionalKey<Schema.Boolean>;
630
+ readonly signUp: Schema.optionalKey<Schema.Struct<{
631
+ readonly channels: Schema.$Record<Schema.String, Schema.Unknown>;
632
+ }>>;
633
+ readonly onSignUp: Schema.optionalKey<Schema.String>;
566
634
  }>, {
567
635
  readonly onNewUser: "on_new_user";
568
636
  readonly codeLink: "code_link";
637
+ readonly signUp: "sign_up";
638
+ readonly onSignUp: "on_sign_up";
569
639
  }>;
570
640
  export type SignInManifest = typeof SignInManifest.Type;
571
641
  /** One of the workspace's emails, as `defineOntology({ emails })` declares it; see `EmailTemplate`. */
@@ -837,9 +907,15 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
837
907
  readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
838
908
  readonly onNewUser: Schema.optionalKey<Schema.String>;
839
909
  readonly codeLink: Schema.optionalKey<Schema.Boolean>;
910
+ readonly signUp: Schema.optionalKey<Schema.Struct<{
911
+ readonly channels: Schema.$Record<Schema.String, Schema.Unknown>;
912
+ }>>;
913
+ readonly onSignUp: Schema.optionalKey<Schema.String>;
840
914
  }>, {
841
915
  readonly onNewUser: "on_new_user";
842
916
  readonly codeLink: "code_link";
917
+ readonly signUp: "sign_up";
918
+ readonly onSignUp: "on_sign_up";
843
919
  }>>;
844
920
  /** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
845
921
  readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
@@ -940,6 +1016,60 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
940
1016
  readonly headers: Schema.optionalKey<Schema.$Array<Schema.String>>;
941
1017
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
942
1018
  }>>>;
1019
+ /**
1020
+ * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
1021
+ * absent reads as none, and older readers ignore it.
1022
+ */
1023
+ readonly toolsets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1024
+ readonly name: Schema.String;
1025
+ readonly description: Schema.String;
1026
+ readonly connection: Schema.String;
1027
+ readonly api: Schema.String;
1028
+ readonly tools: Schema.$Array<Schema.Struct<{
1029
+ readonly name: Schema.String;
1030
+ readonly access: Schema.Literals<readonly ["read", "write"]>;
1031
+ readonly fixed: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
1032
+ }>>;
1033
+ readonly actions: Schema.$Array<Schema.Struct<{
1034
+ readonly name: Schema.String;
1035
+ readonly description: Schema.String;
1036
+ /**
1037
+ * The permission a principal needs to run the action, for example `lead:changeStatus`. Always
1038
+ * written; absent from version 1 manifests, where it reads as `<entity>:<action name>`.
1039
+ */
1040
+ readonly permission: Schema.optionalKey<Schema.String>;
1041
+ /** JSON Schema (draft 2020-12) of the input object. */
1042
+ readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1043
+ /** Opt-in SQL handler replay after a confirmed deadlock rollback; absent means disabled. */
1044
+ readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
1045
+ /**
1046
+ * The entities the handler writes, by name, as the action declares them; the runtime refuses any
1047
+ * other write. Absent means it declares none and may write any entity; `[]` writes nothing.
1048
+ */
1049
+ readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1050
+ /**
1051
+ * The keys of the workspace connections the action calls before its transaction. Written only
1052
+ * when there are some; absent reads as none.
1053
+ */
1054
+ readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
1055
+ /** File writes declared in code; absence grants preparation no staging targets. */
1056
+ readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1057
+ readonly entity: Schema.String;
1058
+ readonly property: Schema.String;
1059
+ }>>>;
1060
+ /**
1061
+ * How the action behaves, as MCP tool annotations tell agents. Written only when the action
1062
+ * declares hints; absent safety labels require agent confirmation for compatibility.
1063
+ */
1064
+ readonly hints: Schema.optionalKey<Schema.Struct<{
1065
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
1066
+ readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
1067
+ readonly destructive: Schema.optionalKey<Schema.Boolean>;
1068
+ readonly irreversible: Schema.optionalKey<Schema.Boolean>;
1069
+ readonly idempotent: Schema.optionalKey<Schema.Boolean>;
1070
+ }>>;
1071
+ }>>;
1072
+ }>>>;
943
1073
  }>, {
944
1074
  readonly signIn: "sign_in";
945
1075
  }>;
@@ -1067,10 +1197,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1067
1197
  readonly telegram?: {
1068
1198
  readonly connection: string;
1069
1199
  } | undefined;
1070
- readonly slack?: {
1200
+ readonly whatsapp?: {
1071
1201
  readonly connection: string;
1072
1202
  } | undefined;
1073
- readonly whatsapp?: {
1203
+ readonly slack?: {
1074
1204
  readonly connection: string;
1075
1205
  } | undefined;
1076
1206
  readonly attribution?: {
@@ -1158,6 +1288,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1158
1288
  } | undefined;
1159
1289
  readonly onNewUser?: string | undefined;
1160
1290
  readonly codeLink?: boolean | undefined;
1291
+ readonly signUp?: {
1292
+ readonly channels: {
1293
+ readonly [x: string]: unknown;
1294
+ };
1295
+ } | undefined;
1296
+ readonly onSignUp?: string | undefined;
1161
1297
  } | undefined;
1162
1298
  readonly emails?: {
1163
1299
  readonly [x: string]: {
@@ -1175,6 +1311,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1175
1311
  readonly footer?: string | undefined;
1176
1312
  };
1177
1313
  } | undefined;
1314
+ readonly toolsets?: readonly {
1315
+ readonly name: string;
1316
+ readonly description: string;
1317
+ readonly connection: string;
1318
+ readonly api: string;
1319
+ readonly tools: readonly {
1320
+ readonly name: string;
1321
+ readonly access: "read" | "write";
1322
+ readonly fixed: {
1323
+ readonly [x: string]: string | number | boolean;
1324
+ };
1325
+ }[];
1326
+ readonly actions: readonly {
1327
+ readonly name: string;
1328
+ readonly description: string;
1329
+ readonly input: {
1330
+ readonly [x: string]: Schema.Json;
1331
+ };
1332
+ readonly permission?: string | undefined;
1333
+ readonly retryOnDeadlock?: boolean | undefined;
1334
+ readonly writes?: readonly string[] | undefined;
1335
+ readonly connections?: readonly string[] | undefined;
1336
+ readonly files?: readonly {
1337
+ readonly entity: string;
1338
+ readonly property: string;
1339
+ }[] | undefined;
1340
+ readonly hints?: {
1341
+ readonly readOnly?: boolean | undefined;
1342
+ readonly connectionsReadOnly?: boolean | undefined;
1343
+ readonly destructive?: boolean | undefined;
1344
+ readonly irreversible?: boolean | undefined;
1345
+ readonly idempotent?: boolean | undefined;
1346
+ } | undefined;
1347
+ }[];
1348
+ }[] | undefined;
1178
1349
  } | {
1179
1350
  readonly version: number;
1180
1351
  readonly hash: string;
@@ -1294,10 +1465,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1294
1465
  readonly telegram?: {
1295
1466
  readonly connection: string;
1296
1467
  } | undefined;
1297
- readonly slack?: {
1468
+ readonly whatsapp?: {
1298
1469
  readonly connection: string;
1299
1470
  } | undefined;
1300
- readonly whatsapp?: {
1471
+ readonly slack?: {
1301
1472
  readonly connection: string;
1302
1473
  } | undefined;
1303
1474
  readonly attribution?: {
@@ -1385,6 +1556,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1385
1556
  } | undefined;
1386
1557
  readonly onNewUser?: string | undefined;
1387
1558
  readonly codeLink?: boolean | undefined;
1559
+ readonly signUp?: {
1560
+ readonly channels: {
1561
+ readonly [x: string]: unknown;
1562
+ };
1563
+ } | undefined;
1564
+ readonly onSignUp?: string | undefined;
1388
1565
  } | undefined;
1389
1566
  readonly emails?: {
1390
1567
  readonly [x: string]: {
@@ -1402,6 +1579,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1402
1579
  readonly footer?: string | undefined;
1403
1580
  };
1404
1581
  } | undefined;
1582
+ readonly toolsets?: readonly {
1583
+ readonly name: string;
1584
+ readonly description: string;
1585
+ readonly connection: string;
1586
+ readonly api: string;
1587
+ readonly tools: readonly {
1588
+ readonly name: string;
1589
+ readonly access: "read" | "write";
1590
+ readonly fixed: {
1591
+ readonly [x: string]: string | number | boolean;
1592
+ };
1593
+ }[];
1594
+ readonly actions: readonly {
1595
+ readonly name: string;
1596
+ readonly description: string;
1597
+ readonly input: {
1598
+ readonly [x: string]: Schema.Json;
1599
+ };
1600
+ readonly permission?: string | undefined;
1601
+ readonly retryOnDeadlock?: boolean | undefined;
1602
+ readonly writes?: readonly string[] | undefined;
1603
+ readonly connections?: readonly string[] | undefined;
1604
+ readonly files?: readonly {
1605
+ readonly entity: string;
1606
+ readonly property: string;
1607
+ }[] | undefined;
1608
+ readonly hints?: {
1609
+ readonly readOnly?: boolean | undefined;
1610
+ readonly connectionsReadOnly?: boolean | undefined;
1611
+ readonly destructive?: boolean | undefined;
1612
+ readonly irreversible?: boolean | undefined;
1613
+ readonly idempotent?: boolean | undefined;
1614
+ } | undefined;
1615
+ }[];
1616
+ }[] | undefined;
1405
1617
  }, {
1406
1618
  readonly version: number;
1407
1619
  readonly hash: string;
@@ -1521,10 +1733,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1521
1733
  readonly telegram?: {
1522
1734
  readonly connection: string;
1523
1735
  } | undefined;
1524
- readonly slack?: {
1736
+ readonly whatsapp?: {
1525
1737
  readonly connection: string;
1526
1738
  } | undefined;
1527
- readonly whatsapp?: {
1739
+ readonly slack?: {
1528
1740
  readonly connection: string;
1529
1741
  } | undefined;
1530
1742
  readonly attribution?: {
@@ -1613,6 +1825,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1613
1825
  readonly reply_to?: string | undefined;
1614
1826
  };
1615
1827
  } | undefined;
1828
+ readonly toolsets?: readonly {
1829
+ readonly name: string;
1830
+ readonly description: string;
1831
+ readonly connection: string;
1832
+ readonly api: string;
1833
+ readonly tools: readonly {
1834
+ readonly name: string;
1835
+ readonly access: "read" | "write";
1836
+ readonly fixed: {
1837
+ readonly [x: string]: string | number | boolean;
1838
+ };
1839
+ }[];
1840
+ readonly actions: readonly {
1841
+ readonly name: string;
1842
+ readonly description: string;
1843
+ readonly input: {
1844
+ readonly [x: string]: Schema.Json;
1845
+ };
1846
+ readonly permission?: string | undefined;
1847
+ readonly retryOnDeadlock?: boolean | undefined;
1848
+ readonly writes?: readonly string[] | undefined;
1849
+ readonly connections?: readonly string[] | undefined;
1850
+ readonly files?: readonly {
1851
+ readonly entity: string;
1852
+ readonly property: string;
1853
+ }[] | undefined;
1854
+ readonly hints?: {
1855
+ readonly readOnly?: boolean | undefined;
1856
+ readonly connectionsReadOnly?: boolean | undefined;
1857
+ readonly destructive?: boolean | undefined;
1858
+ readonly irreversible?: boolean | undefined;
1859
+ readonly idempotent?: boolean | undefined;
1860
+ } | undefined;
1861
+ }[];
1862
+ }[] | undefined;
1616
1863
  readonly sign_in?: {
1617
1864
  readonly policy: string;
1618
1865
  readonly browser?: {
@@ -1628,6 +1875,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1628
1875
  } | undefined;
1629
1876
  readonly on_new_user?: string | undefined;
1630
1877
  readonly code_link?: boolean | undefined;
1878
+ readonly sign_up?: {
1879
+ readonly channels: {
1880
+ readonly [x: string]: unknown;
1881
+ };
1882
+ } | undefined;
1883
+ readonly on_sign_up?: string | undefined;
1631
1884
  } | undefined;
1632
1885
  } | {
1633
1886
  readonly version: number;
@@ -1748,10 +2001,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1748
2001
  readonly telegram?: {
1749
2002
  readonly connection: string;
1750
2003
  } | undefined;
1751
- readonly slack?: {
2004
+ readonly whatsapp?: {
1752
2005
  readonly connection: string;
1753
2006
  } | undefined;
1754
- readonly whatsapp?: {
2007
+ readonly slack?: {
1755
2008
  readonly connection: string;
1756
2009
  } | undefined;
1757
2010
  readonly attribution?: {
@@ -1839,6 +2092,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1839
2092
  } | undefined;
1840
2093
  readonly on_new_user?: string | undefined;
1841
2094
  readonly code_link?: boolean | undefined;
2095
+ readonly sign_up?: {
2096
+ readonly channels: {
2097
+ readonly [x: string]: unknown;
2098
+ };
2099
+ } | undefined;
2100
+ readonly on_sign_up?: string | undefined;
1842
2101
  } | undefined;
1843
2102
  readonly emails?: {
1844
2103
  readonly [x: string]: {
@@ -1856,6 +2115,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1856
2115
  readonly reply_to?: string | undefined;
1857
2116
  };
1858
2117
  } | undefined;
2118
+ readonly toolsets?: readonly {
2119
+ readonly name: string;
2120
+ readonly description: string;
2121
+ readonly connection: string;
2122
+ readonly api: string;
2123
+ readonly tools: readonly {
2124
+ readonly name: string;
2125
+ readonly access: "read" | "write";
2126
+ readonly fixed: {
2127
+ readonly [x: string]: string | number | boolean;
2128
+ };
2129
+ }[];
2130
+ readonly actions: readonly {
2131
+ readonly name: string;
2132
+ readonly description: string;
2133
+ readonly input: {
2134
+ readonly [x: string]: Schema.Json;
2135
+ };
2136
+ readonly permission?: string | undefined;
2137
+ readonly retryOnDeadlock?: boolean | undefined;
2138
+ readonly writes?: readonly string[] | undefined;
2139
+ readonly connections?: readonly string[] | undefined;
2140
+ readonly files?: readonly {
2141
+ readonly entity: string;
2142
+ readonly property: string;
2143
+ }[] | undefined;
2144
+ readonly hints?: {
2145
+ readonly readOnly?: boolean | undefined;
2146
+ readonly connectionsReadOnly?: boolean | undefined;
2147
+ readonly destructive?: boolean | undefined;
2148
+ readonly irreversible?: boolean | undefined;
2149
+ readonly idempotent?: boolean | undefined;
2150
+ } | undefined;
2151
+ }[];
2152
+ }[] | undefined;
1859
2153
  }, readonly [Schema.Union<readonly [Schema.encodeKeys<Schema.Struct<{
1860
2154
  readonly entities: Schema.$Array<Schema.encodeKeys<Schema.Struct<{
1861
2155
  readonly metrics: Schema.optionalKey<Schema.$Array<Schema.encodeKeys<Schema.Struct<{
@@ -2052,9 +2346,15 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2052
2346
  readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
2053
2347
  readonly onNewUser: Schema.optionalKey<Schema.String>;
2054
2348
  readonly codeLink: Schema.optionalKey<Schema.Boolean>;
2349
+ readonly signUp: Schema.optionalKey<Schema.Struct<{
2350
+ readonly channels: Schema.$Record<Schema.String, Schema.Unknown>;
2351
+ }>>;
2352
+ readonly onSignUp: Schema.optionalKey<Schema.String>;
2055
2353
  }>, {
2056
2354
  readonly onNewUser: "on_new_user";
2057
2355
  readonly codeLink: "code_link";
2356
+ readonly signUp: "sign_up";
2357
+ readonly onSignUp: "on_sign_up";
2058
2358
  }>>;
2059
2359
  /** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
2060
2360
  readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
@@ -2155,6 +2455,60 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2155
2455
  readonly headers: Schema.optionalKey<Schema.$Array<Schema.String>>;
2156
2456
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2157
2457
  }>>>;
2458
+ /**
2459
+ * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
2460
+ * absent reads as none, and older readers ignore it.
2461
+ */
2462
+ readonly toolsets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2463
+ readonly name: Schema.String;
2464
+ readonly description: Schema.String;
2465
+ readonly connection: Schema.String;
2466
+ readonly api: Schema.String;
2467
+ readonly tools: Schema.$Array<Schema.Struct<{
2468
+ readonly name: Schema.String;
2469
+ readonly access: Schema.Literals<readonly ["read", "write"]>;
2470
+ readonly fixed: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
2471
+ }>>;
2472
+ readonly actions: Schema.$Array<Schema.Struct<{
2473
+ readonly name: Schema.String;
2474
+ readonly description: Schema.String;
2475
+ /**
2476
+ * The permission a principal needs to run the action, for example `lead:changeStatus`. Always
2477
+ * written; absent from version 1 manifests, where it reads as `<entity>:<action name>`.
2478
+ */
2479
+ readonly permission: Schema.optionalKey<Schema.String>;
2480
+ /** JSON Schema (draft 2020-12) of the input object. */
2481
+ readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2482
+ /** Opt-in SQL handler replay after a confirmed deadlock rollback; absent means disabled. */
2483
+ readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
2484
+ /**
2485
+ * The entities the handler writes, by name, as the action declares them; the runtime refuses any
2486
+ * other write. Absent means it declares none and may write any entity; `[]` writes nothing.
2487
+ */
2488
+ readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2489
+ /**
2490
+ * The keys of the workspace connections the action calls before its transaction. Written only
2491
+ * when there are some; absent reads as none.
2492
+ */
2493
+ readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
2494
+ /** File writes declared in code; absence grants preparation no staging targets. */
2495
+ readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2496
+ readonly entity: Schema.String;
2497
+ readonly property: Schema.String;
2498
+ }>>>;
2499
+ /**
2500
+ * How the action behaves, as MCP tool annotations tell agents. Written only when the action
2501
+ * declares hints; absent safety labels require agent confirmation for compatibility.
2502
+ */
2503
+ readonly hints: Schema.optionalKey<Schema.Struct<{
2504
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
2505
+ readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
2506
+ readonly destructive: Schema.optionalKey<Schema.Boolean>;
2507
+ readonly irreversible: Schema.optionalKey<Schema.Boolean>;
2508
+ readonly idempotent: Schema.optionalKey<Schema.Boolean>;
2509
+ }>>;
2510
+ }>>;
2511
+ }>>>;
2158
2512
  }>, {
2159
2513
  readonly signIn: "sign_in";
2160
2514
  }>, Schema.Struct<{
@@ -2346,9 +2700,15 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2346
2700
  readonly channels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>;
2347
2701
  readonly onNewUser: Schema.optionalKey<Schema.String>;
2348
2702
  readonly codeLink: Schema.optionalKey<Schema.Boolean>;
2703
+ readonly signUp: Schema.optionalKey<Schema.Struct<{
2704
+ readonly channels: Schema.$Record<Schema.String, Schema.Unknown>;
2705
+ }>>;
2706
+ readonly onSignUp: Schema.optionalKey<Schema.String>;
2349
2707
  }>, {
2350
2708
  readonly onNewUser: "on_new_user";
2351
2709
  readonly codeLink: "code_link";
2710
+ readonly signUp: "sign_up";
2711
+ readonly onSignUp: "on_sign_up";
2352
2712
  }>>;
2353
2713
  /** The workspace's own emails by wire name. Written only when there are some; absent reads as none. */
2354
2714
  readonly emails: Schema.optionalKey<Schema.$Record<Schema.String, Schema.encodeKeys<Schema.Struct<{
@@ -2449,6 +2809,60 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2449
2809
  readonly headers: Schema.optionalKey<Schema.$Array<Schema.String>>;
2450
2810
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2451
2811
  }>>>;
2812
+ /**
2813
+ * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
2814
+ * absent reads as none, and older readers ignore it.
2815
+ */
2816
+ readonly toolsets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2817
+ readonly name: Schema.String;
2818
+ readonly description: Schema.String;
2819
+ readonly connection: Schema.String;
2820
+ readonly api: Schema.String;
2821
+ readonly tools: Schema.$Array<Schema.Struct<{
2822
+ readonly name: Schema.String;
2823
+ readonly access: Schema.Literals<readonly ["read", "write"]>;
2824
+ readonly fixed: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
2825
+ }>>;
2826
+ readonly actions: Schema.$Array<Schema.Struct<{
2827
+ readonly name: Schema.String;
2828
+ readonly description: Schema.String;
2829
+ /**
2830
+ * The permission a principal needs to run the action, for example `lead:changeStatus`. Always
2831
+ * written; absent from version 1 manifests, where it reads as `<entity>:<action name>`.
2832
+ */
2833
+ readonly permission: Schema.optionalKey<Schema.String>;
2834
+ /** JSON Schema (draft 2020-12) of the input object. */
2835
+ readonly input: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
2836
+ /** Opt-in SQL handler replay after a confirmed deadlock rollback; absent means disabled. */
2837
+ readonly retryOnDeadlock: Schema.optionalKey<Schema.Boolean>;
2838
+ /**
2839
+ * The entities the handler writes, by name, as the action declares them; the runtime refuses any
2840
+ * other write. Absent means it declares none and may write any entity; `[]` writes nothing.
2841
+ */
2842
+ readonly writes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2843
+ /**
2844
+ * The keys of the workspace connections the action calls before its transaction. Written only
2845
+ * when there are some; absent reads as none.
2846
+ */
2847
+ readonly connections: Schema.optionalKey<Schema.$Array<Schema.String>>;
2848
+ /** File writes declared in code; absence grants preparation no staging targets. */
2849
+ readonly files: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2850
+ readonly entity: Schema.String;
2851
+ readonly property: Schema.String;
2852
+ }>>>;
2853
+ /**
2854
+ * How the action behaves, as MCP tool annotations tell agents. Written only when the action
2855
+ * declares hints; absent safety labels require agent confirmation for compatibility.
2856
+ */
2857
+ readonly hints: Schema.optionalKey<Schema.Struct<{
2858
+ readonly readOnly: Schema.optionalKey<Schema.Boolean>;
2859
+ readonly connectionsReadOnly: Schema.optionalKey<Schema.Boolean>;
2860
+ readonly destructive: Schema.optionalKey<Schema.Boolean>;
2861
+ readonly irreversible: Schema.optionalKey<Schema.Boolean>;
2862
+ readonly idempotent: Schema.optionalKey<Schema.Boolean>;
2863
+ }>>;
2864
+ }>>;
2865
+ }>>>;
2452
2866
  }>]>], {
2453
2867
  readonly version: number;
2454
2868
  readonly hash: string;
@@ -2568,10 +2982,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2568
2982
  readonly telegram?: {
2569
2983
  readonly connection: string;
2570
2984
  } | undefined;
2571
- readonly slack?: {
2985
+ readonly whatsapp?: {
2572
2986
  readonly connection: string;
2573
2987
  } | undefined;
2574
- readonly whatsapp?: {
2988
+ readonly slack?: {
2575
2989
  readonly connection: string;
2576
2990
  } | undefined;
2577
2991
  readonly attribution?: {
@@ -2659,6 +3073,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2659
3073
  } | undefined;
2660
3074
  readonly onNewUser?: string | undefined;
2661
3075
  readonly codeLink?: boolean | undefined;
3076
+ readonly signUp?: {
3077
+ readonly channels: {
3078
+ readonly [x: string]: unknown;
3079
+ };
3080
+ } | undefined;
3081
+ readonly onSignUp?: string | undefined;
2662
3082
  } | undefined;
2663
3083
  readonly emails?: {
2664
3084
  readonly [x: string]: {
@@ -2676,6 +3096,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2676
3096
  readonly footer?: string | undefined;
2677
3097
  };
2678
3098
  } | undefined;
3099
+ readonly toolsets?: readonly {
3100
+ readonly name: string;
3101
+ readonly description: string;
3102
+ readonly connection: string;
3103
+ readonly api: string;
3104
+ readonly tools: readonly {
3105
+ readonly name: string;
3106
+ readonly access: "read" | "write";
3107
+ readonly fixed: {
3108
+ readonly [x: string]: string | number | boolean;
3109
+ };
3110
+ }[];
3111
+ readonly actions: readonly {
3112
+ readonly name: string;
3113
+ readonly description: string;
3114
+ readonly input: {
3115
+ readonly [x: string]: Schema.Json;
3116
+ };
3117
+ readonly permission?: string | undefined;
3118
+ readonly retryOnDeadlock?: boolean | undefined;
3119
+ readonly writes?: readonly string[] | undefined;
3120
+ readonly connections?: readonly string[] | undefined;
3121
+ readonly files?: readonly {
3122
+ readonly entity: string;
3123
+ readonly property: string;
3124
+ }[] | undefined;
3125
+ readonly hints?: {
3126
+ readonly readOnly?: boolean | undefined;
3127
+ readonly connectionsReadOnly?: boolean | undefined;
3128
+ readonly destructive?: boolean | undefined;
3129
+ readonly irreversible?: boolean | undefined;
3130
+ readonly idempotent?: boolean | undefined;
3131
+ } | undefined;
3132
+ }[];
3133
+ }[] | undefined;
2679
3134
  } | {
2680
3135
  readonly version: number;
2681
3136
  readonly hash: string;
@@ -2795,10 +3250,10 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2795
3250
  readonly telegram?: {
2796
3251
  readonly connection: string;
2797
3252
  } | undefined;
2798
- readonly slack?: {
3253
+ readonly whatsapp?: {
2799
3254
  readonly connection: string;
2800
3255
  } | undefined;
2801
- readonly whatsapp?: {
3256
+ readonly slack?: {
2802
3257
  readonly connection: string;
2803
3258
  } | undefined;
2804
3259
  readonly attribution?: {
@@ -2886,6 +3341,12 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2886
3341
  } | undefined;
2887
3342
  readonly onNewUser?: string | undefined;
2888
3343
  readonly codeLink?: boolean | undefined;
3344
+ readonly signUp?: {
3345
+ readonly channels: {
3346
+ readonly [x: string]: unknown;
3347
+ };
3348
+ } | undefined;
3349
+ readonly onSignUp?: string | undefined;
2889
3350
  } | undefined;
2890
3351
  readonly emails?: {
2891
3352
  readonly [x: string]: {
@@ -2903,6 +3364,41 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2903
3364
  readonly footer?: string | undefined;
2904
3365
  };
2905
3366
  } | undefined;
3367
+ readonly toolsets?: readonly {
3368
+ readonly name: string;
3369
+ readonly description: string;
3370
+ readonly connection: string;
3371
+ readonly api: string;
3372
+ readonly tools: readonly {
3373
+ readonly name: string;
3374
+ readonly access: "read" | "write";
3375
+ readonly fixed: {
3376
+ readonly [x: string]: string | number | boolean;
3377
+ };
3378
+ }[];
3379
+ readonly actions: readonly {
3380
+ readonly name: string;
3381
+ readonly description: string;
3382
+ readonly input: {
3383
+ readonly [x: string]: Schema.Json;
3384
+ };
3385
+ readonly permission?: string | undefined;
3386
+ readonly retryOnDeadlock?: boolean | undefined;
3387
+ readonly writes?: readonly string[] | undefined;
3388
+ readonly connections?: readonly string[] | undefined;
3389
+ readonly files?: readonly {
3390
+ readonly entity: string;
3391
+ readonly property: string;
3392
+ }[] | undefined;
3393
+ readonly hints?: {
3394
+ readonly readOnly?: boolean | undefined;
3395
+ readonly connectionsReadOnly?: boolean | undefined;
3396
+ readonly destructive?: boolean | undefined;
3397
+ readonly irreversible?: boolean | undefined;
3398
+ readonly idempotent?: boolean | undefined;
3399
+ } | undefined;
3400
+ }[];
3401
+ }[] | undefined;
2906
3402
  }>;
2907
3403
  export type OntologyManifest = typeof OntologyManifest.Type;
2908
3404
  /**
@@ -3028,10 +3524,10 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3028
3524
  readonly telegram?: {
3029
3525
  readonly connection: string;
3030
3526
  } | undefined;
3031
- readonly slack?: {
3527
+ readonly whatsapp?: {
3032
3528
  readonly connection: string;
3033
3529
  } | undefined;
3034
- readonly whatsapp?: {
3530
+ readonly slack?: {
3035
3531
  readonly connection: string;
3036
3532
  } | undefined;
3037
3533
  readonly attribution?: {
@@ -3119,6 +3615,12 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3119
3615
  } | undefined;
3120
3616
  readonly onNewUser?: string | undefined;
3121
3617
  readonly codeLink?: boolean | undefined;
3618
+ readonly signUp?: {
3619
+ readonly channels: {
3620
+ readonly [x: string]: unknown;
3621
+ };
3622
+ } | undefined;
3623
+ readonly onSignUp?: string | undefined;
3122
3624
  } | undefined;
3123
3625
  readonly emails?: {
3124
3626
  readonly [x: string]: {
@@ -3136,6 +3638,41 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3136
3638
  readonly footer?: string | undefined;
3137
3639
  };
3138
3640
  } | undefined;
3641
+ readonly toolsets?: readonly {
3642
+ readonly name: string;
3643
+ readonly description: string;
3644
+ readonly connection: string;
3645
+ readonly api: string;
3646
+ readonly tools: readonly {
3647
+ readonly name: string;
3648
+ readonly access: "read" | "write";
3649
+ readonly fixed: {
3650
+ readonly [x: string]: string | number | boolean;
3651
+ };
3652
+ }[];
3653
+ readonly actions: readonly {
3654
+ readonly name: string;
3655
+ readonly description: string;
3656
+ readonly input: {
3657
+ readonly [x: string]: Schema.Json;
3658
+ };
3659
+ readonly permission?: string | undefined;
3660
+ readonly retryOnDeadlock?: boolean | undefined;
3661
+ readonly writes?: readonly string[] | undefined;
3662
+ readonly connections?: readonly string[] | undefined;
3663
+ readonly files?: readonly {
3664
+ readonly entity: string;
3665
+ readonly property: string;
3666
+ }[] | undefined;
3667
+ readonly hints?: {
3668
+ readonly readOnly?: boolean | undefined;
3669
+ readonly connectionsReadOnly?: boolean | undefined;
3670
+ readonly destructive?: boolean | undefined;
3671
+ readonly irreversible?: boolean | undefined;
3672
+ readonly idempotent?: boolean | undefined;
3673
+ } | undefined;
3674
+ }[];
3675
+ }[] | undefined;
3139
3676
  } | {
3140
3677
  readonly version: number;
3141
3678
  readonly hash: string;
@@ -3255,10 +3792,10 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3255
3792
  readonly telegram?: {
3256
3793
  readonly connection: string;
3257
3794
  } | undefined;
3258
- readonly slack?: {
3795
+ readonly whatsapp?: {
3259
3796
  readonly connection: string;
3260
3797
  } | undefined;
3261
- readonly whatsapp?: {
3798
+ readonly slack?: {
3262
3799
  readonly connection: string;
3263
3800
  } | undefined;
3264
3801
  readonly attribution?: {
@@ -3346,6 +3883,12 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3346
3883
  } | undefined;
3347
3884
  readonly onNewUser?: string | undefined;
3348
3885
  readonly codeLink?: boolean | undefined;
3886
+ readonly signUp?: {
3887
+ readonly channels: {
3888
+ readonly [x: string]: unknown;
3889
+ };
3890
+ } | undefined;
3891
+ readonly onSignUp?: string | undefined;
3349
3892
  } | undefined;
3350
3893
  readonly emails?: {
3351
3894
  readonly [x: string]: {
@@ -3363,6 +3906,41 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
3363
3906
  readonly footer?: string | undefined;
3364
3907
  };
3365
3908
  } | undefined;
3909
+ readonly toolsets?: readonly {
3910
+ readonly name: string;
3911
+ readonly description: string;
3912
+ readonly connection: string;
3913
+ readonly api: string;
3914
+ readonly tools: readonly {
3915
+ readonly name: string;
3916
+ readonly access: "read" | "write";
3917
+ readonly fixed: {
3918
+ readonly [x: string]: string | number | boolean;
3919
+ };
3920
+ }[];
3921
+ readonly actions: readonly {
3922
+ readonly name: string;
3923
+ readonly description: string;
3924
+ readonly input: {
3925
+ readonly [x: string]: Schema.Json;
3926
+ };
3927
+ readonly permission?: string | undefined;
3928
+ readonly retryOnDeadlock?: boolean | undefined;
3929
+ readonly writes?: readonly string[] | undefined;
3930
+ readonly connections?: readonly string[] | undefined;
3931
+ readonly files?: readonly {
3932
+ readonly entity: string;
3933
+ readonly property: string;
3934
+ }[] | undefined;
3935
+ readonly hints?: {
3936
+ readonly readOnly?: boolean | undefined;
3937
+ readonly connectionsReadOnly?: boolean | undefined;
3938
+ readonly destructive?: boolean | undefined;
3939
+ readonly irreversible?: boolean | undefined;
3940
+ readonly idempotent?: boolean | undefined;
3941
+ } | undefined;
3942
+ }[];
3943
+ }[] | undefined;
3366
3944
  }, Schema.SchemaError, never>;
3367
3945
  /** Encode only ontology-owned metadata. JSON values and JSON Schema keywords remain opaque. */
3368
3946
  export declare function encodeManifest(manifest: OntologyManifest): Readonly<Record<string, unknown>>;
@@ -3371,6 +3949,11 @@ export declare function encodeManifest(manifest: OntologyManifest): Readonly<Rec
3371
3949
  * not know, reads as `invited`: the closed choice, so that a misread never lets strangers in.
3372
3950
  */
3373
3951
  export declare function signInPolicyOf(manifest: Pick<OntologyManifest, "signIn">): SignInPolicy;
3952
+ /**
3953
+ * The wire names of the roles a stranger who signs up on this channel is given, or `undefined` when
3954
+ * the channel is closed to sign-up: not a channel this reader knows, or no well-formed entry.
3955
+ */
3956
+ export declare function signUpRolesOf(manifest: Pick<OntologyManifest, "signIn">, channel: string): ReadonlyArray<string> | undefined;
3374
3957
  /** Unsupported providers and missing or unknown channel policies require invitation. */
3375
3958
  export declare function channelPolicyOf(manifest: Pick<OntologyManifest, "signIn">, provider: string): SignInPolicy;
3376
3959
  /** JSON with object keys sorted at every level and no whitespace: the input of the manifest hash. */
@@ -3403,7 +3986,7 @@ export declare function buildManifest(input: {
3403
3986
  };
3404
3987
  readonly entities: ReadonlyArray<ResolvedEntity>;
3405
3988
  readonly roles: ReadonlyArray<Role>;
3406
- readonly signIn: SignInOptions;
3989
+ readonly signIn: ResolvedSignInOptions;
3407
3990
  /** The workspace's own emails by wire name. */
3408
3991
  readonly emails?: Readonly<Record<string, EmailTemplateManifest>>;
3409
3992
  readonly connections?: ReadonlyArray<ResolvedConnection>;
@@ -3411,6 +3994,10 @@ export declare function buildManifest(input: {
3411
3994
  readonly metrics?: ReadonlyArray<ModelMetricManifest>;
3412
3995
  /** The workflows, resolved to their manifest form. */
3413
3996
  readonly workflows?: ReadonlyArray<WorkflowManifest>;
3997
+ /** The toolsets that passed `check`. */
3998
+ readonly toolsets?: ReadonlyArray<ResolvedToolset>;
3414
3999
  }): OntologyManifest;
3415
- /** The keys of every connection the manifest's actions call, without duplicates. */
3416
- export declare function actionConnectionKeys(manifest: Pick<OntologyManifest, "entities">): Array<string>;
4000
+ /** A checked toolset as the manifest lists it: its tools, and the action each is served as. */
4001
+ export declare function toolsetManifest(resolved: ResolvedToolset): ToolsetManifest;
4002
+ /** The keys of every connection the manifest's actions and toolsets call, without duplicates. */
4003
+ export declare function actionConnectionKeys(manifest: Pick<OntologyManifest, "entities" | "toolsets">): Array<string>;