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

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,419 @@ 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
+ since?: string;
1703
+ }[];
1704
+ };
1705
+ };
1706
+ };
1707
+ ConnectResult: {
1708
+ connection: components["schemas"]["Connection"];
1709
+ checks: components["schemas"]["Check"][];
1710
+ };
1711
+ Error: {
1712
+ error: string;
1713
+ };
1714
+ EventRun: {
1715
+ id: string;
1716
+ agentId: string;
1717
+ triggerId: string;
1718
+ connectorId: string;
1719
+ eventType: string;
1720
+ deliveryId: string;
1721
+ runner: string;
1722
+ sessionId: string | null;
1723
+ /** @enum {string} */
1724
+ state: "starting" | "running" | "ended" | "failed";
1725
+ error: string | null;
1726
+ costCents: number | null;
1727
+ /** @description ISO 8601, UTC */
1728
+ startedAt: string;
1729
+ finishedAt: string | null;
1730
+ };
1731
+ EventSubscribed: {
1732
+ subscription: components["schemas"]["EventSubscription"];
1733
+ secret: string | null;
1734
+ setup: {
1735
+ title: string;
1736
+ body: string;
1737
+ link?: {
1738
+ label: string;
1739
+ /** Format: uri */
1740
+ href: string;
1320
1741
  };
1321
1742
  copy?: string[];
1322
1743
  /** @enum {string} */
@@ -1342,58 +1763,245 @@ export interface components {
1342
1763
  field: string;
1343
1764
  value: string;
1344
1765
  };
1345
- apps: string[];
1346
1766
  }[];
1347
- revoke: string;
1348
- approval: boolean;
1767
+ registration: {
1768
+ ok: boolean;
1769
+ message: string;
1770
+ } | null;
1349
1771
  };
1350
- ProviderConnection: {
1772
+ EventSubscription: {
1351
1773
  id: string;
1352
- organizationId: string;
1353
- provider: string;
1774
+ connectorId: string;
1354
1775
  /** @enum {string} */
1355
- status: "pending" | "connected" | "needs_reconnect";
1356
- config: {
1357
- [key: string]: string;
1776
+ source: "webhook" | "poll";
1777
+ filter: string;
1778
+ intervalSeconds: number;
1779
+ cursor: string | null;
1780
+ polledAt: string | null;
1781
+ lastError: string | null;
1782
+ registered: string | null;
1783
+ url: string | null;
1784
+ createdBy: string;
1785
+ /** @description ISO 8601, UTC */
1786
+ createdAt: string;
1787
+ };
1788
+ EventTrigger: {
1789
+ id: string;
1790
+ agentId: string;
1791
+ connectorId: string;
1792
+ enabled: boolean;
1793
+ eventTypes: string[];
1794
+ conditions: ({
1795
+ field: string;
1796
+ in: string[];
1797
+ } | {
1798
+ field: string;
1799
+ notIn: string[];
1800
+ })[];
1801
+ prompt: string;
1802
+ runner: string;
1803
+ settings: {
1804
+ [key: string]: unknown;
1358
1805
  };
1359
- accountLabel: string | null;
1360
- connectedBy: string | null;
1806
+ hasSigningSecret: boolean;
1807
+ managedAgentId: string | null;
1808
+ environmentId: string | null;
1809
+ vaultIds: string[];
1810
+ budgetCents: number;
1811
+ maxRunsPerHour: number;
1812
+ maxCentsPerDay: number;
1813
+ maxConcurrent: number;
1814
+ updatedBy: string | null;
1361
1815
  /** @description ISO 8601, UTC */
1362
- connectedAt: string;
1816
+ updatedAt: string;
1817
+ };
1818
+ Grant: {
1819
+ agentId: string;
1820
+ connectorId: string;
1821
+ capabilities: string[];
1822
+ limits: components["schemas"]["Limits"];
1363
1823
  /** @description ISO 8601, UTC */
1364
- checkedAt: string;
1365
- certificate: components["schemas"]["CertificateInfo"] | null;
1366
- nextCertificate: components["schemas"]["CertificateInfo"] | null;
1367
- apps: string[];
1824
+ updatedAt: string;
1368
1825
  };
1369
- SignIn: {
1370
- url: string;
1371
- nonce: string;
1826
+ InstallTarget: {
1827
+ id: string;
1828
+ name: string;
1829
+ detail: string | null;
1372
1830
  };
1373
- SignInCheck: {
1374
- /** @constant */
1375
- ok: true;
1376
- } | {
1377
- /** @constant */
1378
- ok: false;
1379
- error: string;
1831
+ Limits: {
1832
+ [key: string]: string[] | string | {
1833
+ [key: string]: string;
1834
+ };
1380
1835
  };
1381
- SiteAccess: {
1382
- site: string;
1836
+ LiveCheck: {
1383
1837
  /** @enum {string} */
1384
- status: "granted" | "not_granted" | "not_found" | "failed";
1385
- name: string | null;
1838
+ state: "done" | "failing" | "todo";
1386
1839
  message: string;
1387
1840
  };
1388
- TeamsBot: {
1841
+ NewAgent: {
1389
1842
  id: string;
1390
1843
  organizationId: string;
1391
- agentId: string;
1392
- botAppId: string | null;
1393
- teamsAppId: string;
1394
- tenantId: string;
1395
- displayName: string;
1396
- manifestVersion: number;
1844
+ name: string;
1845
+ /** @enum {string} */
1846
+ status: "active" | "disabled";
1847
+ createdBy: string | null;
1848
+ /** @description ISO 8601, UTC */
1849
+ createdAt: string;
1850
+ };
1851
+ Organization: {
1852
+ /** Format: uuid */
1853
+ id: string;
1854
+ name: string | null;
1855
+ /** @description ISO 8601, UTC */
1856
+ createdAt: string;
1857
+ };
1858
+ Provider: {
1859
+ id: string;
1860
+ name: string;
1861
+ logo: string;
1862
+ identity: string;
1863
+ sharedIdentity?: string;
1864
+ accountKey: string;
1865
+ /** @default [] */
1866
+ principalKeys: string[];
1867
+ certificate: boolean;
1868
+ setup: {
1869
+ title: string;
1870
+ body: string;
1871
+ link?: {
1872
+ label: string;
1873
+ /** Format: uri */
1874
+ href: string;
1875
+ };
1876
+ copy?: string[];
1877
+ /** @enum {string} */
1878
+ shell?: "bash" | "powershell";
1879
+ permissions?: boolean;
1880
+ certificate?: boolean;
1881
+ click?: string[];
1882
+ /** @constant */
1883
+ clickUnavailable?: true;
1884
+ /** @enum {string} */
1885
+ siteRole?: "read" | "write";
1886
+ agentCheck?: boolean;
1887
+ confirm?: string;
1888
+ live?: string;
1889
+ settings?: {
1890
+ id: string;
1891
+ label: string;
1892
+ help?: string;
1893
+ placeholder?: string;
1894
+ pattern: string;
1895
+ }[];
1896
+ option?: {
1897
+ field: string;
1898
+ value: string;
1899
+ };
1900
+ }[];
1901
+ fields: {
1902
+ id: string;
1903
+ label: string;
1904
+ help?: string;
1905
+ placeholder?: string;
1906
+ secret: boolean;
1907
+ options?: {
1908
+ value: string;
1909
+ label: string;
1910
+ description: string;
1911
+ scopes?: string[];
1912
+ }[];
1913
+ requires?: {
1914
+ field: string;
1915
+ value: string;
1916
+ };
1917
+ /** @default false */
1918
+ optional: boolean;
1919
+ }[];
1920
+ /** @default [] */
1921
+ addAgent: {
1922
+ title: string;
1923
+ body: string;
1924
+ link?: {
1925
+ label: string;
1926
+ /** Format: uri */
1927
+ href: string;
1928
+ };
1929
+ copy?: string[];
1930
+ /** @enum {string} */
1931
+ shell?: "bash" | "powershell";
1932
+ permissions?: boolean;
1933
+ certificate?: boolean;
1934
+ click?: string[];
1935
+ /** @constant */
1936
+ clickUnavailable?: true;
1937
+ /** @enum {string} */
1938
+ siteRole?: "read" | "write";
1939
+ agentCheck?: boolean;
1940
+ confirm?: string;
1941
+ live?: string;
1942
+ settings?: {
1943
+ id: string;
1944
+ label: string;
1945
+ help?: string;
1946
+ placeholder?: string;
1947
+ pattern: string;
1948
+ }[];
1949
+ option?: {
1950
+ field: string;
1951
+ value: string;
1952
+ };
1953
+ apps: string[];
1954
+ }[];
1955
+ revoke: string;
1956
+ approval: boolean;
1957
+ };
1958
+ ProviderConnection: {
1959
+ id: string;
1960
+ organizationId: string;
1961
+ provider: string;
1962
+ /** @enum {string} */
1963
+ status: "pending" | "connected" | "needs_reconnect";
1964
+ config: {
1965
+ [key: string]: string;
1966
+ };
1967
+ accountLabel: string | null;
1968
+ connectedBy: string | null;
1969
+ /** @description ISO 8601, UTC */
1970
+ connectedAt: string;
1971
+ /** @description ISO 8601, UTC */
1972
+ checkedAt: string;
1973
+ certificate: components["schemas"]["CertificateInfo"] | null;
1974
+ nextCertificate: components["schemas"]["CertificateInfo"] | null;
1975
+ apps: string[];
1976
+ };
1977
+ SignIn: {
1978
+ url: string;
1979
+ nonce: string;
1980
+ };
1981
+ SignInCheck: {
1982
+ /** @constant */
1983
+ ok: true;
1984
+ } | {
1985
+ /** @constant */
1986
+ ok: false;
1987
+ error: string;
1988
+ };
1989
+ SiteAccess: {
1990
+ site: string;
1991
+ /** @enum {string} */
1992
+ status: "granted" | "not_granted" | "not_found" | "failed";
1993
+ name: string | null;
1994
+ message: string;
1995
+ };
1996
+ TeamsBot: {
1997
+ id: string;
1998
+ organizationId: string;
1999
+ agentId: string;
2000
+ botAppId: string | null;
2001
+ teamsAppId: string;
2002
+ tenantId: string;
2003
+ displayName: string;
2004
+ manifestVersion: number;
1397
2005
  /** @enum {string} */
1398
2006
  status: "awaiting_setup" | "connected" | "needs_reconnect";
1399
2007
  createdBy: string | null;
@@ -1470,33 +2078,329 @@ export interface components {
1470
2078
  settings: {
1471
2079
  [key: string]: unknown;
1472
2080
  };
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;
2081
+ hasSigningSecret: boolean;
2082
+ managedAgentId: string | null;
2083
+ environmentId: string | null;
2084
+ vaultIds: string[];
2085
+ budgetCents: number;
2086
+ maxRunsPerHour: number;
2087
+ maxCentsPerDay: number;
2088
+ maxConcurrent: number;
2089
+ /** @enum {string} */
2090
+ replyMode: "mentions" | "all";
2091
+ allowedTeams: string[];
2092
+ allowedPeople: string[];
2093
+ anyoneInOrganization: boolean;
2094
+ updatedBy: string | null;
2095
+ /** @description ISO 8601, UTC */
2096
+ updatedAt: string;
2097
+ };
2098
+ };
2099
+ responses: never;
2100
+ parameters: never;
2101
+ requestBodies: never;
2102
+ headers: never;
2103
+ pathItems: never;
2104
+ }
2105
+ export type $defs = Record<string, never>;
2106
+ export interface operations {
2107
+ listOrganizations: {
2108
+ parameters: {
2109
+ query?: never;
2110
+ header?: never;
2111
+ path?: never;
2112
+ cookie?: never;
2113
+ };
2114
+ requestBody?: never;
2115
+ responses: {
2116
+ /** @description OK */
2117
+ 200: {
2118
+ headers: {
2119
+ [name: string]: unknown;
2120
+ };
2121
+ content: {
2122
+ "application/json": components["schemas"]["Organization"][];
2123
+ };
2124
+ };
2125
+ /** @description Refused */
2126
+ 400: {
2127
+ headers: {
2128
+ [name: string]: unknown;
2129
+ };
2130
+ content: {
2131
+ "application/json": components["schemas"]["Error"];
2132
+ };
2133
+ };
2134
+ /** @description Refused */
2135
+ 401: {
2136
+ headers: {
2137
+ [name: string]: unknown;
2138
+ };
2139
+ content: {
2140
+ "application/json": components["schemas"]["Error"];
2141
+ };
2142
+ };
2143
+ /** @description Refused */
2144
+ 404: {
2145
+ headers: {
2146
+ [name: string]: unknown;
2147
+ };
2148
+ content: {
2149
+ "application/json": components["schemas"]["Error"];
2150
+ };
2151
+ };
2152
+ /** @description Refused */
2153
+ 422: {
2154
+ headers: {
2155
+ [name: string]: unknown;
2156
+ };
2157
+ content: {
2158
+ "application/json": components["schemas"]["Error"];
2159
+ };
2160
+ };
2161
+ };
2162
+ };
2163
+ createOrganization: {
2164
+ parameters: {
2165
+ query?: never;
2166
+ header?: never;
2167
+ path?: never;
2168
+ cookie?: never;
2169
+ };
2170
+ requestBody: {
2171
+ content: {
2172
+ "application/json": {
2173
+ name: string;
2174
+ };
2175
+ };
2176
+ };
2177
+ responses: {
2178
+ /** @description OK */
2179
+ 201: {
2180
+ headers: {
2181
+ [name: string]: unknown;
2182
+ };
2183
+ content: {
2184
+ "application/json": components["schemas"]["Organization"];
2185
+ };
2186
+ };
2187
+ /** @description Refused */
2188
+ 400: {
2189
+ headers: {
2190
+ [name: string]: unknown;
2191
+ };
2192
+ content: {
2193
+ "application/json": components["schemas"]["Error"];
2194
+ };
2195
+ };
2196
+ /** @description Refused */
2197
+ 401: {
2198
+ headers: {
2199
+ [name: string]: unknown;
2200
+ };
2201
+ content: {
2202
+ "application/json": components["schemas"]["Error"];
2203
+ };
2204
+ };
2205
+ /** @description Refused */
2206
+ 404: {
2207
+ headers: {
2208
+ [name: string]: unknown;
2209
+ };
2210
+ content: {
2211
+ "application/json": components["schemas"]["Error"];
2212
+ };
2213
+ };
2214
+ /** @description Refused */
2215
+ 422: {
2216
+ headers: {
2217
+ [name: string]: unknown;
2218
+ };
2219
+ content: {
2220
+ "application/json": components["schemas"]["Error"];
2221
+ };
2222
+ };
2223
+ };
2224
+ };
2225
+ getOrganization: {
2226
+ parameters: {
2227
+ query?: never;
2228
+ header?: never;
2229
+ path: {
2230
+ org: string;
2231
+ };
2232
+ cookie?: never;
2233
+ };
2234
+ requestBody?: never;
2235
+ responses: {
2236
+ /** @description OK */
2237
+ 200: {
2238
+ headers: {
2239
+ [name: string]: unknown;
2240
+ };
2241
+ content: {
2242
+ "application/json": components["schemas"]["Organization"];
2243
+ };
2244
+ };
2245
+ /** @description Refused */
2246
+ 400: {
2247
+ headers: {
2248
+ [name: string]: unknown;
2249
+ };
2250
+ content: {
2251
+ "application/json": components["schemas"]["Error"];
2252
+ };
2253
+ };
2254
+ /** @description Refused */
2255
+ 401: {
2256
+ headers: {
2257
+ [name: string]: unknown;
2258
+ };
2259
+ content: {
2260
+ "application/json": components["schemas"]["Error"];
2261
+ };
2262
+ };
2263
+ /** @description Refused */
2264
+ 404: {
2265
+ headers: {
2266
+ [name: string]: unknown;
2267
+ };
2268
+ content: {
2269
+ "application/json": components["schemas"]["Error"];
2270
+ };
2271
+ };
2272
+ /** @description Refused */
2273
+ 422: {
2274
+ headers: {
2275
+ [name: string]: unknown;
2276
+ };
2277
+ content: {
2278
+ "application/json": components["schemas"]["Error"];
2279
+ };
2280
+ };
2281
+ };
2282
+ };
2283
+ ensureOrganization: {
2284
+ parameters: {
2285
+ query?: never;
2286
+ header?: never;
2287
+ path: {
2288
+ org: string;
2289
+ };
2290
+ cookie?: never;
2291
+ };
2292
+ requestBody: {
2293
+ content: {
2294
+ "application/json": {
2295
+ name?: string;
2296
+ };
2297
+ };
2298
+ };
2299
+ responses: {
2300
+ /** @description OK */
2301
+ 200: {
2302
+ headers: {
2303
+ [name: string]: unknown;
2304
+ };
2305
+ content: {
2306
+ "application/json": components["schemas"]["Organization"];
2307
+ };
2308
+ };
2309
+ /** @description Refused */
2310
+ 400: {
2311
+ headers: {
2312
+ [name: string]: unknown;
2313
+ };
2314
+ content: {
2315
+ "application/json": components["schemas"]["Error"];
2316
+ };
2317
+ };
2318
+ /** @description Refused */
2319
+ 401: {
2320
+ headers: {
2321
+ [name: string]: unknown;
2322
+ };
2323
+ content: {
2324
+ "application/json": components["schemas"]["Error"];
2325
+ };
2326
+ };
2327
+ /** @description Refused */
2328
+ 404: {
2329
+ headers: {
2330
+ [name: string]: unknown;
2331
+ };
2332
+ content: {
2333
+ "application/json": components["schemas"]["Error"];
2334
+ };
2335
+ };
2336
+ /** @description Refused */
2337
+ 422: {
2338
+ headers: {
2339
+ [name: string]: unknown;
2340
+ };
2341
+ content: {
2342
+ "application/json": components["schemas"]["Error"];
2343
+ };
2344
+ };
2345
+ };
2346
+ };
2347
+ branding: {
2348
+ parameters: {
2349
+ query?: never;
2350
+ header?: never;
2351
+ path?: never;
2352
+ cookie?: never;
2353
+ };
2354
+ requestBody?: never;
2355
+ responses: {
2356
+ /** @description OK */
2357
+ 200: {
2358
+ headers: {
2359
+ [name: string]: unknown;
2360
+ };
2361
+ content: {
2362
+ "application/json": components["schemas"]["Branding"];
2363
+ };
2364
+ };
2365
+ /** @description Refused */
2366
+ 400: {
2367
+ headers: {
2368
+ [name: string]: unknown;
2369
+ };
2370
+ content: {
2371
+ "application/json": components["schemas"]["Error"];
2372
+ };
2373
+ };
2374
+ /** @description Refused */
2375
+ 401: {
2376
+ headers: {
2377
+ [name: string]: unknown;
2378
+ };
2379
+ content: {
2380
+ "application/json": components["schemas"]["Error"];
2381
+ };
2382
+ };
2383
+ /** @description Refused */
2384
+ 404: {
2385
+ headers: {
2386
+ [name: string]: unknown;
2387
+ };
2388
+ content: {
2389
+ "application/json": components["schemas"]["Error"];
2390
+ };
2391
+ };
2392
+ /** @description Refused */
2393
+ 422: {
2394
+ headers: {
2395
+ [name: string]: unknown;
2396
+ };
2397
+ content: {
2398
+ "application/json": components["schemas"]["Error"];
2399
+ };
2400
+ };
1489
2401
  };
1490
2402
  };
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: {
2403
+ connectors: {
1500
2404
  parameters: {
1501
2405
  query?: never;
1502
2406
  header?: never;
@@ -1511,7 +2415,7 @@ export interface operations {
1511
2415
  [name: string]: unknown;
1512
2416
  };
1513
2417
  content: {
1514
- "application/json": components["schemas"]["Organization"][];
2418
+ "application/json": components["schemas"]["Connector"][];
1515
2419
  };
1516
2420
  };
1517
2421
  /** @description Refused */
@@ -1552,28 +2456,80 @@ export interface operations {
1552
2456
  };
1553
2457
  };
1554
2458
  };
1555
- createOrganization: {
2459
+ providers: {
1556
2460
  parameters: {
1557
2461
  query?: never;
1558
2462
  header?: never;
1559
2463
  path?: never;
1560
2464
  cookie?: never;
1561
2465
  };
1562
- requestBody: {
1563
- content: {
1564
- "application/json": {
1565
- name: string;
2466
+ requestBody?: never;
2467
+ responses: {
2468
+ /** @description OK */
2469
+ 200: {
2470
+ headers: {
2471
+ [name: string]: unknown;
2472
+ };
2473
+ content: {
2474
+ "application/json": components["schemas"]["Provider"][];
2475
+ };
2476
+ };
2477
+ /** @description Refused */
2478
+ 400: {
2479
+ headers: {
2480
+ [name: string]: unknown;
2481
+ };
2482
+ content: {
2483
+ "application/json": components["schemas"]["Error"];
2484
+ };
2485
+ };
2486
+ /** @description Refused */
2487
+ 401: {
2488
+ headers: {
2489
+ [name: string]: unknown;
2490
+ };
2491
+ content: {
2492
+ "application/json": components["schemas"]["Error"];
2493
+ };
2494
+ };
2495
+ /** @description Refused */
2496
+ 404: {
2497
+ headers: {
2498
+ [name: string]: unknown;
2499
+ };
2500
+ content: {
2501
+ "application/json": components["schemas"]["Error"];
2502
+ };
2503
+ };
2504
+ /** @description Refused */
2505
+ 422: {
2506
+ headers: {
2507
+ [name: string]: unknown;
1566
2508
  };
2509
+ content: {
2510
+ "application/json": components["schemas"]["Error"];
2511
+ };
2512
+ };
2513
+ };
2514
+ };
2515
+ providerConnections: {
2516
+ parameters: {
2517
+ query?: never;
2518
+ header?: never;
2519
+ path: {
2520
+ org: string;
1567
2521
  };
2522
+ cookie?: never;
1568
2523
  };
2524
+ requestBody?: never;
1569
2525
  responses: {
1570
2526
  /** @description OK */
1571
- 201: {
2527
+ 200: {
1572
2528
  headers: {
1573
2529
  [name: string]: unknown;
1574
2530
  };
1575
2531
  content: {
1576
- "application/json": components["schemas"]["Organization"];
2532
+ "application/json": components["schemas"]["ProviderConnection"][];
1577
2533
  };
1578
2534
  };
1579
2535
  /** @description Refused */
@@ -1614,16 +2570,26 @@ export interface operations {
1614
2570
  };
1615
2571
  };
1616
2572
  };
1617
- getOrganization: {
2573
+ connectProvider: {
1618
2574
  parameters: {
1619
2575
  query?: never;
1620
2576
  header?: never;
1621
2577
  path: {
1622
2578
  org: string;
2579
+ provider: string;
1623
2580
  };
1624
2581
  cookie?: never;
1625
2582
  };
1626
- requestBody?: never;
2583
+ requestBody: {
2584
+ content: {
2585
+ "application/json": {
2586
+ fields: {
2587
+ [key: string]: string;
2588
+ };
2589
+ connectedBy: string;
2590
+ };
2591
+ };
2592
+ };
1627
2593
  responses: {
1628
2594
  /** @description OK */
1629
2595
  200: {
@@ -1631,7 +2597,7 @@ export interface operations {
1631
2597
  [name: string]: unknown;
1632
2598
  };
1633
2599
  content: {
1634
- "application/json": components["schemas"]["Organization"];
2600
+ "application/json": components["schemas"]["ProviderConnection"];
1635
2601
  };
1636
2602
  };
1637
2603
  /** @description Refused */
@@ -1672,22 +2638,80 @@ export interface operations {
1672
2638
  };
1673
2639
  };
1674
2640
  };
1675
- ensureOrganization: {
2641
+ disconnectProvider: {
1676
2642
  parameters: {
1677
2643
  query?: never;
1678
2644
  header?: never;
1679
2645
  path: {
1680
2646
  org: string;
2647
+ provider: string;
1681
2648
  };
1682
2649
  cookie?: never;
1683
2650
  };
1684
2651
  requestBody: {
1685
2652
  content: {
1686
2653
  "application/json": {
1687
- name?: string;
2654
+ by: string;
2655
+ };
2656
+ };
2657
+ };
2658
+ responses: {
2659
+ /** @description OK */
2660
+ 204: {
2661
+ headers: {
2662
+ [name: string]: unknown;
2663
+ };
2664
+ content?: never;
2665
+ };
2666
+ /** @description Refused */
2667
+ 400: {
2668
+ headers: {
2669
+ [name: string]: unknown;
2670
+ };
2671
+ content: {
2672
+ "application/json": components["schemas"]["Error"];
2673
+ };
2674
+ };
2675
+ /** @description Refused */
2676
+ 401: {
2677
+ headers: {
2678
+ [name: string]: unknown;
2679
+ };
2680
+ content: {
2681
+ "application/json": components["schemas"]["Error"];
2682
+ };
2683
+ };
2684
+ /** @description Refused */
2685
+ 404: {
2686
+ headers: {
2687
+ [name: string]: unknown;
2688
+ };
2689
+ content: {
2690
+ "application/json": components["schemas"]["Error"];
2691
+ };
2692
+ };
2693
+ /** @description Refused */
2694
+ 422: {
2695
+ headers: {
2696
+ [name: string]: unknown;
2697
+ };
2698
+ content: {
2699
+ "application/json": components["schemas"]["Error"];
1688
2700
  };
1689
2701
  };
1690
2702
  };
2703
+ };
2704
+ checkProvider: {
2705
+ parameters: {
2706
+ query?: never;
2707
+ header?: never;
2708
+ path: {
2709
+ org: string;
2710
+ provider: string;
2711
+ };
2712
+ cookie?: never;
2713
+ };
2714
+ requestBody?: never;
1691
2715
  responses: {
1692
2716
  /** @description OK */
1693
2717
  200: {
@@ -1695,7 +2719,7 @@ export interface operations {
1695
2719
  [name: string]: unknown;
1696
2720
  };
1697
2721
  content: {
1698
- "application/json": components["schemas"]["Organization"];
2722
+ "application/json": components["schemas"]["SignInCheck"];
1699
2723
  };
1700
2724
  };
1701
2725
  /** @description Refused */
@@ -1736,14 +2760,23 @@ export interface operations {
1736
2760
  };
1737
2761
  };
1738
2762
  };
1739
- branding: {
2763
+ newCertificate: {
1740
2764
  parameters: {
1741
2765
  query?: never;
1742
2766
  header?: never;
1743
- path?: never;
2767
+ path: {
2768
+ org: string;
2769
+ provider: string;
2770
+ };
1744
2771
  cookie?: never;
1745
2772
  };
1746
- requestBody?: never;
2773
+ requestBody: {
2774
+ content: {
2775
+ "application/json": {
2776
+ by: string;
2777
+ };
2778
+ };
2779
+ };
1747
2780
  responses: {
1748
2781
  /** @description OK */
1749
2782
  200: {
@@ -1751,7 +2784,7 @@ export interface operations {
1751
2784
  [name: string]: unknown;
1752
2785
  };
1753
2786
  content: {
1754
- "application/json": components["schemas"]["Branding"];
2787
+ "application/json": components["schemas"]["ProviderConnection"];
1755
2788
  };
1756
2789
  };
1757
2790
  /** @description Refused */
@@ -1792,14 +2825,23 @@ export interface operations {
1792
2825
  };
1793
2826
  };
1794
2827
  };
1795
- connectors: {
2828
+ activateCertificate: {
1796
2829
  parameters: {
1797
2830
  query?: never;
1798
2831
  header?: never;
1799
- path?: never;
2832
+ path: {
2833
+ org: string;
2834
+ provider: string;
2835
+ };
1800
2836
  cookie?: never;
1801
2837
  };
1802
- requestBody?: never;
2838
+ requestBody: {
2839
+ content: {
2840
+ "application/json": {
2841
+ by: string;
2842
+ };
2843
+ };
2844
+ };
1803
2845
  responses: {
1804
2846
  /** @description OK */
1805
2847
  200: {
@@ -1807,7 +2849,7 @@ export interface operations {
1807
2849
  [name: string]: unknown;
1808
2850
  };
1809
2851
  content: {
1810
- "application/json": components["schemas"]["Connector"][];
2852
+ "application/json": components["schemas"]["ProviderConnection"];
1811
2853
  };
1812
2854
  };
1813
2855
  /** @description Refused */
@@ -1847,15 +2889,27 @@ export interface operations {
1847
2889
  };
1848
2890
  };
1849
2891
  };
1850
- };
1851
- providers: {
1852
- parameters: {
1853
- query?: never;
1854
- header?: never;
1855
- path?: never;
1856
- cookie?: never;
1857
- };
1858
- requestBody?: never;
2892
+ };
2893
+ setProviderSettings: {
2894
+ parameters: {
2895
+ query?: never;
2896
+ header?: never;
2897
+ path: {
2898
+ org: string;
2899
+ provider: string;
2900
+ };
2901
+ cookie?: never;
2902
+ };
2903
+ requestBody: {
2904
+ content: {
2905
+ "application/json": {
2906
+ values: {
2907
+ [key: string]: string;
2908
+ };
2909
+ by: string;
2910
+ };
2911
+ };
2912
+ };
1859
2913
  responses: {
1860
2914
  /** @description OK */
1861
2915
  200: {
@@ -1863,7 +2917,11 @@ export interface operations {
1863
2917
  [name: string]: unknown;
1864
2918
  };
1865
2919
  content: {
1866
- "application/json": components["schemas"]["Provider"][];
2920
+ "application/json": {
2921
+ settings: {
2922
+ [key: string]: string;
2923
+ };
2924
+ };
1867
2925
  };
1868
2926
  };
1869
2927
  /** @description Refused */
@@ -1904,7 +2962,7 @@ export interface operations {
1904
2962
  };
1905
2963
  };
1906
2964
  };
1907
- providerConnections: {
2965
+ confirmed: {
1908
2966
  parameters: {
1909
2967
  query?: never;
1910
2968
  header?: never;
@@ -1921,7 +2979,7 @@ export interface operations {
1921
2979
  [name: string]: unknown;
1922
2980
  };
1923
2981
  content: {
1924
- "application/json": components["schemas"]["ProviderConnection"][];
2982
+ "application/json": components["schemas"]["Confirmed"][];
1925
2983
  };
1926
2984
  };
1927
2985
  /** @description Refused */
@@ -1962,35 +3020,30 @@ export interface operations {
1962
3020
  };
1963
3021
  };
1964
3022
  };
1965
- connectProvider: {
3023
+ confirm: {
1966
3024
  parameters: {
1967
3025
  query?: never;
1968
3026
  header?: never;
1969
3027
  path: {
1970
3028
  org: string;
1971
- provider: string;
3029
+ step: string;
1972
3030
  };
1973
3031
  cookie?: never;
1974
3032
  };
1975
3033
  requestBody: {
1976
3034
  content: {
1977
3035
  "application/json": {
1978
- fields: {
1979
- [key: string]: string;
1980
- };
1981
- connectedBy: string;
3036
+ by: string;
1982
3037
  };
1983
3038
  };
1984
3039
  };
1985
3040
  responses: {
1986
3041
  /** @description OK */
1987
- 200: {
3042
+ 204: {
1988
3043
  headers: {
1989
3044
  [name: string]: unknown;
1990
3045
  };
1991
- content: {
1992
- "application/json": components["schemas"]["ProviderConnection"];
1993
- };
3046
+ content?: never;
1994
3047
  };
1995
3048
  /** @description Refused */
1996
3049
  400: {
@@ -2030,13 +3083,13 @@ export interface operations {
2030
3083
  };
2031
3084
  };
2032
3085
  };
2033
- disconnectProvider: {
3086
+ unconfirm: {
2034
3087
  parameters: {
2035
3088
  query?: never;
2036
3089
  header?: never;
2037
3090
  path: {
2038
3091
  org: string;
2039
- provider: string;
3092
+ step: string;
2040
3093
  };
2041
3094
  cookie?: never;
2042
3095
  };
@@ -2093,13 +3146,12 @@ export interface operations {
2093
3146
  };
2094
3147
  };
2095
3148
  };
2096
- checkProvider: {
3149
+ connections: {
2097
3150
  parameters: {
2098
3151
  query?: never;
2099
3152
  header?: never;
2100
3153
  path: {
2101
3154
  org: string;
2102
- provider: string;
2103
3155
  };
2104
3156
  cookie?: never;
2105
3157
  };
@@ -2111,7 +3163,7 @@ export interface operations {
2111
3163
  [name: string]: unknown;
2112
3164
  };
2113
3165
  content: {
2114
- "application/json": components["schemas"]["SignInCheck"];
3166
+ "application/json": components["schemas"]["Connection"][];
2115
3167
  };
2116
3168
  };
2117
3169
  /** @description Refused */
@@ -2152,20 +3204,24 @@ export interface operations {
2152
3204
  };
2153
3205
  };
2154
3206
  };
2155
- newCertificate: {
3207
+ connect: {
2156
3208
  parameters: {
2157
3209
  query?: never;
2158
3210
  header?: never;
2159
3211
  path: {
2160
3212
  org: string;
2161
- provider: string;
3213
+ app: string;
2162
3214
  };
2163
3215
  cookie?: never;
2164
3216
  };
2165
3217
  requestBody: {
2166
3218
  content: {
2167
3219
  "application/json": {
2168
- by: string;
3220
+ capabilities: string[];
3221
+ fields: {
3222
+ [key: string]: string;
3223
+ };
3224
+ connectedBy: string;
2169
3225
  };
2170
3226
  };
2171
3227
  };
@@ -2176,7 +3232,7 @@ export interface operations {
2176
3232
  [name: string]: unknown;
2177
3233
  };
2178
3234
  content: {
2179
- "application/json": components["schemas"]["ProviderConnection"];
3235
+ "application/json": components["schemas"]["ConnectResult"];
2180
3236
  };
2181
3237
  };
2182
3238
  /** @description Refused */
@@ -2217,13 +3273,13 @@ export interface operations {
2217
3273
  };
2218
3274
  };
2219
3275
  };
2220
- activateCertificate: {
3276
+ disconnect: {
2221
3277
  parameters: {
2222
3278
  query?: never;
2223
3279
  header?: never;
2224
3280
  path: {
2225
3281
  org: string;
2226
- provider: string;
3282
+ app: string;
2227
3283
  };
2228
3284
  cookie?: never;
2229
3285
  };
@@ -2236,13 +3292,11 @@ export interface operations {
2236
3292
  };
2237
3293
  responses: {
2238
3294
  /** @description OK */
2239
- 200: {
3295
+ 204: {
2240
3296
  headers: {
2241
3297
  [name: string]: unknown;
2242
3298
  };
2243
- content: {
2244
- "application/json": components["schemas"]["ProviderConnection"];
2245
- };
3299
+ content?: never;
2246
3300
  };
2247
3301
  /** @description Refused */
2248
3302
  400: {
@@ -2282,39 +3336,31 @@ export interface operations {
2282
3336
  };
2283
3337
  };
2284
3338
  };
2285
- setProviderSettings: {
3339
+ setCeiling: {
2286
3340
  parameters: {
2287
3341
  query?: never;
2288
3342
  header?: never;
2289
3343
  path: {
2290
3344
  org: string;
2291
- provider: string;
3345
+ app: string;
2292
3346
  };
2293
3347
  cookie?: never;
2294
3348
  };
2295
3349
  requestBody: {
2296
3350
  content: {
2297
3351
  "application/json": {
2298
- values: {
2299
- [key: string]: string;
2300
- };
3352
+ capabilities: string[];
2301
3353
  by: string;
2302
3354
  };
2303
3355
  };
2304
3356
  };
2305
3357
  responses: {
2306
3358
  /** @description OK */
2307
- 200: {
3359
+ 204: {
2308
3360
  headers: {
2309
3361
  [name: string]: unknown;
2310
3362
  };
2311
- content: {
2312
- "application/json": {
2313
- settings: {
2314
- [key: string]: string;
2315
- };
2316
- };
2317
- };
3363
+ content?: never;
2318
3364
  };
2319
3365
  /** @description Refused */
2320
3366
  400: {
@@ -2354,16 +3400,28 @@ export interface operations {
2354
3400
  };
2355
3401
  };
2356
3402
  };
2357
- confirmed: {
3403
+ startConsent: {
2358
3404
  parameters: {
2359
3405
  query?: never;
2360
3406
  header?: never;
2361
3407
  path: {
2362
3408
  org: string;
3409
+ app: string;
2363
3410
  };
2364
3411
  cookie?: never;
2365
3412
  };
2366
- requestBody?: never;
3413
+ requestBody: {
3414
+ content: {
3415
+ "application/json": {
3416
+ capabilities: string[];
3417
+ /**
3418
+ * Format: uri
3419
+ * @description The admin app's own callback page: https, or http://localhost while developing
3420
+ */
3421
+ redirectUri: string;
3422
+ };
3423
+ };
3424
+ };
2367
3425
  responses: {
2368
3426
  /** @description OK */
2369
3427
  200: {
@@ -2371,7 +3429,7 @@ export interface operations {
2371
3429
  [name: string]: unknown;
2372
3430
  };
2373
3431
  content: {
2374
- "application/json": components["schemas"]["Confirmed"][];
3432
+ "application/json": components["schemas"]["SignIn"];
2375
3433
  };
2376
3434
  };
2377
3435
  /** @description Refused */
@@ -2412,30 +3470,41 @@ export interface operations {
2412
3470
  };
2413
3471
  };
2414
3472
  };
2415
- confirm: {
3473
+ finishConsent: {
2416
3474
  parameters: {
2417
3475
  query?: never;
2418
3476
  header?: never;
2419
3477
  path: {
2420
3478
  org: string;
2421
- step: string;
3479
+ app: string;
2422
3480
  };
2423
3481
  cookie?: never;
2424
3482
  };
2425
3483
  requestBody: {
2426
3484
  content: {
2427
3485
  "application/json": {
2428
- by: string;
3486
+ state: string;
3487
+ nonce: string;
3488
+ params: {
3489
+ [key: string]: string;
3490
+ };
3491
+ connectedBy: string;
2429
3492
  };
2430
3493
  };
2431
3494
  };
2432
3495
  responses: {
2433
3496
  /** @description OK */
2434
- 204: {
3497
+ 200: {
2435
3498
  headers: {
2436
3499
  [name: string]: unknown;
2437
3500
  };
2438
- content?: never;
3501
+ content: {
3502
+ "application/json": {
3503
+ redirect: string;
3504
+ } | {
3505
+ provider: components["schemas"]["ProviderConnection"];
3506
+ } | components["schemas"]["ConnectResult"];
3507
+ };
2439
3508
  };
2440
3509
  /** @description Refused */
2441
3510
  400: {
@@ -2475,17 +3544,20 @@ export interface operations {
2475
3544
  };
2476
3545
  };
2477
3546
  };
2478
- unconfirm: {
3547
+ check: {
2479
3548
  parameters: {
2480
- query?: never;
3549
+ query?: {
3550
+ /** @description false: read only */
3551
+ record?: string;
3552
+ };
2481
3553
  header?: never;
2482
3554
  path: {
2483
3555
  org: string;
2484
- step: string;
3556
+ app: string;
2485
3557
  };
2486
3558
  cookie?: never;
2487
3559
  };
2488
- requestBody: {
3560
+ requestBody?: {
2489
3561
  content: {
2490
3562
  "application/json": {
2491
3563
  by: string;
@@ -2494,11 +3566,13 @@ export interface operations {
2494
3566
  };
2495
3567
  responses: {
2496
3568
  /** @description OK */
2497
- 204: {
3569
+ 200: {
2498
3570
  headers: {
2499
3571
  [name: string]: unknown;
2500
3572
  };
2501
- content?: never;
3573
+ content: {
3574
+ "application/json": components["schemas"]["CheckOutcome"];
3575
+ };
2502
3576
  };
2503
3577
  /** @description Refused */
2504
3578
  400: {
@@ -2538,16 +3612,24 @@ export interface operations {
2538
3612
  };
2539
3613
  };
2540
3614
  };
2541
- connections: {
3615
+ setSites: {
2542
3616
  parameters: {
2543
3617
  query?: never;
2544
3618
  header?: never;
2545
3619
  path: {
2546
3620
  org: string;
3621
+ app: string;
2547
3622
  };
2548
3623
  cookie?: never;
2549
3624
  };
2550
- requestBody?: never;
3625
+ requestBody: {
3626
+ content: {
3627
+ "application/json": {
3628
+ sites: string[];
3629
+ by: string;
3630
+ };
3631
+ };
3632
+ };
2551
3633
  responses: {
2552
3634
  /** @description OK */
2553
3635
  200: {
@@ -2555,7 +3637,9 @@ export interface operations {
2555
3637
  [name: string]: unknown;
2556
3638
  };
2557
3639
  content: {
2558
- "application/json": components["schemas"]["Connection"][];
3640
+ "application/json": {
3641
+ sites: string[];
3642
+ };
2559
3643
  };
2560
3644
  };
2561
3645
  /** @description Refused */
@@ -2596,7 +3680,7 @@ export interface operations {
2596
3680
  };
2597
3681
  };
2598
3682
  };
2599
- connect: {
3683
+ checkSites: {
2600
3684
  parameters: {
2601
3685
  query?: never;
2602
3686
  header?: never;
@@ -2609,11 +3693,7 @@ export interface operations {
2609
3693
  requestBody: {
2610
3694
  content: {
2611
3695
  "application/json": {
2612
- capabilities: string[];
2613
- fields: {
2614
- [key: string]: string;
2615
- };
2616
- connectedBy: string;
3696
+ site?: string;
2617
3697
  };
2618
3698
  };
2619
3699
  };
@@ -2624,7 +3704,9 @@ export interface operations {
2624
3704
  [name: string]: unknown;
2625
3705
  };
2626
3706
  content: {
2627
- "application/json": components["schemas"]["ConnectResult"];
3707
+ "application/json": {
3708
+ sites: components["schemas"]["SiteAccess"][];
3709
+ };
2628
3710
  };
2629
3711
  };
2630
3712
  /** @description Refused */
@@ -2665,7 +3747,7 @@ export interface operations {
2665
3747
  };
2666
3748
  };
2667
3749
  };
2668
- disconnect: {
3750
+ agentAccess: {
2669
3751
  parameters: {
2670
3752
  query?: never;
2671
3753
  header?: never;
@@ -2678,17 +3760,20 @@ export interface operations {
2678
3760
  requestBody: {
2679
3761
  content: {
2680
3762
  "application/json": {
3763
+ value: string;
2681
3764
  by: string;
2682
3765
  };
2683
3766
  };
2684
3767
  };
2685
3768
  responses: {
2686
3769
  /** @description OK */
2687
- 204: {
3770
+ 200: {
2688
3771
  headers: {
2689
3772
  [name: string]: unknown;
2690
3773
  };
2691
- content?: never;
3774
+ content: {
3775
+ "application/json": components["schemas"]["AgentAccess"];
3776
+ };
2692
3777
  };
2693
3778
  /** @description Refused */
2694
3779
  400: {
@@ -2728,31 +3813,25 @@ export interface operations {
2728
3813
  };
2729
3814
  };
2730
3815
  };
2731
- setCeiling: {
3816
+ agents: {
2732
3817
  parameters: {
2733
3818
  query?: never;
2734
3819
  header?: never;
2735
3820
  path: {
2736
3821
  org: string;
2737
- app: string;
2738
3822
  };
2739
3823
  cookie?: never;
2740
3824
  };
2741
- requestBody: {
2742
- content: {
2743
- "application/json": {
2744
- capabilities: string[];
2745
- by: string;
2746
- };
2747
- };
2748
- };
3825
+ requestBody?: never;
2749
3826
  responses: {
2750
3827
  /** @description OK */
2751
- 204: {
3828
+ 200: {
2752
3829
  headers: {
2753
3830
  [name: string]: unknown;
2754
3831
  };
2755
- content?: never;
3832
+ content: {
3833
+ "application/json": components["schemas"]["Agent"][];
3834
+ };
2756
3835
  };
2757
3836
  /** @description Refused */
2758
3837
  400: {
@@ -2792,36 +3871,34 @@ export interface operations {
2792
3871
  };
2793
3872
  };
2794
3873
  };
2795
- startConsent: {
3874
+ createAgent: {
2796
3875
  parameters: {
2797
3876
  query?: never;
2798
3877
  header?: never;
2799
3878
  path: {
2800
3879
  org: string;
2801
- app: string;
2802
3880
  };
2803
3881
  cookie?: never;
2804
3882
  };
2805
3883
  requestBody: {
2806
3884
  content: {
2807
3885
  "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;
3886
+ name: string;
3887
+ createdBy: string;
2814
3888
  };
2815
3889
  };
2816
3890
  };
2817
3891
  responses: {
2818
3892
  /** @description OK */
2819
- 200: {
3893
+ 201: {
2820
3894
  headers: {
2821
3895
  [name: string]: unknown;
2822
3896
  };
2823
3897
  content: {
2824
- "application/json": components["schemas"]["SignIn"];
3898
+ "application/json": {
3899
+ agent: components["schemas"]["NewAgent"];
3900
+ key: string;
3901
+ };
2825
3902
  };
2826
3903
  };
2827
3904
  /** @description Refused */
@@ -2852,6 +3929,15 @@ export interface operations {
2852
3929
  };
2853
3930
  };
2854
3931
  /** @description Refused */
3932
+ 409: {
3933
+ headers: {
3934
+ [name: string]: unknown;
3935
+ };
3936
+ content: {
3937
+ "application/json": components["schemas"]["Error"];
3938
+ };
3939
+ };
3940
+ /** @description Refused */
2855
3941
  422: {
2856
3942
  headers: {
2857
3943
  [name: string]: unknown;
@@ -2862,41 +3948,30 @@ export interface operations {
2862
3948
  };
2863
3949
  };
2864
3950
  };
2865
- finishConsent: {
3951
+ deleteAgent: {
2866
3952
  parameters: {
2867
3953
  query?: never;
2868
3954
  header?: never;
2869
3955
  path: {
2870
3956
  org: string;
2871
- app: string;
3957
+ agent: string;
2872
3958
  };
2873
3959
  cookie?: never;
2874
3960
  };
2875
3961
  requestBody: {
2876
3962
  content: {
2877
3963
  "application/json": {
2878
- state: string;
2879
- nonce: string;
2880
- params: {
2881
- [key: string]: string;
2882
- };
2883
- connectedBy: string;
3964
+ by: string;
2884
3965
  };
2885
3966
  };
2886
3967
  };
2887
3968
  responses: {
2888
3969
  /** @description OK */
2889
- 200: {
3970
+ 204: {
2890
3971
  headers: {
2891
3972
  [name: string]: unknown;
2892
3973
  };
2893
- content: {
2894
- "application/json": {
2895
- redirect: string;
2896
- } | {
2897
- provider: components["schemas"]["ProviderConnection"];
2898
- } | components["schemas"]["ConnectResult"];
2899
- };
3974
+ content?: never;
2900
3975
  };
2901
3976
  /** @description Refused */
2902
3977
  400: {
@@ -2932,39 +4007,36 @@ export interface operations {
2932
4007
  };
2933
4008
  content: {
2934
4009
  "application/json": components["schemas"]["Error"];
2935
- };
2936
- };
2937
- };
2938
- };
2939
- check: {
2940
- parameters: {
2941
- query?: {
2942
- /** @description false: read only */
2943
- record?: string;
4010
+ };
2944
4011
  };
4012
+ };
4013
+ };
4014
+ setAgentStatus: {
4015
+ parameters: {
4016
+ query?: never;
2945
4017
  header?: never;
2946
4018
  path: {
2947
4019
  org: string;
2948
- app: string;
4020
+ agent: string;
2949
4021
  };
2950
4022
  cookie?: never;
2951
4023
  };
2952
- requestBody?: {
4024
+ requestBody: {
2953
4025
  content: {
2954
4026
  "application/json": {
4027
+ /** @enum {string} */
4028
+ status: "active" | "disabled";
2955
4029
  by: string;
2956
4030
  };
2957
4031
  };
2958
4032
  };
2959
4033
  responses: {
2960
4034
  /** @description OK */
2961
- 200: {
4035
+ 204: {
2962
4036
  headers: {
2963
4037
  [name: string]: unknown;
2964
4038
  };
2965
- content: {
2966
- "application/json": components["schemas"]["CheckOutcome"];
2967
- };
4039
+ content?: never;
2968
4040
  };
2969
4041
  /** @description Refused */
2970
4042
  400: {
@@ -3004,20 +4076,19 @@ export interface operations {
3004
4076
  };
3005
4077
  };
3006
4078
  };
3007
- setSites: {
4079
+ newKey: {
3008
4080
  parameters: {
3009
4081
  query?: never;
3010
4082
  header?: never;
3011
4083
  path: {
3012
4084
  org: string;
3013
- app: string;
4085
+ agent: string;
3014
4086
  };
3015
4087
  cookie?: never;
3016
4088
  };
3017
4089
  requestBody: {
3018
4090
  content: {
3019
4091
  "application/json": {
3020
- sites: string[];
3021
4092
  by: string;
3022
4093
  };
3023
4094
  };
@@ -3030,7 +4101,7 @@ export interface operations {
3030
4101
  };
3031
4102
  content: {
3032
4103
  "application/json": {
3033
- sites: string[];
4104
+ key: string;
3034
4105
  };
3035
4106
  };
3036
4107
  };
@@ -3072,12 +4143,13 @@ export interface operations {
3072
4143
  };
3073
4144
  };
3074
4145
  };
3075
- checkSites: {
4146
+ setGrant: {
3076
4147
  parameters: {
3077
4148
  query?: never;
3078
4149
  header?: never;
3079
4150
  path: {
3080
4151
  org: string;
4152
+ agent: string;
3081
4153
  app: string;
3082
4154
  };
3083
4155
  cookie?: never;
@@ -3085,21 +4157,19 @@ export interface operations {
3085
4157
  requestBody: {
3086
4158
  content: {
3087
4159
  "application/json": {
3088
- site?: string;
4160
+ capabilities: string[];
4161
+ limits?: unknown;
4162
+ by: string;
3089
4163
  };
3090
4164
  };
3091
4165
  };
3092
4166
  responses: {
3093
4167
  /** @description OK */
3094
- 200: {
4168
+ 204: {
3095
4169
  headers: {
3096
4170
  [name: string]: unknown;
3097
4171
  };
3098
- content: {
3099
- "application/json": {
3100
- sites: components["schemas"]["SiteAccess"][];
3101
- };
3102
- };
4172
+ content?: never;
3103
4173
  };
3104
4174
  /** @description Refused */
3105
4175
  400: {
@@ -3139,12 +4209,13 @@ export interface operations {
3139
4209
  };
3140
4210
  };
3141
4211
  };
3142
- agentAccess: {
4212
+ removeGrant: {
3143
4213
  parameters: {
3144
4214
  query?: never;
3145
4215
  header?: never;
3146
4216
  path: {
3147
4217
  org: string;
4218
+ agent: string;
3148
4219
  app: string;
3149
4220
  };
3150
4221
  cookie?: never;
@@ -3152,20 +4223,17 @@ export interface operations {
3152
4223
  requestBody: {
3153
4224
  content: {
3154
4225
  "application/json": {
3155
- value: string;
3156
4226
  by: string;
3157
4227
  };
3158
4228
  };
3159
4229
  };
3160
4230
  responses: {
3161
4231
  /** @description OK */
3162
- 200: {
4232
+ 204: {
3163
4233
  headers: {
3164
4234
  [name: string]: unknown;
3165
4235
  };
3166
- content: {
3167
- "application/json": components["schemas"]["AgentAccess"];
3168
- };
4236
+ content?: never;
3169
4237
  };
3170
4238
  /** @description Refused */
3171
4239
  400: {
@@ -3205,9 +4273,16 @@ export interface operations {
3205
4273
  };
3206
4274
  };
3207
4275
  };
3208
- agents: {
4276
+ audit: {
3209
4277
  parameters: {
3210
- query?: never;
4278
+ query?: {
4279
+ /** @description 1 to 500, default 50 */
4280
+ limit?: string;
4281
+ /** @description an agent id */
4282
+ agent?: string;
4283
+ /** @description an app id */
4284
+ app?: string;
4285
+ };
3211
4286
  header?: never;
3212
4287
  path: {
3213
4288
  org: string;
@@ -3222,7 +4297,7 @@ export interface operations {
3222
4297
  [name: string]: unknown;
3223
4298
  };
3224
4299
  content: {
3225
- "application/json": components["schemas"]["Agent"][];
4300
+ "application/json": components["schemas"]["AuditRow"][];
3226
4301
  };
3227
4302
  };
3228
4303
  /** @description Refused */
@@ -3263,7 +4338,7 @@ export interface operations {
3263
4338
  };
3264
4339
  };
3265
4340
  };
3266
- createAgent: {
4341
+ teamsBots: {
3267
4342
  parameters: {
3268
4343
  query?: never;
3269
4344
  header?: never;
@@ -3272,25 +4347,15 @@ export interface operations {
3272
4347
  };
3273
4348
  cookie?: never;
3274
4349
  };
3275
- requestBody: {
3276
- content: {
3277
- "application/json": {
3278
- name: string;
3279
- createdBy: string;
3280
- };
3281
- };
3282
- };
4350
+ requestBody?: never;
3283
4351
  responses: {
3284
4352
  /** @description OK */
3285
- 201: {
4353
+ 200: {
3286
4354
  headers: {
3287
4355
  [name: string]: unknown;
3288
4356
  };
3289
4357
  content: {
3290
- "application/json": {
3291
- agent: components["schemas"]["NewAgent"];
3292
- key: string;
3293
- };
4358
+ "application/json": components["schemas"]["TeamsBot"][];
3294
4359
  };
3295
4360
  };
3296
4361
  /** @description Refused */
@@ -3321,15 +4386,6 @@ export interface operations {
3321
4386
  };
3322
4387
  };
3323
4388
  /** @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
4389
  422: {
3334
4390
  headers: {
3335
4391
  [name: string]: unknown;
@@ -3340,30 +4396,27 @@ export interface operations {
3340
4396
  };
3341
4397
  };
3342
4398
  };
3343
- deleteAgent: {
4399
+ teamsSetupState: {
3344
4400
  parameters: {
3345
4401
  query?: never;
3346
4402
  header?: never;
3347
4403
  path: {
3348
4404
  org: string;
3349
- agent: string;
3350
4405
  };
3351
4406
  cookie?: never;
3352
4407
  };
3353
- requestBody: {
3354
- content: {
3355
- "application/json": {
3356
- by: string;
3357
- };
3358
- };
3359
- };
4408
+ requestBody?: never;
3360
4409
  responses: {
3361
4410
  /** @description OK */
3362
- 204: {
4411
+ 200: {
3363
4412
  headers: {
3364
4413
  [name: string]: unknown;
3365
4414
  };
3366
- content?: never;
4415
+ content: {
4416
+ "application/json": {
4417
+ [key: string]: components["schemas"]["LiveCheck"];
4418
+ };
4419
+ };
3367
4420
  };
3368
4421
  /** @description Refused */
3369
4422
  400: {
@@ -3403,32 +4456,40 @@ export interface operations {
3403
4456
  };
3404
4457
  };
3405
4458
  };
3406
- setAgentStatus: {
4459
+ finishTeamsPublish: {
3407
4460
  parameters: {
3408
4461
  query?: never;
3409
4462
  header?: never;
3410
4463
  path: {
3411
4464
  org: string;
3412
- agent: string;
3413
4465
  };
3414
4466
  cookie?: never;
3415
4467
  };
3416
4468
  requestBody: {
3417
4469
  content: {
3418
4470
  "application/json": {
3419
- /** @enum {string} */
3420
- status: "active" | "disabled";
4471
+ state: string;
4472
+ nonce: string;
4473
+ params: {
4474
+ [key: string]: string;
4475
+ };
3421
4476
  by: string;
3422
4477
  };
3423
4478
  };
3424
4479
  };
3425
4480
  responses: {
3426
4481
  /** @description OK */
3427
- 204: {
4482
+ 200: {
3428
4483
  headers: {
3429
4484
  [name: string]: unknown;
3430
4485
  };
3431
- content?: never;
4486
+ content: {
4487
+ "application/json": {
4488
+ agentId: string;
4489
+ version: string;
4490
+ changed: boolean;
4491
+ };
4492
+ };
3432
4493
  };
3433
4494
  /** @description Refused */
3434
4495
  400: {
@@ -3468,7 +4529,7 @@ export interface operations {
3468
4529
  };
3469
4530
  };
3470
4531
  };
3471
- newKey: {
4532
+ connectTeamsBot: {
3472
4533
  parameters: {
3473
4534
  query?: never;
3474
4535
  header?: never;
@@ -3481,6 +4542,7 @@ export interface operations {
3481
4542
  requestBody: {
3482
4543
  content: {
3483
4544
  "application/json": {
4545
+ botAppId: string;
3484
4546
  by: string;
3485
4547
  };
3486
4548
  };
@@ -3492,9 +4554,7 @@ export interface operations {
3492
4554
  [name: string]: unknown;
3493
4555
  };
3494
4556
  content: {
3495
- "application/json": {
3496
- key: string;
3497
- };
4557
+ "application/json": components["schemas"]["TeamsBotRecord"];
3498
4558
  };
3499
4559
  };
3500
4560
  /** @description Refused */
@@ -3535,33 +4595,33 @@ export interface operations {
3535
4595
  };
3536
4596
  };
3537
4597
  };
3538
- setGrant: {
4598
+ createTeamsBot: {
3539
4599
  parameters: {
3540
4600
  query?: never;
3541
4601
  header?: never;
3542
4602
  path: {
3543
4603
  org: string;
3544
4604
  agent: string;
3545
- app: string;
3546
4605
  };
3547
4606
  cookie?: never;
3548
4607
  };
3549
4608
  requestBody: {
3550
4609
  content: {
3551
4610
  "application/json": {
3552
- capabilities: string[];
3553
- limits?: unknown;
4611
+ displayName: string;
3554
4612
  by: string;
3555
4613
  };
3556
4614
  };
3557
4615
  };
3558
4616
  responses: {
3559
4617
  /** @description OK */
3560
- 204: {
4618
+ 200: {
3561
4619
  headers: {
3562
4620
  [name: string]: unknown;
3563
4621
  };
3564
- content?: never;
4622
+ content: {
4623
+ "application/json": components["schemas"]["TeamsBotRecord"];
4624
+ };
3565
4625
  };
3566
4626
  /** @description Refused */
3567
4627
  400: {
@@ -3601,14 +4661,13 @@ export interface operations {
3601
4661
  };
3602
4662
  };
3603
4663
  };
3604
- removeGrant: {
4664
+ removeTeamsBot: {
3605
4665
  parameters: {
3606
4666
  query?: never;
3607
4667
  header?: never;
3608
4668
  path: {
3609
4669
  org: string;
3610
4670
  agent: string;
3611
- app: string;
3612
4671
  };
3613
4672
  cookie?: never;
3614
4673
  };
@@ -3621,11 +4680,16 @@ export interface operations {
3621
4680
  };
3622
4681
  responses: {
3623
4682
  /** @description OK */
3624
- 204: {
4683
+ 200: {
3625
4684
  headers: {
3626
4685
  [name: string]: unknown;
3627
4686
  };
3628
- content?: never;
4687
+ content: {
4688
+ "application/json": {
4689
+ removal: string;
4690
+ failed: string[];
4691
+ };
4692
+ };
3629
4693
  };
3630
4694
  /** @description Refused */
3631
4695
  400: {
@@ -3665,23 +4729,24 @@ export interface operations {
3665
4729
  };
3666
4730
  };
3667
4731
  };
3668
- audit: {
4732
+ addToTeams: {
3669
4733
  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
- };
4734
+ query?: never;
3678
4735
  header?: never;
3679
4736
  path: {
3680
4737
  org: string;
4738
+ agent: string;
3681
4739
  };
3682
4740
  cookie?: never;
3683
4741
  };
3684
- requestBody?: never;
4742
+ requestBody: {
4743
+ content: {
4744
+ "application/json": {
4745
+ displayName: string;
4746
+ by: string;
4747
+ };
4748
+ };
4749
+ };
3685
4750
  responses: {
3686
4751
  /** @description OK */
3687
4752
  200: {
@@ -3689,7 +4754,10 @@ export interface operations {
3689
4754
  [name: string]: unknown;
3690
4755
  };
3691
4756
  content: {
3692
- "application/json": components["schemas"]["AuditRow"][];
4757
+ "application/json": {
4758
+ steps: components["schemas"]["AddStep"][];
4759
+ bot: components["schemas"]["TeamsBotRecord"];
4760
+ };
3693
4761
  };
3694
4762
  };
3695
4763
  /** @description Refused */
@@ -3730,16 +4798,27 @@ export interface operations {
3730
4798
  };
3731
4799
  };
3732
4800
  };
3733
- teamsBots: {
4801
+ startTeamsPublish: {
3734
4802
  parameters: {
3735
4803
  query?: never;
3736
4804
  header?: never;
3737
4805
  path: {
3738
4806
  org: string;
4807
+ agent: string;
3739
4808
  };
3740
4809
  cookie?: never;
3741
4810
  };
3742
- requestBody?: never;
4811
+ requestBody: {
4812
+ content: {
4813
+ "application/json": {
4814
+ /**
4815
+ * Format: uri
4816
+ * @description The admin app's own callback page: https, or http://localhost while developing
4817
+ */
4818
+ redirectUri: string;
4819
+ };
4820
+ };
4821
+ };
3743
4822
  responses: {
3744
4823
  /** @description OK */
3745
4824
  200: {
@@ -3747,7 +4826,7 @@ export interface operations {
3747
4826
  [name: string]: unknown;
3748
4827
  };
3749
4828
  content: {
3750
- "application/json": components["schemas"]["TeamsBot"][];
4829
+ "application/json": components["schemas"]["SignIn"];
3751
4830
  };
3752
4831
  };
3753
4832
  /** @description Refused */
@@ -3788,12 +4867,18 @@ export interface operations {
3788
4867
  };
3789
4868
  };
3790
4869
  };
3791
- teamsSetupState: {
4870
+ teamsTargets: {
3792
4871
  parameters: {
3793
- query?: never;
4872
+ query?: {
4873
+ /** @description team or person */
4874
+ kind?: string;
4875
+ /** @description what the admin typed */
4876
+ q?: string;
4877
+ };
3794
4878
  header?: never;
3795
4879
  path: {
3796
4880
  org: string;
4881
+ agent: string;
3797
4882
  };
3798
4883
  cookie?: never;
3799
4884
  };
@@ -3805,9 +4890,7 @@ export interface operations {
3805
4890
  [name: string]: unknown;
3806
4891
  };
3807
4892
  content: {
3808
- "application/json": {
3809
- [key: string]: components["schemas"]["LiveCheck"];
3810
- };
4893
+ "application/json": components["schemas"]["InstallTarget"][];
3811
4894
  };
3812
4895
  };
3813
4896
  /** @description Refused */
@@ -3848,23 +4931,22 @@ export interface operations {
3848
4931
  };
3849
4932
  };
3850
4933
  };
3851
- finishTeamsPublish: {
4934
+ installTeamsBot: {
3852
4935
  parameters: {
3853
4936
  query?: never;
3854
4937
  header?: never;
3855
4938
  path: {
3856
4939
  org: string;
4940
+ agent: string;
3857
4941
  };
3858
4942
  cookie?: never;
3859
4943
  };
3860
4944
  requestBody: {
3861
4945
  content: {
3862
4946
  "application/json": {
3863
- state: string;
3864
- nonce: string;
3865
- params: {
3866
- [key: string]: string;
3867
- };
4947
+ /** @enum {string} */
4948
+ kind: "team" | "chat" | "person";
4949
+ id: string;
3868
4950
  by: string;
3869
4951
  };
3870
4952
  };
@@ -3877,9 +4959,8 @@ export interface operations {
3877
4959
  };
3878
4960
  content: {
3879
4961
  "application/json": {
3880
- agentId: string;
3881
- version: string;
3882
- changed: boolean;
4962
+ /** @enum {string} */
4963
+ result: "added" | "already";
3883
4964
  };
3884
4965
  };
3885
4966
  };
@@ -3921,7 +5002,7 @@ export interface operations {
3921
5002
  };
3922
5003
  };
3923
5004
  };
3924
- connectTeamsBot: {
5005
+ teamsKit: {
3925
5006
  parameters: {
3926
5007
  query?: never;
3927
5008
  header?: never;
@@ -3931,14 +5012,7 @@ export interface operations {
3931
5012
  };
3932
5013
  cookie?: never;
3933
5014
  };
3934
- requestBody: {
3935
- content: {
3936
- "application/json": {
3937
- botAppId: string;
3938
- by: string;
3939
- };
3940
- };
3941
- };
5015
+ requestBody?: never;
3942
5016
  responses: {
3943
5017
  /** @description OK */
3944
5018
  200: {
@@ -3946,7 +5020,7 @@ export interface operations {
3946
5020
  [name: string]: unknown;
3947
5021
  };
3948
5022
  content: {
3949
- "application/json": components["schemas"]["TeamsBotRecord"];
5023
+ "text/plain": string;
3950
5024
  };
3951
5025
  };
3952
5026
  /** @description Refused */
@@ -3987,7 +5061,7 @@ export interface operations {
3987
5061
  };
3988
5062
  };
3989
5063
  };
3990
- createTeamsBot: {
5064
+ checkTeamsBot: {
3991
5065
  parameters: {
3992
5066
  query?: never;
3993
5067
  header?: never;
@@ -3997,14 +5071,7 @@ export interface operations {
3997
5071
  };
3998
5072
  cookie?: never;
3999
5073
  };
4000
- requestBody: {
4001
- content: {
4002
- "application/json": {
4003
- displayName: string;
4004
- by: string;
4005
- };
4006
- };
4007
- };
5074
+ requestBody?: never;
4008
5075
  responses: {
4009
5076
  /** @description OK */
4010
5077
  200: {
@@ -4012,7 +5079,7 @@ export interface operations {
4012
5079
  [name: string]: unknown;
4013
5080
  };
4014
5081
  content: {
4015
- "application/json": components["schemas"]["TeamsBotRecord"];
5082
+ "application/json": components["schemas"]["SignInCheck"];
4016
5083
  };
4017
5084
  };
4018
5085
  /** @description Refused */
@@ -4053,7 +5120,7 @@ export interface operations {
4053
5120
  };
4054
5121
  };
4055
5122
  };
4056
- removeTeamsBot: {
5123
+ teamsTest: {
4057
5124
  parameters: {
4058
5125
  query?: never;
4059
5126
  header?: never;
@@ -4066,6 +5133,7 @@ export interface operations {
4066
5133
  requestBody: {
4067
5134
  content: {
4068
5135
  "application/json": {
5136
+ conversationId: string;
4069
5137
  by: string;
4070
5138
  };
4071
5139
  };
@@ -4078,8 +5146,8 @@ export interface operations {
4078
5146
  };
4079
5147
  content: {
4080
5148
  "application/json": {
4081
- removal: string;
4082
- failed: string[];
5149
+ /** @constant */
5150
+ ok: true;
4083
5151
  };
4084
5152
  };
4085
5153
  };
@@ -4121,7 +5189,7 @@ export interface operations {
4121
5189
  };
4122
5190
  };
4123
5191
  };
4124
- addToTeams: {
5192
+ teamsCertificate: {
4125
5193
  parameters: {
4126
5194
  query?: never;
4127
5195
  header?: never;
@@ -4131,14 +5199,7 @@ export interface operations {
4131
5199
  };
4132
5200
  cookie?: never;
4133
5201
  };
4134
- requestBody: {
4135
- content: {
4136
- "application/json": {
4137
- displayName: string;
4138
- by: string;
4139
- };
4140
- };
4141
- };
5202
+ requestBody?: never;
4142
5203
  responses: {
4143
5204
  /** @description OK */
4144
5205
  200: {
@@ -4146,10 +5207,7 @@ export interface operations {
4146
5207
  [name: string]: unknown;
4147
5208
  };
4148
5209
  content: {
4149
- "application/json": {
4150
- steps: components["schemas"]["AddStep"][];
4151
- bot: components["schemas"]["TeamsBotRecord"];
4152
- };
5210
+ "application/x-pem-file": string;
4153
5211
  };
4154
5212
  };
4155
5213
  /** @description Refused */
@@ -4190,7 +5248,7 @@ export interface operations {
4190
5248
  };
4191
5249
  };
4192
5250
  };
4193
- startTeamsPublish: {
5251
+ newTeamsCertificate: {
4194
5252
  parameters: {
4195
5253
  query?: never;
4196
5254
  header?: never;
@@ -4203,11 +5261,7 @@ export interface operations {
4203
5261
  requestBody: {
4204
5262
  content: {
4205
5263
  "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;
5264
+ by: string;
4211
5265
  };
4212
5266
  };
4213
5267
  };
@@ -4218,7 +5272,11 @@ export interface operations {
4218
5272
  [name: string]: unknown;
4219
5273
  };
4220
5274
  content: {
4221
- "application/json": components["schemas"]["SignIn"];
5275
+ "application/json": {
5276
+ bot: components["schemas"]["TeamsBotRecord"];
5277
+ command: string | null;
5278
+ certificate: string;
5279
+ };
4222
5280
  };
4223
5281
  };
4224
5282
  /** @description Refused */
@@ -4259,14 +5317,9 @@ export interface operations {
4259
5317
  };
4260
5318
  };
4261
5319
  };
4262
- teamsTargets: {
5320
+ teamsPackage: {
4263
5321
  parameters: {
4264
- query?: {
4265
- /** @description team or person */
4266
- kind?: string;
4267
- /** @description what the admin typed */
4268
- q?: string;
4269
- };
5322
+ query?: never;
4270
5323
  header?: never;
4271
5324
  path: {
4272
5325
  org: string;
@@ -4282,7 +5335,7 @@ export interface operations {
4282
5335
  [name: string]: unknown;
4283
5336
  };
4284
5337
  content: {
4285
- "application/json": components["schemas"]["InstallTarget"][];
5338
+ "application/zip": string;
4286
5339
  };
4287
5340
  };
4288
5341
  /** @description Refused */
@@ -4323,7 +5376,7 @@ export interface operations {
4323
5376
  };
4324
5377
  };
4325
5378
  };
4326
- installTeamsBot: {
5379
+ activateTeamsCertificate: {
4327
5380
  parameters: {
4328
5381
  query?: never;
4329
5382
  header?: never;
@@ -4336,9 +5389,6 @@ export interface operations {
4336
5389
  requestBody: {
4337
5390
  content: {
4338
5391
  "application/json": {
4339
- /** @enum {string} */
4340
- kind: "team" | "chat" | "person";
4341
- id: string;
4342
5392
  by: string;
4343
5393
  };
4344
5394
  };
@@ -4350,10 +5400,7 @@ export interface operations {
4350
5400
  [name: string]: unknown;
4351
5401
  };
4352
5402
  content: {
4353
- "application/json": {
4354
- /** @enum {string} */
4355
- result: "added" | "already";
4356
- };
5403
+ "application/json": components["schemas"]["TeamsBotRecord"];
4357
5404
  };
4358
5405
  };
4359
5406
  /** @description Refused */
@@ -4394,7 +5441,7 @@ export interface operations {
4394
5441
  };
4395
5442
  };
4396
5443
  };
4397
- teamsKit: {
5444
+ teamsTrigger: {
4398
5445
  parameters: {
4399
5446
  query?: never;
4400
5447
  header?: never;
@@ -4412,7 +5459,7 @@ export interface operations {
4412
5459
  [name: string]: unknown;
4413
5460
  };
4414
5461
  content: {
4415
- "text/plain": string;
5462
+ "application/json": components["schemas"]["TeamsTrigger"];
4416
5463
  };
4417
5464
  };
4418
5465
  /** @description Refused */
@@ -4453,7 +5500,7 @@ export interface operations {
4453
5500
  };
4454
5501
  };
4455
5502
  };
4456
- checkTeamsBot: {
5503
+ setTeamsTrigger: {
4457
5504
  parameters: {
4458
5505
  query?: never;
4459
5506
  header?: never;
@@ -4463,7 +5510,43 @@ export interface operations {
4463
5510
  };
4464
5511
  cookie?: never;
4465
5512
  };
4466
- requestBody?: never;
5513
+ requestBody: {
5514
+ content: {
5515
+ "application/json": {
5516
+ enabled: boolean;
5517
+ /** @default claude-managed-agents */
5518
+ runner?: string;
5519
+ managedAgentId?: string;
5520
+ environmentId?: string;
5521
+ /** @default [] */
5522
+ vaultIds?: string[];
5523
+ budgetCents: number;
5524
+ /** @default 20 */
5525
+ maxRunsPerHour?: number;
5526
+ /** @default 500 */
5527
+ maxCentsPerDay?: number;
5528
+ /** @default 2 */
5529
+ maxConcurrent?: number;
5530
+ /**
5531
+ * @default mentions
5532
+ * @enum {string}
5533
+ */
5534
+ replyMode?: "mentions" | "all";
5535
+ /** @default [] */
5536
+ allowedTeams?: string[];
5537
+ /** @default [] */
5538
+ allowedPeople?: string[];
5539
+ /** @default {} */
5540
+ settings?: {
5541
+ [key: string]: unknown;
5542
+ };
5543
+ signingSecret?: string;
5544
+ /** @default false */
5545
+ anyoneInOrganization?: boolean;
5546
+ by: string;
5547
+ };
5548
+ };
5549
+ };
4467
5550
  responses: {
4468
5551
  /** @description OK */
4469
5552
  200: {
@@ -4471,7 +5554,7 @@ export interface operations {
4471
5554
  [name: string]: unknown;
4472
5555
  };
4473
5556
  content: {
4474
- "application/json": components["schemas"]["SignInCheck"];
5557
+ "application/json": components["schemas"]["TeamsTrigger"];
4475
5558
  };
4476
5559
  };
4477
5560
  /** @description Refused */
@@ -4512,9 +5595,12 @@ export interface operations {
4512
5595
  };
4513
5596
  };
4514
5597
  };
4515
- teamsTest: {
5598
+ teamsRuns: {
4516
5599
  parameters: {
4517
- query?: never;
5600
+ query?: {
5601
+ /** @description 1 to 200, default 20 */
5602
+ limit?: string;
5603
+ };
4518
5604
  header?: never;
4519
5605
  path: {
4520
5606
  org: string;
@@ -4522,14 +5608,7 @@ export interface operations {
4522
5608
  };
4523
5609
  cookie?: never;
4524
5610
  };
4525
- requestBody: {
4526
- content: {
4527
- "application/json": {
4528
- conversationId: string;
4529
- by: string;
4530
- };
4531
- };
4532
- };
5611
+ requestBody?: never;
4533
5612
  responses: {
4534
5613
  /** @description OK */
4535
5614
  200: {
@@ -4537,10 +5616,7 @@ export interface operations {
4537
5616
  [name: string]: unknown;
4538
5617
  };
4539
5618
  content: {
4540
- "application/json": {
4541
- /** @constant */
4542
- ok: true;
4543
- };
5619
+ "application/json": components["schemas"]["TeamsRun"][];
4544
5620
  };
4545
5621
  };
4546
5622
  /** @description Refused */
@@ -4581,13 +5657,12 @@ export interface operations {
4581
5657
  };
4582
5658
  };
4583
5659
  };
4584
- teamsCertificate: {
5660
+ eventSubscriptions: {
4585
5661
  parameters: {
4586
5662
  query?: never;
4587
5663
  header?: never;
4588
5664
  path: {
4589
5665
  org: string;
4590
- agent: string;
4591
5666
  };
4592
5667
  cookie?: never;
4593
5668
  };
@@ -4599,7 +5674,7 @@ export interface operations {
4599
5674
  [name: string]: unknown;
4600
5675
  };
4601
5676
  content: {
4602
- "application/x-pem-file": string;
5677
+ "application/json": components["schemas"]["EventSubscription"][];
4603
5678
  };
4604
5679
  };
4605
5680
  /** @description Refused */
@@ -4640,19 +5715,27 @@ export interface operations {
4640
5715
  };
4641
5716
  };
4642
5717
  };
4643
- newTeamsCertificate: {
5718
+ subscribeEvents: {
4644
5719
  parameters: {
4645
5720
  query?: never;
4646
5721
  header?: never;
4647
5722
  path: {
4648
5723
  org: string;
4649
- agent: string;
4650
5724
  };
4651
5725
  cookie?: never;
4652
5726
  };
4653
5727
  requestBody: {
4654
5728
  content: {
4655
5729
  "application/json": {
5730
+ app: string;
5731
+ /** @enum {string} */
5732
+ source: "webhook" | "poll";
5733
+ /** @default */
5734
+ filter?: string;
5735
+ /** @default 300 */
5736
+ intervalSeconds?: number;
5737
+ /** @default false */
5738
+ register?: boolean;
4656
5739
  by: string;
4657
5740
  };
4658
5741
  };
@@ -4664,11 +5747,7 @@ export interface operations {
4664
5747
  [name: string]: unknown;
4665
5748
  };
4666
5749
  content: {
4667
- "application/json": {
4668
- bot: components["schemas"]["TeamsBotRecord"];
4669
- command: string | null;
4670
- certificate: string;
4671
- };
5750
+ "application/json": components["schemas"]["EventSubscribed"];
4672
5751
  };
4673
5752
  };
4674
5753
  /** @description Refused */
@@ -4709,17 +5788,23 @@ export interface operations {
4709
5788
  };
4710
5789
  };
4711
5790
  };
4712
- teamsPackage: {
5791
+ rotateEventSecret: {
4713
5792
  parameters: {
4714
5793
  query?: never;
4715
5794
  header?: never;
4716
5795
  path: {
4717
5796
  org: string;
4718
- agent: string;
5797
+ subscription: string;
4719
5798
  };
4720
5799
  cookie?: never;
4721
5800
  };
4722
- requestBody?: never;
5801
+ requestBody: {
5802
+ content: {
5803
+ "application/json": {
5804
+ by: string;
5805
+ };
5806
+ };
5807
+ };
4723
5808
  responses: {
4724
5809
  /** @description OK */
4725
5810
  200: {
@@ -4727,7 +5812,10 @@ export interface operations {
4727
5812
  [name: string]: unknown;
4728
5813
  };
4729
5814
  content: {
4730
- "application/zip": string;
5815
+ "application/json": {
5816
+ subscription: components["schemas"]["EventSubscription"];
5817
+ secret: string;
5818
+ };
4731
5819
  };
4732
5820
  };
4733
5821
  /** @description Refused */
@@ -4768,13 +5856,13 @@ export interface operations {
4768
5856
  };
4769
5857
  };
4770
5858
  };
4771
- activateTeamsCertificate: {
5859
+ unsubscribeEvents: {
4772
5860
  parameters: {
4773
5861
  query?: never;
4774
5862
  header?: never;
4775
5863
  path: {
4776
5864
  org: string;
4777
- agent: string;
5865
+ subscription: string;
4778
5866
  };
4779
5867
  cookie?: never;
4780
5868
  };
@@ -4787,13 +5875,11 @@ export interface operations {
4787
5875
  };
4788
5876
  responses: {
4789
5877
  /** @description OK */
4790
- 200: {
5878
+ 204: {
4791
5879
  headers: {
4792
5880
  [name: string]: unknown;
4793
5881
  };
4794
- content: {
4795
- "application/json": components["schemas"]["TeamsBotRecord"];
4796
- };
5882
+ content?: never;
4797
5883
  };
4798
5884
  /** @description Refused */
4799
5885
  400: {
@@ -4833,7 +5919,7 @@ export interface operations {
4833
5919
  };
4834
5920
  };
4835
5921
  };
4836
- teamsTrigger: {
5922
+ eventTriggers: {
4837
5923
  parameters: {
4838
5924
  query?: never;
4839
5925
  header?: never;
@@ -4851,7 +5937,7 @@ export interface operations {
4851
5937
  [name: string]: unknown;
4852
5938
  };
4853
5939
  content: {
4854
- "application/json": components["schemas"]["TeamsTrigger"];
5940
+ "application/json": components["schemas"]["EventTrigger"][];
4855
5941
  };
4856
5942
  };
4857
5943
  /** @description Refused */
@@ -4892,13 +5978,14 @@ export interface operations {
4892
5978
  };
4893
5979
  };
4894
5980
  };
4895
- setTeamsTrigger: {
5981
+ setEventTrigger: {
4896
5982
  parameters: {
4897
5983
  query?: never;
4898
5984
  header?: never;
4899
5985
  path: {
4900
5986
  org: string;
4901
5987
  agent: string;
5988
+ app: string;
4902
5989
  };
4903
5990
  cookie?: never;
4904
5991
  };
@@ -4906,12 +5993,27 @@ export interface operations {
4906
5993
  content: {
4907
5994
  "application/json": {
4908
5995
  enabled: boolean;
5996
+ eventTypes: string[];
5997
+ /** @default [] */
5998
+ conditions?: ({
5999
+ field: string;
6000
+ in: string[];
6001
+ } | {
6002
+ field: string;
6003
+ notIn: string[];
6004
+ })[];
6005
+ prompt: string;
4909
6006
  /** @default claude-managed-agents */
4910
6007
  runner?: string;
4911
6008
  managedAgentId?: string;
4912
6009
  environmentId?: string;
4913
6010
  /** @default [] */
4914
6011
  vaultIds?: string[];
6012
+ /** @default {} */
6013
+ settings?: {
6014
+ [key: string]: unknown;
6015
+ };
6016
+ signingSecret?: string;
4915
6017
  budgetCents: number;
4916
6018
  /** @default 20 */
4917
6019
  maxRunsPerHour?: number;
@@ -4919,22 +6021,6 @@ export interface operations {
4919
6021
  maxCentsPerDay?: number;
4920
6022
  /** @default 2 */
4921
6023
  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
6024
  by: string;
4939
6025
  };
4940
6026
  };
@@ -4946,7 +6032,7 @@ export interface operations {
4946
6032
  [name: string]: unknown;
4947
6033
  };
4948
6034
  content: {
4949
- "application/json": components["schemas"]["TeamsTrigger"];
6035
+ "application/json": components["schemas"]["EventTrigger"];
4950
6036
  };
4951
6037
  };
4952
6038
  /** @description Refused */
@@ -4987,7 +6073,71 @@ export interface operations {
4987
6073
  };
4988
6074
  };
4989
6075
  };
4990
- teamsRuns: {
6076
+ removeEventTrigger: {
6077
+ parameters: {
6078
+ query?: never;
6079
+ header?: never;
6080
+ path: {
6081
+ org: string;
6082
+ agent: string;
6083
+ app: string;
6084
+ };
6085
+ cookie?: never;
6086
+ };
6087
+ requestBody: {
6088
+ content: {
6089
+ "application/json": {
6090
+ by: string;
6091
+ };
6092
+ };
6093
+ };
6094
+ responses: {
6095
+ /** @description OK */
6096
+ 204: {
6097
+ headers: {
6098
+ [name: string]: unknown;
6099
+ };
6100
+ content?: never;
6101
+ };
6102
+ /** @description Refused */
6103
+ 400: {
6104
+ headers: {
6105
+ [name: string]: unknown;
6106
+ };
6107
+ content: {
6108
+ "application/json": components["schemas"]["Error"];
6109
+ };
6110
+ };
6111
+ /** @description Refused */
6112
+ 401: {
6113
+ headers: {
6114
+ [name: string]: unknown;
6115
+ };
6116
+ content: {
6117
+ "application/json": components["schemas"]["Error"];
6118
+ };
6119
+ };
6120
+ /** @description Refused */
6121
+ 404: {
6122
+ headers: {
6123
+ [name: string]: unknown;
6124
+ };
6125
+ content: {
6126
+ "application/json": components["schemas"]["Error"];
6127
+ };
6128
+ };
6129
+ /** @description Refused */
6130
+ 422: {
6131
+ headers: {
6132
+ [name: string]: unknown;
6133
+ };
6134
+ content: {
6135
+ "application/json": components["schemas"]["Error"];
6136
+ };
6137
+ };
6138
+ };
6139
+ };
6140
+ eventRuns: {
4991
6141
  parameters: {
4992
6142
  query?: {
4993
6143
  /** @description 1 to 200, default 20 */
@@ -5008,7 +6158,7 @@ export interface operations {
5008
6158
  [name: string]: unknown;
5009
6159
  };
5010
6160
  content: {
5011
- "application/json": components["schemas"]["TeamsRun"][];
6161
+ "application/json": components["schemas"]["EventRun"][];
5012
6162
  };
5013
6163
  };
5014
6164
  /** @description Refused */