@reminix/cli 0.1.12 → 0.1.13

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.
@@ -58,6 +58,58 @@ export interface paths {
58
58
  patch?: never;
59
59
  trace?: never;
60
60
  };
61
+ "/agents": {
62
+ parameters: {
63
+ query?: never;
64
+ header?: never;
65
+ path?: never;
66
+ cookie?: never;
67
+ };
68
+ /**
69
+ * List agents
70
+ * @description List all agents in the project with optional filtering by type and status.
71
+ */
72
+ get: operations["listAgents"];
73
+ put?: never;
74
+ /**
75
+ * Create a managed agent
76
+ * @description Create a new managed agent with the specified configuration.
77
+ */
78
+ post: operations["createAgent"];
79
+ delete?: never;
80
+ options?: never;
81
+ head?: never;
82
+ patch?: never;
83
+ trace?: never;
84
+ };
85
+ "/agents/{name}": {
86
+ parameters: {
87
+ query?: never;
88
+ header?: never;
89
+ path?: never;
90
+ cookie?: never;
91
+ };
92
+ /**
93
+ * Get an agent
94
+ * @description Get details of a specific agent by name.
95
+ */
96
+ get: operations["getAgent"];
97
+ put?: never;
98
+ post?: never;
99
+ /**
100
+ * Delete a managed agent
101
+ * @description Delete a managed agent. Custom agents cannot be deleted via API.
102
+ */
103
+ delete: operations["deleteAgent"];
104
+ options?: never;
105
+ head?: never;
106
+ /**
107
+ * Update a managed agent
108
+ * @description Update an existing managed agent. Custom agents cannot be updated via API.
109
+ */
110
+ patch: operations["updateAgent"];
111
+ trace?: never;
112
+ };
61
113
  "/agents/{name}/invoke": {
62
114
  parameters: {
63
115
  query?: never;
@@ -139,6 +191,74 @@ export interface paths {
139
191
  patch?: never;
140
192
  trace?: never;
141
193
  };
194
+ "/tools": {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ /**
202
+ * List tools
203
+ * @description List all tools in the project with optional filtering by type and status. Tools are automatically discovered from deployments.
204
+ */
205
+ get: operations["listTools"];
206
+ put?: never;
207
+ post?: never;
208
+ delete?: never;
209
+ options?: never;
210
+ head?: never;
211
+ patch?: never;
212
+ trace?: never;
213
+ };
214
+ "/tools/{name}": {
215
+ parameters: {
216
+ query?: never;
217
+ header?: never;
218
+ path?: never;
219
+ cookie?: never;
220
+ };
221
+ /**
222
+ * Get a tool
223
+ * @description Get details of a specific tool by name.
224
+ */
225
+ get: operations["getTool"];
226
+ put?: never;
227
+ post?: never;
228
+ delete?: never;
229
+ options?: never;
230
+ head?: never;
231
+ patch?: never;
232
+ trace?: never;
233
+ };
234
+ "/tools/{name}/execute": {
235
+ parameters: {
236
+ query?: never;
237
+ header?: never;
238
+ path?: never;
239
+ cookie?: never;
240
+ };
241
+ get?: never;
242
+ put?: never;
243
+ /**
244
+ * Execute a tool
245
+ * @description Execute a tool with the provided input parameters.
246
+ *
247
+ * **Timeout:** Tool executions have a 60-second timeout. If the tool takes longer to respond,
248
+ * you will receive a 504 Gateway Timeout error.
249
+ *
250
+ * **Use cases:**
251
+ * - Calling custom tools defined in your deployment
252
+ * - Executing utility functions
253
+ * - Integrating with external services via tools
254
+ */
255
+ post: operations["executeTool"];
256
+ delete?: never;
257
+ options?: never;
258
+ head?: never;
259
+ patch?: never;
260
+ trace?: never;
261
+ };
142
262
  "/secrets": {
143
263
  parameters: {
144
264
  query?: never;
@@ -368,18 +488,6 @@ export interface components {
368
488
  updatedAt: string;
369
489
  organization: components["schemas"]["Organization"];
370
490
  };
371
- /**
372
- * @example {
373
- * "nextCursor": "eyJpZCI6ImV2dF9hYmMxMjMifQ",
374
- * "hasMore": true
375
- * }
376
- */
377
- PaginationCursor: {
378
- /** @description Cursor for the next page of results. Null if there are no more results. */
379
- nextCursor: string | null;
380
- /** @description Whether there are more results available */
381
- hasMore: boolean;
382
- };
383
491
  /**
384
492
  * @example {
385
493
  * "error": "Invalid request"
@@ -389,6 +497,68 @@ export interface components {
389
497
  /** @description Error message describing what went wrong */
390
498
  error: string;
391
499
  };
500
+ /** @description Agent configuration (for managed agents) */
501
+ AgentConfig: {
502
+ /** @description System prompt for the agent */
503
+ systemPrompt: string;
504
+ /** @description List of tools available to the agent */
505
+ tools: string[];
506
+ /** @description Maximum tool call iterations */
507
+ maxIterations?: number;
508
+ /** @description Whether to require approval for tool calls */
509
+ requireApproval?: boolean;
510
+ } | null;
511
+ Agent: {
512
+ /** @description Unique agent ID */
513
+ id: string;
514
+ /** @description Project ID */
515
+ projectId: string;
516
+ /** @description Agent name */
517
+ name: string;
518
+ /**
519
+ * @description Agent type
520
+ * @enum {string}
521
+ */
522
+ type: "managed" | "custom";
523
+ /**
524
+ * @description Agent status
525
+ * @enum {string}
526
+ */
527
+ status: "active" | "inactive";
528
+ config: components["schemas"]["AgentConfig"];
529
+ /** @description Agent description */
530
+ description: string | null;
531
+ /** @description When the agent was discovered (for custom agents) */
532
+ discoveredAt: string | null;
533
+ /** @description User who created the agent */
534
+ createdBy: string | null;
535
+ /** @description Creation timestamp */
536
+ createdAt: string;
537
+ /** @description Last update timestamp */
538
+ updatedAt: string;
539
+ };
540
+ CreateAgentRequest: {
541
+ /** @description Agent name */
542
+ name: string;
543
+ /** @description Agent description */
544
+ description?: string;
545
+ config: components["schemas"]["AgentConfig"] & unknown;
546
+ };
547
+ UpdateAgentRequest: {
548
+ /** @description Agent description */
549
+ description?: string;
550
+ /** @description Partial agent configuration to update */
551
+ config?: {
552
+ /** @description System prompt for the agent */
553
+ systemPrompt?: string;
554
+ /** @description List of tools available to the agent */
555
+ tools?: string[];
556
+ /** @description Maximum tool call iterations */
557
+ maxIterations?: number;
558
+ /** @description Whether to require approval for tool calls */
559
+ requireApproval?: boolean;
560
+ };
561
+ };
392
562
  InvokeResponse: {
393
563
  /** @description Output from the agent. Structure depends on agent implementation. */
394
564
  output?: unknown;
@@ -435,12 +605,14 @@ export interface components {
435
605
  text?: string;
436
606
  image_url?: components["schemas"]["ImageUrl"];
437
607
  };
608
+ MultimodalContent: components["schemas"]["ContentItem"][];
609
+ ToolResultContent: {
610
+ [key: string]: unknown;
611
+ };
438
612
  ChatMessage: {
439
613
  role: components["schemas"]["ChatMessageRole"];
440
614
  /** @description Message content. Can be string, array (multimodal), or object (tool). */
441
- content: string | components["schemas"]["ContentItem"][] | {
442
- [key: string]: unknown;
443
- };
615
+ content: string | components["schemas"]["MultimodalContent"] | components["schemas"]["ToolResultContent"];
444
616
  /** @description Tool name (required when role is "tool") */
445
617
  name?: string;
446
618
  /** @description Tool call ID (for tool role) */
@@ -462,6 +634,56 @@ export interface components {
462
634
  stream: boolean;
463
635
  context?: components["schemas"]["Context"];
464
636
  };
637
+ /** @description JSON Schema for tool input parameters */
638
+ JsonSchema: ({
639
+ type: string;
640
+ properties?: {
641
+ [key: string]: unknown;
642
+ };
643
+ required?: string[];
644
+ } & {
645
+ [key: string]: unknown;
646
+ }) | null;
647
+ Tool: {
648
+ /** @description Unique tool ID */
649
+ id: string;
650
+ /** @description Project ID */
651
+ projectId: string;
652
+ /** @description Tool name */
653
+ name: string;
654
+ /**
655
+ * @description Tool type
656
+ * @enum {string}
657
+ */
658
+ type: "managed" | "custom";
659
+ /**
660
+ * @description Tool status
661
+ * @enum {string}
662
+ */
663
+ status: "active" | "inactive";
664
+ /** @description Tool description */
665
+ description: string | null;
666
+ parameters: components["schemas"]["JsonSchema"];
667
+ output: components["schemas"]["JsonSchema"] & unknown;
668
+ /** @description When the tool was discovered */
669
+ discoveredAt: string | null;
670
+ /** @description User who created the tool (for managed tools) */
671
+ createdBy: string | null;
672
+ /** @description Creation timestamp */
673
+ createdAt: string;
674
+ /** @description Last update timestamp */
675
+ updatedAt: string;
676
+ };
677
+ ExecuteToolResponse: {
678
+ /** @description Output from the tool execution. */
679
+ output?: unknown;
680
+ };
681
+ ExecuteToolRequest: {
682
+ /** @description Input parameters for the tool. Structure depends on tool definition. */
683
+ input: {
684
+ [key: string]: unknown;
685
+ };
686
+ };
465
687
  Secret: {
466
688
  /** @description Unique identifier for the secret */
467
689
  id: string;
@@ -609,8 +831,12 @@ export interface operations {
609
831
  [name: string]: unknown;
610
832
  };
611
833
  content: {
612
- "application/json": components["schemas"]["PaginationCursor"] & {
834
+ "application/json": {
613
835
  data: components["schemas"]["Project"][];
836
+ /** @description Cursor for the next page of results. Null if there are no more results. */
837
+ nextCursor: string | null;
838
+ /** @description Whether there are more results available */
839
+ hasMore: boolean;
614
840
  };
615
841
  };
616
842
  };
@@ -663,6 +889,242 @@ export interface operations {
663
889
  };
664
890
  };
665
891
  };
892
+ listAgents: {
893
+ parameters: {
894
+ query?: {
895
+ /** @description Number of agents to return */
896
+ limit?: number;
897
+ /** @description Cursor for pagination */
898
+ cursor?: string;
899
+ /** @description Filter by agent type */
900
+ type?: "managed" | "custom";
901
+ /** @description Filter by agent status */
902
+ status?: "active" | "inactive";
903
+ };
904
+ header?: never;
905
+ path?: never;
906
+ cookie?: never;
907
+ };
908
+ requestBody?: never;
909
+ responses: {
910
+ /** @description List of agents */
911
+ 200: {
912
+ headers: {
913
+ [name: string]: unknown;
914
+ };
915
+ content: {
916
+ "application/json": {
917
+ data: components["schemas"]["Agent"][];
918
+ nextCursor: string | null;
919
+ hasMore: boolean;
920
+ };
921
+ };
922
+ };
923
+ /** @description Unauthorized */
924
+ 401: {
925
+ headers: {
926
+ [name: string]: unknown;
927
+ };
928
+ content: {
929
+ "application/json": components["schemas"]["ErrorResponse"];
930
+ };
931
+ };
932
+ };
933
+ };
934
+ createAgent: {
935
+ parameters: {
936
+ query?: never;
937
+ header?: never;
938
+ path?: never;
939
+ cookie?: never;
940
+ };
941
+ requestBody?: {
942
+ content: {
943
+ "application/json": components["schemas"]["CreateAgentRequest"];
944
+ };
945
+ };
946
+ responses: {
947
+ /** @description Agent created */
948
+ 201: {
949
+ headers: {
950
+ [name: string]: unknown;
951
+ };
952
+ content: {
953
+ "application/json": components["schemas"]["Agent"];
954
+ };
955
+ };
956
+ /** @description Bad request */
957
+ 400: {
958
+ headers: {
959
+ [name: string]: unknown;
960
+ };
961
+ content: {
962
+ "application/json": components["schemas"]["ErrorResponse"];
963
+ };
964
+ };
965
+ /** @description Unauthorized */
966
+ 401: {
967
+ headers: {
968
+ [name: string]: unknown;
969
+ };
970
+ content: {
971
+ "application/json": components["schemas"]["ErrorResponse"];
972
+ };
973
+ };
974
+ /** @description Agent name already exists */
975
+ 409: {
976
+ headers: {
977
+ [name: string]: unknown;
978
+ };
979
+ content: {
980
+ "application/json": components["schemas"]["ErrorResponse"];
981
+ };
982
+ };
983
+ };
984
+ };
985
+ getAgent: {
986
+ parameters: {
987
+ query?: never;
988
+ header?: never;
989
+ path: {
990
+ /** @description Agent name */
991
+ name: string;
992
+ };
993
+ cookie?: never;
994
+ };
995
+ requestBody?: never;
996
+ responses: {
997
+ /** @description Agent details */
998
+ 200: {
999
+ headers: {
1000
+ [name: string]: unknown;
1001
+ };
1002
+ content: {
1003
+ "application/json": components["schemas"]["Agent"];
1004
+ };
1005
+ };
1006
+ /** @description Unauthorized */
1007
+ 401: {
1008
+ headers: {
1009
+ [name: string]: unknown;
1010
+ };
1011
+ content: {
1012
+ "application/json": components["schemas"]["ErrorResponse"];
1013
+ };
1014
+ };
1015
+ /** @description Agent not found */
1016
+ 404: {
1017
+ headers: {
1018
+ [name: string]: unknown;
1019
+ };
1020
+ content: {
1021
+ "application/json": components["schemas"]["ErrorResponse"];
1022
+ };
1023
+ };
1024
+ };
1025
+ };
1026
+ deleteAgent: {
1027
+ parameters: {
1028
+ query?: never;
1029
+ header?: never;
1030
+ path: {
1031
+ /** @description Agent name */
1032
+ name: string;
1033
+ };
1034
+ cookie?: never;
1035
+ };
1036
+ requestBody?: never;
1037
+ responses: {
1038
+ /** @description Agent deleted */
1039
+ 204: {
1040
+ headers: {
1041
+ [name: string]: unknown;
1042
+ };
1043
+ content?: never;
1044
+ };
1045
+ /** @description Cannot delete custom agent */
1046
+ 400: {
1047
+ headers: {
1048
+ [name: string]: unknown;
1049
+ };
1050
+ content: {
1051
+ "application/json": components["schemas"]["ErrorResponse"];
1052
+ };
1053
+ };
1054
+ /** @description Unauthorized */
1055
+ 401: {
1056
+ headers: {
1057
+ [name: string]: unknown;
1058
+ };
1059
+ content: {
1060
+ "application/json": components["schemas"]["ErrorResponse"];
1061
+ };
1062
+ };
1063
+ /** @description Agent not found */
1064
+ 404: {
1065
+ headers: {
1066
+ [name: string]: unknown;
1067
+ };
1068
+ content: {
1069
+ "application/json": components["schemas"]["ErrorResponse"];
1070
+ };
1071
+ };
1072
+ };
1073
+ };
1074
+ updateAgent: {
1075
+ parameters: {
1076
+ query?: never;
1077
+ header?: never;
1078
+ path: {
1079
+ /** @description Agent name */
1080
+ name: string;
1081
+ };
1082
+ cookie?: never;
1083
+ };
1084
+ requestBody?: {
1085
+ content: {
1086
+ "application/json": components["schemas"]["UpdateAgentRequest"];
1087
+ };
1088
+ };
1089
+ responses: {
1090
+ /** @description Agent updated */
1091
+ 200: {
1092
+ headers: {
1093
+ [name: string]: unknown;
1094
+ };
1095
+ content: {
1096
+ "application/json": components["schemas"]["Agent"];
1097
+ };
1098
+ };
1099
+ /** @description Bad request or cannot update custom agent */
1100
+ 400: {
1101
+ headers: {
1102
+ [name: string]: unknown;
1103
+ };
1104
+ content: {
1105
+ "application/json": components["schemas"]["ErrorResponse"];
1106
+ };
1107
+ };
1108
+ /** @description Unauthorized */
1109
+ 401: {
1110
+ headers: {
1111
+ [name: string]: unknown;
1112
+ };
1113
+ content: {
1114
+ "application/json": components["schemas"]["ErrorResponse"];
1115
+ };
1116
+ };
1117
+ /** @description Agent not found */
1118
+ 404: {
1119
+ headers: {
1120
+ [name: string]: unknown;
1121
+ };
1122
+ content: {
1123
+ "application/json": components["schemas"]["ErrorResponse"];
1124
+ };
1125
+ };
1126
+ };
1127
+ };
666
1128
  invokeAgent: {
667
1129
  parameters: {
668
1130
  query?: never;
@@ -827,6 +1289,170 @@ export interface operations {
827
1289
  };
828
1290
  };
829
1291
  };
1292
+ listTools: {
1293
+ parameters: {
1294
+ query?: {
1295
+ /** @description Number of tools to return */
1296
+ limit?: number;
1297
+ /** @description Cursor for pagination */
1298
+ cursor?: string;
1299
+ /** @description Filter by tool type */
1300
+ type?: "managed" | "custom";
1301
+ /** @description Filter by tool status */
1302
+ status?: "active" | "inactive";
1303
+ };
1304
+ header?: never;
1305
+ path?: never;
1306
+ cookie?: never;
1307
+ };
1308
+ requestBody?: never;
1309
+ responses: {
1310
+ /** @description List of tools */
1311
+ 200: {
1312
+ headers: {
1313
+ [name: string]: unknown;
1314
+ };
1315
+ content: {
1316
+ "application/json": {
1317
+ data: components["schemas"]["Tool"][];
1318
+ nextCursor: string | null;
1319
+ hasMore: boolean;
1320
+ };
1321
+ };
1322
+ };
1323
+ /** @description Unauthorized */
1324
+ 401: {
1325
+ headers: {
1326
+ [name: string]: unknown;
1327
+ };
1328
+ content: {
1329
+ "application/json": components["schemas"]["ErrorResponse"];
1330
+ };
1331
+ };
1332
+ };
1333
+ };
1334
+ getTool: {
1335
+ parameters: {
1336
+ query?: never;
1337
+ header?: never;
1338
+ path: {
1339
+ /** @description Tool name */
1340
+ name: string;
1341
+ };
1342
+ cookie?: never;
1343
+ };
1344
+ requestBody?: never;
1345
+ responses: {
1346
+ /** @description Tool details */
1347
+ 200: {
1348
+ headers: {
1349
+ [name: string]: unknown;
1350
+ };
1351
+ content: {
1352
+ "application/json": components["schemas"]["Tool"];
1353
+ };
1354
+ };
1355
+ /** @description Unauthorized */
1356
+ 401: {
1357
+ headers: {
1358
+ [name: string]: unknown;
1359
+ };
1360
+ content: {
1361
+ "application/json": components["schemas"]["ErrorResponse"];
1362
+ };
1363
+ };
1364
+ /** @description Tool not found */
1365
+ 404: {
1366
+ headers: {
1367
+ [name: string]: unknown;
1368
+ };
1369
+ content: {
1370
+ "application/json": components["schemas"]["ErrorResponse"];
1371
+ };
1372
+ };
1373
+ };
1374
+ };
1375
+ executeTool: {
1376
+ parameters: {
1377
+ query?: never;
1378
+ header?: never;
1379
+ path: {
1380
+ /** @description Tool name */
1381
+ name: string;
1382
+ };
1383
+ cookie?: never;
1384
+ };
1385
+ requestBody?: {
1386
+ content: {
1387
+ "application/json": components["schemas"]["ExecuteToolRequest"];
1388
+ };
1389
+ };
1390
+ responses: {
1391
+ /** @description Tool execution successful */
1392
+ 200: {
1393
+ headers: {
1394
+ [name: string]: unknown;
1395
+ };
1396
+ content: {
1397
+ "application/json": components["schemas"]["ExecuteToolResponse"];
1398
+ };
1399
+ };
1400
+ /** @description Bad Request - Invalid input */
1401
+ 400: {
1402
+ headers: {
1403
+ [name: string]: unknown;
1404
+ };
1405
+ content: {
1406
+ "application/json": components["schemas"]["ErrorResponse"];
1407
+ };
1408
+ };
1409
+ /** @description Unauthorized - Invalid or missing API key */
1410
+ 401: {
1411
+ headers: {
1412
+ [name: string]: unknown;
1413
+ };
1414
+ content: {
1415
+ "application/json": components["schemas"]["ErrorResponse"];
1416
+ };
1417
+ };
1418
+ /** @description Tool or deployment not found */
1419
+ 404: {
1420
+ headers: {
1421
+ [name: string]: unknown;
1422
+ };
1423
+ content: {
1424
+ "application/json": components["schemas"]["ErrorResponse"];
1425
+ };
1426
+ };
1427
+ /** @description Internal Server Error */
1428
+ 500: {
1429
+ headers: {
1430
+ [name: string]: unknown;
1431
+ };
1432
+ content: {
1433
+ "application/json": components["schemas"]["ErrorResponse"];
1434
+ };
1435
+ };
1436
+ /** @description Bad Gateway - Unable to reach deployment */
1437
+ 502: {
1438
+ headers: {
1439
+ [name: string]: unknown;
1440
+ };
1441
+ content: {
1442
+ "application/json": components["schemas"]["ErrorResponse"];
1443
+ };
1444
+ };
1445
+ /** @description Gateway Timeout - Tool execution exceeded timeout */
1446
+ 504: {
1447
+ headers: {
1448
+ [name: string]: unknown;
1449
+ };
1450
+ content: {
1451
+ "application/json": components["schemas"]["ErrorResponse"];
1452
+ };
1453
+ };
1454
+ };
1455
+ };
830
1456
  listSecrets: {
831
1457
  parameters: {
832
1458
  query?: {
@@ -847,8 +1473,12 @@ export interface operations {
847
1473
  [name: string]: unknown;
848
1474
  };
849
1475
  content: {
850
- "application/json": components["schemas"]["PaginationCursor"] & {
1476
+ "application/json": {
851
1477
  data: components["schemas"]["Secret"][];
1478
+ /** @description Cursor for the next page of results. Null if there are no more results. */
1479
+ nextCursor: string | null;
1480
+ /** @description Whether there are more results available */
1481
+ hasMore: boolean;
852
1482
  };
853
1483
  };
854
1484
  };
@@ -1018,8 +1648,12 @@ export interface operations {
1018
1648
  [name: string]: unknown;
1019
1649
  };
1020
1650
  content: {
1021
- "application/json": components["schemas"]["PaginationCursor"] & {
1651
+ "application/json": {
1022
1652
  data: components["schemas"]["Deployment"][];
1653
+ /** @description Cursor for the next page of results. Null if there are no more results. */
1654
+ nextCursor: string | null;
1655
+ /** @description Whether there are more results available */
1656
+ hasMore: boolean;
1023
1657
  };
1024
1658
  };
1025
1659
  };