@ideascol/agents-generator-sdk 0.4.0 → 0.5.0
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/dist/bin/cli.js +104 -5
- package/dist/index.js +106 -5
- package/dist/lib/clients/agents-generator/index.d.ts +6 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyCreate.d.ts +3 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyResponse.d.ts +10 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyUpdate.d.ts +4 -0
- package/dist/lib/clients/agents-generator/models/ApiKeyWithSecret.d.ts +11 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorCreate.d.ts +2 -1
- package/dist/lib/clients/agents-generator/models/WorkspaceCollaboratorResponse.d.ts +1 -1
- package/dist/lib/clients/agents-generator/models/WorkspaceResponse.d.ts +1 -0
- package/dist/lib/clients/agents-generator/models/WorkspaceWithStats.d.ts +1 -0
- package/dist/lib/clients/agents-generator/services/AdminApiKeysService.d.ts +50 -0
- package/dist/lib/clients/agents-generator/services/AdminCredentialsService.d.ts +5 -5
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +5 -4
- package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +1 -1
- package/dist/lib/clients/agents-generator/services/CredentialsService.d.ts +5 -5
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +5 -4
- package/dist/lib/clients/agents-generator/services/PresenceService.d.ts +11 -0
- package/dist/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.d.ts +1 -1
- package/dist/lib/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1013,6 +1013,79 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
1013
1013
|
init_request();
|
|
1014
1014
|
});
|
|
1015
1015
|
|
|
1016
|
+
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
1017
|
+
class AdminApiKeysService {
|
|
1018
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId, requestBody) {
|
|
1019
|
+
return request(OpenAPI, {
|
|
1020
|
+
method: "POST",
|
|
1021
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
1022
|
+
path: {
|
|
1023
|
+
workspace_id: workspaceId
|
|
1024
|
+
},
|
|
1025
|
+
body: requestBody,
|
|
1026
|
+
mediaType: "application/json",
|
|
1027
|
+
errors: {
|
|
1028
|
+
422: `Validation Error`
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId) {
|
|
1033
|
+
return request(OpenAPI, {
|
|
1034
|
+
method: "GET",
|
|
1035
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
1036
|
+
path: {
|
|
1037
|
+
workspace_id: workspaceId
|
|
1038
|
+
},
|
|
1039
|
+
errors: {
|
|
1040
|
+
422: `Validation Error`
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId) {
|
|
1045
|
+
return request(OpenAPI, {
|
|
1046
|
+
method: "GET",
|
|
1047
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1048
|
+
path: {
|
|
1049
|
+
api_key_id: apiKeyId
|
|
1050
|
+
},
|
|
1051
|
+
errors: {
|
|
1052
|
+
422: `Validation Error`
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId, apiKeyId, requestBody) {
|
|
1057
|
+
return request(OpenAPI, {
|
|
1058
|
+
method: "PATCH",
|
|
1059
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1060
|
+
path: {
|
|
1061
|
+
workspace_id: workspaceId,
|
|
1062
|
+
api_key_id: apiKeyId
|
|
1063
|
+
},
|
|
1064
|
+
body: requestBody,
|
|
1065
|
+
mediaType: "application/json",
|
|
1066
|
+
errors: {
|
|
1067
|
+
422: `Validation Error`
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId) {
|
|
1072
|
+
return request(OpenAPI, {
|
|
1073
|
+
method: "DELETE",
|
|
1074
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1075
|
+
path: {
|
|
1076
|
+
api_key_id: apiKeyId
|
|
1077
|
+
},
|
|
1078
|
+
errors: {
|
|
1079
|
+
422: `Validation Error`
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
var init_AdminApiKeysService = __esm(() => {
|
|
1085
|
+
init_OpenAPI();
|
|
1086
|
+
init_request();
|
|
1087
|
+
});
|
|
1088
|
+
|
|
1016
1089
|
// src/lib/clients/agents-generator/services/AdminConversationsService.ts
|
|
1017
1090
|
class AdminConversationsService {
|
|
1018
1091
|
static createConversation(requestBody) {
|
|
@@ -1251,7 +1324,7 @@ class AdminFileLibraryService {
|
|
|
1251
1324
|
}
|
|
1252
1325
|
});
|
|
1253
1326
|
}
|
|
1254
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
1327
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1255
1328
|
return request(OpenAPI, {
|
|
1256
1329
|
method: "GET",
|
|
1257
1330
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1259,7 +1332,8 @@ class AdminFileLibraryService {
|
|
|
1259
1332
|
bucket_id: bucketId
|
|
1260
1333
|
},
|
|
1261
1334
|
query: {
|
|
1262
|
-
parent_folder_id: parentFolderId
|
|
1335
|
+
parent_folder_id: parentFolderId,
|
|
1336
|
+
workspace_id: workspaceId
|
|
1263
1337
|
},
|
|
1264
1338
|
errors: {
|
|
1265
1339
|
422: `Validation Error`
|
|
@@ -1962,7 +2036,7 @@ class FileLibraryService {
|
|
|
1962
2036
|
}
|
|
1963
2037
|
});
|
|
1964
2038
|
}
|
|
1965
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
2039
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1966
2040
|
return request(OpenAPI, {
|
|
1967
2041
|
method: "GET",
|
|
1968
2042
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1970,7 +2044,8 @@ class FileLibraryService {
|
|
|
1970
2044
|
bucket_id: bucketId
|
|
1971
2045
|
},
|
|
1972
2046
|
query: {
|
|
1973
|
-
parent_folder_id: parentFolderId
|
|
2047
|
+
parent_folder_id: parentFolderId,
|
|
2048
|
+
workspace_id: workspaceId
|
|
1974
2049
|
},
|
|
1975
2050
|
errors: {
|
|
1976
2051
|
422: `Validation Error`
|
|
@@ -2122,6 +2197,26 @@ var init_McpServersService = __esm(() => {
|
|
|
2122
2197
|
init_request();
|
|
2123
2198
|
});
|
|
2124
2199
|
|
|
2200
|
+
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
2201
|
+
class PresenceService {
|
|
2202
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
2203
|
+
return request(OpenAPI, {
|
|
2204
|
+
method: "GET",
|
|
2205
|
+
url: "/presence/agents/{agent_id}",
|
|
2206
|
+
path: {
|
|
2207
|
+
agent_id: agentId
|
|
2208
|
+
},
|
|
2209
|
+
errors: {
|
|
2210
|
+
422: `Validation Error`
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
var init_PresenceService = __esm(() => {
|
|
2216
|
+
init_OpenAPI();
|
|
2217
|
+
init_request();
|
|
2218
|
+
});
|
|
2219
|
+
|
|
2125
2220
|
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
2126
2221
|
class PublicAgentsService {
|
|
2127
2222
|
static getAgent(agentId, workspaceId) {
|
|
@@ -2379,6 +2474,7 @@ var init_agents_generator = __esm(() => {
|
|
|
2379
2474
|
init_OpenAPI();
|
|
2380
2475
|
init_CollaboratorRole();
|
|
2381
2476
|
init_AdminAgentsService();
|
|
2477
|
+
init_AdminApiKeysService();
|
|
2382
2478
|
init_AdminConversationsService();
|
|
2383
2479
|
init_AdminCredentialsService();
|
|
2384
2480
|
init_AdminFileLibraryService();
|
|
@@ -2389,6 +2485,7 @@ var init_agents_generator = __esm(() => {
|
|
|
2389
2485
|
init_CredentialsService();
|
|
2390
2486
|
init_FileLibraryService();
|
|
2391
2487
|
init_McpServersService();
|
|
2488
|
+
init_PresenceService();
|
|
2392
2489
|
init_PublicAgentsService();
|
|
2393
2490
|
init_PublicConversationsService();
|
|
2394
2491
|
init_RootService();
|
|
@@ -2434,7 +2531,9 @@ class AgentClient {
|
|
|
2434
2531
|
fileLibrary: AdminFileLibraryService,
|
|
2435
2532
|
mcpServers: AdminMcpServersService,
|
|
2436
2533
|
workspaces: AdminWorkspacesService,
|
|
2437
|
-
collaborators: WorkspaceCollaboratorsService
|
|
2534
|
+
collaborators: WorkspaceCollaboratorsService,
|
|
2535
|
+
apiKeys: AdminApiKeysService,
|
|
2536
|
+
presence: PresenceService
|
|
2438
2537
|
};
|
|
2439
2538
|
this.public = {
|
|
2440
2539
|
agents: PublicAgentsService,
|
package/dist/index.js
CHANGED
|
@@ -581,6 +581,79 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
581
581
|
init_request();
|
|
582
582
|
});
|
|
583
583
|
|
|
584
|
+
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
585
|
+
class AdminApiKeysService {
|
|
586
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId, requestBody) {
|
|
587
|
+
return request(OpenAPI, {
|
|
588
|
+
method: "POST",
|
|
589
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
590
|
+
path: {
|
|
591
|
+
workspace_id: workspaceId
|
|
592
|
+
},
|
|
593
|
+
body: requestBody,
|
|
594
|
+
mediaType: "application/json",
|
|
595
|
+
errors: {
|
|
596
|
+
422: `Validation Error`
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId) {
|
|
601
|
+
return request(OpenAPI, {
|
|
602
|
+
method: "GET",
|
|
603
|
+
url: "/workspaces/{workspace_id}/api-keys",
|
|
604
|
+
path: {
|
|
605
|
+
workspace_id: workspaceId
|
|
606
|
+
},
|
|
607
|
+
errors: {
|
|
608
|
+
422: `Validation Error`
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId) {
|
|
613
|
+
return request(OpenAPI, {
|
|
614
|
+
method: "GET",
|
|
615
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
616
|
+
path: {
|
|
617
|
+
api_key_id: apiKeyId
|
|
618
|
+
},
|
|
619
|
+
errors: {
|
|
620
|
+
422: `Validation Error`
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId, apiKeyId, requestBody) {
|
|
625
|
+
return request(OpenAPI, {
|
|
626
|
+
method: "PATCH",
|
|
627
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
628
|
+
path: {
|
|
629
|
+
workspace_id: workspaceId,
|
|
630
|
+
api_key_id: apiKeyId
|
|
631
|
+
},
|
|
632
|
+
body: requestBody,
|
|
633
|
+
mediaType: "application/json",
|
|
634
|
+
errors: {
|
|
635
|
+
422: `Validation Error`
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId) {
|
|
640
|
+
return request(OpenAPI, {
|
|
641
|
+
method: "DELETE",
|
|
642
|
+
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
643
|
+
path: {
|
|
644
|
+
api_key_id: apiKeyId
|
|
645
|
+
},
|
|
646
|
+
errors: {
|
|
647
|
+
422: `Validation Error`
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
var init_AdminApiKeysService = __esm(() => {
|
|
653
|
+
init_OpenAPI();
|
|
654
|
+
init_request();
|
|
655
|
+
});
|
|
656
|
+
|
|
584
657
|
// src/lib/clients/agents-generator/services/AdminConversationsService.ts
|
|
585
658
|
class AdminConversationsService {
|
|
586
659
|
static createConversation(requestBody) {
|
|
@@ -819,7 +892,7 @@ class AdminFileLibraryService {
|
|
|
819
892
|
}
|
|
820
893
|
});
|
|
821
894
|
}
|
|
822
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
895
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
823
896
|
return request(OpenAPI, {
|
|
824
897
|
method: "GET",
|
|
825
898
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -827,7 +900,8 @@ class AdminFileLibraryService {
|
|
|
827
900
|
bucket_id: bucketId
|
|
828
901
|
},
|
|
829
902
|
query: {
|
|
830
|
-
parent_folder_id: parentFolderId
|
|
903
|
+
parent_folder_id: parentFolderId,
|
|
904
|
+
workspace_id: workspaceId
|
|
831
905
|
},
|
|
832
906
|
errors: {
|
|
833
907
|
422: `Validation Error`
|
|
@@ -1530,7 +1604,7 @@ class FileLibraryService {
|
|
|
1530
1604
|
}
|
|
1531
1605
|
});
|
|
1532
1606
|
}
|
|
1533
|
-
static getFoldersByBucket(bucketId, parentFolderId) {
|
|
1607
|
+
static getFoldersByBucket(bucketId, parentFolderId, workspaceId) {
|
|
1534
1608
|
return request(OpenAPI, {
|
|
1535
1609
|
method: "GET",
|
|
1536
1610
|
url: "/file-library/buckets/{bucket_id}/folders",
|
|
@@ -1538,7 +1612,8 @@ class FileLibraryService {
|
|
|
1538
1612
|
bucket_id: bucketId
|
|
1539
1613
|
},
|
|
1540
1614
|
query: {
|
|
1541
|
-
parent_folder_id: parentFolderId
|
|
1615
|
+
parent_folder_id: parentFolderId,
|
|
1616
|
+
workspace_id: workspaceId
|
|
1542
1617
|
},
|
|
1543
1618
|
errors: {
|
|
1544
1619
|
422: `Validation Error`
|
|
@@ -1690,6 +1765,26 @@ var init_McpServersService = __esm(() => {
|
|
|
1690
1765
|
init_request();
|
|
1691
1766
|
});
|
|
1692
1767
|
|
|
1768
|
+
// src/lib/clients/agents-generator/services/PresenceService.ts
|
|
1769
|
+
class PresenceService {
|
|
1770
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId) {
|
|
1771
|
+
return request(OpenAPI, {
|
|
1772
|
+
method: "GET",
|
|
1773
|
+
url: "/presence/agents/{agent_id}",
|
|
1774
|
+
path: {
|
|
1775
|
+
agent_id: agentId
|
|
1776
|
+
},
|
|
1777
|
+
errors: {
|
|
1778
|
+
422: `Validation Error`
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
var init_PresenceService = __esm(() => {
|
|
1784
|
+
init_OpenAPI();
|
|
1785
|
+
init_request();
|
|
1786
|
+
});
|
|
1787
|
+
|
|
1693
1788
|
// src/lib/clients/agents-generator/services/PublicAgentsService.ts
|
|
1694
1789
|
class PublicAgentsService {
|
|
1695
1790
|
static getAgent(agentId, workspaceId) {
|
|
@@ -1947,6 +2042,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1947
2042
|
init_OpenAPI();
|
|
1948
2043
|
init_CollaboratorRole();
|
|
1949
2044
|
init_AdminAgentsService();
|
|
2045
|
+
init_AdminApiKeysService();
|
|
1950
2046
|
init_AdminConversationsService();
|
|
1951
2047
|
init_AdminCredentialsService();
|
|
1952
2048
|
init_AdminFileLibraryService();
|
|
@@ -1957,6 +2053,7 @@ var init_agents_generator = __esm(() => {
|
|
|
1957
2053
|
init_CredentialsService();
|
|
1958
2054
|
init_FileLibraryService();
|
|
1959
2055
|
init_McpServersService();
|
|
2056
|
+
init_PresenceService();
|
|
1960
2057
|
init_PublicAgentsService();
|
|
1961
2058
|
init_PublicConversationsService();
|
|
1962
2059
|
init_RootService();
|
|
@@ -2002,7 +2099,9 @@ class AgentClient {
|
|
|
2002
2099
|
fileLibrary: AdminFileLibraryService,
|
|
2003
2100
|
mcpServers: AdminMcpServersService,
|
|
2004
2101
|
workspaces: AdminWorkspacesService,
|
|
2005
|
-
collaborators: WorkspaceCollaboratorsService
|
|
2102
|
+
collaborators: WorkspaceCollaboratorsService,
|
|
2103
|
+
apiKeys: AdminApiKeysService,
|
|
2104
|
+
presence: PresenceService
|
|
2006
2105
|
};
|
|
2007
2106
|
this.public = {
|
|
2008
2107
|
agents: PublicAgentsService,
|
|
@@ -2260,6 +2359,7 @@ __export(exports_src, {
|
|
|
2260
2359
|
RootService: () => RootService,
|
|
2261
2360
|
PublicConversationsService: () => PublicConversationsService,
|
|
2262
2361
|
PublicAgentsService: () => PublicAgentsService,
|
|
2362
|
+
PresenceService: () => PresenceService,
|
|
2263
2363
|
OpenAPI: () => OpenAPI,
|
|
2264
2364
|
McpServersService: () => McpServersService,
|
|
2265
2365
|
FileLibraryService: () => FileLibraryService,
|
|
@@ -2276,6 +2376,7 @@ __export(exports_src, {
|
|
|
2276
2376
|
AdminFileLibraryService: () => AdminFileLibraryService,
|
|
2277
2377
|
AdminCredentialsService: () => AdminCredentialsService,
|
|
2278
2378
|
AdminConversationsService: () => AdminConversationsService,
|
|
2379
|
+
AdminApiKeysService: () => AdminApiKeysService,
|
|
2279
2380
|
AdminAgentsService: () => AdminAgentsService
|
|
2280
2381
|
});
|
|
2281
2382
|
module.exports = __toCommonJS(exports_src);
|
|
@@ -7,6 +7,10 @@ export type { AgentQueryRequest } from './models/AgentQueryRequest';
|
|
|
7
7
|
export type { AgentQueryResponse } from './models/AgentQueryResponse';
|
|
8
8
|
export type { AgentRequest } from './models/AgentRequest';
|
|
9
9
|
export type { AgentStats } from './models/AgentStats';
|
|
10
|
+
export type { ApiKeyCreate } from './models/ApiKeyCreate';
|
|
11
|
+
export type { ApiKeyResponse } from './models/ApiKeyResponse';
|
|
12
|
+
export type { ApiKeyUpdate } from './models/ApiKeyUpdate';
|
|
13
|
+
export type { ApiKeyWithSecret } from './models/ApiKeyWithSecret';
|
|
10
14
|
export type { Body_upload_file } from './models/Body_upload_file';
|
|
11
15
|
export type { BucketCreate } from './models/BucketCreate';
|
|
12
16
|
export type { BucketResponse } from './models/BucketResponse';
|
|
@@ -50,6 +54,7 @@ export type { WorkspaceResponse } from './models/WorkspaceResponse';
|
|
|
50
54
|
export type { WorkspaceUpdate } from './models/WorkspaceUpdate';
|
|
51
55
|
export type { WorkspaceWithStats } from './models/WorkspaceWithStats';
|
|
52
56
|
export { AdminAgentsService } from './services/AdminAgentsService';
|
|
57
|
+
export { AdminApiKeysService } from './services/AdminApiKeysService';
|
|
53
58
|
export { AdminConversationsService } from './services/AdminConversationsService';
|
|
54
59
|
export { AdminCredentialsService } from './services/AdminCredentialsService';
|
|
55
60
|
export { AdminFileLibraryService } from './services/AdminFileLibraryService';
|
|
@@ -60,6 +65,7 @@ export { ConversationsService } from './services/ConversationsService';
|
|
|
60
65
|
export { CredentialsService } from './services/CredentialsService';
|
|
61
66
|
export { FileLibraryService } from './services/FileLibraryService';
|
|
62
67
|
export { McpServersService } from './services/McpServersService';
|
|
68
|
+
export { PresenceService } from './services/PresenceService';
|
|
63
69
|
export { PublicAgentsService } from './services/PublicAgentsService';
|
|
64
70
|
export { PublicConversationsService } from './services/PublicConversationsService';
|
|
65
71
|
export { RootService } from './services/RootService';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ApiKeyCreate } from '../models/ApiKeyCreate';
|
|
2
|
+
import type { ApiKeyResponse } from '../models/ApiKeyResponse';
|
|
3
|
+
import type { ApiKeyUpdate } from '../models/ApiKeyUpdate';
|
|
4
|
+
import type { ApiKeyWithSecret } from '../models/ApiKeyWithSecret';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class AdminApiKeysService {
|
|
7
|
+
/**
|
|
8
|
+
* Create Api Key
|
|
9
|
+
* Create a new API key for a workspace
|
|
10
|
+
* @param workspaceId
|
|
11
|
+
* @param requestBody
|
|
12
|
+
* @returns ApiKeyWithSecret Successful Response
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static createApiKeyWorkspacesWorkspaceIdApiKeysPost(workspaceId: string, requestBody: ApiKeyCreate): CancelablePromise<ApiKeyWithSecret>;
|
|
16
|
+
/**
|
|
17
|
+
* Get Api Keys
|
|
18
|
+
* Get all API keys for a workspace
|
|
19
|
+
* @param workspaceId
|
|
20
|
+
* @returns ApiKeyResponse Successful Response
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static getApiKeysWorkspacesWorkspaceIdApiKeysGet(workspaceId: string): CancelablePromise<Array<ApiKeyResponse>>;
|
|
24
|
+
/**
|
|
25
|
+
* Get Api Key
|
|
26
|
+
* Get a specific API key
|
|
27
|
+
* @param apiKeyId
|
|
28
|
+
* @returns ApiKeyResponse Successful Response
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static getApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdGet(apiKeyId: string): CancelablePromise<ApiKeyResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Update Api Key
|
|
34
|
+
* Update an API key
|
|
35
|
+
* @param workspaceId
|
|
36
|
+
* @param apiKeyId
|
|
37
|
+
* @param requestBody
|
|
38
|
+
* @returns ApiKeyResponse Successful Response
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static updateApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdPatch(workspaceId: string, apiKeyId: string, requestBody: ApiKeyUpdate): CancelablePromise<ApiKeyResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Delete Api Key
|
|
44
|
+
* Delete an API key
|
|
45
|
+
* @param apiKeyId
|
|
46
|
+
* @returns any Successful Response
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
static deleteApiKeyWorkspacesWorkspaceIdApiKeysApiKeyIdDelete(apiKeyId: string): CancelablePromise<any>;
|
|
50
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
4
4
|
export declare class AdminCredentialsService {
|
|
5
5
|
/**
|
|
6
6
|
* Create Credential
|
|
7
|
-
* Create a new credential
|
|
7
|
+
* Create a new credential - only admin and owner roles can create credentials
|
|
8
8
|
* @param requestBody
|
|
9
9
|
* @param workspaceId
|
|
10
10
|
* @returns any Successful Response
|
|
@@ -13,7 +13,7 @@ export declare class AdminCredentialsService {
|
|
|
13
13
|
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get Credentials
|
|
16
|
-
* Get all credentials for a user
|
|
16
|
+
* Get all credentials for a user - allows collaborators to view workspace credentials
|
|
17
17
|
* @param workspaceId
|
|
18
18
|
* @returns any Successful Response
|
|
19
19
|
* @throws ApiError
|
|
@@ -21,7 +21,7 @@ export declare class AdminCredentialsService {
|
|
|
21
21
|
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
22
22
|
/**
|
|
23
23
|
* Get Credential
|
|
24
|
-
* Get a specific credential by ID
|
|
24
|
+
* Get a specific credential by ID - allows collaborators to view workspace credentials
|
|
25
25
|
* @param credentialId
|
|
26
26
|
* @param workspaceId
|
|
27
27
|
* @returns any Successful Response
|
|
@@ -30,7 +30,7 @@ export declare class AdminCredentialsService {
|
|
|
30
30
|
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
31
31
|
/**
|
|
32
32
|
* Update Credential
|
|
33
|
-
* Update a credential
|
|
33
|
+
* Update a credential - only admin and owner roles can edit credentials
|
|
34
34
|
* @param credentialId
|
|
35
35
|
* @param requestBody
|
|
36
36
|
* @param workspaceId
|
|
@@ -40,7 +40,7 @@ export declare class AdminCredentialsService {
|
|
|
40
40
|
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
41
41
|
/**
|
|
42
42
|
* Delete Credential
|
|
43
|
-
* Delete a credential
|
|
43
|
+
* Delete a credential - only admin and owner roles can delete credentials
|
|
44
44
|
* @param credentialId
|
|
45
45
|
* @param workspaceId
|
|
46
46
|
* @returns any Successful Response
|
|
@@ -19,7 +19,7 @@ export declare class AdminFileLibraryService {
|
|
|
19
19
|
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get Buckets
|
|
22
|
-
* Get all buckets for the user
|
|
22
|
+
* Get all buckets for the user - allows collaborators to view workspace buckets
|
|
23
23
|
* @param workspaceId
|
|
24
24
|
* @returns BucketResponse Successful Response
|
|
25
25
|
* @throws ApiError
|
|
@@ -53,13 +53,14 @@ export declare class AdminFileLibraryService {
|
|
|
53
53
|
static createFolder(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Get Folders
|
|
56
|
-
* Get folders in a bucket
|
|
56
|
+
* Get folders in a bucket - allows collaborators to view workspace folders
|
|
57
57
|
* @param bucketId
|
|
58
58
|
* @param parentFolderId
|
|
59
|
+
* @param workspaceId
|
|
59
60
|
* @returns FolderResponse Successful Response
|
|
60
61
|
* @throws ApiError
|
|
61
62
|
*/
|
|
62
|
-
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
|
+
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
64
|
/**
|
|
64
65
|
* Delete Folder
|
|
65
66
|
* Delete a folder
|
|
@@ -79,7 +80,7 @@ export declare class AdminFileLibraryService {
|
|
|
79
80
|
static uploadFile(folderId: string, formData: Body_upload_file): CancelablePromise<FileResponse>;
|
|
80
81
|
/**
|
|
81
82
|
* Get Files
|
|
82
|
-
* Get files in a folder
|
|
83
|
+
* Get files in a folder - allows collaborators to view workspace files
|
|
83
84
|
* @param folderId
|
|
84
85
|
* @returns FileResponse Successful Response
|
|
85
86
|
* @throws ApiError
|
|
@@ -60,7 +60,7 @@ export declare class AdminWorkspacesService {
|
|
|
60
60
|
* Add Collaborator
|
|
61
61
|
* Add a collaborator to a workspace.
|
|
62
62
|
* Only workspace owners can add collaborators.
|
|
63
|
-
* @param workspaceId
|
|
63
|
+
* @param workspaceId ID of the workspace to add the collaborator to
|
|
64
64
|
* @param requestBody
|
|
65
65
|
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
66
66
|
* @throws ApiError
|
|
@@ -4,7 +4,7 @@ import type { CancelablePromise } from '../core/CancelablePromise';
|
|
|
4
4
|
export declare class CredentialsService {
|
|
5
5
|
/**
|
|
6
6
|
* Create Credential
|
|
7
|
-
* Create a new credential
|
|
7
|
+
* Create a new credential - only admin and owner roles can create credentials
|
|
8
8
|
* @param requestBody
|
|
9
9
|
* @param workspaceId
|
|
10
10
|
* @returns any Successful Response
|
|
@@ -13,7 +13,7 @@ export declare class CredentialsService {
|
|
|
13
13
|
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
14
14
|
/**
|
|
15
15
|
* Get Credentials
|
|
16
|
-
* Get all credentials for a user
|
|
16
|
+
* Get all credentials for a user - allows collaborators to view workspace credentials
|
|
17
17
|
* @param workspaceId
|
|
18
18
|
* @returns any Successful Response
|
|
19
19
|
* @throws ApiError
|
|
@@ -21,7 +21,7 @@ export declare class CredentialsService {
|
|
|
21
21
|
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
22
22
|
/**
|
|
23
23
|
* Get Credential
|
|
24
|
-
* Get a specific credential by ID
|
|
24
|
+
* Get a specific credential by ID - allows collaborators to view workspace credentials
|
|
25
25
|
* @param credentialId
|
|
26
26
|
* @param workspaceId
|
|
27
27
|
* @returns any Successful Response
|
|
@@ -30,7 +30,7 @@ export declare class CredentialsService {
|
|
|
30
30
|
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
31
31
|
/**
|
|
32
32
|
* Update Credential
|
|
33
|
-
* Update a credential
|
|
33
|
+
* Update a credential - only admin and owner roles can edit credentials
|
|
34
34
|
* @param credentialId
|
|
35
35
|
* @param requestBody
|
|
36
36
|
* @param workspaceId
|
|
@@ -40,7 +40,7 @@ export declare class CredentialsService {
|
|
|
40
40
|
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
41
41
|
/**
|
|
42
42
|
* Delete Credential
|
|
43
|
-
* Delete a credential
|
|
43
|
+
* Delete a credential - only admin and owner roles can delete credentials
|
|
44
44
|
* @param credentialId
|
|
45
45
|
* @param workspaceId
|
|
46
46
|
* @returns any Successful Response
|
|
@@ -19,7 +19,7 @@ export declare class FileLibraryService {
|
|
|
19
19
|
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Get Buckets
|
|
22
|
-
* Get all buckets for the user
|
|
22
|
+
* Get all buckets for the user - allows collaborators to view workspace buckets
|
|
23
23
|
* @param workspaceId
|
|
24
24
|
* @returns BucketResponse Successful Response
|
|
25
25
|
* @throws ApiError
|
|
@@ -53,13 +53,14 @@ export declare class FileLibraryService {
|
|
|
53
53
|
static createFolder(requestBody: FolderCreate): CancelablePromise<FolderResponse>;
|
|
54
54
|
/**
|
|
55
55
|
* Get Folders
|
|
56
|
-
* Get folders in a bucket
|
|
56
|
+
* Get folders in a bucket - allows collaborators to view workspace folders
|
|
57
57
|
* @param bucketId
|
|
58
58
|
* @param parentFolderId
|
|
59
|
+
* @param workspaceId
|
|
59
60
|
* @returns FolderResponse Successful Response
|
|
60
61
|
* @throws ApiError
|
|
61
62
|
*/
|
|
62
|
-
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
|
+
static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
|
|
63
64
|
/**
|
|
64
65
|
* Delete Folder
|
|
65
66
|
* Delete a folder
|
|
@@ -79,7 +80,7 @@ export declare class FileLibraryService {
|
|
|
79
80
|
static uploadFile(folderId: string, formData: Body_upload_file): CancelablePromise<FileResponse>;
|
|
80
81
|
/**
|
|
81
82
|
* Get Files
|
|
82
|
-
* Get files in a folder
|
|
83
|
+
* Get files in a folder - allows collaborators to view workspace files
|
|
83
84
|
* @param folderId
|
|
84
85
|
* @returns FileResponse Successful Response
|
|
85
86
|
* @throws ApiError
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class PresenceService {
|
|
3
|
+
/**
|
|
4
|
+
* Get Agent Presence
|
|
5
|
+
* Get current presence information for an agent (HTTP endpoint)
|
|
6
|
+
* @param agentId
|
|
7
|
+
* @returns any Successful Response
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static getAgentPresencePresenceAgentsAgentIdGet(agentId: string): CancelablePromise<any>;
|
|
11
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class WorkspaceCollaboratorsService {
|
|
|
7
7
|
* Add Collaborator
|
|
8
8
|
* Add a collaborator to a workspace.
|
|
9
9
|
* Only workspace owners can add collaborators.
|
|
10
|
-
* @param workspaceId
|
|
10
|
+
* @param workspaceId ID of the workspace to add the collaborator to
|
|
11
11
|
* @param requestBody
|
|
12
12
|
* @returns WorkspaceCollaboratorResponse Successful Response
|
|
13
13
|
* @throws ApiError
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService, WorkspaceCollaboratorsService } from "./clients/agents-generator";
|
|
1
|
+
import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService, AdminWorkspacesService, WorkspaceCollaboratorsService, AdminApiKeysService, PresenceService } from "./clients/agents-generator";
|
|
2
2
|
export * from "./clients/agents-generator";
|
|
3
3
|
export interface StreamEvent {
|
|
4
4
|
type: string;
|
|
@@ -53,6 +53,8 @@ export declare class AgentClient {
|
|
|
53
53
|
mcpServers: typeof AdminMcpServersService;
|
|
54
54
|
workspaces: typeof AdminWorkspacesService;
|
|
55
55
|
collaborators: typeof WorkspaceCollaboratorsService;
|
|
56
|
+
apiKeys: typeof AdminApiKeysService;
|
|
57
|
+
presence: typeof PresenceService;
|
|
56
58
|
};
|
|
57
59
|
public: {
|
|
58
60
|
agents: typeof PublicAgentsService;
|