@ottocode/api 0.1.298 → 0.1.300

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.
@@ -210,8 +210,17 @@ export type ListSessionsResponse = ListSessionsResponses[keyof ListSessionsRespo
210
210
  export type CreateSessionData = {
211
211
  body?: {
212
212
  title?: string | null;
213
+ /**
214
+ * Agent name. Defaults to config. Agent provider/model overrides are used when provider/model are omitted.
215
+ */
213
216
  agent?: string;
217
+ /**
218
+ * Provider override. If omitted, selected agent provider override, then config default are used.
219
+ */
214
220
  provider?: string;
221
+ /**
222
+ * Model override. If omitted, selected agent model override, then config default are used.
223
+ */
215
224
  model?: string;
216
225
  };
217
226
  path?: never;
@@ -1159,15 +1168,21 @@ export type CreateMessageData = {
1159
1168
  body: {
1160
1169
  content: string;
1161
1170
  /**
1162
- * Agent name. Defaults to config if omitted.
1171
+ * Agent name. Defaults to the session agent, then config default. When explicitly changed and provider/model are omitted, the selected agent provider/model overrides are used before the session/default provider/model.
1163
1172
  */
1164
1173
  agent?: string;
1174
+ /**
1175
+ * Provider override for this message. If omitted, explicit agent provider override, session provider, then config default are used.
1176
+ */
1165
1177
  provider?: string;
1178
+ /**
1179
+ * Model override for this message. If omitted, explicit agent model override, session model, then config default are used.
1180
+ */
1166
1181
  model?: string;
1167
1182
  /**
1168
1183
  * Optional user-provided context to include in the system prompt.
1169
1184
  */
1170
- userContext?: string;
1185
+ userContext?: string | null;
1171
1186
  /**
1172
1187
  * Enable extended thinking / reasoning for models that support it.
1173
1188
  */
@@ -1303,6 +1318,10 @@ export type AskData = {
1303
1318
  * Optional model override for the selected provider.
1304
1319
  */
1305
1320
  model?: string;
1321
+ /**
1322
+ * Allow an explicit model id that is not present in the configured model catalog.
1323
+ */
1324
+ allowUnknownModel?: boolean;
1306
1325
  /**
1307
1326
  * Enable extended thinking / reasoning for models that support it.
1308
1327
  */
@@ -1323,6 +1342,17 @@ export type AskData = {
1323
1342
  * Request structured JSON output when supported by the agent.
1324
1343
  */
1325
1344
  jsonMode?: boolean;
1345
+ /**
1346
+ * Inline agent prompt for this request.
1347
+ */
1348
+ agentPrompt?: string;
1349
+ /**
1350
+ * Inline agent tool configuration split into first-class and loadable tools.
1351
+ */
1352
+ tools?: {
1353
+ firstClass?: Array<string>;
1354
+ loadable?: Array<string>;
1355
+ };
1326
1356
  };
1327
1357
  path?: never;
1328
1358
  query?: {
@@ -1456,6 +1486,247 @@ export type GetAgentsResponses = {
1456
1486
  };
1457
1487
  };
1458
1488
  export type GetAgentsResponse = GetAgentsResponses[keyof GetAgentsResponses];
1489
+ export type GetAgentDetailsData = {
1490
+ body?: never;
1491
+ path?: never;
1492
+ query?: {
1493
+ /**
1494
+ * Project root override (defaults to current working directory).
1495
+ */
1496
+ project?: string;
1497
+ };
1498
+ url: '/v1/config/agents/details';
1499
+ };
1500
+ export type GetAgentDetailsResponses = {
1501
+ /**
1502
+ * OK
1503
+ */
1504
+ 200: {
1505
+ agents: Array<{
1506
+ name: string;
1507
+ builtin: boolean;
1508
+ custom: boolean;
1509
+ source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
1510
+ prompt: string;
1511
+ promptSource: string;
1512
+ toolConfig: {
1513
+ firstClass?: Array<string>;
1514
+ loadable?: Array<string>;
1515
+ };
1516
+ defaultToolConfig: {
1517
+ firstClass?: Array<string>;
1518
+ loadable?: Array<string>;
1519
+ };
1520
+ appendToolConfig: {
1521
+ firstClass?: Array<string>;
1522
+ loadable?: Array<string>;
1523
+ };
1524
+ provider?: string;
1525
+ model?: string;
1526
+ editable: boolean;
1527
+ hasLocalOverride: boolean;
1528
+ hasGlobalOverride: boolean;
1529
+ }>;
1530
+ default: string;
1531
+ };
1532
+ };
1533
+ export type GetAgentDetailsResponse = GetAgentDetailsResponses[keyof GetAgentDetailsResponses];
1534
+ export type DeleteAgentData = {
1535
+ body?: never;
1536
+ path: {
1537
+ /**
1538
+ * Agent name.
1539
+ */
1540
+ agent: string;
1541
+ };
1542
+ query?: {
1543
+ /**
1544
+ * Project root override (defaults to current working directory).
1545
+ */
1546
+ project?: string;
1547
+ /**
1548
+ * Configuration scope. Defaults to local.
1549
+ */
1550
+ scope?: 'local' | 'global';
1551
+ };
1552
+ url: '/v1/config/agents/{agent}';
1553
+ };
1554
+ export type DeleteAgentResponses = {
1555
+ /**
1556
+ * OK
1557
+ */
1558
+ 200: {
1559
+ deleted: boolean;
1560
+ builtin: boolean;
1561
+ agent?: {
1562
+ name: string;
1563
+ builtin: boolean;
1564
+ custom: boolean;
1565
+ source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
1566
+ prompt: string;
1567
+ promptSource: string;
1568
+ toolConfig: {
1569
+ firstClass?: Array<string>;
1570
+ loadable?: Array<string>;
1571
+ };
1572
+ defaultToolConfig: {
1573
+ firstClass?: Array<string>;
1574
+ loadable?: Array<string>;
1575
+ };
1576
+ appendToolConfig: {
1577
+ firstClass?: Array<string>;
1578
+ loadable?: Array<string>;
1579
+ };
1580
+ provider?: string;
1581
+ model?: string;
1582
+ editable: boolean;
1583
+ hasLocalOverride: boolean;
1584
+ hasGlobalOverride: boolean;
1585
+ };
1586
+ };
1587
+ };
1588
+ export type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
1589
+ export type GetAgentData = {
1590
+ body?: never;
1591
+ path: {
1592
+ /**
1593
+ * Agent name.
1594
+ */
1595
+ agent: string;
1596
+ };
1597
+ query?: {
1598
+ /**
1599
+ * Project root override (defaults to current working directory).
1600
+ */
1601
+ project?: string;
1602
+ };
1603
+ url: '/v1/config/agents/{agent}';
1604
+ };
1605
+ export type GetAgentResponses = {
1606
+ /**
1607
+ * OK
1608
+ */
1609
+ 200: {
1610
+ agent: {
1611
+ name: string;
1612
+ builtin: boolean;
1613
+ custom: boolean;
1614
+ source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
1615
+ prompt: string;
1616
+ promptSource: string;
1617
+ toolConfig: {
1618
+ firstClass?: Array<string>;
1619
+ loadable?: Array<string>;
1620
+ };
1621
+ defaultToolConfig: {
1622
+ firstClass?: Array<string>;
1623
+ loadable?: Array<string>;
1624
+ };
1625
+ appendToolConfig: {
1626
+ firstClass?: Array<string>;
1627
+ loadable?: Array<string>;
1628
+ };
1629
+ provider?: string;
1630
+ model?: string;
1631
+ editable: boolean;
1632
+ hasLocalOverride: boolean;
1633
+ hasGlobalOverride: boolean;
1634
+ };
1635
+ };
1636
+ };
1637
+ export type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
1638
+ export type UpsertAgentData = {
1639
+ body: {
1640
+ scope?: 'local' | 'global';
1641
+ prompt?: string;
1642
+ promptStorage?: 'file' | 'inline';
1643
+ tools?: {
1644
+ firstClass?: Array<string>;
1645
+ loadable?: Array<string>;
1646
+ };
1647
+ appendTools?: {
1648
+ firstClass?: Array<string>;
1649
+ loadable?: Array<string>;
1650
+ };
1651
+ provider?: string | null;
1652
+ model?: string | null;
1653
+ };
1654
+ path: {
1655
+ /**
1656
+ * Agent name.
1657
+ */
1658
+ agent: string;
1659
+ };
1660
+ query?: {
1661
+ /**
1662
+ * Project root override (defaults to current working directory).
1663
+ */
1664
+ project?: string;
1665
+ };
1666
+ url: '/v1/config/agents/{agent}';
1667
+ };
1668
+ export type UpsertAgentResponses = {
1669
+ /**
1670
+ * OK
1671
+ */
1672
+ 200: {
1673
+ agent: {
1674
+ name: string;
1675
+ builtin: boolean;
1676
+ custom: boolean;
1677
+ source: 'builtin' | 'local' | 'global' | 'merged' | 'embedded';
1678
+ prompt: string;
1679
+ promptSource: string;
1680
+ toolConfig: {
1681
+ firstClass?: Array<string>;
1682
+ loadable?: Array<string>;
1683
+ };
1684
+ defaultToolConfig: {
1685
+ firstClass?: Array<string>;
1686
+ loadable?: Array<string>;
1687
+ };
1688
+ appendToolConfig: {
1689
+ firstClass?: Array<string>;
1690
+ loadable?: Array<string>;
1691
+ };
1692
+ provider?: string;
1693
+ model?: string;
1694
+ editable: boolean;
1695
+ hasLocalOverride: boolean;
1696
+ hasGlobalOverride: boolean;
1697
+ };
1698
+ };
1699
+ };
1700
+ export type UpsertAgentResponse = UpsertAgentResponses[keyof UpsertAgentResponses];
1701
+ export type GetConfigToolsData = {
1702
+ body?: never;
1703
+ path?: never;
1704
+ query?: {
1705
+ /**
1706
+ * Project root override (defaults to current working directory).
1707
+ */
1708
+ project?: string;
1709
+ };
1710
+ url: '/v1/config/tools';
1711
+ };
1712
+ export type GetConfigToolsResponses = {
1713
+ /**
1714
+ * OK
1715
+ */
1716
+ 200: {
1717
+ tools: Array<{
1718
+ name: string;
1719
+ description?: string;
1720
+ category: 'first_class' | 'loadable' | 'core' | 'filesystem' | 'search' | 'editing' | 'shell' | 'git' | 'web' | 'mcp' | 'skill' | 'research' | 'custom' | 'other';
1721
+ source: 'builtin' | 'mcp' | 'skill' | 'custom';
1722
+ activation?: 'first_class' | 'loadable' | 'mcp';
1723
+ required?: boolean;
1724
+ risky?: boolean;
1725
+ available: boolean;
1726
+ }>;
1727
+ };
1728
+ };
1729
+ export type GetConfigToolsResponse = GetConfigToolsResponses[keyof GetConfigToolsResponses];
1459
1730
  export type GetProvidersData = {
1460
1731
  body?: never;
1461
1732
  path?: never;
@@ -4869,7 +5140,7 @@ export type GetMcpAuthStatusResponse = GetMcpAuthStatusResponses[keyof GetMcpAut
4869
5140
  export type GetProviderUsageData = {
4870
5141
  body?: never;
4871
5142
  path: {
4872
- provider: 'anthropic' | 'openai';
5143
+ provider: 'anthropic' | 'openai' | 'xai';
4873
5144
  };
4874
5145
  query?: never;
4875
5146
  url: '/v1/provider-usage/{provider}';