@ideascol/agents-generator-sdk 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/bin/cli.js +80 -5
- package/dist/index.js +80 -4
- package/dist/lib/clients/agents-generator/index.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/AgentRequest.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/CredentialCreate.d.ts +8 -0
- package/dist/lib/clients/agents-generator/models/CredentialUpdate.d.ts +7 -0
- package/dist/lib/clients/agents-generator/services/AgentService.d.ts +1 -2
- package/dist/lib/clients/agents-generator/services/DefaultService.d.ts +53 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,8 +11,6 @@ import {
|
|
|
11
11
|
MessageCreate,
|
|
12
12
|
} from '@ideascol/agents-generator-sdk';
|
|
13
13
|
|
|
14
|
-
OpenAPI.BASE = 'https://api.agentsgenerator.dev';
|
|
15
|
-
|
|
16
14
|
export function Agents() {
|
|
17
15
|
const [agents, setAgents] = useState<AgentRequest[]>([]);
|
|
18
16
|
|
|
@@ -77,7 +75,7 @@ npx @ideascol/agents-generator-sdk@latest version --apiToken=1232 --URL=https://
|
|
|
77
75
|
### Update lib client
|
|
78
76
|
|
|
79
77
|
```bash
|
|
80
|
-
npx openapi-typescript-codegen \
|
|
78
|
+
npx openapi-typescript-codegen \
|
|
81
79
|
--input https://api.agentsgenerator.dev/openapi.json \
|
|
82
80
|
--output src/lib/clients/agents-generator \
|
|
83
81
|
--client fetch
|
package/dist/bin/cli.js
CHANGED
|
@@ -598,7 +598,7 @@ var OpenAPI;
|
|
|
598
598
|
var init_OpenAPI = __esm(() => {
|
|
599
599
|
OpenAPI = {
|
|
600
600
|
BASE: "",
|
|
601
|
-
VERSION: "main-
|
|
601
|
+
VERSION: "main-1.0.0",
|
|
602
602
|
WITH_CREDENTIALS: false,
|
|
603
603
|
CREDENTIALS: "include",
|
|
604
604
|
TOKEN: undefined,
|
|
@@ -849,14 +849,13 @@ class AgentService {
|
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
851
|
}
|
|
852
|
-
static getAgentsAgentsGet(skip, limit = 100
|
|
852
|
+
static getAgentsAgentsGet(skip, limit = 100) {
|
|
853
853
|
return request(OpenAPI, {
|
|
854
854
|
method: "GET",
|
|
855
855
|
url: "/agents",
|
|
856
856
|
query: {
|
|
857
857
|
skip,
|
|
858
|
-
limit
|
|
859
|
-
user_id: userId
|
|
858
|
+
limit
|
|
860
859
|
},
|
|
861
860
|
errors: {
|
|
862
861
|
422: `Validation Error`
|
|
@@ -1054,6 +1053,81 @@ var init_ConversationsService = __esm(() => {
|
|
|
1054
1053
|
init_request();
|
|
1055
1054
|
});
|
|
1056
1055
|
|
|
1056
|
+
// src/lib/clients/agents-generator/services/DefaultService.ts
|
|
1057
|
+
class DefaultService {
|
|
1058
|
+
static getCredentialsCredentialsGet() {
|
|
1059
|
+
return request(OpenAPI, {
|
|
1060
|
+
method: "GET",
|
|
1061
|
+
url: "/credentials"
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
static createCredentialCredentialsPost(requestBody) {
|
|
1065
|
+
return request(OpenAPI, {
|
|
1066
|
+
method: "POST",
|
|
1067
|
+
url: "/credentials",
|
|
1068
|
+
body: requestBody,
|
|
1069
|
+
mediaType: "application/json",
|
|
1070
|
+
errors: {
|
|
1071
|
+
422: `Validation Error`
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
static getCredentialCredentialsCredentialIdGet(credentialId) {
|
|
1076
|
+
return request(OpenAPI, {
|
|
1077
|
+
method: "GET",
|
|
1078
|
+
url: "/credentials/{credential_id}",
|
|
1079
|
+
path: {
|
|
1080
|
+
credential_id: credentialId
|
|
1081
|
+
},
|
|
1082
|
+
errors: {
|
|
1083
|
+
422: `Validation Error`
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
static updateCredentialCredentialsCredentialIdPut(credentialId, requestBody) {
|
|
1088
|
+
return request(OpenAPI, {
|
|
1089
|
+
method: "PUT",
|
|
1090
|
+
url: "/credentials/{credential_id}",
|
|
1091
|
+
path: {
|
|
1092
|
+
credential_id: credentialId
|
|
1093
|
+
},
|
|
1094
|
+
body: requestBody,
|
|
1095
|
+
mediaType: "application/json",
|
|
1096
|
+
errors: {
|
|
1097
|
+
422: `Validation Error`
|
|
1098
|
+
}
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
static deleteCredentialCredentialsCredentialIdDelete(credentialId) {
|
|
1102
|
+
return request(OpenAPI, {
|
|
1103
|
+
method: "DELETE",
|
|
1104
|
+
url: "/credentials/{credential_id}",
|
|
1105
|
+
path: {
|
|
1106
|
+
credential_id: credentialId
|
|
1107
|
+
},
|
|
1108
|
+
errors: {
|
|
1109
|
+
422: `Validation Error`
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId) {
|
|
1114
|
+
return request(OpenAPI, {
|
|
1115
|
+
method: "GET",
|
|
1116
|
+
url: "/credentials/{credential_id}/decrypt",
|
|
1117
|
+
path: {
|
|
1118
|
+
credential_id: credentialId
|
|
1119
|
+
},
|
|
1120
|
+
errors: {
|
|
1121
|
+
422: `Validation Error`
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
var init_DefaultService = __esm(() => {
|
|
1127
|
+
init_OpenAPI();
|
|
1128
|
+
init_request();
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1057
1131
|
// src/lib/clients/agents-generator/services/McpServersService.ts
|
|
1058
1132
|
class McpServersService {
|
|
1059
1133
|
static getMcpServersMcpServersGet() {
|
|
@@ -1107,6 +1181,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1107
1181
|
init_OpenAPI();
|
|
1108
1182
|
init_AgentService();
|
|
1109
1183
|
init_ConversationsService();
|
|
1184
|
+
init_DefaultService();
|
|
1110
1185
|
init_McpServersService();
|
|
1111
1186
|
init_RootService();
|
|
1112
1187
|
});
|
|
@@ -1347,7 +1422,7 @@ var init_agentsCommand = __esm(() => {
|
|
|
1347
1422
|
}],
|
|
1348
1423
|
action: async (args) => {
|
|
1349
1424
|
const client = new lib_default({ apiUrl: args.URL, apiToken: "" });
|
|
1350
|
-
const agents = await client.agent.getAgentsAgentsGet(0, 100
|
|
1425
|
+
const agents = await client.agent.getAgentsAgentsGet(0, 100);
|
|
1351
1426
|
console.log(agents);
|
|
1352
1427
|
}
|
|
1353
1428
|
};
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var OpenAPI;
|
|
|
166
166
|
var init_OpenAPI = __esm(() => {
|
|
167
167
|
OpenAPI = {
|
|
168
168
|
BASE: "",
|
|
169
|
-
VERSION: "main-
|
|
169
|
+
VERSION: "main-1.0.0",
|
|
170
170
|
WITH_CREDENTIALS: false,
|
|
171
171
|
CREDENTIALS: "include",
|
|
172
172
|
TOKEN: undefined,
|
|
@@ -417,14 +417,13 @@ class AgentService {
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
|
-
static getAgentsAgentsGet(skip, limit = 100
|
|
420
|
+
static getAgentsAgentsGet(skip, limit = 100) {
|
|
421
421
|
return request(OpenAPI, {
|
|
422
422
|
method: "GET",
|
|
423
423
|
url: "/agents",
|
|
424
424
|
query: {
|
|
425
425
|
skip,
|
|
426
|
-
limit
|
|
427
|
-
user_id: userId
|
|
426
|
+
limit
|
|
428
427
|
},
|
|
429
428
|
errors: {
|
|
430
429
|
422: `Validation Error`
|
|
@@ -622,6 +621,81 @@ var init_ConversationsService = __esm(() => {
|
|
|
622
621
|
init_request();
|
|
623
622
|
});
|
|
624
623
|
|
|
624
|
+
// src/lib/clients/agents-generator/services/DefaultService.ts
|
|
625
|
+
class DefaultService {
|
|
626
|
+
static getCredentialsCredentialsGet() {
|
|
627
|
+
return request(OpenAPI, {
|
|
628
|
+
method: "GET",
|
|
629
|
+
url: "/credentials"
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
static createCredentialCredentialsPost(requestBody) {
|
|
633
|
+
return request(OpenAPI, {
|
|
634
|
+
method: "POST",
|
|
635
|
+
url: "/credentials",
|
|
636
|
+
body: requestBody,
|
|
637
|
+
mediaType: "application/json",
|
|
638
|
+
errors: {
|
|
639
|
+
422: `Validation Error`
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
static getCredentialCredentialsCredentialIdGet(credentialId) {
|
|
644
|
+
return request(OpenAPI, {
|
|
645
|
+
method: "GET",
|
|
646
|
+
url: "/credentials/{credential_id}",
|
|
647
|
+
path: {
|
|
648
|
+
credential_id: credentialId
|
|
649
|
+
},
|
|
650
|
+
errors: {
|
|
651
|
+
422: `Validation Error`
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
static updateCredentialCredentialsCredentialIdPut(credentialId, requestBody) {
|
|
656
|
+
return request(OpenAPI, {
|
|
657
|
+
method: "PUT",
|
|
658
|
+
url: "/credentials/{credential_id}",
|
|
659
|
+
path: {
|
|
660
|
+
credential_id: credentialId
|
|
661
|
+
},
|
|
662
|
+
body: requestBody,
|
|
663
|
+
mediaType: "application/json",
|
|
664
|
+
errors: {
|
|
665
|
+
422: `Validation Error`
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
static deleteCredentialCredentialsCredentialIdDelete(credentialId) {
|
|
670
|
+
return request(OpenAPI, {
|
|
671
|
+
method: "DELETE",
|
|
672
|
+
url: "/credentials/{credential_id}",
|
|
673
|
+
path: {
|
|
674
|
+
credential_id: credentialId
|
|
675
|
+
},
|
|
676
|
+
errors: {
|
|
677
|
+
422: `Validation Error`
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId) {
|
|
682
|
+
return request(OpenAPI, {
|
|
683
|
+
method: "GET",
|
|
684
|
+
url: "/credentials/{credential_id}/decrypt",
|
|
685
|
+
path: {
|
|
686
|
+
credential_id: credentialId
|
|
687
|
+
},
|
|
688
|
+
errors: {
|
|
689
|
+
422: `Validation Error`
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
var init_DefaultService = __esm(() => {
|
|
695
|
+
init_OpenAPI();
|
|
696
|
+
init_request();
|
|
697
|
+
});
|
|
698
|
+
|
|
625
699
|
// src/lib/clients/agents-generator/services/McpServersService.ts
|
|
626
700
|
class McpServersService {
|
|
627
701
|
static getMcpServersMcpServersGet() {
|
|
@@ -675,6 +749,7 @@ var init_agents_generator = __esm(() => {
|
|
|
675
749
|
init_OpenAPI();
|
|
676
750
|
init_AgentService();
|
|
677
751
|
init_ConversationsService();
|
|
752
|
+
init_DefaultService();
|
|
678
753
|
init_McpServersService();
|
|
679
754
|
init_RootService();
|
|
680
755
|
});
|
|
@@ -905,6 +980,7 @@ __export(exports_src, {
|
|
|
905
980
|
RootService: () => RootService,
|
|
906
981
|
OpenAPI: () => OpenAPI,
|
|
907
982
|
McpServersService: () => McpServersService,
|
|
983
|
+
DefaultService: () => DefaultService,
|
|
908
984
|
ConversationsService: () => ConversationsService,
|
|
909
985
|
CancelablePromise: () => CancelablePromise,
|
|
910
986
|
CancelError: () => CancelError,
|
|
@@ -9,6 +9,8 @@ export type { AgentRequest } from './models/AgentRequest';
|
|
|
9
9
|
export type { ConversationCreate } from './models/ConversationCreate';
|
|
10
10
|
export type { ConversationResponse } from './models/ConversationResponse';
|
|
11
11
|
export type { ConversationUpdate } from './models/ConversationUpdate';
|
|
12
|
+
export type { CredentialCreate } from './models/CredentialCreate';
|
|
13
|
+
export type { CredentialUpdate } from './models/CredentialUpdate';
|
|
12
14
|
export type { Edge } from './models/Edge';
|
|
13
15
|
export type { ErrorResponse } from './models/ErrorResponse';
|
|
14
16
|
export type { Handoff } from './models/Handoff';
|
|
@@ -26,5 +28,6 @@ export type { Position } from './models/Position';
|
|
|
26
28
|
export type { ValidationError } from './models/ValidationError';
|
|
27
29
|
export { AgentService } from './services/AgentService';
|
|
28
30
|
export { ConversationsService } from './services/ConversationsService';
|
|
31
|
+
export { DefaultService } from './services/DefaultService';
|
|
29
32
|
export { McpServersService } from './services/McpServersService';
|
|
30
33
|
export { RootService } from './services/RootService';
|
|
@@ -9,6 +9,10 @@ export type AgentRequest = {
|
|
|
9
9
|
* List of MCP servers associated with this agent
|
|
10
10
|
*/
|
|
11
11
|
mcp_servers?: Array<MCPServerReference>;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the credential associated with this agent
|
|
14
|
+
*/
|
|
15
|
+
credential_id?: (string | null);
|
|
12
16
|
nodes: Array<Node>;
|
|
13
17
|
edges: Array<Edge>;
|
|
14
18
|
timestamp: string;
|
|
@@ -16,11 +16,10 @@ export declare class AgentService {
|
|
|
16
16
|
* Get Agents
|
|
17
17
|
* @param skip
|
|
18
18
|
* @param limit
|
|
19
|
-
* @param userId
|
|
20
19
|
* @returns any Successful Response
|
|
21
20
|
* @throws ApiError
|
|
22
21
|
*/
|
|
23
|
-
static getAgentsAgentsGet(skip?: number, limit?: number
|
|
22
|
+
static getAgentsAgentsGet(skip?: number, limit?: number): CancelablePromise<Array<Record<string, any>>>;
|
|
24
23
|
/**
|
|
25
24
|
* Update Agent
|
|
26
25
|
* @param agentId
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { CredentialCreate } from '../models/CredentialCreate';
|
|
2
|
+
import type { CredentialUpdate } from '../models/CredentialUpdate';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class DefaultService {
|
|
5
|
+
/**
|
|
6
|
+
* Get Credentials
|
|
7
|
+
* Get all credentials for a user
|
|
8
|
+
* @returns any Successful Response
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getCredentialsCredentialsGet(): CancelablePromise<Record<string, any>>;
|
|
12
|
+
/**
|
|
13
|
+
* Create Credential
|
|
14
|
+
* Create a new credential
|
|
15
|
+
* @param requestBody
|
|
16
|
+
* @returns any Successful Response
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
static createCredentialCredentialsPost(requestBody: CredentialCreate): CancelablePromise<Record<string, any>>;
|
|
20
|
+
/**
|
|
21
|
+
* Get Credential
|
|
22
|
+
* Get a specific credential by ID
|
|
23
|
+
* @param credentialId
|
|
24
|
+
* @returns any Successful Response
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static getCredentialCredentialsCredentialIdGet(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
28
|
+
/**
|
|
29
|
+
* Update Credential
|
|
30
|
+
* Update a credential
|
|
31
|
+
* @param credentialId
|
|
32
|
+
* @param requestBody
|
|
33
|
+
* @returns any Successful Response
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static updateCredentialCredentialsCredentialIdPut(credentialId: string, requestBody: CredentialUpdate): CancelablePromise<Record<string, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete Credential
|
|
39
|
+
* Delete a credential
|
|
40
|
+
* @param credentialId
|
|
41
|
+
* @returns any Successful Response
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static deleteCredentialCredentialsCredentialIdDelete(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
45
|
+
/**
|
|
46
|
+
* Get Credential Decrypted
|
|
47
|
+
* Get a credential with decrypted value (internal use only)
|
|
48
|
+
* @param credentialId
|
|
49
|
+
* @returns any Successful Response
|
|
50
|
+
* @throws ApiError
|
|
51
|
+
*/
|
|
52
|
+
static getCredentialDecryptedCredentialsCredentialIdDecryptGet(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
53
|
+
}
|