@tyvm/knowhow-api-client 0.0.3 → 0.0.5

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.
@@ -23,6 +23,56 @@ declare namespace Components {
23
23
  comment: string;
24
24
  isSystem?: boolean;
25
25
  }
26
+ export interface AddMcpCatalogRequest {
27
+ uniqueName: string;
28
+ name: string;
29
+ command?: string | null;
30
+ args?: string[];
31
+ env?: any;
32
+ url?: string;
33
+ secretMapping?: any;
34
+ authConfig?: any;
35
+ enabled?: boolean;
36
+ onConnectServiceId?: string | null;
37
+ }
38
+ export interface AddSpecRequest {
39
+ providerKey: string;
40
+ name: string;
41
+ description: string;
42
+ spec: any;
43
+ isPublic?: boolean;
44
+ isCurated?: boolean;
45
+ defaultAuthConfig?: {
46
+ allowedOperations?: string[];
47
+ baseUrl?: string;
48
+ };
49
+ }
50
+ export interface AdminStatsResponse {
51
+ totalUsers: number; // double
52
+ totalOrganizations: number; // double
53
+ totalMonthlySpend: number; // double
54
+ totalAllTimeSpend: number; // double
55
+ }
56
+ /**
57
+ * Agent task with properly typed threads
58
+ * Matches the frontend Task interface from MessageSimulator.ts
59
+ */
60
+ export interface AgentTask {
61
+ id: string;
62
+ threads: /**
63
+ * Individual message within a thread
64
+ * Matches the frontend Message interface from MessageSimulator.ts
65
+ */
66
+ ThreadMessage[][];
67
+ response?: string;
68
+ totalUsdCost?: number; // double
69
+ inProgress?: boolean;
70
+ createdAt?: string; // date-time
71
+ updatedAt?: string; // date-time
72
+ orgUserChatMessageId?: string;
73
+ orgMessageId?: string | null;
74
+ publicChatMessageId?: string | null;
75
+ }
26
76
  /**
27
77
  * Simple API key passed in header or query parameter
28
78
  */
@@ -70,10 +120,40 @@ declare namespace Components {
70
120
  usd_cost?: number; // double
71
121
  nonBlocking?: boolean;
72
122
  title?: string;
123
+ tasks?: /**
124
+ * Model OrgAgentTask
125
+ * Represents an agent task linked to an organization message.
126
+ */
127
+ OrgAgentTask[];
73
128
  threads?: Message[][];
74
129
  chatMessageId?: string;
75
130
  sessionId?: string;
76
131
  }
132
+ /**
133
+ * Chat message returned by getChatSessionMessages
134
+ */
135
+ export interface ChatMessage {
136
+ role: string;
137
+ content: string;
138
+ id: string;
139
+ tasks?: /**
140
+ * Agent task with properly typed threads
141
+ * Matches the frontend Task interface from MessageSimulator.ts
142
+ */
143
+ AgentTask[];
144
+ }
145
+ /**
146
+ * Tool call made by the assistant in a thread message
147
+ * Renamed to avoid conflict with knowhow package ToolCall
148
+ */
149
+ export interface ChatToolCall {
150
+ id: string;
151
+ type: "function";
152
+ function: {
153
+ arguments: string;
154
+ name: string;
155
+ };
156
+ }
77
157
  export type CliLoginSessionStatus = N$16EnumsCliLoginSessionStatus;
78
158
  export interface CompletionResponse {
79
159
  choices: {
@@ -83,6 +163,16 @@ declare namespace Components {
83
163
  usage: any;
84
164
  usd_cost?: number; // double
85
165
  }
166
+ export interface CreateMcpServerRequest {
167
+ uniqueName: string;
168
+ name: string;
169
+ command: string;
170
+ args: string[];
171
+ url?: string;
172
+ secretMapping?: /* Construct a type with a set of properties K of type T */ RecordStringString;
173
+ authConfig?: any;
174
+ onConnectServiceId?: string;
175
+ }
86
176
  export interface CreateMessageTaskRequest {
87
177
  /**
88
178
  * The message ID to associate with the task
@@ -193,12 +283,55 @@ declare namespace Components {
193
283
  purchase: /* Model UserCreditPurchase */ UserCreditPurchase | /* Model OrgCreditPurchase */ OrgCreditPurchase | /* Model OrgUserCreditPurchase */ OrgUserCreditPurchase;
194
284
  newBalance: number; // double
195
285
  }
286
+ export interface DefaultSelectionPrisma36McpServerPayload {
287
+ onConnectServiceId: string;
288
+ enabled: boolean;
289
+ authConfig: /**
290
+ * From https://github.com/sindresorhus/type-fest/
291
+ * Matches any valid JSON value.
292
+ */
293
+ JsonValue;
294
+ secretMapping: /**
295
+ * From https://github.com/sindresorhus/type-fest/
296
+ * Matches any valid JSON value.
297
+ */
298
+ JsonValue;
299
+ url: string;
300
+ env: /**
301
+ * From https://github.com/sindresorhus/type-fest/
302
+ * Matches any valid JSON value.
303
+ */
304
+ JsonValue;
305
+ args: string[];
306
+ command: string;
307
+ uniqueName: string;
308
+ name: string;
309
+ updatedAt: string; // date-time
310
+ createdAt: string; // date-time
311
+ id: string;
312
+ }
313
+ export interface DefaultSelectionPrisma36OrgAgentTaskPayload {
314
+ publicChatMessageId: string;
315
+ orgMessageId: string;
316
+ orgUserChatMessageId: string;
317
+ inProgress: boolean;
318
+ threads: /**
319
+ * From https://github.com/sindresorhus/type-fest/
320
+ * Matches any valid JSON value.
321
+ */
322
+ JsonValue;
323
+ response: string;
324
+ totalUsdCost: number; // double
325
+ updatedAt: string; // date-time
326
+ createdAt: string; // date-time
327
+ status: string;
328
+ id: string;
329
+ }
196
330
  export interface DefaultSelectionPrisma36OrgBehaviorPayload {
197
331
  toolsDisabled: boolean;
198
332
  sponsoredDailySpendLimit: number; // double
199
333
  sponsoredDailyRequests: number; // double
200
334
  isSponsored: boolean;
201
- isPublic: boolean;
202
335
  model: string;
203
336
  embeddings: string;
204
337
  tools: string;
@@ -207,6 +340,7 @@ declare namespace Components {
207
340
  semanticTrigger: string;
208
341
  semanticTriggerText: string;
209
342
  textTrigger: string;
343
+ isPublic: boolean;
210
344
  description: string;
211
345
  organizationId: string;
212
346
  orgWorkers: string;
@@ -302,6 +436,7 @@ declare namespace Components {
302
436
  }
303
437
  export interface DefaultSelectionPrisma36OrgUserChatSessionPayload {
304
438
  title: string;
439
+ workerId: string;
305
440
  orgUserId: string;
306
441
  updatedAt: string; // date-time
307
442
  createdAt: string; // date-time
@@ -378,6 +513,8 @@ declare namespace Components {
378
513
  export interface DefaultSelectionPrisma36OrgWorkerPayload {
379
514
  lastConnected: string; // date-time
380
515
  connected: boolean;
516
+ shared: boolean;
517
+ serverId: string;
381
518
  fsRoot: string;
382
519
  userAgent: string;
383
520
  socketId: string;
@@ -389,6 +526,8 @@ declare namespace Components {
389
526
  coversUserExpenses: boolean;
390
527
  billingEmail: string;
391
528
  domain: string;
529
+ monthlySpendLimitUsd: number; // double
530
+ dailySpendLimitUsd: number; // double
392
531
  autoReloadThreshold: number; // double
393
532
  autoReloadEnabled: boolean;
394
533
  autoReloadAmount: number; // double
@@ -405,6 +544,29 @@ declare namespace Components {
405
544
  JsonValue;
406
545
  id: string;
407
546
  }
547
+ export interface DefaultSelectionPrisma36SwaggerCatalogPayload {
548
+ isCurated: boolean;
549
+ isPublic: boolean;
550
+ defaultAuthConfig: /**
551
+ * From https://github.com/sindresorhus/type-fest/
552
+ * Matches any valid JSON value.
553
+ */
554
+ JsonValue;
555
+ defaultBaseUrl: string;
556
+ spec: /**
557
+ * From https://github.com/sindresorhus/type-fest/
558
+ * Matches any valid JSON value.
559
+ */
560
+ JsonValue;
561
+ specHash: string;
562
+ version: string;
563
+ providerKey: string;
564
+ description: string;
565
+ name: string;
566
+ updatedAt: string; // date-time
567
+ createdAt: string; // date-time
568
+ id: string;
569
+ }
408
570
  export interface DefaultSelectionPrisma36TaskCheckPayload {
409
571
  executedAt: string; // date-time
410
572
  methodName: string;
@@ -514,6 +676,22 @@ declare namespace Components {
514
676
  isEnabled: boolean;
515
677
  enabledAt?: string; // date-time
516
678
  }
679
+ export interface GroupedCatalogEntry {
680
+ website: string;
681
+ apis: {
682
+ isCurated: boolean;
683
+ defaultBaseUrl: string | null;
684
+ specHash: string;
685
+ version: string;
686
+ description: string;
687
+ name: string;
688
+ providerKey: string;
689
+ }[];
690
+ }
691
+ export interface GroupedMcpCatalogEntry {
692
+ provider: string;
693
+ servers: McpCatalogSummary[];
694
+ }
517
695
  export interface HealthCheckResponse {
518
696
  status: "healthy" | "unhealthy" | "degraded";
519
697
  timestamp: string;
@@ -614,6 +792,33 @@ declare namespace Components {
614
792
  */
615
793
  JsonValue;
616
794
  }
795
+ /**
796
+ * JSON-RPC 2.0 error structure
797
+ */
798
+ export interface JsonRpcError {
799
+ code: number; // double
800
+ message: string;
801
+ data?: any;
802
+ }
803
+ /**
804
+ * JSON-RPC 2.0 request structure
805
+ */
806
+ export interface JsonRpcRequest {
807
+ jsonrpc: "2.0";
808
+ id?: string | number /* double */ | null;
809
+ method: string;
810
+ params?: any;
811
+ }
812
+ /**
813
+ * JSON-RPC 2.0 response structure
814
+ * Note: MCP protocol requires id to be string | number, NOT null
815
+ */
816
+ export interface JsonRpcResponse {
817
+ jsonrpc: "2.0";
818
+ id: string | number /* double */;
819
+ result?: any;
820
+ error?: /* JSON-RPC 2.0 error structure */ JsonRpcError;
821
+ }
617
822
  /**
618
823
  * From https://github.com/sindresorhus/type-fest/
619
824
  * Matches any valid JSON value.
@@ -631,7 +836,7 @@ declare namespace Components {
631
836
  * From https://github.com/sindresorhus/type-fest/
632
837
  * Matches a JSON array.
633
838
  */
634
- JsonArray | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null;
839
+ JsonArray | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null;
635
840
  export interface LivenessResponse {
636
841
  status: "live" | "dead";
637
842
  timestamp: string;
@@ -663,7 +868,29 @@ declare namespace Components {
663
868
  * Basic Auth via Login URL
664
869
  * Posts credentials to a login URL and extracts token from response
665
870
  */
666
- BasicAuthConfig | /* Simple API key passed in header or query parameter */ ApiKeyAuthConfig | /* No authentication required */ NoAuthConfig;
871
+ BasicAuthConfig | /* Simple API key passed in header or query parameter */ ApiKeyAuthConfig | /* No authentication required */ NoAuthConfig | /**
872
+ * Swagger/OpenAPI proxy authentication
873
+ * Uses swagger specs from catalog to expose HTTP APIs as MCP tools
874
+ */
875
+ SwaggerProxyAuthConfig;
876
+ export interface McpCatalogSummary {
877
+ id: string;
878
+ uniqueName: string;
879
+ name: string;
880
+ command: string | null;
881
+ args: string[];
882
+ url: string | null;
883
+ env: any;
884
+ secretMapping: any;
885
+ authConfig: any;
886
+ enabled: boolean;
887
+ onConnectServiceId: string | null;
888
+ }
889
+ /**
890
+ * Model McpServer
891
+ * Represents an MCP server configuration.
892
+ */
893
+ export type McpServer = DefaultSelectionPrisma36McpServerPayload;
667
894
  export interface Message {
668
895
  role: "system" | "user" | "assistant" | "tool";
669
896
  content?: string | MessageContent[];
@@ -697,6 +924,8 @@ declare namespace Components {
697
924
  autoReloadAmount?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
698
925
  autoReloadEnabled?: boolean | PrismaBoolFieldUpdateOperationsInput;
699
926
  autoReloadThreshold?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
927
+ dailySpendLimitUsd?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
928
+ monthlySpendLimitUsd?: number /* double */ | PrismaNullableFloatFieldUpdateOperationsInput;
700
929
  coversUserExpenses?: boolean | PrismaBoolFieldUpdateOperationsInput;
701
930
  }
702
931
  /**
@@ -732,6 +961,11 @@ declare namespace Components {
732
961
  * Construct a type with the properties of T except for those in type K.
733
962
  */
734
963
  export type OmitPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields = /* From T, pick a set of properties whose keys are in the union K */ PickPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsExcludeKeyofPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields;
964
+ /**
965
+ * Model OrgAgentTask
966
+ * Represents an agent task linked to an organization message.
967
+ */
968
+ export type OrgAgentTask = DefaultSelectionPrisma36OrgAgentTaskPayload;
735
969
  /**
736
970
  * Model OrgBehavior
737
971
  * Represents an organization's behavior configuration.
@@ -913,6 +1147,14 @@ declare namespace Components {
913
1147
  * Represents a tenant or organization in the system.
914
1148
  */
915
1149
  export type Organization = DefaultSelectionPrisma36OrganizationPayload;
1150
+ export interface OrganizationListItem {
1151
+ id: string;
1152
+ name: string;
1153
+ userCount: number; // double
1154
+ monthlySpend: number; // double
1155
+ allTimeSpend: number; // double
1156
+ createdAt: string; // date-time
1157
+ }
916
1158
  export type OrganizationUpdateData = NullablePartialPickPrismaOrganizationUncheckedUpdateWithoutUsersInputOrganizationOptionalFields;
917
1159
  export interface OutputMessage {
918
1160
  role: "system" | "user" | "assistant" | "tool";
@@ -952,6 +1194,13 @@ declare namespace Components {
952
1194
  export interface PaymentMethodResponse {
953
1195
  paymentMethod: /* Model UserPaymentMethod */ UserPaymentMethod | /* Model OrgPaymentMethod */ OrgPaymentMethod;
954
1196
  }
1197
+ export interface PendingMessage {
1198
+ id: string;
1199
+ message: string;
1200
+ role: string;
1201
+ createdAt: string; // date-time
1202
+ processedAt: string | null; // date-time
1203
+ }
955
1204
  /**
956
1205
  * From T, pick a set of properties whose keys are in the union K
957
1206
  */
@@ -1130,6 +1379,17 @@ declare namespace Components {
1130
1379
  export interface RecordStringAny {
1131
1380
  [name: string]: any;
1132
1381
  }
1382
+ /**
1383
+ * Construct a type with a set of properties K of type T
1384
+ */
1385
+ export interface RecordStringNumber {
1386
+ }
1387
+ /**
1388
+ * Construct a type with a set of properties K of type T
1389
+ */
1390
+ export interface RecordStringString {
1391
+ [name: string]: string;
1392
+ }
1133
1393
  export interface RequestPasswordResetRequest {
1134
1394
  email: string;
1135
1395
  otpCode?: string;
@@ -1167,6 +1427,14 @@ declare namespace Components {
1167
1427
  createdAt: string; // date-time
1168
1428
  updatedAt: string; // date-time
1169
1429
  }
1430
+ export interface SendMessageRequest {
1431
+ message: string;
1432
+ role?: "user" | "system";
1433
+ }
1434
+ export interface SendMessageResponse {
1435
+ id: string;
1436
+ message: string;
1437
+ }
1170
1438
  export interface ServiceStatus {
1171
1439
  status: "healthy" | "unhealthy" | "degraded";
1172
1440
  responseTime: number; // double
@@ -1193,6 +1461,33 @@ declare namespace Components {
1193
1461
  success: boolean;
1194
1462
  recoveryCodes: string[];
1195
1463
  }
1464
+ export interface SpecAnalysis {
1465
+ operationCount: number; // double
1466
+ hasAuthentication: boolean;
1467
+ authSchemes: string[];
1468
+ endpoints: string[];
1469
+ securityIssues: string[];
1470
+ }
1471
+ export interface StatusResponse {
1472
+ status: string;
1473
+ }
1474
+ /**
1475
+ * Model SwaggerCatalog
1476
+ * Represents a curated swagger/OpenAPI specification in the catalog.
1477
+ * These are pre-approved API specifications that can be used to create
1478
+ * swagger-backed MCP servers without uploading custom specs.
1479
+ */
1480
+ export type SwaggerCatalog = DefaultSelectionPrisma36SwaggerCatalogPayload;
1481
+ /**
1482
+ * Swagger/OpenAPI proxy authentication
1483
+ * Uses swagger specs from catalog to expose HTTP APIs as MCP tools
1484
+ */
1485
+ export interface SwaggerProxyAuthConfig {
1486
+ type: "swaggerProxy";
1487
+ providerKey: string;
1488
+ baseUrl: string;
1489
+ allowedOperations?: string[];
1490
+ }
1196
1491
  /**
1197
1492
  * Model TaskCheck
1198
1493
  * Represents a check that needs to be executed for a task
@@ -1286,6 +1581,23 @@ declare namespace Components {
1286
1581
  TaskTemplate[];
1287
1582
  total: number; // double
1288
1583
  }
1584
+ /**
1585
+ * Individual message within a thread
1586
+ * Matches the frontend Message interface from MessageSimulator.ts
1587
+ */
1588
+ export interface ThreadMessage {
1589
+ role: "user" | "assistant" | "system" | "tool";
1590
+ content: string;
1591
+ id?: string;
1592
+ timestamp?: string;
1593
+ name?: string;
1594
+ tool_call_id?: string;
1595
+ tool_calls?: /**
1596
+ * Tool call made by the assistant in a thread message
1597
+ * Renamed to avoid conflict with knowhow package ToolCall
1598
+ */
1599
+ ChatToolCall[];
1600
+ }
1289
1601
  export interface Tool {
1290
1602
  type: "function";
1291
1603
  function: {
@@ -1321,6 +1633,32 @@ declare namespace Components {
1321
1633
  };
1322
1634
  items?: ToolProp;
1323
1635
  }
1636
+ export interface TopSpenderOrg {
1637
+ id: string;
1638
+ name: string;
1639
+ monthlySpend: number; // double
1640
+ allTimeSpend: number; // double
1641
+ }
1642
+ export interface UpdateMcpCatalogRequest {
1643
+ name?: string;
1644
+ command?: string | null;
1645
+ args?: string[];
1646
+ env?: any;
1647
+ url?: string;
1648
+ secretMapping?: any;
1649
+ authConfig?: any;
1650
+ enabled?: boolean;
1651
+ onConnectServiceId?: string | null;
1652
+ }
1653
+ export interface UpdateMcpServerRequest {
1654
+ name?: string;
1655
+ command?: string;
1656
+ args?: string[];
1657
+ url?: string;
1658
+ secretMapping?: /* Construct a type with a set of properties K of type T */ RecordStringString;
1659
+ authConfig?: any;
1660
+ onConnectServiceId?: string;
1661
+ }
1324
1662
  export interface UpdateOrgMcpServerData {
1325
1663
  name?: string;
1326
1664
  uniqueName?: string;
@@ -1341,11 +1679,11 @@ declare namespace Components {
1341
1679
  /**
1342
1680
  * New thread messages to append
1343
1681
  */
1344
- threads?: {
1345
- timestamp?: string;
1346
- content: string;
1347
- role: "user" | "assistant" | "system";
1348
- }[][];
1682
+ threads?: /**
1683
+ * Individual message within a thread
1684
+ * Matches the frontend Message interface from MessageSimulator.ts
1685
+ */
1686
+ ThreadMessage[][];
1349
1687
  totalUsdCost?: number; // double
1350
1688
  /**
1351
1689
  * Task result/output
@@ -1397,6 +1735,17 @@ declare namespace Components {
1397
1735
  export interface UpdateSecretRequest {
1398
1736
  value: string;
1399
1737
  }
1738
+ export interface UpdateSpecRequest {
1739
+ name?: string;
1740
+ description?: string;
1741
+ spec?: any;
1742
+ isPublic?: boolean;
1743
+ isCurated?: boolean;
1744
+ defaultAuthConfig?: {
1745
+ allowedOperations?: string[];
1746
+ baseUrl?: string;
1747
+ };
1748
+ }
1400
1749
  /**
1401
1750
  * Model UserCreditPurchase
1402
1751
  */
@@ -1414,6 +1763,18 @@ declare namespace Components {
1414
1763
  createdAt: string; // date-time
1415
1764
  updatedAt: string; // date-time
1416
1765
  }
1766
+ export interface ValidateSpecRequest {
1767
+ spec: any;
1768
+ }
1769
+ /**
1770
+ * Service for validating and analyzing OpenAPI/Swagger specs for security issues
1771
+ */
1772
+ export interface ValidationResult {
1773
+ valid: boolean;
1774
+ errors: string[];
1775
+ warnings: string[];
1776
+ securityIssues: string[];
1777
+ }
1417
1778
  export interface Verify2FARequest {
1418
1779
  otpCode?: string;
1419
1780
  recoveryCode?: string;
@@ -1467,12 +1828,34 @@ declare namespace Paths {
1467
1828
  }
1468
1829
  }
1469
1830
  }
1831
+ namespace AddMcpCatalogServer {
1832
+ export type RequestBody = Components.Schemas.AddMcpCatalogRequest;
1833
+ namespace Responses {
1834
+ export type $201 = /**
1835
+ * Model McpServer
1836
+ * Represents an MCP server configuration.
1837
+ */
1838
+ Components.Schemas.McpServer;
1839
+ }
1840
+ }
1470
1841
  namespace AddOrgPaymentMethod {
1471
1842
  export type RequestBody = Components.Schemas.PaymentMethodCreateRequest;
1472
1843
  namespace Responses {
1473
1844
  export type $200 = Components.Schemas.PaymentMethodResponse;
1474
1845
  }
1475
1846
  }
1847
+ namespace AddSpec {
1848
+ export type RequestBody = Components.Schemas.AddSpecRequest;
1849
+ namespace Responses {
1850
+ export type $201 = /**
1851
+ * Model SwaggerCatalog
1852
+ * Represents a curated swagger/OpenAPI specification in the catalog.
1853
+ * These are pre-approved API specifications that can be used to create
1854
+ * swagger-backed MCP servers without uploading custom specs.
1855
+ */
1856
+ Components.Schemas.SwaggerCatalog;
1857
+ }
1858
+ }
1476
1859
  namespace AddUserPaymentMethod {
1477
1860
  export type RequestBody = Components.Schemas.PaymentMethodCreateRequest;
1478
1861
  namespace Responses {
@@ -1551,6 +1934,17 @@ declare namespace Paths {
1551
1934
  }
1552
1935
  }
1553
1936
  }
1937
+ namespace ClearCache {
1938
+ namespace Parameters {
1939
+ export type OrgMcpServerId = string;
1940
+ }
1941
+ export interface PathParameters {
1942
+ orgMcpServerId: Parameters.OrgMcpServerId;
1943
+ }
1944
+ namespace Responses {
1945
+ export type $200 = any;
1946
+ }
1947
+ }
1554
1948
  namespace ConnectGitHubAccount {
1555
1949
  export interface RequestBody {
1556
1950
  redirect_uri: string;
@@ -1637,6 +2031,16 @@ declare namespace Paths {
1637
2031
  }
1638
2032
  }
1639
2033
  }
2034
+ namespace CreateMcpServer {
2035
+ export type RequestBody = Components.Schemas.CreateMcpServerRequest;
2036
+ namespace Responses {
2037
+ export type $201 = /**
2038
+ * Model McpServer
2039
+ * Represents an MCP server configuration.
2040
+ */
2041
+ Components.Schemas.McpServer;
2042
+ }
2043
+ }
1640
2044
  namespace CreateMessageTask {
1641
2045
  export type RequestBody = Components.Schemas.CreateMessageTaskRequest;
1642
2046
  namespace Responses {
@@ -1719,6 +2123,8 @@ declare namespace Paths {
1719
2123
  coversUserExpenses: boolean;
1720
2124
  billingEmail: string;
1721
2125
  domain: string;
2126
+ monthlySpendLimitUsd: number; // double
2127
+ dailySpendLimitUsd: number; // double
1722
2128
  autoReloadThreshold: number; // double
1723
2129
  autoReloadEnabled: boolean;
1724
2130
  autoReloadAmount: number; // double
@@ -1862,6 +2268,30 @@ declare namespace Paths {
1862
2268
  }
1863
2269
  }
1864
2270
  }
2271
+ namespace DeleteMcpCatalogServer {
2272
+ namespace Parameters {
2273
+ export type UniqueName = string;
2274
+ }
2275
+ export interface PathParameters {
2276
+ uniqueName: Parameters.UniqueName;
2277
+ }
2278
+ namespace Responses {
2279
+ export interface $204 {
2280
+ }
2281
+ }
2282
+ }
2283
+ namespace DeleteMcpServer {
2284
+ namespace Parameters {
2285
+ export type Id = string;
2286
+ }
2287
+ export interface PathParameters {
2288
+ id: Parameters.Id;
2289
+ }
2290
+ namespace Responses {
2291
+ export interface $204 {
2292
+ }
2293
+ }
2294
+ }
1865
2295
  namespace DeleteOrgBehavior {
1866
2296
  namespace Parameters {
1867
2297
  export type Id = string;
@@ -1978,6 +2408,18 @@ declare namespace Paths {
1978
2408
  }
1979
2409
  }
1980
2410
  }
2411
+ namespace DeleteSpec {
2412
+ namespace Parameters {
2413
+ export type ProviderKey = string;
2414
+ }
2415
+ export interface PathParameters {
2416
+ providerKey: Parameters.ProviderKey;
2417
+ }
2418
+ namespace Responses {
2419
+ export interface $204 {
2420
+ }
2421
+ }
2422
+ }
1981
2423
  namespace DeleteTask {
1982
2424
  namespace Parameters {
1983
2425
  export type Id = string;
@@ -2083,6 +2525,11 @@ declare namespace Paths {
2083
2525
  export type $200 = Components.Schemas.Get2FAStatusResponse;
2084
2526
  }
2085
2527
  }
2528
+ namespace GetAdminStats {
2529
+ namespace Responses {
2530
+ export type $200 = Components.Schemas.AdminStatsResponse;
2531
+ }
2532
+ }
2086
2533
  namespace GetAllEmbeddingEntries {
2087
2534
  namespace Parameters {
2088
2535
  export type Id = string;
@@ -2123,6 +2570,19 @@ declare namespace Paths {
2123
2570
  }
2124
2571
  }
2125
2572
  }
2573
+ namespace GetBudget {
2574
+ namespace Responses {
2575
+ export interface $200 {
2576
+ totalBudget: number; // double
2577
+ hasCredits: boolean;
2578
+ coversUserExpenses: boolean;
2579
+ user: number; // double
2580
+ orgUser: number; // double
2581
+ org: number; // double
2582
+ total: number; // double
2583
+ }
2584
+ }
2585
+ }
2126
2586
  namespace GetChatSession {
2127
2587
  namespace Parameters {
2128
2588
  export type SessionId = string;
@@ -2142,26 +2602,7 @@ declare namespace Paths {
2142
2602
  sessionId: Parameters.SessionId;
2143
2603
  }
2144
2604
  namespace Responses {
2145
- export type $200 = {
2146
- tasks?: {
2147
- publicChatMessageId: string;
2148
- orgMessageId: string;
2149
- orgUserChatMessageId: string;
2150
- inProgress: boolean;
2151
- threads: /**
2152
- * From https://github.com/sindresorhus/type-fest/
2153
- * Matches any valid JSON value.
2154
- */
2155
- Components.Schemas.JsonValue;
2156
- totalUsdCost: number; // double
2157
- updatedAt: string; // date-time
2158
- createdAt: string; // date-time
2159
- id: string;
2160
- }[];
2161
- id: string;
2162
- content: string;
2163
- role: string;
2164
- }[];
2605
+ export type $200 = /* Chat message returned by getChatSessionMessages */ Components.Schemas.ChatMessage[];
2165
2606
  }
2166
2607
  }
2167
2608
  namespace GetChatSessions {
@@ -2182,6 +2623,8 @@ declare namespace Paths {
2182
2623
  export interface $200 {
2183
2624
  scopes: string[];
2184
2625
  orgUser: {
2626
+ monthlySpendLimitUsd: number; // double
2627
+ dailySpendLimitUsd: number; // double
2185
2628
  organizationId: string;
2186
2629
  role: number; // double
2187
2630
  userId: string;
@@ -2203,6 +2646,8 @@ declare namespace Paths {
2203
2646
  coversUserExpenses: boolean;
2204
2647
  billingEmail: string;
2205
2648
  domain: string;
2649
+ monthlySpendLimitUsd: number; // double
2650
+ dailySpendLimitUsd: number; // double
2206
2651
  autoReloadThreshold: number; // double
2207
2652
  autoReloadEnabled: boolean;
2208
2653
  autoReloadAmount: number; // double
@@ -2219,6 +2664,8 @@ declare namespace Paths {
2219
2664
  Components.Schemas.JsonValue;
2220
2665
  id: string;
2221
2666
  };
2667
+ monthlySpendLimitUsd: number; // double
2668
+ dailySpendLimitUsd: number; // double
2222
2669
  organizationId: string;
2223
2670
  role: number; // double
2224
2671
  userId: string;
@@ -2316,6 +2763,21 @@ declare namespace Paths {
2316
2763
  }
2317
2764
  }
2318
2765
  }
2766
+ namespace GetFeeInfo {
2767
+ namespace Parameters {
2768
+ export type Amount = number; // double
2769
+ }
2770
+ export interface QueryParameters {
2771
+ amount?: Parameters.Amount /* double */;
2772
+ }
2773
+ namespace Responses {
2774
+ export interface $200 {
2775
+ netCredits?: number; // double
2776
+ feeAmount?: number; // double
2777
+ feePercent: number; // double
2778
+ }
2779
+ }
2780
+ }
2319
2781
  namespace GetHealth {
2320
2782
  namespace Responses {
2321
2783
  export type $200 = Components.Schemas.HealthCheckResponse;
@@ -2331,6 +2793,36 @@ declare namespace Paths {
2331
2793
  export type $503 = Components.Schemas.LivenessResponse;
2332
2794
  }
2333
2795
  }
2796
+ namespace GetMcpCatalogGrouped {
2797
+ namespace Responses {
2798
+ export type $200 = Components.Schemas.GroupedMcpCatalogEntry[];
2799
+ }
2800
+ }
2801
+ namespace GetMcpCatalogServer {
2802
+ namespace Parameters {
2803
+ export type UniqueName = string;
2804
+ }
2805
+ export interface PathParameters {
2806
+ uniqueName: Parameters.UniqueName;
2807
+ }
2808
+ namespace Responses {
2809
+ export type $200 = Components.Schemas.DefaultSelectionPrisma36McpServerPayload;
2810
+ }
2811
+ }
2812
+ namespace GetMcpProxyTools {
2813
+ namespace Parameters {
2814
+ export type OrgMcpServerId = string;
2815
+ }
2816
+ export interface PathParameters {
2817
+ orgMcpServerId: Parameters.OrgMcpServerId;
2818
+ }
2819
+ namespace Responses {
2820
+ export interface $200 {
2821
+ error?: string;
2822
+ tools?: any[];
2823
+ }
2824
+ }
2825
+ }
2334
2826
  namespace GetModels {
2335
2827
  namespace Parameters {
2336
2828
  export type Type = "completion" | "embedding" | "all";
@@ -2471,6 +2963,8 @@ declare namespace Paths {
2471
2963
  coversUserExpenses: boolean;
2472
2964
  billingEmail: string;
2473
2965
  domain: string;
2966
+ monthlySpendLimitUsd: number; // double
2967
+ dailySpendLimitUsd: number; // double
2474
2968
  autoReloadThreshold: number; // double
2475
2969
  autoReloadEnabled: boolean;
2476
2970
  autoReloadAmount: number; // double
@@ -2557,7 +3051,6 @@ declare namespace Paths {
2557
3051
  sponsoredDailySpendLimit: number; // double
2558
3052
  sponsoredDailyRequests: number; // double
2559
3053
  isSponsored: boolean;
2560
- isPublic: boolean;
2561
3054
  model: string;
2562
3055
  embeddings: string;
2563
3056
  tools: string;
@@ -2566,6 +3059,7 @@ declare namespace Paths {
2566
3059
  semanticTrigger: string;
2567
3060
  semanticTriggerText: string;
2568
3061
  textTrigger: string;
3062
+ isPublic: boolean;
2569
3063
  description: string;
2570
3064
  organizationId: string;
2571
3065
  orgWorkers: string;
@@ -2584,9 +3078,11 @@ declare namespace Paths {
2584
3078
  * Matches any valid JSON value.
2585
3079
  */
2586
3080
  Components.Schemas.JsonValue;
3081
+ response: string;
2587
3082
  totalUsdCost: number; // double
2588
3083
  updatedAt: string; // date-time
2589
3084
  createdAt: string; // date-time
3085
+ status: string;
2590
3086
  id: string;
2591
3087
  }[];
2592
3088
  orgService: {
@@ -2657,7 +3153,6 @@ declare namespace Paths {
2657
3153
  sponsoredDailySpendLimit: number; // double
2658
3154
  sponsoredDailyRequests: number; // double
2659
3155
  isSponsored: boolean;
2660
- isPublic: boolean;
2661
3156
  model: string;
2662
3157
  embeddings: string;
2663
3158
  tools: string;
@@ -2666,6 +3161,7 @@ declare namespace Paths {
2666
3161
  semanticTrigger: string;
2667
3162
  semanticTriggerText: string;
2668
3163
  textTrigger: string;
3164
+ isPublic: boolean;
2669
3165
  description: string;
2670
3166
  organizationId: string;
2671
3167
  orgWorkers: string;
@@ -2807,6 +3303,8 @@ declare namespace Paths {
2807
3303
  namespace GetOrgUsers {
2808
3304
  namespace Responses {
2809
3305
  export type $200 = {
3306
+ monthlySpendLimitUsd: number; // double
3307
+ dailySpendLimitUsd: number; // double
2810
3308
  email: string;
2811
3309
  organizationId: string;
2812
3310
  role: number; // double
@@ -2822,12 +3320,27 @@ declare namespace Paths {
2822
3320
  export type $200 = /* Model OrgWorker */ Components.Schemas.OrgWorker[];
2823
3321
  }
2824
3322
  }
3323
+ namespace GetOrganizations {
3324
+ namespace Parameters {
3325
+ export type Limit = number; // double
3326
+ export type Offset = number; // double
3327
+ }
3328
+ export interface QueryParameters {
3329
+ limit?: Parameters.Limit /* double */;
3330
+ offset?: Parameters.Offset /* double */;
3331
+ }
3332
+ namespace Responses {
3333
+ export type $200 = Components.Schemas.OrganizationListItem[];
3334
+ }
3335
+ }
2825
3336
  namespace GetOrganizationsByUserId {
2826
3337
  namespace Responses {
2827
3338
  export type $200 = {
2828
3339
  coversUserExpenses: boolean;
2829
3340
  billingEmail: string;
2830
3341
  domain: string;
3342
+ monthlySpendLimitUsd: number; // double
3343
+ dailySpendLimitUsd: number; // double
2831
3344
  autoReloadThreshold: number; // double
2832
3345
  autoReloadEnabled: boolean;
2833
3346
  autoReloadAmount: number; // double
@@ -2853,6 +3366,8 @@ declare namespace Paths {
2853
3366
  coversUserExpenses: boolean;
2854
3367
  billingEmail: string;
2855
3368
  domain: string;
3369
+ monthlySpendLimitUsd: number; // double
3370
+ dailySpendLimitUsd: number; // double
2856
3371
  autoReloadThreshold: number; // double
2857
3372
  autoReloadEnabled: boolean;
2858
3373
  autoReloadAmount: number; // double
@@ -2880,6 +3395,17 @@ declare namespace Paths {
2880
3395
  }[];
2881
3396
  }
2882
3397
  }
3398
+ namespace GetPendingMessages {
3399
+ namespace Parameters {
3400
+ export type TaskId = string;
3401
+ }
3402
+ export interface PathParameters {
3403
+ taskId: Parameters.TaskId;
3404
+ }
3405
+ namespace Responses {
3406
+ export type $200 = Components.Schemas.PendingMessage[];
3407
+ }
3408
+ }
2883
3409
  namespace GetPublicBehavior {
2884
3410
  namespace Parameters {
2885
3411
  export type Id = string;
@@ -2897,6 +3423,17 @@ declare namespace Paths {
2897
3423
  } | null;
2898
3424
  }
2899
3425
  }
3426
+ namespace GetPublicCatalogGrouped {
3427
+ namespace Parameters {
3428
+ export type CuratedOnly = boolean;
3429
+ }
3430
+ export interface QueryParameters {
3431
+ curatedOnly?: Parameters.CuratedOnly;
3432
+ }
3433
+ namespace Responses {
3434
+ export type $200 = Components.Schemas.GroupedCatalogEntry[];
3435
+ }
3436
+ }
2900
3437
  namespace GetReadiness {
2901
3438
  namespace Responses {
2902
3439
  export type $200 = Components.Schemas.ReadinessResponse;
@@ -2942,6 +3479,17 @@ declare namespace Paths {
2942
3479
  }
2943
3480
  }
2944
3481
  }
3482
+ namespace GetSpec {
3483
+ namespace Parameters {
3484
+ export type ProviderKey = string;
3485
+ }
3486
+ export interface PathParameters {
3487
+ providerKey: Parameters.ProviderKey;
3488
+ }
3489
+ namespace Responses {
3490
+ export type $200 = Components.Schemas.DefaultSelectionPrisma36SwaggerCatalogPayload;
3491
+ }
3492
+ }
2945
3493
  namespace GetTask {
2946
3494
  namespace Parameters {
2947
3495
  export type Id = string;
@@ -2953,6 +3501,17 @@ declare namespace Paths {
2953
3501
  export type $200 = Components.Schemas.OrgUserTaskWithRelations;
2954
3502
  }
2955
3503
  }
3504
+ namespace GetTaskDetails {
3505
+ namespace Parameters {
3506
+ export type TaskId = string;
3507
+ }
3508
+ export interface PathParameters {
3509
+ taskId: Parameters.TaskId;
3510
+ }
3511
+ namespace Responses {
3512
+ export type $200 = any;
3513
+ }
3514
+ }
2956
3515
  namespace GetTasks {
2957
3516
  namespace Parameters {
2958
3517
  export type Limit = number; // double
@@ -3013,13 +3572,39 @@ declare namespace Paths {
3013
3572
  }
3014
3573
  }
3015
3574
  namespace GetTools {
3575
+ namespace Parameters {
3576
+ export type Workers = string;
3577
+ }
3578
+ export interface QueryParameters {
3579
+ workers?: Parameters.Workers;
3580
+ }
3016
3581
  namespace Responses {
3017
- export type $200 = Components.Schemas.Tool[];
3582
+ export type $200 = {
3583
+ type?: string;
3584
+ function: {
3585
+ parameters?: any;
3586
+ description?: string;
3587
+ name: string;
3588
+ };
3589
+ }[];
3018
3590
  export interface $500 {
3019
3591
  error: string;
3020
3592
  }
3021
3593
  }
3022
3594
  }
3595
+ namespace GetTopSpenders {
3596
+ namespace Parameters {
3597
+ export type Limit = number; // double
3598
+ export type Period = "month" | "alltime";
3599
+ }
3600
+ export interface QueryParameters {
3601
+ limit?: Parameters.Limit /* double */;
3602
+ period?: Parameters.Period;
3603
+ }
3604
+ namespace Responses {
3605
+ export type $200 = Components.Schemas.TopSpenderOrg[];
3606
+ }
3607
+ }
3023
3608
  namespace GetTriggeredOrgBehaviors {
3024
3609
  namespace Parameters {
3025
3610
  export type UserInput = string;
@@ -3051,6 +3636,70 @@ declare namespace Paths {
3051
3636
  }
3052
3637
  }
3053
3638
  }
3639
+ namespace GetUsageBreakdown {
3640
+ namespace Parameters {
3641
+ export type EndDate = string;
3642
+ export type GroupBy = "day" | "week" | "month";
3643
+ export type Model = string;
3644
+ export type OrgUserId = string;
3645
+ export type Provider = string;
3646
+ export type StartDate = string;
3647
+ }
3648
+ export interface QueryParameters {
3649
+ startDate: Parameters.StartDate;
3650
+ endDate: Parameters.EndDate;
3651
+ groupBy?: Parameters.GroupBy;
3652
+ orgUserId?: Parameters.OrgUserId;
3653
+ provider?: Parameters.Provider;
3654
+ model?: Parameters.Model;
3655
+ }
3656
+ namespace Responses {
3657
+ export type $200 = {
3658
+ breakdownByModel?: /* Construct a type with a set of properties K of type T */ Components.Schemas.RecordStringNumber;
3659
+ breakdownByProvider?: /* Construct a type with a set of properties K of type T */ Components.Schemas.RecordStringNumber;
3660
+ totalCost: number; // double
3661
+ period: string;
3662
+ }[];
3663
+ }
3664
+ }
3665
+ namespace GetUsageByProvider {
3666
+ namespace Parameters {
3667
+ export type EndDate = string;
3668
+ export type OrgUserId = string;
3669
+ export type StartDate = string;
3670
+ }
3671
+ export interface QueryParameters {
3672
+ startDate: Parameters.StartDate;
3673
+ endDate: Parameters.EndDate;
3674
+ orgUserId?: Parameters.OrgUserId;
3675
+ }
3676
+ namespace Responses {
3677
+ export type $200 = {
3678
+ breakdownByModel: /* Construct a type with a set of properties K of type T */ Components.Schemas.RecordStringNumber;
3679
+ totalCost: number; // double
3680
+ provider: string;
3681
+ }[];
3682
+ }
3683
+ }
3684
+ namespace GetUsageByUser {
3685
+ namespace Parameters {
3686
+ export type EndDate = string;
3687
+ export type StartDate = string;
3688
+ }
3689
+ export interface QueryParameters {
3690
+ startDate: Parameters.StartDate;
3691
+ endDate: Parameters.EndDate;
3692
+ }
3693
+ namespace Responses {
3694
+ export type $200 = {
3695
+ breakdownByProvider: /* Construct a type with a set of properties K of type T */ Components.Schemas.RecordStringNumber;
3696
+ totalCost: number; // double
3697
+ userEmail?: string;
3698
+ userName?: string;
3699
+ orgUserId: string;
3700
+ }[];
3701
+ }
3702
+ }
3054
3703
  namespace GetUserAutoReloadSettings {
3055
3704
  namespace Responses {
3056
3705
  export type $200 = Components.Schemas.AutoReloadSettings;
@@ -3152,6 +3801,25 @@ declare namespace Paths {
3152
3801
  }
3153
3802
  }
3154
3803
  }
3804
+ namespace HandleMcpRequest {
3805
+ namespace Parameters {
3806
+ export type OrgMcpServerId = string;
3807
+ }
3808
+ export interface PathParameters {
3809
+ orgMcpServerId: Parameters.OrgMcpServerId;
3810
+ }
3811
+ /**
3812
+ * - The MCP JSON-RPC request
3813
+ */
3814
+ export type RequestBody = /* JSON-RPC 2.0 request structure */ Components.Schemas.JsonRpcRequest;
3815
+ namespace Responses {
3816
+ export type $200 = /**
3817
+ * JSON-RPC 2.0 response structure
3818
+ * Note: MCP protocol requires id to be string | number, NOT null
3819
+ */
3820
+ Components.Schemas.JsonRpcResponse;
3821
+ }
3822
+ }
3155
3823
  namespace HandleOAuthCallback {
3156
3824
  export interface RequestBody {
3157
3825
  state: string;
@@ -3222,6 +3890,66 @@ declare namespace Paths {
3222
3890
  }
3223
3891
  }
3224
3892
  }
3893
+ namespace KillAgent {
3894
+ namespace Parameters {
3895
+ export type TaskId = string;
3896
+ }
3897
+ export interface PathParameters {
3898
+ taskId: Parameters.TaskId;
3899
+ }
3900
+ namespace Responses {
3901
+ export type $200 = Components.Schemas.StatusResponse;
3902
+ }
3903
+ }
3904
+ namespace ListAllMcpServers {
3905
+ namespace Responses {
3906
+ export type $200 = /**
3907
+ * Model McpServer
3908
+ * Represents an MCP server configuration.
3909
+ */
3910
+ Components.Schemas.McpServer[];
3911
+ }
3912
+ }
3913
+ namespace ListAllSpecs {
3914
+ namespace Responses {
3915
+ export type $200 = /**
3916
+ * Model SwaggerCatalog
3917
+ * Represents a curated swagger/OpenAPI specification in the catalog.
3918
+ * These are pre-approved API specifications that can be used to create
3919
+ * swagger-backed MCP servers without uploading custom specs.
3920
+ */
3921
+ Components.Schemas.SwaggerCatalog[];
3922
+ }
3923
+ }
3924
+ namespace ListCuratedSpecs {
3925
+ namespace Responses {
3926
+ export type $200 = /**
3927
+ * Model SwaggerCatalog
3928
+ * Represents a curated swagger/OpenAPI specification in the catalog.
3929
+ * These are pre-approved API specifications that can be used to create
3930
+ * swagger-backed MCP servers without uploading custom specs.
3931
+ */
3932
+ Components.Schemas.SwaggerCatalog[];
3933
+ }
3934
+ }
3935
+ namespace ListEnabledMcpServers {
3936
+ namespace Responses {
3937
+ export type $200 = /**
3938
+ * Model McpServer
3939
+ * Represents an MCP server configuration.
3940
+ */
3941
+ Components.Schemas.McpServer[];
3942
+ }
3943
+ }
3944
+ namespace ListMcpServers {
3945
+ namespace Responses {
3946
+ export type $200 = /**
3947
+ * Model McpServer
3948
+ * Represents an MCP server configuration.
3949
+ */
3950
+ Components.Schemas.McpServer[];
3951
+ }
3952
+ }
3225
3953
  namespace ListOrgSecrets {
3226
3954
  namespace Responses {
3227
3955
  export type $200 = Components.Schemas.SecretResponse[];
@@ -3232,6 +3960,11 @@ declare namespace Paths {
3232
3960
  export type $200 = Components.Schemas.UserSecretResponse[];
3233
3961
  }
3234
3962
  }
3963
+ namespace ListUserSessions {
3964
+ namespace Responses {
3965
+ export type $200 = Components.Schemas.SessionStatusResponse[];
3966
+ }
3967
+ }
3235
3968
  namespace ListWaitlist {
3236
3969
  namespace Parameters {
3237
3970
  export type Limit = number; // double
@@ -3287,6 +4020,25 @@ declare namespace Paths {
3287
4020
  }
3288
4021
  }
3289
4022
  }
4023
+ namespace MarkMessagesAsProcessed {
4024
+ namespace Parameters {
4025
+ export type TaskId = string;
4026
+ }
4027
+ export interface PathParameters {
4028
+ taskId: Parameters.TaskId;
4029
+ }
4030
+ /**
4031
+ * Object containing message IDs to mark as processed
4032
+ */
4033
+ export interface RequestBody {
4034
+ messageIds: string[];
4035
+ }
4036
+ namespace Responses {
4037
+ export interface $200 {
4038
+ processedCount: number; // double
4039
+ }
4040
+ }
4041
+ }
3290
4042
  namespace MoveOrgFile {
3291
4043
  namespace Parameters {
3292
4044
  export type Id = string;
@@ -3318,6 +4070,17 @@ declare namespace Paths {
3318
4070
  }
3319
4071
  }
3320
4072
  }
4073
+ namespace PauseAgent {
4074
+ namespace Parameters {
4075
+ export type TaskId = string;
4076
+ }
4077
+ export interface PathParameters {
4078
+ taskId: Parameters.TaskId;
4079
+ }
4080
+ namespace Responses {
4081
+ export type $200 = Components.Schemas.StatusResponse;
4082
+ }
4083
+ }
3321
4084
  namespace ProbeMcpServer {
3322
4085
  export type RequestBody = Components.Schemas.ProbeRequest;
3323
4086
  namespace Responses {
@@ -3426,6 +4189,19 @@ declare namespace Paths {
3426
4189
  }
3427
4190
  }
3428
4191
  }
4192
+ namespace RemoveDefaultOrgPaymentMethod {
4193
+ namespace Parameters {
4194
+ export type PaymentMethodId = string;
4195
+ }
4196
+ export interface PathParameters {
4197
+ paymentMethodId: Parameters.PaymentMethodId;
4198
+ }
4199
+ namespace Responses {
4200
+ export interface $200 {
4201
+ success: boolean;
4202
+ }
4203
+ }
4204
+ }
3429
4205
  namespace RemoveUserFromOrg {
3430
4206
  namespace Parameters {
3431
4207
  export type UserId = string;
@@ -3470,6 +4246,17 @@ declare namespace Paths {
3470
4246
  export type $200 = Components.Schemas.ResetPasswordResponse;
3471
4247
  }
3472
4248
  }
4249
+ namespace ResumeAgent {
4250
+ namespace Parameters {
4251
+ export type TaskId = string;
4252
+ }
4253
+ export interface PathParameters {
4254
+ taskId: Parameters.TaskId;
4255
+ }
4256
+ namespace Responses {
4257
+ export type $200 = Components.Schemas.StatusResponse;
4258
+ }
4259
+ }
3473
4260
  namespace RunChecks {
3474
4261
  namespace Parameters {
3475
4262
  export type Id = string;
@@ -3503,6 +4290,53 @@ declare namespace Paths {
3503
4290
  export type $200 = Components.Schemas.EmbeddableAny[];
3504
4291
  }
3505
4292
  }
4293
+ namespace SearchMcpCatalog {
4294
+ namespace Parameters {
4295
+ export type Q = string;
4296
+ }
4297
+ export interface QueryParameters {
4298
+ q: Parameters.Q;
4299
+ }
4300
+ namespace Responses {
4301
+ export type $200 = /**
4302
+ * Model McpServer
4303
+ * Represents an MCP server configuration.
4304
+ */
4305
+ Components.Schemas.McpServer[];
4306
+ }
4307
+ }
4308
+ namespace SearchSpecs {
4309
+ namespace Parameters {
4310
+ export type Q = string;
4311
+ }
4312
+ export interface QueryParameters {
4313
+ q: Parameters.Q;
4314
+ }
4315
+ namespace Responses {
4316
+ export type $200 = /**
4317
+ * Model SwaggerCatalog
4318
+ * Represents a curated swagger/OpenAPI specification in the catalog.
4319
+ * These are pre-approved API specifications that can be used to create
4320
+ * swagger-backed MCP servers without uploading custom specs.
4321
+ */
4322
+ Components.Schemas.SwaggerCatalog[];
4323
+ }
4324
+ }
4325
+ namespace SendMessageToAgent {
4326
+ namespace Parameters {
4327
+ export type TaskId = string;
4328
+ }
4329
+ export interface PathParameters {
4330
+ taskId: Parameters.TaskId;
4331
+ }
4332
+ /**
4333
+ * The message to send
4334
+ */
4335
+ export type RequestBody = Components.Schemas.SendMessageRequest;
4336
+ namespace Responses {
4337
+ export type $200 = Components.Schemas.SendMessageResponse;
4338
+ }
4339
+ }
3506
4340
  namespace SetDefaultOrgPaymentMethod {
3507
4341
  namespace Parameters {
3508
4342
  export type PaymentMethodId = string;
@@ -3552,6 +4386,12 @@ declare namespace Paths {
3552
4386
  }
3553
4387
  }
3554
4388
  namespace TestKnowhowTool {
4389
+ namespace Parameters {
4390
+ export type Workers = string;
4391
+ }
4392
+ export interface QueryParameters {
4393
+ workers?: Parameters.Workers;
4394
+ }
3555
4395
  export type RequestBody = Components.Schemas.ToolCallRequest;
3556
4396
  namespace Responses {
3557
4397
  export interface $200 {
@@ -3583,6 +4423,38 @@ declare namespace Paths {
3583
4423
  export type $200 = /* Model OrgUserChatSession */ Components.Schemas.OrgUserChatSession;
3584
4424
  }
3585
4425
  }
4426
+ namespace UpdateMcpCatalogServer {
4427
+ namespace Parameters {
4428
+ export type UniqueName = string;
4429
+ }
4430
+ export interface PathParameters {
4431
+ uniqueName: Parameters.UniqueName;
4432
+ }
4433
+ export type RequestBody = Components.Schemas.UpdateMcpCatalogRequest;
4434
+ namespace Responses {
4435
+ export type $200 = /**
4436
+ * Model McpServer
4437
+ * Represents an MCP server configuration.
4438
+ */
4439
+ Components.Schemas.McpServer;
4440
+ }
4441
+ }
4442
+ namespace UpdateMcpServer {
4443
+ namespace Parameters {
4444
+ export type Id = string;
4445
+ }
4446
+ export interface PathParameters {
4447
+ id: Parameters.Id;
4448
+ }
4449
+ export type RequestBody = Components.Schemas.UpdateMcpServerRequest;
4450
+ namespace Responses {
4451
+ export type $200 = /**
4452
+ * Model McpServer
4453
+ * Represents an MCP server configuration.
4454
+ */
4455
+ Components.Schemas.McpServer;
4456
+ }
4457
+ }
3586
4458
  namespace UpdateOrgBehavior {
3587
4459
  namespace Parameters {
3588
4460
  export type Id = string;
@@ -3675,6 +4547,40 @@ declare namespace Paths {
3675
4547
  export type $200 = Components.Schemas.UpdateOrgTaskResponse;
3676
4548
  }
3677
4549
  }
4550
+ namespace UpdateOrgUser {
4551
+ namespace Parameters {
4552
+ export type UserId = string;
4553
+ }
4554
+ export interface PathParameters {
4555
+ userId: Parameters.UserId;
4556
+ }
4557
+ export interface RequestBody {
4558
+ monthlySpendLimitUsd?: number | null; // double
4559
+ dailySpendLimitUsd?: number | null; // double
4560
+ }
4561
+ namespace Responses {
4562
+ export interface $200 {
4563
+ user: {
4564
+ email: string;
4565
+ };
4566
+ monthlySpendLimitUsd: number; // double
4567
+ dailySpendLimitUsd: number; // double
4568
+ organizationId: string;
4569
+ role: number; // double
4570
+ userId: string;
4571
+ creditsUsd: number; // double
4572
+ deletedAt: string; // date-time
4573
+ updatedAt: string; // date-time
4574
+ createdAt: string; // date-time
4575
+ metadata: /**
4576
+ * From https://github.com/sindresorhus/type-fest/
4577
+ * Matches any valid JSON value.
4578
+ */
4579
+ Components.Schemas.JsonValue;
4580
+ id: string;
4581
+ }
4582
+ }
4583
+ }
3678
4584
  namespace UpdateOrgUserMcp {
3679
4585
  namespace Parameters {
3680
4586
  export type Id = string;
@@ -3701,6 +4607,24 @@ declare namespace Paths {
3701
4607
  Components.Schemas.Organization;
3702
4608
  }
3703
4609
  }
4610
+ namespace UpdateSpec {
4611
+ namespace Parameters {
4612
+ export type ProviderKey = string;
4613
+ }
4614
+ export interface PathParameters {
4615
+ providerKey: Parameters.ProviderKey;
4616
+ }
4617
+ export type RequestBody = Components.Schemas.UpdateSpecRequest;
4618
+ namespace Responses {
4619
+ export type $200 = /**
4620
+ * Model SwaggerCatalog
4621
+ * Represents a curated swagger/OpenAPI specification in the catalog.
4622
+ * These are pre-approved API specifications that can be used to create
4623
+ * swagger-backed MCP servers without uploading custom specs.
4624
+ */
4625
+ Components.Schemas.SwaggerCatalog;
4626
+ }
4627
+ }
3704
4628
  namespace UpdateTask {
3705
4629
  namespace Parameters {
3706
4630
  export type Id = string;
@@ -3792,6 +4716,8 @@ declare namespace Paths {
3792
4716
  email: string;
3793
4717
  id: string;
3794
4718
  orgs: {
4719
+ monthlySpendLimitUsd: number; // double
4720
+ dailySpendLimitUsd: number; // double
3795
4721
  organizationId: string;
3796
4722
  role: number; // double
3797
4723
  userId: string;
@@ -3841,6 +4767,15 @@ declare namespace Paths {
3841
4767
  }
3842
4768
  }
3843
4769
  }
4770
+ namespace ValidateSpec {
4771
+ export type RequestBody = Components.Schemas.ValidateSpecRequest;
4772
+ namespace Responses {
4773
+ export interface $200 {
4774
+ analysis: Components.Schemas.SpecAnalysis;
4775
+ validation: /* Service for validating and analyzing OpenAPI/Swagger specs for security issues */ Components.Schemas.ValidationResult;
4776
+ }
4777
+ }
4778
+ }
3844
4779
  namespace Verify2FA {
3845
4780
  export type RequestBody = Components.Schemas.Verify2FARequest;
3846
4781
  namespace Responses {
@@ -4041,6 +4976,14 @@ export interface OperationMethods {
4041
4976
  data?: Paths.ChangePassword.RequestBody,
4042
4977
  config?: AxiosRequestConfig
4043
4978
  ): OperationResponse<Paths.ChangePassword.Responses.$200>
4979
+ /**
4980
+ * GetBudget
4981
+ */
4982
+ 'GetBudget'(
4983
+ parameters?: Parameters<UnknownParamsObject> | null,
4984
+ data?: any,
4985
+ config?: AxiosRequestConfig
4986
+ ): OperationResponse<Paths.GetBudget.Responses.$200>
4044
4987
  /**
4045
4988
  * Get2FAStatus - Get 2FA status for the current user
4046
4989
  */
@@ -4159,6 +5102,79 @@ export interface OperationMethods {
4159
5102
  data?: any,
4160
5103
  config?: AxiosRequestConfig
4161
5104
  ): OperationResponse<Paths.GetDefaultOnboardingTemplate.Responses.$200>
5105
+ /**
5106
+ * GetPublicCatalogGrouped - Get grouped catalog without full specs for efficient loading
5107
+ * Groups APIs by website domain and excludes the full spec JSON
5108
+ */
5109
+ 'GetPublicCatalogGrouped'(
5110
+ parameters?: Parameters<Paths.GetPublicCatalogGrouped.QueryParameters> | null,
5111
+ data?: any,
5112
+ config?: AxiosRequestConfig
5113
+ ): OperationResponse<Paths.GetPublicCatalogGrouped.Responses.$200>
5114
+ /**
5115
+ * ListCuratedSpecs - List all curated swagger specs (lightweight, without full specs)
5116
+ */
5117
+ 'ListCuratedSpecs'(
5118
+ parameters?: Parameters<UnknownParamsObject> | null,
5119
+ data?: any,
5120
+ config?: AxiosRequestConfig
5121
+ ): OperationResponse<Paths.ListCuratedSpecs.Responses.$200>
5122
+ /**
5123
+ * ListAllSpecs - List all swagger specs (requires authentication)
5124
+ */
5125
+ 'ListAllSpecs'(
5126
+ parameters?: Parameters<UnknownParamsObject> | null,
5127
+ data?: any,
5128
+ config?: AxiosRequestConfig
5129
+ ): OperationResponse<Paths.ListAllSpecs.Responses.$200>
5130
+ /**
5131
+ * AddSpec - Add a new swagger spec to the catalog (admin only)
5132
+ */
5133
+ 'AddSpec'(
5134
+ parameters?: Parameters<UnknownParamsObject> | null,
5135
+ data?: Paths.AddSpec.RequestBody,
5136
+ config?: AxiosRequestConfig
5137
+ ): OperationResponse<Paths.AddSpec.Responses.$201>
5138
+ /**
5139
+ * GetSpec - Get a swagger spec by provider key
5140
+ */
5141
+ 'GetSpec'(
5142
+ parameters?: Parameters<Paths.GetSpec.PathParameters> | null,
5143
+ data?: any,
5144
+ config?: AxiosRequestConfig
5145
+ ): OperationResponse<Paths.GetSpec.Responses.$200>
5146
+ /**
5147
+ * UpdateSpec - Update a swagger spec (admin only)
5148
+ */
5149
+ 'UpdateSpec'(
5150
+ parameters?: Parameters<Paths.UpdateSpec.PathParameters> | null,
5151
+ data?: Paths.UpdateSpec.RequestBody,
5152
+ config?: AxiosRequestConfig
5153
+ ): OperationResponse<Paths.UpdateSpec.Responses.$200>
5154
+ /**
5155
+ * DeleteSpec - Delete a swagger spec from the catalog (admin only)
5156
+ */
5157
+ 'DeleteSpec'(
5158
+ parameters?: Parameters<Paths.DeleteSpec.PathParameters> | null,
5159
+ data?: any,
5160
+ config?: AxiosRequestConfig
5161
+ ): OperationResponse<Paths.DeleteSpec.Responses.$204>
5162
+ /**
5163
+ * SearchSpecs - Search swagger specs by name or description
5164
+ */
5165
+ 'SearchSpecs'(
5166
+ parameters?: Parameters<Paths.SearchSpecs.QueryParameters> | null,
5167
+ data?: any,
5168
+ config?: AxiosRequestConfig
5169
+ ): OperationResponse<Paths.SearchSpecs.Responses.$200>
5170
+ /**
5171
+ * ValidateSpec - Validate and analyze a swagger spec without adding it to the catalog
5172
+ */
5173
+ 'ValidateSpec'(
5174
+ parameters?: Parameters<UnknownParamsObject> | null,
5175
+ data?: Paths.ValidateSpec.RequestBody,
5176
+ config?: AxiosRequestConfig
5177
+ ): OperationResponse<Paths.ValidateSpec.Responses.$200>
4162
5178
  /**
4163
5179
  * ConnectSlackAccount
4164
5180
  */
@@ -4359,6 +5375,14 @@ export interface OperationMethods {
4359
5375
  data?: any,
4360
5376
  config?: AxiosRequestConfig
4361
5377
  ): OperationResponse<Paths.GetOrgUsers.Responses.$200>
5378
+ /**
5379
+ * UpdateOrgUser
5380
+ */
5381
+ 'UpdateOrgUser'(
5382
+ parameters?: Parameters<Paths.UpdateOrgUser.PathParameters> | null,
5383
+ data?: Paths.UpdateOrgUser.RequestBody,
5384
+ config?: AxiosRequestConfig
5385
+ ): OperationResponse<Paths.UpdateOrgUser.Responses.$200>
4362
5386
  /**
4363
5387
  * RemoveUserFromOrg
4364
5388
  */
@@ -4399,6 +5423,32 @@ export interface OperationMethods {
4399
5423
  data?: any,
4400
5424
  config?: AxiosRequestConfig
4401
5425
  ): OperationResponse<Paths.GetAllUsages.Responses.$200>
5426
+ /**
5427
+ * GetUsageBreakdown - Get aggregated usage breakdown by time period
5428
+ * Supports filtering by user, provider, and model
5429
+ */
5430
+ 'GetUsageBreakdown'(
5431
+ parameters?: Parameters<Paths.GetUsageBreakdown.QueryParameters> | null,
5432
+ data?: any,
5433
+ config?: AxiosRequestConfig
5434
+ ): OperationResponse<Paths.GetUsageBreakdown.Responses.$200>
5435
+ /**
5436
+ * GetUsageByUser - Get usage breakdown by user
5437
+ * Shows per-user spending for the organization
5438
+ */
5439
+ 'GetUsageByUser'(
5440
+ parameters?: Parameters<Paths.GetUsageByUser.QueryParameters> | null,
5441
+ data?: any,
5442
+ config?: AxiosRequestConfig
5443
+ ): OperationResponse<Paths.GetUsageByUser.Responses.$200>
5444
+ /**
5445
+ * GetUsageByProvider - Get usage breakdown by provider
5446
+ */
5447
+ 'GetUsageByProvider'(
5448
+ parameters?: Parameters<Paths.GetUsageByProvider.QueryParameters> | null,
5449
+ data?: any,
5450
+ config?: AxiosRequestConfig
5451
+ ): OperationResponse<Paths.GetUsageByProvider.Responses.$200>
4402
5452
  /**
4403
5453
  * GetTasks - Get all tasks for current user
4404
5454
  *
@@ -4850,6 +5900,62 @@ export interface OperationMethods {
4850
5900
  data?: any,
4851
5901
  config?: AxiosRequestConfig
4852
5902
  ): OperationResponse<Paths.GetPublicBehavior.Responses.$200>
5903
+ /**
5904
+ * SendMessageToAgent - Send a message to a running agent task
5905
+ */
5906
+ 'SendMessageToAgent'(
5907
+ parameters?: Parameters<Paths.SendMessageToAgent.PathParameters> | null,
5908
+ data?: Paths.SendMessageToAgent.RequestBody,
5909
+ config?: AxiosRequestConfig
5910
+ ): OperationResponse<Paths.SendMessageToAgent.Responses.$200>
5911
+ /**
5912
+ * PauseAgent - Pause a running agent task
5913
+ */
5914
+ 'PauseAgent'(
5915
+ parameters?: Parameters<Paths.PauseAgent.PathParameters> | null,
5916
+ data?: any,
5917
+ config?: AxiosRequestConfig
5918
+ ): OperationResponse<Paths.PauseAgent.Responses.$200>
5919
+ /**
5920
+ * ResumeAgent - Resume a paused agent task
5921
+ */
5922
+ 'ResumeAgent'(
5923
+ parameters?: Parameters<Paths.ResumeAgent.PathParameters> | null,
5924
+ data?: any,
5925
+ config?: AxiosRequestConfig
5926
+ ): OperationResponse<Paths.ResumeAgent.Responses.$200>
5927
+ /**
5928
+ * KillAgent - Kill/cancel a running or paused agent task
5929
+ */
5930
+ 'KillAgent'(
5931
+ parameters?: Parameters<Paths.KillAgent.PathParameters> | null,
5932
+ data?: any,
5933
+ config?: AxiosRequestConfig
5934
+ ): OperationResponse<Paths.KillAgent.Responses.$200>
5935
+ /**
5936
+ * GetPendingMessages - Get pending messages for an agent task
5937
+ */
5938
+ 'GetPendingMessages'(
5939
+ parameters?: Parameters<Paths.GetPendingMessages.PathParameters> | null,
5940
+ data?: any,
5941
+ config?: AxiosRequestConfig
5942
+ ): OperationResponse<Paths.GetPendingMessages.Responses.$200>
5943
+ /**
5944
+ * GetTaskDetails - Get task details including status, threads, and pending message info
5945
+ */
5946
+ 'GetTaskDetails'(
5947
+ parameters?: Parameters<Paths.GetTaskDetails.PathParameters> | null,
5948
+ data?: any,
5949
+ config?: AxiosRequestConfig
5950
+ ): OperationResponse<Paths.GetTaskDetails.Responses.$200>
5951
+ /**
5952
+ * MarkMessagesAsProcessed - Mark pending messages as processed
5953
+ */
5954
+ 'MarkMessagesAsProcessed'(
5955
+ parameters?: Parameters<Paths.MarkMessagesAsProcessed.PathParameters> | null,
5956
+ data?: Paths.MarkMessagesAsProcessed.RequestBody,
5957
+ config?: AxiosRequestConfig
5958
+ ): OperationResponse<Paths.MarkMessagesAsProcessed.Responses.$200>
4853
5959
  /**
4854
5960
  * ProxyChatCompletion - Create a chat completion
4855
5961
  */
@@ -4874,6 +5980,108 @@ export interface OperationMethods {
4874
5980
  data?: any,
4875
5981
  config?: AxiosRequestConfig
4876
5982
  ): OperationResponse<Paths.ProxyGetModels.Responses.$200>
5983
+ /**
5984
+ * HandleMcpRequest - Handle MCP JSON-RPC requests for a swagger-backed MCP server
5985
+ *
5986
+ * This endpoint proxies MCP protocol requests to upstream HTTP APIs
5987
+ * using swagger/OpenAPI specs to generate tools dynamically.
5988
+ *
5989
+ * This endpoint accepts both user tokens and org worker tokens:
5990
+ * - User tokens: req.appUser is populated with user info
5991
+ * - Org worker tokens: req.appUser is null, but req.orgId is populated
5992
+ */
5993
+ 'HandleMcpRequest'(
5994
+ parameters?: Parameters<Paths.HandleMcpRequest.PathParameters> | null,
5995
+ data?: Paths.HandleMcpRequest.RequestBody,
5996
+ config?: AxiosRequestConfig
5997
+ ): OperationResponse<Paths.HandleMcpRequest.Responses.$200>
5998
+ /**
5999
+ * GetMcpProxyTools - Get list of available tools for an OrgMcpServer
6000
+ *
6001
+ * This is a convenience endpoint to list tools without making
6002
+ * a full MCP protocol request.
6003
+ */
6004
+ 'GetMcpProxyTools'(
6005
+ parameters?: Parameters<Paths.GetMcpProxyTools.PathParameters> | null,
6006
+ data?: any,
6007
+ config?: AxiosRequestConfig
6008
+ ): OperationResponse<Paths.GetMcpProxyTools.Responses.$200>
6009
+ /**
6010
+ * ClearCache - Clear runtime cache for an OrgMcpServer
6011
+ *
6012
+ * Useful after updating the server configuration to force
6013
+ * reloading of the swagger spec and secrets.
6014
+ */
6015
+ 'ClearCache'(
6016
+ parameters?: Parameters<Paths.ClearCache.PathParameters> | null,
6017
+ data?: any,
6018
+ config?: AxiosRequestConfig
6019
+ ): OperationResponse<Paths.ClearCache.Responses.$200>
6020
+ /**
6021
+ * GetMcpCatalogGrouped - Get grouped MCP catalog without full details for efficient loading
6022
+ * Groups MCP servers by command type (npx, docker, url, swagger)
6023
+ */
6024
+ 'GetMcpCatalogGrouped'(
6025
+ parameters?: Parameters<UnknownParamsObject> | null,
6026
+ data?: any,
6027
+ config?: AxiosRequestConfig
6028
+ ): OperationResponse<Paths.GetMcpCatalogGrouped.Responses.$200>
6029
+ /**
6030
+ * ListEnabledMcpServers - List all enabled MCP servers
6031
+ */
6032
+ 'ListEnabledMcpServers'(
6033
+ parameters?: Parameters<UnknownParamsObject> | null,
6034
+ data?: any,
6035
+ config?: AxiosRequestConfig
6036
+ ): OperationResponse<Paths.ListEnabledMcpServers.Responses.$200>
6037
+ /**
6038
+ * ListAllMcpServers - List all MCP servers (requires authentication)
6039
+ */
6040
+ 'ListAllMcpServers'(
6041
+ parameters?: Parameters<UnknownParamsObject> | null,
6042
+ data?: any,
6043
+ config?: AxiosRequestConfig
6044
+ ): OperationResponse<Paths.ListAllMcpServers.Responses.$200>
6045
+ /**
6046
+ * AddMcpCatalogServer - Add a new MCP server to the catalog (admin only)
6047
+ */
6048
+ 'AddMcpCatalogServer'(
6049
+ parameters?: Parameters<UnknownParamsObject> | null,
6050
+ data?: Paths.AddMcpCatalogServer.RequestBody,
6051
+ config?: AxiosRequestConfig
6052
+ ): OperationResponse<Paths.AddMcpCatalogServer.Responses.$201>
6053
+ /**
6054
+ * GetMcpCatalogServer - Get an MCP server by uniqueName
6055
+ */
6056
+ 'GetMcpCatalogServer'(
6057
+ parameters?: Parameters<Paths.GetMcpCatalogServer.PathParameters> | null,
6058
+ data?: any,
6059
+ config?: AxiosRequestConfig
6060
+ ): OperationResponse<Paths.GetMcpCatalogServer.Responses.$200>
6061
+ /**
6062
+ * UpdateMcpCatalogServer - Update an MCP server (admin only)
6063
+ */
6064
+ 'UpdateMcpCatalogServer'(
6065
+ parameters?: Parameters<Paths.UpdateMcpCatalogServer.PathParameters> | null,
6066
+ data?: Paths.UpdateMcpCatalogServer.RequestBody,
6067
+ config?: AxiosRequestConfig
6068
+ ): OperationResponse<Paths.UpdateMcpCatalogServer.Responses.$200>
6069
+ /**
6070
+ * DeleteMcpCatalogServer - Delete an MCP server from the catalog (admin only)
6071
+ */
6072
+ 'DeleteMcpCatalogServer'(
6073
+ parameters?: Parameters<Paths.DeleteMcpCatalogServer.PathParameters> | null,
6074
+ data?: any,
6075
+ config?: AxiosRequestConfig
6076
+ ): OperationResponse<Paths.DeleteMcpCatalogServer.Responses.$204>
6077
+ /**
6078
+ * SearchMcpCatalog - Search MCP servers by name or uniqueName
6079
+ */
6080
+ 'SearchMcpCatalog'(
6081
+ parameters?: Parameters<Paths.SearchMcpCatalog.QueryParameters> | null,
6082
+ data?: any,
6083
+ config?: AxiosRequestConfig
6084
+ ): OperationResponse<Paths.SearchMcpCatalog.Responses.$200>
4877
6085
  /**
4878
6086
  * GetChatSessions
4879
6087
  */
@@ -5075,6 +6283,16 @@ export interface OperationMethods {
5075
6283
  data?: Paths.HandleGitHubEvent.RequestBody,
5076
6284
  config?: AxiosRequestConfig
5077
6285
  ): OperationResponse<Paths.HandleGitHubEvent.Responses.$200>
6286
+ /**
6287
+ * GetFeeInfo - Get fee percentage and calculated amounts
6288
+ *
6289
+ * Get credit purchase fee information
6290
+ */
6291
+ 'GetFeeInfo'(
6292
+ parameters?: Parameters<Paths.GetFeeInfo.QueryParameters> | null,
6293
+ data?: any,
6294
+ config?: AxiosRequestConfig
6295
+ ): OperationResponse<Paths.GetFeeInfo.Responses.$200>
5078
6296
  /**
5079
6297
  * PurchaseCreditsForUser - Purchase credits for user
5080
6298
  *
@@ -5185,6 +6403,16 @@ export interface OperationMethods {
5185
6403
  data?: any,
5186
6404
  config?: AxiosRequestConfig
5187
6405
  ): OperationResponse<Paths.SetDefaultOrgPaymentMethod.Responses.$200>
6406
+ /**
6407
+ * RemoveDefaultOrgPaymentMethod - Remove default organization payment method
6408
+ *
6409
+ * Remove default payment method for organization (unset all defaults)
6410
+ */
6411
+ 'RemoveDefaultOrgPaymentMethod'(
6412
+ parameters?: Parameters<Paths.RemoveDefaultOrgPaymentMethod.PathParameters> | null,
6413
+ data?: any,
6414
+ config?: AxiosRequestConfig
6415
+ ): OperationResponse<Paths.RemoveDefaultOrgPaymentMethod.Responses.$200>
5188
6416
  /**
5189
6417
  * GetUserCreditBalances - Get user credit balances
5190
6418
  *
@@ -5315,6 +6543,16 @@ export interface OperationMethods {
5315
6543
  data?: any,
5316
6544
  config?: AxiosRequestConfig
5317
6545
  ): OperationResponse<Paths.GetSessionStatus.Responses.$200>
6546
+ /**
6547
+ * ListUserSessions - List user's CLI sessions
6548
+ *
6549
+ * Get all CLI login sessions for the current user
6550
+ */
6551
+ 'ListUserSessions'(
6552
+ parameters?: Parameters<UnknownParamsObject> | null,
6553
+ data?: any,
6554
+ config?: AxiosRequestConfig
6555
+ ): OperationResponse<Paths.ListUserSessions.Responses.$200>
5318
6556
  /**
5319
6557
  * ApproveSession - Approve CLI session
5320
6558
  *
@@ -5372,18 +6610,18 @@ export interface OperationMethods {
5372
6610
  config?: AxiosRequestConfig
5373
6611
  ): OperationResponse<Paths.GetModels.Responses.$200>
5374
6612
  /**
5375
- * GetTools - Get available tools for the organization/user
6613
+ * GetTools - Get available tools for the organization/user, optionally filtered by workers
5376
6614
  */
5377
6615
  'GetTools'(
5378
- parameters?: Parameters<UnknownParamsObject> | null,
6616
+ parameters?: Parameters<Paths.GetTools.QueryParameters> | null,
5379
6617
  data?: any,
5380
6618
  config?: AxiosRequestConfig
5381
6619
  ): OperationResponse<Paths.GetTools.Responses.$200>
5382
6620
  /**
5383
- * TestKnowhowTool - Test a specific tool by calling it with provided arguments
6621
+ * TestKnowhowTool - Test a specific tool by calling it with provided arguments, optionally on specific workers
5384
6622
  */
5385
6623
  'TestKnowhowTool'(
5386
- parameters?: Parameters<UnknownParamsObject> | null,
6624
+ parameters?: Parameters<Paths.TestKnowhowTool.QueryParameters> | null,
5387
6625
  data?: Paths.TestKnowhowTool.RequestBody,
5388
6626
  config?: AxiosRequestConfig
5389
6627
  ): OperationResponse<Paths.TestKnowhowTool.Responses.$200>
@@ -5394,7 +6632,63 @@ export interface OperationMethods {
5394
6632
  parameters?: Parameters<UnknownParamsObject> | null,
5395
6633
  data?: Paths.CreateEmbeddings.RequestBody,
5396
6634
  config?: AxiosRequestConfig
5397
- ): OperationResponse<Paths.CreateEmbeddings.Responses.$200>
6635
+ ): OperationResponse<Paths.CreateEmbeddings.Responses.$200>
6636
+ /**
6637
+ * GetAdminStats - Get overall platform statistics
6638
+ */
6639
+ 'GetAdminStats'(
6640
+ parameters?: Parameters<UnknownParamsObject> | null,
6641
+ data?: any,
6642
+ config?: AxiosRequestConfig
6643
+ ): OperationResponse<Paths.GetAdminStats.Responses.$200>
6644
+ /**
6645
+ * GetOrganizations - Get list of all organizations with spend information
6646
+ */
6647
+ 'GetOrganizations'(
6648
+ parameters?: Parameters<Paths.GetOrganizations.QueryParameters> | null,
6649
+ data?: any,
6650
+ config?: AxiosRequestConfig
6651
+ ): OperationResponse<Paths.GetOrganizations.Responses.$200>
6652
+ /**
6653
+ * GetTopSpenders - Get top spending organizations
6654
+ */
6655
+ 'GetTopSpenders'(
6656
+ parameters?: Parameters<Paths.GetTopSpenders.QueryParameters> | null,
6657
+ data?: any,
6658
+ config?: AxiosRequestConfig
6659
+ ): OperationResponse<Paths.GetTopSpenders.Responses.$200>
6660
+ /**
6661
+ * ListMcpServers - Get all global MCP servers (admin only)
6662
+ */
6663
+ 'ListMcpServers'(
6664
+ parameters?: Parameters<UnknownParamsObject> | null,
6665
+ data?: any,
6666
+ config?: AxiosRequestConfig
6667
+ ): OperationResponse<Paths.ListMcpServers.Responses.$200>
6668
+ /**
6669
+ * CreateMcpServer - Create a new global MCP server (admin only)
6670
+ */
6671
+ 'CreateMcpServer'(
6672
+ parameters?: Parameters<UnknownParamsObject> | null,
6673
+ data?: Paths.CreateMcpServer.RequestBody,
6674
+ config?: AxiosRequestConfig
6675
+ ): OperationResponse<Paths.CreateMcpServer.Responses.$201>
6676
+ /**
6677
+ * UpdateMcpServer - Update a global MCP server (admin only)
6678
+ */
6679
+ 'UpdateMcpServer'(
6680
+ parameters?: Parameters<Paths.UpdateMcpServer.PathParameters> | null,
6681
+ data?: Paths.UpdateMcpServer.RequestBody,
6682
+ config?: AxiosRequestConfig
6683
+ ): OperationResponse<Paths.UpdateMcpServer.Responses.$200>
6684
+ /**
6685
+ * DeleteMcpServer - Delete a global MCP server (admin only)
6686
+ */
6687
+ 'DeleteMcpServer'(
6688
+ parameters?: Parameters<Paths.DeleteMcpServer.PathParameters> | null,
6689
+ data?: any,
6690
+ config?: AxiosRequestConfig
6691
+ ): OperationResponse<Paths.DeleteMcpServer.Responses.$204>
5398
6692
  }
5399
6693
 
5400
6694
  export interface PathsDictionary {
@@ -5597,6 +6891,16 @@ export interface PathsDictionary {
5597
6891
  config?: AxiosRequestConfig
5598
6892
  ): OperationResponse<Paths.ChangePassword.Responses.$200>
5599
6893
  }
6894
+ ['/users/budget']: {
6895
+ /**
6896
+ * GetBudget
6897
+ */
6898
+ 'get'(
6899
+ parameters?: Parameters<UnknownParamsObject> | null,
6900
+ data?: any,
6901
+ config?: AxiosRequestConfig
6902
+ ): OperationResponse<Paths.GetBudget.Responses.$200>
6903
+ }
5600
6904
  ['/two-factor/status']: {
5601
6905
  /**
5602
6906
  * Get2FAStatus - Get 2FA status for the current user
@@ -5735,6 +7039,91 @@ export interface PathsDictionary {
5735
7039
  config?: AxiosRequestConfig
5736
7040
  ): OperationResponse<Paths.GetDefaultOnboardingTemplate.Responses.$200>
5737
7041
  }
7042
+ ['/swagger-catalog/public']: {
7043
+ /**
7044
+ * GetPublicCatalogGrouped - Get grouped catalog without full specs for efficient loading
7045
+ * Groups APIs by website domain and excludes the full spec JSON
7046
+ */
7047
+ 'get'(
7048
+ parameters?: Parameters<Paths.GetPublicCatalogGrouped.QueryParameters> | null,
7049
+ data?: any,
7050
+ config?: AxiosRequestConfig
7051
+ ): OperationResponse<Paths.GetPublicCatalogGrouped.Responses.$200>
7052
+ }
7053
+ ['/swagger-catalog/curated']: {
7054
+ /**
7055
+ * ListCuratedSpecs - List all curated swagger specs (lightweight, without full specs)
7056
+ */
7057
+ 'get'(
7058
+ parameters?: Parameters<UnknownParamsObject> | null,
7059
+ data?: any,
7060
+ config?: AxiosRequestConfig
7061
+ ): OperationResponse<Paths.ListCuratedSpecs.Responses.$200>
7062
+ }
7063
+ ['/swagger-catalog']: {
7064
+ /**
7065
+ * ListAllSpecs - List all swagger specs (requires authentication)
7066
+ */
7067
+ 'get'(
7068
+ parameters?: Parameters<UnknownParamsObject> | null,
7069
+ data?: any,
7070
+ config?: AxiosRequestConfig
7071
+ ): OperationResponse<Paths.ListAllSpecs.Responses.$200>
7072
+ /**
7073
+ * AddSpec - Add a new swagger spec to the catalog (admin only)
7074
+ */
7075
+ 'post'(
7076
+ parameters?: Parameters<UnknownParamsObject> | null,
7077
+ data?: Paths.AddSpec.RequestBody,
7078
+ config?: AxiosRequestConfig
7079
+ ): OperationResponse<Paths.AddSpec.Responses.$201>
7080
+ }
7081
+ ['/swagger-catalog/{providerKey}']: {
7082
+ /**
7083
+ * GetSpec - Get a swagger spec by provider key
7084
+ */
7085
+ 'get'(
7086
+ parameters?: Parameters<Paths.GetSpec.PathParameters> | null,
7087
+ data?: any,
7088
+ config?: AxiosRequestConfig
7089
+ ): OperationResponse<Paths.GetSpec.Responses.$200>
7090
+ /**
7091
+ * UpdateSpec - Update a swagger spec (admin only)
7092
+ */
7093
+ 'post'(
7094
+ parameters?: Parameters<Paths.UpdateSpec.PathParameters> | null,
7095
+ data?: Paths.UpdateSpec.RequestBody,
7096
+ config?: AxiosRequestConfig
7097
+ ): OperationResponse<Paths.UpdateSpec.Responses.$200>
7098
+ /**
7099
+ * DeleteSpec - Delete a swagger spec from the catalog (admin only)
7100
+ */
7101
+ 'delete'(
7102
+ parameters?: Parameters<Paths.DeleteSpec.PathParameters> | null,
7103
+ data?: any,
7104
+ config?: AxiosRequestConfig
7105
+ ): OperationResponse<Paths.DeleteSpec.Responses.$204>
7106
+ }
7107
+ ['/swagger-catalog/search']: {
7108
+ /**
7109
+ * SearchSpecs - Search swagger specs by name or description
7110
+ */
7111
+ 'get'(
7112
+ parameters?: Parameters<Paths.SearchSpecs.QueryParameters> | null,
7113
+ data?: any,
7114
+ config?: AxiosRequestConfig
7115
+ ): OperationResponse<Paths.SearchSpecs.Responses.$200>
7116
+ }
7117
+ ['/swagger-catalog/validate']: {
7118
+ /**
7119
+ * ValidateSpec - Validate and analyze a swagger spec without adding it to the catalog
7120
+ */
7121
+ 'post'(
7122
+ parameters?: Parameters<UnknownParamsObject> | null,
7123
+ data?: Paths.ValidateSpec.RequestBody,
7124
+ config?: AxiosRequestConfig
7125
+ ): OperationResponse<Paths.ValidateSpec.Responses.$200>
7126
+ }
5738
7127
  ['/slack/connect']: {
5739
7128
  /**
5740
7129
  * ConnectSlackAccount
@@ -5978,6 +7367,14 @@ export interface PathsDictionary {
5978
7367
  data?: any,
5979
7368
  config?: AxiosRequestConfig
5980
7369
  ): OperationResponse<Paths.RemoveUserFromOrg.Responses.$204>
7370
+ /**
7371
+ * UpdateOrgUser
7372
+ */
7373
+ 'put'(
7374
+ parameters?: Parameters<Paths.UpdateOrgUser.PathParameters> | null,
7375
+ data?: Paths.UpdateOrgUser.RequestBody,
7376
+ config?: AxiosRequestConfig
7377
+ ): OperationResponse<Paths.UpdateOrgUser.Responses.$200>
5981
7378
  }
5982
7379
  ['/organizations/invites/{inviteId}']: {
5983
7380
  /**
@@ -6019,6 +7416,38 @@ export interface PathsDictionary {
6019
7416
  config?: AxiosRequestConfig
6020
7417
  ): OperationResponse<Paths.GetAllUsages.Responses.$200>
6021
7418
  }
7419
+ ['/org-user-usage/breakdown']: {
7420
+ /**
7421
+ * GetUsageBreakdown - Get aggregated usage breakdown by time period
7422
+ * Supports filtering by user, provider, and model
7423
+ */
7424
+ 'get'(
7425
+ parameters?: Parameters<Paths.GetUsageBreakdown.QueryParameters> | null,
7426
+ data?: any,
7427
+ config?: AxiosRequestConfig
7428
+ ): OperationResponse<Paths.GetUsageBreakdown.Responses.$200>
7429
+ }
7430
+ ['/org-user-usage/by-user']: {
7431
+ /**
7432
+ * GetUsageByUser - Get usage breakdown by user
7433
+ * Shows per-user spending for the organization
7434
+ */
7435
+ 'get'(
7436
+ parameters?: Parameters<Paths.GetUsageByUser.QueryParameters> | null,
7437
+ data?: any,
7438
+ config?: AxiosRequestConfig
7439
+ ): OperationResponse<Paths.GetUsageByUser.Responses.$200>
7440
+ }
7441
+ ['/org-user-usage/by-provider']: {
7442
+ /**
7443
+ * GetUsageByProvider - Get usage breakdown by provider
7444
+ */
7445
+ 'get'(
7446
+ parameters?: Parameters<Paths.GetUsageByProvider.QueryParameters> | null,
7447
+ data?: any,
7448
+ config?: AxiosRequestConfig
7449
+ ): OperationResponse<Paths.GetUsageByProvider.Responses.$200>
7450
+ }
6022
7451
  ['/org-user-tasks']: {
6023
7452
  /**
6024
7453
  * CreateTask - Create a new task
@@ -6536,6 +7965,76 @@ export interface PathsDictionary {
6536
7965
  config?: AxiosRequestConfig
6537
7966
  ): OperationResponse<Paths.GetPublicBehavior.Responses.$200>
6538
7967
  }
7968
+ ['/org-agent-tasks/{taskId}/messages']: {
7969
+ /**
7970
+ * SendMessageToAgent - Send a message to a running agent task
7971
+ */
7972
+ 'post'(
7973
+ parameters?: Parameters<Paths.SendMessageToAgent.PathParameters> | null,
7974
+ data?: Paths.SendMessageToAgent.RequestBody,
7975
+ config?: AxiosRequestConfig
7976
+ ): OperationResponse<Paths.SendMessageToAgent.Responses.$200>
7977
+ }
7978
+ ['/org-agent-tasks/{taskId}/pause']: {
7979
+ /**
7980
+ * PauseAgent - Pause a running agent task
7981
+ */
7982
+ 'post'(
7983
+ parameters?: Parameters<Paths.PauseAgent.PathParameters> | null,
7984
+ data?: any,
7985
+ config?: AxiosRequestConfig
7986
+ ): OperationResponse<Paths.PauseAgent.Responses.$200>
7987
+ }
7988
+ ['/org-agent-tasks/{taskId}/resume']: {
7989
+ /**
7990
+ * ResumeAgent - Resume a paused agent task
7991
+ */
7992
+ 'post'(
7993
+ parameters?: Parameters<Paths.ResumeAgent.PathParameters> | null,
7994
+ data?: any,
7995
+ config?: AxiosRequestConfig
7996
+ ): OperationResponse<Paths.ResumeAgent.Responses.$200>
7997
+ }
7998
+ ['/org-agent-tasks/{taskId}/kill']: {
7999
+ /**
8000
+ * KillAgent - Kill/cancel a running or paused agent task
8001
+ */
8002
+ 'post'(
8003
+ parameters?: Parameters<Paths.KillAgent.PathParameters> | null,
8004
+ data?: any,
8005
+ config?: AxiosRequestConfig
8006
+ ): OperationResponse<Paths.KillAgent.Responses.$200>
8007
+ }
8008
+ ['/org-agent-tasks/{taskId}/pending-messages']: {
8009
+ /**
8010
+ * GetPendingMessages - Get pending messages for an agent task
8011
+ */
8012
+ 'get'(
8013
+ parameters?: Parameters<Paths.GetPendingMessages.PathParameters> | null,
8014
+ data?: any,
8015
+ config?: AxiosRequestConfig
8016
+ ): OperationResponse<Paths.GetPendingMessages.Responses.$200>
8017
+ }
8018
+ ['/org-agent-tasks/{taskId}']: {
8019
+ /**
8020
+ * GetTaskDetails - Get task details including status, threads, and pending message info
8021
+ */
8022
+ 'get'(
8023
+ parameters?: Parameters<Paths.GetTaskDetails.PathParameters> | null,
8024
+ data?: any,
8025
+ config?: AxiosRequestConfig
8026
+ ): OperationResponse<Paths.GetTaskDetails.Responses.$200>
8027
+ }
8028
+ ['/org-agent-tasks/{taskId}/pending-messages/mark-processed']: {
8029
+ /**
8030
+ * MarkMessagesAsProcessed - Mark pending messages as processed
8031
+ */
8032
+ 'post'(
8033
+ parameters?: Parameters<Paths.MarkMessagesAsProcessed.PathParameters> | null,
8034
+ data?: Paths.MarkMessagesAsProcessed.RequestBody,
8035
+ config?: AxiosRequestConfig
8036
+ ): OperationResponse<Paths.MarkMessagesAsProcessed.Responses.$200>
8037
+ }
6539
8038
  ['/proxy/v1/chat/completions']: {
6540
8039
  /**
6541
8040
  * ProxyChatCompletion - Create a chat completion
@@ -6566,6 +8065,124 @@ export interface PathsDictionary {
6566
8065
  config?: AxiosRequestConfig
6567
8066
  ): OperationResponse<Paths.ProxyGetModels.Responses.$200>
6568
8067
  }
8068
+ ['/mcp-proxy/{orgMcpServerId}/mcp']: {
8069
+ /**
8070
+ * HandleMcpRequest - Handle MCP JSON-RPC requests for a swagger-backed MCP server
8071
+ *
8072
+ * This endpoint proxies MCP protocol requests to upstream HTTP APIs
8073
+ * using swagger/OpenAPI specs to generate tools dynamically.
8074
+ *
8075
+ * This endpoint accepts both user tokens and org worker tokens:
8076
+ * - User tokens: req.appUser is populated with user info
8077
+ * - Org worker tokens: req.appUser is null, but req.orgId is populated
8078
+ */
8079
+ 'post'(
8080
+ parameters?: Parameters<Paths.HandleMcpRequest.PathParameters> | null,
8081
+ data?: Paths.HandleMcpRequest.RequestBody,
8082
+ config?: AxiosRequestConfig
8083
+ ): OperationResponse<Paths.HandleMcpRequest.Responses.$200>
8084
+ }
8085
+ ['/mcp-proxy/{orgMcpServerId}/tools']: {
8086
+ /**
8087
+ * GetMcpProxyTools - Get list of available tools for an OrgMcpServer
8088
+ *
8089
+ * This is a convenience endpoint to list tools without making
8090
+ * a full MCP protocol request.
8091
+ */
8092
+ 'post'(
8093
+ parameters?: Parameters<Paths.GetMcpProxyTools.PathParameters> | null,
8094
+ data?: any,
8095
+ config?: AxiosRequestConfig
8096
+ ): OperationResponse<Paths.GetMcpProxyTools.Responses.$200>
8097
+ }
8098
+ ['/mcp-proxy/{orgMcpServerId}/clear-cache']: {
8099
+ /**
8100
+ * ClearCache - Clear runtime cache for an OrgMcpServer
8101
+ *
8102
+ * Useful after updating the server configuration to force
8103
+ * reloading of the swagger spec and secrets.
8104
+ */
8105
+ 'post'(
8106
+ parameters?: Parameters<Paths.ClearCache.PathParameters> | null,
8107
+ data?: any,
8108
+ config?: AxiosRequestConfig
8109
+ ): OperationResponse<Paths.ClearCache.Responses.$200>
8110
+ }
8111
+ ['/mcp-catalog/public']: {
8112
+ /**
8113
+ * GetMcpCatalogGrouped - Get grouped MCP catalog without full details for efficient loading
8114
+ * Groups MCP servers by command type (npx, docker, url, swagger)
8115
+ */
8116
+ 'get'(
8117
+ parameters?: Parameters<UnknownParamsObject> | null,
8118
+ data?: any,
8119
+ config?: AxiosRequestConfig
8120
+ ): OperationResponse<Paths.GetMcpCatalogGrouped.Responses.$200>
8121
+ }
8122
+ ['/mcp-catalog/enabled']: {
8123
+ /**
8124
+ * ListEnabledMcpServers - List all enabled MCP servers
8125
+ */
8126
+ 'get'(
8127
+ parameters?: Parameters<UnknownParamsObject> | null,
8128
+ data?: any,
8129
+ config?: AxiosRequestConfig
8130
+ ): OperationResponse<Paths.ListEnabledMcpServers.Responses.$200>
8131
+ }
8132
+ ['/mcp-catalog']: {
8133
+ /**
8134
+ * ListAllMcpServers - List all MCP servers (requires authentication)
8135
+ */
8136
+ 'get'(
8137
+ parameters?: Parameters<UnknownParamsObject> | null,
8138
+ data?: any,
8139
+ config?: AxiosRequestConfig
8140
+ ): OperationResponse<Paths.ListAllMcpServers.Responses.$200>
8141
+ /**
8142
+ * AddMcpCatalogServer - Add a new MCP server to the catalog (admin only)
8143
+ */
8144
+ 'post'(
8145
+ parameters?: Parameters<UnknownParamsObject> | null,
8146
+ data?: Paths.AddMcpCatalogServer.RequestBody,
8147
+ config?: AxiosRequestConfig
8148
+ ): OperationResponse<Paths.AddMcpCatalogServer.Responses.$201>
8149
+ }
8150
+ ['/mcp-catalog/{uniqueName}']: {
8151
+ /**
8152
+ * GetMcpCatalogServer - Get an MCP server by uniqueName
8153
+ */
8154
+ 'get'(
8155
+ parameters?: Parameters<Paths.GetMcpCatalogServer.PathParameters> | null,
8156
+ data?: any,
8157
+ config?: AxiosRequestConfig
8158
+ ): OperationResponse<Paths.GetMcpCatalogServer.Responses.$200>
8159
+ /**
8160
+ * UpdateMcpCatalogServer - Update an MCP server (admin only)
8161
+ */
8162
+ 'post'(
8163
+ parameters?: Parameters<Paths.UpdateMcpCatalogServer.PathParameters> | null,
8164
+ data?: Paths.UpdateMcpCatalogServer.RequestBody,
8165
+ config?: AxiosRequestConfig
8166
+ ): OperationResponse<Paths.UpdateMcpCatalogServer.Responses.$200>
8167
+ /**
8168
+ * DeleteMcpCatalogServer - Delete an MCP server from the catalog (admin only)
8169
+ */
8170
+ 'delete'(
8171
+ parameters?: Parameters<Paths.DeleteMcpCatalogServer.PathParameters> | null,
8172
+ data?: any,
8173
+ config?: AxiosRequestConfig
8174
+ ): OperationResponse<Paths.DeleteMcpCatalogServer.Responses.$204>
8175
+ }
8176
+ ['/mcp-catalog/search']: {
8177
+ /**
8178
+ * SearchMcpCatalog - Search MCP servers by name or uniqueName
8179
+ */
8180
+ 'get'(
8181
+ parameters?: Parameters<Paths.SearchMcpCatalog.QueryParameters> | null,
8182
+ data?: any,
8183
+ config?: AxiosRequestConfig
8184
+ ): OperationResponse<Paths.SearchMcpCatalog.Responses.$200>
8185
+ }
6569
8186
  ['/chat/sessions']: {
6570
8187
  /**
6571
8188
  * GetChatSessions
@@ -6807,6 +8424,18 @@ export interface PathsDictionary {
6807
8424
  config?: AxiosRequestConfig
6808
8425
  ): OperationResponse<Paths.HandleGitHubEvent.Responses.$200>
6809
8426
  }
8427
+ ['/credits/fee-info']: {
8428
+ /**
8429
+ * GetFeeInfo - Get fee percentage and calculated amounts
8430
+ *
8431
+ * Get credit purchase fee information
8432
+ */
8433
+ 'get'(
8434
+ parameters?: Parameters<Paths.GetFeeInfo.QueryParameters> | null,
8435
+ data?: any,
8436
+ config?: AxiosRequestConfig
8437
+ ): OperationResponse<Paths.GetFeeInfo.Responses.$200>
8438
+ }
6810
8439
  ['/credits/user/purchase']: {
6811
8440
  /**
6812
8441
  * PurchaseCreditsForUser - Purchase credits for user
@@ -6934,6 +8563,16 @@ export interface PathsDictionary {
6934
8563
  data?: any,
6935
8564
  config?: AxiosRequestConfig
6936
8565
  ): OperationResponse<Paths.SetDefaultOrgPaymentMethod.Responses.$200>
8566
+ /**
8567
+ * RemoveDefaultOrgPaymentMethod - Remove default organization payment method
8568
+ *
8569
+ * Remove default payment method for organization (unset all defaults)
8570
+ */
8571
+ 'delete'(
8572
+ parameters?: Parameters<Paths.RemoveDefaultOrgPaymentMethod.PathParameters> | null,
8573
+ data?: any,
8574
+ config?: AxiosRequestConfig
8575
+ ): OperationResponse<Paths.RemoveDefaultOrgPaymentMethod.Responses.$200>
6937
8576
  }
6938
8577
  ['/credits/user/balances']: {
6939
8578
  /**
@@ -7087,6 +8726,18 @@ export interface PathsDictionary {
7087
8726
  config?: AxiosRequestConfig
7088
8727
  ): OperationResponse<Paths.GetSessionStatus.Responses.$200>
7089
8728
  }
8729
+ ['/cli-login/sessions']: {
8730
+ /**
8731
+ * ListUserSessions - List user's CLI sessions
8732
+ *
8733
+ * Get all CLI login sessions for the current user
8734
+ */
8735
+ 'get'(
8736
+ parameters?: Parameters<UnknownParamsObject> | null,
8737
+ data?: any,
8738
+ config?: AxiosRequestConfig
8739
+ ): OperationResponse<Paths.ListUserSessions.Responses.$200>
8740
+ }
7090
8741
  ['/cli-login/session/{sessionId}/approve']: {
7091
8742
  /**
7092
8743
  * ApproveSession - Approve CLI session
@@ -7157,20 +8808,20 @@ export interface PathsDictionary {
7157
8808
  }
7158
8809
  ['/ai/tools']: {
7159
8810
  /**
7160
- * GetTools - Get available tools for the organization/user
8811
+ * GetTools - Get available tools for the organization/user, optionally filtered by workers
7161
8812
  */
7162
8813
  'get'(
7163
- parameters?: Parameters<UnknownParamsObject> | null,
8814
+ parameters?: Parameters<Paths.GetTools.QueryParameters> | null,
7164
8815
  data?: any,
7165
8816
  config?: AxiosRequestConfig
7166
8817
  ): OperationResponse<Paths.GetTools.Responses.$200>
7167
8818
  }
7168
8819
  ['/ai/tools/test']: {
7169
8820
  /**
7170
- * TestKnowhowTool - Test a specific tool by calling it with provided arguments
8821
+ * TestKnowhowTool - Test a specific tool by calling it with provided arguments, optionally on specific workers
7171
8822
  */
7172
8823
  'post'(
7173
- parameters?: Parameters<UnknownParamsObject> | null,
8824
+ parameters?: Parameters<Paths.TestKnowhowTool.QueryParameters> | null,
7174
8825
  data?: Paths.TestKnowhowTool.RequestBody,
7175
8826
  config?: AxiosRequestConfig
7176
8827
  ): OperationResponse<Paths.TestKnowhowTool.Responses.$200>
@@ -7185,6 +8836,72 @@ export interface PathsDictionary {
7185
8836
  config?: AxiosRequestConfig
7186
8837
  ): OperationResponse<Paths.CreateEmbeddings.Responses.$200>
7187
8838
  }
8839
+ ['/admin/stats']: {
8840
+ /**
8841
+ * GetAdminStats - Get overall platform statistics
8842
+ */
8843
+ 'get'(
8844
+ parameters?: Parameters<UnknownParamsObject> | null,
8845
+ data?: any,
8846
+ config?: AxiosRequestConfig
8847
+ ): OperationResponse<Paths.GetAdminStats.Responses.$200>
8848
+ }
8849
+ ['/admin/organizations']: {
8850
+ /**
8851
+ * GetOrganizations - Get list of all organizations with spend information
8852
+ */
8853
+ 'get'(
8854
+ parameters?: Parameters<Paths.GetOrganizations.QueryParameters> | null,
8855
+ data?: any,
8856
+ config?: AxiosRequestConfig
8857
+ ): OperationResponse<Paths.GetOrganizations.Responses.$200>
8858
+ }
8859
+ ['/admin/organizations/top-spenders']: {
8860
+ /**
8861
+ * GetTopSpenders - Get top spending organizations
8862
+ */
8863
+ 'get'(
8864
+ parameters?: Parameters<Paths.GetTopSpenders.QueryParameters> | null,
8865
+ data?: any,
8866
+ config?: AxiosRequestConfig
8867
+ ): OperationResponse<Paths.GetTopSpenders.Responses.$200>
8868
+ }
8869
+ ['/admin/mcp-servers']: {
8870
+ /**
8871
+ * ListMcpServers - Get all global MCP servers (admin only)
8872
+ */
8873
+ 'get'(
8874
+ parameters?: Parameters<UnknownParamsObject> | null,
8875
+ data?: any,
8876
+ config?: AxiosRequestConfig
8877
+ ): OperationResponse<Paths.ListMcpServers.Responses.$200>
8878
+ /**
8879
+ * CreateMcpServer - Create a new global MCP server (admin only)
8880
+ */
8881
+ 'post'(
8882
+ parameters?: Parameters<UnknownParamsObject> | null,
8883
+ data?: Paths.CreateMcpServer.RequestBody,
8884
+ config?: AxiosRequestConfig
8885
+ ): OperationResponse<Paths.CreateMcpServer.Responses.$201>
8886
+ }
8887
+ ['/admin/mcp-servers/{id}']: {
8888
+ /**
8889
+ * UpdateMcpServer - Update a global MCP server (admin only)
8890
+ */
8891
+ 'post'(
8892
+ parameters?: Parameters<Paths.UpdateMcpServer.PathParameters> | null,
8893
+ data?: Paths.UpdateMcpServer.RequestBody,
8894
+ config?: AxiosRequestConfig
8895
+ ): OperationResponse<Paths.UpdateMcpServer.Responses.$200>
8896
+ /**
8897
+ * DeleteMcpServer - Delete a global MCP server (admin only)
8898
+ */
8899
+ 'delete'(
8900
+ parameters?: Parameters<Paths.DeleteMcpServer.PathParameters> | null,
8901
+ data?: any,
8902
+ config?: AxiosRequestConfig
8903
+ ): OperationResponse<Paths.DeleteMcpServer.Responses.$204>
8904
+ }
7188
8905
  }
7189
8906
 
7190
8907
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
@@ -7193,14 +8910,21 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
7193
8910
  export type AICompletionOptions = Components.Schemas.AICompletionOptions;
7194
8911
  export type AIEmbeddingOptions = Components.Schemas.AIEmbeddingOptions;
7195
8912
  export type AddCommentRequest = Components.Schemas.AddCommentRequest;
8913
+ export type AddMcpCatalogRequest = Components.Schemas.AddMcpCatalogRequest;
8914
+ export type AddSpecRequest = Components.Schemas.AddSpecRequest;
8915
+ export type AdminStatsResponse = Components.Schemas.AdminStatsResponse;
8916
+ export type AgentTask = Components.Schemas.AgentTask;
7196
8917
  export type ApiKeyAuthConfig = Components.Schemas.ApiKeyAuthConfig;
7197
8918
  export type ApproveSessionResponse = Components.Schemas.ApproveSessionResponse;
7198
8919
  export type AuthStatusResponse = Components.Schemas.AuthStatusResponse;
7199
8920
  export type AutoReloadSettings = Components.Schemas.AutoReloadSettings;
7200
8921
  export type BasicAuthConfig = Components.Schemas.BasicAuthConfig;
7201
8922
  export type ChatCompletionResponse = Components.Schemas.ChatCompletionResponse;
8923
+ export type ChatMessage = Components.Schemas.ChatMessage;
8924
+ export type ChatToolCall = Components.Schemas.ChatToolCall;
7202
8925
  export type CliLoginSessionStatus = Components.Schemas.CliLoginSessionStatus;
7203
8926
  export type CompletionResponse = Components.Schemas.CompletionResponse;
8927
+ export type CreateMcpServerRequest = Components.Schemas.CreateMcpServerRequest;
7204
8928
  export type CreateMessageTaskRequest = Components.Schemas.CreateMessageTaskRequest;
7205
8929
  export type CreateMessageTaskResponse = Components.Schemas.CreateMessageTaskResponse;
7206
8930
  export type CreateOrgMcpServerData = Components.Schemas.CreateOrgMcpServerData;
@@ -7215,6 +8939,8 @@ export type CreditBalance = Components.Schemas.CreditBalance;
7215
8939
  export type CreditBalanceResponse = Components.Schemas.CreditBalanceResponse;
7216
8940
  export type CreditPurchaseRequest = Components.Schemas.CreditPurchaseRequest;
7217
8941
  export type CreditPurchaseResponse = Components.Schemas.CreditPurchaseResponse;
8942
+ export type DefaultSelection_Prisma__36_McpServerPayload_ = Components.Schemas.DefaultSelectionPrisma36McpServerPayload;
8943
+ export type DefaultSelection_Prisma__36_OrgAgentTaskPayload_ = Components.Schemas.DefaultSelectionPrisma36OrgAgentTaskPayload;
7218
8944
  export type DefaultSelection_Prisma__36_OrgBehaviorPayload_ = Components.Schemas.DefaultSelectionPrisma36OrgBehaviorPayload;
7219
8945
  export type DefaultSelection_Prisma__36_OrgCreditPurchasePayload_ = Components.Schemas.DefaultSelectionPrisma36OrgCreditPurchasePayload;
7220
8946
  export type DefaultSelection_Prisma__36_OrgEmbeddingPayload_ = Components.Schemas.DefaultSelectionPrisma36OrgEmbeddingPayload;
@@ -7227,6 +8953,7 @@ export type DefaultSelection_Prisma__36_OrgUserMcpPayload_ = Components.Schemas.
7227
8953
  export type DefaultSelection_Prisma__36_OrgUserTaskPayload_ = Components.Schemas.DefaultSelectionPrisma36OrgUserTaskPayload;
7228
8954
  export type DefaultSelection_Prisma__36_OrgWorkerPayload_ = Components.Schemas.DefaultSelectionPrisma36OrgWorkerPayload;
7229
8955
  export type DefaultSelection_Prisma__36_OrganizationPayload_ = Components.Schemas.DefaultSelectionPrisma36OrganizationPayload;
8956
+ export type DefaultSelection_Prisma__36_SwaggerCatalogPayload_ = Components.Schemas.DefaultSelectionPrisma36SwaggerCatalogPayload;
7230
8957
  export type DefaultSelection_Prisma__36_TaskCheckPayload_ = Components.Schemas.DefaultSelectionPrisma36TaskCheckPayload;
7231
8958
  export type DefaultSelection_Prisma__36_TaskTemplatePayload_ = Components.Schemas.DefaultSelectionPrisma36TaskTemplatePayload;
7232
8959
  export type DefaultSelection_Prisma__36_UserCreditPurchasePayload_ = Components.Schemas.DefaultSelectionPrisma36UserCreditPurchasePayload;
@@ -7239,6 +8966,8 @@ export type FilterType_Prisma_OrgEmbeddingUpdateWithoutOrganizationInput_OrgEmbe
7239
8966
  export type FilterType_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptionalFields_OrgFileExcludedFields_ = Components.Schemas.FilterTypePrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields;
7240
8967
  export type Generate2FAResponse = Components.Schemas.Generate2FAResponse;
7241
8968
  export type Get2FAStatusResponse = Components.Schemas.Get2FAStatusResponse;
8969
+ export type GroupedCatalogEntry = Components.Schemas.GroupedCatalogEntry;
8970
+ export type GroupedMcpCatalogEntry = Components.Schemas.GroupedMcpCatalogEntry;
7242
8971
  export type HealthCheckResponse = Components.Schemas.HealthCheckResponse;
7243
8972
  export type InitiateOAuthRequest = Components.Schemas.InitiateOAuthRequest;
7244
8973
  export type InitiateOAuthResponse = Components.Schemas.InitiateOAuthResponse;
@@ -7247,11 +8976,16 @@ export type InputJsonObject = Components.Schemas.InputJsonObject;
7247
8976
  export type InputJsonValue = Components.Schemas.InputJsonValue;
7248
8977
  export type JsonArray = Components.Schemas.JsonArray;
7249
8978
  export type JsonObject = Components.Schemas.JsonObject;
8979
+ export type JsonRpcError = Components.Schemas.JsonRpcError;
8980
+ export type JsonRpcRequest = Components.Schemas.JsonRpcRequest;
8981
+ export type JsonRpcResponse = Components.Schemas.JsonRpcResponse;
7250
8982
  export type JsonValue = Components.Schemas.JsonValue;
7251
8983
  export type LivenessResponse = Components.Schemas.LivenessResponse;
7252
8984
  export type MarkCompletedRequest = Components.Schemas.MarkCompletedRequest;
7253
8985
  export type MarkCompletedResponse = Components.Schemas.MarkCompletedResponse;
7254
8986
  export type McpAuthConfig = Components.Schemas.McpAuthConfig;
8987
+ export type McpCatalogSummary = Components.Schemas.McpCatalogSummary;
8988
+ export type McpServer = Components.Schemas.McpServer;
7255
8989
  export type Message = Components.Schemas.Message;
7256
8990
  export type MessageContent = Components.Schemas.MessageContent;
7257
8991
  export type N$16_Enums_CheckState = Components.Schemas.N$16EnumsCheckState;
@@ -7267,6 +9001,7 @@ export type OAuth21StaticAuthConfig = Components.Schemas.OAuth21StaticAuthConfig
7267
9001
  export type Omit_EmbedSource_output_ = Components.Schemas.OmitEmbedSourceOutput;
7268
9002
  export type Omit_PartialBy_Prisma_OrgEmbeddingUpdateWithoutOrganizationInput_OrgEmbeddingOptionalFields__OrgEmbeddingExcludedFields_ = Components.Schemas.OmitPartialByPrismaOrgEmbeddingUpdateWithoutOrganizationInputOrgEmbeddingOptionalFieldsOrgEmbeddingExcludedFields;
7269
9003
  export type Omit_PartialBy_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptionalFields__OrgFileExcludedFields_ = Components.Schemas.OmitPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields;
9004
+ export type OrgAgentTask = Components.Schemas.OrgAgentTask;
7270
9005
  export type OrgBehavior = Components.Schemas.OrgBehavior;
7271
9006
  export type OrgBehaviorCreateData = Components.Schemas.OrgBehaviorCreateData;
7272
9007
  export type OrgBehaviorUpdateData = Components.Schemas.OrgBehaviorUpdateData;
@@ -7290,12 +9025,14 @@ export type OrgUserTaskUpdateData = Components.Schemas.OrgUserTaskUpdateData;
7290
9025
  export type OrgUserTaskWithRelations = Components.Schemas.OrgUserTaskWithRelations;
7291
9026
  export type OrgWorker = Components.Schemas.OrgWorker;
7292
9027
  export type Organization = Components.Schemas.Organization;
9028
+ export type OrganizationListItem = Components.Schemas.OrganizationListItem;
7293
9029
  export type OrganizationUpdateData = Components.Schemas.OrganizationUpdateData;
7294
9030
  export type OutputMessage = Components.Schemas.OutputMessage;
7295
9031
  export type Partial_CompletionOptions_ = Components.Schemas.PartialCompletionOptions;
7296
9032
  export type Partial_EmbeddingOptions_ = Components.Schemas.PartialEmbeddingOptions;
7297
9033
  export type PaymentMethodCreateRequest = Components.Schemas.PaymentMethodCreateRequest;
7298
9034
  export type PaymentMethodResponse = Components.Schemas.PaymentMethodResponse;
9035
+ export type PendingMessage = Components.Schemas.PendingMessage;
7299
9036
  export type Pick_EmbedSource_Exclude_keyofEmbedSource_output__ = Components.Schemas.PickEmbedSourceExcludeKeyofEmbedSourceOutput;
7300
9037
  export type Pick_PartialBy_Prisma_OrgEmbeddingUpdateWithoutOrganizationInput_OrgEmbeddingOptionalFields__Exclude_keyofPartialBy_Prisma_OrgEmbeddingUpdateWithoutOrganizationInput_OrgEmbeddingOptionalFields__OrgEmbeddingExcludedFields__ = Components.Schemas.PickPartialByPrismaOrgEmbeddingUpdateWithoutOrganizationInputOrgEmbeddingOptionalFieldsExcludeKeyofPartialByPrismaOrgEmbeddingUpdateWithoutOrganizationInputOrgEmbeddingOptionalFieldsOrgEmbeddingExcludedFields;
7301
9038
  export type Pick_PartialBy_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptionalFields__Exclude_keyofPartialBy_Prisma_OrgFileUpdateWithoutOrganizationInput_OrgFileOptionalFields__OrgFileExcludedFields__ = Components.Schemas.PickPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsExcludeKeyofPartialByPrismaOrgFileUpdateWithoutOrganizationInputOrgFileOptionalFieldsOrgFileExcludedFields;
@@ -7315,6 +9052,8 @@ export type PublicChatRequest = Components.Schemas.PublicChatRequest;
7315
9052
  export type PurchaseHistoryResponse = Components.Schemas.PurchaseHistoryResponse;
7316
9053
  export type ReadinessResponse = Components.Schemas.ReadinessResponse;
7317
9054
  export type Record_string_any_ = Components.Schemas.RecordStringAny;
9055
+ export type Record_string_number_ = Components.Schemas.RecordStringNumber;
9056
+ export type Record_string_string_ = Components.Schemas.RecordStringString;
7318
9057
  export type RequestPasswordResetRequest = Components.Schemas.RequestPasswordResetRequest;
7319
9058
  export type RequestPasswordResetResponse = Components.Schemas.RequestPasswordResetResponse;
7320
9059
  export type ResetPasswordRequest = Components.Schemas.ResetPasswordRequest;
@@ -7322,11 +9061,17 @@ export type ResetPasswordResponse = Components.Schemas.ResetPasswordResponse;
7322
9061
  export type RunChecksResponse = Components.Schemas.RunChecksResponse;
7323
9062
  export type SecretPathsResponse = Components.Schemas.SecretPathsResponse;
7324
9063
  export type SecretResponse = Components.Schemas.SecretResponse;
9064
+ export type SendMessageRequest = Components.Schemas.SendMessageRequest;
9065
+ export type SendMessageResponse = Components.Schemas.SendMessageResponse;
7325
9066
  export type ServiceStatus = Components.Schemas.ServiceStatus;
7326
9067
  export type SessionStatusResponse = Components.Schemas.SessionStatusResponse;
7327
9068
  export type SessionTokenResponse = Components.Schemas.SessionTokenResponse;
7328
9069
  export type Setup2FARequest = Components.Schemas.Setup2FARequest;
7329
9070
  export type Setup2FAResponse = Components.Schemas.Setup2FAResponse;
9071
+ export type SpecAnalysis = Components.Schemas.SpecAnalysis;
9072
+ export type StatusResponse = Components.Schemas.StatusResponse;
9073
+ export type SwaggerCatalog = Components.Schemas.SwaggerCatalog;
9074
+ export type SwaggerProxyAuthConfig = Components.Schemas.SwaggerProxyAuthConfig;
7330
9075
  export type TaskCheck = Components.Schemas.TaskCheck;
7331
9076
  export type TaskCheckData = Components.Schemas.TaskCheckData;
7332
9077
  export type TaskData = Components.Schemas.TaskData;
@@ -7337,19 +9082,26 @@ export type TaskTemplateCreateData = Components.Schemas.TaskTemplateCreateData;
7337
9082
  export type TaskTemplateUpdateData = Components.Schemas.TaskTemplateUpdateData;
7338
9083
  export type TaskTemplateWithRelations = Components.Schemas.TaskTemplateWithRelations;
7339
9084
  export type TemplateListResponse = Components.Schemas.TemplateListResponse;
9085
+ export type ThreadMessage = Components.Schemas.ThreadMessage;
7340
9086
  export type Tool = Components.Schemas.Tool;
7341
9087
  export type ToolCall = Components.Schemas.ToolCall;
7342
9088
  export type ToolCallRequest = Components.Schemas.ToolCallRequest;
7343
9089
  export type ToolProp = Components.Schemas.ToolProp;
9090
+ export type TopSpenderOrg = Components.Schemas.TopSpenderOrg;
9091
+ export type UpdateMcpCatalogRequest = Components.Schemas.UpdateMcpCatalogRequest;
9092
+ export type UpdateMcpServerRequest = Components.Schemas.UpdateMcpServerRequest;
7344
9093
  export type UpdateOrgMcpServerData = Components.Schemas.UpdateOrgMcpServerData;
7345
9094
  export type UpdateOrgTaskRequest = Components.Schemas.UpdateOrgTaskRequest;
7346
9095
  export type UpdateOrgTaskResponse = Components.Schemas.UpdateOrgTaskResponse;
7347
9096
  export type UpdateOrgUserMcpData = Components.Schemas.UpdateOrgUserMcpData;
7348
9097
  export type UpdateSecretRequest = Components.Schemas.UpdateSecretRequest;
9098
+ export type UpdateSpecRequest = Components.Schemas.UpdateSpecRequest;
7349
9099
  export type UserCreditPurchase = Components.Schemas.UserCreditPurchase;
7350
9100
  export type UserPaymentMethod = Components.Schemas.UserPaymentMethod;
7351
9101
  export type UserRole = Components.Schemas.UserRole;
7352
9102
  export type UserSecretResponse = Components.Schemas.UserSecretResponse;
9103
+ export type ValidateSpecRequest = Components.Schemas.ValidateSpecRequest;
9104
+ export type ValidationResult = Components.Schemas.ValidationResult;
7353
9105
  export type Verify2FARequest = Components.Schemas.Verify2FARequest;
7354
9106
  export type VideoParse = Components.Schemas.VideoParse;
7355
9107
  export type WaitlistStatus = Components.Schemas.WaitlistStatus;