@arbium/enterprise-agent-connect-client 0.1.1 → 0.1.2-dev.cba5f68

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/lib/schema.d.ts CHANGED
@@ -730,6 +730,110 @@ export interface paths {
730
730
  patch?: never;
731
731
  trace?: never;
732
732
  };
733
+ "/orgs/{org}/event-subscriptions": {
734
+ parameters: {
735
+ query?: never;
736
+ header?: never;
737
+ path?: never;
738
+ cookie?: never;
739
+ };
740
+ /** The apps whose events reach this organization, by webhook or by polling */
741
+ get: operations["eventSubscriptions"];
742
+ put?: never;
743
+ /** Starts receiving an app's events: a webhook (answers its address and secret, shown once) or a poll on an interval */
744
+ post: operations["subscribeEvents"];
745
+ delete?: never;
746
+ options?: never;
747
+ head?: never;
748
+ patch?: never;
749
+ trace?: never;
750
+ };
751
+ "/orgs/{org}/event-subscriptions/{subscription}/secret": {
752
+ parameters: {
753
+ query?: never;
754
+ header?: never;
755
+ path?: never;
756
+ cookie?: never;
757
+ };
758
+ get?: never;
759
+ put?: never;
760
+ /** A new secret for a webhook, shown once; the old one stops working at once */
761
+ post: operations["rotateEventSecret"];
762
+ delete?: never;
763
+ options?: never;
764
+ head?: never;
765
+ patch?: never;
766
+ trace?: never;
767
+ };
768
+ "/orgs/{org}/event-subscriptions/{subscription}": {
769
+ parameters: {
770
+ query?: never;
771
+ header?: never;
772
+ path?: never;
773
+ cookie?: never;
774
+ };
775
+ get?: never;
776
+ put?: never;
777
+ post?: never;
778
+ /** Stops receiving an app's events (remove the webhook in the app too) */
779
+ delete: operations["unsubscribeEvents"];
780
+ options?: never;
781
+ head?: never;
782
+ patch?: never;
783
+ trace?: never;
784
+ };
785
+ "/orgs/{org}/agents/{agent}/event-triggers": {
786
+ parameters: {
787
+ query?: never;
788
+ header?: never;
789
+ path?: never;
790
+ cookie?: never;
791
+ };
792
+ /** The app events that start the agent */
793
+ get: operations["eventTriggers"];
794
+ put?: never;
795
+ post?: never;
796
+ delete?: never;
797
+ options?: never;
798
+ head?: never;
799
+ patch?: never;
800
+ trace?: never;
801
+ };
802
+ "/orgs/{org}/agents/{agent}/event-triggers/{app}": {
803
+ parameters: {
804
+ query?: never;
805
+ header?: never;
806
+ path?: never;
807
+ cookie?: never;
808
+ };
809
+ get?: never;
810
+ /** Sets which of an app's events start the agent and how, checked by its runner first */
811
+ put: operations["setEventTrigger"];
812
+ post?: never;
813
+ /** Stops an app's events starting the agent, stopping its live runs */
814
+ delete: operations["removeEventTrigger"];
815
+ options?: never;
816
+ head?: never;
817
+ patch?: never;
818
+ trace?: never;
819
+ };
820
+ "/orgs/{org}/agents/{agent}/event-runs": {
821
+ parameters: {
822
+ query?: never;
823
+ header?: never;
824
+ path?: never;
825
+ cookie?: never;
826
+ };
827
+ /** The agent's recent runs started by app events, newest first */
828
+ get: operations["eventRuns"];
829
+ put?: never;
830
+ post?: never;
831
+ delete?: never;
832
+ options?: never;
833
+ head?: never;
834
+ patch?: never;
835
+ trace?: never;
836
+ };
733
837
  "/orgs/{org}/claude-key": {
734
838
  parameters: {
735
839
  query?: never;
@@ -861,6 +965,9 @@ export interface components {
861
965
  label: string;
862
966
  values: string[];
863
967
  warning?: string;
968
+ labels?: {
969
+ [key: string]: string;
970
+ };
864
971
  };
865
972
  CheckOutcome: {
866
973
  /** @constant */
@@ -965,6 +1072,7 @@ export interface components {
965
1072
  field: string;
966
1073
  value: string;
967
1074
  };
1075
+ capabilities?: string[];
968
1076
  }[];
969
1077
  afterConnect: {
970
1078
  title: string;
@@ -998,6 +1106,7 @@ export interface components {
998
1106
  field: string;
999
1107
  value: string;
1000
1108
  };
1109
+ capabilities?: string[];
1001
1110
  }[];
1002
1111
  fields: {
1003
1112
  id: string;
@@ -1015,6 +1124,8 @@ export interface components {
1015
1124
  field: string;
1016
1125
  value: string;
1017
1126
  };
1127
+ /** @default false */
1128
+ optional: boolean;
1018
1129
  }[];
1019
1130
  capabilities: {
1020
1131
  id: string;
@@ -1112,6 +1223,7 @@ export interface components {
1112
1223
  path: string;
1113
1224
  label: string;
1114
1225
  show: string;
1226
+ name?: string;
1115
1227
  match?: {
1116
1228
  [key: string]: string | number | boolean;
1117
1229
  };
@@ -1131,6 +1243,7 @@ export interface components {
1131
1243
  path: string;
1132
1244
  label: string;
1133
1245
  show: string;
1246
+ name?: string;
1134
1247
  match?: {
1135
1248
  [key: string]: string | number | boolean;
1136
1249
  };
@@ -1152,6 +1265,7 @@ export interface components {
1152
1265
  type: "header";
1153
1266
  header: string;
1154
1267
  value: string;
1268
+ prefix?: string;
1155
1269
  } | {
1156
1270
  /** @constant */
1157
1271
  type: "bearer";
@@ -1168,6 +1282,16 @@ export interface components {
1168
1282
  tokenUrl: string;
1169
1283
  clientId: string;
1170
1284
  clientSecret: string;
1285
+ scope?: string;
1286
+ } | {
1287
+ /** @constant */
1288
+ type: "query";
1289
+ param: string;
1290
+ value: string;
1291
+ };
1292
+ /** @default {} */
1293
+ headers: {
1294
+ [key: string]: string;
1171
1295
  };
1172
1296
  tools: {
1173
1297
  name: string;
@@ -1179,12 +1303,18 @@ export interface components {
1179
1303
  params: {
1180
1304
  [key: string]: {
1181
1305
  /** @enum {string} */
1182
- type: "string" | "number" | "integer" | "boolean";
1306
+ type: "string" | "number" | "integer" | "boolean" | "array";
1183
1307
  description: string;
1184
1308
  /** @enum {string} */
1185
1309
  in: "path" | "query" | "body";
1310
+ name?: string;
1186
1311
  /** @default true */
1187
1312
  required: boolean;
1313
+ default?: (string | number | boolean) | (string | number | boolean)[];
1314
+ enum?: (string | number | boolean)[];
1315
+ /** @enum {string} */
1316
+ items?: "string" | "number" | "integer" | "boolean";
1317
+ join?: string;
1188
1318
  limit?: string;
1189
1319
  };
1190
1320
  };
@@ -1195,128 +1325,422 @@ export interface components {
1195
1325
  field: string;
1196
1326
  limit: string;
1197
1327
  }[];
1328
+ result?: {
1329
+ items?: string;
1330
+ fields?: string[];
1331
+ };
1332
+ paging?: {
1333
+ param: string;
1334
+ body: string;
1335
+ } | {
1336
+ param: string;
1337
+ header: string;
1338
+ } | {
1339
+ param: string;
1340
+ /** @constant */
1341
+ link: true;
1342
+ };
1198
1343
  }[];
1199
1344
  /** @default false */
1200
1345
  allowInsecureHttp: boolean;
1201
1346
  };
1202
- };
1203
- ConnectResult: {
1204
- connection: components["schemas"]["Connection"];
1205
- checks: components["schemas"]["Check"][];
1206
- };
1207
- Error: {
1208
- error: string;
1209
- };
1210
- Grant: {
1211
- agentId: string;
1212
- connectorId: string;
1213
- capabilities: string[];
1214
- limits: components["schemas"]["Limits"];
1215
- /** @description ISO 8601, UTC */
1216
- updatedAt: string;
1217
- };
1218
- InstallTarget: {
1219
- id: string;
1220
- name: string;
1221
- detail: string | null;
1222
- };
1223
- Limits: {
1224
- [key: string]: string[] | string | {
1225
- [key: string]: string;
1226
- };
1227
- };
1228
- LiveCheck: {
1229
- /** @enum {string} */
1230
- state: "done" | "failing" | "todo";
1231
- message: string;
1232
- };
1233
- NewAgent: {
1234
- id: string;
1235
- organizationId: string;
1236
- name: string;
1237
- /** @enum {string} */
1238
- status: "active" | "disabled";
1239
- createdBy: string | null;
1240
- /** @description ISO 8601, UTC */
1241
- createdAt: string;
1242
- };
1243
- Organization: {
1244
- /** Format: uuid */
1245
- id: string;
1246
- name: string | null;
1247
- /** @description ISO 8601, UTC */
1248
- createdAt: string;
1249
- };
1250
- Provider: {
1251
- id: string;
1252
- name: string;
1253
- logo: string;
1254
- identity: string;
1255
- sharedIdentity?: string;
1256
- accountKey: string;
1257
- /** @default [] */
1258
- principalKeys: string[];
1259
- certificate: boolean;
1260
- setup: {
1261
- title: string;
1262
- body: string;
1263
- link?: {
1264
- label: string;
1265
- /** Format: uri */
1266
- href: string;
1347
+ soap?: {
1348
+ /** Format: uri */
1349
+ endpoint: string;
1350
+ /**
1351
+ * @default 1.1
1352
+ * @enum {string}
1353
+ */
1354
+ version: "1.1" | "1.2";
1355
+ /** @default {} */
1356
+ namespaces: {
1357
+ [key: string]: string;
1267
1358
  };
1268
- copy?: string[];
1269
- /** @enum {string} */
1270
- shell?: "bash" | "powershell";
1271
- permissions?: boolean;
1272
- certificate?: boolean;
1273
- click?: string[];
1274
- /** @constant */
1275
- clickUnavailable?: true;
1276
- /** @enum {string} */
1277
- siteRole?: "read" | "write";
1278
- agentCheck?: boolean;
1279
- confirm?: string;
1280
- live?: string;
1281
- settings?: {
1282
- id: string;
1283
- label: string;
1284
- help?: string;
1285
- placeholder?: string;
1286
- pattern: string;
1287
- }[];
1288
- option?: {
1289
- field: string;
1359
+ auth?: {
1360
+ /** @constant */
1361
+ type: "header";
1362
+ header: string;
1290
1363
  value: string;
1364
+ prefix?: string;
1365
+ } | {
1366
+ /** @constant */
1367
+ type: "bearer";
1368
+ token: string;
1369
+ } | {
1370
+ /** @constant */
1371
+ type: "basic";
1372
+ username: string;
1373
+ password: string;
1291
1374
  };
1292
- }[];
1293
- fields: {
1294
- id: string;
1295
- label: string;
1296
- help?: string;
1297
- placeholder?: string;
1298
- secret: boolean;
1299
- options?: {
1300
- value: string;
1301
- label: string;
1375
+ wsSecurity?: {
1376
+ username: string;
1377
+ password: string;
1378
+ /** @default false */
1379
+ digest: boolean;
1380
+ };
1381
+ verify?: {
1382
+ tool: string;
1383
+ /** @default {} */
1384
+ args: {
1385
+ [key: string]: string | number | boolean;
1386
+ };
1387
+ show: string;
1388
+ };
1389
+ tools: {
1390
+ name: string;
1302
1391
  description: string;
1303
- scopes?: string[];
1392
+ operation: string;
1393
+ soapAction?: string;
1394
+ body: string;
1395
+ /** @default {} */
1396
+ params: {
1397
+ [key: string]: {
1398
+ /** @enum {string} */
1399
+ type: "string" | "number" | "integer" | "boolean";
1400
+ description: string;
1401
+ /** @default true */
1402
+ required: boolean;
1403
+ limit?: string;
1404
+ };
1405
+ };
1406
+ result?: string;
1407
+ fields?: string[];
1408
+ /** @default false */
1409
+ readOnly: boolean;
1410
+ /** @default false */
1411
+ destructive: boolean;
1412
+ /** @default [] */
1413
+ answerLimits: {
1414
+ field: string;
1415
+ limit: string;
1416
+ }[];
1304
1417
  }[];
1305
- requires?: {
1306
- field: string;
1307
- value: string;
1308
- };
1309
1418
  /** @default false */
1310
- optional: boolean;
1311
- }[];
1312
- /** @default [] */
1313
- addAgent: {
1314
- title: string;
1315
- body: string;
1316
- link?: {
1317
- label: string;
1318
- /** Format: uri */
1319
- href: string;
1419
+ allowInsecureHttp: boolean;
1420
+ };
1421
+ odata?: {
1422
+ /** Format: uri */
1423
+ serviceRoot: string;
1424
+ /** @enum {string} */
1425
+ version: "2" | "4";
1426
+ auth: {
1427
+ /** @constant */
1428
+ type: "header";
1429
+ header: string;
1430
+ value: string;
1431
+ prefix?: string;
1432
+ } | {
1433
+ /** @constant */
1434
+ type: "bearer";
1435
+ token: string;
1436
+ } | {
1437
+ /** @constant */
1438
+ type: "basic";
1439
+ username: string;
1440
+ password: string;
1441
+ } | {
1442
+ /** @constant */
1443
+ type: "oauth2";
1444
+ /** Format: uri */
1445
+ tokenUrl: string;
1446
+ clientId: string;
1447
+ clientSecret: string;
1448
+ scope?: string;
1449
+ } | {
1450
+ /** @constant */
1451
+ type: "query";
1452
+ param: string;
1453
+ value: string;
1454
+ };
1455
+ /** @default {} */
1456
+ headers: {
1457
+ [key: string]: string;
1458
+ };
1459
+ /** @default false */
1460
+ csrf: boolean;
1461
+ /**
1462
+ * @default skip
1463
+ * @enum {string}
1464
+ */
1465
+ paging: "skip" | "server";
1466
+ tools: {
1467
+ name: string;
1468
+ description: string;
1469
+ /** @enum {string} */
1470
+ kind: "list" | "get" | "create" | "update" | "function" | "action";
1471
+ entitySet?: string;
1472
+ function?: string;
1473
+ /** @default {} */
1474
+ key: {
1475
+ [key: string]: {
1476
+ /** @enum {string} */
1477
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1478
+ description: string;
1479
+ property?: string;
1480
+ required?: boolean;
1481
+ limit?: string;
1482
+ };
1483
+ };
1484
+ /** @default {} */
1485
+ filters: {
1486
+ [key: string]: {
1487
+ /** @enum {string} */
1488
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1489
+ description: string;
1490
+ property?: string;
1491
+ required?: boolean;
1492
+ limit?: string;
1493
+ /**
1494
+ * @default eq
1495
+ * @enum {string}
1496
+ */
1497
+ op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
1498
+ };
1499
+ };
1500
+ /** @default {} */
1501
+ fields: {
1502
+ [key: string]: {
1503
+ /** @enum {string} */
1504
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1505
+ description: string;
1506
+ property?: string;
1507
+ required?: boolean;
1508
+ limit?: string;
1509
+ };
1510
+ };
1511
+ /** @default {} */
1512
+ params: {
1513
+ [key: string]: {
1514
+ /** @enum {string} */
1515
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1516
+ description: string;
1517
+ property?: string;
1518
+ required?: boolean;
1519
+ limit?: string;
1520
+ };
1521
+ };
1522
+ /** @default [] */
1523
+ select: string[];
1524
+ orderBy?: string;
1525
+ /** @default 50 */
1526
+ top: number;
1527
+ /** @default false */
1528
+ destructive: boolean;
1529
+ /** @default [] */
1530
+ answerLimits: {
1531
+ field: string;
1532
+ limit: string;
1533
+ }[];
1534
+ }[];
1535
+ /** @default false */
1536
+ allowInsecureHttp: boolean;
1537
+ };
1538
+ sql?: {
1539
+ /** @enum {string} */
1540
+ engine: "postgres" | "sqlserver" | "mysql" | "oracle";
1541
+ host: string;
1542
+ port?: number;
1543
+ database: string;
1544
+ auth: {
1545
+ user: string;
1546
+ password: string;
1547
+ };
1548
+ /**
1549
+ * @default verify
1550
+ * @enum {string}
1551
+ */
1552
+ tls: "verify" | "insecure" | "off";
1553
+ /** @default 30 */
1554
+ timeoutSeconds: number;
1555
+ /** @default 200 */
1556
+ maxRows: number;
1557
+ tools: {
1558
+ name: string;
1559
+ description: string;
1560
+ sql: string;
1561
+ /** @default {} */
1562
+ params: {
1563
+ [key: string]: {
1564
+ /** @enum {string} */
1565
+ type: "string" | "number" | "integer" | "boolean";
1566
+ description: string;
1567
+ /** @default true */
1568
+ required: boolean;
1569
+ limit?: string;
1570
+ };
1571
+ };
1572
+ /** @default false */
1573
+ write: boolean;
1574
+ /** @default false */
1575
+ destructive: boolean;
1576
+ /** @default [] */
1577
+ answerLimits: {
1578
+ column: string;
1579
+ limit: string;
1580
+ }[];
1581
+ }[];
1582
+ };
1583
+ events?: {
1584
+ types: {
1585
+ id: string;
1586
+ label: string;
1587
+ }[];
1588
+ fields: {
1589
+ [key: string]: string;
1590
+ };
1591
+ /** @default {} */
1592
+ limits: {
1593
+ [key: string]: string;
1594
+ };
1595
+ webhook?: {
1596
+ verify: {
1597
+ /** @constant */
1598
+ type: "hmac-sha256";
1599
+ header: string;
1600
+ /** @default */
1601
+ prefix: string;
1602
+ } | {
1603
+ /** @constant */
1604
+ type: "token";
1605
+ header: string;
1606
+ } | {
1607
+ /** @constant */
1608
+ type: "none";
1609
+ };
1610
+ /** @default false */
1611
+ allowInsecure: boolean;
1612
+ type: {
1613
+ field: string;
1614
+ } | {
1615
+ header: string;
1616
+ };
1617
+ deliveryId?: {
1618
+ field: string;
1619
+ } | {
1620
+ header: string;
1621
+ };
1622
+ timestamp?: {
1623
+ at: {
1624
+ field: string;
1625
+ } | {
1626
+ header: string;
1627
+ };
1628
+ /** @enum {string} */
1629
+ unit: "s" | "ms" | "iso";
1630
+ /** @default 300 */
1631
+ toleranceSeconds: number;
1632
+ };
1633
+ setup: {
1634
+ title: string;
1635
+ body: string;
1636
+ link?: {
1637
+ label: string;
1638
+ /** Format: uri */
1639
+ href: string;
1640
+ };
1641
+ copy?: string[];
1642
+ /** @enum {string} */
1643
+ shell?: "bash" | "powershell";
1644
+ permissions?: boolean;
1645
+ certificate?: boolean;
1646
+ click?: string[];
1647
+ /** @constant */
1648
+ clickUnavailable?: true;
1649
+ /** @enum {string} */
1650
+ siteRole?: "read" | "write";
1651
+ agentCheck?: boolean;
1652
+ confirm?: string;
1653
+ live?: string;
1654
+ settings?: {
1655
+ id: string;
1656
+ label: string;
1657
+ help?: string;
1658
+ placeholder?: string;
1659
+ pattern: string;
1660
+ }[];
1661
+ option?: {
1662
+ field: string;
1663
+ value: string;
1664
+ };
1665
+ }[];
1666
+ register?: {
1667
+ /** @enum {string} */
1668
+ method: "GET" | "POST" | "PUT";
1669
+ /** Format: starts_with */
1670
+ path: string;
1671
+ body?: unknown;
1672
+ location: string;
1673
+ };
1674
+ };
1675
+ self?: {
1676
+ request: {
1677
+ /** @enum {string} */
1678
+ method: "GET" | "POST" | "PUT";
1679
+ /** Format: starts_with */
1680
+ path: string;
1681
+ body?: unknown;
1682
+ };
1683
+ id: string;
1684
+ fields: string[];
1685
+ };
1686
+ poll?: {
1687
+ request: {
1688
+ /** @enum {string} */
1689
+ method: "GET" | "POST" | "PUT";
1690
+ /** Format: starts_with */
1691
+ path: string;
1692
+ body?: unknown;
1693
+ };
1694
+ /** Format: includes */
1695
+ filter?: string;
1696
+ items: string;
1697
+ wrap?: string;
1698
+ cursor: string;
1699
+ deliveryId: string[];
1700
+ types: {
1701
+ type: string;
1702
+ same?: [
1703
+ string,
1704
+ string
1705
+ ];
1706
+ }[];
1707
+ };
1708
+ };
1709
+ };
1710
+ ConnectResult: {
1711
+ connection: components["schemas"]["Connection"];
1712
+ checks: components["schemas"]["Check"][];
1713
+ };
1714
+ Error: {
1715
+ error: string;
1716
+ };
1717
+ EventRun: {
1718
+ id: string;
1719
+ agentId: string;
1720
+ triggerId: string;
1721
+ connectorId: string;
1722
+ eventType: string;
1723
+ deliveryId: string;
1724
+ runner: string;
1725
+ sessionId: string | null;
1726
+ /** @enum {string} */
1727
+ state: "starting" | "running" | "ended" | "failed";
1728
+ error: string | null;
1729
+ costCents: number | null;
1730
+ /** @description ISO 8601, UTC */
1731
+ startedAt: string;
1732
+ finishedAt: string | null;
1733
+ };
1734
+ EventSubscribed: {
1735
+ subscription: components["schemas"]["EventSubscription"];
1736
+ secret: string | null;
1737
+ setup: {
1738
+ title: string;
1739
+ body: string;
1740
+ link?: {
1741
+ label: string;
1742
+ /** Format: uri */
1743
+ href: string;
1320
1744
  };
1321
1745
  copy?: string[];
1322
1746
  /** @enum {string} */
@@ -1342,58 +1766,245 @@ export interface components {
1342
1766
  field: string;
1343
1767
  value: string;
1344
1768
  };
1345
- apps: string[];
1346
1769
  }[];
1347
- revoke: string;
1348
- approval: boolean;
1770
+ registration: {
1771
+ ok: boolean;
1772
+ message: string;
1773
+ } | null;
1349
1774
  };
1350
- ProviderConnection: {
1775
+ EventSubscription: {
1351
1776
  id: string;
1352
- organizationId: string;
1353
- provider: string;
1777
+ connectorId: string;
1354
1778
  /** @enum {string} */
1355
- status: "pending" | "connected" | "needs_reconnect";
1356
- config: {
1357
- [key: string]: string;
1779
+ source: "webhook" | "poll";
1780
+ filter: string;
1781
+ intervalSeconds: number;
1782
+ cursor: string | null;
1783
+ polledAt: string | null;
1784
+ lastError: string | null;
1785
+ registered: string | null;
1786
+ url: string | null;
1787
+ createdBy: string;
1788
+ /** @description ISO 8601, UTC */
1789
+ createdAt: string;
1790
+ };
1791
+ EventTrigger: {
1792
+ id: string;
1793
+ agentId: string;
1794
+ connectorId: string;
1795
+ enabled: boolean;
1796
+ eventTypes: string[];
1797
+ conditions: ({
1798
+ field: string;
1799
+ in: string[];
1800
+ } | {
1801
+ field: string;
1802
+ notIn: string[];
1803
+ })[];
1804
+ prompt: string;
1805
+ runner: string;
1806
+ settings: {
1807
+ [key: string]: unknown;
1358
1808
  };
1359
- accountLabel: string | null;
1360
- connectedBy: string | null;
1809
+ hasSigningSecret: boolean;
1810
+ managedAgentId: string | null;
1811
+ environmentId: string | null;
1812
+ vaultIds: string[];
1813
+ budgetCents: number;
1814
+ maxRunsPerHour: number;
1815
+ maxCentsPerDay: number;
1816
+ maxConcurrent: number;
1817
+ updatedBy: string | null;
1361
1818
  /** @description ISO 8601, UTC */
1362
- connectedAt: string;
1819
+ updatedAt: string;
1820
+ };
1821
+ Grant: {
1822
+ agentId: string;
1823
+ connectorId: string;
1824
+ capabilities: string[];
1825
+ limits: components["schemas"]["Limits"];
1363
1826
  /** @description ISO 8601, UTC */
1364
- checkedAt: string;
1365
- certificate: components["schemas"]["CertificateInfo"] | null;
1366
- nextCertificate: components["schemas"]["CertificateInfo"] | null;
1367
- apps: string[];
1827
+ updatedAt: string;
1368
1828
  };
1369
- SignIn: {
1370
- url: string;
1371
- nonce: string;
1829
+ InstallTarget: {
1830
+ id: string;
1831
+ name: string;
1832
+ detail: string | null;
1372
1833
  };
1373
- SignInCheck: {
1374
- /** @constant */
1375
- ok: true;
1376
- } | {
1377
- /** @constant */
1378
- ok: false;
1379
- error: string;
1834
+ Limits: {
1835
+ [key: string]: string[] | string | {
1836
+ [key: string]: string;
1837
+ };
1380
1838
  };
1381
- SiteAccess: {
1382
- site: string;
1839
+ LiveCheck: {
1383
1840
  /** @enum {string} */
1384
- status: "granted" | "not_granted" | "not_found" | "failed";
1385
- name: string | null;
1841
+ state: "done" | "failing" | "todo";
1386
1842
  message: string;
1387
1843
  };
1388
- TeamsBot: {
1844
+ NewAgent: {
1389
1845
  id: string;
1390
1846
  organizationId: string;
1391
- agentId: string;
1392
- botAppId: string | null;
1393
- teamsAppId: string;
1394
- tenantId: string;
1395
- displayName: string;
1396
- manifestVersion: number;
1847
+ name: string;
1848
+ /** @enum {string} */
1849
+ status: "active" | "disabled";
1850
+ createdBy: string | null;
1851
+ /** @description ISO 8601, UTC */
1852
+ createdAt: string;
1853
+ };
1854
+ Organization: {
1855
+ /** Format: uuid */
1856
+ id: string;
1857
+ name: string | null;
1858
+ /** @description ISO 8601, UTC */
1859
+ createdAt: string;
1860
+ };
1861
+ Provider: {
1862
+ id: string;
1863
+ name: string;
1864
+ logo: string;
1865
+ identity: string;
1866
+ sharedIdentity?: string;
1867
+ accountKey: string;
1868
+ /** @default [] */
1869
+ principalKeys: string[];
1870
+ certificate: boolean;
1871
+ setup: {
1872
+ title: string;
1873
+ body: string;
1874
+ link?: {
1875
+ label: string;
1876
+ /** Format: uri */
1877
+ href: string;
1878
+ };
1879
+ copy?: string[];
1880
+ /** @enum {string} */
1881
+ shell?: "bash" | "powershell";
1882
+ permissions?: boolean;
1883
+ certificate?: boolean;
1884
+ click?: string[];
1885
+ /** @constant */
1886
+ clickUnavailable?: true;
1887
+ /** @enum {string} */
1888
+ siteRole?: "read" | "write";
1889
+ agentCheck?: boolean;
1890
+ confirm?: string;
1891
+ live?: string;
1892
+ settings?: {
1893
+ id: string;
1894
+ label: string;
1895
+ help?: string;
1896
+ placeholder?: string;
1897
+ pattern: string;
1898
+ }[];
1899
+ option?: {
1900
+ field: string;
1901
+ value: string;
1902
+ };
1903
+ }[];
1904
+ fields: {
1905
+ id: string;
1906
+ label: string;
1907
+ help?: string;
1908
+ placeholder?: string;
1909
+ secret: boolean;
1910
+ options?: {
1911
+ value: string;
1912
+ label: string;
1913
+ description: string;
1914
+ scopes?: string[];
1915
+ }[];
1916
+ requires?: {
1917
+ field: string;
1918
+ value: string;
1919
+ };
1920
+ /** @default false */
1921
+ optional: boolean;
1922
+ }[];
1923
+ /** @default [] */
1924
+ addAgent: {
1925
+ title: string;
1926
+ body: string;
1927
+ link?: {
1928
+ label: string;
1929
+ /** Format: uri */
1930
+ href: string;
1931
+ };
1932
+ copy?: string[];
1933
+ /** @enum {string} */
1934
+ shell?: "bash" | "powershell";
1935
+ permissions?: boolean;
1936
+ certificate?: boolean;
1937
+ click?: string[];
1938
+ /** @constant */
1939
+ clickUnavailable?: true;
1940
+ /** @enum {string} */
1941
+ siteRole?: "read" | "write";
1942
+ agentCheck?: boolean;
1943
+ confirm?: string;
1944
+ live?: string;
1945
+ settings?: {
1946
+ id: string;
1947
+ label: string;
1948
+ help?: string;
1949
+ placeholder?: string;
1950
+ pattern: string;
1951
+ }[];
1952
+ option?: {
1953
+ field: string;
1954
+ value: string;
1955
+ };
1956
+ apps: string[];
1957
+ }[];
1958
+ revoke: string;
1959
+ approval: boolean;
1960
+ };
1961
+ ProviderConnection: {
1962
+ id: string;
1963
+ organizationId: string;
1964
+ provider: string;
1965
+ /** @enum {string} */
1966
+ status: "pending" | "connected" | "needs_reconnect";
1967
+ config: {
1968
+ [key: string]: string;
1969
+ };
1970
+ accountLabel: string | null;
1971
+ connectedBy: string | null;
1972
+ /** @description ISO 8601, UTC */
1973
+ connectedAt: string;
1974
+ /** @description ISO 8601, UTC */
1975
+ checkedAt: string;
1976
+ certificate: components["schemas"]["CertificateInfo"] | null;
1977
+ nextCertificate: components["schemas"]["CertificateInfo"] | null;
1978
+ apps: string[];
1979
+ };
1980
+ SignIn: {
1981
+ url: string;
1982
+ nonce: string;
1983
+ };
1984
+ SignInCheck: {
1985
+ /** @constant */
1986
+ ok: true;
1987
+ } | {
1988
+ /** @constant */
1989
+ ok: false;
1990
+ error: string;
1991
+ };
1992
+ SiteAccess: {
1993
+ site: string;
1994
+ /** @enum {string} */
1995
+ status: "granted" | "not_granted" | "not_found" | "failed";
1996
+ name: string | null;
1997
+ message: string;
1998
+ };
1999
+ TeamsBot: {
2000
+ id: string;
2001
+ organizationId: string;
2002
+ agentId: string;
2003
+ botAppId: string | null;
2004
+ teamsAppId: string;
2005
+ tenantId: string;
2006
+ displayName: string;
2007
+ manifestVersion: number;
1397
2008
  /** @enum {string} */
1398
2009
  status: "awaiting_setup" | "connected" | "needs_reconnect";
1399
2010
  createdBy: string | null;
@@ -1470,33 +2081,329 @@ export interface components {
1470
2081
  settings: {
1471
2082
  [key: string]: unknown;
1472
2083
  };
1473
- hasSigningSecret: boolean;
1474
- managedAgentId: string | null;
1475
- environmentId: string | null;
1476
- vaultIds: string[];
1477
- budgetCents: number;
1478
- maxRunsPerHour: number;
1479
- maxCentsPerDay: number;
1480
- maxConcurrent: number;
1481
- /** @enum {string} */
1482
- replyMode: "mentions" | "all";
1483
- allowedTeams: string[];
1484
- allowedPeople: string[];
1485
- anyoneInOrganization: boolean;
1486
- updatedBy: string | null;
1487
- /** @description ISO 8601, UTC */
1488
- updatedAt: string;
2084
+ hasSigningSecret: boolean;
2085
+ managedAgentId: string | null;
2086
+ environmentId: string | null;
2087
+ vaultIds: string[];
2088
+ budgetCents: number;
2089
+ maxRunsPerHour: number;
2090
+ maxCentsPerDay: number;
2091
+ maxConcurrent: number;
2092
+ /** @enum {string} */
2093
+ replyMode: "mentions" | "all";
2094
+ allowedTeams: string[];
2095
+ allowedPeople: string[];
2096
+ anyoneInOrganization: boolean;
2097
+ updatedBy: string | null;
2098
+ /** @description ISO 8601, UTC */
2099
+ updatedAt: string;
2100
+ };
2101
+ };
2102
+ responses: never;
2103
+ parameters: never;
2104
+ requestBodies: never;
2105
+ headers: never;
2106
+ pathItems: never;
2107
+ }
2108
+ export type $defs = Record<string, never>;
2109
+ export interface operations {
2110
+ listOrganizations: {
2111
+ parameters: {
2112
+ query?: never;
2113
+ header?: never;
2114
+ path?: never;
2115
+ cookie?: never;
2116
+ };
2117
+ requestBody?: never;
2118
+ responses: {
2119
+ /** @description OK */
2120
+ 200: {
2121
+ headers: {
2122
+ [name: string]: unknown;
2123
+ };
2124
+ content: {
2125
+ "application/json": components["schemas"]["Organization"][];
2126
+ };
2127
+ };
2128
+ /** @description Refused */
2129
+ 400: {
2130
+ headers: {
2131
+ [name: string]: unknown;
2132
+ };
2133
+ content: {
2134
+ "application/json": components["schemas"]["Error"];
2135
+ };
2136
+ };
2137
+ /** @description Refused */
2138
+ 401: {
2139
+ headers: {
2140
+ [name: string]: unknown;
2141
+ };
2142
+ content: {
2143
+ "application/json": components["schemas"]["Error"];
2144
+ };
2145
+ };
2146
+ /** @description Refused */
2147
+ 404: {
2148
+ headers: {
2149
+ [name: string]: unknown;
2150
+ };
2151
+ content: {
2152
+ "application/json": components["schemas"]["Error"];
2153
+ };
2154
+ };
2155
+ /** @description Refused */
2156
+ 422: {
2157
+ headers: {
2158
+ [name: string]: unknown;
2159
+ };
2160
+ content: {
2161
+ "application/json": components["schemas"]["Error"];
2162
+ };
2163
+ };
2164
+ };
2165
+ };
2166
+ createOrganization: {
2167
+ parameters: {
2168
+ query?: never;
2169
+ header?: never;
2170
+ path?: never;
2171
+ cookie?: never;
2172
+ };
2173
+ requestBody: {
2174
+ content: {
2175
+ "application/json": {
2176
+ name: string;
2177
+ };
2178
+ };
2179
+ };
2180
+ responses: {
2181
+ /** @description OK */
2182
+ 201: {
2183
+ headers: {
2184
+ [name: string]: unknown;
2185
+ };
2186
+ content: {
2187
+ "application/json": components["schemas"]["Organization"];
2188
+ };
2189
+ };
2190
+ /** @description Refused */
2191
+ 400: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ "application/json": components["schemas"]["Error"];
2197
+ };
2198
+ };
2199
+ /** @description Refused */
2200
+ 401: {
2201
+ headers: {
2202
+ [name: string]: unknown;
2203
+ };
2204
+ content: {
2205
+ "application/json": components["schemas"]["Error"];
2206
+ };
2207
+ };
2208
+ /** @description Refused */
2209
+ 404: {
2210
+ headers: {
2211
+ [name: string]: unknown;
2212
+ };
2213
+ content: {
2214
+ "application/json": components["schemas"]["Error"];
2215
+ };
2216
+ };
2217
+ /** @description Refused */
2218
+ 422: {
2219
+ headers: {
2220
+ [name: string]: unknown;
2221
+ };
2222
+ content: {
2223
+ "application/json": components["schemas"]["Error"];
2224
+ };
2225
+ };
2226
+ };
2227
+ };
2228
+ getOrganization: {
2229
+ parameters: {
2230
+ query?: never;
2231
+ header?: never;
2232
+ path: {
2233
+ org: string;
2234
+ };
2235
+ cookie?: never;
2236
+ };
2237
+ requestBody?: never;
2238
+ responses: {
2239
+ /** @description OK */
2240
+ 200: {
2241
+ headers: {
2242
+ [name: string]: unknown;
2243
+ };
2244
+ content: {
2245
+ "application/json": components["schemas"]["Organization"];
2246
+ };
2247
+ };
2248
+ /** @description Refused */
2249
+ 400: {
2250
+ headers: {
2251
+ [name: string]: unknown;
2252
+ };
2253
+ content: {
2254
+ "application/json": components["schemas"]["Error"];
2255
+ };
2256
+ };
2257
+ /** @description Refused */
2258
+ 401: {
2259
+ headers: {
2260
+ [name: string]: unknown;
2261
+ };
2262
+ content: {
2263
+ "application/json": components["schemas"]["Error"];
2264
+ };
2265
+ };
2266
+ /** @description Refused */
2267
+ 404: {
2268
+ headers: {
2269
+ [name: string]: unknown;
2270
+ };
2271
+ content: {
2272
+ "application/json": components["schemas"]["Error"];
2273
+ };
2274
+ };
2275
+ /** @description Refused */
2276
+ 422: {
2277
+ headers: {
2278
+ [name: string]: unknown;
2279
+ };
2280
+ content: {
2281
+ "application/json": components["schemas"]["Error"];
2282
+ };
2283
+ };
2284
+ };
2285
+ };
2286
+ ensureOrganization: {
2287
+ parameters: {
2288
+ query?: never;
2289
+ header?: never;
2290
+ path: {
2291
+ org: string;
2292
+ };
2293
+ cookie?: never;
2294
+ };
2295
+ requestBody: {
2296
+ content: {
2297
+ "application/json": {
2298
+ name?: string;
2299
+ };
2300
+ };
2301
+ };
2302
+ responses: {
2303
+ /** @description OK */
2304
+ 200: {
2305
+ headers: {
2306
+ [name: string]: unknown;
2307
+ };
2308
+ content: {
2309
+ "application/json": components["schemas"]["Organization"];
2310
+ };
2311
+ };
2312
+ /** @description Refused */
2313
+ 400: {
2314
+ headers: {
2315
+ [name: string]: unknown;
2316
+ };
2317
+ content: {
2318
+ "application/json": components["schemas"]["Error"];
2319
+ };
2320
+ };
2321
+ /** @description Refused */
2322
+ 401: {
2323
+ headers: {
2324
+ [name: string]: unknown;
2325
+ };
2326
+ content: {
2327
+ "application/json": components["schemas"]["Error"];
2328
+ };
2329
+ };
2330
+ /** @description Refused */
2331
+ 404: {
2332
+ headers: {
2333
+ [name: string]: unknown;
2334
+ };
2335
+ content: {
2336
+ "application/json": components["schemas"]["Error"];
2337
+ };
2338
+ };
2339
+ /** @description Refused */
2340
+ 422: {
2341
+ headers: {
2342
+ [name: string]: unknown;
2343
+ };
2344
+ content: {
2345
+ "application/json": components["schemas"]["Error"];
2346
+ };
2347
+ };
2348
+ };
2349
+ };
2350
+ branding: {
2351
+ parameters: {
2352
+ query?: never;
2353
+ header?: never;
2354
+ path?: never;
2355
+ cookie?: never;
2356
+ };
2357
+ requestBody?: never;
2358
+ responses: {
2359
+ /** @description OK */
2360
+ 200: {
2361
+ headers: {
2362
+ [name: string]: unknown;
2363
+ };
2364
+ content: {
2365
+ "application/json": components["schemas"]["Branding"];
2366
+ };
2367
+ };
2368
+ /** @description Refused */
2369
+ 400: {
2370
+ headers: {
2371
+ [name: string]: unknown;
2372
+ };
2373
+ content: {
2374
+ "application/json": components["schemas"]["Error"];
2375
+ };
2376
+ };
2377
+ /** @description Refused */
2378
+ 401: {
2379
+ headers: {
2380
+ [name: string]: unknown;
2381
+ };
2382
+ content: {
2383
+ "application/json": components["schemas"]["Error"];
2384
+ };
2385
+ };
2386
+ /** @description Refused */
2387
+ 404: {
2388
+ headers: {
2389
+ [name: string]: unknown;
2390
+ };
2391
+ content: {
2392
+ "application/json": components["schemas"]["Error"];
2393
+ };
2394
+ };
2395
+ /** @description Refused */
2396
+ 422: {
2397
+ headers: {
2398
+ [name: string]: unknown;
2399
+ };
2400
+ content: {
2401
+ "application/json": components["schemas"]["Error"];
2402
+ };
2403
+ };
1489
2404
  };
1490
2405
  };
1491
- responses: never;
1492
- parameters: never;
1493
- requestBodies: never;
1494
- headers: never;
1495
- pathItems: never;
1496
- }
1497
- export type $defs = Record<string, never>;
1498
- export interface operations {
1499
- listOrganizations: {
2406
+ connectors: {
1500
2407
  parameters: {
1501
2408
  query?: never;
1502
2409
  header?: never;
@@ -1511,7 +2418,7 @@ export interface operations {
1511
2418
  [name: string]: unknown;
1512
2419
  };
1513
2420
  content: {
1514
- "application/json": components["schemas"]["Organization"][];
2421
+ "application/json": components["schemas"]["Connector"][];
1515
2422
  };
1516
2423
  };
1517
2424
  /** @description Refused */
@@ -1552,28 +2459,80 @@ export interface operations {
1552
2459
  };
1553
2460
  };
1554
2461
  };
1555
- createOrganization: {
2462
+ providers: {
1556
2463
  parameters: {
1557
2464
  query?: never;
1558
2465
  header?: never;
1559
2466
  path?: never;
1560
2467
  cookie?: never;
1561
2468
  };
1562
- requestBody: {
1563
- content: {
1564
- "application/json": {
1565
- name: string;
2469
+ requestBody?: never;
2470
+ responses: {
2471
+ /** @description OK */
2472
+ 200: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "application/json": components["schemas"]["Provider"][];
2478
+ };
2479
+ };
2480
+ /** @description Refused */
2481
+ 400: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ content: {
2486
+ "application/json": components["schemas"]["Error"];
2487
+ };
2488
+ };
2489
+ /** @description Refused */
2490
+ 401: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": components["schemas"]["Error"];
2496
+ };
2497
+ };
2498
+ /** @description Refused */
2499
+ 404: {
2500
+ headers: {
2501
+ [name: string]: unknown;
2502
+ };
2503
+ content: {
2504
+ "application/json": components["schemas"]["Error"];
2505
+ };
2506
+ };
2507
+ /** @description Refused */
2508
+ 422: {
2509
+ headers: {
2510
+ [name: string]: unknown;
1566
2511
  };
2512
+ content: {
2513
+ "application/json": components["schemas"]["Error"];
2514
+ };
2515
+ };
2516
+ };
2517
+ };
2518
+ providerConnections: {
2519
+ parameters: {
2520
+ query?: never;
2521
+ header?: never;
2522
+ path: {
2523
+ org: string;
1567
2524
  };
2525
+ cookie?: never;
1568
2526
  };
2527
+ requestBody?: never;
1569
2528
  responses: {
1570
2529
  /** @description OK */
1571
- 201: {
2530
+ 200: {
1572
2531
  headers: {
1573
2532
  [name: string]: unknown;
1574
2533
  };
1575
2534
  content: {
1576
- "application/json": components["schemas"]["Organization"];
2535
+ "application/json": components["schemas"]["ProviderConnection"][];
1577
2536
  };
1578
2537
  };
1579
2538
  /** @description Refused */
@@ -1614,16 +2573,26 @@ export interface operations {
1614
2573
  };
1615
2574
  };
1616
2575
  };
1617
- getOrganization: {
2576
+ connectProvider: {
1618
2577
  parameters: {
1619
2578
  query?: never;
1620
2579
  header?: never;
1621
2580
  path: {
1622
2581
  org: string;
2582
+ provider: string;
1623
2583
  };
1624
2584
  cookie?: never;
1625
2585
  };
1626
- requestBody?: never;
2586
+ requestBody: {
2587
+ content: {
2588
+ "application/json": {
2589
+ fields: {
2590
+ [key: string]: string;
2591
+ };
2592
+ connectedBy: string;
2593
+ };
2594
+ };
2595
+ };
1627
2596
  responses: {
1628
2597
  /** @description OK */
1629
2598
  200: {
@@ -1631,7 +2600,7 @@ export interface operations {
1631
2600
  [name: string]: unknown;
1632
2601
  };
1633
2602
  content: {
1634
- "application/json": components["schemas"]["Organization"];
2603
+ "application/json": components["schemas"]["ProviderConnection"];
1635
2604
  };
1636
2605
  };
1637
2606
  /** @description Refused */
@@ -1672,22 +2641,80 @@ export interface operations {
1672
2641
  };
1673
2642
  };
1674
2643
  };
1675
- ensureOrganization: {
2644
+ disconnectProvider: {
1676
2645
  parameters: {
1677
2646
  query?: never;
1678
2647
  header?: never;
1679
2648
  path: {
1680
2649
  org: string;
2650
+ provider: string;
1681
2651
  };
1682
2652
  cookie?: never;
1683
2653
  };
1684
2654
  requestBody: {
1685
2655
  content: {
1686
2656
  "application/json": {
1687
- name?: string;
2657
+ by: string;
2658
+ };
2659
+ };
2660
+ };
2661
+ responses: {
2662
+ /** @description OK */
2663
+ 204: {
2664
+ headers: {
2665
+ [name: string]: unknown;
2666
+ };
2667
+ content?: never;
2668
+ };
2669
+ /** @description Refused */
2670
+ 400: {
2671
+ headers: {
2672
+ [name: string]: unknown;
2673
+ };
2674
+ content: {
2675
+ "application/json": components["schemas"]["Error"];
2676
+ };
2677
+ };
2678
+ /** @description Refused */
2679
+ 401: {
2680
+ headers: {
2681
+ [name: string]: unknown;
2682
+ };
2683
+ content: {
2684
+ "application/json": components["schemas"]["Error"];
2685
+ };
2686
+ };
2687
+ /** @description Refused */
2688
+ 404: {
2689
+ headers: {
2690
+ [name: string]: unknown;
2691
+ };
2692
+ content: {
2693
+ "application/json": components["schemas"]["Error"];
2694
+ };
2695
+ };
2696
+ /** @description Refused */
2697
+ 422: {
2698
+ headers: {
2699
+ [name: string]: unknown;
2700
+ };
2701
+ content: {
2702
+ "application/json": components["schemas"]["Error"];
1688
2703
  };
1689
2704
  };
1690
2705
  };
2706
+ };
2707
+ checkProvider: {
2708
+ parameters: {
2709
+ query?: never;
2710
+ header?: never;
2711
+ path: {
2712
+ org: string;
2713
+ provider: string;
2714
+ };
2715
+ cookie?: never;
2716
+ };
2717
+ requestBody?: never;
1691
2718
  responses: {
1692
2719
  /** @description OK */
1693
2720
  200: {
@@ -1695,7 +2722,7 @@ export interface operations {
1695
2722
  [name: string]: unknown;
1696
2723
  };
1697
2724
  content: {
1698
- "application/json": components["schemas"]["Organization"];
2725
+ "application/json": components["schemas"]["SignInCheck"];
1699
2726
  };
1700
2727
  };
1701
2728
  /** @description Refused */
@@ -1736,14 +2763,23 @@ export interface operations {
1736
2763
  };
1737
2764
  };
1738
2765
  };
1739
- branding: {
2766
+ newCertificate: {
1740
2767
  parameters: {
1741
2768
  query?: never;
1742
2769
  header?: never;
1743
- path?: never;
2770
+ path: {
2771
+ org: string;
2772
+ provider: string;
2773
+ };
1744
2774
  cookie?: never;
1745
2775
  };
1746
- requestBody?: never;
2776
+ requestBody: {
2777
+ content: {
2778
+ "application/json": {
2779
+ by: string;
2780
+ };
2781
+ };
2782
+ };
1747
2783
  responses: {
1748
2784
  /** @description OK */
1749
2785
  200: {
@@ -1751,7 +2787,7 @@ export interface operations {
1751
2787
  [name: string]: unknown;
1752
2788
  };
1753
2789
  content: {
1754
- "application/json": components["schemas"]["Branding"];
2790
+ "application/json": components["schemas"]["ProviderConnection"];
1755
2791
  };
1756
2792
  };
1757
2793
  /** @description Refused */
@@ -1792,14 +2828,23 @@ export interface operations {
1792
2828
  };
1793
2829
  };
1794
2830
  };
1795
- connectors: {
2831
+ activateCertificate: {
1796
2832
  parameters: {
1797
2833
  query?: never;
1798
2834
  header?: never;
1799
- path?: never;
2835
+ path: {
2836
+ org: string;
2837
+ provider: string;
2838
+ };
1800
2839
  cookie?: never;
1801
2840
  };
1802
- requestBody?: never;
2841
+ requestBody: {
2842
+ content: {
2843
+ "application/json": {
2844
+ by: string;
2845
+ };
2846
+ };
2847
+ };
1803
2848
  responses: {
1804
2849
  /** @description OK */
1805
2850
  200: {
@@ -1807,7 +2852,7 @@ export interface operations {
1807
2852
  [name: string]: unknown;
1808
2853
  };
1809
2854
  content: {
1810
- "application/json": components["schemas"]["Connector"][];
2855
+ "application/json": components["schemas"]["ProviderConnection"];
1811
2856
  };
1812
2857
  };
1813
2858
  /** @description Refused */
@@ -1847,15 +2892,27 @@ export interface operations {
1847
2892
  };
1848
2893
  };
1849
2894
  };
1850
- };
1851
- providers: {
1852
- parameters: {
1853
- query?: never;
1854
- header?: never;
1855
- path?: never;
1856
- cookie?: never;
1857
- };
1858
- requestBody?: never;
2895
+ };
2896
+ setProviderSettings: {
2897
+ parameters: {
2898
+ query?: never;
2899
+ header?: never;
2900
+ path: {
2901
+ org: string;
2902
+ provider: string;
2903
+ };
2904
+ cookie?: never;
2905
+ };
2906
+ requestBody: {
2907
+ content: {
2908
+ "application/json": {
2909
+ values: {
2910
+ [key: string]: string;
2911
+ };
2912
+ by: string;
2913
+ };
2914
+ };
2915
+ };
1859
2916
  responses: {
1860
2917
  /** @description OK */
1861
2918
  200: {
@@ -1863,7 +2920,11 @@ export interface operations {
1863
2920
  [name: string]: unknown;
1864
2921
  };
1865
2922
  content: {
1866
- "application/json": components["schemas"]["Provider"][];
2923
+ "application/json": {
2924
+ settings: {
2925
+ [key: string]: string;
2926
+ };
2927
+ };
1867
2928
  };
1868
2929
  };
1869
2930
  /** @description Refused */
@@ -1904,7 +2965,7 @@ export interface operations {
1904
2965
  };
1905
2966
  };
1906
2967
  };
1907
- providerConnections: {
2968
+ confirmed: {
1908
2969
  parameters: {
1909
2970
  query?: never;
1910
2971
  header?: never;
@@ -1921,7 +2982,7 @@ export interface operations {
1921
2982
  [name: string]: unknown;
1922
2983
  };
1923
2984
  content: {
1924
- "application/json": components["schemas"]["ProviderConnection"][];
2985
+ "application/json": components["schemas"]["Confirmed"][];
1925
2986
  };
1926
2987
  };
1927
2988
  /** @description Refused */
@@ -1962,35 +3023,30 @@ export interface operations {
1962
3023
  };
1963
3024
  };
1964
3025
  };
1965
- connectProvider: {
3026
+ confirm: {
1966
3027
  parameters: {
1967
3028
  query?: never;
1968
3029
  header?: never;
1969
3030
  path: {
1970
3031
  org: string;
1971
- provider: string;
3032
+ step: string;
1972
3033
  };
1973
3034
  cookie?: never;
1974
3035
  };
1975
3036
  requestBody: {
1976
3037
  content: {
1977
3038
  "application/json": {
1978
- fields: {
1979
- [key: string]: string;
1980
- };
1981
- connectedBy: string;
3039
+ by: string;
1982
3040
  };
1983
3041
  };
1984
3042
  };
1985
3043
  responses: {
1986
3044
  /** @description OK */
1987
- 200: {
3045
+ 204: {
1988
3046
  headers: {
1989
3047
  [name: string]: unknown;
1990
3048
  };
1991
- content: {
1992
- "application/json": components["schemas"]["ProviderConnection"];
1993
- };
3049
+ content?: never;
1994
3050
  };
1995
3051
  /** @description Refused */
1996
3052
  400: {
@@ -2030,13 +3086,13 @@ export interface operations {
2030
3086
  };
2031
3087
  };
2032
3088
  };
2033
- disconnectProvider: {
3089
+ unconfirm: {
2034
3090
  parameters: {
2035
3091
  query?: never;
2036
3092
  header?: never;
2037
3093
  path: {
2038
3094
  org: string;
2039
- provider: string;
3095
+ step: string;
2040
3096
  };
2041
3097
  cookie?: never;
2042
3098
  };
@@ -2093,13 +3149,12 @@ export interface operations {
2093
3149
  };
2094
3150
  };
2095
3151
  };
2096
- checkProvider: {
3152
+ connections: {
2097
3153
  parameters: {
2098
3154
  query?: never;
2099
3155
  header?: never;
2100
3156
  path: {
2101
3157
  org: string;
2102
- provider: string;
2103
3158
  };
2104
3159
  cookie?: never;
2105
3160
  };
@@ -2111,7 +3166,7 @@ export interface operations {
2111
3166
  [name: string]: unknown;
2112
3167
  };
2113
3168
  content: {
2114
- "application/json": components["schemas"]["SignInCheck"];
3169
+ "application/json": components["schemas"]["Connection"][];
2115
3170
  };
2116
3171
  };
2117
3172
  /** @description Refused */
@@ -2152,20 +3207,24 @@ export interface operations {
2152
3207
  };
2153
3208
  };
2154
3209
  };
2155
- newCertificate: {
3210
+ connect: {
2156
3211
  parameters: {
2157
3212
  query?: never;
2158
3213
  header?: never;
2159
3214
  path: {
2160
3215
  org: string;
2161
- provider: string;
3216
+ app: string;
2162
3217
  };
2163
3218
  cookie?: never;
2164
3219
  };
2165
3220
  requestBody: {
2166
3221
  content: {
2167
3222
  "application/json": {
2168
- by: string;
3223
+ capabilities: string[];
3224
+ fields: {
3225
+ [key: string]: string;
3226
+ };
3227
+ connectedBy: string;
2169
3228
  };
2170
3229
  };
2171
3230
  };
@@ -2176,7 +3235,7 @@ export interface operations {
2176
3235
  [name: string]: unknown;
2177
3236
  };
2178
3237
  content: {
2179
- "application/json": components["schemas"]["ProviderConnection"];
3238
+ "application/json": components["schemas"]["ConnectResult"];
2180
3239
  };
2181
3240
  };
2182
3241
  /** @description Refused */
@@ -2217,13 +3276,13 @@ export interface operations {
2217
3276
  };
2218
3277
  };
2219
3278
  };
2220
- activateCertificate: {
3279
+ disconnect: {
2221
3280
  parameters: {
2222
3281
  query?: never;
2223
3282
  header?: never;
2224
3283
  path: {
2225
3284
  org: string;
2226
- provider: string;
3285
+ app: string;
2227
3286
  };
2228
3287
  cookie?: never;
2229
3288
  };
@@ -2236,13 +3295,11 @@ export interface operations {
2236
3295
  };
2237
3296
  responses: {
2238
3297
  /** @description OK */
2239
- 200: {
3298
+ 204: {
2240
3299
  headers: {
2241
3300
  [name: string]: unknown;
2242
3301
  };
2243
- content: {
2244
- "application/json": components["schemas"]["ProviderConnection"];
2245
- };
3302
+ content?: never;
2246
3303
  };
2247
3304
  /** @description Refused */
2248
3305
  400: {
@@ -2282,39 +3339,31 @@ export interface operations {
2282
3339
  };
2283
3340
  };
2284
3341
  };
2285
- setProviderSettings: {
3342
+ setCeiling: {
2286
3343
  parameters: {
2287
3344
  query?: never;
2288
3345
  header?: never;
2289
3346
  path: {
2290
3347
  org: string;
2291
- provider: string;
3348
+ app: string;
2292
3349
  };
2293
3350
  cookie?: never;
2294
3351
  };
2295
3352
  requestBody: {
2296
3353
  content: {
2297
3354
  "application/json": {
2298
- values: {
2299
- [key: string]: string;
2300
- };
3355
+ capabilities: string[];
2301
3356
  by: string;
2302
3357
  };
2303
3358
  };
2304
3359
  };
2305
3360
  responses: {
2306
3361
  /** @description OK */
2307
- 200: {
3362
+ 204: {
2308
3363
  headers: {
2309
3364
  [name: string]: unknown;
2310
3365
  };
2311
- content: {
2312
- "application/json": {
2313
- settings: {
2314
- [key: string]: string;
2315
- };
2316
- };
2317
- };
3366
+ content?: never;
2318
3367
  };
2319
3368
  /** @description Refused */
2320
3369
  400: {
@@ -2354,16 +3403,28 @@ export interface operations {
2354
3403
  };
2355
3404
  };
2356
3405
  };
2357
- confirmed: {
3406
+ startConsent: {
2358
3407
  parameters: {
2359
3408
  query?: never;
2360
3409
  header?: never;
2361
3410
  path: {
2362
3411
  org: string;
3412
+ app: string;
2363
3413
  };
2364
3414
  cookie?: never;
2365
3415
  };
2366
- requestBody?: never;
3416
+ requestBody: {
3417
+ content: {
3418
+ "application/json": {
3419
+ capabilities: string[];
3420
+ /**
3421
+ * Format: uri
3422
+ * @description The admin app's own callback page: https, or http://localhost while developing
3423
+ */
3424
+ redirectUri: string;
3425
+ };
3426
+ };
3427
+ };
2367
3428
  responses: {
2368
3429
  /** @description OK */
2369
3430
  200: {
@@ -2371,7 +3432,7 @@ export interface operations {
2371
3432
  [name: string]: unknown;
2372
3433
  };
2373
3434
  content: {
2374
- "application/json": components["schemas"]["Confirmed"][];
3435
+ "application/json": components["schemas"]["SignIn"];
2375
3436
  };
2376
3437
  };
2377
3438
  /** @description Refused */
@@ -2412,30 +3473,41 @@ export interface operations {
2412
3473
  };
2413
3474
  };
2414
3475
  };
2415
- confirm: {
3476
+ finishConsent: {
2416
3477
  parameters: {
2417
3478
  query?: never;
2418
3479
  header?: never;
2419
3480
  path: {
2420
3481
  org: string;
2421
- step: string;
3482
+ app: string;
2422
3483
  };
2423
3484
  cookie?: never;
2424
3485
  };
2425
3486
  requestBody: {
2426
3487
  content: {
2427
3488
  "application/json": {
2428
- by: string;
3489
+ state: string;
3490
+ nonce: string;
3491
+ params: {
3492
+ [key: string]: string;
3493
+ };
3494
+ connectedBy: string;
2429
3495
  };
2430
3496
  };
2431
3497
  };
2432
3498
  responses: {
2433
3499
  /** @description OK */
2434
- 204: {
3500
+ 200: {
2435
3501
  headers: {
2436
3502
  [name: string]: unknown;
2437
3503
  };
2438
- content?: never;
3504
+ content: {
3505
+ "application/json": {
3506
+ redirect: string;
3507
+ } | {
3508
+ provider: components["schemas"]["ProviderConnection"];
3509
+ } | components["schemas"]["ConnectResult"];
3510
+ };
2439
3511
  };
2440
3512
  /** @description Refused */
2441
3513
  400: {
@@ -2475,17 +3547,20 @@ export interface operations {
2475
3547
  };
2476
3548
  };
2477
3549
  };
2478
- unconfirm: {
3550
+ check: {
2479
3551
  parameters: {
2480
- query?: never;
3552
+ query?: {
3553
+ /** @description false: read only */
3554
+ record?: string;
3555
+ };
2481
3556
  header?: never;
2482
3557
  path: {
2483
3558
  org: string;
2484
- step: string;
3559
+ app: string;
2485
3560
  };
2486
3561
  cookie?: never;
2487
3562
  };
2488
- requestBody: {
3563
+ requestBody?: {
2489
3564
  content: {
2490
3565
  "application/json": {
2491
3566
  by: string;
@@ -2494,11 +3569,13 @@ export interface operations {
2494
3569
  };
2495
3570
  responses: {
2496
3571
  /** @description OK */
2497
- 204: {
3572
+ 200: {
2498
3573
  headers: {
2499
3574
  [name: string]: unknown;
2500
3575
  };
2501
- content?: never;
3576
+ content: {
3577
+ "application/json": components["schemas"]["CheckOutcome"];
3578
+ };
2502
3579
  };
2503
3580
  /** @description Refused */
2504
3581
  400: {
@@ -2538,16 +3615,24 @@ export interface operations {
2538
3615
  };
2539
3616
  };
2540
3617
  };
2541
- connections: {
3618
+ setSites: {
2542
3619
  parameters: {
2543
3620
  query?: never;
2544
3621
  header?: never;
2545
3622
  path: {
2546
3623
  org: string;
3624
+ app: string;
2547
3625
  };
2548
3626
  cookie?: never;
2549
3627
  };
2550
- requestBody?: never;
3628
+ requestBody: {
3629
+ content: {
3630
+ "application/json": {
3631
+ sites: string[];
3632
+ by: string;
3633
+ };
3634
+ };
3635
+ };
2551
3636
  responses: {
2552
3637
  /** @description OK */
2553
3638
  200: {
@@ -2555,7 +3640,9 @@ export interface operations {
2555
3640
  [name: string]: unknown;
2556
3641
  };
2557
3642
  content: {
2558
- "application/json": components["schemas"]["Connection"][];
3643
+ "application/json": {
3644
+ sites: string[];
3645
+ };
2559
3646
  };
2560
3647
  };
2561
3648
  /** @description Refused */
@@ -2596,7 +3683,7 @@ export interface operations {
2596
3683
  };
2597
3684
  };
2598
3685
  };
2599
- connect: {
3686
+ checkSites: {
2600
3687
  parameters: {
2601
3688
  query?: never;
2602
3689
  header?: never;
@@ -2609,11 +3696,7 @@ export interface operations {
2609
3696
  requestBody: {
2610
3697
  content: {
2611
3698
  "application/json": {
2612
- capabilities: string[];
2613
- fields: {
2614
- [key: string]: string;
2615
- };
2616
- connectedBy: string;
3699
+ site?: string;
2617
3700
  };
2618
3701
  };
2619
3702
  };
@@ -2624,7 +3707,9 @@ export interface operations {
2624
3707
  [name: string]: unknown;
2625
3708
  };
2626
3709
  content: {
2627
- "application/json": components["schemas"]["ConnectResult"];
3710
+ "application/json": {
3711
+ sites: components["schemas"]["SiteAccess"][];
3712
+ };
2628
3713
  };
2629
3714
  };
2630
3715
  /** @description Refused */
@@ -2665,7 +3750,7 @@ export interface operations {
2665
3750
  };
2666
3751
  };
2667
3752
  };
2668
- disconnect: {
3753
+ agentAccess: {
2669
3754
  parameters: {
2670
3755
  query?: never;
2671
3756
  header?: never;
@@ -2678,17 +3763,20 @@ export interface operations {
2678
3763
  requestBody: {
2679
3764
  content: {
2680
3765
  "application/json": {
3766
+ value: string;
2681
3767
  by: string;
2682
3768
  };
2683
3769
  };
2684
3770
  };
2685
3771
  responses: {
2686
3772
  /** @description OK */
2687
- 204: {
3773
+ 200: {
2688
3774
  headers: {
2689
3775
  [name: string]: unknown;
2690
3776
  };
2691
- content?: never;
3777
+ content: {
3778
+ "application/json": components["schemas"]["AgentAccess"];
3779
+ };
2692
3780
  };
2693
3781
  /** @description Refused */
2694
3782
  400: {
@@ -2728,31 +3816,25 @@ export interface operations {
2728
3816
  };
2729
3817
  };
2730
3818
  };
2731
- setCeiling: {
3819
+ agents: {
2732
3820
  parameters: {
2733
3821
  query?: never;
2734
3822
  header?: never;
2735
3823
  path: {
2736
3824
  org: string;
2737
- app: string;
2738
3825
  };
2739
3826
  cookie?: never;
2740
3827
  };
2741
- requestBody: {
2742
- content: {
2743
- "application/json": {
2744
- capabilities: string[];
2745
- by: string;
2746
- };
2747
- };
2748
- };
3828
+ requestBody?: never;
2749
3829
  responses: {
2750
3830
  /** @description OK */
2751
- 204: {
3831
+ 200: {
2752
3832
  headers: {
2753
3833
  [name: string]: unknown;
2754
3834
  };
2755
- content?: never;
3835
+ content: {
3836
+ "application/json": components["schemas"]["Agent"][];
3837
+ };
2756
3838
  };
2757
3839
  /** @description Refused */
2758
3840
  400: {
@@ -2792,36 +3874,34 @@ export interface operations {
2792
3874
  };
2793
3875
  };
2794
3876
  };
2795
- startConsent: {
3877
+ createAgent: {
2796
3878
  parameters: {
2797
3879
  query?: never;
2798
3880
  header?: never;
2799
3881
  path: {
2800
3882
  org: string;
2801
- app: string;
2802
3883
  };
2803
3884
  cookie?: never;
2804
3885
  };
2805
3886
  requestBody: {
2806
3887
  content: {
2807
3888
  "application/json": {
2808
- capabilities: string[];
2809
- /**
2810
- * Format: uri
2811
- * @description The admin app's own callback page: https, or http://localhost while developing
2812
- */
2813
- redirectUri: string;
3889
+ name: string;
3890
+ createdBy: string;
2814
3891
  };
2815
3892
  };
2816
3893
  };
2817
3894
  responses: {
2818
3895
  /** @description OK */
2819
- 200: {
3896
+ 201: {
2820
3897
  headers: {
2821
3898
  [name: string]: unknown;
2822
3899
  };
2823
3900
  content: {
2824
- "application/json": components["schemas"]["SignIn"];
3901
+ "application/json": {
3902
+ agent: components["schemas"]["NewAgent"];
3903
+ key: string;
3904
+ };
2825
3905
  };
2826
3906
  };
2827
3907
  /** @description Refused */
@@ -2852,6 +3932,15 @@ export interface operations {
2852
3932
  };
2853
3933
  };
2854
3934
  /** @description Refused */
3935
+ 409: {
3936
+ headers: {
3937
+ [name: string]: unknown;
3938
+ };
3939
+ content: {
3940
+ "application/json": components["schemas"]["Error"];
3941
+ };
3942
+ };
3943
+ /** @description Refused */
2855
3944
  422: {
2856
3945
  headers: {
2857
3946
  [name: string]: unknown;
@@ -2862,41 +3951,30 @@ export interface operations {
2862
3951
  };
2863
3952
  };
2864
3953
  };
2865
- finishConsent: {
3954
+ deleteAgent: {
2866
3955
  parameters: {
2867
3956
  query?: never;
2868
3957
  header?: never;
2869
3958
  path: {
2870
3959
  org: string;
2871
- app: string;
3960
+ agent: string;
2872
3961
  };
2873
3962
  cookie?: never;
2874
3963
  };
2875
3964
  requestBody: {
2876
3965
  content: {
2877
3966
  "application/json": {
2878
- state: string;
2879
- nonce: string;
2880
- params: {
2881
- [key: string]: string;
2882
- };
2883
- connectedBy: string;
3967
+ by: string;
2884
3968
  };
2885
3969
  };
2886
3970
  };
2887
3971
  responses: {
2888
3972
  /** @description OK */
2889
- 200: {
3973
+ 204: {
2890
3974
  headers: {
2891
3975
  [name: string]: unknown;
2892
3976
  };
2893
- content: {
2894
- "application/json": {
2895
- redirect: string;
2896
- } | {
2897
- provider: components["schemas"]["ProviderConnection"];
2898
- } | components["schemas"]["ConnectResult"];
2899
- };
3977
+ content?: never;
2900
3978
  };
2901
3979
  /** @description Refused */
2902
3980
  400: {
@@ -2932,39 +4010,36 @@ export interface operations {
2932
4010
  };
2933
4011
  content: {
2934
4012
  "application/json": components["schemas"]["Error"];
2935
- };
2936
- };
2937
- };
2938
- };
2939
- check: {
2940
- parameters: {
2941
- query?: {
2942
- /** @description false: read only */
2943
- record?: string;
4013
+ };
2944
4014
  };
4015
+ };
4016
+ };
4017
+ setAgentStatus: {
4018
+ parameters: {
4019
+ query?: never;
2945
4020
  header?: never;
2946
4021
  path: {
2947
4022
  org: string;
2948
- app: string;
4023
+ agent: string;
2949
4024
  };
2950
4025
  cookie?: never;
2951
4026
  };
2952
- requestBody?: {
4027
+ requestBody: {
2953
4028
  content: {
2954
4029
  "application/json": {
4030
+ /** @enum {string} */
4031
+ status: "active" | "disabled";
2955
4032
  by: string;
2956
4033
  };
2957
4034
  };
2958
4035
  };
2959
4036
  responses: {
2960
4037
  /** @description OK */
2961
- 200: {
4038
+ 204: {
2962
4039
  headers: {
2963
4040
  [name: string]: unknown;
2964
4041
  };
2965
- content: {
2966
- "application/json": components["schemas"]["CheckOutcome"];
2967
- };
4042
+ content?: never;
2968
4043
  };
2969
4044
  /** @description Refused */
2970
4045
  400: {
@@ -3004,20 +4079,19 @@ export interface operations {
3004
4079
  };
3005
4080
  };
3006
4081
  };
3007
- setSites: {
4082
+ newKey: {
3008
4083
  parameters: {
3009
4084
  query?: never;
3010
4085
  header?: never;
3011
4086
  path: {
3012
4087
  org: string;
3013
- app: string;
4088
+ agent: string;
3014
4089
  };
3015
4090
  cookie?: never;
3016
4091
  };
3017
4092
  requestBody: {
3018
4093
  content: {
3019
4094
  "application/json": {
3020
- sites: string[];
3021
4095
  by: string;
3022
4096
  };
3023
4097
  };
@@ -3030,7 +4104,7 @@ export interface operations {
3030
4104
  };
3031
4105
  content: {
3032
4106
  "application/json": {
3033
- sites: string[];
4107
+ key: string;
3034
4108
  };
3035
4109
  };
3036
4110
  };
@@ -3072,12 +4146,13 @@ export interface operations {
3072
4146
  };
3073
4147
  };
3074
4148
  };
3075
- checkSites: {
4149
+ setGrant: {
3076
4150
  parameters: {
3077
4151
  query?: never;
3078
4152
  header?: never;
3079
4153
  path: {
3080
4154
  org: string;
4155
+ agent: string;
3081
4156
  app: string;
3082
4157
  };
3083
4158
  cookie?: never;
@@ -3085,21 +4160,19 @@ export interface operations {
3085
4160
  requestBody: {
3086
4161
  content: {
3087
4162
  "application/json": {
3088
- site?: string;
4163
+ capabilities: string[];
4164
+ limits?: unknown;
4165
+ by: string;
3089
4166
  };
3090
4167
  };
3091
4168
  };
3092
4169
  responses: {
3093
4170
  /** @description OK */
3094
- 200: {
4171
+ 204: {
3095
4172
  headers: {
3096
4173
  [name: string]: unknown;
3097
4174
  };
3098
- content: {
3099
- "application/json": {
3100
- sites: components["schemas"]["SiteAccess"][];
3101
- };
3102
- };
4175
+ content?: never;
3103
4176
  };
3104
4177
  /** @description Refused */
3105
4178
  400: {
@@ -3139,12 +4212,13 @@ export interface operations {
3139
4212
  };
3140
4213
  };
3141
4214
  };
3142
- agentAccess: {
4215
+ removeGrant: {
3143
4216
  parameters: {
3144
4217
  query?: never;
3145
4218
  header?: never;
3146
4219
  path: {
3147
4220
  org: string;
4221
+ agent: string;
3148
4222
  app: string;
3149
4223
  };
3150
4224
  cookie?: never;
@@ -3152,20 +4226,17 @@ export interface operations {
3152
4226
  requestBody: {
3153
4227
  content: {
3154
4228
  "application/json": {
3155
- value: string;
3156
4229
  by: string;
3157
4230
  };
3158
4231
  };
3159
4232
  };
3160
4233
  responses: {
3161
4234
  /** @description OK */
3162
- 200: {
4235
+ 204: {
3163
4236
  headers: {
3164
4237
  [name: string]: unknown;
3165
4238
  };
3166
- content: {
3167
- "application/json": components["schemas"]["AgentAccess"];
3168
- };
4239
+ content?: never;
3169
4240
  };
3170
4241
  /** @description Refused */
3171
4242
  400: {
@@ -3205,9 +4276,16 @@ export interface operations {
3205
4276
  };
3206
4277
  };
3207
4278
  };
3208
- agents: {
4279
+ audit: {
3209
4280
  parameters: {
3210
- query?: never;
4281
+ query?: {
4282
+ /** @description 1 to 500, default 50 */
4283
+ limit?: string;
4284
+ /** @description an agent id */
4285
+ agent?: string;
4286
+ /** @description an app id */
4287
+ app?: string;
4288
+ };
3211
4289
  header?: never;
3212
4290
  path: {
3213
4291
  org: string;
@@ -3222,7 +4300,7 @@ export interface operations {
3222
4300
  [name: string]: unknown;
3223
4301
  };
3224
4302
  content: {
3225
- "application/json": components["schemas"]["Agent"][];
4303
+ "application/json": components["schemas"]["AuditRow"][];
3226
4304
  };
3227
4305
  };
3228
4306
  /** @description Refused */
@@ -3263,7 +4341,7 @@ export interface operations {
3263
4341
  };
3264
4342
  };
3265
4343
  };
3266
- createAgent: {
4344
+ teamsBots: {
3267
4345
  parameters: {
3268
4346
  query?: never;
3269
4347
  header?: never;
@@ -3272,25 +4350,15 @@ export interface operations {
3272
4350
  };
3273
4351
  cookie?: never;
3274
4352
  };
3275
- requestBody: {
3276
- content: {
3277
- "application/json": {
3278
- name: string;
3279
- createdBy: string;
3280
- };
3281
- };
3282
- };
4353
+ requestBody?: never;
3283
4354
  responses: {
3284
4355
  /** @description OK */
3285
- 201: {
4356
+ 200: {
3286
4357
  headers: {
3287
4358
  [name: string]: unknown;
3288
4359
  };
3289
4360
  content: {
3290
- "application/json": {
3291
- agent: components["schemas"]["NewAgent"];
3292
- key: string;
3293
- };
4361
+ "application/json": components["schemas"]["TeamsBot"][];
3294
4362
  };
3295
4363
  };
3296
4364
  /** @description Refused */
@@ -3321,15 +4389,6 @@ export interface operations {
3321
4389
  };
3322
4390
  };
3323
4391
  /** @description Refused */
3324
- 409: {
3325
- headers: {
3326
- [name: string]: unknown;
3327
- };
3328
- content: {
3329
- "application/json": components["schemas"]["Error"];
3330
- };
3331
- };
3332
- /** @description Refused */
3333
4392
  422: {
3334
4393
  headers: {
3335
4394
  [name: string]: unknown;
@@ -3340,30 +4399,27 @@ export interface operations {
3340
4399
  };
3341
4400
  };
3342
4401
  };
3343
- deleteAgent: {
4402
+ teamsSetupState: {
3344
4403
  parameters: {
3345
4404
  query?: never;
3346
4405
  header?: never;
3347
4406
  path: {
3348
4407
  org: string;
3349
- agent: string;
3350
4408
  };
3351
4409
  cookie?: never;
3352
4410
  };
3353
- requestBody: {
3354
- content: {
3355
- "application/json": {
3356
- by: string;
3357
- };
3358
- };
3359
- };
4411
+ requestBody?: never;
3360
4412
  responses: {
3361
4413
  /** @description OK */
3362
- 204: {
4414
+ 200: {
3363
4415
  headers: {
3364
4416
  [name: string]: unknown;
3365
4417
  };
3366
- content?: never;
4418
+ content: {
4419
+ "application/json": {
4420
+ [key: string]: components["schemas"]["LiveCheck"];
4421
+ };
4422
+ };
3367
4423
  };
3368
4424
  /** @description Refused */
3369
4425
  400: {
@@ -3403,32 +4459,40 @@ export interface operations {
3403
4459
  };
3404
4460
  };
3405
4461
  };
3406
- setAgentStatus: {
4462
+ finishTeamsPublish: {
3407
4463
  parameters: {
3408
4464
  query?: never;
3409
4465
  header?: never;
3410
4466
  path: {
3411
4467
  org: string;
3412
- agent: string;
3413
4468
  };
3414
4469
  cookie?: never;
3415
4470
  };
3416
4471
  requestBody: {
3417
4472
  content: {
3418
4473
  "application/json": {
3419
- /** @enum {string} */
3420
- status: "active" | "disabled";
4474
+ state: string;
4475
+ nonce: string;
4476
+ params: {
4477
+ [key: string]: string;
4478
+ };
3421
4479
  by: string;
3422
4480
  };
3423
4481
  };
3424
4482
  };
3425
4483
  responses: {
3426
4484
  /** @description OK */
3427
- 204: {
4485
+ 200: {
3428
4486
  headers: {
3429
4487
  [name: string]: unknown;
3430
4488
  };
3431
- content?: never;
4489
+ content: {
4490
+ "application/json": {
4491
+ agentId: string;
4492
+ version: string;
4493
+ changed: boolean;
4494
+ };
4495
+ };
3432
4496
  };
3433
4497
  /** @description Refused */
3434
4498
  400: {
@@ -3468,7 +4532,7 @@ export interface operations {
3468
4532
  };
3469
4533
  };
3470
4534
  };
3471
- newKey: {
4535
+ connectTeamsBot: {
3472
4536
  parameters: {
3473
4537
  query?: never;
3474
4538
  header?: never;
@@ -3481,6 +4545,7 @@ export interface operations {
3481
4545
  requestBody: {
3482
4546
  content: {
3483
4547
  "application/json": {
4548
+ botAppId: string;
3484
4549
  by: string;
3485
4550
  };
3486
4551
  };
@@ -3492,9 +4557,7 @@ export interface operations {
3492
4557
  [name: string]: unknown;
3493
4558
  };
3494
4559
  content: {
3495
- "application/json": {
3496
- key: string;
3497
- };
4560
+ "application/json": components["schemas"]["TeamsBotRecord"];
3498
4561
  };
3499
4562
  };
3500
4563
  /** @description Refused */
@@ -3535,33 +4598,33 @@ export interface operations {
3535
4598
  };
3536
4599
  };
3537
4600
  };
3538
- setGrant: {
4601
+ createTeamsBot: {
3539
4602
  parameters: {
3540
4603
  query?: never;
3541
4604
  header?: never;
3542
4605
  path: {
3543
4606
  org: string;
3544
4607
  agent: string;
3545
- app: string;
3546
4608
  };
3547
4609
  cookie?: never;
3548
4610
  };
3549
4611
  requestBody: {
3550
4612
  content: {
3551
4613
  "application/json": {
3552
- capabilities: string[];
3553
- limits?: unknown;
4614
+ displayName: string;
3554
4615
  by: string;
3555
4616
  };
3556
4617
  };
3557
4618
  };
3558
4619
  responses: {
3559
4620
  /** @description OK */
3560
- 204: {
4621
+ 200: {
3561
4622
  headers: {
3562
4623
  [name: string]: unknown;
3563
4624
  };
3564
- content?: never;
4625
+ content: {
4626
+ "application/json": components["schemas"]["TeamsBotRecord"];
4627
+ };
3565
4628
  };
3566
4629
  /** @description Refused */
3567
4630
  400: {
@@ -3601,14 +4664,13 @@ export interface operations {
3601
4664
  };
3602
4665
  };
3603
4666
  };
3604
- removeGrant: {
4667
+ removeTeamsBot: {
3605
4668
  parameters: {
3606
4669
  query?: never;
3607
4670
  header?: never;
3608
4671
  path: {
3609
4672
  org: string;
3610
4673
  agent: string;
3611
- app: string;
3612
4674
  };
3613
4675
  cookie?: never;
3614
4676
  };
@@ -3621,11 +4683,16 @@ export interface operations {
3621
4683
  };
3622
4684
  responses: {
3623
4685
  /** @description OK */
3624
- 204: {
4686
+ 200: {
3625
4687
  headers: {
3626
4688
  [name: string]: unknown;
3627
4689
  };
3628
- content?: never;
4690
+ content: {
4691
+ "application/json": {
4692
+ removal: string;
4693
+ failed: string[];
4694
+ };
4695
+ };
3629
4696
  };
3630
4697
  /** @description Refused */
3631
4698
  400: {
@@ -3665,23 +4732,24 @@ export interface operations {
3665
4732
  };
3666
4733
  };
3667
4734
  };
3668
- audit: {
4735
+ addToTeams: {
3669
4736
  parameters: {
3670
- query?: {
3671
- /** @description 1 to 500, default 50 */
3672
- limit?: string;
3673
- /** @description an agent id */
3674
- agent?: string;
3675
- /** @description an app id */
3676
- app?: string;
3677
- };
4737
+ query?: never;
3678
4738
  header?: never;
3679
4739
  path: {
3680
4740
  org: string;
4741
+ agent: string;
3681
4742
  };
3682
4743
  cookie?: never;
3683
4744
  };
3684
- requestBody?: never;
4745
+ requestBody: {
4746
+ content: {
4747
+ "application/json": {
4748
+ displayName: string;
4749
+ by: string;
4750
+ };
4751
+ };
4752
+ };
3685
4753
  responses: {
3686
4754
  /** @description OK */
3687
4755
  200: {
@@ -3689,7 +4757,10 @@ export interface operations {
3689
4757
  [name: string]: unknown;
3690
4758
  };
3691
4759
  content: {
3692
- "application/json": components["schemas"]["AuditRow"][];
4760
+ "application/json": {
4761
+ steps: components["schemas"]["AddStep"][];
4762
+ bot: components["schemas"]["TeamsBotRecord"];
4763
+ };
3693
4764
  };
3694
4765
  };
3695
4766
  /** @description Refused */
@@ -3730,16 +4801,27 @@ export interface operations {
3730
4801
  };
3731
4802
  };
3732
4803
  };
3733
- teamsBots: {
4804
+ startTeamsPublish: {
3734
4805
  parameters: {
3735
4806
  query?: never;
3736
4807
  header?: never;
3737
4808
  path: {
3738
4809
  org: string;
4810
+ agent: string;
3739
4811
  };
3740
4812
  cookie?: never;
3741
4813
  };
3742
- requestBody?: never;
4814
+ requestBody: {
4815
+ content: {
4816
+ "application/json": {
4817
+ /**
4818
+ * Format: uri
4819
+ * @description The admin app's own callback page: https, or http://localhost while developing
4820
+ */
4821
+ redirectUri: string;
4822
+ };
4823
+ };
4824
+ };
3743
4825
  responses: {
3744
4826
  /** @description OK */
3745
4827
  200: {
@@ -3747,7 +4829,7 @@ export interface operations {
3747
4829
  [name: string]: unknown;
3748
4830
  };
3749
4831
  content: {
3750
- "application/json": components["schemas"]["TeamsBot"][];
4832
+ "application/json": components["schemas"]["SignIn"];
3751
4833
  };
3752
4834
  };
3753
4835
  /** @description Refused */
@@ -3788,12 +4870,18 @@ export interface operations {
3788
4870
  };
3789
4871
  };
3790
4872
  };
3791
- teamsSetupState: {
4873
+ teamsTargets: {
3792
4874
  parameters: {
3793
- query?: never;
4875
+ query?: {
4876
+ /** @description team or person */
4877
+ kind?: string;
4878
+ /** @description what the admin typed */
4879
+ q?: string;
4880
+ };
3794
4881
  header?: never;
3795
4882
  path: {
3796
4883
  org: string;
4884
+ agent: string;
3797
4885
  };
3798
4886
  cookie?: never;
3799
4887
  };
@@ -3805,9 +4893,7 @@ export interface operations {
3805
4893
  [name: string]: unknown;
3806
4894
  };
3807
4895
  content: {
3808
- "application/json": {
3809
- [key: string]: components["schemas"]["LiveCheck"];
3810
- };
4896
+ "application/json": components["schemas"]["InstallTarget"][];
3811
4897
  };
3812
4898
  };
3813
4899
  /** @description Refused */
@@ -3848,23 +4934,22 @@ export interface operations {
3848
4934
  };
3849
4935
  };
3850
4936
  };
3851
- finishTeamsPublish: {
4937
+ installTeamsBot: {
3852
4938
  parameters: {
3853
4939
  query?: never;
3854
4940
  header?: never;
3855
4941
  path: {
3856
4942
  org: string;
4943
+ agent: string;
3857
4944
  };
3858
4945
  cookie?: never;
3859
4946
  };
3860
4947
  requestBody: {
3861
4948
  content: {
3862
4949
  "application/json": {
3863
- state: string;
3864
- nonce: string;
3865
- params: {
3866
- [key: string]: string;
3867
- };
4950
+ /** @enum {string} */
4951
+ kind: "team" | "chat" | "person";
4952
+ id: string;
3868
4953
  by: string;
3869
4954
  };
3870
4955
  };
@@ -3877,9 +4962,8 @@ export interface operations {
3877
4962
  };
3878
4963
  content: {
3879
4964
  "application/json": {
3880
- agentId: string;
3881
- version: string;
3882
- changed: boolean;
4965
+ /** @enum {string} */
4966
+ result: "added" | "already";
3883
4967
  };
3884
4968
  };
3885
4969
  };
@@ -3921,7 +5005,7 @@ export interface operations {
3921
5005
  };
3922
5006
  };
3923
5007
  };
3924
- connectTeamsBot: {
5008
+ teamsKit: {
3925
5009
  parameters: {
3926
5010
  query?: never;
3927
5011
  header?: never;
@@ -3931,14 +5015,7 @@ export interface operations {
3931
5015
  };
3932
5016
  cookie?: never;
3933
5017
  };
3934
- requestBody: {
3935
- content: {
3936
- "application/json": {
3937
- botAppId: string;
3938
- by: string;
3939
- };
3940
- };
3941
- };
5018
+ requestBody?: never;
3942
5019
  responses: {
3943
5020
  /** @description OK */
3944
5021
  200: {
@@ -3946,7 +5023,7 @@ export interface operations {
3946
5023
  [name: string]: unknown;
3947
5024
  };
3948
5025
  content: {
3949
- "application/json": components["schemas"]["TeamsBotRecord"];
5026
+ "text/plain": string;
3950
5027
  };
3951
5028
  };
3952
5029
  /** @description Refused */
@@ -3987,7 +5064,7 @@ export interface operations {
3987
5064
  };
3988
5065
  };
3989
5066
  };
3990
- createTeamsBot: {
5067
+ checkTeamsBot: {
3991
5068
  parameters: {
3992
5069
  query?: never;
3993
5070
  header?: never;
@@ -3997,14 +5074,7 @@ export interface operations {
3997
5074
  };
3998
5075
  cookie?: never;
3999
5076
  };
4000
- requestBody: {
4001
- content: {
4002
- "application/json": {
4003
- displayName: string;
4004
- by: string;
4005
- };
4006
- };
4007
- };
5077
+ requestBody?: never;
4008
5078
  responses: {
4009
5079
  /** @description OK */
4010
5080
  200: {
@@ -4012,7 +5082,7 @@ export interface operations {
4012
5082
  [name: string]: unknown;
4013
5083
  };
4014
5084
  content: {
4015
- "application/json": components["schemas"]["TeamsBotRecord"];
5085
+ "application/json": components["schemas"]["SignInCheck"];
4016
5086
  };
4017
5087
  };
4018
5088
  /** @description Refused */
@@ -4053,7 +5123,7 @@ export interface operations {
4053
5123
  };
4054
5124
  };
4055
5125
  };
4056
- removeTeamsBot: {
5126
+ teamsTest: {
4057
5127
  parameters: {
4058
5128
  query?: never;
4059
5129
  header?: never;
@@ -4066,6 +5136,7 @@ export interface operations {
4066
5136
  requestBody: {
4067
5137
  content: {
4068
5138
  "application/json": {
5139
+ conversationId: string;
4069
5140
  by: string;
4070
5141
  };
4071
5142
  };
@@ -4078,8 +5149,8 @@ export interface operations {
4078
5149
  };
4079
5150
  content: {
4080
5151
  "application/json": {
4081
- removal: string;
4082
- failed: string[];
5152
+ /** @constant */
5153
+ ok: true;
4083
5154
  };
4084
5155
  };
4085
5156
  };
@@ -4121,7 +5192,7 @@ export interface operations {
4121
5192
  };
4122
5193
  };
4123
5194
  };
4124
- addToTeams: {
5195
+ teamsCertificate: {
4125
5196
  parameters: {
4126
5197
  query?: never;
4127
5198
  header?: never;
@@ -4131,14 +5202,7 @@ export interface operations {
4131
5202
  };
4132
5203
  cookie?: never;
4133
5204
  };
4134
- requestBody: {
4135
- content: {
4136
- "application/json": {
4137
- displayName: string;
4138
- by: string;
4139
- };
4140
- };
4141
- };
5205
+ requestBody?: never;
4142
5206
  responses: {
4143
5207
  /** @description OK */
4144
5208
  200: {
@@ -4146,10 +5210,7 @@ export interface operations {
4146
5210
  [name: string]: unknown;
4147
5211
  };
4148
5212
  content: {
4149
- "application/json": {
4150
- steps: components["schemas"]["AddStep"][];
4151
- bot: components["schemas"]["TeamsBotRecord"];
4152
- };
5213
+ "application/x-pem-file": string;
4153
5214
  };
4154
5215
  };
4155
5216
  /** @description Refused */
@@ -4190,7 +5251,7 @@ export interface operations {
4190
5251
  };
4191
5252
  };
4192
5253
  };
4193
- startTeamsPublish: {
5254
+ newTeamsCertificate: {
4194
5255
  parameters: {
4195
5256
  query?: never;
4196
5257
  header?: never;
@@ -4203,11 +5264,7 @@ export interface operations {
4203
5264
  requestBody: {
4204
5265
  content: {
4205
5266
  "application/json": {
4206
- /**
4207
- * Format: uri
4208
- * @description The admin app's own callback page: https, or http://localhost while developing
4209
- */
4210
- redirectUri: string;
5267
+ by: string;
4211
5268
  };
4212
5269
  };
4213
5270
  };
@@ -4218,7 +5275,11 @@ export interface operations {
4218
5275
  [name: string]: unknown;
4219
5276
  };
4220
5277
  content: {
4221
- "application/json": components["schemas"]["SignIn"];
5278
+ "application/json": {
5279
+ bot: components["schemas"]["TeamsBotRecord"];
5280
+ command: string | null;
5281
+ certificate: string;
5282
+ };
4222
5283
  };
4223
5284
  };
4224
5285
  /** @description Refused */
@@ -4259,14 +5320,9 @@ export interface operations {
4259
5320
  };
4260
5321
  };
4261
5322
  };
4262
- teamsTargets: {
5323
+ teamsPackage: {
4263
5324
  parameters: {
4264
- query?: {
4265
- /** @description team or person */
4266
- kind?: string;
4267
- /** @description what the admin typed */
4268
- q?: string;
4269
- };
5325
+ query?: never;
4270
5326
  header?: never;
4271
5327
  path: {
4272
5328
  org: string;
@@ -4282,7 +5338,7 @@ export interface operations {
4282
5338
  [name: string]: unknown;
4283
5339
  };
4284
5340
  content: {
4285
- "application/json": components["schemas"]["InstallTarget"][];
5341
+ "application/zip": string;
4286
5342
  };
4287
5343
  };
4288
5344
  /** @description Refused */
@@ -4323,7 +5379,7 @@ export interface operations {
4323
5379
  };
4324
5380
  };
4325
5381
  };
4326
- installTeamsBot: {
5382
+ activateTeamsCertificate: {
4327
5383
  parameters: {
4328
5384
  query?: never;
4329
5385
  header?: never;
@@ -4336,9 +5392,6 @@ export interface operations {
4336
5392
  requestBody: {
4337
5393
  content: {
4338
5394
  "application/json": {
4339
- /** @enum {string} */
4340
- kind: "team" | "chat" | "person";
4341
- id: string;
4342
5395
  by: string;
4343
5396
  };
4344
5397
  };
@@ -4350,10 +5403,7 @@ export interface operations {
4350
5403
  [name: string]: unknown;
4351
5404
  };
4352
5405
  content: {
4353
- "application/json": {
4354
- /** @enum {string} */
4355
- result: "added" | "already";
4356
- };
5406
+ "application/json": components["schemas"]["TeamsBotRecord"];
4357
5407
  };
4358
5408
  };
4359
5409
  /** @description Refused */
@@ -4394,7 +5444,7 @@ export interface operations {
4394
5444
  };
4395
5445
  };
4396
5446
  };
4397
- teamsKit: {
5447
+ teamsTrigger: {
4398
5448
  parameters: {
4399
5449
  query?: never;
4400
5450
  header?: never;
@@ -4412,7 +5462,7 @@ export interface operations {
4412
5462
  [name: string]: unknown;
4413
5463
  };
4414
5464
  content: {
4415
- "text/plain": string;
5465
+ "application/json": components["schemas"]["TeamsTrigger"];
4416
5466
  };
4417
5467
  };
4418
5468
  /** @description Refused */
@@ -4453,7 +5503,7 @@ export interface operations {
4453
5503
  };
4454
5504
  };
4455
5505
  };
4456
- checkTeamsBot: {
5506
+ setTeamsTrigger: {
4457
5507
  parameters: {
4458
5508
  query?: never;
4459
5509
  header?: never;
@@ -4463,7 +5513,43 @@ export interface operations {
4463
5513
  };
4464
5514
  cookie?: never;
4465
5515
  };
4466
- requestBody?: never;
5516
+ requestBody: {
5517
+ content: {
5518
+ "application/json": {
5519
+ enabled: boolean;
5520
+ /** @default claude-managed-agents */
5521
+ runner?: string;
5522
+ managedAgentId?: string;
5523
+ environmentId?: string;
5524
+ /** @default [] */
5525
+ vaultIds?: string[];
5526
+ budgetCents: number;
5527
+ /** @default 20 */
5528
+ maxRunsPerHour?: number;
5529
+ /** @default 500 */
5530
+ maxCentsPerDay?: number;
5531
+ /** @default 2 */
5532
+ maxConcurrent?: number;
5533
+ /**
5534
+ * @default mentions
5535
+ * @enum {string}
5536
+ */
5537
+ replyMode?: "mentions" | "all";
5538
+ /** @default [] */
5539
+ allowedTeams?: string[];
5540
+ /** @default [] */
5541
+ allowedPeople?: string[];
5542
+ /** @default {} */
5543
+ settings?: {
5544
+ [key: string]: unknown;
5545
+ };
5546
+ signingSecret?: string;
5547
+ /** @default false */
5548
+ anyoneInOrganization?: boolean;
5549
+ by: string;
5550
+ };
5551
+ };
5552
+ };
4467
5553
  responses: {
4468
5554
  /** @description OK */
4469
5555
  200: {
@@ -4471,7 +5557,7 @@ export interface operations {
4471
5557
  [name: string]: unknown;
4472
5558
  };
4473
5559
  content: {
4474
- "application/json": components["schemas"]["SignInCheck"];
5560
+ "application/json": components["schemas"]["TeamsTrigger"];
4475
5561
  };
4476
5562
  };
4477
5563
  /** @description Refused */
@@ -4512,9 +5598,12 @@ export interface operations {
4512
5598
  };
4513
5599
  };
4514
5600
  };
4515
- teamsTest: {
5601
+ teamsRuns: {
4516
5602
  parameters: {
4517
- query?: never;
5603
+ query?: {
5604
+ /** @description 1 to 200, default 20 */
5605
+ limit?: string;
5606
+ };
4518
5607
  header?: never;
4519
5608
  path: {
4520
5609
  org: string;
@@ -4522,14 +5611,7 @@ export interface operations {
4522
5611
  };
4523
5612
  cookie?: never;
4524
5613
  };
4525
- requestBody: {
4526
- content: {
4527
- "application/json": {
4528
- conversationId: string;
4529
- by: string;
4530
- };
4531
- };
4532
- };
5614
+ requestBody?: never;
4533
5615
  responses: {
4534
5616
  /** @description OK */
4535
5617
  200: {
@@ -4537,10 +5619,7 @@ export interface operations {
4537
5619
  [name: string]: unknown;
4538
5620
  };
4539
5621
  content: {
4540
- "application/json": {
4541
- /** @constant */
4542
- ok: true;
4543
- };
5622
+ "application/json": components["schemas"]["TeamsRun"][];
4544
5623
  };
4545
5624
  };
4546
5625
  /** @description Refused */
@@ -4581,13 +5660,12 @@ export interface operations {
4581
5660
  };
4582
5661
  };
4583
5662
  };
4584
- teamsCertificate: {
5663
+ eventSubscriptions: {
4585
5664
  parameters: {
4586
5665
  query?: never;
4587
5666
  header?: never;
4588
5667
  path: {
4589
5668
  org: string;
4590
- agent: string;
4591
5669
  };
4592
5670
  cookie?: never;
4593
5671
  };
@@ -4599,7 +5677,7 @@ export interface operations {
4599
5677
  [name: string]: unknown;
4600
5678
  };
4601
5679
  content: {
4602
- "application/x-pem-file": string;
5680
+ "application/json": components["schemas"]["EventSubscription"][];
4603
5681
  };
4604
5682
  };
4605
5683
  /** @description Refused */
@@ -4640,19 +5718,27 @@ export interface operations {
4640
5718
  };
4641
5719
  };
4642
5720
  };
4643
- newTeamsCertificate: {
5721
+ subscribeEvents: {
4644
5722
  parameters: {
4645
5723
  query?: never;
4646
5724
  header?: never;
4647
5725
  path: {
4648
5726
  org: string;
4649
- agent: string;
4650
5727
  };
4651
5728
  cookie?: never;
4652
5729
  };
4653
5730
  requestBody: {
4654
5731
  content: {
4655
5732
  "application/json": {
5733
+ app: string;
5734
+ /** @enum {string} */
5735
+ source: "webhook" | "poll";
5736
+ /** @default */
5737
+ filter?: string;
5738
+ /** @default 300 */
5739
+ intervalSeconds?: number;
5740
+ /** @default false */
5741
+ register?: boolean;
4656
5742
  by: string;
4657
5743
  };
4658
5744
  };
@@ -4664,11 +5750,7 @@ export interface operations {
4664
5750
  [name: string]: unknown;
4665
5751
  };
4666
5752
  content: {
4667
- "application/json": {
4668
- bot: components["schemas"]["TeamsBotRecord"];
4669
- command: string | null;
4670
- certificate: string;
4671
- };
5753
+ "application/json": components["schemas"]["EventSubscribed"];
4672
5754
  };
4673
5755
  };
4674
5756
  /** @description Refused */
@@ -4709,17 +5791,23 @@ export interface operations {
4709
5791
  };
4710
5792
  };
4711
5793
  };
4712
- teamsPackage: {
5794
+ rotateEventSecret: {
4713
5795
  parameters: {
4714
5796
  query?: never;
4715
5797
  header?: never;
4716
5798
  path: {
4717
5799
  org: string;
4718
- agent: string;
5800
+ subscription: string;
4719
5801
  };
4720
5802
  cookie?: never;
4721
5803
  };
4722
- requestBody?: never;
5804
+ requestBody: {
5805
+ content: {
5806
+ "application/json": {
5807
+ by: string;
5808
+ };
5809
+ };
5810
+ };
4723
5811
  responses: {
4724
5812
  /** @description OK */
4725
5813
  200: {
@@ -4727,7 +5815,10 @@ export interface operations {
4727
5815
  [name: string]: unknown;
4728
5816
  };
4729
5817
  content: {
4730
- "application/zip": string;
5818
+ "application/json": {
5819
+ subscription: components["schemas"]["EventSubscription"];
5820
+ secret: string;
5821
+ };
4731
5822
  };
4732
5823
  };
4733
5824
  /** @description Refused */
@@ -4768,13 +5859,13 @@ export interface operations {
4768
5859
  };
4769
5860
  };
4770
5861
  };
4771
- activateTeamsCertificate: {
5862
+ unsubscribeEvents: {
4772
5863
  parameters: {
4773
5864
  query?: never;
4774
5865
  header?: never;
4775
5866
  path: {
4776
5867
  org: string;
4777
- agent: string;
5868
+ subscription: string;
4778
5869
  };
4779
5870
  cookie?: never;
4780
5871
  };
@@ -4787,13 +5878,11 @@ export interface operations {
4787
5878
  };
4788
5879
  responses: {
4789
5880
  /** @description OK */
4790
- 200: {
5881
+ 204: {
4791
5882
  headers: {
4792
5883
  [name: string]: unknown;
4793
5884
  };
4794
- content: {
4795
- "application/json": components["schemas"]["TeamsBotRecord"];
4796
- };
5885
+ content?: never;
4797
5886
  };
4798
5887
  /** @description Refused */
4799
5888
  400: {
@@ -4833,7 +5922,7 @@ export interface operations {
4833
5922
  };
4834
5923
  };
4835
5924
  };
4836
- teamsTrigger: {
5925
+ eventTriggers: {
4837
5926
  parameters: {
4838
5927
  query?: never;
4839
5928
  header?: never;
@@ -4851,7 +5940,7 @@ export interface operations {
4851
5940
  [name: string]: unknown;
4852
5941
  };
4853
5942
  content: {
4854
- "application/json": components["schemas"]["TeamsTrigger"];
5943
+ "application/json": components["schemas"]["EventTrigger"][];
4855
5944
  };
4856
5945
  };
4857
5946
  /** @description Refused */
@@ -4892,13 +5981,14 @@ export interface operations {
4892
5981
  };
4893
5982
  };
4894
5983
  };
4895
- setTeamsTrigger: {
5984
+ setEventTrigger: {
4896
5985
  parameters: {
4897
5986
  query?: never;
4898
5987
  header?: never;
4899
5988
  path: {
4900
5989
  org: string;
4901
5990
  agent: string;
5991
+ app: string;
4902
5992
  };
4903
5993
  cookie?: never;
4904
5994
  };
@@ -4906,12 +5996,27 @@ export interface operations {
4906
5996
  content: {
4907
5997
  "application/json": {
4908
5998
  enabled: boolean;
5999
+ eventTypes: string[];
6000
+ /** @default [] */
6001
+ conditions?: ({
6002
+ field: string;
6003
+ in: string[];
6004
+ } | {
6005
+ field: string;
6006
+ notIn: string[];
6007
+ })[];
6008
+ prompt: string;
4909
6009
  /** @default claude-managed-agents */
4910
6010
  runner?: string;
4911
6011
  managedAgentId?: string;
4912
6012
  environmentId?: string;
4913
6013
  /** @default [] */
4914
6014
  vaultIds?: string[];
6015
+ /** @default {} */
6016
+ settings?: {
6017
+ [key: string]: unknown;
6018
+ };
6019
+ signingSecret?: string;
4915
6020
  budgetCents: number;
4916
6021
  /** @default 20 */
4917
6022
  maxRunsPerHour?: number;
@@ -4919,22 +6024,6 @@ export interface operations {
4919
6024
  maxCentsPerDay?: number;
4920
6025
  /** @default 2 */
4921
6026
  maxConcurrent?: number;
4922
- /**
4923
- * @default mentions
4924
- * @enum {string}
4925
- */
4926
- replyMode?: "mentions" | "all";
4927
- /** @default [] */
4928
- allowedTeams?: string[];
4929
- /** @default [] */
4930
- allowedPeople?: string[];
4931
- /** @default {} */
4932
- settings?: {
4933
- [key: string]: unknown;
4934
- };
4935
- signingSecret?: string;
4936
- /** @default false */
4937
- anyoneInOrganization?: boolean;
4938
6027
  by: string;
4939
6028
  };
4940
6029
  };
@@ -4946,7 +6035,7 @@ export interface operations {
4946
6035
  [name: string]: unknown;
4947
6036
  };
4948
6037
  content: {
4949
- "application/json": components["schemas"]["TeamsTrigger"];
6038
+ "application/json": components["schemas"]["EventTrigger"];
4950
6039
  };
4951
6040
  };
4952
6041
  /** @description Refused */
@@ -4987,7 +6076,71 @@ export interface operations {
4987
6076
  };
4988
6077
  };
4989
6078
  };
4990
- teamsRuns: {
6079
+ removeEventTrigger: {
6080
+ parameters: {
6081
+ query?: never;
6082
+ header?: never;
6083
+ path: {
6084
+ org: string;
6085
+ agent: string;
6086
+ app: string;
6087
+ };
6088
+ cookie?: never;
6089
+ };
6090
+ requestBody: {
6091
+ content: {
6092
+ "application/json": {
6093
+ by: string;
6094
+ };
6095
+ };
6096
+ };
6097
+ responses: {
6098
+ /** @description OK */
6099
+ 204: {
6100
+ headers: {
6101
+ [name: string]: unknown;
6102
+ };
6103
+ content?: never;
6104
+ };
6105
+ /** @description Refused */
6106
+ 400: {
6107
+ headers: {
6108
+ [name: string]: unknown;
6109
+ };
6110
+ content: {
6111
+ "application/json": components["schemas"]["Error"];
6112
+ };
6113
+ };
6114
+ /** @description Refused */
6115
+ 401: {
6116
+ headers: {
6117
+ [name: string]: unknown;
6118
+ };
6119
+ content: {
6120
+ "application/json": components["schemas"]["Error"];
6121
+ };
6122
+ };
6123
+ /** @description Refused */
6124
+ 404: {
6125
+ headers: {
6126
+ [name: string]: unknown;
6127
+ };
6128
+ content: {
6129
+ "application/json": components["schemas"]["Error"];
6130
+ };
6131
+ };
6132
+ /** @description Refused */
6133
+ 422: {
6134
+ headers: {
6135
+ [name: string]: unknown;
6136
+ };
6137
+ content: {
6138
+ "application/json": components["schemas"]["Error"];
6139
+ };
6140
+ };
6141
+ };
6142
+ };
6143
+ eventRuns: {
4991
6144
  parameters: {
4992
6145
  query?: {
4993
6146
  /** @description 1 to 200, default 20 */
@@ -5008,7 +6161,7 @@ export interface operations {
5008
6161
  [name: string]: unknown;
5009
6162
  };
5010
6163
  content: {
5011
- "application/json": components["schemas"]["TeamsRun"][];
6164
+ "application/json": components["schemas"]["EventRun"][];
5012
6165
  };
5013
6166
  };
5014
6167
  /** @description Refused */