@breign/client 1.0.136 → 1.0.138
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/apis/LibraryAgentsApi.d.ts +211 -0
- package/dist/apis/LibraryAgentsApi.js +537 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AgentBundleDiffUio.d.ts +79 -0
- package/dist/models/AgentBundleDiffUio.js +85 -0
- package/dist/models/AgentBundleListDiffUio.d.ts +44 -0
- package/dist/models/AgentBundleListDiffUio.js +58 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.d.ts +44 -0
- package/dist/models/AgentLibraryLinkLatestVersionUio.js +58 -0
- package/dist/models/AgentLibraryLinkUio.d.ts +81 -0
- package/dist/models/AgentLibraryLinkUio.js +79 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.d.ts +38 -0
- package/dist/models/AgentLibraryLinkUpdateRequestUio.js +52 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.d.ts +69 -0
- package/dist/models/AgentLibraryLinkUpdateResponseUio.js +75 -0
- package/dist/models/AgentLibraryLinksResponseUio.d.ts +33 -0
- package/dist/models/AgentLibraryLinksResponseUio.js +51 -0
- package/dist/models/FileAttachmentCreateRequestUio.d.ts +6 -0
- package/dist/models/FileAttachmentCreateRequestUio.js +2 -0
- package/dist/models/FileAttachmentDetailsResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentDetailsResponseUio.js +2 -0
- package/dist/models/FileAttachmentUio.d.ts +6 -0
- package/dist/models/FileAttachmentUio.js +2 -0
- package/dist/models/FileAttachmentUploadResponseUio.d.ts +6 -0
- package/dist/models/FileAttachmentUploadResponseUio.js +2 -0
- package/dist/models/FileCreationResponseUio.d.ts +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/KnowledgeFileCreationRequestUio.d.ts +6 -0
- package/dist/models/KnowledgeFileCreationRequestUio.js +2 -0
- package/dist/models/KnowledgeFileUio.d.ts +6 -0
- package/dist/models/KnowledgeFileUio.js +2 -0
- package/dist/models/LibraryAgentBundleSummaryUio.d.ts +56 -0
- package/dist/models/LibraryAgentBundleSummaryUio.js +66 -0
- package/dist/models/LibraryAgentDiffResponseUio.d.ts +46 -0
- package/dist/models/LibraryAgentDiffResponseUio.js +60 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.d.ts +38 -0
- package/dist/models/LibraryAgentDiffVersionRefUio.js +54 -0
- package/dist/models/LibraryAgentEntryUio.d.ts +87 -0
- package/dist/models/LibraryAgentEntryUio.js +83 -0
- package/dist/models/LibraryAgentInstallRequestUio.d.ts +38 -0
- package/dist/models/LibraryAgentInstallRequestUio.js +52 -0
- package/dist/models/LibraryAgentInstallResponseUio.d.ts +75 -0
- package/dist/models/LibraryAgentInstallResponseUio.js +77 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.d.ts +46 -0
- package/dist/models/LibraryAgentParseBundleRequestUio.js +62 -0
- package/dist/models/LibraryAgentPublishRequestUio.d.ts +68 -0
- package/dist/models/LibraryAgentPublishRequestUio.js +60 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.d.ts +62 -0
- package/dist/models/LibraryAgentPublishVersionRequestUio.js +58 -0
- package/dist/models/LibraryAgentVersionUio.d.ts +99 -0
- package/dist/models/LibraryAgentVersionUio.js +87 -0
- package/dist/models/LibraryAgentsPageUio.d.ts +63 -0
- package/dist/models/LibraryAgentsPageUio.js +71 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/openapi.json +6035 -4919
- package/package.json +1 -1
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AgentLibraryLinkUpdateRequestUio, AgentLibraryLinkUpdateResponseUio, AgentLibraryLinksResponseUio, LibraryAgentDiffResponseUio, LibraryAgentEntryUio, LibraryAgentInstallRequestUio, LibraryAgentInstallResponseUio, LibraryAgentParseBundleRequestUio, LibraryAgentPublishRequestUio, LibraryAgentPublishVersionRequestUio, LibraryAgentVersionUio, LibraryAgentsPageUio } from '../models/index';
|
|
14
|
+
export interface AdminDeleteLibraryAgentRequest {
|
|
15
|
+
slug: string;
|
|
16
|
+
}
|
|
17
|
+
export interface AdminGetLibraryAgentRequest {
|
|
18
|
+
slug: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AdminGetLibraryAgentVersionBundleRequest {
|
|
21
|
+
slug: string;
|
|
22
|
+
versionId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AdminListLibraryAgentsRequest {
|
|
25
|
+
page?: number;
|
|
26
|
+
limit?: number;
|
|
27
|
+
search?: string;
|
|
28
|
+
category?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AdminParseLibraryAgentBundleRequest {
|
|
31
|
+
libraryAgentParseBundleRequestUio: LibraryAgentParseBundleRequestUio;
|
|
32
|
+
}
|
|
33
|
+
export interface AdminPublishLibraryAgentRequest {
|
|
34
|
+
libraryAgentPublishRequestUio: LibraryAgentPublishRequestUio;
|
|
35
|
+
}
|
|
36
|
+
export interface AdminPublishLibraryAgentVersionRequest {
|
|
37
|
+
slug: string;
|
|
38
|
+
libraryAgentPublishVersionRequestUio: LibraryAgentPublishVersionRequestUio;
|
|
39
|
+
}
|
|
40
|
+
export interface DetachAgentLibraryLinkRequest {
|
|
41
|
+
agentId: string;
|
|
42
|
+
organizationId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface DiffLibraryAgentVersionsRequest {
|
|
45
|
+
slug: string;
|
|
46
|
+
organizationId: string;
|
|
47
|
+
fromVersionId: string;
|
|
48
|
+
toVersionId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface GetLibraryAgentRequest {
|
|
51
|
+
slug: string;
|
|
52
|
+
organizationId: string;
|
|
53
|
+
}
|
|
54
|
+
export interface InstallLibraryAgentRequest {
|
|
55
|
+
slug: string;
|
|
56
|
+
libraryAgentInstallRequestUio: LibraryAgentInstallRequestUio;
|
|
57
|
+
}
|
|
58
|
+
export interface ListAgentLibraryLinksRequest {
|
|
59
|
+
organizationId: string;
|
|
60
|
+
agentId?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ListLibraryAgentsRequest {
|
|
63
|
+
organizationId: string;
|
|
64
|
+
page?: number;
|
|
65
|
+
limit?: number;
|
|
66
|
+
search?: string;
|
|
67
|
+
category?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface UpdateManagedAgentRequest {
|
|
70
|
+
agentId: string;
|
|
71
|
+
agentLibraryLinkUpdateRequestUio: AgentLibraryLinkUpdateRequestUio;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export declare class LibraryAgentsApi extends runtime.BaseAPI {
|
|
77
|
+
/**
|
|
78
|
+
* Delete a library agent and all its versions (super-admin)
|
|
79
|
+
*/
|
|
80
|
+
adminDeleteLibraryAgentRaw(requestParameters: AdminDeleteLibraryAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete a library agent and all its versions (super-admin)
|
|
83
|
+
*/
|
|
84
|
+
adminDeleteLibraryAgent(slug: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Get a library agent entry by slug (super-admin)
|
|
87
|
+
*/
|
|
88
|
+
adminGetLibraryAgentRaw(requestParameters: AdminGetLibraryAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentEntryUio>>;
|
|
89
|
+
/**
|
|
90
|
+
* Get a library agent entry by slug (super-admin)
|
|
91
|
+
*/
|
|
92
|
+
adminGetLibraryAgent(slug: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentEntryUio>;
|
|
93
|
+
/**
|
|
94
|
+
* Returns the raw breign-agent export bundle stored for this version. Used to prefill the publish composer.
|
|
95
|
+
* Get the stored bundle of a published version (super-admin)
|
|
96
|
+
*/
|
|
97
|
+
adminGetLibraryAgentVersionBundleRaw(requestParameters: AdminGetLibraryAgentVersionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
98
|
+
/**
|
|
99
|
+
* Returns the raw breign-agent export bundle stored for this version. Used to prefill the publish composer.
|
|
100
|
+
* Get the stored bundle of a published version (super-admin)
|
|
101
|
+
*/
|
|
102
|
+
adminGetLibraryAgentVersionBundle(slug: string, versionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
103
|
+
/**
|
|
104
|
+
* List all library agents (super-admin)
|
|
105
|
+
*/
|
|
106
|
+
adminListLibraryAgentsRaw(requestParameters: AdminListLibraryAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentsPageUio>>;
|
|
107
|
+
/**
|
|
108
|
+
* List all library agents (super-admin)
|
|
109
|
+
*/
|
|
110
|
+
adminListLibraryAgents(page?: number, limit?: number, search?: string, category?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentsPageUio>;
|
|
111
|
+
/**
|
|
112
|
+
* Parses a serialized YAML/JSON breign-agent bundle with the same validation rules as publication, and returns the normalized bundle. Used by the composer to prefill from a file.
|
|
113
|
+
* Parse and validate a raw agent bundle (superadmin)
|
|
114
|
+
*/
|
|
115
|
+
adminParseLibraryAgentBundleRaw(requestParameters: AdminParseLibraryAgentBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
116
|
+
/**
|
|
117
|
+
* Parses a serialized YAML/JSON breign-agent bundle with the same validation rules as publication, and returns the normalized bundle. Used by the composer to prefill from a file.
|
|
118
|
+
* Parse and validate a raw agent bundle (superadmin)
|
|
119
|
+
*/
|
|
120
|
+
adminParseLibraryAgentBundle(libraryAgentParseBundleRequestUio: LibraryAgentParseBundleRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
121
|
+
/**
|
|
122
|
+
* Exports the given agent as a portable bundle (secrets stripped) and publishes it as the initial version of a new library entry.
|
|
123
|
+
* Publish an agent to the library (super-admin)
|
|
124
|
+
*/
|
|
125
|
+
adminPublishLibraryAgentRaw(requestParameters: AdminPublishLibraryAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentEntryUio>>;
|
|
126
|
+
/**
|
|
127
|
+
* Exports the given agent as a portable bundle (secrets stripped) and publishes it as the initial version of a new library entry.
|
|
128
|
+
* Publish an agent to the library (super-admin)
|
|
129
|
+
*/
|
|
130
|
+
adminPublishLibraryAgent(libraryAgentPublishRequestUio: LibraryAgentPublishRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentEntryUio>;
|
|
131
|
+
/**
|
|
132
|
+
* Exports the given agent as a portable bundle and publishes it as the new latest version of an existing library entry. Name, description and category default to the previous latest version.
|
|
133
|
+
* Publish a new version of a library agent (super-admin)
|
|
134
|
+
*/
|
|
135
|
+
adminPublishLibraryAgentVersionRaw(requestParameters: AdminPublishLibraryAgentVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentVersionUio>>;
|
|
136
|
+
/**
|
|
137
|
+
* Exports the given agent as a portable bundle and publishes it as the new latest version of an existing library entry. Name, description and category default to the previous latest version.
|
|
138
|
+
* Publish a new version of a library agent (super-admin)
|
|
139
|
+
*/
|
|
140
|
+
adminPublishLibraryAgentVersion(slug: string, libraryAgentPublishVersionRequestUio: LibraryAgentPublishVersionRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentVersionUio>;
|
|
141
|
+
/**
|
|
142
|
+
* Removes the provenance link. The agent no longer follows catalog versions and becomes freely editable again; its current configuration is left untouched. Requires organization admin rights.
|
|
143
|
+
* Detach a managed agent from the marketplace
|
|
144
|
+
*/
|
|
145
|
+
detachAgentLibraryLinkRaw(requestParameters: DetachAgentLibraryLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
146
|
+
/**
|
|
147
|
+
* Removes the provenance link. The agent no longer follows catalog versions and becomes freely editable again; its current configuration is left untouched. Requires organization admin rights.
|
|
148
|
+
* Detach a managed agent from the marketplace
|
|
149
|
+
*/
|
|
150
|
+
detachAgentLibraryLink(agentId: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Structural diff between two published bundle versions of the same catalog entry — feeds the \"what changes\" modal shown before updating a managed agent. Requires organization membership.
|
|
153
|
+
* Diff two published versions of a library agent
|
|
154
|
+
*/
|
|
155
|
+
diffLibraryAgentVersionsRaw(requestParameters: DiffLibraryAgentVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentDiffResponseUio>>;
|
|
156
|
+
/**
|
|
157
|
+
* Structural diff between two published bundle versions of the same catalog entry — feeds the \"what changes\" modal shown before updating a managed agent. Requires organization membership.
|
|
158
|
+
* Diff two published versions of a library agent
|
|
159
|
+
*/
|
|
160
|
+
diffLibraryAgentVersions(slug: string, organizationId: string, fromVersionId: string, toVersionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentDiffResponseUio>;
|
|
161
|
+
/**
|
|
162
|
+
* Returns a published agent with its full version history.
|
|
163
|
+
* Get a library agent entry by slug
|
|
164
|
+
*/
|
|
165
|
+
getLibraryAgentRaw(requestParameters: GetLibraryAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentEntryUio>>;
|
|
166
|
+
/**
|
|
167
|
+
* Returns a published agent with its full version history.
|
|
168
|
+
* Get a library agent entry by slug
|
|
169
|
+
*/
|
|
170
|
+
getLibraryAgent(slug: string, organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentEntryUio>;
|
|
171
|
+
/**
|
|
172
|
+
* Materializes the published agent bundle (agent, skills, knowledge bases, flow, apps) in the organization. MCP tools are only linked when a matching tool already exists in the organization, otherwise they are reported as skipped. Requires organization admin rights.
|
|
173
|
+
* Install a library agent into an organization
|
|
174
|
+
*/
|
|
175
|
+
installLibraryAgentRaw(requestParameters: InstallLibraryAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentInstallResponseUio>>;
|
|
176
|
+
/**
|
|
177
|
+
* Materializes the published agent bundle (agent, skills, knowledge bases, flow, apps) in the organization. MCP tools are only linked when a matching tool already exists in the organization, otherwise they are reported as skipped. Requires organization admin rights.
|
|
178
|
+
* Install a library agent into an organization
|
|
179
|
+
*/
|
|
180
|
+
installLibraryAgent(slug: string, libraryAgentInstallRequestUio: LibraryAgentInstallRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentInstallResponseUio>;
|
|
181
|
+
/**
|
|
182
|
+
* Returns the provenance links of the organization\'s managed agents, each enriched with the latest published version of its catalog entry and an updateAvailable flag. Requires organization membership.
|
|
183
|
+
* List marketplace links of an organization\'s agents
|
|
184
|
+
*/
|
|
185
|
+
listAgentLibraryLinksRaw(requestParameters: ListAgentLibraryLinksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentLibraryLinksResponseUio>>;
|
|
186
|
+
/**
|
|
187
|
+
* Returns the provenance links of the organization\'s managed agents, each enriched with the latest published version of its catalog entry and an updateAvailable flag. Requires organization membership.
|
|
188
|
+
* List marketplace links of an organization\'s agents
|
|
189
|
+
*/
|
|
190
|
+
listAgentLibraryLinks(organizationId: string, agentId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentLibraryLinksResponseUio>;
|
|
191
|
+
/**
|
|
192
|
+
* Returns a paginated, searchable, filterable list of published agents with their versions.
|
|
193
|
+
* List all library agents (agent marketplace)
|
|
194
|
+
*/
|
|
195
|
+
listLibraryAgentsRaw(requestParameters: ListLibraryAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LibraryAgentsPageUio>>;
|
|
196
|
+
/**
|
|
197
|
+
* Returns a paginated, searchable, filterable list of published agents with their versions.
|
|
198
|
+
* List all library agents (agent marketplace)
|
|
199
|
+
*/
|
|
200
|
+
listLibraryAgents(organizationId: string, page?: number, limit?: number, search?: string, category?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LibraryAgentsPageUio>;
|
|
201
|
+
/**
|
|
202
|
+
* Re-applies the published bundle onto the installed agent in place (fields replaced, skill/tool/knowledge-base assignments synchronized, flow replaced). Organization skills and knowledge bases are never deleted, only unassigned; existing apps with the same name are kept. Defaults to the latest published version. Requires organization admin rights.
|
|
203
|
+
* Update a managed agent to a catalog version
|
|
204
|
+
*/
|
|
205
|
+
updateManagedAgentRaw(requestParameters: UpdateManagedAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentLibraryLinkUpdateResponseUio>>;
|
|
206
|
+
/**
|
|
207
|
+
* Re-applies the published bundle onto the installed agent in place (fields replaced, skill/tool/knowledge-base assignments synchronized, flow replaced). Organization skills and knowledge bases are never deleted, only unassigned; existing apps with the same name are kept. Defaults to the latest published version. Requires organization admin rights.
|
|
208
|
+
* Update a managed agent to a catalog version
|
|
209
|
+
*/
|
|
210
|
+
updateManagedAgent(agentId: string, agentLibraryLinkUpdateRequestUio: AgentLibraryLinkUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentLibraryLinkUpdateResponseUio>;
|
|
211
|
+
}
|