@ideascol/agents-generator-sdk 0.3.1 → 0.3.3

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
@@ -835,10 +835,13 @@ var init_request = __esm(() => {
835
835
 
836
836
  // src/lib/clients/agents-generator/services/AdminAgentsService.ts
837
837
  class AdminAgentsService {
838
- static createAgent(requestBody) {
838
+ static createAgent(requestBody, workspaceId) {
839
839
  return request(OpenAPI, {
840
840
  method: "POST",
841
841
  url: "/agents",
842
+ query: {
843
+ workspace_id: workspaceId
844
+ },
842
845
  body: requestBody,
843
846
  mediaType: "application/json",
844
847
  errors: {
@@ -1424,10 +1427,13 @@ var init_AdminWorkspacesService = __esm(() => {
1424
1427
 
1425
1428
  // src/lib/clients/agents-generator/services/AgentService.ts
1426
1429
  class AgentService {
1427
- static createAgent(requestBody) {
1430
+ static createAgent(requestBody, workspaceId) {
1428
1431
  return request(OpenAPI, {
1429
1432
  method: "POST",
1430
1433
  url: "/agents",
1434
+ query: {
1435
+ workspace_id: workspaceId
1436
+ },
1431
1437
  body: requestBody,
1432
1438
  mediaType: "application/json",
1433
1439
  errors: {
@@ -2207,7 +2213,8 @@ class AgentClient {
2207
2213
  conversations: AdminConversationsService,
2208
2214
  credentials: AdminCredentialsService,
2209
2215
  fileLibrary: AdminFileLibraryService,
2210
- mcpServers: AdminMcpServersService
2216
+ mcpServers: AdminMcpServersService,
2217
+ workspaces: AdminWorkspacesService
2211
2218
  };
2212
2219
  this.public = {
2213
2220
  agents: PublicAgentsService,
package/dist/index.js CHANGED
@@ -403,10 +403,13 @@ var init_request = __esm(() => {
403
403
 
404
404
  // src/lib/clients/agents-generator/services/AdminAgentsService.ts
405
405
  class AdminAgentsService {
406
- static createAgent(requestBody) {
406
+ static createAgent(requestBody, workspaceId) {
407
407
  return request(OpenAPI, {
408
408
  method: "POST",
409
409
  url: "/agents",
410
+ query: {
411
+ workspace_id: workspaceId
412
+ },
410
413
  body: requestBody,
411
414
  mediaType: "application/json",
412
415
  errors: {
@@ -992,10 +995,13 @@ var init_AdminWorkspacesService = __esm(() => {
992
995
 
993
996
  // src/lib/clients/agents-generator/services/AgentService.ts
994
997
  class AgentService {
995
- static createAgent(requestBody) {
998
+ static createAgent(requestBody, workspaceId) {
996
999
  return request(OpenAPI, {
997
1000
  method: "POST",
998
1001
  url: "/agents",
1002
+ query: {
1003
+ workspace_id: workspaceId
1004
+ },
999
1005
  body: requestBody,
1000
1006
  mediaType: "application/json",
1001
1007
  errors: {
@@ -1775,7 +1781,8 @@ class AgentClient {
1775
1781
  conversations: AdminConversationsService,
1776
1782
  credentials: AdminCredentialsService,
1777
1783
  fileLibrary: AdminFileLibraryService,
1778
- mcpServers: AdminMcpServersService
1784
+ mcpServers: AdminMcpServersService,
1785
+ workspaces: AdminWorkspacesService
1779
1786
  };
1780
1787
  this.public = {
1781
1788
  agents: PublicAgentsService,
@@ -9,10 +9,11 @@ export declare class AdminAgentsService {
9
9
  /**
10
10
  * Create Agent
11
11
  * @param requestBody
12
+ * @param workspaceId
12
13
  * @returns CreateAgentResponse Successful Response
13
14
  * @throws ApiError
14
15
  */
15
- static createAgent(requestBody: AgentRequest): CancelablePromise<CreateAgentResponse>;
16
+ static createAgent(requestBody: AgentRequest, workspaceId?: (string | null)): CancelablePromise<CreateAgentResponse>;
16
17
  /**
17
18
  * Get Agents
18
19
  * @param skip
@@ -9,10 +9,11 @@ export declare class AgentService {
9
9
  /**
10
10
  * Create Agent
11
11
  * @param requestBody
12
+ * @param workspaceId
12
13
  * @returns CreateAgentResponse Successful Response
13
14
  * @throws ApiError
14
15
  */
15
- static createAgent(requestBody: AgentRequest): CancelablePromise<CreateAgentResponse>;
16
+ static createAgent(requestBody: AgentRequest, workspaceId?: (string | null)): CancelablePromise<CreateAgentResponse>;
16
17
  /**
17
18
  * Get Agents
18
19
  * @param skip
@@ -1,4 +1,4 @@
1
- import { ApiError, CancelablePromise, CancelError, ConversationsService, MessageCreate, OpenAPI, AgentService, McpServersService, RootService, FileLibraryService, CredentialsService, AdminAgentsService, PublicAgentsService, PublicConversationsService, AdminConversationsService, AdminCredentialsService, AdminFileLibraryService, AdminMcpServersService } 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 } from "./clients/agents-generator";
2
2
  export * from "./clients/agents-generator";
3
3
  export interface StreamEvent {
4
4
  type: string;
@@ -36,6 +36,7 @@ export declare class AgentClient {
36
36
  credentials: typeof AdminCredentialsService;
37
37
  fileLibrary: typeof AdminFileLibraryService;
38
38
  mcpServers: typeof AdminMcpServersService;
39
+ workspaces: typeof AdminWorkspacesService;
39
40
  };
40
41
  public: {
41
42
  agents: typeof PublicAgentsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",