@twin.org/engine-types 0.0.3-next.51 → 0.0.3-next.52
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/es/components/rightsManagementPolicyInformationSource.js +8 -1
- package/dist/es/components/rightsManagementPolicyInformationSource.js.map +1 -1
- package/dist/es/models/config/rightsManagementPolicyInformationSourceComponentConfig.js.map +1 -1
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js +4 -0
- package/dist/es/models/types/rightsManagementPolicyInformationSourceComponentType.js.map +1 -1
- package/dist/types/models/config/rightsManagementPolicyInformationSourceComponentConfig.d.ts +4 -1
- package/dist/types/models/types/rightsManagementPolicyInformationSourceComponentType.d.ts +4 -0
- package/docs/changelog.md +15 -0
- package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentConfig.md +1 -1
- package/docs/reference/variables/RightsManagementPolicyInformationSourceComponentType.md +6 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolicyInformationSourceFactory } from "@twin.org/rights-management-models";
|
|
2
|
-
import { IdentityPolicyInformationSource, StaticPolicyInformationSource } from "@twin.org/rights-management-plugins";
|
|
2
|
+
import { IdentityPolicyInformationSource, IdentityProfilePolicyInformationSource, StaticPolicyInformationSource } from "@twin.org/rights-management-plugins";
|
|
3
3
|
import { RightsManagementPolicyInformationSourceComponentType } from "../models/types/rightsManagementPolicyInformationSourceComponentType.js";
|
|
4
4
|
import { EngineTypeHelper } from "../utils/engineTypeHelper.js";
|
|
5
5
|
/**
|
|
@@ -19,6 +19,13 @@ export function initialiseRightsManagementPolicyInformationSourceComponent(engin
|
|
|
19
19
|
}, createConfig.options));
|
|
20
20
|
instanceTypeName = "identity-policy-information-source";
|
|
21
21
|
}
|
|
22
|
+
else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.IdentityProfile) {
|
|
23
|
+
createComponent = (createConfig) => new IdentityProfilePolicyInformationSource(EngineTypeHelper.mergeConfig({
|
|
24
|
+
loggingComponentType: engineCore.getRegisteredLoggerType("IdentityProfilePolicyInformationSource"),
|
|
25
|
+
identityProfileComponentType: engineCore.getRegisteredInstanceType("identityProfileComponent")
|
|
26
|
+
}, createConfig.options));
|
|
27
|
+
instanceTypeName = "identity-profile-policy-information-source";
|
|
28
|
+
}
|
|
22
29
|
else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Static) {
|
|
23
30
|
createComponent = (createConfig) => new StaticPolicyInformationSource(EngineTypeHelper.mergeConfig({
|
|
24
31
|
loggingComponentType: engineCore.getRegisteredLoggerType("StaticPolicyInformationSource")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyInformationSource.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyInformationSource.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EACN,+BAA+B,EAC/B,6BAA6B,EAC7B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,oDAAoD,EAAE,MAAM,yEAAyE,CAAC;AAC/I,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,0DAA0D,CACzE,UAAsC,EACtC,OAA0C,EAC1C,cAAsE;IAEtE,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,QAAQ,EAAE,CAAC;QAC3F,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,+BAA+B,CAClC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,uBAAuB,mCAEvD;YACD,6BAA6B,EAAE,UAAU,CAAC,yBAAyB,CAClE,2BAA2B,CAC3B;SACD,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,uCAAmD,CAAC;IACrE,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,MAAM,EAAE,CAAC;QAChG,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,6BAA6B,CAChC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,uBAAuB,iCAEvD;SACD,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,qCAAiD,CAAC;IACnE,CAAC;IAED,OAAO;QACN,eAAe,EAAE,eAAsE;QACvF,gBAAgB;QAChB,OAAO,EAAE,8BAA8B;KACvC,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { PolicyInformationSourceFactory } from \"@twin.org/rights-management-models\";\nimport {\n\tIdentityPolicyInformationSource,\n\tStaticPolicyInformationSource\n} from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyInformationSourceComponentConfig } from \"../models/config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyInformationSourceComponentType } from \"../models/types/rightsManagementPolicyInformationSourceComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the rights management policy information source component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseRightsManagementPolicyInformationSourceComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyInformationSourceComponentConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof PolicyInformationSourceFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Identity) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew IdentityPolicyInformationSource(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredLoggerType(\n\t\t\t\t\t\t\tnameof(IdentityPolicyInformationSource)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tidentityResolverComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"identityResolverComponent\"\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(IdentityPolicyInformationSource);\n\t} else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Static) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew StaticPolicyInformationSource(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredLoggerType(\n\t\t\t\t\t\t\tnameof(StaticPolicyInformationSource)\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(StaticPolicyInformationSource);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: PolicyInformationSourceFactory\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyInformationSource.js","sourceRoot":"","sources":["../../../src/components/rightsManagementPolicyInformationSource.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,EACN,+BAA+B,EAC/B,sCAAsC,EACtC,6BAA6B,EAC7B,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,oDAAoD,EAAE,MAAM,yEAAyE,CAAC;AAC/I,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,0DAA0D,CACzE,UAAsC,EACtC,OAA0C,EAC1C,cAAsE;IAEtE,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,QAAQ,EAAE,CAAC;QAC3F,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,+BAA+B,CAClC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,uBAAuB,mCAEvD;YACD,6BAA6B,EAAE,UAAU,CAAC,yBAAyB,CAClE,2BAA2B,CAC3B;SACD,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,uCAAmD,CAAC;IACrE,CAAC;SAAM,IACN,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,eAAe,EAC3F,CAAC;QACF,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,sCAAsC,CACzC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,uBAAuB,0CAEvD;YACD,4BAA4B,EAAE,UAAU,CAAC,yBAAyB,CACjE,0BAA0B,CAC1B;SACD,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,+CAA0D,CAAC;IAC5E,CAAC;SAAM,IAAI,cAAc,CAAC,IAAI,KAAK,oDAAoD,CAAC,MAAM,EAAE,CAAC;QAChG,eAAe,GAAG,CAAC,YAAmC,EAAE,EAAE,CACzD,IAAI,6BAA6B,CAChC,gBAAgB,CAAC,WAAW,CAC3B;YACC,oBAAoB,EAAE,UAAU,CAAC,uBAAuB,iCAEvD;SACD,EACD,YAAY,CAAC,OAAO,CACpB,CACD,CAAC;QACH,gBAAgB,qCAAiD,CAAC;IACnE,CAAC;IAED,OAAO;QACN,eAAe,EAAE,eAAsE;QACvF,gBAAgB;QAChB,OAAO,EAAE,8BAA8B;KACvC,CAAC;AACH,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {\n\tEngineTypeInitialiserReturn,\n\tIEngineCore,\n\tIEngineCoreContext\n} from \"@twin.org/engine-models\";\nimport { nameof, nameofKebabCase } from \"@twin.org/nameof\";\nimport { PolicyInformationSourceFactory } from \"@twin.org/rights-management-models\";\nimport {\n\tIdentityPolicyInformationSource,\n\tIdentityProfilePolicyInformationSource,\n\tStaticPolicyInformationSource\n} from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyInformationSourceComponentConfig } from \"../models/config/rightsManagementPolicyInformationSourceComponentConfig.js\";\nimport type { IEngineConfig } from \"../models/IEngineConfig.js\";\nimport { RightsManagementPolicyInformationSourceComponentType } from \"../models/types/rightsManagementPolicyInformationSourceComponentType.js\";\nimport { EngineTypeHelper } from \"../utils/engineTypeHelper.js\";\n\n/**\n * Initialise the rights management policy information source component.\n * @param engineCore The engine core.\n * @param context The context for the engine.\n * @param instanceConfig The instance config.\n * @returns The instance created and the factory for it.\n */\nexport function initialiseRightsManagementPolicyInformationSourceComponent(\n\tengineCore: IEngineCore<IEngineConfig>,\n\tcontext: IEngineCoreContext<IEngineConfig>,\n\tinstanceConfig: RightsManagementPolicyInformationSourceComponentConfig\n): EngineTypeInitialiserReturn<typeof instanceConfig, typeof PolicyInformationSourceFactory> {\n\tlet createComponent;\n\tlet instanceTypeName;\n\n\tif (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Identity) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew IdentityPolicyInformationSource(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredLoggerType(\n\t\t\t\t\t\t\tnameof(IdentityPolicyInformationSource)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tidentityResolverComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"identityResolverComponent\"\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(IdentityPolicyInformationSource);\n\t} else if (\n\t\tinstanceConfig.type === RightsManagementPolicyInformationSourceComponentType.IdentityProfile\n\t) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew IdentityProfilePolicyInformationSource(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredLoggerType(\n\t\t\t\t\t\t\tnameof(IdentityProfilePolicyInformationSource)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tidentityProfileComponentType: engineCore.getRegisteredInstanceType(\n\t\t\t\t\t\t\t\"identityProfileComponent\"\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(IdentityProfilePolicyInformationSource);\n\t} else if (instanceConfig.type === RightsManagementPolicyInformationSourceComponentType.Static) {\n\t\tcreateComponent = (createConfig: typeof instanceConfig) =>\n\t\t\tnew StaticPolicyInformationSource(\n\t\t\t\tEngineTypeHelper.mergeConfig<(typeof instanceConfig)[\"options\"]>(\n\t\t\t\t\t{\n\t\t\t\t\t\tloggingComponentType: engineCore.getRegisteredLoggerType(\n\t\t\t\t\t\t\tnameof(StaticPolicyInformationSource)\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tcreateConfig.options\n\t\t\t\t)\n\t\t\t);\n\t\tinstanceTypeName = nameofKebabCase(StaticPolicyInformationSource);\n\t}\n\n\treturn {\n\t\tcreateComponent: createComponent as (createConfig: typeof instanceConfig) => IComponent,\n\t\tinstanceTypeName,\n\t\tfactory: PolicyInformationSourceFactory\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyInformationSourceComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyInformationSourceComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {\n\tIIdentityPolicyInformationSourceConstructorOptions,\n\tIStaticPolicyInformationSourceConstructorOptions\n} from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyInformationSourceComponentType } from \"../types/rightsManagementPolicyInformationSourceComponentType.js\";\n\n/**\n * Rights management policy information source component config types.\n */\nexport type RightsManagementPolicyInformationSourceComponentConfig =\n\t| {\n\t\t\ttype: typeof RightsManagementPolicyInformationSourceComponentType.Identity;\n\t\t\toptions?: IIdentityPolicyInformationSourceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RightsManagementPolicyInformationSourceComponentType.Static;\n\t\t\toptions?: IStaticPolicyInformationSourceConstructorOptions;\n\t };\n"]}
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyInformationSourceComponentConfig.js","sourceRoot":"","sources":["../../../../src/models/config/rightsManagementPolicyInformationSourceComponentConfig.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {\n\tIIdentityPolicyInformationSourceConstructorOptions,\n\tIIdentityProfilePolicyInformationSourceConstructorOptions,\n\tIStaticPolicyInformationSourceConstructorOptions\n} from \"@twin.org/rights-management-plugins\";\nimport type { RightsManagementPolicyInformationSourceComponentType } from \"../types/rightsManagementPolicyInformationSourceComponentType.js\";\n\n/**\n * Rights management policy information source component config types.\n */\nexport type RightsManagementPolicyInformationSourceComponentConfig =\n\t| {\n\t\t\ttype: typeof RightsManagementPolicyInformationSourceComponentType.Identity;\n\t\t\toptions?: IIdentityPolicyInformationSourceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RightsManagementPolicyInformationSourceComponentType.IdentityProfile;\n\t\t\toptions?: IIdentityProfilePolicyInformationSourceConstructorOptions;\n\t }\n\t| {\n\t\t\ttype: typeof RightsManagementPolicyInformationSourceComponentType.Static;\n\t\t\toptions?: IStaticPolicyInformationSourceConstructorOptions;\n\t };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightsManagementPolicyInformationSourceComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyInformationSourceComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oDAAoD,GAAG;IACnE;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Information Source component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyInformationSourceComponentType = {\n\t/**\n\t * Identity.\n\t */\n\tIdentity: \"identity\",\n\n\t/**\n\t * Static.\n\t */\n\tStatic: \"static\"\n} as const;\n\n/**\n * Rights management Policy Information Source component types.\n */\nexport type RightsManagementPolicyInformationSourceComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementPolicyInformationSourceComponentType)[keyof typeof RightsManagementPolicyInformationSourceComponentType];\n"]}
|
|
1
|
+
{"version":3,"file":"rightsManagementPolicyInformationSourceComponentType.js","sourceRoot":"","sources":["../../../../src/models/types/rightsManagementPolicyInformationSourceComponentType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oDAAoD,GAAG;IACnE;;OAEG;IACH,QAAQ,EAAE,UAAU;IAEpB;;OAEG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Rights management Policy Information Source component types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const RightsManagementPolicyInformationSourceComponentType = {\n\t/**\n\t * Identity.\n\t */\n\tIdentity: \"identity\",\n\n\t/**\n\t * Identity Profile.\n\t */\n\tIdentityProfile: \"identity-profile\",\n\n\t/**\n\t * Static.\n\t */\n\tStatic: \"static\"\n} as const;\n\n/**\n * Rights management Policy Information Source component types.\n */\nexport type RightsManagementPolicyInformationSourceComponentType =\n\t// eslint-disable-next-line max-len\n\t(typeof RightsManagementPolicyInformationSourceComponentType)[keyof typeof RightsManagementPolicyInformationSourceComponentType];\n"]}
|
package/dist/types/models/config/rightsManagementPolicyInformationSourceComponentConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IIdentityPolicyInformationSourceConstructorOptions, IStaticPolicyInformationSourceConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
1
|
+
import type { IIdentityPolicyInformationSourceConstructorOptions, IIdentityProfilePolicyInformationSourceConstructorOptions, IStaticPolicyInformationSourceConstructorOptions } from "@twin.org/rights-management-plugins";
|
|
2
2
|
import type { RightsManagementPolicyInformationSourceComponentType } from "../types/rightsManagementPolicyInformationSourceComponentType.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rights management policy information source component config types.
|
|
@@ -6,6 +6,9 @@ import type { RightsManagementPolicyInformationSourceComponentType } from "../ty
|
|
|
6
6
|
export type RightsManagementPolicyInformationSourceComponentConfig = {
|
|
7
7
|
type: typeof RightsManagementPolicyInformationSourceComponentType.Identity;
|
|
8
8
|
options?: IIdentityPolicyInformationSourceConstructorOptions;
|
|
9
|
+
} | {
|
|
10
|
+
type: typeof RightsManagementPolicyInformationSourceComponentType.IdentityProfile;
|
|
11
|
+
options?: IIdentityProfilePolicyInformationSourceConstructorOptions;
|
|
9
12
|
} | {
|
|
10
13
|
type: typeof RightsManagementPolicyInformationSourceComponentType.Static;
|
|
11
14
|
options?: IStaticPolicyInformationSourceConstructorOptions;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.52](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.0.3-next.51...engine-types-v0.0.3-next.52) (2026-06-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add identity profile information source ([e8e57ad](https://github.com/iotaledger/twin-engine/commit/e8e57ad414af50ea0464cf423dc915e83206bf3a))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/engine-core bumped from 0.0.3-next.51 to 0.0.3-next.52
|
|
16
|
+
* @twin.org/engine-models bumped from 0.0.3-next.51 to 0.0.3-next.52
|
|
17
|
+
|
|
3
18
|
## [0.0.3-next.51](https://github.com/iotaledger/twin-engine/compare/engine-types-v0.0.3-next.50...engine-types-v0.0.3-next.51) (2026-06-15)
|
|
4
19
|
|
|
5
20
|
|
package/docs/reference/type-aliases/RightsManagementPolicyInformationSourceComponentConfig.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: RightsManagementPolicyInformationSourceComponentConfig
|
|
2
2
|
|
|
3
|
-
> **RightsManagementPolicyInformationSourceComponentConfig** = \{ `type`: *typeof* [`Identity`](../variables/RightsManagementPolicyInformationSourceComponentType.md#identity); `options?`: `IIdentityPolicyInformationSourceConstructorOptions`; \} \| \{ `type`: *typeof* [`Static`](../variables/RightsManagementPolicyInformationSourceComponentType.md#static); `options?`: `IStaticPolicyInformationSourceConstructorOptions`; \}
|
|
3
|
+
> **RightsManagementPolicyInformationSourceComponentConfig** = \{ `type`: *typeof* [`Identity`](../variables/RightsManagementPolicyInformationSourceComponentType.md#identity); `options?`: `IIdentityPolicyInformationSourceConstructorOptions`; \} \| \{ `type`: *typeof* [`IdentityProfile`](../variables/RightsManagementPolicyInformationSourceComponentType.md#identityprofile); `options?`: `IIdentityProfilePolicyInformationSourceConstructorOptions`; \} \| \{ `type`: *typeof* [`Static`](../variables/RightsManagementPolicyInformationSourceComponentType.md#static); `options?`: `IStaticPolicyInformationSourceConstructorOptions`; \}
|
|
4
4
|
|
|
5
5
|
Rights management policy information source component config types.
|
|
@@ -12,6 +12,12 @@ Rights management Policy Information Source component types.
|
|
|
12
12
|
|
|
13
13
|
Identity.
|
|
14
14
|
|
|
15
|
+
### IdentityProfile {#identityprofile}
|
|
16
|
+
|
|
17
|
+
> `readonly` **IdentityProfile**: `"identity-profile"` = `"identity-profile"`
|
|
18
|
+
|
|
19
|
+
Identity Profile.
|
|
20
|
+
|
|
15
21
|
### Static {#static}
|
|
16
22
|
|
|
17
23
|
> `readonly` **Static**: `"static"` = `"static"`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-types",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.52",
|
|
4
4
|
"description": "Component and connector type definitions with configuration helpers for engine composition.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@twin.org/document-management-models": "next",
|
|
63
63
|
"@twin.org/document-management-rest-client": "next",
|
|
64
64
|
"@twin.org/document-management-service": "next",
|
|
65
|
-
"@twin.org/engine-core": "0.0.3-next.
|
|
66
|
-
"@twin.org/engine-models": "0.0.3-next.
|
|
65
|
+
"@twin.org/engine-core": "0.0.3-next.52",
|
|
66
|
+
"@twin.org/engine-models": "0.0.3-next.52",
|
|
67
67
|
"@twin.org/entity": "next",
|
|
68
68
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
69
69
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|