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

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;
@@ -1152,6 +1256,7 @@ export interface components {
1152
1256
  type: "header";
1153
1257
  header: string;
1154
1258
  value: string;
1259
+ prefix?: string;
1155
1260
  } | {
1156
1261
  /** @constant */
1157
1262
  type: "bearer";
@@ -1168,6 +1273,16 @@ export interface components {
1168
1273
  tokenUrl: string;
1169
1274
  clientId: string;
1170
1275
  clientSecret: string;
1276
+ scope?: string;
1277
+ } | {
1278
+ /** @constant */
1279
+ type: "query";
1280
+ param: string;
1281
+ value: string;
1282
+ };
1283
+ /** @default {} */
1284
+ headers: {
1285
+ [key: string]: string;
1171
1286
  };
1172
1287
  tools: {
1173
1288
  name: string;
@@ -1179,12 +1294,18 @@ export interface components {
1179
1294
  params: {
1180
1295
  [key: string]: {
1181
1296
  /** @enum {string} */
1182
- type: "string" | "number" | "integer" | "boolean";
1297
+ type: "string" | "number" | "integer" | "boolean" | "array";
1183
1298
  description: string;
1184
1299
  /** @enum {string} */
1185
1300
  in: "path" | "query" | "body";
1301
+ name?: string;
1186
1302
  /** @default true */
1187
1303
  required: boolean;
1304
+ default?: (string | number | boolean) | (string | number | boolean)[];
1305
+ enum?: (string | number | boolean)[];
1306
+ /** @enum {string} */
1307
+ items?: "string" | "number" | "integer" | "boolean";
1308
+ join?: string;
1188
1309
  limit?: string;
1189
1310
  };
1190
1311
  };
@@ -1195,132 +1316,426 @@ export interface components {
1195
1316
  field: string;
1196
1317
  limit: string;
1197
1318
  }[];
1319
+ result?: {
1320
+ items?: string;
1321
+ fields?: string[];
1322
+ };
1323
+ paging?: {
1324
+ param: string;
1325
+ body: string;
1326
+ } | {
1327
+ param: string;
1328
+ header: string;
1329
+ } | {
1330
+ param: string;
1331
+ /** @constant */
1332
+ link: true;
1333
+ };
1198
1334
  }[];
1199
1335
  /** @default false */
1200
1336
  allowInsecureHttp: boolean;
1201
1337
  };
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;
1338
+ soap?: {
1339
+ /** Format: uri */
1340
+ endpoint: string;
1341
+ /**
1342
+ * @default 1.1
1343
+ * @enum {string}
1344
+ */
1345
+ version: "1.1" | "1.2";
1346
+ /** @default {} */
1347
+ namespaces: {
1348
+ [key: string]: string;
1267
1349
  };
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;
1350
+ auth?: {
1351
+ /** @constant */
1352
+ type: "header";
1353
+ header: string;
1290
1354
  value: string;
1355
+ prefix?: string;
1356
+ } | {
1357
+ /** @constant */
1358
+ type: "bearer";
1359
+ token: string;
1360
+ } | {
1361
+ /** @constant */
1362
+ type: "basic";
1363
+ username: string;
1364
+ password: string;
1291
1365
  };
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;
1366
+ wsSecurity?: {
1367
+ username: string;
1368
+ password: string;
1369
+ /** @default false */
1370
+ digest: boolean;
1371
+ };
1372
+ verify?: {
1373
+ tool: string;
1374
+ /** @default {} */
1375
+ args: {
1376
+ [key: string]: string | number | boolean;
1377
+ };
1378
+ show: string;
1379
+ };
1380
+ tools: {
1381
+ name: string;
1302
1382
  description: string;
1303
- scopes?: string[];
1383
+ operation: string;
1384
+ soapAction?: string;
1385
+ body: string;
1386
+ /** @default {} */
1387
+ params: {
1388
+ [key: string]: {
1389
+ /** @enum {string} */
1390
+ type: "string" | "number" | "integer" | "boolean";
1391
+ description: string;
1392
+ /** @default true */
1393
+ required: boolean;
1394
+ limit?: string;
1395
+ };
1396
+ };
1397
+ result?: string;
1398
+ fields?: string[];
1399
+ /** @default false */
1400
+ readOnly: boolean;
1401
+ /** @default false */
1402
+ destructive: boolean;
1403
+ /** @default [] */
1404
+ answerLimits: {
1405
+ field: string;
1406
+ limit: string;
1407
+ }[];
1304
1408
  }[];
1305
- requires?: {
1306
- field: string;
1307
- value: string;
1308
- };
1309
1409
  /** @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;
1320
- };
1321
- copy?: string[];
1322
- /** @enum {string} */
1323
- shell?: "bash" | "powershell";
1410
+ allowInsecureHttp: boolean;
1411
+ };
1412
+ odata?: {
1413
+ /** Format: uri */
1414
+ serviceRoot: string;
1415
+ /** @enum {string} */
1416
+ version: "2" | "4";
1417
+ auth: {
1418
+ /** @constant */
1419
+ type: "header";
1420
+ header: string;
1421
+ value: string;
1422
+ prefix?: string;
1423
+ } | {
1424
+ /** @constant */
1425
+ type: "bearer";
1426
+ token: string;
1427
+ } | {
1428
+ /** @constant */
1429
+ type: "basic";
1430
+ username: string;
1431
+ password: string;
1432
+ } | {
1433
+ /** @constant */
1434
+ type: "oauth2";
1435
+ /** Format: uri */
1436
+ tokenUrl: string;
1437
+ clientId: string;
1438
+ clientSecret: string;
1439
+ scope?: string;
1440
+ } | {
1441
+ /** @constant */
1442
+ type: "query";
1443
+ param: string;
1444
+ value: string;
1445
+ };
1446
+ /** @default {} */
1447
+ headers: {
1448
+ [key: string]: string;
1449
+ };
1450
+ /** @default false */
1451
+ csrf: boolean;
1452
+ /**
1453
+ * @default skip
1454
+ * @enum {string}
1455
+ */
1456
+ paging: "skip" | "server";
1457
+ tools: {
1458
+ name: string;
1459
+ description: string;
1460
+ /** @enum {string} */
1461
+ kind: "list" | "get" | "create" | "update" | "function" | "action";
1462
+ entitySet?: string;
1463
+ function?: string;
1464
+ /** @default {} */
1465
+ key: {
1466
+ [key: string]: {
1467
+ /** @enum {string} */
1468
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1469
+ description: string;
1470
+ property?: string;
1471
+ required?: boolean;
1472
+ limit?: string;
1473
+ };
1474
+ };
1475
+ /** @default {} */
1476
+ filters: {
1477
+ [key: string]: {
1478
+ /** @enum {string} */
1479
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1480
+ description: string;
1481
+ property?: string;
1482
+ required?: boolean;
1483
+ limit?: string;
1484
+ /**
1485
+ * @default eq
1486
+ * @enum {string}
1487
+ */
1488
+ op: "eq" | "ne" | "gt" | "ge" | "lt" | "le" | "contains" | "startswith";
1489
+ };
1490
+ };
1491
+ /** @default {} */
1492
+ fields: {
1493
+ [key: string]: {
1494
+ /** @enum {string} */
1495
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1496
+ description: string;
1497
+ property?: string;
1498
+ required?: boolean;
1499
+ limit?: string;
1500
+ };
1501
+ };
1502
+ /** @default {} */
1503
+ params: {
1504
+ [key: string]: {
1505
+ /** @enum {string} */
1506
+ type: "string" | "integer" | "number" | "decimal" | "boolean" | "guid" | "datetime" | "datetimeoffset";
1507
+ description: string;
1508
+ property?: string;
1509
+ required?: boolean;
1510
+ limit?: string;
1511
+ };
1512
+ };
1513
+ /** @default [] */
1514
+ select: string[];
1515
+ orderBy?: string;
1516
+ /** @default 50 */
1517
+ top: number;
1518
+ /** @default false */
1519
+ destructive: boolean;
1520
+ /** @default [] */
1521
+ answerLimits: {
1522
+ field: string;
1523
+ limit: string;
1524
+ }[];
1525
+ }[];
1526
+ /** @default false */
1527
+ allowInsecureHttp: boolean;
1528
+ };
1529
+ sql?: {
1530
+ /** @enum {string} */
1531
+ engine: "postgres" | "sqlserver" | "mysql" | "oracle";
1532
+ host: string;
1533
+ port?: number;
1534
+ database: string;
1535
+ auth: {
1536
+ user: string;
1537
+ password: string;
1538
+ };
1539
+ /**
1540
+ * @default verify
1541
+ * @enum {string}
1542
+ */
1543
+ tls: "verify" | "insecure" | "off";
1544
+ /** @default 30 */
1545
+ timeoutSeconds: number;
1546
+ /** @default 200 */
1547
+ maxRows: number;
1548
+ tools: {
1549
+ name: string;
1550
+ description: string;
1551
+ sql: string;
1552
+ /** @default {} */
1553
+ params: {
1554
+ [key: string]: {
1555
+ /** @enum {string} */
1556
+ type: "string" | "number" | "integer" | "boolean";
1557
+ description: string;
1558
+ /** @default true */
1559
+ required: boolean;
1560
+ limit?: string;
1561
+ };
1562
+ };
1563
+ /** @default false */
1564
+ write: boolean;
1565
+ /** @default false */
1566
+ destructive: boolean;
1567
+ /** @default [] */
1568
+ answerLimits: {
1569
+ column: string;
1570
+ limit: string;
1571
+ }[];
1572
+ }[];
1573
+ };
1574
+ events?: {
1575
+ types: {
1576
+ id: string;
1577
+ label: string;
1578
+ }[];
1579
+ fields: {
1580
+ [key: string]: string;
1581
+ };
1582
+ /** @default {} */
1583
+ limits: {
1584
+ [key: string]: string;
1585
+ };
1586
+ webhook?: {
1587
+ verify: {
1588
+ /** @constant */
1589
+ type: "hmac-sha256";
1590
+ header: string;
1591
+ /** @default */
1592
+ prefix: string;
1593
+ } | {
1594
+ /** @constant */
1595
+ type: "token";
1596
+ header: string;
1597
+ } | {
1598
+ /** @constant */
1599
+ type: "none";
1600
+ };
1601
+ /** @default false */
1602
+ allowInsecure: boolean;
1603
+ type: {
1604
+ field: string;
1605
+ } | {
1606
+ header: string;
1607
+ };
1608
+ deliveryId?: {
1609
+ field: string;
1610
+ } | {
1611
+ header: string;
1612
+ };
1613
+ timestamp?: {
1614
+ at: {
1615
+ field: string;
1616
+ } | {
1617
+ header: string;
1618
+ };
1619
+ /** @enum {string} */
1620
+ unit: "s" | "ms" | "iso";
1621
+ /** @default 300 */
1622
+ toleranceSeconds: number;
1623
+ };
1624
+ setup: {
1625
+ title: string;
1626
+ body: string;
1627
+ link?: {
1628
+ label: string;
1629
+ /** Format: uri */
1630
+ href: string;
1631
+ };
1632
+ copy?: string[];
1633
+ /** @enum {string} */
1634
+ shell?: "bash" | "powershell";
1635
+ permissions?: boolean;
1636
+ certificate?: boolean;
1637
+ click?: string[];
1638
+ /** @constant */
1639
+ clickUnavailable?: true;
1640
+ /** @enum {string} */
1641
+ siteRole?: "read" | "write";
1642
+ agentCheck?: boolean;
1643
+ confirm?: string;
1644
+ live?: string;
1645
+ settings?: {
1646
+ id: string;
1647
+ label: string;
1648
+ help?: string;
1649
+ placeholder?: string;
1650
+ pattern: string;
1651
+ }[];
1652
+ option?: {
1653
+ field: string;
1654
+ value: string;
1655
+ };
1656
+ }[];
1657
+ register?: {
1658
+ /** @enum {string} */
1659
+ method: "GET" | "POST" | "PUT";
1660
+ /** Format: starts_with */
1661
+ path: string;
1662
+ body?: unknown;
1663
+ location: string;
1664
+ };
1665
+ };
1666
+ self?: {
1667
+ request: {
1668
+ /** @enum {string} */
1669
+ method: "GET" | "POST" | "PUT";
1670
+ /** Format: starts_with */
1671
+ path: string;
1672
+ body?: unknown;
1673
+ };
1674
+ id: string;
1675
+ fields: string[];
1676
+ };
1677
+ poll?: {
1678
+ request: {
1679
+ /** @enum {string} */
1680
+ method: "GET" | "POST" | "PUT";
1681
+ /** Format: starts_with */
1682
+ path: string;
1683
+ body?: unknown;
1684
+ };
1685
+ /** Format: includes */
1686
+ filter?: string;
1687
+ items: string;
1688
+ wrap?: string;
1689
+ cursor: string;
1690
+ deliveryId: string[];
1691
+ types: {
1692
+ type: string;
1693
+ same?: [
1694
+ string,
1695
+ string
1696
+ ];
1697
+ }[];
1698
+ };
1699
+ };
1700
+ };
1701
+ ConnectResult: {
1702
+ connection: components["schemas"]["Connection"];
1703
+ checks: components["schemas"]["Check"][];
1704
+ };
1705
+ Error: {
1706
+ error: string;
1707
+ };
1708
+ EventRun: {
1709
+ id: string;
1710
+ agentId: string;
1711
+ triggerId: string;
1712
+ connectorId: string;
1713
+ eventType: string;
1714
+ deliveryId: string;
1715
+ runner: string;
1716
+ sessionId: string | null;
1717
+ /** @enum {string} */
1718
+ state: "starting" | "running" | "ended" | "failed";
1719
+ error: string | null;
1720
+ costCents: number | null;
1721
+ /** @description ISO 8601, UTC */
1722
+ startedAt: string;
1723
+ finishedAt: string | null;
1724
+ };
1725
+ EventSubscribed: {
1726
+ subscription: components["schemas"]["EventSubscription"];
1727
+ secret: string | null;
1728
+ setup: {
1729
+ title: string;
1730
+ body: string;
1731
+ link?: {
1732
+ label: string;
1733
+ /** Format: uri */
1734
+ href: string;
1735
+ };
1736
+ copy?: string[];
1737
+ /** @enum {string} */
1738
+ shell?: "bash" | "powershell";
1324
1739
  permissions?: boolean;
1325
1740
  certificate?: boolean;
1326
1741
  click?: string[];
@@ -1342,54 +1757,241 @@ export interface components {
1342
1757
  field: string;
1343
1758
  value: string;
1344
1759
  };
1345
- apps: string[];
1346
1760
  }[];
1347
- revoke: string;
1348
- approval: boolean;
1761
+ registration: {
1762
+ ok: boolean;
1763
+ message: string;
1764
+ } | null;
1349
1765
  };
1350
- ProviderConnection: {
1766
+ EventSubscription: {
1351
1767
  id: string;
1352
- organizationId: string;
1353
- provider: string;
1768
+ connectorId: string;
1354
1769
  /** @enum {string} */
1355
- status: "pending" | "connected" | "needs_reconnect";
1356
- config: {
1357
- [key: string]: string;
1770
+ source: "webhook" | "poll";
1771
+ filter: string;
1772
+ intervalSeconds: number;
1773
+ cursor: string | null;
1774
+ polledAt: string | null;
1775
+ lastError: string | null;
1776
+ registered: string | null;
1777
+ url: string | null;
1778
+ createdBy: string;
1779
+ /** @description ISO 8601, UTC */
1780
+ createdAt: string;
1781
+ };
1782
+ EventTrigger: {
1783
+ id: string;
1784
+ agentId: string;
1785
+ connectorId: string;
1786
+ enabled: boolean;
1787
+ eventTypes: string[];
1788
+ conditions: ({
1789
+ field: string;
1790
+ in: string[];
1791
+ } | {
1792
+ field: string;
1793
+ notIn: string[];
1794
+ })[];
1795
+ prompt: string;
1796
+ runner: string;
1797
+ settings: {
1798
+ [key: string]: unknown;
1358
1799
  };
1359
- accountLabel: string | null;
1360
- connectedBy: string | null;
1800
+ hasSigningSecret: boolean;
1801
+ managedAgentId: string | null;
1802
+ environmentId: string | null;
1803
+ vaultIds: string[];
1804
+ budgetCents: number;
1805
+ maxRunsPerHour: number;
1806
+ maxCentsPerDay: number;
1807
+ maxConcurrent: number;
1808
+ updatedBy: string | null;
1361
1809
  /** @description ISO 8601, UTC */
1362
- connectedAt: string;
1810
+ updatedAt: string;
1811
+ };
1812
+ Grant: {
1813
+ agentId: string;
1814
+ connectorId: string;
1815
+ capabilities: string[];
1816
+ limits: components["schemas"]["Limits"];
1363
1817
  /** @description ISO 8601, UTC */
1364
- checkedAt: string;
1365
- certificate: components["schemas"]["CertificateInfo"] | null;
1366
- nextCertificate: components["schemas"]["CertificateInfo"] | null;
1367
- apps: string[];
1818
+ updatedAt: string;
1368
1819
  };
1369
- SignIn: {
1370
- url: string;
1371
- nonce: string;
1820
+ InstallTarget: {
1821
+ id: string;
1822
+ name: string;
1823
+ detail: string | null;
1372
1824
  };
1373
- SignInCheck: {
1374
- /** @constant */
1375
- ok: true;
1376
- } | {
1377
- /** @constant */
1378
- ok: false;
1379
- error: string;
1825
+ Limits: {
1826
+ [key: string]: string[] | string | {
1827
+ [key: string]: string;
1828
+ };
1380
1829
  };
1381
- SiteAccess: {
1382
- site: string;
1830
+ LiveCheck: {
1383
1831
  /** @enum {string} */
1384
- status: "granted" | "not_granted" | "not_found" | "failed";
1385
- name: string | null;
1832
+ state: "done" | "failing" | "todo";
1386
1833
  message: string;
1387
1834
  };
1388
- TeamsBot: {
1835
+ NewAgent: {
1389
1836
  id: string;
1390
1837
  organizationId: string;
1391
- agentId: string;
1392
- botAppId: string | null;
1838
+ name: string;
1839
+ /** @enum {string} */
1840
+ status: "active" | "disabled";
1841
+ createdBy: string | null;
1842
+ /** @description ISO 8601, UTC */
1843
+ createdAt: string;
1844
+ };
1845
+ Organization: {
1846
+ /** Format: uuid */
1847
+ id: string;
1848
+ name: string | null;
1849
+ /** @description ISO 8601, UTC */
1850
+ createdAt: string;
1851
+ };
1852
+ Provider: {
1853
+ id: string;
1854
+ name: string;
1855
+ logo: string;
1856
+ identity: string;
1857
+ sharedIdentity?: string;
1858
+ accountKey: string;
1859
+ /** @default [] */
1860
+ principalKeys: string[];
1861
+ certificate: boolean;
1862
+ setup: {
1863
+ title: string;
1864
+ body: string;
1865
+ link?: {
1866
+ label: string;
1867
+ /** Format: uri */
1868
+ href: string;
1869
+ };
1870
+ copy?: string[];
1871
+ /** @enum {string} */
1872
+ shell?: "bash" | "powershell";
1873
+ permissions?: boolean;
1874
+ certificate?: boolean;
1875
+ click?: string[];
1876
+ /** @constant */
1877
+ clickUnavailable?: true;
1878
+ /** @enum {string} */
1879
+ siteRole?: "read" | "write";
1880
+ agentCheck?: boolean;
1881
+ confirm?: string;
1882
+ live?: string;
1883
+ settings?: {
1884
+ id: string;
1885
+ label: string;
1886
+ help?: string;
1887
+ placeholder?: string;
1888
+ pattern: string;
1889
+ }[];
1890
+ option?: {
1891
+ field: string;
1892
+ value: string;
1893
+ };
1894
+ }[];
1895
+ fields: {
1896
+ id: string;
1897
+ label: string;
1898
+ help?: string;
1899
+ placeholder?: string;
1900
+ secret: boolean;
1901
+ options?: {
1902
+ value: string;
1903
+ label: string;
1904
+ description: string;
1905
+ scopes?: string[];
1906
+ }[];
1907
+ requires?: {
1908
+ field: string;
1909
+ value: string;
1910
+ };
1911
+ /** @default false */
1912
+ optional: boolean;
1913
+ }[];
1914
+ /** @default [] */
1915
+ addAgent: {
1916
+ title: string;
1917
+ body: string;
1918
+ link?: {
1919
+ label: string;
1920
+ /** Format: uri */
1921
+ href: string;
1922
+ };
1923
+ copy?: string[];
1924
+ /** @enum {string} */
1925
+ shell?: "bash" | "powershell";
1926
+ permissions?: boolean;
1927
+ certificate?: boolean;
1928
+ click?: string[];
1929
+ /** @constant */
1930
+ clickUnavailable?: true;
1931
+ /** @enum {string} */
1932
+ siteRole?: "read" | "write";
1933
+ agentCheck?: boolean;
1934
+ confirm?: string;
1935
+ live?: string;
1936
+ settings?: {
1937
+ id: string;
1938
+ label: string;
1939
+ help?: string;
1940
+ placeholder?: string;
1941
+ pattern: string;
1942
+ }[];
1943
+ option?: {
1944
+ field: string;
1945
+ value: string;
1946
+ };
1947
+ apps: string[];
1948
+ }[];
1949
+ revoke: string;
1950
+ approval: boolean;
1951
+ };
1952
+ ProviderConnection: {
1953
+ id: string;
1954
+ organizationId: string;
1955
+ provider: string;
1956
+ /** @enum {string} */
1957
+ status: "pending" | "connected" | "needs_reconnect";
1958
+ config: {
1959
+ [key: string]: string;
1960
+ };
1961
+ accountLabel: string | null;
1962
+ connectedBy: string | null;
1963
+ /** @description ISO 8601, UTC */
1964
+ connectedAt: string;
1965
+ /** @description ISO 8601, UTC */
1966
+ checkedAt: string;
1967
+ certificate: components["schemas"]["CertificateInfo"] | null;
1968
+ nextCertificate: components["schemas"]["CertificateInfo"] | null;
1969
+ apps: string[];
1970
+ };
1971
+ SignIn: {
1972
+ url: string;
1973
+ nonce: string;
1974
+ };
1975
+ SignInCheck: {
1976
+ /** @constant */
1977
+ ok: true;
1978
+ } | {
1979
+ /** @constant */
1980
+ ok: false;
1981
+ error: string;
1982
+ };
1983
+ SiteAccess: {
1984
+ site: string;
1985
+ /** @enum {string} */
1986
+ status: "granted" | "not_granted" | "not_found" | "failed";
1987
+ name: string | null;
1988
+ message: string;
1989
+ };
1990
+ TeamsBot: {
1991
+ id: string;
1992
+ organizationId: string;
1993
+ agentId: string;
1994
+ botAppId: string | null;
1393
1995
  teamsAppId: string;
1394
1996
  tenantId: string;
1395
1997
  displayName: string;
@@ -1470,33 +2072,329 @@ export interface components {
1470
2072
  settings: {
1471
2073
  [key: string]: unknown;
1472
2074
  };
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;
2075
+ hasSigningSecret: boolean;
2076
+ managedAgentId: string | null;
2077
+ environmentId: string | null;
2078
+ vaultIds: string[];
2079
+ budgetCents: number;
2080
+ maxRunsPerHour: number;
2081
+ maxCentsPerDay: number;
2082
+ maxConcurrent: number;
2083
+ /** @enum {string} */
2084
+ replyMode: "mentions" | "all";
2085
+ allowedTeams: string[];
2086
+ allowedPeople: string[];
2087
+ anyoneInOrganization: boolean;
2088
+ updatedBy: string | null;
2089
+ /** @description ISO 8601, UTC */
2090
+ updatedAt: string;
2091
+ };
2092
+ };
2093
+ responses: never;
2094
+ parameters: never;
2095
+ requestBodies: never;
2096
+ headers: never;
2097
+ pathItems: never;
2098
+ }
2099
+ export type $defs = Record<string, never>;
2100
+ export interface operations {
2101
+ listOrganizations: {
2102
+ parameters: {
2103
+ query?: never;
2104
+ header?: never;
2105
+ path?: never;
2106
+ cookie?: never;
2107
+ };
2108
+ requestBody?: never;
2109
+ responses: {
2110
+ /** @description OK */
2111
+ 200: {
2112
+ headers: {
2113
+ [name: string]: unknown;
2114
+ };
2115
+ content: {
2116
+ "application/json": components["schemas"]["Organization"][];
2117
+ };
2118
+ };
2119
+ /** @description Refused */
2120
+ 400: {
2121
+ headers: {
2122
+ [name: string]: unknown;
2123
+ };
2124
+ content: {
2125
+ "application/json": components["schemas"]["Error"];
2126
+ };
2127
+ };
2128
+ /** @description Refused */
2129
+ 401: {
2130
+ headers: {
2131
+ [name: string]: unknown;
2132
+ };
2133
+ content: {
2134
+ "application/json": components["schemas"]["Error"];
2135
+ };
2136
+ };
2137
+ /** @description Refused */
2138
+ 404: {
2139
+ headers: {
2140
+ [name: string]: unknown;
2141
+ };
2142
+ content: {
2143
+ "application/json": components["schemas"]["Error"];
2144
+ };
2145
+ };
2146
+ /** @description Refused */
2147
+ 422: {
2148
+ headers: {
2149
+ [name: string]: unknown;
2150
+ };
2151
+ content: {
2152
+ "application/json": components["schemas"]["Error"];
2153
+ };
2154
+ };
2155
+ };
2156
+ };
2157
+ createOrganization: {
2158
+ parameters: {
2159
+ query?: never;
2160
+ header?: never;
2161
+ path?: never;
2162
+ cookie?: never;
2163
+ };
2164
+ requestBody: {
2165
+ content: {
2166
+ "application/json": {
2167
+ name: string;
2168
+ };
2169
+ };
2170
+ };
2171
+ responses: {
2172
+ /** @description OK */
2173
+ 201: {
2174
+ headers: {
2175
+ [name: string]: unknown;
2176
+ };
2177
+ content: {
2178
+ "application/json": components["schemas"]["Organization"];
2179
+ };
2180
+ };
2181
+ /** @description Refused */
2182
+ 400: {
2183
+ headers: {
2184
+ [name: string]: unknown;
2185
+ };
2186
+ content: {
2187
+ "application/json": components["schemas"]["Error"];
2188
+ };
2189
+ };
2190
+ /** @description Refused */
2191
+ 401: {
2192
+ headers: {
2193
+ [name: string]: unknown;
2194
+ };
2195
+ content: {
2196
+ "application/json": components["schemas"]["Error"];
2197
+ };
2198
+ };
2199
+ /** @description Refused */
2200
+ 404: {
2201
+ headers: {
2202
+ [name: string]: unknown;
2203
+ };
2204
+ content: {
2205
+ "application/json": components["schemas"]["Error"];
2206
+ };
2207
+ };
2208
+ /** @description Refused */
2209
+ 422: {
2210
+ headers: {
2211
+ [name: string]: unknown;
2212
+ };
2213
+ content: {
2214
+ "application/json": components["schemas"]["Error"];
2215
+ };
2216
+ };
2217
+ };
2218
+ };
2219
+ getOrganization: {
2220
+ parameters: {
2221
+ query?: never;
2222
+ header?: never;
2223
+ path: {
2224
+ org: string;
2225
+ };
2226
+ cookie?: never;
2227
+ };
2228
+ requestBody?: never;
2229
+ responses: {
2230
+ /** @description OK */
2231
+ 200: {
2232
+ headers: {
2233
+ [name: string]: unknown;
2234
+ };
2235
+ content: {
2236
+ "application/json": components["schemas"]["Organization"];
2237
+ };
2238
+ };
2239
+ /** @description Refused */
2240
+ 400: {
2241
+ headers: {
2242
+ [name: string]: unknown;
2243
+ };
2244
+ content: {
2245
+ "application/json": components["schemas"]["Error"];
2246
+ };
2247
+ };
2248
+ /** @description Refused */
2249
+ 401: {
2250
+ headers: {
2251
+ [name: string]: unknown;
2252
+ };
2253
+ content: {
2254
+ "application/json": components["schemas"]["Error"];
2255
+ };
2256
+ };
2257
+ /** @description Refused */
2258
+ 404: {
2259
+ headers: {
2260
+ [name: string]: unknown;
2261
+ };
2262
+ content: {
2263
+ "application/json": components["schemas"]["Error"];
2264
+ };
2265
+ };
2266
+ /** @description Refused */
2267
+ 422: {
2268
+ headers: {
2269
+ [name: string]: unknown;
2270
+ };
2271
+ content: {
2272
+ "application/json": components["schemas"]["Error"];
2273
+ };
2274
+ };
2275
+ };
2276
+ };
2277
+ ensureOrganization: {
2278
+ parameters: {
2279
+ query?: never;
2280
+ header?: never;
2281
+ path: {
2282
+ org: string;
2283
+ };
2284
+ cookie?: never;
2285
+ };
2286
+ requestBody: {
2287
+ content: {
2288
+ "application/json": {
2289
+ name?: string;
2290
+ };
2291
+ };
2292
+ };
2293
+ responses: {
2294
+ /** @description OK */
2295
+ 200: {
2296
+ headers: {
2297
+ [name: string]: unknown;
2298
+ };
2299
+ content: {
2300
+ "application/json": components["schemas"]["Organization"];
2301
+ };
2302
+ };
2303
+ /** @description Refused */
2304
+ 400: {
2305
+ headers: {
2306
+ [name: string]: unknown;
2307
+ };
2308
+ content: {
2309
+ "application/json": components["schemas"]["Error"];
2310
+ };
2311
+ };
2312
+ /** @description Refused */
2313
+ 401: {
2314
+ headers: {
2315
+ [name: string]: unknown;
2316
+ };
2317
+ content: {
2318
+ "application/json": components["schemas"]["Error"];
2319
+ };
2320
+ };
2321
+ /** @description Refused */
2322
+ 404: {
2323
+ headers: {
2324
+ [name: string]: unknown;
2325
+ };
2326
+ content: {
2327
+ "application/json": components["schemas"]["Error"];
2328
+ };
2329
+ };
2330
+ /** @description Refused */
2331
+ 422: {
2332
+ headers: {
2333
+ [name: string]: unknown;
2334
+ };
2335
+ content: {
2336
+ "application/json": components["schemas"]["Error"];
2337
+ };
2338
+ };
2339
+ };
2340
+ };
2341
+ branding: {
2342
+ parameters: {
2343
+ query?: never;
2344
+ header?: never;
2345
+ path?: never;
2346
+ cookie?: never;
2347
+ };
2348
+ requestBody?: never;
2349
+ responses: {
2350
+ /** @description OK */
2351
+ 200: {
2352
+ headers: {
2353
+ [name: string]: unknown;
2354
+ };
2355
+ content: {
2356
+ "application/json": components["schemas"]["Branding"];
2357
+ };
2358
+ };
2359
+ /** @description Refused */
2360
+ 400: {
2361
+ headers: {
2362
+ [name: string]: unknown;
2363
+ };
2364
+ content: {
2365
+ "application/json": components["schemas"]["Error"];
2366
+ };
2367
+ };
2368
+ /** @description Refused */
2369
+ 401: {
2370
+ headers: {
2371
+ [name: string]: unknown;
2372
+ };
2373
+ content: {
2374
+ "application/json": components["schemas"]["Error"];
2375
+ };
2376
+ };
2377
+ /** @description Refused */
2378
+ 404: {
2379
+ headers: {
2380
+ [name: string]: unknown;
2381
+ };
2382
+ content: {
2383
+ "application/json": components["schemas"]["Error"];
2384
+ };
2385
+ };
2386
+ /** @description Refused */
2387
+ 422: {
2388
+ headers: {
2389
+ [name: string]: unknown;
2390
+ };
2391
+ content: {
2392
+ "application/json": components["schemas"]["Error"];
2393
+ };
2394
+ };
1489
2395
  };
1490
2396
  };
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: {
2397
+ connectors: {
1500
2398
  parameters: {
1501
2399
  query?: never;
1502
2400
  header?: never;
@@ -1511,7 +2409,7 @@ export interface operations {
1511
2409
  [name: string]: unknown;
1512
2410
  };
1513
2411
  content: {
1514
- "application/json": components["schemas"]["Organization"][];
2412
+ "application/json": components["schemas"]["Connector"][];
1515
2413
  };
1516
2414
  };
1517
2415
  /** @description Refused */
@@ -1552,28 +2450,80 @@ export interface operations {
1552
2450
  };
1553
2451
  };
1554
2452
  };
1555
- createOrganization: {
2453
+ providers: {
1556
2454
  parameters: {
1557
2455
  query?: never;
1558
2456
  header?: never;
1559
2457
  path?: never;
1560
2458
  cookie?: never;
1561
2459
  };
1562
- requestBody: {
1563
- content: {
1564
- "application/json": {
1565
- name: string;
2460
+ requestBody?: never;
2461
+ responses: {
2462
+ /** @description OK */
2463
+ 200: {
2464
+ headers: {
2465
+ [name: string]: unknown;
2466
+ };
2467
+ content: {
2468
+ "application/json": components["schemas"]["Provider"][];
2469
+ };
2470
+ };
2471
+ /** @description Refused */
2472
+ 400: {
2473
+ headers: {
2474
+ [name: string]: unknown;
2475
+ };
2476
+ content: {
2477
+ "application/json": components["schemas"]["Error"];
2478
+ };
2479
+ };
2480
+ /** @description Refused */
2481
+ 401: {
2482
+ headers: {
2483
+ [name: string]: unknown;
2484
+ };
2485
+ content: {
2486
+ "application/json": components["schemas"]["Error"];
2487
+ };
2488
+ };
2489
+ /** @description Refused */
2490
+ 404: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": components["schemas"]["Error"];
2496
+ };
2497
+ };
2498
+ /** @description Refused */
2499
+ 422: {
2500
+ headers: {
2501
+ [name: string]: unknown;
1566
2502
  };
2503
+ content: {
2504
+ "application/json": components["schemas"]["Error"];
2505
+ };
2506
+ };
2507
+ };
2508
+ };
2509
+ providerConnections: {
2510
+ parameters: {
2511
+ query?: never;
2512
+ header?: never;
2513
+ path: {
2514
+ org: string;
1567
2515
  };
2516
+ cookie?: never;
1568
2517
  };
2518
+ requestBody?: never;
1569
2519
  responses: {
1570
2520
  /** @description OK */
1571
- 201: {
2521
+ 200: {
1572
2522
  headers: {
1573
2523
  [name: string]: unknown;
1574
2524
  };
1575
2525
  content: {
1576
- "application/json": components["schemas"]["Organization"];
2526
+ "application/json": components["schemas"]["ProviderConnection"][];
1577
2527
  };
1578
2528
  };
1579
2529
  /** @description Refused */
@@ -1614,16 +2564,26 @@ export interface operations {
1614
2564
  };
1615
2565
  };
1616
2566
  };
1617
- getOrganization: {
2567
+ connectProvider: {
1618
2568
  parameters: {
1619
2569
  query?: never;
1620
2570
  header?: never;
1621
2571
  path: {
1622
2572
  org: string;
2573
+ provider: string;
1623
2574
  };
1624
2575
  cookie?: never;
1625
2576
  };
1626
- requestBody?: never;
2577
+ requestBody: {
2578
+ content: {
2579
+ "application/json": {
2580
+ fields: {
2581
+ [key: string]: string;
2582
+ };
2583
+ connectedBy: string;
2584
+ };
2585
+ };
2586
+ };
1627
2587
  responses: {
1628
2588
  /** @description OK */
1629
2589
  200: {
@@ -1631,7 +2591,7 @@ export interface operations {
1631
2591
  [name: string]: unknown;
1632
2592
  };
1633
2593
  content: {
1634
- "application/json": components["schemas"]["Organization"];
2594
+ "application/json": components["schemas"]["ProviderConnection"];
1635
2595
  };
1636
2596
  };
1637
2597
  /** @description Refused */
@@ -1672,22 +2632,80 @@ export interface operations {
1672
2632
  };
1673
2633
  };
1674
2634
  };
1675
- ensureOrganization: {
2635
+ disconnectProvider: {
1676
2636
  parameters: {
1677
2637
  query?: never;
1678
2638
  header?: never;
1679
2639
  path: {
1680
2640
  org: string;
2641
+ provider: string;
1681
2642
  };
1682
2643
  cookie?: never;
1683
2644
  };
1684
2645
  requestBody: {
1685
2646
  content: {
1686
2647
  "application/json": {
1687
- name?: string;
2648
+ by: string;
2649
+ };
2650
+ };
2651
+ };
2652
+ responses: {
2653
+ /** @description OK */
2654
+ 204: {
2655
+ headers: {
2656
+ [name: string]: unknown;
2657
+ };
2658
+ content?: never;
2659
+ };
2660
+ /** @description Refused */
2661
+ 400: {
2662
+ headers: {
2663
+ [name: string]: unknown;
2664
+ };
2665
+ content: {
2666
+ "application/json": components["schemas"]["Error"];
2667
+ };
2668
+ };
2669
+ /** @description Refused */
2670
+ 401: {
2671
+ headers: {
2672
+ [name: string]: unknown;
2673
+ };
2674
+ content: {
2675
+ "application/json": components["schemas"]["Error"];
2676
+ };
2677
+ };
2678
+ /** @description Refused */
2679
+ 404: {
2680
+ headers: {
2681
+ [name: string]: unknown;
2682
+ };
2683
+ content: {
2684
+ "application/json": components["schemas"]["Error"];
2685
+ };
2686
+ };
2687
+ /** @description Refused */
2688
+ 422: {
2689
+ headers: {
2690
+ [name: string]: unknown;
2691
+ };
2692
+ content: {
2693
+ "application/json": components["schemas"]["Error"];
1688
2694
  };
1689
2695
  };
1690
2696
  };
2697
+ };
2698
+ checkProvider: {
2699
+ parameters: {
2700
+ query?: never;
2701
+ header?: never;
2702
+ path: {
2703
+ org: string;
2704
+ provider: string;
2705
+ };
2706
+ cookie?: never;
2707
+ };
2708
+ requestBody?: never;
1691
2709
  responses: {
1692
2710
  /** @description OK */
1693
2711
  200: {
@@ -1695,7 +2713,7 @@ export interface operations {
1695
2713
  [name: string]: unknown;
1696
2714
  };
1697
2715
  content: {
1698
- "application/json": components["schemas"]["Organization"];
2716
+ "application/json": components["schemas"]["SignInCheck"];
1699
2717
  };
1700
2718
  };
1701
2719
  /** @description Refused */
@@ -1736,14 +2754,23 @@ export interface operations {
1736
2754
  };
1737
2755
  };
1738
2756
  };
1739
- branding: {
2757
+ newCertificate: {
1740
2758
  parameters: {
1741
2759
  query?: never;
1742
2760
  header?: never;
1743
- path?: never;
2761
+ path: {
2762
+ org: string;
2763
+ provider: string;
2764
+ };
1744
2765
  cookie?: never;
1745
2766
  };
1746
- requestBody?: never;
2767
+ requestBody: {
2768
+ content: {
2769
+ "application/json": {
2770
+ by: string;
2771
+ };
2772
+ };
2773
+ };
1747
2774
  responses: {
1748
2775
  /** @description OK */
1749
2776
  200: {
@@ -1751,7 +2778,7 @@ export interface operations {
1751
2778
  [name: string]: unknown;
1752
2779
  };
1753
2780
  content: {
1754
- "application/json": components["schemas"]["Branding"];
2781
+ "application/json": components["schemas"]["ProviderConnection"];
1755
2782
  };
1756
2783
  };
1757
2784
  /** @description Refused */
@@ -1792,14 +2819,23 @@ export interface operations {
1792
2819
  };
1793
2820
  };
1794
2821
  };
1795
- connectors: {
2822
+ activateCertificate: {
1796
2823
  parameters: {
1797
2824
  query?: never;
1798
2825
  header?: never;
1799
- path?: never;
2826
+ path: {
2827
+ org: string;
2828
+ provider: string;
2829
+ };
1800
2830
  cookie?: never;
1801
2831
  };
1802
- requestBody?: never;
2832
+ requestBody: {
2833
+ content: {
2834
+ "application/json": {
2835
+ by: string;
2836
+ };
2837
+ };
2838
+ };
1803
2839
  responses: {
1804
2840
  /** @description OK */
1805
2841
  200: {
@@ -1807,7 +2843,7 @@ export interface operations {
1807
2843
  [name: string]: unknown;
1808
2844
  };
1809
2845
  content: {
1810
- "application/json": components["schemas"]["Connector"][];
2846
+ "application/json": components["schemas"]["ProviderConnection"];
1811
2847
  };
1812
2848
  };
1813
2849
  /** @description Refused */
@@ -1847,15 +2883,27 @@ export interface operations {
1847
2883
  };
1848
2884
  };
1849
2885
  };
1850
- };
1851
- providers: {
1852
- parameters: {
1853
- query?: never;
1854
- header?: never;
1855
- path?: never;
1856
- cookie?: never;
1857
- };
1858
- requestBody?: never;
2886
+ };
2887
+ setProviderSettings: {
2888
+ parameters: {
2889
+ query?: never;
2890
+ header?: never;
2891
+ path: {
2892
+ org: string;
2893
+ provider: string;
2894
+ };
2895
+ cookie?: never;
2896
+ };
2897
+ requestBody: {
2898
+ content: {
2899
+ "application/json": {
2900
+ values: {
2901
+ [key: string]: string;
2902
+ };
2903
+ by: string;
2904
+ };
2905
+ };
2906
+ };
1859
2907
  responses: {
1860
2908
  /** @description OK */
1861
2909
  200: {
@@ -1863,7 +2911,11 @@ export interface operations {
1863
2911
  [name: string]: unknown;
1864
2912
  };
1865
2913
  content: {
1866
- "application/json": components["schemas"]["Provider"][];
2914
+ "application/json": {
2915
+ settings: {
2916
+ [key: string]: string;
2917
+ };
2918
+ };
1867
2919
  };
1868
2920
  };
1869
2921
  /** @description Refused */
@@ -1904,7 +2956,7 @@ export interface operations {
1904
2956
  };
1905
2957
  };
1906
2958
  };
1907
- providerConnections: {
2959
+ confirmed: {
1908
2960
  parameters: {
1909
2961
  query?: never;
1910
2962
  header?: never;
@@ -1921,7 +2973,7 @@ export interface operations {
1921
2973
  [name: string]: unknown;
1922
2974
  };
1923
2975
  content: {
1924
- "application/json": components["schemas"]["ProviderConnection"][];
2976
+ "application/json": components["schemas"]["Confirmed"][];
1925
2977
  };
1926
2978
  };
1927
2979
  /** @description Refused */
@@ -1962,35 +3014,30 @@ export interface operations {
1962
3014
  };
1963
3015
  };
1964
3016
  };
1965
- connectProvider: {
3017
+ confirm: {
1966
3018
  parameters: {
1967
3019
  query?: never;
1968
3020
  header?: never;
1969
3021
  path: {
1970
3022
  org: string;
1971
- provider: string;
3023
+ step: string;
1972
3024
  };
1973
3025
  cookie?: never;
1974
3026
  };
1975
3027
  requestBody: {
1976
3028
  content: {
1977
3029
  "application/json": {
1978
- fields: {
1979
- [key: string]: string;
1980
- };
1981
- connectedBy: string;
3030
+ by: string;
1982
3031
  };
1983
3032
  };
1984
3033
  };
1985
3034
  responses: {
1986
3035
  /** @description OK */
1987
- 200: {
3036
+ 204: {
1988
3037
  headers: {
1989
3038
  [name: string]: unknown;
1990
3039
  };
1991
- content: {
1992
- "application/json": components["schemas"]["ProviderConnection"];
1993
- };
3040
+ content?: never;
1994
3041
  };
1995
3042
  /** @description Refused */
1996
3043
  400: {
@@ -2030,13 +3077,13 @@ export interface operations {
2030
3077
  };
2031
3078
  };
2032
3079
  };
2033
- disconnectProvider: {
3080
+ unconfirm: {
2034
3081
  parameters: {
2035
3082
  query?: never;
2036
3083
  header?: never;
2037
3084
  path: {
2038
3085
  org: string;
2039
- provider: string;
3086
+ step: string;
2040
3087
  };
2041
3088
  cookie?: never;
2042
3089
  };
@@ -2093,13 +3140,12 @@ export interface operations {
2093
3140
  };
2094
3141
  };
2095
3142
  };
2096
- checkProvider: {
3143
+ connections: {
2097
3144
  parameters: {
2098
3145
  query?: never;
2099
3146
  header?: never;
2100
3147
  path: {
2101
3148
  org: string;
2102
- provider: string;
2103
3149
  };
2104
3150
  cookie?: never;
2105
3151
  };
@@ -2111,7 +3157,7 @@ export interface operations {
2111
3157
  [name: string]: unknown;
2112
3158
  };
2113
3159
  content: {
2114
- "application/json": components["schemas"]["SignInCheck"];
3160
+ "application/json": components["schemas"]["Connection"][];
2115
3161
  };
2116
3162
  };
2117
3163
  /** @description Refused */
@@ -2152,20 +3198,24 @@ export interface operations {
2152
3198
  };
2153
3199
  };
2154
3200
  };
2155
- newCertificate: {
3201
+ connect: {
2156
3202
  parameters: {
2157
3203
  query?: never;
2158
3204
  header?: never;
2159
3205
  path: {
2160
3206
  org: string;
2161
- provider: string;
3207
+ app: string;
2162
3208
  };
2163
3209
  cookie?: never;
2164
3210
  };
2165
3211
  requestBody: {
2166
3212
  content: {
2167
3213
  "application/json": {
2168
- by: string;
3214
+ capabilities: string[];
3215
+ fields: {
3216
+ [key: string]: string;
3217
+ };
3218
+ connectedBy: string;
2169
3219
  };
2170
3220
  };
2171
3221
  };
@@ -2176,7 +3226,7 @@ export interface operations {
2176
3226
  [name: string]: unknown;
2177
3227
  };
2178
3228
  content: {
2179
- "application/json": components["schemas"]["ProviderConnection"];
3229
+ "application/json": components["schemas"]["ConnectResult"];
2180
3230
  };
2181
3231
  };
2182
3232
  /** @description Refused */
@@ -2217,13 +3267,13 @@ export interface operations {
2217
3267
  };
2218
3268
  };
2219
3269
  };
2220
- activateCertificate: {
3270
+ disconnect: {
2221
3271
  parameters: {
2222
3272
  query?: never;
2223
3273
  header?: never;
2224
3274
  path: {
2225
3275
  org: string;
2226
- provider: string;
3276
+ app: string;
2227
3277
  };
2228
3278
  cookie?: never;
2229
3279
  };
@@ -2236,13 +3286,11 @@ export interface operations {
2236
3286
  };
2237
3287
  responses: {
2238
3288
  /** @description OK */
2239
- 200: {
3289
+ 204: {
2240
3290
  headers: {
2241
3291
  [name: string]: unknown;
2242
3292
  };
2243
- content: {
2244
- "application/json": components["schemas"]["ProviderConnection"];
2245
- };
3293
+ content?: never;
2246
3294
  };
2247
3295
  /** @description Refused */
2248
3296
  400: {
@@ -2282,39 +3330,31 @@ export interface operations {
2282
3330
  };
2283
3331
  };
2284
3332
  };
2285
- setProviderSettings: {
3333
+ setCeiling: {
2286
3334
  parameters: {
2287
3335
  query?: never;
2288
3336
  header?: never;
2289
3337
  path: {
2290
3338
  org: string;
2291
- provider: string;
3339
+ app: string;
2292
3340
  };
2293
3341
  cookie?: never;
2294
3342
  };
2295
3343
  requestBody: {
2296
3344
  content: {
2297
3345
  "application/json": {
2298
- values: {
2299
- [key: string]: string;
2300
- };
3346
+ capabilities: string[];
2301
3347
  by: string;
2302
3348
  };
2303
3349
  };
2304
3350
  };
2305
3351
  responses: {
2306
3352
  /** @description OK */
2307
- 200: {
3353
+ 204: {
2308
3354
  headers: {
2309
3355
  [name: string]: unknown;
2310
3356
  };
2311
- content: {
2312
- "application/json": {
2313
- settings: {
2314
- [key: string]: string;
2315
- };
2316
- };
2317
- };
3357
+ content?: never;
2318
3358
  };
2319
3359
  /** @description Refused */
2320
3360
  400: {
@@ -2354,16 +3394,28 @@ export interface operations {
2354
3394
  };
2355
3395
  };
2356
3396
  };
2357
- confirmed: {
3397
+ startConsent: {
2358
3398
  parameters: {
2359
3399
  query?: never;
2360
3400
  header?: never;
2361
3401
  path: {
2362
3402
  org: string;
3403
+ app: string;
2363
3404
  };
2364
3405
  cookie?: never;
2365
3406
  };
2366
- requestBody?: never;
3407
+ requestBody: {
3408
+ content: {
3409
+ "application/json": {
3410
+ capabilities: string[];
3411
+ /**
3412
+ * Format: uri
3413
+ * @description The admin app's own callback page: https, or http://localhost while developing
3414
+ */
3415
+ redirectUri: string;
3416
+ };
3417
+ };
3418
+ };
2367
3419
  responses: {
2368
3420
  /** @description OK */
2369
3421
  200: {
@@ -2371,7 +3423,7 @@ export interface operations {
2371
3423
  [name: string]: unknown;
2372
3424
  };
2373
3425
  content: {
2374
- "application/json": components["schemas"]["Confirmed"][];
3426
+ "application/json": components["schemas"]["SignIn"];
2375
3427
  };
2376
3428
  };
2377
3429
  /** @description Refused */
@@ -2412,30 +3464,41 @@ export interface operations {
2412
3464
  };
2413
3465
  };
2414
3466
  };
2415
- confirm: {
3467
+ finishConsent: {
2416
3468
  parameters: {
2417
3469
  query?: never;
2418
3470
  header?: never;
2419
3471
  path: {
2420
3472
  org: string;
2421
- step: string;
3473
+ app: string;
2422
3474
  };
2423
3475
  cookie?: never;
2424
3476
  };
2425
3477
  requestBody: {
2426
3478
  content: {
2427
3479
  "application/json": {
2428
- by: string;
3480
+ state: string;
3481
+ nonce: string;
3482
+ params: {
3483
+ [key: string]: string;
3484
+ };
3485
+ connectedBy: string;
2429
3486
  };
2430
3487
  };
2431
3488
  };
2432
3489
  responses: {
2433
3490
  /** @description OK */
2434
- 204: {
3491
+ 200: {
2435
3492
  headers: {
2436
3493
  [name: string]: unknown;
2437
3494
  };
2438
- content?: never;
3495
+ content: {
3496
+ "application/json": {
3497
+ redirect: string;
3498
+ } | {
3499
+ provider: components["schemas"]["ProviderConnection"];
3500
+ } | components["schemas"]["ConnectResult"];
3501
+ };
2439
3502
  };
2440
3503
  /** @description Refused */
2441
3504
  400: {
@@ -2475,17 +3538,20 @@ export interface operations {
2475
3538
  };
2476
3539
  };
2477
3540
  };
2478
- unconfirm: {
3541
+ check: {
2479
3542
  parameters: {
2480
- query?: never;
3543
+ query?: {
3544
+ /** @description false: read only */
3545
+ record?: string;
3546
+ };
2481
3547
  header?: never;
2482
3548
  path: {
2483
3549
  org: string;
2484
- step: string;
3550
+ app: string;
2485
3551
  };
2486
3552
  cookie?: never;
2487
3553
  };
2488
- requestBody: {
3554
+ requestBody?: {
2489
3555
  content: {
2490
3556
  "application/json": {
2491
3557
  by: string;
@@ -2494,11 +3560,13 @@ export interface operations {
2494
3560
  };
2495
3561
  responses: {
2496
3562
  /** @description OK */
2497
- 204: {
3563
+ 200: {
2498
3564
  headers: {
2499
3565
  [name: string]: unknown;
2500
3566
  };
2501
- content?: never;
3567
+ content: {
3568
+ "application/json": components["schemas"]["CheckOutcome"];
3569
+ };
2502
3570
  };
2503
3571
  /** @description Refused */
2504
3572
  400: {
@@ -2538,16 +3606,24 @@ export interface operations {
2538
3606
  };
2539
3607
  };
2540
3608
  };
2541
- connections: {
3609
+ setSites: {
2542
3610
  parameters: {
2543
3611
  query?: never;
2544
3612
  header?: never;
2545
3613
  path: {
2546
3614
  org: string;
3615
+ app: string;
2547
3616
  };
2548
3617
  cookie?: never;
2549
3618
  };
2550
- requestBody?: never;
3619
+ requestBody: {
3620
+ content: {
3621
+ "application/json": {
3622
+ sites: string[];
3623
+ by: string;
3624
+ };
3625
+ };
3626
+ };
2551
3627
  responses: {
2552
3628
  /** @description OK */
2553
3629
  200: {
@@ -2555,7 +3631,9 @@ export interface operations {
2555
3631
  [name: string]: unknown;
2556
3632
  };
2557
3633
  content: {
2558
- "application/json": components["schemas"]["Connection"][];
3634
+ "application/json": {
3635
+ sites: string[];
3636
+ };
2559
3637
  };
2560
3638
  };
2561
3639
  /** @description Refused */
@@ -2596,7 +3674,7 @@ export interface operations {
2596
3674
  };
2597
3675
  };
2598
3676
  };
2599
- connect: {
3677
+ checkSites: {
2600
3678
  parameters: {
2601
3679
  query?: never;
2602
3680
  header?: never;
@@ -2609,11 +3687,7 @@ export interface operations {
2609
3687
  requestBody: {
2610
3688
  content: {
2611
3689
  "application/json": {
2612
- capabilities: string[];
2613
- fields: {
2614
- [key: string]: string;
2615
- };
2616
- connectedBy: string;
3690
+ site?: string;
2617
3691
  };
2618
3692
  };
2619
3693
  };
@@ -2624,7 +3698,9 @@ export interface operations {
2624
3698
  [name: string]: unknown;
2625
3699
  };
2626
3700
  content: {
2627
- "application/json": components["schemas"]["ConnectResult"];
3701
+ "application/json": {
3702
+ sites: components["schemas"]["SiteAccess"][];
3703
+ };
2628
3704
  };
2629
3705
  };
2630
3706
  /** @description Refused */
@@ -2665,7 +3741,7 @@ export interface operations {
2665
3741
  };
2666
3742
  };
2667
3743
  };
2668
- disconnect: {
3744
+ agentAccess: {
2669
3745
  parameters: {
2670
3746
  query?: never;
2671
3747
  header?: never;
@@ -2678,17 +3754,20 @@ export interface operations {
2678
3754
  requestBody: {
2679
3755
  content: {
2680
3756
  "application/json": {
3757
+ value: string;
2681
3758
  by: string;
2682
3759
  };
2683
3760
  };
2684
3761
  };
2685
3762
  responses: {
2686
3763
  /** @description OK */
2687
- 204: {
3764
+ 200: {
2688
3765
  headers: {
2689
3766
  [name: string]: unknown;
2690
3767
  };
2691
- content?: never;
3768
+ content: {
3769
+ "application/json": components["schemas"]["AgentAccess"];
3770
+ };
2692
3771
  };
2693
3772
  /** @description Refused */
2694
3773
  400: {
@@ -2728,31 +3807,25 @@ export interface operations {
2728
3807
  };
2729
3808
  };
2730
3809
  };
2731
- setCeiling: {
3810
+ agents: {
2732
3811
  parameters: {
2733
3812
  query?: never;
2734
3813
  header?: never;
2735
3814
  path: {
2736
3815
  org: string;
2737
- app: string;
2738
3816
  };
2739
3817
  cookie?: never;
2740
3818
  };
2741
- requestBody: {
2742
- content: {
2743
- "application/json": {
2744
- capabilities: string[];
2745
- by: string;
2746
- };
2747
- };
2748
- };
3819
+ requestBody?: never;
2749
3820
  responses: {
2750
3821
  /** @description OK */
2751
- 204: {
3822
+ 200: {
2752
3823
  headers: {
2753
3824
  [name: string]: unknown;
2754
3825
  };
2755
- content?: never;
3826
+ content: {
3827
+ "application/json": components["schemas"]["Agent"][];
3828
+ };
2756
3829
  };
2757
3830
  /** @description Refused */
2758
3831
  400: {
@@ -2792,36 +3865,34 @@ export interface operations {
2792
3865
  };
2793
3866
  };
2794
3867
  };
2795
- startConsent: {
3868
+ createAgent: {
2796
3869
  parameters: {
2797
3870
  query?: never;
2798
3871
  header?: never;
2799
3872
  path: {
2800
3873
  org: string;
2801
- app: string;
2802
3874
  };
2803
3875
  cookie?: never;
2804
3876
  };
2805
3877
  requestBody: {
2806
3878
  content: {
2807
3879
  "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;
3880
+ name: string;
3881
+ createdBy: string;
2814
3882
  };
2815
3883
  };
2816
3884
  };
2817
3885
  responses: {
2818
3886
  /** @description OK */
2819
- 200: {
3887
+ 201: {
2820
3888
  headers: {
2821
3889
  [name: string]: unknown;
2822
3890
  };
2823
3891
  content: {
2824
- "application/json": components["schemas"]["SignIn"];
3892
+ "application/json": {
3893
+ agent: components["schemas"]["NewAgent"];
3894
+ key: string;
3895
+ };
2825
3896
  };
2826
3897
  };
2827
3898
  /** @description Refused */
@@ -2852,6 +3923,15 @@ export interface operations {
2852
3923
  };
2853
3924
  };
2854
3925
  /** @description Refused */
3926
+ 409: {
3927
+ headers: {
3928
+ [name: string]: unknown;
3929
+ };
3930
+ content: {
3931
+ "application/json": components["schemas"]["Error"];
3932
+ };
3933
+ };
3934
+ /** @description Refused */
2855
3935
  422: {
2856
3936
  headers: {
2857
3937
  [name: string]: unknown;
@@ -2862,41 +3942,30 @@ export interface operations {
2862
3942
  };
2863
3943
  };
2864
3944
  };
2865
- finishConsent: {
3945
+ deleteAgent: {
2866
3946
  parameters: {
2867
3947
  query?: never;
2868
3948
  header?: never;
2869
3949
  path: {
2870
3950
  org: string;
2871
- app: string;
3951
+ agent: string;
2872
3952
  };
2873
3953
  cookie?: never;
2874
3954
  };
2875
3955
  requestBody: {
2876
3956
  content: {
2877
3957
  "application/json": {
2878
- state: string;
2879
- nonce: string;
2880
- params: {
2881
- [key: string]: string;
2882
- };
2883
- connectedBy: string;
3958
+ by: string;
2884
3959
  };
2885
3960
  };
2886
3961
  };
2887
3962
  responses: {
2888
3963
  /** @description OK */
2889
- 200: {
3964
+ 204: {
2890
3965
  headers: {
2891
3966
  [name: string]: unknown;
2892
3967
  };
2893
- content: {
2894
- "application/json": {
2895
- redirect: string;
2896
- } | {
2897
- provider: components["schemas"]["ProviderConnection"];
2898
- } | components["schemas"]["ConnectResult"];
2899
- };
3968
+ content?: never;
2900
3969
  };
2901
3970
  /** @description Refused */
2902
3971
  400: {
@@ -2932,39 +4001,36 @@ export interface operations {
2932
4001
  };
2933
4002
  content: {
2934
4003
  "application/json": components["schemas"]["Error"];
2935
- };
2936
- };
2937
- };
2938
- };
2939
- check: {
2940
- parameters: {
2941
- query?: {
2942
- /** @description false: read only */
2943
- record?: string;
4004
+ };
2944
4005
  };
4006
+ };
4007
+ };
4008
+ setAgentStatus: {
4009
+ parameters: {
4010
+ query?: never;
2945
4011
  header?: never;
2946
4012
  path: {
2947
4013
  org: string;
2948
- app: string;
4014
+ agent: string;
2949
4015
  };
2950
4016
  cookie?: never;
2951
4017
  };
2952
- requestBody?: {
4018
+ requestBody: {
2953
4019
  content: {
2954
4020
  "application/json": {
4021
+ /** @enum {string} */
4022
+ status: "active" | "disabled";
2955
4023
  by: string;
2956
4024
  };
2957
4025
  };
2958
4026
  };
2959
4027
  responses: {
2960
4028
  /** @description OK */
2961
- 200: {
4029
+ 204: {
2962
4030
  headers: {
2963
4031
  [name: string]: unknown;
2964
4032
  };
2965
- content: {
2966
- "application/json": components["schemas"]["CheckOutcome"];
2967
- };
4033
+ content?: never;
2968
4034
  };
2969
4035
  /** @description Refused */
2970
4036
  400: {
@@ -3004,20 +4070,19 @@ export interface operations {
3004
4070
  };
3005
4071
  };
3006
4072
  };
3007
- setSites: {
4073
+ newKey: {
3008
4074
  parameters: {
3009
4075
  query?: never;
3010
4076
  header?: never;
3011
4077
  path: {
3012
4078
  org: string;
3013
- app: string;
4079
+ agent: string;
3014
4080
  };
3015
4081
  cookie?: never;
3016
4082
  };
3017
4083
  requestBody: {
3018
4084
  content: {
3019
4085
  "application/json": {
3020
- sites: string[];
3021
4086
  by: string;
3022
4087
  };
3023
4088
  };
@@ -3030,7 +4095,7 @@ export interface operations {
3030
4095
  };
3031
4096
  content: {
3032
4097
  "application/json": {
3033
- sites: string[];
4098
+ key: string;
3034
4099
  };
3035
4100
  };
3036
4101
  };
@@ -3072,12 +4137,13 @@ export interface operations {
3072
4137
  };
3073
4138
  };
3074
4139
  };
3075
- checkSites: {
4140
+ setGrant: {
3076
4141
  parameters: {
3077
4142
  query?: never;
3078
4143
  header?: never;
3079
4144
  path: {
3080
4145
  org: string;
4146
+ agent: string;
3081
4147
  app: string;
3082
4148
  };
3083
4149
  cookie?: never;
@@ -3085,21 +4151,19 @@ export interface operations {
3085
4151
  requestBody: {
3086
4152
  content: {
3087
4153
  "application/json": {
3088
- site?: string;
4154
+ capabilities: string[];
4155
+ limits?: unknown;
4156
+ by: string;
3089
4157
  };
3090
4158
  };
3091
4159
  };
3092
4160
  responses: {
3093
4161
  /** @description OK */
3094
- 200: {
4162
+ 204: {
3095
4163
  headers: {
3096
4164
  [name: string]: unknown;
3097
4165
  };
3098
- content: {
3099
- "application/json": {
3100
- sites: components["schemas"]["SiteAccess"][];
3101
- };
3102
- };
4166
+ content?: never;
3103
4167
  };
3104
4168
  /** @description Refused */
3105
4169
  400: {
@@ -3139,12 +4203,13 @@ export interface operations {
3139
4203
  };
3140
4204
  };
3141
4205
  };
3142
- agentAccess: {
4206
+ removeGrant: {
3143
4207
  parameters: {
3144
4208
  query?: never;
3145
4209
  header?: never;
3146
4210
  path: {
3147
4211
  org: string;
4212
+ agent: string;
3148
4213
  app: string;
3149
4214
  };
3150
4215
  cookie?: never;
@@ -3152,20 +4217,17 @@ export interface operations {
3152
4217
  requestBody: {
3153
4218
  content: {
3154
4219
  "application/json": {
3155
- value: string;
3156
4220
  by: string;
3157
4221
  };
3158
4222
  };
3159
4223
  };
3160
4224
  responses: {
3161
4225
  /** @description OK */
3162
- 200: {
4226
+ 204: {
3163
4227
  headers: {
3164
4228
  [name: string]: unknown;
3165
4229
  };
3166
- content: {
3167
- "application/json": components["schemas"]["AgentAccess"];
3168
- };
4230
+ content?: never;
3169
4231
  };
3170
4232
  /** @description Refused */
3171
4233
  400: {
@@ -3205,9 +4267,16 @@ export interface operations {
3205
4267
  };
3206
4268
  };
3207
4269
  };
3208
- agents: {
4270
+ audit: {
3209
4271
  parameters: {
3210
- query?: never;
4272
+ query?: {
4273
+ /** @description 1 to 500, default 50 */
4274
+ limit?: string;
4275
+ /** @description an agent id */
4276
+ agent?: string;
4277
+ /** @description an app id */
4278
+ app?: string;
4279
+ };
3211
4280
  header?: never;
3212
4281
  path: {
3213
4282
  org: string;
@@ -3222,7 +4291,7 @@ export interface operations {
3222
4291
  [name: string]: unknown;
3223
4292
  };
3224
4293
  content: {
3225
- "application/json": components["schemas"]["Agent"][];
4294
+ "application/json": components["schemas"]["AuditRow"][];
3226
4295
  };
3227
4296
  };
3228
4297
  /** @description Refused */
@@ -3263,7 +4332,7 @@ export interface operations {
3263
4332
  };
3264
4333
  };
3265
4334
  };
3266
- createAgent: {
4335
+ teamsBots: {
3267
4336
  parameters: {
3268
4337
  query?: never;
3269
4338
  header?: never;
@@ -3272,25 +4341,15 @@ export interface operations {
3272
4341
  };
3273
4342
  cookie?: never;
3274
4343
  };
3275
- requestBody: {
3276
- content: {
3277
- "application/json": {
3278
- name: string;
3279
- createdBy: string;
3280
- };
3281
- };
3282
- };
4344
+ requestBody?: never;
3283
4345
  responses: {
3284
4346
  /** @description OK */
3285
- 201: {
4347
+ 200: {
3286
4348
  headers: {
3287
4349
  [name: string]: unknown;
3288
4350
  };
3289
4351
  content: {
3290
- "application/json": {
3291
- agent: components["schemas"]["NewAgent"];
3292
- key: string;
3293
- };
4352
+ "application/json": components["schemas"]["TeamsBot"][];
3294
4353
  };
3295
4354
  };
3296
4355
  /** @description Refused */
@@ -3321,15 +4380,6 @@ export interface operations {
3321
4380
  };
3322
4381
  };
3323
4382
  /** @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
4383
  422: {
3334
4384
  headers: {
3335
4385
  [name: string]: unknown;
@@ -3340,30 +4390,27 @@ export interface operations {
3340
4390
  };
3341
4391
  };
3342
4392
  };
3343
- deleteAgent: {
4393
+ teamsSetupState: {
3344
4394
  parameters: {
3345
4395
  query?: never;
3346
4396
  header?: never;
3347
4397
  path: {
3348
4398
  org: string;
3349
- agent: string;
3350
4399
  };
3351
4400
  cookie?: never;
3352
4401
  };
3353
- requestBody: {
3354
- content: {
3355
- "application/json": {
3356
- by: string;
3357
- };
3358
- };
3359
- };
4402
+ requestBody?: never;
3360
4403
  responses: {
3361
4404
  /** @description OK */
3362
- 204: {
4405
+ 200: {
3363
4406
  headers: {
3364
4407
  [name: string]: unknown;
3365
4408
  };
3366
- content?: never;
4409
+ content: {
4410
+ "application/json": {
4411
+ [key: string]: components["schemas"]["LiveCheck"];
4412
+ };
4413
+ };
3367
4414
  };
3368
4415
  /** @description Refused */
3369
4416
  400: {
@@ -3403,32 +4450,40 @@ export interface operations {
3403
4450
  };
3404
4451
  };
3405
4452
  };
3406
- setAgentStatus: {
4453
+ finishTeamsPublish: {
3407
4454
  parameters: {
3408
4455
  query?: never;
3409
4456
  header?: never;
3410
4457
  path: {
3411
4458
  org: string;
3412
- agent: string;
3413
4459
  };
3414
4460
  cookie?: never;
3415
4461
  };
3416
4462
  requestBody: {
3417
4463
  content: {
3418
4464
  "application/json": {
3419
- /** @enum {string} */
3420
- status: "active" | "disabled";
4465
+ state: string;
4466
+ nonce: string;
4467
+ params: {
4468
+ [key: string]: string;
4469
+ };
3421
4470
  by: string;
3422
4471
  };
3423
4472
  };
3424
4473
  };
3425
4474
  responses: {
3426
4475
  /** @description OK */
3427
- 204: {
4476
+ 200: {
3428
4477
  headers: {
3429
4478
  [name: string]: unknown;
3430
4479
  };
3431
- content?: never;
4480
+ content: {
4481
+ "application/json": {
4482
+ agentId: string;
4483
+ version: string;
4484
+ changed: boolean;
4485
+ };
4486
+ };
3432
4487
  };
3433
4488
  /** @description Refused */
3434
4489
  400: {
@@ -3468,7 +4523,7 @@ export interface operations {
3468
4523
  };
3469
4524
  };
3470
4525
  };
3471
- newKey: {
4526
+ connectTeamsBot: {
3472
4527
  parameters: {
3473
4528
  query?: never;
3474
4529
  header?: never;
@@ -3481,6 +4536,7 @@ export interface operations {
3481
4536
  requestBody: {
3482
4537
  content: {
3483
4538
  "application/json": {
4539
+ botAppId: string;
3484
4540
  by: string;
3485
4541
  };
3486
4542
  };
@@ -3492,9 +4548,7 @@ export interface operations {
3492
4548
  [name: string]: unknown;
3493
4549
  };
3494
4550
  content: {
3495
- "application/json": {
3496
- key: string;
3497
- };
4551
+ "application/json": components["schemas"]["TeamsBotRecord"];
3498
4552
  };
3499
4553
  };
3500
4554
  /** @description Refused */
@@ -3535,33 +4589,33 @@ export interface operations {
3535
4589
  };
3536
4590
  };
3537
4591
  };
3538
- setGrant: {
4592
+ createTeamsBot: {
3539
4593
  parameters: {
3540
4594
  query?: never;
3541
4595
  header?: never;
3542
4596
  path: {
3543
4597
  org: string;
3544
4598
  agent: string;
3545
- app: string;
3546
4599
  };
3547
4600
  cookie?: never;
3548
4601
  };
3549
4602
  requestBody: {
3550
4603
  content: {
3551
4604
  "application/json": {
3552
- capabilities: string[];
3553
- limits?: unknown;
4605
+ displayName: string;
3554
4606
  by: string;
3555
4607
  };
3556
4608
  };
3557
4609
  };
3558
4610
  responses: {
3559
4611
  /** @description OK */
3560
- 204: {
4612
+ 200: {
3561
4613
  headers: {
3562
4614
  [name: string]: unknown;
3563
4615
  };
3564
- content?: never;
4616
+ content: {
4617
+ "application/json": components["schemas"]["TeamsBotRecord"];
4618
+ };
3565
4619
  };
3566
4620
  /** @description Refused */
3567
4621
  400: {
@@ -3601,14 +4655,13 @@ export interface operations {
3601
4655
  };
3602
4656
  };
3603
4657
  };
3604
- removeGrant: {
4658
+ removeTeamsBot: {
3605
4659
  parameters: {
3606
4660
  query?: never;
3607
4661
  header?: never;
3608
4662
  path: {
3609
4663
  org: string;
3610
4664
  agent: string;
3611
- app: string;
3612
4665
  };
3613
4666
  cookie?: never;
3614
4667
  };
@@ -3621,11 +4674,16 @@ export interface operations {
3621
4674
  };
3622
4675
  responses: {
3623
4676
  /** @description OK */
3624
- 204: {
4677
+ 200: {
3625
4678
  headers: {
3626
4679
  [name: string]: unknown;
3627
4680
  };
3628
- content?: never;
4681
+ content: {
4682
+ "application/json": {
4683
+ removal: string;
4684
+ failed: string[];
4685
+ };
4686
+ };
3629
4687
  };
3630
4688
  /** @description Refused */
3631
4689
  400: {
@@ -3665,23 +4723,24 @@ export interface operations {
3665
4723
  };
3666
4724
  };
3667
4725
  };
3668
- audit: {
4726
+ addToTeams: {
3669
4727
  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
- };
4728
+ query?: never;
3678
4729
  header?: never;
3679
4730
  path: {
3680
4731
  org: string;
4732
+ agent: string;
3681
4733
  };
3682
4734
  cookie?: never;
3683
4735
  };
3684
- requestBody?: never;
4736
+ requestBody: {
4737
+ content: {
4738
+ "application/json": {
4739
+ displayName: string;
4740
+ by: string;
4741
+ };
4742
+ };
4743
+ };
3685
4744
  responses: {
3686
4745
  /** @description OK */
3687
4746
  200: {
@@ -3689,7 +4748,10 @@ export interface operations {
3689
4748
  [name: string]: unknown;
3690
4749
  };
3691
4750
  content: {
3692
- "application/json": components["schemas"]["AuditRow"][];
4751
+ "application/json": {
4752
+ steps: components["schemas"]["AddStep"][];
4753
+ bot: components["schemas"]["TeamsBotRecord"];
4754
+ };
3693
4755
  };
3694
4756
  };
3695
4757
  /** @description Refused */
@@ -3730,16 +4792,27 @@ export interface operations {
3730
4792
  };
3731
4793
  };
3732
4794
  };
3733
- teamsBots: {
4795
+ startTeamsPublish: {
3734
4796
  parameters: {
3735
4797
  query?: never;
3736
4798
  header?: never;
3737
4799
  path: {
3738
4800
  org: string;
4801
+ agent: string;
3739
4802
  };
3740
4803
  cookie?: never;
3741
4804
  };
3742
- requestBody?: never;
4805
+ requestBody: {
4806
+ content: {
4807
+ "application/json": {
4808
+ /**
4809
+ * Format: uri
4810
+ * @description The admin app's own callback page: https, or http://localhost while developing
4811
+ */
4812
+ redirectUri: string;
4813
+ };
4814
+ };
4815
+ };
3743
4816
  responses: {
3744
4817
  /** @description OK */
3745
4818
  200: {
@@ -3747,7 +4820,7 @@ export interface operations {
3747
4820
  [name: string]: unknown;
3748
4821
  };
3749
4822
  content: {
3750
- "application/json": components["schemas"]["TeamsBot"][];
4823
+ "application/json": components["schemas"]["SignIn"];
3751
4824
  };
3752
4825
  };
3753
4826
  /** @description Refused */
@@ -3788,12 +4861,18 @@ export interface operations {
3788
4861
  };
3789
4862
  };
3790
4863
  };
3791
- teamsSetupState: {
4864
+ teamsTargets: {
3792
4865
  parameters: {
3793
- query?: never;
4866
+ query?: {
4867
+ /** @description team or person */
4868
+ kind?: string;
4869
+ /** @description what the admin typed */
4870
+ q?: string;
4871
+ };
3794
4872
  header?: never;
3795
4873
  path: {
3796
4874
  org: string;
4875
+ agent: string;
3797
4876
  };
3798
4877
  cookie?: never;
3799
4878
  };
@@ -3805,9 +4884,7 @@ export interface operations {
3805
4884
  [name: string]: unknown;
3806
4885
  };
3807
4886
  content: {
3808
- "application/json": {
3809
- [key: string]: components["schemas"]["LiveCheck"];
3810
- };
4887
+ "application/json": components["schemas"]["InstallTarget"][];
3811
4888
  };
3812
4889
  };
3813
4890
  /** @description Refused */
@@ -3848,23 +4925,22 @@ export interface operations {
3848
4925
  };
3849
4926
  };
3850
4927
  };
3851
- finishTeamsPublish: {
4928
+ installTeamsBot: {
3852
4929
  parameters: {
3853
4930
  query?: never;
3854
4931
  header?: never;
3855
4932
  path: {
3856
4933
  org: string;
4934
+ agent: string;
3857
4935
  };
3858
4936
  cookie?: never;
3859
4937
  };
3860
4938
  requestBody: {
3861
4939
  content: {
3862
4940
  "application/json": {
3863
- state: string;
3864
- nonce: string;
3865
- params: {
3866
- [key: string]: string;
3867
- };
4941
+ /** @enum {string} */
4942
+ kind: "team" | "chat" | "person";
4943
+ id: string;
3868
4944
  by: string;
3869
4945
  };
3870
4946
  };
@@ -3877,9 +4953,8 @@ export interface operations {
3877
4953
  };
3878
4954
  content: {
3879
4955
  "application/json": {
3880
- agentId: string;
3881
- version: string;
3882
- changed: boolean;
4956
+ /** @enum {string} */
4957
+ result: "added" | "already";
3883
4958
  };
3884
4959
  };
3885
4960
  };
@@ -3921,7 +4996,7 @@ export interface operations {
3921
4996
  };
3922
4997
  };
3923
4998
  };
3924
- connectTeamsBot: {
4999
+ teamsKit: {
3925
5000
  parameters: {
3926
5001
  query?: never;
3927
5002
  header?: never;
@@ -3931,14 +5006,7 @@ export interface operations {
3931
5006
  };
3932
5007
  cookie?: never;
3933
5008
  };
3934
- requestBody: {
3935
- content: {
3936
- "application/json": {
3937
- botAppId: string;
3938
- by: string;
3939
- };
3940
- };
3941
- };
5009
+ requestBody?: never;
3942
5010
  responses: {
3943
5011
  /** @description OK */
3944
5012
  200: {
@@ -3946,7 +5014,7 @@ export interface operations {
3946
5014
  [name: string]: unknown;
3947
5015
  };
3948
5016
  content: {
3949
- "application/json": components["schemas"]["TeamsBotRecord"];
5017
+ "text/plain": string;
3950
5018
  };
3951
5019
  };
3952
5020
  /** @description Refused */
@@ -3987,7 +5055,7 @@ export interface operations {
3987
5055
  };
3988
5056
  };
3989
5057
  };
3990
- createTeamsBot: {
5058
+ checkTeamsBot: {
3991
5059
  parameters: {
3992
5060
  query?: never;
3993
5061
  header?: never;
@@ -3997,14 +5065,7 @@ export interface operations {
3997
5065
  };
3998
5066
  cookie?: never;
3999
5067
  };
4000
- requestBody: {
4001
- content: {
4002
- "application/json": {
4003
- displayName: string;
4004
- by: string;
4005
- };
4006
- };
4007
- };
5068
+ requestBody?: never;
4008
5069
  responses: {
4009
5070
  /** @description OK */
4010
5071
  200: {
@@ -4012,7 +5073,7 @@ export interface operations {
4012
5073
  [name: string]: unknown;
4013
5074
  };
4014
5075
  content: {
4015
- "application/json": components["schemas"]["TeamsBotRecord"];
5076
+ "application/json": components["schemas"]["SignInCheck"];
4016
5077
  };
4017
5078
  };
4018
5079
  /** @description Refused */
@@ -4053,7 +5114,7 @@ export interface operations {
4053
5114
  };
4054
5115
  };
4055
5116
  };
4056
- removeTeamsBot: {
5117
+ teamsTest: {
4057
5118
  parameters: {
4058
5119
  query?: never;
4059
5120
  header?: never;
@@ -4066,6 +5127,7 @@ export interface operations {
4066
5127
  requestBody: {
4067
5128
  content: {
4068
5129
  "application/json": {
5130
+ conversationId: string;
4069
5131
  by: string;
4070
5132
  };
4071
5133
  };
@@ -4078,8 +5140,8 @@ export interface operations {
4078
5140
  };
4079
5141
  content: {
4080
5142
  "application/json": {
4081
- removal: string;
4082
- failed: string[];
5143
+ /** @constant */
5144
+ ok: true;
4083
5145
  };
4084
5146
  };
4085
5147
  };
@@ -4121,7 +5183,7 @@ export interface operations {
4121
5183
  };
4122
5184
  };
4123
5185
  };
4124
- addToTeams: {
5186
+ teamsCertificate: {
4125
5187
  parameters: {
4126
5188
  query?: never;
4127
5189
  header?: never;
@@ -4131,14 +5193,7 @@ export interface operations {
4131
5193
  };
4132
5194
  cookie?: never;
4133
5195
  };
4134
- requestBody: {
4135
- content: {
4136
- "application/json": {
4137
- displayName: string;
4138
- by: string;
4139
- };
4140
- };
4141
- };
5196
+ requestBody?: never;
4142
5197
  responses: {
4143
5198
  /** @description OK */
4144
5199
  200: {
@@ -4146,10 +5201,7 @@ export interface operations {
4146
5201
  [name: string]: unknown;
4147
5202
  };
4148
5203
  content: {
4149
- "application/json": {
4150
- steps: components["schemas"]["AddStep"][];
4151
- bot: components["schemas"]["TeamsBotRecord"];
4152
- };
5204
+ "application/x-pem-file": string;
4153
5205
  };
4154
5206
  };
4155
5207
  /** @description Refused */
@@ -4190,7 +5242,7 @@ export interface operations {
4190
5242
  };
4191
5243
  };
4192
5244
  };
4193
- startTeamsPublish: {
5245
+ newTeamsCertificate: {
4194
5246
  parameters: {
4195
5247
  query?: never;
4196
5248
  header?: never;
@@ -4203,11 +5255,7 @@ export interface operations {
4203
5255
  requestBody: {
4204
5256
  content: {
4205
5257
  "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;
5258
+ by: string;
4211
5259
  };
4212
5260
  };
4213
5261
  };
@@ -4218,7 +5266,11 @@ export interface operations {
4218
5266
  [name: string]: unknown;
4219
5267
  };
4220
5268
  content: {
4221
- "application/json": components["schemas"]["SignIn"];
5269
+ "application/json": {
5270
+ bot: components["schemas"]["TeamsBotRecord"];
5271
+ command: string | null;
5272
+ certificate: string;
5273
+ };
4222
5274
  };
4223
5275
  };
4224
5276
  /** @description Refused */
@@ -4259,14 +5311,9 @@ export interface operations {
4259
5311
  };
4260
5312
  };
4261
5313
  };
4262
- teamsTargets: {
5314
+ teamsPackage: {
4263
5315
  parameters: {
4264
- query?: {
4265
- /** @description team or person */
4266
- kind?: string;
4267
- /** @description what the admin typed */
4268
- q?: string;
4269
- };
5316
+ query?: never;
4270
5317
  header?: never;
4271
5318
  path: {
4272
5319
  org: string;
@@ -4282,7 +5329,7 @@ export interface operations {
4282
5329
  [name: string]: unknown;
4283
5330
  };
4284
5331
  content: {
4285
- "application/json": components["schemas"]["InstallTarget"][];
5332
+ "application/zip": string;
4286
5333
  };
4287
5334
  };
4288
5335
  /** @description Refused */
@@ -4323,7 +5370,7 @@ export interface operations {
4323
5370
  };
4324
5371
  };
4325
5372
  };
4326
- installTeamsBot: {
5373
+ activateTeamsCertificate: {
4327
5374
  parameters: {
4328
5375
  query?: never;
4329
5376
  header?: never;
@@ -4336,9 +5383,6 @@ export interface operations {
4336
5383
  requestBody: {
4337
5384
  content: {
4338
5385
  "application/json": {
4339
- /** @enum {string} */
4340
- kind: "team" | "chat" | "person";
4341
- id: string;
4342
5386
  by: string;
4343
5387
  };
4344
5388
  };
@@ -4350,10 +5394,7 @@ export interface operations {
4350
5394
  [name: string]: unknown;
4351
5395
  };
4352
5396
  content: {
4353
- "application/json": {
4354
- /** @enum {string} */
4355
- result: "added" | "already";
4356
- };
5397
+ "application/json": components["schemas"]["TeamsBotRecord"];
4357
5398
  };
4358
5399
  };
4359
5400
  /** @description Refused */
@@ -4394,7 +5435,7 @@ export interface operations {
4394
5435
  };
4395
5436
  };
4396
5437
  };
4397
- teamsKit: {
5438
+ teamsTrigger: {
4398
5439
  parameters: {
4399
5440
  query?: never;
4400
5441
  header?: never;
@@ -4412,7 +5453,7 @@ export interface operations {
4412
5453
  [name: string]: unknown;
4413
5454
  };
4414
5455
  content: {
4415
- "text/plain": string;
5456
+ "application/json": components["schemas"]["TeamsTrigger"];
4416
5457
  };
4417
5458
  };
4418
5459
  /** @description Refused */
@@ -4453,7 +5494,7 @@ export interface operations {
4453
5494
  };
4454
5495
  };
4455
5496
  };
4456
- checkTeamsBot: {
5497
+ setTeamsTrigger: {
4457
5498
  parameters: {
4458
5499
  query?: never;
4459
5500
  header?: never;
@@ -4463,7 +5504,43 @@ export interface operations {
4463
5504
  };
4464
5505
  cookie?: never;
4465
5506
  };
4466
- requestBody?: never;
5507
+ requestBody: {
5508
+ content: {
5509
+ "application/json": {
5510
+ enabled: boolean;
5511
+ /** @default claude-managed-agents */
5512
+ runner?: string;
5513
+ managedAgentId?: string;
5514
+ environmentId?: string;
5515
+ /** @default [] */
5516
+ vaultIds?: string[];
5517
+ budgetCents: number;
5518
+ /** @default 20 */
5519
+ maxRunsPerHour?: number;
5520
+ /** @default 500 */
5521
+ maxCentsPerDay?: number;
5522
+ /** @default 2 */
5523
+ maxConcurrent?: number;
5524
+ /**
5525
+ * @default mentions
5526
+ * @enum {string}
5527
+ */
5528
+ replyMode?: "mentions" | "all";
5529
+ /** @default [] */
5530
+ allowedTeams?: string[];
5531
+ /** @default [] */
5532
+ allowedPeople?: string[];
5533
+ /** @default {} */
5534
+ settings?: {
5535
+ [key: string]: unknown;
5536
+ };
5537
+ signingSecret?: string;
5538
+ /** @default false */
5539
+ anyoneInOrganization?: boolean;
5540
+ by: string;
5541
+ };
5542
+ };
5543
+ };
4467
5544
  responses: {
4468
5545
  /** @description OK */
4469
5546
  200: {
@@ -4471,7 +5548,7 @@ export interface operations {
4471
5548
  [name: string]: unknown;
4472
5549
  };
4473
5550
  content: {
4474
- "application/json": components["schemas"]["SignInCheck"];
5551
+ "application/json": components["schemas"]["TeamsTrigger"];
4475
5552
  };
4476
5553
  };
4477
5554
  /** @description Refused */
@@ -4512,9 +5589,12 @@ export interface operations {
4512
5589
  };
4513
5590
  };
4514
5591
  };
4515
- teamsTest: {
5592
+ teamsRuns: {
4516
5593
  parameters: {
4517
- query?: never;
5594
+ query?: {
5595
+ /** @description 1 to 200, default 20 */
5596
+ limit?: string;
5597
+ };
4518
5598
  header?: never;
4519
5599
  path: {
4520
5600
  org: string;
@@ -4522,14 +5602,7 @@ export interface operations {
4522
5602
  };
4523
5603
  cookie?: never;
4524
5604
  };
4525
- requestBody: {
4526
- content: {
4527
- "application/json": {
4528
- conversationId: string;
4529
- by: string;
4530
- };
4531
- };
4532
- };
5605
+ requestBody?: never;
4533
5606
  responses: {
4534
5607
  /** @description OK */
4535
5608
  200: {
@@ -4537,10 +5610,7 @@ export interface operations {
4537
5610
  [name: string]: unknown;
4538
5611
  };
4539
5612
  content: {
4540
- "application/json": {
4541
- /** @constant */
4542
- ok: true;
4543
- };
5613
+ "application/json": components["schemas"]["TeamsRun"][];
4544
5614
  };
4545
5615
  };
4546
5616
  /** @description Refused */
@@ -4581,13 +5651,12 @@ export interface operations {
4581
5651
  };
4582
5652
  };
4583
5653
  };
4584
- teamsCertificate: {
5654
+ eventSubscriptions: {
4585
5655
  parameters: {
4586
5656
  query?: never;
4587
5657
  header?: never;
4588
5658
  path: {
4589
5659
  org: string;
4590
- agent: string;
4591
5660
  };
4592
5661
  cookie?: never;
4593
5662
  };
@@ -4599,7 +5668,7 @@ export interface operations {
4599
5668
  [name: string]: unknown;
4600
5669
  };
4601
5670
  content: {
4602
- "application/x-pem-file": string;
5671
+ "application/json": components["schemas"]["EventSubscription"][];
4603
5672
  };
4604
5673
  };
4605
5674
  /** @description Refused */
@@ -4640,19 +5709,27 @@ export interface operations {
4640
5709
  };
4641
5710
  };
4642
5711
  };
4643
- newTeamsCertificate: {
5712
+ subscribeEvents: {
4644
5713
  parameters: {
4645
5714
  query?: never;
4646
5715
  header?: never;
4647
5716
  path: {
4648
5717
  org: string;
4649
- agent: string;
4650
5718
  };
4651
5719
  cookie?: never;
4652
5720
  };
4653
5721
  requestBody: {
4654
5722
  content: {
4655
5723
  "application/json": {
5724
+ app: string;
5725
+ /** @enum {string} */
5726
+ source: "webhook" | "poll";
5727
+ /** @default */
5728
+ filter?: string;
5729
+ /** @default 300 */
5730
+ intervalSeconds?: number;
5731
+ /** @default false */
5732
+ register?: boolean;
4656
5733
  by: string;
4657
5734
  };
4658
5735
  };
@@ -4664,11 +5741,7 @@ export interface operations {
4664
5741
  [name: string]: unknown;
4665
5742
  };
4666
5743
  content: {
4667
- "application/json": {
4668
- bot: components["schemas"]["TeamsBotRecord"];
4669
- command: string | null;
4670
- certificate: string;
4671
- };
5744
+ "application/json": components["schemas"]["EventSubscribed"];
4672
5745
  };
4673
5746
  };
4674
5747
  /** @description Refused */
@@ -4709,17 +5782,23 @@ export interface operations {
4709
5782
  };
4710
5783
  };
4711
5784
  };
4712
- teamsPackage: {
5785
+ rotateEventSecret: {
4713
5786
  parameters: {
4714
5787
  query?: never;
4715
5788
  header?: never;
4716
5789
  path: {
4717
5790
  org: string;
4718
- agent: string;
5791
+ subscription: string;
4719
5792
  };
4720
5793
  cookie?: never;
4721
5794
  };
4722
- requestBody?: never;
5795
+ requestBody: {
5796
+ content: {
5797
+ "application/json": {
5798
+ by: string;
5799
+ };
5800
+ };
5801
+ };
4723
5802
  responses: {
4724
5803
  /** @description OK */
4725
5804
  200: {
@@ -4727,7 +5806,10 @@ export interface operations {
4727
5806
  [name: string]: unknown;
4728
5807
  };
4729
5808
  content: {
4730
- "application/zip": string;
5809
+ "application/json": {
5810
+ subscription: components["schemas"]["EventSubscription"];
5811
+ secret: string;
5812
+ };
4731
5813
  };
4732
5814
  };
4733
5815
  /** @description Refused */
@@ -4768,13 +5850,13 @@ export interface operations {
4768
5850
  };
4769
5851
  };
4770
5852
  };
4771
- activateTeamsCertificate: {
5853
+ unsubscribeEvents: {
4772
5854
  parameters: {
4773
5855
  query?: never;
4774
5856
  header?: never;
4775
5857
  path: {
4776
5858
  org: string;
4777
- agent: string;
5859
+ subscription: string;
4778
5860
  };
4779
5861
  cookie?: never;
4780
5862
  };
@@ -4787,13 +5869,11 @@ export interface operations {
4787
5869
  };
4788
5870
  responses: {
4789
5871
  /** @description OK */
4790
- 200: {
5872
+ 204: {
4791
5873
  headers: {
4792
5874
  [name: string]: unknown;
4793
5875
  };
4794
- content: {
4795
- "application/json": components["schemas"]["TeamsBotRecord"];
4796
- };
5876
+ content?: never;
4797
5877
  };
4798
5878
  /** @description Refused */
4799
5879
  400: {
@@ -4833,7 +5913,7 @@ export interface operations {
4833
5913
  };
4834
5914
  };
4835
5915
  };
4836
- teamsTrigger: {
5916
+ eventTriggers: {
4837
5917
  parameters: {
4838
5918
  query?: never;
4839
5919
  header?: never;
@@ -4851,7 +5931,7 @@ export interface operations {
4851
5931
  [name: string]: unknown;
4852
5932
  };
4853
5933
  content: {
4854
- "application/json": components["schemas"]["TeamsTrigger"];
5934
+ "application/json": components["schemas"]["EventTrigger"][];
4855
5935
  };
4856
5936
  };
4857
5937
  /** @description Refused */
@@ -4892,13 +5972,14 @@ export interface operations {
4892
5972
  };
4893
5973
  };
4894
5974
  };
4895
- setTeamsTrigger: {
5975
+ setEventTrigger: {
4896
5976
  parameters: {
4897
5977
  query?: never;
4898
5978
  header?: never;
4899
5979
  path: {
4900
5980
  org: string;
4901
5981
  agent: string;
5982
+ app: string;
4902
5983
  };
4903
5984
  cookie?: never;
4904
5985
  };
@@ -4906,12 +5987,27 @@ export interface operations {
4906
5987
  content: {
4907
5988
  "application/json": {
4908
5989
  enabled: boolean;
5990
+ eventTypes: string[];
5991
+ /** @default [] */
5992
+ conditions?: ({
5993
+ field: string;
5994
+ in: string[];
5995
+ } | {
5996
+ field: string;
5997
+ notIn: string[];
5998
+ })[];
5999
+ prompt: string;
4909
6000
  /** @default claude-managed-agents */
4910
6001
  runner?: string;
4911
6002
  managedAgentId?: string;
4912
6003
  environmentId?: string;
4913
6004
  /** @default [] */
4914
6005
  vaultIds?: string[];
6006
+ /** @default {} */
6007
+ settings?: {
6008
+ [key: string]: unknown;
6009
+ };
6010
+ signingSecret?: string;
4915
6011
  budgetCents: number;
4916
6012
  /** @default 20 */
4917
6013
  maxRunsPerHour?: number;
@@ -4919,22 +6015,6 @@ export interface operations {
4919
6015
  maxCentsPerDay?: number;
4920
6016
  /** @default 2 */
4921
6017
  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
6018
  by: string;
4939
6019
  };
4940
6020
  };
@@ -4946,7 +6026,7 @@ export interface operations {
4946
6026
  [name: string]: unknown;
4947
6027
  };
4948
6028
  content: {
4949
- "application/json": components["schemas"]["TeamsTrigger"];
6029
+ "application/json": components["schemas"]["EventTrigger"];
4950
6030
  };
4951
6031
  };
4952
6032
  /** @description Refused */
@@ -4987,7 +6067,71 @@ export interface operations {
4987
6067
  };
4988
6068
  };
4989
6069
  };
4990
- teamsRuns: {
6070
+ removeEventTrigger: {
6071
+ parameters: {
6072
+ query?: never;
6073
+ header?: never;
6074
+ path: {
6075
+ org: string;
6076
+ agent: string;
6077
+ app: string;
6078
+ };
6079
+ cookie?: never;
6080
+ };
6081
+ requestBody: {
6082
+ content: {
6083
+ "application/json": {
6084
+ by: string;
6085
+ };
6086
+ };
6087
+ };
6088
+ responses: {
6089
+ /** @description OK */
6090
+ 204: {
6091
+ headers: {
6092
+ [name: string]: unknown;
6093
+ };
6094
+ content?: never;
6095
+ };
6096
+ /** @description Refused */
6097
+ 400: {
6098
+ headers: {
6099
+ [name: string]: unknown;
6100
+ };
6101
+ content: {
6102
+ "application/json": components["schemas"]["Error"];
6103
+ };
6104
+ };
6105
+ /** @description Refused */
6106
+ 401: {
6107
+ headers: {
6108
+ [name: string]: unknown;
6109
+ };
6110
+ content: {
6111
+ "application/json": components["schemas"]["Error"];
6112
+ };
6113
+ };
6114
+ /** @description Refused */
6115
+ 404: {
6116
+ headers: {
6117
+ [name: string]: unknown;
6118
+ };
6119
+ content: {
6120
+ "application/json": components["schemas"]["Error"];
6121
+ };
6122
+ };
6123
+ /** @description Refused */
6124
+ 422: {
6125
+ headers: {
6126
+ [name: string]: unknown;
6127
+ };
6128
+ content: {
6129
+ "application/json": components["schemas"]["Error"];
6130
+ };
6131
+ };
6132
+ };
6133
+ };
6134
+ eventRuns: {
4991
6135
  parameters: {
4992
6136
  query?: {
4993
6137
  /** @description 1 to 200, default 20 */
@@ -5008,7 +6152,7 @@ export interface operations {
5008
6152
  [name: string]: unknown;
5009
6153
  };
5010
6154
  content: {
5011
- "application/json": components["schemas"]["TeamsRun"][];
6155
+ "application/json": components["schemas"]["EventRun"][];
5012
6156
  };
5013
6157
  };
5014
6158
  /** @description Refused */