@umbraco-ai/core 1.0.0 → 1.2.0
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/package.json +1 -1
- package/types/umbraco-ai-public-types.d.ts +701 -48
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
2
|
import { HTMLElementConstructor } from '@umbraco-cms/backoffice/extension-api';
|
|
3
|
+
import type { ManifestApi } from '@umbraco-cms/backoffice/extension-api';
|
|
3
4
|
import type { ManifestBase } from '@umbraco-cms/backoffice/extension-api';
|
|
5
|
+
import type { ManifestMenuItem } from '@umbraco-cms/backoffice/menu';
|
|
4
6
|
import { Observable } from '@umbraco-cms/backoffice/external/rxjs';
|
|
5
7
|
import { Observable as Observable_2 } from 'rxjs';
|
|
6
8
|
import { TemplateResult } from 'lit-html';
|
|
7
|
-
import
|
|
9
|
+
import { TemplateResult as TemplateResult_2 } from '@umbraco-cms/backoffice/external/lit';
|
|
10
|
+
import { UmbApi } from '@umbraco-cms/backoffice/extension-api';
|
|
8
11
|
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
9
12
|
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
10
13
|
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
@@ -18,6 +21,8 @@ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
|
18
21
|
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
|
19
22
|
import { UUIFormControlMixinElement } from '@umbraco-ui/uui-base';
|
|
20
23
|
|
|
24
|
+
export declare const coreClientReady: Promise<void>;
|
|
25
|
+
|
|
21
26
|
/**
|
|
22
27
|
* Helper to create context item from serialized entity.
|
|
23
28
|
*/
|
|
@@ -41,7 +46,7 @@ export declare function dispatchActionEvent(host: any, event: Event): void;
|
|
|
41
46
|
declare type EntityVersionComparisonResponseModel = {
|
|
42
47
|
fromVersion: number;
|
|
43
48
|
toVersion: number;
|
|
44
|
-
changes: Array<
|
|
49
|
+
changes: Array<ValueChangeModel>;
|
|
45
50
|
};
|
|
46
51
|
|
|
47
52
|
declare type EntityVersionHistoryResponseModel = {
|
|
@@ -83,11 +88,43 @@ export declare interface ManifestEntityAdapter extends ManifestBase {
|
|
|
83
88
|
}>;
|
|
84
89
|
}
|
|
85
90
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Manifest for request context contributor extensions.
|
|
93
|
+
*
|
|
94
|
+
* Request context contributors are invoked before each AI request to gather
|
|
95
|
+
* ambient context (current section, entity, surface, etc.) into
|
|
96
|
+
* UaiRequestContextItem[] for the backend.
|
|
97
|
+
*
|
|
98
|
+
* Core contributors are unconditional (always run).
|
|
99
|
+
* Product-specific contributors can use Umbraco's conditions framework
|
|
100
|
+
* to gate when they contribute.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```typescript
|
|
104
|
+
* // Unconditional contributor (always contributes)
|
|
105
|
+
* const manifest: ManifestUaiRequestContextContributor = {
|
|
106
|
+
* type: "uaiRequestContextContributor",
|
|
107
|
+
* alias: "UmbracoAI.RequestContextContributor.Section",
|
|
108
|
+
* name: "Section Request Context Contributor",
|
|
109
|
+
* api: () => import("./section.contributor.js"),
|
|
110
|
+
* weight: 100,
|
|
111
|
+
* };
|
|
112
|
+
*
|
|
113
|
+
* // Kind-based contributor (api provided by kind, meta configures it)
|
|
114
|
+
* const surfaceManifest: ManifestUaiRequestContextContributor = {
|
|
115
|
+
* type: "uaiRequestContextContributor",
|
|
116
|
+
* kind: "agentSurface",
|
|
117
|
+
* alias: "UmbracoAI.Copilot.RequestContextContributor.AgentSurface",
|
|
118
|
+
* name: "Copilot Agent Surface Request Context Contributor",
|
|
119
|
+
* meta: { surface: "copilot" },
|
|
120
|
+
* };
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare interface ManifestUaiRequestContextContributor extends ManifestApi<UaiRequestContextContributorApi> {
|
|
124
|
+
type: typeof UAI_REQUEST_CONTEXT_CONTRIBUTOR_EXTENSION_TYPE;
|
|
125
|
+
/** Optional metadata passed to the contributor's `contribute()` method. */
|
|
126
|
+
meta?: Record<string, unknown>;
|
|
127
|
+
}
|
|
91
128
|
|
|
92
129
|
/**
|
|
93
130
|
* Resolve an entity adapter by entity type.
|
|
@@ -109,6 +146,39 @@ declare type PropertyChangeModel = {
|
|
|
109
146
|
*/
|
|
110
147
|
export declare function resolveEntityAdapterByType(entityType: string): Promise<UaiEntityAdapterApi | undefined>;
|
|
111
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Converts a string to camelCase by splitting on separators (-, _, ., spaces).
|
|
151
|
+
* Used for converting tool/scope IDs to localization key format.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* toCamelCase("content-read") // "contentRead"
|
|
155
|
+
* toCamelCase("media_write") // "mediaWrite"
|
|
156
|
+
* toCamelCase("some.scope") // "someScope"
|
|
157
|
+
*/
|
|
158
|
+
export declare function toCamelCase(str: string): string;
|
|
159
|
+
|
|
160
|
+
export declare type ToolItemResponseModel = {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
description: string;
|
|
164
|
+
scopeId: string;
|
|
165
|
+
isDestructive: boolean;
|
|
166
|
+
tags: Array<string>;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
export declare type ToolScopeItemResponseModel = {
|
|
170
|
+
id: string;
|
|
171
|
+
icon: string;
|
|
172
|
+
isDestructive: boolean;
|
|
173
|
+
domain: string;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export declare const UAI_ADDONS_MENU_ALIAS = "Uai.Menu.Addons";
|
|
177
|
+
|
|
178
|
+
export declare const UAI_AI_SECTION_PATHNAME = "ai";
|
|
179
|
+
|
|
180
|
+
export declare const UAI_CORE_MENU_ALIAS = "Uai.Menu.Core";
|
|
181
|
+
|
|
112
182
|
/**
|
|
113
183
|
* A constant representing an empty GUID.
|
|
114
184
|
* @public
|
|
@@ -122,11 +192,18 @@ export declare const UAI_ENTITY_ADAPTER_EXTENSION_TYPE = "uaiEntityAdapter";
|
|
|
122
192
|
|
|
123
193
|
export declare const UAI_ITEM_PICKER_MODAL: UmbModalToken<UaiItemPickerModalData, UaiItemPickerModalValue>;
|
|
124
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Extension type alias for request context contributors.
|
|
197
|
+
*/
|
|
198
|
+
declare const UAI_REQUEST_CONTEXT_CONTRIBUTOR_EXTENSION_TYPE = "uaiRequestContextContributor";
|
|
199
|
+
|
|
125
200
|
/**
|
|
126
201
|
* Modal token for the rollback confirmation modal.
|
|
127
202
|
*/
|
|
128
203
|
export declare const UAI_ROLLBACK_MODAL: UmbModalToken<UaiRollbackModalData, UaiRollbackModalValue>;
|
|
129
204
|
|
|
205
|
+
export declare const UAI_SECTION_ALIAS = "Uai.Section.AI";
|
|
206
|
+
|
|
130
207
|
/**
|
|
131
208
|
* Context token for consuming the Workspace Registry.
|
|
132
209
|
* Use this to access active workspaces from any component.
|
|
@@ -225,7 +302,7 @@ export declare interface UaiChatResult {
|
|
|
225
302
|
* Chat message role.
|
|
226
303
|
* @public
|
|
227
304
|
*/
|
|
228
|
-
export declare type UaiChatRole =
|
|
305
|
+
export declare type UaiChatRole = "user" | "assistant" | "system";
|
|
229
306
|
|
|
230
307
|
/**
|
|
231
308
|
* Streaming chunk from chat completion.
|
|
@@ -401,11 +478,17 @@ export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
|
|
|
401
478
|
*/
|
|
402
479
|
serializeForLlm(workspaceContext: unknown): Promise<UaiSerializedEntity>;
|
|
403
480
|
/**
|
|
404
|
-
* Apply a
|
|
481
|
+
* Apply a value change to the document workspace.
|
|
405
482
|
* Changes are staged in the workspace - user must save to persist.
|
|
483
|
+
* For CMS documents, the path is treated as the property alias.
|
|
406
484
|
* Only supports text-based properties (TextBox, TextArea) for now.
|
|
407
485
|
*/
|
|
408
|
-
|
|
486
|
+
applyValueChange(workspaceContext: unknown, change: UaiValueChange): Promise<UaiValueChangeResult>;
|
|
487
|
+
/**
|
|
488
|
+
* Cleanup method required by UmbApi base type.
|
|
489
|
+
* Currently no resources to clean up as the adapter is stateless.
|
|
490
|
+
*/
|
|
491
|
+
destroy(): void;
|
|
409
492
|
}
|
|
410
493
|
|
|
411
494
|
/**
|
|
@@ -420,6 +503,7 @@ export declare interface UaiEditableModelFieldModel {
|
|
|
420
503
|
defaultValue?: unknown;
|
|
421
504
|
sortOrder: number;
|
|
422
505
|
isRequired: boolean;
|
|
506
|
+
group?: string;
|
|
423
507
|
}
|
|
424
508
|
|
|
425
509
|
/**
|
|
@@ -512,7 +596,7 @@ export declare class UaiEntityActionEvent extends UmbEntityActionEvent {
|
|
|
512
596
|
* - Serializing entity data for LLM consumption
|
|
513
597
|
* - Applying property changes (optional)
|
|
514
598
|
*/
|
|
515
|
-
export declare interface UaiEntityAdapterApi {
|
|
599
|
+
export declare interface UaiEntityAdapterApi extends UmbApi {
|
|
516
600
|
readonly entityType: string;
|
|
517
601
|
/**
|
|
518
602
|
* Check if this adapter can handle the given workspace context.
|
|
@@ -547,13 +631,13 @@ export declare interface UaiEntityAdapterApi {
|
|
|
547
631
|
*/
|
|
548
632
|
serializeForLlm(workspaceContext: unknown): Promise<UaiSerializedEntity>;
|
|
549
633
|
/**
|
|
550
|
-
* Apply a
|
|
634
|
+
* Apply a value change to the workspace (staged, not persisted).
|
|
551
635
|
* Optional - some entity types may be read-only.
|
|
552
636
|
* @param workspaceContext The workspace context to modify
|
|
553
|
-
* @param change The
|
|
637
|
+
* @param change The value change to apply
|
|
554
638
|
* @returns Result indicating success or failure with error message
|
|
555
639
|
*/
|
|
556
|
-
|
|
640
|
+
applyValueChange?(workspaceContext: unknown, change: UaiValueChange): Promise<UaiValueChangeResult>;
|
|
557
641
|
}
|
|
558
642
|
|
|
559
643
|
/**
|
|
@@ -590,23 +674,33 @@ export declare class UaiEntityAdapterContext extends UmbControllerBase {
|
|
|
590
674
|
/**
|
|
591
675
|
* Serialize the selected entity for LLM context injection.
|
|
592
676
|
* Returns undefined if no entity is selected.
|
|
677
|
+
* Waits for initialization to complete before attempting to serialize.
|
|
593
678
|
*/
|
|
594
679
|
serializeSelectedEntity(): Promise<UaiSerializedEntity | undefined>;
|
|
595
680
|
/**
|
|
596
|
-
* Apply a
|
|
681
|
+
* Apply a value change to the currently selected entity.
|
|
597
682
|
* Changes are staged in the workspace - user must save to persist.
|
|
598
|
-
*
|
|
683
|
+
* Waits for initialization to complete before attempting to apply changes.
|
|
684
|
+
* @param change The value change to apply
|
|
599
685
|
* @returns Result indicating success or failure with error message
|
|
600
686
|
*/
|
|
601
|
-
|
|
687
|
+
applyValueChange(change: UaiValueChange): Promise<UaiValueChangeResult>;
|
|
602
688
|
}
|
|
603
689
|
|
|
604
690
|
/**
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* Minimal interfaces for the entity adapter system that enables
|
|
608
|
-
* AI tools to interact with Umbraco entities being edited.
|
|
691
|
+
* Extended menu item manifest that supports child entity types for entity container menu items.
|
|
609
692
|
*/
|
|
693
|
+
export declare interface UaiEntityContainerMenuItemManifest extends ManifestMenuItem {
|
|
694
|
+
kind: 'entityContainer';
|
|
695
|
+
meta: ManifestMenuItem['meta'] & {
|
|
696
|
+
/**
|
|
697
|
+
* Child entity types that should keep this menu item highlighted when active.
|
|
698
|
+
* Used by the entityContainer menu item kind to maintain highlighting when navigating to child entities.
|
|
699
|
+
*/
|
|
700
|
+
childEntityTypes?: string[];
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
|
|
610
704
|
/**
|
|
611
705
|
* Represents the identity of an entity being edited.
|
|
612
706
|
* Supports hierarchical relationships via recursive parentContext.
|
|
@@ -641,10 +735,37 @@ export declare class UaiEntityDeletedRedirectController extends UmbControllerBas
|
|
|
641
735
|
constructor(host: UmbControllerHost, args: UaiEntityDeletedRedirectArgs);
|
|
642
736
|
}
|
|
643
737
|
|
|
738
|
+
/**
|
|
739
|
+
* Frontend tool metadata for display in tool pickers.
|
|
740
|
+
* This is the minimal data needed by consumers to list available frontend tools.
|
|
741
|
+
*/
|
|
742
|
+
export declare interface UaiFrontendToolData {
|
|
743
|
+
/** Unique tool identifier (matches AG-UI tool call name) */
|
|
744
|
+
id: string;
|
|
745
|
+
/** Display name for the tool */
|
|
746
|
+
name: string;
|
|
747
|
+
/** Description of what the tool does */
|
|
748
|
+
description: string;
|
|
749
|
+
/** Scope identifier for permission grouping */
|
|
750
|
+
scopeId: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Repository API for accessing frontend tool metadata.
|
|
755
|
+
* Implemented by packages that provide frontend tools (e.g., Copilot).
|
|
756
|
+
*/
|
|
757
|
+
export declare interface UaiFrontendToolRepositoryApi extends UmbApi {
|
|
758
|
+
/**
|
|
759
|
+
* Get all available frontend tools.
|
|
760
|
+
* @returns Array of frontend tool metadata
|
|
761
|
+
*/
|
|
762
|
+
getTools(): Promise<UaiFrontendToolData[]>;
|
|
763
|
+
}
|
|
764
|
+
|
|
644
765
|
export declare interface UaiItemPickerModalData {
|
|
645
766
|
items?: UaiPickableItemModel[];
|
|
646
767
|
fetchItems?: () => Promise<UaiPickableItemModel[]>;
|
|
647
|
-
selectionMode?:
|
|
768
|
+
selectionMode?: "single" | "multiple";
|
|
648
769
|
tagTemplate?: (item: UaiPickableItemModel) => TemplateResult_2;
|
|
649
770
|
title?: string;
|
|
650
771
|
buttonLabel?: string;
|
|
@@ -702,6 +823,10 @@ export declare class UaiModelEditorElement extends UmbLitElement {
|
|
|
702
823
|
* Placeholder text shown when the schema has no fields.
|
|
703
824
|
*/
|
|
704
825
|
emptyMessage?: string;
|
|
826
|
+
/**
|
|
827
|
+
* Placeholder text shown when the schema has no fields.
|
|
828
|
+
*/
|
|
829
|
+
defaultGroup?: string;
|
|
705
830
|
private _propertyValues;
|
|
706
831
|
shouldUpdate(changedProperties: Map<string, unknown>): boolean;
|
|
707
832
|
updated(changedProperties: Map<string, unknown>): void;
|
|
@@ -792,28 +917,68 @@ export declare class UaiProfilePickerElement extends UaiProfilePickerElement_bas
|
|
|
792
917
|
declare const UaiProfilePickerElement_base: HTMLElementConstructor<UmbFormControlMixinElement<string | string[] | undefined>> & typeof UmbLitElement;
|
|
793
918
|
|
|
794
919
|
/**
|
|
795
|
-
*
|
|
796
|
-
*
|
|
920
|
+
* Mutable context bag passed to each contributor.
|
|
921
|
+
* Mirrors the backend AIRuntimeContext pattern -- contributors
|
|
922
|
+
* call `add()` to push context items rather than returning them.
|
|
797
923
|
*/
|
|
798
|
-
export declare
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
924
|
+
export declare class UaiRequestContext {
|
|
925
|
+
#private;
|
|
926
|
+
/**
|
|
927
|
+
* Add a context item to the request context.
|
|
928
|
+
*/
|
|
929
|
+
add(item: UaiRequestContextItem): void;
|
|
930
|
+
/**
|
|
931
|
+
* Get all contributed context items.
|
|
932
|
+
*/
|
|
933
|
+
getItems(): UaiRequestContextItem[];
|
|
807
934
|
}
|
|
808
935
|
|
|
809
936
|
/**
|
|
810
|
-
*
|
|
937
|
+
* Collects request context from all registered contributors.
|
|
938
|
+
*
|
|
939
|
+
* Queries uaiRequestContextContributor extensions and uses
|
|
940
|
+
* `loadManifestApi` to load + instantiate each API (same pattern
|
|
941
|
+
* as UaiFrontendToolManager).
|
|
942
|
+
*
|
|
943
|
+
* API instances are cached for the lifetime of the collector.
|
|
811
944
|
*/
|
|
812
|
-
export declare
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
|
|
945
|
+
export declare class UaiRequestContextCollector extends UmbControllerBase {
|
|
946
|
+
#private;
|
|
947
|
+
constructor(host: UmbControllerHost);
|
|
948
|
+
/**
|
|
949
|
+
* Collect request context items from all resolved contributors.
|
|
950
|
+
* Creates a mutable UaiRequestContext, passes it through each
|
|
951
|
+
* contributor (mirroring the backend Contribute pattern), and
|
|
952
|
+
* returns the accumulated items.
|
|
953
|
+
*
|
|
954
|
+
* @returns Aggregated request context items from all contributors.
|
|
955
|
+
*/
|
|
956
|
+
collect(): Promise<UaiRequestContextItem[]>;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* API interface for request context contributors.
|
|
961
|
+
* Implement this to contribute context items to AI requests.
|
|
962
|
+
*
|
|
963
|
+
* Frontend counterpart of the backend IAIRuntimeContextContributor.
|
|
964
|
+
* While the backend contributors *process* request context items into
|
|
965
|
+
* runtime context, frontend contributors *produce* the request context
|
|
966
|
+
* items that get sent in the request.
|
|
967
|
+
*
|
|
968
|
+
* Mirrors the backend signature: `void Contribute(AIRuntimeContext context)`
|
|
969
|
+
*/
|
|
970
|
+
export declare interface UaiRequestContextContributorApi extends UmbApi {
|
|
971
|
+
/**
|
|
972
|
+
* Contribute context items to the request context.
|
|
973
|
+
* Called once per message send / prompt execution.
|
|
974
|
+
* Add items via `context.add(item)`. No-op to contribute nothing.
|
|
975
|
+
*
|
|
976
|
+
* @param context The mutable request context to contribute to.
|
|
977
|
+
* @param meta Optional manifest meta – passed from the manifest's `meta`
|
|
978
|
+
* property so kind-based contributors can read configuration
|
|
979
|
+
* without hardcoding values.
|
|
980
|
+
*/
|
|
981
|
+
contribute(context: UaiRequestContext, meta?: Record<string, unknown>): Promise<void>;
|
|
817
982
|
}
|
|
818
983
|
|
|
819
984
|
/**
|
|
@@ -842,7 +1007,7 @@ export declare interface UaiRollbackModalData {
|
|
|
842
1007
|
/** The target version being compared (usually the current version). */
|
|
843
1008
|
toVersion: number;
|
|
844
1009
|
/** The list of property changes between the versions. */
|
|
845
|
-
changes:
|
|
1010
|
+
changes: UaiVersionValueChange[];
|
|
846
1011
|
}
|
|
847
1012
|
|
|
848
1013
|
/**
|
|
@@ -866,19 +1031,45 @@ export declare class UaiSelectedEvent extends Event {
|
|
|
866
1031
|
|
|
867
1032
|
/**
|
|
868
1033
|
* Serialized representation of an entity for LLM context.
|
|
1034
|
+
* Adapters decide the structure of the data field based on entity type.
|
|
869
1035
|
*/
|
|
870
1036
|
export declare interface UaiSerializedEntity {
|
|
871
1037
|
entityType: string;
|
|
872
1038
|
unique: string;
|
|
873
1039
|
name: string;
|
|
874
|
-
contentType?: string;
|
|
875
1040
|
/** Parent unique when creating a new entity. Undefined for existing entities. */
|
|
876
1041
|
parentUnique?: string | null;
|
|
877
|
-
|
|
1042
|
+
/**
|
|
1043
|
+
* Free-form entity data as JSON object.
|
|
1044
|
+
* Adapters decide the structure based on entity type.
|
|
1045
|
+
*
|
|
1046
|
+
* For CMS entities, typically contains:
|
|
1047
|
+
* ```typescript
|
|
1048
|
+
* {
|
|
1049
|
+
* contentType: "blogPost",
|
|
1050
|
+
* properties: [
|
|
1051
|
+
* { alias: "title", label: "Title", editorAlias: "Umbraco.TextBox", value: "Hello" }
|
|
1052
|
+
* ]
|
|
1053
|
+
* }
|
|
1054
|
+
* ```
|
|
1055
|
+
*
|
|
1056
|
+
* For third-party entities, can be any domain-appropriate structure:
|
|
1057
|
+
* ```typescript
|
|
1058
|
+
* {
|
|
1059
|
+
* sku: "12345",
|
|
1060
|
+
* price: { amount: 29.99, currency: "USD" },
|
|
1061
|
+
* variants: [{ color: "red", size: "large" }]
|
|
1062
|
+
* }
|
|
1063
|
+
* ```
|
|
1064
|
+
*/
|
|
1065
|
+
data: Record<string, unknown>;
|
|
878
1066
|
}
|
|
879
1067
|
|
|
880
1068
|
/**
|
|
881
1069
|
* Serialized property for LLM context.
|
|
1070
|
+
* @deprecated Entity data is now stored in UaiSerializedEntity.data as free-form JSON.
|
|
1071
|
+
* For CMS entities, properties are nested inside the data field.
|
|
1072
|
+
* This interface is kept for reference only.
|
|
882
1073
|
*/
|
|
883
1074
|
export declare interface UaiSerializedProperty {
|
|
884
1075
|
alias: string;
|
|
@@ -988,6 +1179,319 @@ export declare class UaiTagsInputElement extends UaiTagsInputElement_base {
|
|
|
988
1179
|
|
|
989
1180
|
declare const UaiTagsInputElement_base: (new (...args: any[]) => UUIFormControlMixinElement<FormData | FormDataEntryValue>) & typeof UmbLitElement;
|
|
990
1181
|
|
|
1182
|
+
/**
|
|
1183
|
+
* Tool with permission state.
|
|
1184
|
+
*/
|
|
1185
|
+
export declare interface UaiToolPermission {
|
|
1186
|
+
toolId: string;
|
|
1187
|
+
state: UaiToolPermissionState;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Component for managing individual tool permission overrides.
|
|
1192
|
+
* Displays inherited tools with "Deny" buttons and allows adding new tools with "Allow" permission.
|
|
1193
|
+
*
|
|
1194
|
+
* @fires change - Fires when permissions change
|
|
1195
|
+
*
|
|
1196
|
+
* @public
|
|
1197
|
+
*/
|
|
1198
|
+
export declare class UaiToolPermissionsOverrideElement extends UmbLitElement {
|
|
1199
|
+
#private;
|
|
1200
|
+
/**
|
|
1201
|
+
* Map of tool ID to full tool data.
|
|
1202
|
+
*/
|
|
1203
|
+
private _toolDataMap;
|
|
1204
|
+
/**
|
|
1205
|
+
* Inherited tool IDs from agent defaults.
|
|
1206
|
+
*/
|
|
1207
|
+
inheritedToolIds: string[];
|
|
1208
|
+
/**
|
|
1209
|
+
* Tool IDs that are explicitly allowed (additive).
|
|
1210
|
+
*/
|
|
1211
|
+
allowedToolIds: string[];
|
|
1212
|
+
/**
|
|
1213
|
+
* Tool IDs that are explicitly denied (subtractive).
|
|
1214
|
+
*/
|
|
1215
|
+
deniedToolIds: string[];
|
|
1216
|
+
/**
|
|
1217
|
+
* Whether the component is in readonly mode.
|
|
1218
|
+
*/
|
|
1219
|
+
readonly: boolean;
|
|
1220
|
+
connectedCallback(): void;
|
|
1221
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
1222
|
+
/**
|
|
1223
|
+
* Load full tool data for all tools.
|
|
1224
|
+
*/
|
|
1225
|
+
private _loadToolData;
|
|
1226
|
+
/**
|
|
1227
|
+
* Computed list of all tools with their permission states.
|
|
1228
|
+
*/
|
|
1229
|
+
private get _allTools();
|
|
1230
|
+
/**
|
|
1231
|
+
* Add a new allowed tool.
|
|
1232
|
+
*/
|
|
1233
|
+
private _addAllowedTool;
|
|
1234
|
+
/**
|
|
1235
|
+
* Fetch available tools for the picker modal.
|
|
1236
|
+
*/
|
|
1237
|
+
private _fetchAvailableTools;
|
|
1238
|
+
/**
|
|
1239
|
+
* Deny a tool (move to denied list).
|
|
1240
|
+
*/
|
|
1241
|
+
private _denyTool;
|
|
1242
|
+
/**
|
|
1243
|
+
* Remove a tool from denied list (allow it again).
|
|
1244
|
+
*/
|
|
1245
|
+
private _allowTool;
|
|
1246
|
+
/**
|
|
1247
|
+
* Remove an explicitly allowed tool.
|
|
1248
|
+
*/
|
|
1249
|
+
private _removeAllowedTool;
|
|
1250
|
+
/**
|
|
1251
|
+
* Dispatch change event.
|
|
1252
|
+
*/
|
|
1253
|
+
private _dispatchChangeEvent;
|
|
1254
|
+
/**
|
|
1255
|
+
* Render a tool permission item.
|
|
1256
|
+
*/
|
|
1257
|
+
private _renderToolItem;
|
|
1258
|
+
render(): TemplateResult<1>;
|
|
1259
|
+
static styles: CSSResult[];
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Permission state for a tool override.
|
|
1264
|
+
*/
|
|
1265
|
+
export declare type UaiToolPermissionState = "inherited" | "allowed" | "denied";
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Tool picker component that allows selecting one or more AI tools.
|
|
1269
|
+
*
|
|
1270
|
+
* @fires change - Fires when the selection changes (UmbChangeEvent).
|
|
1271
|
+
*
|
|
1272
|
+
* @example
|
|
1273
|
+
* Multiple selection (default):
|
|
1274
|
+
* ```html
|
|
1275
|
+
* <uai-tool-picker
|
|
1276
|
+
* .value=${["tool-id-1", "tool-id-2"]}
|
|
1277
|
+
* @change=${(e) => console.log(e.target.value)}
|
|
1278
|
+
* ></uai-tool-picker>
|
|
1279
|
+
* ```
|
|
1280
|
+
* @public
|
|
1281
|
+
*/
|
|
1282
|
+
export declare class UaiToolPickerElement extends UaiToolPickerElement_base {
|
|
1283
|
+
#private;
|
|
1284
|
+
/**
|
|
1285
|
+
* Readonly mode - cannot add or remove.
|
|
1286
|
+
*/
|
|
1287
|
+
readonly: boolean;
|
|
1288
|
+
/**
|
|
1289
|
+
* Optional frontend tools to include alongside server-fetched tools.
|
|
1290
|
+
* These tools will be combined with the backend tools when displaying the picker.
|
|
1291
|
+
*/
|
|
1292
|
+
frontendTools?: UaiFrontendToolData[];
|
|
1293
|
+
/**
|
|
1294
|
+
* The selected tool ID(s).
|
|
1295
|
+
*/
|
|
1296
|
+
set value(val: string[] | undefined);
|
|
1297
|
+
get value(): string[] | undefined;
|
|
1298
|
+
private _selection;
|
|
1299
|
+
private _items;
|
|
1300
|
+
private _loading;
|
|
1301
|
+
updated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
1302
|
+
render(): TemplateResult<1>;
|
|
1303
|
+
static styles: CSSResult[];
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
declare const UaiToolPickerElement_base: HTMLElementConstructor<UmbFormControlMixinElement<string[] | undefined>> & typeof UmbLitElement;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Repository for tool operations.
|
|
1310
|
+
*/
|
|
1311
|
+
export declare class UaiToolRepository extends UmbControllerBase {
|
|
1312
|
+
#private;
|
|
1313
|
+
constructor(host: UmbControllerHost);
|
|
1314
|
+
/**
|
|
1315
|
+
* Gets all registered tool scopes.
|
|
1316
|
+
*/
|
|
1317
|
+
getToolScopes(): Promise<{
|
|
1318
|
+
data?: Array<ToolScopeItemResponseModel>;
|
|
1319
|
+
error?: unknown;
|
|
1320
|
+
}>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Gets all registered tools.
|
|
1323
|
+
*/
|
|
1324
|
+
getTools(): Promise<{
|
|
1325
|
+
data?: Array<ToolItemResponseModel>;
|
|
1326
|
+
error?: unknown;
|
|
1327
|
+
}>;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Tool scope with permission state.
|
|
1332
|
+
*/
|
|
1333
|
+
export declare interface UaiToolScopePermission {
|
|
1334
|
+
scopeId: string;
|
|
1335
|
+
state: UaiToolScopePermissionState;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
export declare class UaiToolScopePermissionsElement extends UaiToolScopePermissionsElement_base {
|
|
1339
|
+
#private;
|
|
1340
|
+
/**
|
|
1341
|
+
* Readonly mode - cannot toggle permissions.
|
|
1342
|
+
*/
|
|
1343
|
+
readonly: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* Hide scopes that have no tools.
|
|
1346
|
+
*/
|
|
1347
|
+
hideEmptyScopes: boolean;
|
|
1348
|
+
/**
|
|
1349
|
+
* The selected tool scope IDs.
|
|
1350
|
+
*/
|
|
1351
|
+
set value(val: string[] | undefined);
|
|
1352
|
+
get value(): string[] | undefined;
|
|
1353
|
+
private _selection;
|
|
1354
|
+
private _groups;
|
|
1355
|
+
private _loading;
|
|
1356
|
+
private _toolCounts;
|
|
1357
|
+
connectedCallback(): void;
|
|
1358
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
1359
|
+
render(): TemplateResult<1>;
|
|
1360
|
+
static styles: CSSResult[];
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
declare const UaiToolScopePermissionsElement_base: HTMLElementConstructor<UmbFormControlMixinElement<string[] | undefined>> & typeof UmbLitElement;
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* Component for managing tool scope permission overrides.
|
|
1367
|
+
* Displays inherited scopes with "Deny" buttons and allows adding new scopes with "Allow" permission.
|
|
1368
|
+
*
|
|
1369
|
+
* @fires change - Fires when permissions change
|
|
1370
|
+
*
|
|
1371
|
+
* @public
|
|
1372
|
+
*/
|
|
1373
|
+
export declare class UaiToolScopePermissionsOverrideElement extends UmbLitElement {
|
|
1374
|
+
#private;
|
|
1375
|
+
/**
|
|
1376
|
+
* Map of scope ID to full scope data.
|
|
1377
|
+
*/
|
|
1378
|
+
private _scopeDataMap;
|
|
1379
|
+
/**
|
|
1380
|
+
* Tool counts by scope ID.
|
|
1381
|
+
*/
|
|
1382
|
+
private _toolCounts;
|
|
1383
|
+
/**
|
|
1384
|
+
* Inherited scope IDs from agent defaults.
|
|
1385
|
+
*/
|
|
1386
|
+
inheritedScopeIds: string[];
|
|
1387
|
+
/**
|
|
1388
|
+
* Scope IDs that are explicitly allowed (additive).
|
|
1389
|
+
*/
|
|
1390
|
+
allowedScopeIds: string[];
|
|
1391
|
+
/**
|
|
1392
|
+
* Scope IDs that are explicitly denied (subtractive).
|
|
1393
|
+
*/
|
|
1394
|
+
deniedScopeIds: string[];
|
|
1395
|
+
/**
|
|
1396
|
+
* Whether the component is in readonly mode.
|
|
1397
|
+
*/
|
|
1398
|
+
readonly: boolean;
|
|
1399
|
+
/**
|
|
1400
|
+
* Hide scopes that have no tools.
|
|
1401
|
+
*/
|
|
1402
|
+
hideEmptyScopes: boolean;
|
|
1403
|
+
connectedCallback(): void;
|
|
1404
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
1405
|
+
/**
|
|
1406
|
+
* Load full scope data for all scopes.
|
|
1407
|
+
*/
|
|
1408
|
+
private _loadScopeData;
|
|
1409
|
+
/**
|
|
1410
|
+
* Load tool counts for all scopes.
|
|
1411
|
+
*/
|
|
1412
|
+
private _loadToolCounts;
|
|
1413
|
+
/**
|
|
1414
|
+
* Computed list of all scopes with their permission states.
|
|
1415
|
+
*/
|
|
1416
|
+
private get _allScopes();
|
|
1417
|
+
/**
|
|
1418
|
+
* Add a new allowed scope.
|
|
1419
|
+
*/
|
|
1420
|
+
private _addAllowedScope;
|
|
1421
|
+
/**
|
|
1422
|
+
* Fetch available tool scopes for the picker modal.
|
|
1423
|
+
*/
|
|
1424
|
+
private _fetchAvailableScopes;
|
|
1425
|
+
/**
|
|
1426
|
+
* Deny a scope (move to denied list).
|
|
1427
|
+
*/
|
|
1428
|
+
private _denyScope;
|
|
1429
|
+
/**
|
|
1430
|
+
* Remove a scope from denied list (allow it again).
|
|
1431
|
+
*/
|
|
1432
|
+
private _allowScope;
|
|
1433
|
+
/**
|
|
1434
|
+
* Remove an explicitly allowed scope.
|
|
1435
|
+
*/
|
|
1436
|
+
private _removeAllowedScope;
|
|
1437
|
+
/**
|
|
1438
|
+
* Dispatch change event.
|
|
1439
|
+
*/
|
|
1440
|
+
private _dispatchChangeEvent;
|
|
1441
|
+
/**
|
|
1442
|
+
* Render a scope permission item.
|
|
1443
|
+
*/
|
|
1444
|
+
private _renderScopeItem;
|
|
1445
|
+
render(): TemplateResult<1>;
|
|
1446
|
+
static styles: CSSResult[];
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Permission state for a tool scope override.
|
|
1451
|
+
*/
|
|
1452
|
+
export declare type UaiToolScopePermissionState = "inherited" | "allowed" | "denied";
|
|
1453
|
+
|
|
1454
|
+
/**
|
|
1455
|
+
* Tool scope picker component that allows selecting one or more tool scopes.
|
|
1456
|
+
*
|
|
1457
|
+
* @fires change - Fires when the selection changes (UmbChangeEvent).
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* Multiple selection:
|
|
1461
|
+
* ```html
|
|
1462
|
+
* <uai-tool-scope-picker
|
|
1463
|
+
* .value=${["content-read", "media-write"]}
|
|
1464
|
+
* @change=${(e) => console.log(e.target.value)}
|
|
1465
|
+
* ></uai-tool-scope-picker>
|
|
1466
|
+
* ```
|
|
1467
|
+
* @public
|
|
1468
|
+
*/
|
|
1469
|
+
export declare class UaiToolScopePickerElement extends UaiToolScopePickerElement_base {
|
|
1470
|
+
#private;
|
|
1471
|
+
/**
|
|
1472
|
+
* Readonly mode - cannot add or remove.
|
|
1473
|
+
*/
|
|
1474
|
+
readonly: boolean;
|
|
1475
|
+
/**
|
|
1476
|
+
* Hide scopes that have no tools.
|
|
1477
|
+
*/
|
|
1478
|
+
hideEmptyScopes: boolean;
|
|
1479
|
+
/**
|
|
1480
|
+
* The selected tool scope ID(s).
|
|
1481
|
+
*/
|
|
1482
|
+
set value(val: string[] | undefined);
|
|
1483
|
+
get value(): string[] | undefined;
|
|
1484
|
+
private _selection;
|
|
1485
|
+
private _items;
|
|
1486
|
+
private _loading;
|
|
1487
|
+
private _toolCounts;
|
|
1488
|
+
connectedCallback(): Promise<void>;
|
|
1489
|
+
render(): TemplateResult<1>;
|
|
1490
|
+
static styles: CSSResult[];
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare const UaiToolScopePickerElement_base: HTMLElementConstructor<UmbFormControlMixinElement<string[] | undefined>> & typeof UmbLitElement;
|
|
1494
|
+
|
|
991
1495
|
/**
|
|
992
1496
|
* Unified repository for version history operations across all entity types.
|
|
993
1497
|
* Uses the unified versioning API endpoint instead of entity-specific endpoints.
|
|
@@ -1023,6 +1527,149 @@ export declare class UaiUnifiedVersionHistoryRepository {
|
|
|
1023
1527
|
rollback(entityType: string, entityId: string, version: number): Promise<boolean>;
|
|
1024
1528
|
}
|
|
1025
1529
|
|
|
1530
|
+
/**
|
|
1531
|
+
* Configuration for the user group settings list component.
|
|
1532
|
+
* @template TSettings - The type of settings managed for each user group
|
|
1533
|
+
* @public
|
|
1534
|
+
*/
|
|
1535
|
+
export declare interface UaiUserGroupSettingsConfig<TSettings> {
|
|
1536
|
+
/** Modal configuration for editing settings */
|
|
1537
|
+
editorModal: {
|
|
1538
|
+
/** Modal token to open for editing */
|
|
1539
|
+
token: UmbModalToken<any, any>;
|
|
1540
|
+
/** Factory to create modal data */
|
|
1541
|
+
createData: (userGroupId: string, userGroupName: string, existingSettings?: TSettings) => any;
|
|
1542
|
+
/** Extract settings from modal result */
|
|
1543
|
+
extractValue: (modalResult: any) => TSettings;
|
|
1544
|
+
};
|
|
1545
|
+
/** Display configuration */
|
|
1546
|
+
display: {
|
|
1547
|
+
/** Render summary text/content for list item detail */
|
|
1548
|
+
renderSummary: (settings: TSettings) => TemplateResult_2 | string;
|
|
1549
|
+
/** Optional: Render tags/badges in list item */
|
|
1550
|
+
renderTags?: (settings: TSettings) => TemplateResult_2;
|
|
1551
|
+
};
|
|
1552
|
+
/** Localization (all optional with sensible defaults) */
|
|
1553
|
+
labels?: {
|
|
1554
|
+
/** Box headline (default: "User Group Overrides") */
|
|
1555
|
+
headline?: string;
|
|
1556
|
+
/** Add button label (default: "Add User Group Override") */
|
|
1557
|
+
addButton?: string;
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Generic reusable component for managing user-group-specific settings for any feature.
|
|
1563
|
+
* Handles list display, add/edit/remove workflows, and user group picker integration.
|
|
1564
|
+
*
|
|
1565
|
+
* @fires change - Fires when the value changes
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* ```typescript
|
|
1569
|
+
* const config: UaiUserGroupSettingsConfig<MySettings> = {
|
|
1570
|
+
* editorModal: {
|
|
1571
|
+
* token: MY_EDITOR_MODAL_TOKEN,
|
|
1572
|
+
* createData: (id, name, existing) => ({ userGroupId: id, userGroupName: name, settings: existing }),
|
|
1573
|
+
* extractValue: (result) => result.settings,
|
|
1574
|
+
* },
|
|
1575
|
+
* display: {
|
|
1576
|
+
* renderSummary: (settings) => `${settings.count} items configured`,
|
|
1577
|
+
* renderTags: (settings) => html`<uui-tag>Active</uui-tag>`,
|
|
1578
|
+
* },
|
|
1579
|
+
* labels: {
|
|
1580
|
+
* headline: 'Custom Settings',
|
|
1581
|
+
* addButton: 'Add Custom Setting',
|
|
1582
|
+
* },
|
|
1583
|
+
* };
|
|
1584
|
+
* ```
|
|
1585
|
+
*
|
|
1586
|
+
* @public
|
|
1587
|
+
*/
|
|
1588
|
+
export declare class UaiUserGroupSettingsListElement<TSettings> extends UmbLitElement {
|
|
1589
|
+
#private;
|
|
1590
|
+
/**
|
|
1591
|
+
* Map of user group IDs to their settings.
|
|
1592
|
+
* Dictionary key is the user group ID (GUID as string).
|
|
1593
|
+
*/
|
|
1594
|
+
value: Record<string, TSettings>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Configuration for the component (modal, display, labels).
|
|
1597
|
+
*/
|
|
1598
|
+
config: UaiUserGroupSettingsConfig<TSettings>;
|
|
1599
|
+
/**
|
|
1600
|
+
* Whether the component is in readonly mode.
|
|
1601
|
+
*/
|
|
1602
|
+
readonly: boolean;
|
|
1603
|
+
/**
|
|
1604
|
+
* Internal state for resolved user group names.
|
|
1605
|
+
*/
|
|
1606
|
+
private _userGroupNames;
|
|
1607
|
+
/**
|
|
1608
|
+
* Computed labels with defaults.
|
|
1609
|
+
*/
|
|
1610
|
+
private get _labels();
|
|
1611
|
+
/**
|
|
1612
|
+
* Check if there are any user groups configured.
|
|
1613
|
+
*/
|
|
1614
|
+
private get _hasUserGroups();
|
|
1615
|
+
/**
|
|
1616
|
+
* Get user group entries as array for rendering.
|
|
1617
|
+
*/
|
|
1618
|
+
private get _userGroupEntries();
|
|
1619
|
+
connectedCallback(): void;
|
|
1620
|
+
/**
|
|
1621
|
+
* Load user group names for all configured user groups.
|
|
1622
|
+
*/
|
|
1623
|
+
private _loadUserGroupNames;
|
|
1624
|
+
/**
|
|
1625
|
+
* Get user group name by ID.
|
|
1626
|
+
*/
|
|
1627
|
+
private _getUserGroupName;
|
|
1628
|
+
/**
|
|
1629
|
+
* Add a new user group override.
|
|
1630
|
+
*/
|
|
1631
|
+
private _addUserGroup;
|
|
1632
|
+
/**
|
|
1633
|
+
* Edit an existing user group override.
|
|
1634
|
+
*/
|
|
1635
|
+
private _editUserGroup;
|
|
1636
|
+
/**
|
|
1637
|
+
* Remove a user group override.
|
|
1638
|
+
*/
|
|
1639
|
+
private _removeUserGroup;
|
|
1640
|
+
/**
|
|
1641
|
+
* Dispatch change event.
|
|
1642
|
+
*/
|
|
1643
|
+
private _dispatchChangeEvent;
|
|
1644
|
+
render(): TemplateResult_2<1>;
|
|
1645
|
+
static styles: CSSResult[];
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Request to change a value at a JSON path in the entity data.
|
|
1650
|
+
* Changes are staged in the workspace - user must save to persist.
|
|
1651
|
+
*/
|
|
1652
|
+
export declare interface UaiValueChange {
|
|
1653
|
+
/** JSON path to the value (e.g., "title", "price.amount", "inventory.quantity") */
|
|
1654
|
+
path: string;
|
|
1655
|
+
/** New value to set */
|
|
1656
|
+
value: unknown;
|
|
1657
|
+
/** Culture for variant content (undefined = invariant) */
|
|
1658
|
+
culture?: string;
|
|
1659
|
+
/** Segment for segmented content (undefined = no segment) */
|
|
1660
|
+
segment?: string;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Result of a value change operation.
|
|
1665
|
+
*/
|
|
1666
|
+
export declare interface UaiValueChangeResult {
|
|
1667
|
+
/** Whether the change was applied successfully */
|
|
1668
|
+
success: boolean;
|
|
1669
|
+
/** Human-readable error message if failed */
|
|
1670
|
+
error?: string;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1026
1673
|
/**
|
|
1027
1674
|
* Response model for version comparison.
|
|
1028
1675
|
*/
|
|
@@ -1031,8 +1678,8 @@ export declare interface UaiVersionComparisonResponse {
|
|
|
1031
1678
|
fromVersion: number;
|
|
1032
1679
|
/** The target version number. */
|
|
1033
1680
|
toVersion: number;
|
|
1034
|
-
/** The list of
|
|
1035
|
-
changes:
|
|
1681
|
+
/** The list of value changes. */
|
|
1682
|
+
changes: UaiVersionValueChange[];
|
|
1036
1683
|
}
|
|
1037
1684
|
|
|
1038
1685
|
/**
|
|
@@ -1073,11 +1720,11 @@ export declare const UaiVersionHistoryTypeMapper: {
|
|
|
1073
1720
|
};
|
|
1074
1721
|
|
|
1075
1722
|
/**
|
|
1076
|
-
* Represents a
|
|
1723
|
+
* Represents a value change between two versions.
|
|
1077
1724
|
*/
|
|
1078
|
-
export declare interface
|
|
1079
|
-
/** The
|
|
1080
|
-
|
|
1725
|
+
export declare interface UaiVersionValueChange {
|
|
1726
|
+
/** The path of the value that changed. */
|
|
1727
|
+
path: string;
|
|
1081
1728
|
/** The old value (from the source version). */
|
|
1082
1729
|
oldValue?: string | null;
|
|
1083
1730
|
/** The new value (from the target version). */
|
|
@@ -1104,6 +1751,12 @@ export declare class UaiWorkspaceRegistryContext extends UmbControllerBase {
|
|
|
1104
1751
|
/* Excluded from this release type: _unregister */
|
|
1105
1752
|
}
|
|
1106
1753
|
|
|
1754
|
+
declare type ValueChangeModel = {
|
|
1755
|
+
path: string;
|
|
1756
|
+
oldValue?: string | null;
|
|
1757
|
+
newValue?: string | null;
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1107
1760
|
/**
|
|
1108
1761
|
* Event emitted when workspace registration changes
|
|
1109
1762
|
*/
|