@ideascol/agents-generator-sdk 0.5.0 → 0.5.2
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
CHANGED
|
@@ -1015,7 +1015,7 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
1015
1015
|
|
|
1016
1016
|
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
1017
1017
|
class AdminApiKeysService {
|
|
1018
|
-
static
|
|
1018
|
+
static createWorkspaceApiKey(workspaceId, requestBody) {
|
|
1019
1019
|
return request(OpenAPI, {
|
|
1020
1020
|
method: "POST",
|
|
1021
1021
|
url: "/workspaces/{workspace_id}/api-keys",
|
|
@@ -1029,7 +1029,7 @@ class AdminApiKeysService {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
static
|
|
1032
|
+
static listWorkspaceApiKeys(workspaceId) {
|
|
1033
1033
|
return request(OpenAPI, {
|
|
1034
1034
|
method: "GET",
|
|
1035
1035
|
url: "/workspaces/{workspace_id}/api-keys",
|
|
@@ -1041,11 +1041,12 @@ class AdminApiKeysService {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
|
-
static
|
|
1044
|
+
static getWorkspaceApiKey(workspaceId, apiKeyId) {
|
|
1045
1045
|
return request(OpenAPI, {
|
|
1046
1046
|
method: "GET",
|
|
1047
1047
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1048
1048
|
path: {
|
|
1049
|
+
workspace_id: workspaceId,
|
|
1049
1050
|
api_key_id: apiKeyId
|
|
1050
1051
|
},
|
|
1051
1052
|
errors: {
|
|
@@ -1053,7 +1054,7 @@ class AdminApiKeysService {
|
|
|
1053
1054
|
}
|
|
1054
1055
|
});
|
|
1055
1056
|
}
|
|
1056
|
-
static
|
|
1057
|
+
static updateWorkspaceApiKey(workspaceId, apiKeyId, requestBody) {
|
|
1057
1058
|
return request(OpenAPI, {
|
|
1058
1059
|
method: "PATCH",
|
|
1059
1060
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
@@ -1068,11 +1069,12 @@ class AdminApiKeysService {
|
|
|
1068
1069
|
}
|
|
1069
1070
|
});
|
|
1070
1071
|
}
|
|
1071
|
-
static
|
|
1072
|
+
static deleteWorkspaceApiKey(workspaceId, apiKeyId) {
|
|
1072
1073
|
return request(OpenAPI, {
|
|
1073
1074
|
method: "DELETE",
|
|
1074
1075
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
1075
1076
|
path: {
|
|
1077
|
+
workspace_id: workspaceId,
|
|
1076
1078
|
api_key_id: apiKeyId
|
|
1077
1079
|
},
|
|
1078
1080
|
errors: {
|
package/dist/index.js
CHANGED
|
@@ -583,7 +583,7 @@ var init_AdminAgentsService = __esm(() => {
|
|
|
583
583
|
|
|
584
584
|
// src/lib/clients/agents-generator/services/AdminApiKeysService.ts
|
|
585
585
|
class AdminApiKeysService {
|
|
586
|
-
static
|
|
586
|
+
static createWorkspaceApiKey(workspaceId, requestBody) {
|
|
587
587
|
return request(OpenAPI, {
|
|
588
588
|
method: "POST",
|
|
589
589
|
url: "/workspaces/{workspace_id}/api-keys",
|
|
@@ -597,7 +597,7 @@ class AdminApiKeysService {
|
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
-
static
|
|
600
|
+
static listWorkspaceApiKeys(workspaceId) {
|
|
601
601
|
return request(OpenAPI, {
|
|
602
602
|
method: "GET",
|
|
603
603
|
url: "/workspaces/{workspace_id}/api-keys",
|
|
@@ -609,11 +609,12 @@ class AdminApiKeysService {
|
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
-
static
|
|
612
|
+
static getWorkspaceApiKey(workspaceId, apiKeyId) {
|
|
613
613
|
return request(OpenAPI, {
|
|
614
614
|
method: "GET",
|
|
615
615
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
616
616
|
path: {
|
|
617
|
+
workspace_id: workspaceId,
|
|
617
618
|
api_key_id: apiKeyId
|
|
618
619
|
},
|
|
619
620
|
errors: {
|
|
@@ -621,7 +622,7 @@ class AdminApiKeysService {
|
|
|
621
622
|
}
|
|
622
623
|
});
|
|
623
624
|
}
|
|
624
|
-
static
|
|
625
|
+
static updateWorkspaceApiKey(workspaceId, apiKeyId, requestBody) {
|
|
625
626
|
return request(OpenAPI, {
|
|
626
627
|
method: "PATCH",
|
|
627
628
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
@@ -636,11 +637,12 @@ class AdminApiKeysService {
|
|
|
636
637
|
}
|
|
637
638
|
});
|
|
638
639
|
}
|
|
639
|
-
static
|
|
640
|
+
static deleteWorkspaceApiKey(workspaceId, apiKeyId) {
|
|
640
641
|
return request(OpenAPI, {
|
|
641
642
|
method: "DELETE",
|
|
642
643
|
url: "/workspaces/{workspace_id}/api-keys/{api_key_id}",
|
|
643
644
|
path: {
|
|
645
|
+
workspace_id: workspaceId,
|
|
644
646
|
api_key_id: apiKeyId
|
|
645
647
|
},
|
|
646
648
|
errors: {
|
|
@@ -7,44 +7,46 @@ export declare class AdminApiKeysService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Create Api Key
|
|
9
9
|
* Create a new API key for a workspace
|
|
10
|
-
* @param workspaceId
|
|
10
|
+
* @param workspaceId Workspace ID
|
|
11
11
|
* @param requestBody
|
|
12
12
|
* @returns ApiKeyWithSecret Successful Response
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
static
|
|
15
|
+
static createWorkspaceApiKey(workspaceId: string, requestBody?: ApiKeyCreate): CancelablePromise<ApiKeyWithSecret>;
|
|
16
16
|
/**
|
|
17
17
|
* Get Api Keys
|
|
18
18
|
* Get all API keys for a workspace
|
|
19
|
-
* @param workspaceId
|
|
19
|
+
* @param workspaceId Workspace ID
|
|
20
20
|
* @returns ApiKeyResponse Successful Response
|
|
21
21
|
* @throws ApiError
|
|
22
22
|
*/
|
|
23
|
-
static
|
|
23
|
+
static listWorkspaceApiKeys(workspaceId: string): CancelablePromise<Array<ApiKeyResponse>>;
|
|
24
24
|
/**
|
|
25
25
|
* Get Api Key
|
|
26
26
|
* Get a specific API key
|
|
27
|
-
* @param
|
|
27
|
+
* @param workspaceId Workspace ID
|
|
28
|
+
* @param apiKeyId API Key ID
|
|
28
29
|
* @returns ApiKeyResponse Successful Response
|
|
29
30
|
* @throws ApiError
|
|
30
31
|
*/
|
|
31
|
-
static
|
|
32
|
+
static getWorkspaceApiKey(workspaceId: string, apiKeyId: string): CancelablePromise<ApiKeyResponse>;
|
|
32
33
|
/**
|
|
33
34
|
* Update Api Key
|
|
34
35
|
* Update an API key
|
|
35
|
-
* @param workspaceId
|
|
36
|
-
* @param apiKeyId
|
|
36
|
+
* @param workspaceId Workspace ID
|
|
37
|
+
* @param apiKeyId API Key ID
|
|
37
38
|
* @param requestBody
|
|
38
39
|
* @returns ApiKeyResponse Successful Response
|
|
39
40
|
* @throws ApiError
|
|
40
41
|
*/
|
|
41
|
-
static
|
|
42
|
+
static updateWorkspaceApiKey(workspaceId: string, apiKeyId: string, requestBody?: ApiKeyUpdate): CancelablePromise<ApiKeyResponse>;
|
|
42
43
|
/**
|
|
43
44
|
* Delete Api Key
|
|
44
45
|
* Delete an API key
|
|
45
|
-
* @param
|
|
46
|
+
* @param workspaceId Workspace ID
|
|
47
|
+
* @param apiKeyId API Key ID
|
|
46
48
|
* @returns any Successful Response
|
|
47
49
|
* @throws ApiError
|
|
48
50
|
*/
|
|
49
|
-
static
|
|
51
|
+
static deleteWorkspaceApiKey(workspaceId: string, apiKeyId: string): CancelablePromise<any>;
|
|
50
52
|
}
|