@xpert-ai/contracts 3.29.1 → 3.30.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.
Files changed (36) hide show
  1. package/index.cjs.js +2599 -1489
  2. package/index.esm.js +3698 -2635
  3. package/package.json +2 -2
  4. package/src/ai/ai-model.model.d.ts +8 -0
  5. package/src/ai/chat-activity.model.d.ts +6 -0
  6. package/src/ai/chat.model.d.ts +1 -1
  7. package/src/ai/conversation-trail.model.d.ts +417 -0
  8. package/src/ai/copilot-provider.model.d.ts +2 -0
  9. package/src/ai/copilot.model.d.ts +7 -4
  10. package/src/ai/default-model-role.d.ts +41 -0
  11. package/src/ai/execution-activity.model.d.ts +12 -0
  12. package/src/ai/execution-observability.model.d.ts +12 -12
  13. package/src/ai/index.d.ts +3 -0
  14. package/src/ai/membership.model.d.ts +2 -0
  15. package/src/ai/model-discovery.model.d.ts +1 -0
  16. package/src/ai/model-management.model.d.ts +358 -0
  17. package/src/ai/model-replacement.model.d.ts +291 -0
  18. package/src/ai/role-permissions.d.ts +59 -2
  19. package/src/ai/thread-activity.model.d.ts +1 -0
  20. package/src/ai/xpert-tool.model.d.ts +4 -3
  21. package/src/ai/xpert-toolset.model.d.ts +4 -3
  22. package/src/ai/xpert.model.d.ts +10 -1
  23. package/src/analytics-definition.model.d.ts +2 -0
  24. package/src/app-platform.d.ts +666 -0
  25. package/src/artifact.model.d.ts +1 -1
  26. package/src/index.d.ts +4 -0
  27. package/src/integration-sharing.model.d.ts +12 -0
  28. package/src/integration.model.d.ts +2 -0
  29. package/src/plugin-application.d.ts +13 -0
  30. package/src/role-permission-modules.d.ts +13 -1
  31. package/src/role-permission.model.d.ts +1 -0
  32. package/src/role.model.d.ts +19 -0
  33. package/src/types.d.ts +1 -0
  34. package/src/user-notification.schema.d.ts +721 -0
  35. package/src/user.model.d.ts +2 -0
  36. package/src/view-extension/model.d.ts +5 -0
@@ -3,8 +3,10 @@ import { IOrganizationProjectsUpdateInput } from './organization-projects.model'
3
3
  import { IOrganizationUpdateInput } from './organization.model';
4
4
  import { ITag } from './tag-entity.model';
5
5
  import { I18nObject, IconDefinition, TAvatar, TParameterSchema } from './types';
6
+ import { IntegrationSharingPolicy } from './integration-sharing.model';
6
7
  import { IUser } from './user.model';
7
8
  export interface IIntegration<T = any> extends IBasePerTenantAndOrganizationEntityModel {
9
+ sharing?: IntegrationSharingPolicy | null;
8
10
  name: string;
9
11
  description?: string;
10
12
  /**
@@ -58,6 +58,12 @@ export interface PluginMarketplaceAppModelRequirements {
58
58
  embedding?: boolean;
59
59
  vision?: boolean;
60
60
  speechToText?: boolean;
61
+ /** Exact auxiliary models used by App tools that do not follow the primary model selection. */
62
+ auxiliary?: Array<{
63
+ provider: string;
64
+ model: string;
65
+ modelType: AiModelTypeEnum;
66
+ }>;
61
67
  embeddingLabel?: string | I18nObject;
62
68
  visionLabel?: string | I18nObject;
63
69
  }
@@ -85,6 +91,13 @@ export interface PluginMarketplaceAppAssistantSuite {
85
91
  * The host only executes this contract from a loaded plugin contribution.
86
92
  */
87
93
  export interface PluginMarketplaceAppConfig {
94
+ /** Explicit public binding contract; the owning App retains shared resource lifecycle. */
95
+ resources?: {
96
+ knowledgebases?: {
97
+ exports?: string[];
98
+ imports?: string[];
99
+ };
100
+ };
88
101
  /** A single scope or ordered choices. The first choice is the backward-compatible default. */
89
102
  scope: PluginApplicationScope | PluginApplicationScope[];
90
103
  assistantTemplateKey: string;
@@ -1,3 +1,15 @@
1
- /** Display-only grouping. PermissionGroups remains the authority for access rules. */
1
+ import { AIPermissionsEnum as AI } from './ai/role-permissions';
2
+ import { PermissionsEnum as P } from './role-permission.model';
3
+ /** Display-only grouping. Runtime access is determined by enabled grants and endpoint/resource policy. */
2
4
  export type RolePermissionModule = 'ai' | 'projects' | 'members' | 'billing' | 'data' | 'personal' | 'other';
3
5
  export declare const ROLE_PERMISSION_MODULES: ReadonlyMap<string, RolePermissionModule>;
6
+ export declare const DEPRECATED_ROLE_PERMISSIONS: readonly [P.ADMIN_DASHBOARD_VIEW, P.VIEW_ALL_EMAILS, P.ORG_DEMO_EDIT, AI.COPILOT_VIEW, P.CHANGE_SELECTED_ORGANIZATION, P.ACCESS_DELETE_ACCOUNT];
7
+ export declare const UNWIRED_AI_PERMISSIONS: readonly AI[];
8
+ /** Complete UI/documentation catalog; presence here never grants access or implies endpoint enforcement. */
9
+ export declare const ROLE_PERMISSION_CATALOG: {
10
+ permission: P | AI;
11
+ module: RolePermissionModule;
12
+ deprecated: boolean;
13
+ configurable: boolean;
14
+ contractOnly: boolean;
15
+ }[];
@@ -22,6 +22,7 @@ export interface IRolePermissionUpdateInput {
22
22
  enabled: boolean;
23
23
  }
24
24
  export declare enum PermissionsEnum {
25
+ ANNOUNCEMENT_MANAGE = "ANNOUNCEMENT_MANAGE",
25
26
  PROFILE_EDIT = "PROFILE_EDIT",
26
27
  ADMIN_DASHBOARD_VIEW = "ADMIN_DASHBOARD_VIEW",
27
28
  ORG_EMPLOYEES_VIEW = "ORG_EMPLOYEES_VIEW",
@@ -9,11 +9,30 @@ export interface IRole extends IRoleCreateInput {
9
9
  export interface IRoleCreateInput extends IBasePerTenantEntityModel {
10
10
  name: string;
11
11
  }
12
+ /**
13
+ * Built-in permission presets. Effective access still requires enabled permissions
14
+ * and resource authorization; role names alone do not grant access.
15
+ */
12
16
  export declare enum RolesEnum {
17
+ /** Platform administration, including management of other administrators. */
13
18
  SUPER_ADMIN = "SUPER_ADMIN",
19
+ /** Tenant/organization administration, including members, billing and AI resources. */
14
20
  ADMIN = "ADMIN",
21
+ /** AI authoring: configure models, build Assistants and install applications. */
15
22
  AI_BUILDER = "AI_BUILDER",
23
+ /** Consume authorized chat and read permitted resources without authoring privileges. */
16
24
  VIEWER = "VIEWER",
25
+ /**
26
+ * Managed application consumer: use assigned apps, published Assistants and projects.
27
+ * No model-provider configuration, Assistant authoring or installation by default.
28
+ */
29
+ APP_USER = "APP_USER",
30
+ /**
31
+ * Non-interactive service identity for application initialization and upgrades.
32
+ * Uses scoped installation/authoring permissions and normal resource authorization.
33
+ */
34
+ APPLICATION_PROVISIONER = "APPLICATION_PROVISIONER",
35
+ /** Platform trial with authoring privileges; membership entitlements define trial limits. */
17
36
  TRIAL = "TRIAL"
18
37
  }
19
38
  export declare const DEFAULT_SYSTEM_ROLES: RolesEnum[];
package/src/types.d.ts CHANGED
@@ -58,6 +58,7 @@ export type TranslateOptions = {
58
58
  */
59
59
  export type TSelectOption<T = string | number | boolean, K = string> = {
60
60
  key?: K;
61
+ disabled?: boolean;
61
62
  value: T;
62
63
  label?: I18nObject | string;
63
64
  description?: I18nObject | string;