@ideascol/agents-generator-sdk 0.5.1 → 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
@@ -1041,11 +1041,12 @@ class AdminApiKeysService {
1041
1041
  }
1042
1042
  });
1043
1043
  }
1044
- static getWorkspaceApiKey(apiKeyId) {
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: {
@@ -1068,11 +1069,12 @@ class AdminApiKeysService {
1068
1069
  }
1069
1070
  });
1070
1071
  }
1071
- static deleteWorkspaceApiKey(apiKeyId) {
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
@@ -609,11 +609,12 @@ class AdminApiKeysService {
609
609
  }
610
610
  });
611
611
  }
612
- static getWorkspaceApiKey(apiKeyId) {
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: {
@@ -636,11 +637,12 @@ class AdminApiKeysService {
636
637
  }
637
638
  });
638
639
  }
639
- static deleteWorkspaceApiKey(apiKeyId) {
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,16 +7,16 @@ 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 createWorkspaceApiKey(workspaceId: string, requestBody: ApiKeyCreate): CancelablePromise<ApiKeyWithSecret>;
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
  */
@@ -24,27 +24,29 @@ export declare class AdminApiKeysService {
24
24
  /**
25
25
  * Get Api Key
26
26
  * Get a specific API key
27
- * @param apiKeyId
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 getWorkspaceApiKey(apiKeyId: string): CancelablePromise<ApiKeyResponse>;
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 updateWorkspaceApiKey(workspaceId: string, apiKeyId: string, requestBody: ApiKeyUpdate): CancelablePromise<ApiKeyResponse>;
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 apiKeyId
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 deleteWorkspaceApiKey(apiKeyId: string): CancelablePromise<any>;
51
+ static deleteWorkspaceApiKey(workspaceId: string, apiKeyId: string): CancelablePromise<any>;
50
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",