@endge/core 1.2.11 → 1.2.13

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 (32) hide show
  1. package/dist/core.cjs +274 -266
  2. package/dist/core.js +18187 -17502
  3. package/dist/domain/entities/runtime/RuntimeHostBase.d.ts +3 -0
  4. package/dist/domain/entities/runtime/hosts/ComponentSFCRuntimeHost.d.ts +2 -1
  5. package/dist/domain/entities/runtime/hosts/CompositionRuntimeHost.d.ts +5 -0
  6. package/dist/domain/entities/runtime/hosts/QueryRuntimeHost.d.ts +1 -0
  7. package/dist/domain/entities/runtime/hosts/StreamRuntimeHost.d.ts +1 -0
  8. package/dist/domain/types/auth/auth-profile.types.d.ts +10 -0
  9. package/dist/domain/types/component/sfc/table-events.types.d.ts +1 -0
  10. package/dist/domain/types/component/sfc/tag-attribute-contract.types.d.ts +134 -0
  11. package/dist/domain/types/component/sfc/visual-projection.types.d.ts +5 -2
  12. package/dist/domain/types/document/document-move.type.d.ts +6 -0
  13. package/dist/domain/types/document/domain-provider.type.d.ts +24 -0
  14. package/dist/domain/types/program/program.types.d.ts +4 -0
  15. package/dist/domain/types/runtime/runtime-host.types.d.ts +25 -1
  16. package/dist/domain/types/source/composition-source.types.d.ts +6 -0
  17. package/dist/domain/types/source/data-view-source.types.d.ts +12 -0
  18. package/dist/domain/types/source/filter-source.types.d.ts +2 -0
  19. package/dist/domain/types/source/source-expression.types.d.ts +3 -0
  20. package/dist/domain/types/source/store-source.types.d.ts +1 -0
  21. package/dist/domain/types/ui/filter-view.type.d.ts +13 -0
  22. package/dist/main.d.ts +3 -0
  23. package/dist/model/adapters/diagnostics/ConsoleDiagnosticsAdapter.d.ts +1 -1
  24. package/dist/model/modules/domain/endge-domain-repository.d.ts +3 -0
  25. package/dist/model/modules/runtime/execution/endge-data-view.d.ts +8 -6
  26. package/dist/model/modules/security/auth/AuthRequestResolver.d.ts +1 -1
  27. package/dist/model/modules/security/auth/AuthSessionManager.d.ts +20 -18
  28. package/dist/model/modules/security/endge-auth.d.ts +2 -2
  29. package/dist/model/services/compiler/component-sfc/component-sfc-attributes.d.ts +9 -0
  30. package/dist/model/services/compiler/component-sfc/component-sfc-table-menu.d.ts +5 -0
  31. package/dist/test/diagnostics/console-diagnostics-adapter.test.d.ts +1 -0
  32. package/package.json +4 -4
@@ -1,13 +1,13 @@
1
- import { AuthEnsureOptions, AuthLoginCredentials, AuthProfileSchema, AuthResolvedSession, AuthTokenSet, EndgeAuthContext } from '../../../../domain/types/auth/auth-profile.types';
1
+ import { AuthEnsureOptions, AuthLoginCredentials, AuthProfileSchema, AuthResolvedSession, AuthSessionSource, AuthTokenSet, EndgeAuthContext } from '../../../../domain/types/auth/auth-profile.types';
2
2
  import { AuthAdapterRegistry } from './AuthAdapterRegistry';
3
3
  import { AuthProfileRegistry } from './AuthProfileRegistry';
4
4
  import { AuthSessionStore } from './AuthSessionStore';
5
5
  interface AuthSessionManagerDependencies {
6
6
  getWorkspaceIdentity: () => string;
7
- onApplicationSessionChange: () => void;
7
+ onSessionChange: () => void;
8
8
  now?: () => number;
9
9
  }
10
- /** Владеет application session и изолированными sessions профильных запросов. */
10
+ /** Владеет изолированными sessions runtime auth profiles. */
11
11
  export declare class AuthSessionManager {
12
12
  private readonly _profiles;
13
13
  private readonly _adapters;
@@ -15,35 +15,36 @@ export declare class AuthSessionManager {
15
15
  private readonly _dependencies;
16
16
  private readonly _states;
17
17
  private readonly _operations;
18
+ private readonly _sources;
18
19
  private readonly _now;
19
- private _applicationProfile;
20
+ private _defaultProfile;
20
21
  constructor(_profiles: AuthProfileRegistry, _adapters: AuthAdapterRegistry, _store: AuthSessionStore, _dependencies: AuthSessionManagerDependencies);
21
- /** Identity текущего application profile. */
22
+ /** Identity default runtime profile. */
22
23
  get profileIdentity(): string | null;
23
- /** Возвращает выбранный application profile для request mode=inherit. */
24
- getApplicationProfile(): AuthProfileSchema | null;
25
- /** Показывает наличие действующей application session. */
24
+ /** Показывает наличие действующей session default runtime profile. */
26
25
  get isAuthenticated(): boolean;
27
26
  /** Безопасный actor/session context без tokens. */
28
27
  get context(): EndgeAuthContext;
29
- /** Claims application session только для presentation, не для authorization decisions. */
28
+ /** Claims default profile session только для presentation, не для authorization decisions. */
30
29
  get claims(): Record<string, unknown>;
31
- /** Загруженный OIDC userinfo application session. */
30
+ /** Загруженный OIDC userinfo default profile session. */
32
31
  get userInfo(): Record<string, unknown> | null;
33
- /** Выбирает default application profile и восстанавливает его snapshot. */
32
+ /** Выбирает default runtime profile и восстанавливает его snapshot. */
34
33
  configureDefault(profile: AuthProfileSchema | null): void;
35
- /** Выполняет interactive login application profile. */
34
+ /** Подключает host-owned session source и запрещает смешивание с persisted snapshot profile. */
35
+ connect(profileIdentity: string, source: AuthSessionSource): void;
36
+ /** Выполняет interactive login default runtime profile. */
36
37
  login(credentials: AuthLoginCredentials): Promise<void>;
37
- /** Входит в указанный Keycloak profile по переданным credentials и делает его application session. */
38
+ /** Входит в указанный Keycloak profile, не меняя default profile. */
38
39
  loginWithProfile(profileIdentity: string, credentials: AuthLoginCredentials): Promise<void>;
39
40
  private _loginWithProfile;
40
- /** Гарантирует действующую application session. */
41
+ /** Гарантирует действующую session default runtime profile. */
41
42
  ensureValid(options?: AuthEnsureOptions): Promise<boolean>;
42
- /** Загружает userinfo для действующей application session. */
43
+ /** Загружает userinfo для session default runtime profile. */
43
44
  ensureUserInfo(): Promise<Record<string, unknown> | null>;
44
- /** Завершает application session и всегда очищает local snapshot. */
45
+ /** Завершает session default runtime profile и всегда очищает local snapshot. */
45
46
  logout(): Promise<void>;
46
- /** Гарантирует session указанного profile, не меняя application context. */
47
+ /** Гарантирует session указанного profile, не меняя default profile. */
47
48
  ensureProfile(profileInput: AuthProfileSchema, options?: AuthEnsureOptions): Promise<AuthTokenSet | null>;
48
49
  /** Преобразует token set в transport-neutral request session. */
49
50
  toResolvedSession(profile: AuthProfileSchema, token: AuthTokenSet): AuthResolvedSession;
@@ -53,9 +54,10 @@ export declare class AuthSessionManager {
53
54
  private _authenticate;
54
55
  private _setState;
55
56
  private _clearState;
56
- private _applicationState;
57
+ private _defaultState;
57
58
  private _isAccessTokenUsable;
58
59
  private _isAccessTokenFresh;
60
+ private _refreshSkewMs;
59
61
  private _isRefreshExpired;
60
62
  private _workspaceIdentity;
61
63
  private _singleFlight;
@@ -4,7 +4,7 @@ import { AuthAdapterRegistry } from './auth/AuthAdapterRegistry';
4
4
  import { AuthProfileRegistry } from './auth/AuthProfileRegistry';
5
5
  import { AuthRequestResolver } from './auth/AuthRequestResolver';
6
6
  import { AuthSessionManager } from './auth/AuthSessionManager';
7
- /** Единый lifecycle owner application session и request authentication. */
7
+ /** Единый lifecycle owner runtime auth profile sessions и request authentication. */
8
8
  export declare class EndgeAuth extends EndgeModule {
9
9
  readonly adapters: AuthAdapterRegistry;
10
10
  readonly profiles: AuthProfileRegistry;
@@ -20,7 +20,7 @@ export declare class EndgeAuth extends EndgeModule {
20
20
  constructor();
21
21
  /** Подключает host credential port и безопасные context providers. */
22
22
  setup(ctx: EndgeBootContext): void;
23
- /** Валидирует Domain profiles и восстанавливает default application session. */
23
+ /** Валидирует Domain profiles и восстанавливает session default runtime profile. */
24
24
  build(): void;
25
25
  /** Сбрасывает runtime state, не удаляя persisted browser session. */
26
26
  reset(): void;
@@ -0,0 +1,9 @@
1
+ import { RComponentContractInput, RComponentDiagnostic } from '../../../../domain/types/component/component-core.types';
2
+ import { RComponentSFC_AST } from '../../../../domain/types/component/sfc/ast.types';
3
+ import { ComponentSFCAttributeAnalysisOptions, ComponentSFCTagAttributeContract } from '../../../../domain/types/component/sfc/tag-attribute-contract.types';
4
+ /** Проверяет статические значения конечных SFC-атрибутов по renderer-neutral контрактам. */
5
+ export declare function validateComponentSFCAttributeValues(source: string, ast: RComponentSFC_AST | null, options?: ComponentSFCAttributeAnalysisOptions): RComponentDiagnostic[];
6
+ /** Возвращает встроенные и подключенные извне контракты без повторов имён. */
7
+ export declare function resolveComponentSFCTagAttributeContracts(tag: string, options?: ComponentSFCAttributeAnalysisOptions): readonly ComponentSFCTagAttributeContract[];
8
+ /** Преобразует literal-union inputs пользовательского компонента в editor-контракты. */
9
+ export declare function createComponentSFCAttributeContractsFromInputs(inputs: readonly RComponentContractInput[]): ComponentSFCTagAttributeContract[];
@@ -9,3 +9,8 @@ interface NormalizeMenuOptions {
9
9
  export declare function normalizeComponentSFCTableColumnMenu(tableNode: RComponentSFC_IR_ElementNode, actionsOrOptions?: ComponentSFCActionPort[] | NormalizeMenuOptions): ComponentSFCTableColumnMenuDescriptor;
10
10
  /** Normalizes one optional row menu. Cell-aware values remain expressions until a right click occurs. */
11
11
  export declare function normalizeComponentSFCTableRowMenu(tableNode: RComponentSFC_IR_ElementNode, actionsOrOptions?: ComponentSFCActionPort[] | NormalizeMenuOptions): ComponentSFCTableRowMenuDescriptor;
12
+ /** Reads a compile-time MenuItem reference to one Action port. */
13
+ export declare function readComponentSFCTableMenuActionPortReference(source: string): {
14
+ name: string;
15
+ role?: 'require' | 'provides';
16
+ } | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@endge/core",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@babel/parser": "^7.27.2",
30
30
  "@babel/types": "^7.27.1",
31
- "@endge/utils": "^0.24.6",
31
+ "@endge/utils": "^0.24.8",
32
32
  "@vue/compiler-dom": "^3.5.24",
33
33
  "@vue/compiler-sfc": "^3.5.24",
34
34
  "axios": "^1.13.2",
@@ -44,8 +44,8 @@
44
44
  "yaml": "^2.8.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "@endge/raph": "^3.0.5",
48
- "@endge/utils": "^0.24.6",
47
+ "@endge/raph": "^3.0.6",
48
+ "@endge/utils": "^0.24.8",
49
49
  "@primevue/themes": "^4.0.0-rc.1",
50
50
  "class-transformer": "^0.5.1",
51
51
  "class-validator": "^0.14.1",