@segmentstream/ontology 0.118.0 → 0.119.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.
@@ -566,6 +566,15 @@ export declare const WorkflowManifest: Schema.Struct<{
566
566
  /** The key of the connection whose provider sends to the webhook, when declared. */
567
567
  readonly connection: Schema.optionalKey<Schema.String>;
568
568
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
569
+ /**
570
+ * The action a trigger listed in `defineOntology({ triggers })` runs, in wire names: the
571
+ * workflow is that trigger, published as a workflow, and its runs run the action. Written only
572
+ * for such a workflow.
573
+ */
574
+ readonly action: Schema.optionalKey<Schema.Struct<{
575
+ readonly entity: Schema.String;
576
+ readonly action: Schema.String;
577
+ }>>;
569
578
  }>;
570
579
  export type WorkflowManifest = typeof WorkflowManifest.Type;
571
580
  /**
@@ -1223,6 +1232,15 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
1223
1232
  /** The key of the connection whose provider sends to the webhook, when declared. */
1224
1233
  readonly connection: Schema.optionalKey<Schema.String>;
1225
1234
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
1235
+ /**
1236
+ * The action a trigger listed in `defineOntology({ triggers })` runs, in wire names: the
1237
+ * workflow is that trigger, published as a workflow, and its runs run the action. Written only
1238
+ * for such a workflow.
1239
+ */
1240
+ readonly action: Schema.optionalKey<Schema.Struct<{
1241
+ readonly entity: Schema.String;
1242
+ readonly action: Schema.String;
1243
+ }>>;
1226
1244
  }>>>;
1227
1245
  /**
1228
1246
  * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
@@ -1288,6 +1306,18 @@ export declare const OntologyManifestWire: Schema.encodeKeys<Schema.Struct<{
1288
1306
  */
1289
1307
  export declare const OntologyManifest: Schema.declareConstructor<{
1290
1308
  readonly version: number;
1309
+ readonly roles: readonly {
1310
+ readonly name: string;
1311
+ readonly description: string;
1312
+ readonly builtIn: boolean;
1313
+ readonly scopes?: readonly {
1314
+ readonly permission: string;
1315
+ readonly where: {
1316
+ readonly [x: string]: Schema.Json;
1317
+ };
1318
+ }[] | undefined;
1319
+ readonly permissions?: readonly string[] | undefined;
1320
+ }[];
1291
1321
  readonly hash: string;
1292
1322
  readonly entities: readonly {
1293
1323
  readonly id: string;
@@ -1389,18 +1419,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1389
1419
  readonly unlink?: string | undefined;
1390
1420
  } | undefined;
1391
1421
  }[];
1392
- readonly roles: readonly {
1393
- readonly name: string;
1394
- readonly description: string;
1395
- readonly builtIn: boolean;
1396
- readonly scopes?: readonly {
1397
- readonly permission: string;
1398
- readonly where: {
1399
- readonly [x: string]: Schema.Json;
1400
- };
1401
- }[] | undefined;
1402
- readonly permissions?: readonly string[] | undefined;
1403
- }[];
1404
1422
  readonly chat?: {
1405
1423
  readonly telegram?: {
1406
1424
  readonly connection: string;
@@ -1428,11 +1446,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1428
1446
  readonly workflows?: readonly {
1429
1447
  readonly name: string;
1430
1448
  readonly description: string;
1431
- readonly role: string;
1432
1449
  readonly input: {
1433
1450
  readonly [x: string]: Schema.Json;
1434
1451
  };
1435
1452
  readonly connections: readonly string[];
1453
+ readonly role: string;
1436
1454
  readonly triggers: readonly ({
1437
1455
  readonly kind: "cron";
1438
1456
  readonly name: string;
@@ -1450,6 +1468,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1450
1468
  readonly name: string;
1451
1469
  readonly description: string;
1452
1470
  readonly connection?: string | undefined;
1471
+ readonly headers?: readonly string[] | undefined;
1453
1472
  readonly signature?: {
1454
1473
  readonly scheme: string;
1455
1474
  readonly secret: string;
@@ -1458,10 +1477,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1458
1477
  readonly scheme: string;
1459
1478
  readonly verifyToken: string;
1460
1479
  } | undefined;
1461
- readonly headers?: readonly string[] | undefined;
1462
1480
  } | {
1463
1481
  readonly [x: string]: Schema.Json;
1464
1482
  })[];
1483
+ readonly action?: {
1484
+ readonly entity: string;
1485
+ readonly action: string;
1486
+ } | undefined;
1465
1487
  }[] | undefined;
1466
1488
  readonly metrics?: readonly {
1467
1489
  readonly name: string;
@@ -1601,6 +1623,18 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1601
1623
  }[] | undefined;
1602
1624
  } | {
1603
1625
  readonly version: number;
1626
+ readonly roles: readonly {
1627
+ readonly name: string;
1628
+ readonly description: string;
1629
+ readonly builtIn: boolean;
1630
+ readonly scopes?: readonly {
1631
+ readonly permission: string;
1632
+ readonly where: {
1633
+ readonly [x: string]: Schema.Json;
1634
+ };
1635
+ }[] | undefined;
1636
+ readonly permissions?: readonly string[] | undefined;
1637
+ }[];
1604
1638
  readonly hash: string;
1605
1639
  readonly entities: readonly {
1606
1640
  readonly id: string;
@@ -1702,18 +1736,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1702
1736
  readonly unlink?: string | undefined;
1703
1737
  } | undefined;
1704
1738
  }[];
1705
- readonly roles: readonly {
1706
- readonly name: string;
1707
- readonly description: string;
1708
- readonly builtIn: boolean;
1709
- readonly scopes?: readonly {
1710
- readonly permission: string;
1711
- readonly where: {
1712
- readonly [x: string]: Schema.Json;
1713
- };
1714
- }[] | undefined;
1715
- readonly permissions?: readonly string[] | undefined;
1716
- }[];
1717
1739
  readonly chat?: {
1718
1740
  readonly telegram?: {
1719
1741
  readonly connection: string;
@@ -1741,11 +1763,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1741
1763
  readonly workflows?: readonly {
1742
1764
  readonly name: string;
1743
1765
  readonly description: string;
1744
- readonly role: string;
1745
1766
  readonly input: {
1746
1767
  readonly [x: string]: Schema.Json;
1747
1768
  };
1748
1769
  readonly connections: readonly string[];
1770
+ readonly role: string;
1749
1771
  readonly triggers: readonly ({
1750
1772
  readonly kind: "cron";
1751
1773
  readonly name: string;
@@ -1763,6 +1785,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1763
1785
  readonly name: string;
1764
1786
  readonly description: string;
1765
1787
  readonly connection?: string | undefined;
1788
+ readonly headers?: readonly string[] | undefined;
1766
1789
  readonly signature?: {
1767
1790
  readonly scheme: string;
1768
1791
  readonly secret: string;
@@ -1771,10 +1794,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1771
1794
  readonly scheme: string;
1772
1795
  readonly verifyToken: string;
1773
1796
  } | undefined;
1774
- readonly headers?: readonly string[] | undefined;
1775
1797
  } | {
1776
1798
  readonly [x: string]: Schema.Json;
1777
1799
  })[];
1800
+ readonly action?: {
1801
+ readonly entity: string;
1802
+ readonly action: string;
1803
+ } | undefined;
1778
1804
  }[] | undefined;
1779
1805
  readonly metrics?: readonly {
1780
1806
  readonly name: string;
@@ -1914,6 +1940,18 @@ export declare const OntologyManifest: Schema.declareConstructor<{
1914
1940
  }[] | undefined;
1915
1941
  }, {
1916
1942
  readonly version: number;
1943
+ readonly roles: readonly {
1944
+ readonly name: string;
1945
+ readonly description: string;
1946
+ readonly built_in: boolean;
1947
+ readonly scopes?: readonly {
1948
+ readonly permission: string;
1949
+ readonly where: {
1950
+ readonly [x: string]: Schema.Json;
1951
+ };
1952
+ }[] | undefined;
1953
+ readonly permissions?: readonly string[] | undefined;
1954
+ }[];
1917
1955
  readonly hash: string;
1918
1956
  readonly entities: readonly {
1919
1957
  readonly id: string;
@@ -2015,18 +2053,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2015
2053
  } | undefined;
2016
2054
  readonly renamed_from?: string | undefined;
2017
2055
  }[];
2018
- readonly roles: readonly {
2019
- readonly name: string;
2020
- readonly description: string;
2021
- readonly built_in: boolean;
2022
- readonly scopes?: readonly {
2023
- readonly permission: string;
2024
- readonly where: {
2025
- readonly [x: string]: Schema.Json;
2026
- };
2027
- }[] | undefined;
2028
- readonly permissions?: readonly string[] | undefined;
2029
- }[];
2030
2056
  readonly chat?: {
2031
2057
  readonly telegram?: {
2032
2058
  readonly connection: string;
@@ -2054,11 +2080,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2054
2080
  readonly workflows?: readonly {
2055
2081
  readonly name: string;
2056
2082
  readonly description: string;
2057
- readonly role: string;
2058
2083
  readonly input: {
2059
2084
  readonly [x: string]: Schema.Json;
2060
2085
  };
2061
2086
  readonly connections: readonly string[];
2087
+ readonly role: string;
2062
2088
  readonly triggers: readonly ({
2063
2089
  readonly [x: string]: Schema.Json;
2064
2090
  } | {
@@ -2078,6 +2104,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2078
2104
  readonly name: string;
2079
2105
  readonly description: string;
2080
2106
  readonly connection?: string | undefined;
2107
+ readonly headers?: readonly string[] | undefined;
2081
2108
  readonly signature?: {
2082
2109
  readonly scheme: string;
2083
2110
  readonly secret: string;
@@ -2086,8 +2113,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2086
2113
  readonly scheme: string;
2087
2114
  readonly verifyToken: string;
2088
2115
  } | undefined;
2089
- readonly headers?: readonly string[] | undefined;
2090
2116
  })[];
2117
+ readonly action?: {
2118
+ readonly entity: string;
2119
+ readonly action: string;
2120
+ } | undefined;
2091
2121
  }[] | undefined;
2092
2122
  readonly metrics?: readonly {
2093
2123
  readonly name: string;
@@ -2227,6 +2257,18 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2227
2257
  } | undefined;
2228
2258
  } | {
2229
2259
  readonly version: number;
2260
+ readonly roles: readonly {
2261
+ readonly name: string;
2262
+ readonly description: string;
2263
+ readonly builtIn: boolean;
2264
+ readonly scopes?: readonly {
2265
+ readonly permission: string;
2266
+ readonly where: {
2267
+ readonly [x: string]: Schema.Json;
2268
+ };
2269
+ }[] | undefined;
2270
+ readonly permissions?: readonly string[] | undefined;
2271
+ }[];
2230
2272
  readonly hash: string;
2231
2273
  readonly entities: readonly {
2232
2274
  readonly id: string;
@@ -2328,18 +2370,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2328
2370
  readonly unlink?: string | undefined;
2329
2371
  } | undefined;
2330
2372
  }[];
2331
- readonly roles: readonly {
2332
- readonly name: string;
2333
- readonly description: string;
2334
- readonly builtIn: boolean;
2335
- readonly scopes?: readonly {
2336
- readonly permission: string;
2337
- readonly where: {
2338
- readonly [x: string]: Schema.Json;
2339
- };
2340
- }[] | undefined;
2341
- readonly permissions?: readonly string[] | undefined;
2342
- }[];
2343
2373
  readonly chat?: {
2344
2374
  readonly telegram?: {
2345
2375
  readonly connection: string;
@@ -2367,11 +2397,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2367
2397
  readonly workflows?: readonly {
2368
2398
  readonly name: string;
2369
2399
  readonly description: string;
2370
- readonly role: string;
2371
2400
  readonly input: {
2372
2401
  readonly [x: string]: Schema.Json;
2373
2402
  };
2374
2403
  readonly connections: readonly string[];
2404
+ readonly role: string;
2375
2405
  readonly triggers: readonly ({
2376
2406
  readonly [x: string]: Schema.Json;
2377
2407
  } | {
@@ -2391,6 +2421,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2391
2421
  readonly name: string;
2392
2422
  readonly description: string;
2393
2423
  readonly connection?: string | undefined;
2424
+ readonly headers?: readonly string[] | undefined;
2394
2425
  readonly signature?: {
2395
2426
  readonly scheme: string;
2396
2427
  readonly secret: string;
@@ -2399,8 +2430,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2399
2430
  readonly scheme: string;
2400
2431
  readonly verifyToken: string;
2401
2432
  } | undefined;
2402
- readonly headers?: readonly string[] | undefined;
2403
2433
  })[];
2434
+ readonly action?: {
2435
+ readonly entity: string;
2436
+ readonly action: string;
2437
+ } | undefined;
2404
2438
  }[] | undefined;
2405
2439
  readonly metrics?: readonly {
2406
2440
  readonly name: string;
@@ -2905,6 +2939,15 @@ export declare const OntologyManifest: Schema.declareConstructor<{
2905
2939
  /** The key of the connection whose provider sends to the webhook, when declared. */
2906
2940
  readonly connection: Schema.optionalKey<Schema.String>;
2907
2941
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
2942
+ /**
2943
+ * The action a trigger listed in `defineOntology({ triggers })` runs, in wire names: the
2944
+ * workflow is that trigger, published as a workflow, and its runs run the action. Written only
2945
+ * for such a workflow.
2946
+ */
2947
+ readonly action: Schema.optionalKey<Schema.Struct<{
2948
+ readonly entity: Schema.String;
2949
+ readonly action: Schema.String;
2950
+ }>>;
2908
2951
  }>>>;
2909
2952
  /**
2910
2953
  * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
@@ -3322,6 +3365,15 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3322
3365
  /** The key of the connection whose provider sends to the webhook, when declared. */
3323
3366
  readonly connection: Schema.optionalKey<Schema.String>;
3324
3367
  }>, Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>]>>;
3368
+ /**
3369
+ * The action a trigger listed in `defineOntology({ triggers })` runs, in wire names: the
3370
+ * workflow is that trigger, published as a workflow, and its runs run the action. Written only
3371
+ * for such a workflow.
3372
+ */
3373
+ readonly action: Schema.optionalKey<Schema.Struct<{
3374
+ readonly entity: Schema.String;
3375
+ readonly action: Schema.String;
3376
+ }>>;
3325
3377
  }>>>;
3326
3378
  /**
3327
3379
  * Provider MCP tools the ontology serves, within version 15. Written only when there are some;
@@ -3379,6 +3431,18 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3379
3431
  }>>>;
3380
3432
  }>]>], {
3381
3433
  readonly version: number;
3434
+ readonly roles: readonly {
3435
+ readonly name: string;
3436
+ readonly description: string;
3437
+ readonly builtIn: boolean;
3438
+ readonly scopes?: readonly {
3439
+ readonly permission: string;
3440
+ readonly where: {
3441
+ readonly [x: string]: Schema.Json;
3442
+ };
3443
+ }[] | undefined;
3444
+ readonly permissions?: readonly string[] | undefined;
3445
+ }[];
3382
3446
  readonly hash: string;
3383
3447
  readonly entities: readonly {
3384
3448
  readonly id: string;
@@ -3480,18 +3544,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3480
3544
  readonly unlink?: string | undefined;
3481
3545
  } | undefined;
3482
3546
  }[];
3483
- readonly roles: readonly {
3484
- readonly name: string;
3485
- readonly description: string;
3486
- readonly builtIn: boolean;
3487
- readonly scopes?: readonly {
3488
- readonly permission: string;
3489
- readonly where: {
3490
- readonly [x: string]: Schema.Json;
3491
- };
3492
- }[] | undefined;
3493
- readonly permissions?: readonly string[] | undefined;
3494
- }[];
3495
3547
  readonly chat?: {
3496
3548
  readonly telegram?: {
3497
3549
  readonly connection: string;
@@ -3519,11 +3571,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3519
3571
  readonly workflows?: readonly {
3520
3572
  readonly name: string;
3521
3573
  readonly description: string;
3522
- readonly role: string;
3523
3574
  readonly input: {
3524
3575
  readonly [x: string]: Schema.Json;
3525
3576
  };
3526
3577
  readonly connections: readonly string[];
3578
+ readonly role: string;
3527
3579
  readonly triggers: readonly ({
3528
3580
  readonly kind: "cron";
3529
3581
  readonly name: string;
@@ -3541,6 +3593,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3541
3593
  readonly name: string;
3542
3594
  readonly description: string;
3543
3595
  readonly connection?: string | undefined;
3596
+ readonly headers?: readonly string[] | undefined;
3544
3597
  readonly signature?: {
3545
3598
  readonly scheme: string;
3546
3599
  readonly secret: string;
@@ -3549,10 +3602,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3549
3602
  readonly scheme: string;
3550
3603
  readonly verifyToken: string;
3551
3604
  } | undefined;
3552
- readonly headers?: readonly string[] | undefined;
3553
3605
  } | {
3554
3606
  readonly [x: string]: Schema.Json;
3555
3607
  })[];
3608
+ readonly action?: {
3609
+ readonly entity: string;
3610
+ readonly action: string;
3611
+ } | undefined;
3556
3612
  }[] | undefined;
3557
3613
  readonly metrics?: readonly {
3558
3614
  readonly name: string;
@@ -3692,6 +3748,18 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3692
3748
  }[] | undefined;
3693
3749
  } | {
3694
3750
  readonly version: number;
3751
+ readonly roles: readonly {
3752
+ readonly name: string;
3753
+ readonly description: string;
3754
+ readonly builtIn: boolean;
3755
+ readonly scopes?: readonly {
3756
+ readonly permission: string;
3757
+ readonly where: {
3758
+ readonly [x: string]: Schema.Json;
3759
+ };
3760
+ }[] | undefined;
3761
+ readonly permissions?: readonly string[] | undefined;
3762
+ }[];
3695
3763
  readonly hash: string;
3696
3764
  readonly entities: readonly {
3697
3765
  readonly id: string;
@@ -3793,18 +3861,6 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3793
3861
  readonly unlink?: string | undefined;
3794
3862
  } | undefined;
3795
3863
  }[];
3796
- readonly roles: readonly {
3797
- readonly name: string;
3798
- readonly description: string;
3799
- readonly builtIn: boolean;
3800
- readonly scopes?: readonly {
3801
- readonly permission: string;
3802
- readonly where: {
3803
- readonly [x: string]: Schema.Json;
3804
- };
3805
- }[] | undefined;
3806
- readonly permissions?: readonly string[] | undefined;
3807
- }[];
3808
3864
  readonly chat?: {
3809
3865
  readonly telegram?: {
3810
3866
  readonly connection: string;
@@ -3832,11 +3888,11 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3832
3888
  readonly workflows?: readonly {
3833
3889
  readonly name: string;
3834
3890
  readonly description: string;
3835
- readonly role: string;
3836
3891
  readonly input: {
3837
3892
  readonly [x: string]: Schema.Json;
3838
3893
  };
3839
3894
  readonly connections: readonly string[];
3895
+ readonly role: string;
3840
3896
  readonly triggers: readonly ({
3841
3897
  readonly kind: "cron";
3842
3898
  readonly name: string;
@@ -3854,6 +3910,7 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3854
3910
  readonly name: string;
3855
3911
  readonly description: string;
3856
3912
  readonly connection?: string | undefined;
3913
+ readonly headers?: readonly string[] | undefined;
3857
3914
  readonly signature?: {
3858
3915
  readonly scheme: string;
3859
3916
  readonly secret: string;
@@ -3862,10 +3919,13 @@ export declare const OntologyManifest: Schema.declareConstructor<{
3862
3919
  readonly scheme: string;
3863
3920
  readonly verifyToken: string;
3864
3921
  } | undefined;
3865
- readonly headers?: readonly string[] | undefined;
3866
3922
  } | {
3867
3923
  readonly [x: string]: Schema.Json;
3868
3924
  })[];
3925
+ readonly action?: {
3926
+ readonly entity: string;
3927
+ readonly action: string;
3928
+ } | undefined;
3869
3929
  }[] | undefined;
3870
3930
  readonly metrics?: readonly {
3871
3931
  readonly name: string;
@@ -4011,6 +4071,18 @@ export type OntologyManifest = typeof OntologyManifest.Type;
4011
4071
  */
4012
4072
  export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4013
4073
  readonly version: number;
4074
+ readonly roles: readonly {
4075
+ readonly name: string;
4076
+ readonly description: string;
4077
+ readonly builtIn: boolean;
4078
+ readonly scopes?: readonly {
4079
+ readonly permission: string;
4080
+ readonly where: {
4081
+ readonly [x: string]: Schema.Json;
4082
+ };
4083
+ }[] | undefined;
4084
+ readonly permissions?: readonly string[] | undefined;
4085
+ }[];
4014
4086
  readonly hash: string;
4015
4087
  readonly entities: readonly {
4016
4088
  readonly id: string;
@@ -4112,18 +4184,6 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4112
4184
  readonly unlink?: string | undefined;
4113
4185
  } | undefined;
4114
4186
  }[];
4115
- readonly roles: readonly {
4116
- readonly name: string;
4117
- readonly description: string;
4118
- readonly builtIn: boolean;
4119
- readonly scopes?: readonly {
4120
- readonly permission: string;
4121
- readonly where: {
4122
- readonly [x: string]: Schema.Json;
4123
- };
4124
- }[] | undefined;
4125
- readonly permissions?: readonly string[] | undefined;
4126
- }[];
4127
4187
  readonly chat?: {
4128
4188
  readonly telegram?: {
4129
4189
  readonly connection: string;
@@ -4151,11 +4211,11 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4151
4211
  readonly workflows?: readonly {
4152
4212
  readonly name: string;
4153
4213
  readonly description: string;
4154
- readonly role: string;
4155
4214
  readonly input: {
4156
4215
  readonly [x: string]: Schema.Json;
4157
4216
  };
4158
4217
  readonly connections: readonly string[];
4218
+ readonly role: string;
4159
4219
  readonly triggers: readonly ({
4160
4220
  readonly kind: "cron";
4161
4221
  readonly name: string;
@@ -4173,6 +4233,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4173
4233
  readonly name: string;
4174
4234
  readonly description: string;
4175
4235
  readonly connection?: string | undefined;
4236
+ readonly headers?: readonly string[] | undefined;
4176
4237
  readonly signature?: {
4177
4238
  readonly scheme: string;
4178
4239
  readonly secret: string;
@@ -4181,10 +4242,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4181
4242
  readonly scheme: string;
4182
4243
  readonly verifyToken: string;
4183
4244
  } | undefined;
4184
- readonly headers?: readonly string[] | undefined;
4185
4245
  } | {
4186
4246
  readonly [x: string]: Schema.Json;
4187
4247
  })[];
4248
+ readonly action?: {
4249
+ readonly entity: string;
4250
+ readonly action: string;
4251
+ } | undefined;
4188
4252
  }[] | undefined;
4189
4253
  readonly metrics?: readonly {
4190
4254
  readonly name: string;
@@ -4324,6 +4388,18 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4324
4388
  }[] | undefined;
4325
4389
  } | {
4326
4390
  readonly version: number;
4391
+ readonly roles: readonly {
4392
+ readonly name: string;
4393
+ readonly description: string;
4394
+ readonly builtIn: boolean;
4395
+ readonly scopes?: readonly {
4396
+ readonly permission: string;
4397
+ readonly where: {
4398
+ readonly [x: string]: Schema.Json;
4399
+ };
4400
+ }[] | undefined;
4401
+ readonly permissions?: readonly string[] | undefined;
4402
+ }[];
4327
4403
  readonly hash: string;
4328
4404
  readonly entities: readonly {
4329
4405
  readonly id: string;
@@ -4425,18 +4501,6 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4425
4501
  readonly unlink?: string | undefined;
4426
4502
  } | undefined;
4427
4503
  }[];
4428
- readonly roles: readonly {
4429
- readonly name: string;
4430
- readonly description: string;
4431
- readonly builtIn: boolean;
4432
- readonly scopes?: readonly {
4433
- readonly permission: string;
4434
- readonly where: {
4435
- readonly [x: string]: Schema.Json;
4436
- };
4437
- }[] | undefined;
4438
- readonly permissions?: readonly string[] | undefined;
4439
- }[];
4440
4504
  readonly chat?: {
4441
4505
  readonly telegram?: {
4442
4506
  readonly connection: string;
@@ -4464,11 +4528,11 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4464
4528
  readonly workflows?: readonly {
4465
4529
  readonly name: string;
4466
4530
  readonly description: string;
4467
- readonly role: string;
4468
4531
  readonly input: {
4469
4532
  readonly [x: string]: Schema.Json;
4470
4533
  };
4471
4534
  readonly connections: readonly string[];
4535
+ readonly role: string;
4472
4536
  readonly triggers: readonly ({
4473
4537
  readonly kind: "cron";
4474
4538
  readonly name: string;
@@ -4486,6 +4550,7 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4486
4550
  readonly name: string;
4487
4551
  readonly description: string;
4488
4552
  readonly connection?: string | undefined;
4553
+ readonly headers?: readonly string[] | undefined;
4489
4554
  readonly signature?: {
4490
4555
  readonly scheme: string;
4491
4556
  readonly secret: string;
@@ -4494,10 +4559,13 @@ export declare const decodeManifestDocument: (value: unknown) => Effect.Effect<{
4494
4559
  readonly scheme: string;
4495
4560
  readonly verifyToken: string;
4496
4561
  } | undefined;
4497
- readonly headers?: readonly string[] | undefined;
4498
4562
  } | {
4499
4563
  readonly [x: string]: Schema.Json;
4500
4564
  })[];
4565
+ readonly action?: {
4566
+ readonly entity: string;
4567
+ readonly action: string;
4568
+ } | undefined;
4501
4569
  }[] | undefined;
4502
4570
  readonly metrics?: readonly {
4503
4571
  readonly name: string;
package/dist/manifest.js CHANGED
@@ -385,6 +385,12 @@ export const WorkflowManifest = Schema.Struct({
385
385
  input: Schema.Record(Schema.String, Schema.Json),
386
386
  connections: Schema.Array(Schema.String),
387
387
  triggers: Schema.Array(WorkflowTriggerManifest),
388
+ /**
389
+ * The action a trigger listed in `defineOntology({ triggers })` runs, in wire names: the
390
+ * workflow is that trigger, published as a workflow, and its runs run the action. Written only
391
+ * for such a workflow.
392
+ */
393
+ action: Schema.optionalKey(Schema.Struct({ entity: Schema.String, action: Schema.String })),
388
394
  });
389
395
  /**
390
396
  * A provider's MCP tools the ontology serves, `defineOntology({ toolsets })`: the connection's MCP