@vertesia/common 1.0.0-dev.20260225.024852Z → 1.0.0-dev.20260227.112605Z
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/lib/cjs/interaction.js.map +1 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/apps.d.ts +28 -2
- package/lib/types/apps.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +1 -0
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +3 -3
- package/src/apps.ts +32 -3
- package/src/interaction.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/common",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.20260227.112605Z",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./lib/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
19
19
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
20
20
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
21
|
-
"rollup": "^4.
|
|
22
|
-
"rollup
|
|
21
|
+
"rollup": "^4.59.0",
|
|
22
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
23
23
|
"ts-dual-module": "^0.6.3",
|
|
24
24
|
"typescript": "^5.9.3",
|
|
25
25
|
"vitest": "^4.0.16"
|
package/src/apps.ts
CHANGED
|
@@ -190,7 +190,7 @@ export interface AgentToolDefinition extends ToolDefinition {
|
|
|
190
190
|
related_tools?: string[];
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types';
|
|
193
|
+
export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types' | 'templates';
|
|
194
194
|
export type AppAvailableIn = 'app_portal' | 'composite_app';
|
|
195
195
|
export interface AppManifestData {
|
|
196
196
|
/**
|
|
@@ -279,7 +279,7 @@ export interface AppManifestData {
|
|
|
279
279
|
*/
|
|
280
280
|
endpoint?: string;
|
|
281
281
|
}
|
|
282
|
-
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'settings' | 'widgets' | 'all';
|
|
282
|
+
export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'templates' | 'settings' | 'widgets' | 'all';
|
|
283
283
|
export interface AppPackage {
|
|
284
284
|
/**
|
|
285
285
|
* The UI configuration of the app
|
|
@@ -302,7 +302,12 @@ export interface AppPackage {
|
|
|
302
302
|
types?: InCodeTypeDefinition[];
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
|
-
*
|
|
305
|
+
* Templates provided by the app.
|
|
306
|
+
*/
|
|
307
|
+
templates?: RenderingTemplateDefinitionRef[];
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Widgets provided by the app.
|
|
306
311
|
*/
|
|
307
312
|
widgets?: Record<string, AppWidgetInfo>;
|
|
308
313
|
|
|
@@ -318,6 +323,30 @@ export interface AppWidgetInfo {
|
|
|
318
323
|
url: string;
|
|
319
324
|
}
|
|
320
325
|
|
|
326
|
+
export interface RenderingTemplateDefinition {
|
|
327
|
+
/** Unique template id: "collection:name" */
|
|
328
|
+
id: string;
|
|
329
|
+
/** Unique template name (kebab-case) */
|
|
330
|
+
name: string;
|
|
331
|
+
/** Display title */
|
|
332
|
+
title?: string;
|
|
333
|
+
/** Short description */
|
|
334
|
+
description: string;
|
|
335
|
+
/** Template type */
|
|
336
|
+
type: 'presentation' | 'document';
|
|
337
|
+
/** Tags for categorization */
|
|
338
|
+
tags?: string[];
|
|
339
|
+
/** Absolute paths to asset files */
|
|
340
|
+
assets: string[];
|
|
341
|
+
/** The template instructions (markdown) */
|
|
342
|
+
instructions: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type RenderingTemplateDefinitionRef = Omit<RenderingTemplateDefinition, 'instructions'> & {
|
|
346
|
+
/** Absolute API path to fetch the full template definition */
|
|
347
|
+
path: string;
|
|
348
|
+
};
|
|
349
|
+
|
|
321
350
|
export interface AppManifest extends AppManifestData {
|
|
322
351
|
id: string;
|
|
323
352
|
account: string;
|