@agentforge-io/sdk-server 4.5.0 → 4.5.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.
- package/dist/types.d.ts +40 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -139,6 +139,26 @@ export interface AgentSummary {
|
|
|
139
139
|
createdAt: string | Date;
|
|
140
140
|
updatedAt: string | Date;
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Visibilidad del perfil público del agent (`/a/:publicSlug`).
|
|
144
|
+
* Default en el backend: `'private'`.
|
|
145
|
+
*/
|
|
146
|
+
export type AgentProfileVisibility = 'private' | 'public';
|
|
147
|
+
/** Template visual del perfil público del agent. */
|
|
148
|
+
export type AgentProfileTemplate = 'minimal' | 'brand' | 'beacons';
|
|
149
|
+
/**
|
|
150
|
+
* Bloque de contenido del perfil público (link, bio, imagen, etc.).
|
|
151
|
+
* Shape exacto por `type` — la validación profunda vive en el backend
|
|
152
|
+
* (`agent-config.service.ts` / `normalizeProfileBlocks`), el SDK solo
|
|
153
|
+
* pasa el objeto tal cual.
|
|
154
|
+
*/
|
|
155
|
+
export type ProfileBlock = Record<string, unknown>;
|
|
156
|
+
/**
|
|
157
|
+
* Tema visual del perfil público (colores, fuente, etc.).
|
|
158
|
+
* La validación profunda vive en el backend (`normalizeProfileTheme`);
|
|
159
|
+
* el SDK solo pasa el objeto tal cual.
|
|
160
|
+
*/
|
|
161
|
+
export type ProfileTheme = Record<string, unknown>;
|
|
142
162
|
export interface CreateAgentInput {
|
|
143
163
|
slug: string;
|
|
144
164
|
name: string;
|
|
@@ -156,6 +176,16 @@ export interface CreateAgentInput {
|
|
|
156
176
|
name: string;
|
|
157
177
|
mode: ToolPermissionMode;
|
|
158
178
|
}>;
|
|
179
|
+
/**
|
|
180
|
+
* Handle del creador para el perfil público (`/a/:publicSlug`). Formato
|
|
181
|
+
* `/^[a-z0-9][a-z0-9_-]{0,46}[a-z0-9]$/` (2-48, lowercase), único global.
|
|
182
|
+
* Si se omite, el backend auto-mintea uno (`generatePublicSlug()`).
|
|
183
|
+
*/
|
|
184
|
+
publicSlug?: string;
|
|
185
|
+
visibility?: AgentProfileVisibility;
|
|
186
|
+
profileTemplate?: AgentProfileTemplate;
|
|
187
|
+
profileBlocks?: ProfileBlock[];
|
|
188
|
+
profileTheme?: ProfileTheme;
|
|
159
189
|
}
|
|
160
190
|
export interface UpdateAgentInput {
|
|
161
191
|
name?: string;
|
|
@@ -176,6 +206,16 @@ export interface UpdateAgentInput {
|
|
|
176
206
|
name: string;
|
|
177
207
|
mode: ToolPermissionMode;
|
|
178
208
|
}>;
|
|
209
|
+
/**
|
|
210
|
+
* Handle del creador para el perfil público (`/a/:publicSlug`). Mismo
|
|
211
|
+
* formato que en `CreateAgentInput`; el backend valida formato +
|
|
212
|
+
* unicidad global y responde 409 si choca.
|
|
213
|
+
*/
|
|
214
|
+
publicSlug?: string;
|
|
215
|
+
visibility?: AgentProfileVisibility;
|
|
216
|
+
profileTemplate?: AgentProfileTemplate;
|
|
217
|
+
profileBlocks?: ProfileBlock[];
|
|
218
|
+
profileTheme?: ProfileTheme;
|
|
179
219
|
}
|
|
180
220
|
export interface ListAgentsResult {
|
|
181
221
|
items: AgentSummary[];
|
package/package.json
CHANGED