@ideascol/agents-generator-sdk 0.6.1 → 0.7.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.
Files changed (39) hide show
  1. package/dist/bin/cli.js +861 -78
  2. package/dist/index.js +869 -79
  3. package/dist/lib/clients/agents-generator/index.d.ts +24 -0
  4. package/dist/lib/clients/agents-generator/models/AgentBreakdown.d.ts +10 -0
  5. package/dist/lib/clients/agents-generator/models/AgentDiffResponse.d.ts +7 -0
  6. package/dist/lib/clients/agents-generator/models/AgentFolderCreate.d.ts +18 -0
  7. package/dist/lib/clients/agents-generator/models/AgentFolderResponse.d.ts +24 -0
  8. package/dist/lib/clients/agents-generator/models/AgentFolderUpdate.d.ts +6 -0
  9. package/dist/lib/clients/agents-generator/models/AgentRequest.d.ts +4 -0
  10. package/dist/lib/clients/agents-generator/models/AgentTokenUsageSummary.d.ts +11 -0
  11. package/dist/lib/clients/agents-generator/models/AssignAgentRequest.d.ts +3 -0
  12. package/dist/lib/clients/agents-generator/models/ConversationTokenUsageSummary.d.ts +9 -0
  13. package/dist/lib/clients/agents-generator/models/DiscardDraftResponse.d.ts +6 -0
  14. package/dist/lib/clients/agents-generator/models/GetAgentResponse.d.ts +4 -0
  15. package/dist/lib/clients/agents-generator/models/ModelBreakdown.d.ts +11 -0
  16. package/dist/lib/clients/agents-generator/models/NodeData.d.ts +4 -0
  17. package/dist/lib/clients/agents-generator/models/PublishAgentResponse.d.ts +7 -0
  18. package/dist/lib/clients/agents-generator/models/TokenUsageLogResponse.d.ts +19 -0
  19. package/dist/lib/clients/agents-generator/models/UserBreakdown.d.ts +10 -0
  20. package/dist/lib/clients/agents-generator/models/UserTokenUsageSummary.d.ts +11 -0
  21. package/dist/lib/clients/agents-generator/models/WebhookConfigCreate.d.ts +5 -0
  22. package/dist/lib/clients/agents-generator/models/WebhookConfigUpdate.d.ts +5 -0
  23. package/dist/lib/clients/agents-generator/models/WorkspaceTokenUsageSummary.d.ts +13 -0
  24. package/dist/lib/clients/agents-generator/services/AdminAgentFoldersService.d.ts +64 -0
  25. package/dist/lib/clients/agents-generator/services/AdminAgentsService.d.ts +30 -0
  26. package/dist/lib/clients/agents-generator/services/AdminConversationsService.d.ts +9 -0
  27. package/dist/lib/clients/agents-generator/services/AdminTokenUsageService.d.ts +92 -0
  28. package/dist/lib/clients/agents-generator/services/AdminWebhookConfigsService.d.ts +31 -0
  29. package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +3 -3
  30. package/dist/lib/clients/agents-generator/services/AgentFoldersService.d.ts +64 -0
  31. package/dist/lib/clients/agents-generator/services/AgentService.d.ts +30 -0
  32. package/dist/lib/clients/agents-generator/services/ConversationsService.d.ts +11 -1
  33. package/dist/lib/clients/agents-generator/services/PublicConversationsService.d.ts +11 -1
  34. package/dist/lib/clients/agents-generator/services/TokenUsageService.d.ts +92 -0
  35. package/dist/lib/clients/agents-generator/services/WebhookConfigsService.d.ts +57 -0
  36. package/dist/lib/clients/agents-generator/services/WebhooksService.d.ts +13 -0
  37. package/dist/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.d.ts +3 -3
  38. package/dist/lib/index.d.ts +2 -1
  39. package/package.json +1 -1
@@ -2,15 +2,22 @@ export { ApiError } from './core/ApiError';
2
2
  export { CancelablePromise, CancelError } from './core/CancelablePromise';
3
3
  export { OpenAPI } from './core/OpenAPI';
4
4
  export type { OpenAPIConfig } from './core/OpenAPI';
5
+ export type { AgentBreakdown } from './models/AgentBreakdown';
6
+ export type { AgentDiffResponse } from './models/AgentDiffResponse';
7
+ export type { AgentFolderCreate } from './models/AgentFolderCreate';
8
+ export type { AgentFolderResponse } from './models/AgentFolderResponse';
9
+ export type { AgentFolderUpdate } from './models/AgentFolderUpdate';
5
10
  export type { AgentInitResponse } from './models/AgentInitResponse';
6
11
  export type { AgentQueryRequest } from './models/AgentQueryRequest';
7
12
  export type { AgentQueryResponse } from './models/AgentQueryResponse';
8
13
  export type { AgentRequest } from './models/AgentRequest';
9
14
  export type { AgentStats } from './models/AgentStats';
15
+ export type { AgentTokenUsageSummary } from './models/AgentTokenUsageSummary';
10
16
  export type { ApiKeyCreate } from './models/ApiKeyCreate';
11
17
  export type { ApiKeyResponse } from './models/ApiKeyResponse';
12
18
  export type { ApiKeyUpdate } from './models/ApiKeyUpdate';
13
19
  export type { ApiKeyWithSecret } from './models/ApiKeyWithSecret';
20
+ export type { AssignAgentRequest } from './models/AssignAgentRequest';
14
21
  export type { Body_upload_file } from './models/Body_upload_file';
15
22
  export type { BucketCreate } from './models/BucketCreate';
16
23
  export type { BucketResponse } from './models/BucketResponse';
@@ -19,11 +26,13 @@ export type { CallbackTool } from './models/CallbackTool';
19
26
  export { CollaboratorRole } from './models/CollaboratorRole';
20
27
  export type { ConversationCreate } from './models/ConversationCreate';
21
28
  export type { ConversationResponse } from './models/ConversationResponse';
29
+ export type { ConversationTokenUsageSummary } from './models/ConversationTokenUsageSummary';
22
30
  export type { ConversationUpdate } from './models/ConversationUpdate';
23
31
  export type { CreateAgentResponse } from './models/CreateAgentResponse';
24
32
  export type { CreateMCPServerRequest } from './models/CreateMCPServerRequest';
25
33
  export type { CredentialCreate } from './models/CredentialCreate';
26
34
  export type { CredentialUpdate } from './models/CredentialUpdate';
35
+ export type { DiscardDraftResponse } from './models/DiscardDraftResponse';
27
36
  export type { Edge } from './models/Edge';
28
37
  export type { ErrorResponse } from './models/ErrorResponse';
29
38
  export type { FileResponse } from './models/FileResponse';
@@ -45,30 +54,42 @@ export type { MCPServerReference } from './models/MCPServerReference';
45
54
  export type { Measured } from './models/Measured';
46
55
  export type { MessageCreate } from './models/MessageCreate';
47
56
  export type { MessageResponse } from './models/MessageResponse';
57
+ export type { ModelBreakdown } from './models/ModelBreakdown';
48
58
  export type { Node } from './models/Node';
49
59
  export type { NodeData } from './models/NodeData';
50
60
  export type { Position } from './models/Position';
61
+ export type { PublishAgentResponse } from './models/PublishAgentResponse';
62
+ export type { TokenUsageLogResponse } from './models/TokenUsageLogResponse';
51
63
  export type { UpdateMCPServerRequest } from './models/UpdateMCPServerRequest';
64
+ export type { UserBreakdown } from './models/UserBreakdown';
65
+ export type { UserTokenUsageSummary } from './models/UserTokenUsageSummary';
52
66
  export type { ValidationError } from './models/ValidationError';
53
67
  export type { VectorStoreInfoResponse } from './models/VectorStoreInfoResponse';
54
68
  export type { VectorStoreSearchRequest } from './models/VectorStoreSearchRequest';
55
69
  export type { VectorStoreSearchResponse } from './models/VectorStoreSearchResponse';
56
70
  export type { VectorStoreSearchResult } from './models/VectorStoreSearchResult';
71
+ export type { WebhookConfigCreate } from './models/WebhookConfigCreate';
72
+ export type { WebhookConfigUpdate } from './models/WebhookConfigUpdate';
57
73
  export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
58
74
  export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
59
75
  export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
60
76
  export type { WorkspaceCreate } from './models/WorkspaceCreate';
61
77
  export type { WorkspaceResponse } from './models/WorkspaceResponse';
78
+ export type { WorkspaceTokenUsageSummary } from './models/WorkspaceTokenUsageSummary';
62
79
  export type { WorkspaceUpdate } from './models/WorkspaceUpdate';
63
80
  export type { WorkspaceWithStats } from './models/WorkspaceWithStats';
81
+ export { AdminAgentFoldersService } from './services/AdminAgentFoldersService';
64
82
  export { AdminAgentsService } from './services/AdminAgentsService';
65
83
  export { AdminApiKeysService } from './services/AdminApiKeysService';
66
84
  export { AdminConversationsService } from './services/AdminConversationsService';
67
85
  export { AdminCredentialsService } from './services/AdminCredentialsService';
68
86
  export { AdminFileLibraryService } from './services/AdminFileLibraryService';
69
87
  export { AdminMcpServersService } from './services/AdminMcpServersService';
88
+ export { AdminTokenUsageService } from './services/AdminTokenUsageService';
89
+ export { AdminWebhookConfigsService } from './services/AdminWebhookConfigsService';
70
90
  export { AdminWorkspacesService } from './services/AdminWorkspacesService';
71
91
  export { AgentService } from './services/AgentService';
92
+ export { AgentFoldersService } from './services/AgentFoldersService';
72
93
  export { ConversationsService } from './services/ConversationsService';
73
94
  export { CredentialsService } from './services/CredentialsService';
74
95
  export { FileLibraryService } from './services/FileLibraryService';
@@ -79,5 +100,8 @@ export { PublicAgentsService } from './services/PublicAgentsService';
79
100
  export { PublicConversationsService } from './services/PublicConversationsService';
80
101
  export { RootService } from './services/RootService';
81
102
  export { SchemaGeneratorService } from './services/SchemaGeneratorService';
103
+ export { TokenUsageService } from './services/TokenUsageService';
104
+ export { WebhookConfigsService } from './services/WebhookConfigsService';
105
+ export { WebhooksService } from './services/WebhooksService';
82
106
  export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
83
107
  export { WorkspacesService } from './services/WorkspacesService';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Breakdown of token usage by agent
3
+ */
4
+ export type AgentBreakdown = {
5
+ agent_id: string;
6
+ input_tokens?: number;
7
+ output_tokens?: number;
8
+ total_tokens?: number;
9
+ request_count?: number;
10
+ };
@@ -0,0 +1,7 @@
1
+ export type AgentDiffResponse = {
2
+ agent_id: string;
3
+ has_changes: boolean;
4
+ status: string;
5
+ version: number;
6
+ changes: Record<string, any>;
7
+ };
@@ -0,0 +1,18 @@
1
+ export type AgentFolderCreate = {
2
+ /**
3
+ * Folder name
4
+ */
5
+ name: string;
6
+ /**
7
+ * Folder description
8
+ */
9
+ description?: (string | null);
10
+ /**
11
+ * Hex color code
12
+ */
13
+ color?: (string | null);
14
+ /**
15
+ * Icon identifier or emoji
16
+ */
17
+ icon?: (string | null);
18
+ };
@@ -0,0 +1,24 @@
1
+ export type AgentFolderResponse = {
2
+ /**
3
+ * Folder name
4
+ */
5
+ name: string;
6
+ /**
7
+ * Folder description
8
+ */
9
+ description?: (string | null);
10
+ /**
11
+ * Hex color code
12
+ */
13
+ color?: (string | null);
14
+ /**
15
+ * Icon identifier or emoji
16
+ */
17
+ icon?: (string | null);
18
+ id: string;
19
+ user_id: string;
20
+ workspace_id: (string | null);
21
+ agent_count?: number;
22
+ created_at: string;
23
+ updated_at: string;
24
+ };
@@ -0,0 +1,6 @@
1
+ export type AgentFolderUpdate = {
2
+ name?: (string | null);
3
+ description?: (string | null);
4
+ color?: (string | null);
5
+ icon?: (string | null);
6
+ };
@@ -13,6 +13,10 @@ export type AgentRequest = {
13
13
  * ID of the credential associated with this agent
14
14
  */
15
15
  credential_id?: (string | null);
16
+ /**
17
+ * ID of the folder this agent belongs to
18
+ */
19
+ folder_id?: (string | null);
16
20
  nodes: Array<Node>;
17
21
  edges: Array<Edge>;
18
22
  timestamp: string;
@@ -0,0 +1,11 @@
1
+ import type { ModelBreakdown } from './ModelBreakdown';
2
+ /**
3
+ * Aggregated token usage summary for an agent
4
+ */
5
+ export type AgentTokenUsageSummary = {
6
+ total_input_tokens?: number;
7
+ total_output_tokens?: number;
8
+ total_tokens?: number;
9
+ total_requests?: number;
10
+ model_breakdown?: Array<ModelBreakdown>;
11
+ };
@@ -0,0 +1,3 @@
1
+ export type AssignAgentRequest = {
2
+ folder_id?: (string | null);
3
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Aggregated token usage summary for a conversation
3
+ */
4
+ export type ConversationTokenUsageSummary = {
5
+ total_input_tokens?: number;
6
+ total_output_tokens?: number;
7
+ total_tokens?: number;
8
+ total_requests?: number;
9
+ };
@@ -0,0 +1,6 @@
1
+ export type DiscardDraftResponse = {
2
+ status: string;
3
+ message: string;
4
+ agent_id: string;
5
+ version: number;
6
+ };
@@ -3,7 +3,11 @@ export type GetAgentResponse = {
3
3
  user_id: string;
4
4
  name: string;
5
5
  credential_id?: (string | null);
6
+ folder_id?: (string | null);
6
7
  created_at: string;
7
8
  updated_at: string;
8
9
  data: Record<string, any>;
10
+ status?: string;
11
+ version?: number;
12
+ published_at?: (string | null);
9
13
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Breakdown of token usage by model
3
+ */
4
+ export type ModelBreakdown = {
5
+ model_name?: (string | null);
6
+ provider?: (string | null);
7
+ input_tokens?: number;
8
+ output_tokens?: number;
9
+ total_tokens?: number;
10
+ request_count?: number;
11
+ };
@@ -49,4 +49,8 @@ export type NodeData = {
49
49
  * Maximum number of tokens to generate in the response
50
50
  */
51
51
  max_tokens?: (number | null);
52
+ /**
53
+ * Reasoning effort level for reasoning models (low, medium, high, xhigh)
54
+ */
55
+ reasoning_effort?: (string | null);
52
56
  };
@@ -0,0 +1,7 @@
1
+ export type PublishAgentResponse = {
2
+ status: string;
3
+ message: string;
4
+ agent_id: string;
5
+ version: number;
6
+ published_at: string;
7
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Response model for a single token usage log entry
3
+ */
4
+ export type TokenUsageLogResponse = {
5
+ id: string;
6
+ agent_id: string;
7
+ conversation_id?: (string | null);
8
+ message_id?: (string | null);
9
+ workspace_id?: (string | null);
10
+ user_id?: (string | null);
11
+ model_name?: (string | null);
12
+ provider?: (string | null);
13
+ input_tokens?: number;
14
+ output_tokens?: number;
15
+ total_tokens?: number;
16
+ request_type?: (string | null);
17
+ meta_data?: (Record<string, any> | null);
18
+ created_at: string;
19
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Breakdown of token usage by user
3
+ */
4
+ export type UserBreakdown = {
5
+ user_id?: (string | null);
6
+ input_tokens?: number;
7
+ output_tokens?: number;
8
+ total_tokens?: number;
9
+ request_count?: number;
10
+ };
@@ -0,0 +1,11 @@
1
+ import type { AgentBreakdown } from './AgentBreakdown';
2
+ /**
3
+ * Aggregated token usage summary for a user
4
+ */
5
+ export type UserTokenUsageSummary = {
6
+ total_input_tokens?: number;
7
+ total_output_tokens?: number;
8
+ total_tokens?: number;
9
+ total_requests?: number;
10
+ agent_breakdown?: Array<AgentBreakdown>;
11
+ };
@@ -0,0 +1,5 @@
1
+ export type WebhookConfigCreate = {
2
+ provider: string;
3
+ name: string;
4
+ webhook_secret: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type WebhookConfigUpdate = {
2
+ name?: (string | null);
3
+ webhook_secret?: (string | null);
4
+ is_active?: (boolean | null);
5
+ };
@@ -0,0 +1,13 @@
1
+ import type { AgentBreakdown } from './AgentBreakdown';
2
+ import type { UserBreakdown } from './UserBreakdown';
3
+ /**
4
+ * Aggregated token usage summary for a workspace
5
+ */
6
+ export type WorkspaceTokenUsageSummary = {
7
+ total_input_tokens?: number;
8
+ total_output_tokens?: number;
9
+ total_tokens?: number;
10
+ total_requests?: number;
11
+ agent_breakdown?: Array<AgentBreakdown>;
12
+ user_breakdown?: Array<UserBreakdown>;
13
+ };
@@ -0,0 +1,64 @@
1
+ import type { AgentFolderCreate } from '../models/AgentFolderCreate';
2
+ import type { AgentFolderResponse } from '../models/AgentFolderResponse';
3
+ import type { AgentFolderUpdate } from '../models/AgentFolderUpdate';
4
+ import type { AssignAgentRequest } from '../models/AssignAgentRequest';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AdminAgentFoldersService {
7
+ /**
8
+ * Create Agent Folder
9
+ * Create a new agent folder
10
+ * @param requestBody
11
+ * @param workspaceId
12
+ * @returns AgentFolderResponse Successful Response
13
+ * @throws ApiError
14
+ */
15
+ static createAgentFolder(requestBody: AgentFolderCreate, workspaceId?: (string | null)): CancelablePromise<AgentFolderResponse>;
16
+ /**
17
+ * Get Agent Folders
18
+ * Get all agent folders with agent counts
19
+ * @param skip
20
+ * @param limit
21
+ * @param workspaceId
22
+ * @returns AgentFolderResponse Successful Response
23
+ * @throws ApiError
24
+ */
25
+ static getAgentFolders(skip?: number, limit?: number, workspaceId?: (string | null)): CancelablePromise<Array<AgentFolderResponse>>;
26
+ /**
27
+ * Get Agent Folder
28
+ * Get a specific agent folder by ID
29
+ * @param folderId
30
+ * @param workspaceId
31
+ * @returns AgentFolderResponse Successful Response
32
+ * @throws ApiError
33
+ */
34
+ static getAgentFolder(folderId: string, workspaceId?: (string | null)): CancelablePromise<AgentFolderResponse>;
35
+ /**
36
+ * Update Agent Folder
37
+ * Update an agent folder
38
+ * @param folderId
39
+ * @param requestBody
40
+ * @param workspaceId
41
+ * @returns AgentFolderResponse Successful Response
42
+ * @throws ApiError
43
+ */
44
+ static updateAgentFolder(folderId: string, requestBody: AgentFolderUpdate, workspaceId?: (string | null)): CancelablePromise<AgentFolderResponse>;
45
+ /**
46
+ * Delete Agent Folder
47
+ * Delete an agent folder (agents will be unassigned, not deleted)
48
+ * @param folderId
49
+ * @param workspaceId
50
+ * @returns any Successful Response
51
+ * @throws ApiError
52
+ */
53
+ static deleteAgentFolder(folderId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
54
+ /**
55
+ * Assign Agent To Folder
56
+ * Assign an agent to a folder or remove from folder (set folder_id to null)
57
+ * @param agentId
58
+ * @param requestBody
59
+ * @param workspaceId
60
+ * @returns any Successful Response
61
+ * @throws ApiError
62
+ */
63
+ static assignAgentToFolder(agentId: string, requestBody: AssignAgentRequest, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
64
+ }
@@ -1,9 +1,12 @@
1
+ import type { AgentDiffResponse } from '../models/AgentDiffResponse';
1
2
  import type { AgentInitResponse } from '../models/AgentInitResponse';
2
3
  import type { AgentQueryRequest } from '../models/AgentQueryRequest';
3
4
  import type { AgentQueryResponse } from '../models/AgentQueryResponse';
4
5
  import type { AgentRequest } from '../models/AgentRequest';
5
6
  import type { CreateAgentResponse } from '../models/CreateAgentResponse';
7
+ import type { DiscardDraftResponse } from '../models/DiscardDraftResponse';
6
8
  import type { GetAgentResponse } from '../models/GetAgentResponse';
9
+ import type { PublishAgentResponse } from '../models/PublishAgentResponse';
7
10
  import type { CancelablePromise } from '../core/CancelablePromise';
8
11
  export declare class AdminAgentsService {
9
12
  /**
@@ -48,6 +51,33 @@ export declare class AdminAgentsService {
48
51
  * @throws ApiError
49
52
  */
50
53
  static deleteAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
54
+ /**
55
+ * Publish Agent
56
+ * Publish the current draft as the live version.
57
+ * @param agentId
58
+ * @param workspaceId
59
+ * @returns PublishAgentResponse Successful Response
60
+ * @throws ApiError
61
+ */
62
+ static publishAgent(agentId: string, workspaceId?: (string | null)): CancelablePromise<PublishAgentResponse>;
63
+ /**
64
+ * Discard Draft
65
+ * Discard draft changes and revert to the last published version.
66
+ * @param agentId
67
+ * @param workspaceId
68
+ * @returns DiscardDraftResponse Successful Response
69
+ * @throws ApiError
70
+ */
71
+ static discardDraft(agentId: string, workspaceId?: (string | null)): CancelablePromise<DiscardDraftResponse>;
72
+ /**
73
+ * Get Agent Diff
74
+ * Get a diff between the current draft and the last published version.
75
+ * @param agentId
76
+ * @param workspaceId
77
+ * @returns AgentDiffResponse Successful Response
78
+ * @throws ApiError
79
+ */
80
+ static getAgentDiff(agentId: string, workspaceId?: (string | null)): CancelablePromise<AgentDiffResponse>;
51
81
  /**
52
82
  * Get Workspace Conversations Total
53
83
  * Get the total count of conversations for all agents in a workspace.
@@ -41,4 +41,13 @@ export declare class AdminConversationsService {
41
41
  * @throws ApiError
42
42
  */
43
43
  static getAgentConversations(agentId: string, skip?: number, limit?: number): CancelablePromise<Array<ConversationResponse>>;
44
+ /**
45
+ * Get Research Status
46
+ * Get the status of any pending deep research request for a conversation.
47
+ * Used by the frontend to poll for completion while waiting for webhook delivery.
48
+ * @param conversationId
49
+ * @returns any Successful Response
50
+ * @throws ApiError
51
+ */
52
+ static getResearchStatus(conversationId: string): CancelablePromise<Record<string, any>>;
44
53
  }
@@ -0,0 +1,92 @@
1
+ import type { AgentTokenUsageSummary } from '../models/AgentTokenUsageSummary';
2
+ import type { ConversationTokenUsageSummary } from '../models/ConversationTokenUsageSummary';
3
+ import type { TokenUsageLogResponse } from '../models/TokenUsageLogResponse';
4
+ import type { UserTokenUsageSummary } from '../models/UserTokenUsageSummary';
5
+ import type { WorkspaceTokenUsageSummary } from '../models/WorkspaceTokenUsageSummary';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ export declare class AdminTokenUsageService {
8
+ /**
9
+ * Get Agent Token Usage
10
+ * Get token usage logs for a specific agent
11
+ * @param agentId
12
+ * @param startDate Filter from date (ISO format)
13
+ * @param endDate Filter to date (ISO format)
14
+ * @param skip
15
+ * @param limit
16
+ * @returns TokenUsageLogResponse Successful Response
17
+ * @throws ApiError
18
+ */
19
+ static getAgentTokenUsage(agentId: string, startDate?: (string | null), endDate?: (string | null), skip?: number, limit?: number): CancelablePromise<Array<TokenUsageLogResponse>>;
20
+ /**
21
+ * Get Agent Token Usage Summary
22
+ * Get aggregated token usage summary for a specific agent
23
+ * @param agentId
24
+ * @param startDate Filter from date (ISO format)
25
+ * @param endDate Filter to date (ISO format)
26
+ * @returns AgentTokenUsageSummary Successful Response
27
+ * @throws ApiError
28
+ */
29
+ static getAgentTokenUsageSummary(agentId: string, startDate?: (string | null), endDate?: (string | null)): CancelablePromise<AgentTokenUsageSummary>;
30
+ /**
31
+ * Get Conversation Token Usage
32
+ * Get token usage logs for a specific conversation
33
+ * @param conversationId
34
+ * @param skip
35
+ * @param limit
36
+ * @returns TokenUsageLogResponse Successful Response
37
+ * @throws ApiError
38
+ */
39
+ static getConversationTokenUsage(conversationId: string, skip?: number, limit?: number): CancelablePromise<Array<TokenUsageLogResponse>>;
40
+ /**
41
+ * Get Conversation Token Usage Summary
42
+ * Get aggregated token usage summary for a specific conversation
43
+ * @param conversationId
44
+ * @returns ConversationTokenUsageSummary Successful Response
45
+ * @throws ApiError
46
+ */
47
+ static getConversationTokenUsageSummary(conversationId: string): CancelablePromise<ConversationTokenUsageSummary>;
48
+ /**
49
+ * Get My Token Usage
50
+ * Get token usage logs for the current authenticated user
51
+ * @param workspaceId Filter by workspace
52
+ * @param startDate Filter from date (ISO format)
53
+ * @param endDate Filter to date (ISO format)
54
+ * @param skip
55
+ * @param limit
56
+ * @returns TokenUsageLogResponse Successful Response
57
+ * @throws ApiError
58
+ */
59
+ static getMyTokenUsage(workspaceId?: (string | null), startDate?: (string | null), endDate?: (string | null), skip?: number, limit?: number): CancelablePromise<Array<TokenUsageLogResponse>>;
60
+ /**
61
+ * Get My Token Usage Summary
62
+ * Get aggregated token usage summary for the current authenticated user
63
+ * @param workspaceId Filter by workspace
64
+ * @param startDate Filter from date (ISO format)
65
+ * @param endDate Filter to date (ISO format)
66
+ * @returns UserTokenUsageSummary Successful Response
67
+ * @throws ApiError
68
+ */
69
+ static getMyTokenUsageSummary(workspaceId?: (string | null), startDate?: (string | null), endDate?: (string | null)): CancelablePromise<UserTokenUsageSummary>;
70
+ /**
71
+ * Get Workspace Token Usage
72
+ * Get token usage logs for a specific workspace
73
+ * @param workspaceId
74
+ * @param startDate Filter from date (ISO format)
75
+ * @param endDate Filter to date (ISO format)
76
+ * @param skip
77
+ * @param limit
78
+ * @returns TokenUsageLogResponse Successful Response
79
+ * @throws ApiError
80
+ */
81
+ static getWorkspaceTokenUsage(workspaceId: string, startDate?: (string | null), endDate?: (string | null), skip?: number, limit?: number): CancelablePromise<Array<TokenUsageLogResponse>>;
82
+ /**
83
+ * Get Workspace Token Usage Summary
84
+ * Get aggregated token usage summary for a specific workspace
85
+ * @param workspaceId
86
+ * @param startDate Filter from date (ISO format)
87
+ * @param endDate Filter to date (ISO format)
88
+ * @returns WorkspaceTokenUsageSummary Successful Response
89
+ * @throws ApiError
90
+ */
91
+ static getWorkspaceTokenUsageSummary(workspaceId: string, startDate?: (string | null), endDate?: (string | null)): CancelablePromise<WorkspaceTokenUsageSummary>;
92
+ }
@@ -0,0 +1,31 @@
1
+ import type { WebhookConfigCreate } from '../models/WebhookConfigCreate';
2
+ import type { WebhookConfigUpdate } from '../models/WebhookConfigUpdate';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class AdminWebhookConfigsService {
5
+ /**
6
+ * Create Webhook Config
7
+ * Create a new webhook configuration - only admin and owner roles can create
8
+ * @param requestBody
9
+ * @param workspaceId
10
+ * @returns any Successful Response
11
+ * @throws ApiError
12
+ */
13
+ static createWebhookConfig(requestBody: WebhookConfigCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
14
+ /**
15
+ * Update Webhook Config
16
+ * Update a webhook configuration - only admin and owner roles can update
17
+ * @param configId
18
+ * @param requestBody
19
+ * @returns any Successful Response
20
+ * @throws ApiError
21
+ */
22
+ static updateWebhookConfig(configId: string, requestBody: WebhookConfigUpdate): CancelablePromise<Record<string, any>>;
23
+ /**
24
+ * Delete Webhook Config
25
+ * Delete a webhook configuration - only admin and owner roles can delete
26
+ * @param configId
27
+ * @returns any Successful Response
28
+ * @throws ApiError
29
+ */
30
+ static deleteWebhookConfig(configId: string): CancelablePromise<Record<string, any>>;
31
+ }
@@ -59,7 +59,7 @@ export declare class AdminWorkspacesService {
59
59
  /**
60
60
  * Add Collaborator
61
61
  * Add a collaborator to a workspace.
62
- * Only workspace owners can add collaborators.
62
+ * Only workspace owners and admins can add collaborators.
63
63
  * @param workspaceId ID of the workspace to add the collaborator to
64
64
  * @param requestBody
65
65
  * @returns WorkspaceCollaboratorResponse Successful Response
@@ -87,7 +87,7 @@ export declare class AdminWorkspacesService {
87
87
  /**
88
88
  * Update Collaborator
89
89
  * Update a collaborator's role.
90
- * Only workspace owners can update collaborators.
90
+ * Only workspace owners and admins can update collaborators.
91
91
  * @param workspaceId
92
92
  * @param collaboratorId
93
93
  * @param requestBody
@@ -98,7 +98,7 @@ export declare class AdminWorkspacesService {
98
98
  /**
99
99
  * Delete Collaborator
100
100
  * Remove a collaborator from a workspace.
101
- * Only workspace owners can remove collaborators.
101
+ * Only workspace owners and admins can remove collaborators.
102
102
  * @param workspaceId
103
103
  * @param collaboratorId
104
104
  * @returns any Successful Response