@ideascol/agents-generator-sdk 0.6.0 → 0.7.1

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 (44) hide show
  1. package/dist/bin/cli.js +818 -48
  2. package/dist/index.js +823 -49
  3. package/dist/lib/clients/agents-generator/index.d.ts +25 -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/BucketCreate.d.ts +2 -0
  13. package/dist/lib/clients/agents-generator/models/BucketResponse.d.ts +2 -0
  14. package/dist/lib/clients/agents-generator/models/BucketUpdate.d.ts +7 -0
  15. package/dist/lib/clients/agents-generator/models/ConversationTokenUsageSummary.d.ts +9 -0
  16. package/dist/lib/clients/agents-generator/models/DiscardDraftResponse.d.ts +6 -0
  17. package/dist/lib/clients/agents-generator/models/FolderCreate.d.ts +1 -0
  18. package/dist/lib/clients/agents-generator/models/FolderResponse.d.ts +2 -0
  19. package/dist/lib/clients/agents-generator/models/FolderUpdate.d.ts +5 -0
  20. package/dist/lib/clients/agents-generator/models/GetAgentResponse.d.ts +4 -0
  21. package/dist/lib/clients/agents-generator/models/ModelBreakdown.d.ts +11 -0
  22. package/dist/lib/clients/agents-generator/models/PublishAgentResponse.d.ts +7 -0
  23. package/dist/lib/clients/agents-generator/models/TokenUsageLogResponse.d.ts +19 -0
  24. package/dist/lib/clients/agents-generator/models/UserBreakdown.d.ts +10 -0
  25. package/dist/lib/clients/agents-generator/models/UserTokenUsageSummary.d.ts +11 -0
  26. package/dist/lib/clients/agents-generator/models/VectorStoreInfoResponse.d.ts +8 -0
  27. package/dist/lib/clients/agents-generator/models/VectorStoreSearchRequest.d.ts +4 -0
  28. package/dist/lib/clients/agents-generator/models/VectorStoreSearchResponse.d.ts +6 -0
  29. package/dist/lib/clients/agents-generator/models/VectorStoreSearchResult.d.ts +5 -0
  30. package/dist/lib/clients/agents-generator/models/WorkspaceTokenUsageSummary.d.ts +13 -0
  31. package/dist/lib/clients/agents-generator/services/AdminAgentFoldersService.d.ts +64 -0
  32. package/dist/lib/clients/agents-generator/services/AdminAgentsService.d.ts +30 -0
  33. package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +64 -0
  34. package/dist/lib/clients/agents-generator/services/AdminTokenUsageService.d.ts +92 -0
  35. package/dist/lib/clients/agents-generator/services/AdminWorkspacesService.d.ts +3 -3
  36. package/dist/lib/clients/agents-generator/services/AgentFoldersService.d.ts +64 -0
  37. package/dist/lib/clients/agents-generator/services/AgentService.d.ts +30 -0
  38. package/dist/lib/clients/agents-generator/services/ConversationsService.d.ts +2 -1
  39. package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +64 -0
  40. package/dist/lib/clients/agents-generator/services/PublicConversationsService.d.ts +2 -1
  41. package/dist/lib/clients/agents-generator/services/TokenUsageService.d.ts +92 -0
  42. package/dist/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.d.ts +3 -3
  43. package/dist/lib/index.d.ts +2 -1
  44. package/package.json +1 -1
@@ -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
+ }
@@ -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
@@ -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 AgentFoldersService {
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 AgentService {
9
12
  /**
@@ -48,6 +51,33 @@ export declare class AgentService {
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.
@@ -46,9 +46,10 @@ export declare class ConversationsService {
46
46
  * Add Message
47
47
  * @param conversationId
48
48
  * @param requestBody
49
+ * @param useDraft Use draft (unpublished) agent data. Set to true for studio test chat.
49
50
  * @param accept Content type to receive: 'text/event-stream' for streaming or 'text/plain' for plain text
50
51
  * @returns any Successful response
51
52
  * @throws ApiError
52
53
  */
53
- static addMessage(conversationId: string, requestBody: MessageCreate, accept?: (string | null)): CancelablePromise<any>;
54
+ static addMessage(conversationId: string, requestBody: MessageCreate, useDraft?: boolean, accept?: (string | null)): CancelablePromise<any>;
54
55
  }
@@ -1,11 +1,16 @@
1
1
  import type { Body_upload_file } from '../models/Body_upload_file';
2
2
  import type { BucketCreate } from '../models/BucketCreate';
3
3
  import type { BucketResponse } from '../models/BucketResponse';
4
+ import type { BucketUpdate } from '../models/BucketUpdate';
4
5
  import type { FileResponse } from '../models/FileResponse';
5
6
  import type { FolderCreate } from '../models/FolderCreate';
6
7
  import type { FolderResponse } from '../models/FolderResponse';
8
+ import type { FolderUpdate } from '../models/FolderUpdate';
7
9
  import type { FolderUploadRequest } from '../models/FolderUploadRequest';
8
10
  import type { FolderUploadResponse } from '../models/FolderUploadResponse';
11
+ import type { VectorStoreInfoResponse } from '../models/VectorStoreInfoResponse';
12
+ import type { VectorStoreSearchRequest } from '../models/VectorStoreSearchRequest';
13
+ import type { VectorStoreSearchResponse } from '../models/VectorStoreSearchResponse';
9
14
  import type { CancelablePromise } from '../core/CancelablePromise';
10
15
  export declare class FileLibraryService {
11
16
  /**
@@ -43,6 +48,15 @@ export declare class FileLibraryService {
43
48
  * @throws ApiError
44
49
  */
45
50
  static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
51
+ /**
52
+ * Update Bucket
53
+ * Update a bucket
54
+ * @param bucketId
55
+ * @param requestBody
56
+ * @returns BucketResponse Successful Response
57
+ * @throws ApiError
58
+ */
59
+ static updateBucket(bucketId: string, requestBody: BucketUpdate): CancelablePromise<BucketResponse>;
46
60
  /**
47
61
  * Create Folder
48
62
  * Create a new folder
@@ -61,6 +75,15 @@ export declare class FileLibraryService {
61
75
  * @throws ApiError
62
76
  */
63
77
  static getFoldersByBucket(bucketId: string, parentFolderId?: (string | null), workspaceId?: (string | null)): CancelablePromise<Array<FolderResponse>>;
78
+ /**
79
+ * Update Folder
80
+ * Update a folder (name, color, etc.)
81
+ * @param folderId
82
+ * @param requestBody
83
+ * @returns FolderResponse Successful Response
84
+ * @throws ApiError
85
+ */
86
+ static updateFolder(folderId: string, requestBody: FolderUpdate): CancelablePromise<FolderResponse>;
64
87
  /**
65
88
  * Delete Folder
66
89
  * Delete a folder
@@ -86,6 +109,22 @@ export declare class FileLibraryService {
86
109
  * @throws ApiError
87
110
  */
88
111
  static getFilesByFolder(folderId: string): CancelablePromise<Array<FileResponse>>;
112
+ /**
113
+ * Download File
114
+ * Get a presigned URL to download/view a file from S3
115
+ * @param fileId
116
+ * @returns any Successful Response
117
+ * @throws ApiError
118
+ */
119
+ static downloadFile(fileId: string): CancelablePromise<any>;
120
+ /**
121
+ * Get File Content
122
+ * Stream file content directly from S3 (avoids CORS issues)
123
+ * @param fileId
124
+ * @returns any Successful Response
125
+ * @throws ApiError
126
+ */
127
+ static getFileContent(fileId: string): CancelablePromise<any>;
89
128
  /**
90
129
  * Delete File
91
130
  * Delete a file
@@ -111,4 +150,29 @@ export declare class FileLibraryService {
111
150
  * @throws ApiError
112
151
  */
113
152
  static createFolderVectorStore(folderId: string): CancelablePromise<FolderResponse>;
153
+ /**
154
+ * Search Vector Store
155
+ * Search a folder's vector store
156
+ * @param folderId
157
+ * @param requestBody
158
+ * @returns VectorStoreSearchResponse Successful Response
159
+ * @throws ApiError
160
+ */
161
+ static searchVectorStore(folderId: string, requestBody: VectorStoreSearchRequest): CancelablePromise<VectorStoreSearchResponse>;
162
+ /**
163
+ * Get Vector Store Info
164
+ * Get vector store information for a folder
165
+ * @param folderId
166
+ * @returns VectorStoreInfoResponse Successful Response
167
+ * @throws ApiError
168
+ */
169
+ static getVectorStoreInfo(folderId: string): CancelablePromise<VectorStoreInfoResponse>;
170
+ /**
171
+ * Delete Vector Store
172
+ * Delete a folder's vector store
173
+ * @param folderId
174
+ * @returns any Successful Response
175
+ * @throws ApiError
176
+ */
177
+ static deleteVectorStore(folderId: string): CancelablePromise<any>;
114
178
  }
@@ -21,9 +21,10 @@ export declare class PublicConversationsService {
21
21
  * Add Message
22
22
  * @param conversationId
23
23
  * @param requestBody
24
+ * @param useDraft Use draft (unpublished) agent data. Set to true for studio test chat.
24
25
  * @param accept Content type to receive: 'text/event-stream' for streaming or 'text/plain' for plain text
25
26
  * @returns any Successful response
26
27
  * @throws ApiError
27
28
  */
28
- static addMessage(conversationId: string, requestBody: MessageCreate, accept?: (string | null)): CancelablePromise<any>;
29
+ static addMessage(conversationId: string, requestBody: MessageCreate, useDraft?: boolean, accept?: (string | null)): CancelablePromise<any>;
29
30
  }
@@ -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 TokenUsageService {
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
+ }
@@ -6,7 +6,7 @@ export declare class WorkspaceCollaboratorsService {
6
6
  /**
7
7
  * Add Collaborator
8
8
  * Add a collaborator to a workspace.
9
- * Only workspace owners can add collaborators.
9
+ * Only workspace owners and admins can add collaborators.
10
10
  * @param workspaceId ID of the workspace to add the collaborator to
11
11
  * @param requestBody
12
12
  * @returns WorkspaceCollaboratorResponse Successful Response
@@ -34,7 +34,7 @@ export declare class WorkspaceCollaboratorsService {
34
34
  /**
35
35
  * Update Collaborator
36
36
  * Update a collaborator's role.
37
- * Only workspace owners can update collaborators.
37
+ * Only workspace owners and admins can update collaborators.
38
38
  * @param workspaceId
39
39
  * @param collaboratorId
40
40
  * @param requestBody
@@ -45,7 +45,7 @@ export declare class WorkspaceCollaboratorsService {
45
45
  /**
46
46
  * Delete Collaborator
47
47
  * Remove a collaborator from a workspace.
48
- * Only workspace owners can remove collaborators.
48
+ * Only workspace owners and admins can remove collaborators.
49
49
  * @param workspaceId
50
50
  * @param collaboratorId
51
51
  * @returns any Successful Response
@@ -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, AdminApiKeysService, PresenceService, ModelsService, SchemaGeneratorService } 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, ModelsService, SchemaGeneratorService, TokenUsageService } from "./clients/agents-generator";
2
2
  export * from "./clients/agents-generator";
3
3
  export interface StreamEvent {
4
4
  type: string;
@@ -56,6 +56,7 @@ export declare class AgentClient {
56
56
  apiKeys: typeof AdminApiKeysService;
57
57
  presence: typeof PresenceService;
58
58
  schema: typeof SchemaGeneratorService;
59
+ tokenUsage: typeof TokenUsageService;
59
60
  };
60
61
  public: {
61
62
  agents: typeof PublicAgentsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",