@twin.org/rights-management-models 0.0.3-next.2 → 0.0.3-next.20
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/factories/policyArbiterFactory.js +9 -0
- package/dist/es/factories/policyArbiterFactory.js.map +1 -0
- package/dist/es/factories/policyEnforcementProcessorFactory.js +9 -0
- package/dist/es/factories/policyEnforcementProcessorFactory.js.map +1 -0
- package/dist/es/factories/policyExecutionActionFactory.js +9 -0
- package/dist/es/factories/policyExecutionActionFactory.js.map +1 -0
- package/dist/es/factories/policyInformationSourceFactory.js +9 -0
- package/dist/es/factories/policyInformationSourceFactory.js.map +1 -0
- package/dist/es/factories/policyNegotiatorFactory.js +9 -0
- package/dist/es/factories/policyNegotiatorFactory.js.map +1 -0
- package/dist/es/factories/policyObligationEnforcerFactory.js +9 -0
- package/dist/es/factories/policyObligationEnforcerFactory.js.map +1 -0
- package/dist/es/factories/policyRequesterFactory.js +9 -0
- package/dist/es/factories/policyRequesterFactory.js.map +1 -0
- package/dist/es/index.js +14 -18
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/api/pap/IPapGetAgreementRequest.js +4 -0
- package/dist/es/models/api/pap/IPapGetAgreementRequest.js.map +1 -0
- package/dist/es/models/api/pap/IPapGetAgreementResponse.js +2 -0
- package/dist/es/models/api/pap/IPapGetAgreementResponse.js.map +1 -0
- package/dist/es/models/api/pap/IPapGetOfferRequest.js +4 -0
- package/dist/es/models/api/pap/IPapGetOfferRequest.js.map +1 -0
- package/dist/es/models/api/pap/IPapGetOfferResponse.js +2 -0
- package/dist/es/models/api/pap/IPapGetOfferResponse.js.map +1 -0
- package/dist/es/models/{IPolicyLocator.js → api/pap/IPapGetSetRequest.js} +1 -1
- package/dist/es/models/api/pap/IPapGetSetRequest.js.map +1 -0
- package/dist/es/models/api/pap/IPapGetSetResponse.js +2 -0
- package/dist/es/models/api/pap/IPapGetSetResponse.js.map +1 -0
- package/dist/es/models/api/pap/IPapQueryRequest.js.map +1 -1
- package/dist/es/models/api/pap/IPapQueryResponse.js.map +1 -1
- package/dist/es/models/api/pnap/IPnapQueryRequest.js.map +1 -1
- package/dist/es/models/api/pnap/IPnapQueryResponse.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpAgreementRequest.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpAgreementVerificationRequest.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpContractNegotiationResponse.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpContractResponse.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpEventRequest.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpNegotiateRequest.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpOfferRequest.js.map +1 -1
- package/dist/es/models/api/pnp/IPnpTerminateRequest.js.map +1 -1
- package/dist/es/models/pap/IPolicyAdministrationPointComponent.js.map +1 -1
- package/dist/es/models/pdp/IPolicyArbiter.js.map +1 -1
- package/dist/es/models/pdp/IPolicyDecision.js.map +1 -1
- package/dist/es/models/pdp/IPolicyDecisionPointComponent.js.map +1 -1
- package/dist/es/models/pdp/IPolicyObligationEnforcer.js +2 -0
- package/dist/es/models/pdp/IPolicyObligationEnforcer.js.map +1 -0
- package/dist/es/models/pdp/policyDecision.js +7 -3
- package/dist/es/models/pdp/policyDecision.js.map +1 -1
- package/dist/es/models/pep/IPolicyEnforcementPointComponent.js.map +1 -1
- package/dist/es/models/pep/IPolicyEnforcementProcessor.js.map +1 -1
- package/dist/es/models/pip/IPolicyInformationPointComponent.js.map +1 -1
- package/dist/es/models/pip/IPolicyInformationSource.js.map +1 -1
- package/dist/es/models/pmp/IPolicyManagementPointComponent.js.map +1 -1
- package/dist/es/models/pnp/IPolicyNegotiation.js.map +1 -1
- package/dist/es/models/pnp/IPolicyNegotiationAdminPointComponent.js.map +1 -1
- package/dist/es/models/pnp/IPolicyNegotiationPointComponent.js.map +1 -1
- package/dist/es/models/pnp/IPolicyNegotiator.js.map +1 -1
- package/dist/es/models/pnp/IPolicyRequester.js.map +1 -1
- package/dist/es/models/pxp/IPolicyExecutionAction.js.map +1 -1
- package/dist/es/models/pxp/IPolicyExecutionPointComponent.js.map +1 -1
- package/dist/es/models/rightsManagementContexts.js +10 -2
- package/dist/es/models/rightsManagementContexts.js.map +1 -1
- package/dist/es/utils/odrlPolicyHelper.js +158 -89
- package/dist/es/utils/odrlPolicyHelper.js.map +1 -1
- package/dist/types/factories/policyArbiterFactory.d.ts +6 -0
- package/dist/types/factories/policyEnforcementProcessorFactory.d.ts +6 -0
- package/dist/types/factories/policyExecutionActionFactory.d.ts +6 -0
- package/dist/types/factories/policyInformationSourceFactory.d.ts +6 -0
- package/dist/types/factories/policyNegotiatorFactory.d.ts +6 -0
- package/dist/types/factories/policyObligationEnforcerFactory.d.ts +6 -0
- package/dist/types/factories/policyRequesterFactory.d.ts +6 -0
- package/dist/types/index.d.ts +14 -18
- package/dist/types/models/api/pap/IPapGetAgreementRequest.d.ts +14 -0
- package/dist/types/models/api/pap/IPapGetAgreementResponse.d.ts +10 -0
- package/dist/types/models/api/pap/IPapGetOfferRequest.d.ts +14 -0
- package/dist/types/models/api/pap/IPapGetOfferResponse.d.ts +10 -0
- package/dist/types/models/api/pap/IPapGetSetRequest.d.ts +14 -0
- package/dist/types/models/api/pap/IPapGetSetResponse.d.ts +10 -0
- package/dist/types/models/api/pap/IPapQueryRequest.d.ts +16 -0
- package/dist/types/models/api/pap/IPapQueryResponse.d.ts +8 -10
- package/dist/types/models/api/pnap/IPnapQueryRequest.d.ts +2 -2
- package/dist/types/models/api/pnap/IPnapQueryResponse.d.ts +8 -10
- package/dist/types/models/api/pnp/IPnpAgreementRequest.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpAgreementVerificationRequest.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpContractNegotiationResponse.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpContractResponse.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpEventRequest.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpNegotiateRequest.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpOfferRequest.d.ts +2 -2
- package/dist/types/models/api/pnp/IPnpTerminateRequest.d.ts +2 -2
- package/dist/types/models/pap/IPolicyAdministrationPointComponent.d.ts +30 -2
- package/dist/types/models/pdp/IPolicyArbiter.d.ts +9 -12
- package/dist/types/models/pdp/IPolicyDecision.d.ts +5 -1
- package/dist/types/models/pdp/IPolicyDecisionPointComponent.d.ts +4 -17
- package/dist/types/models/pdp/IPolicyObligationEnforcer.d.ts +20 -0
- package/dist/types/models/pdp/policyDecision.d.ts +6 -2
- package/dist/types/models/pep/IPolicyEnforcementPointComponent.d.ts +25 -13
- package/dist/types/models/pep/IPolicyEnforcementProcessor.d.ts +6 -4
- package/dist/types/models/pip/IPolicyInformationPointComponent.d.ts +7 -20
- package/dist/types/models/pip/IPolicyInformationSource.d.ts +9 -7
- package/dist/types/models/pmp/IPolicyManagementPointComponent.d.ts +11 -4
- package/dist/types/models/pnp/IPolicyNegotiation.d.ts +15 -7
- package/dist/types/models/pnp/IPolicyNegotiationAdminPointComponent.d.ts +2 -2
- package/dist/types/models/pnp/IPolicyNegotiationPointComponent.d.ts +30 -57
- package/dist/types/models/pnp/IPolicyNegotiator.d.ts +11 -5
- package/dist/types/models/pnp/IPolicyRequester.d.ts +2 -1
- package/dist/types/models/pxp/IPolicyExecutionAction.d.ts +7 -7
- package/dist/types/models/pxp/IPolicyExecutionPointComponent.d.ts +5 -22
- package/dist/types/models/rightsManagementContexts.d.ts +10 -2
- package/dist/types/utils/odrlPolicyHelper.d.ts +55 -37
- package/docs/changelog.md +184 -0
- package/docs/reference/classes/OdrlPolicyHelper.md +111 -88
- package/docs/reference/index.md +14 -18
- package/docs/reference/interfaces/IPapGetAgreementRequest.md +17 -0
- package/docs/reference/interfaces/IPapGetAgreementResponse.md +11 -0
- package/docs/reference/interfaces/IPapGetOfferRequest.md +17 -0
- package/docs/reference/interfaces/IPapGetOfferResponse.md +11 -0
- package/docs/reference/interfaces/IPapGetSetRequest.md +17 -0
- package/docs/reference/interfaces/IPapGetSetResponse.md +11 -0
- package/docs/reference/interfaces/IPapQueryRequest.md +24 -0
- package/docs/reference/interfaces/IPapQueryResponse.md +9 -9
- package/docs/reference/interfaces/IPnapQueryRequest.md +1 -1
- package/docs/reference/interfaces/IPnapQueryResponse.md +9 -9
- package/docs/reference/interfaces/IPnpAgreementRequest.md +1 -1
- package/docs/reference/interfaces/IPnpAgreementVerificationRequest.md +1 -1
- package/docs/reference/interfaces/IPnpContractNegotiationResponse.md +1 -1
- package/docs/reference/interfaces/IPnpContractResponse.md +1 -1
- package/docs/reference/interfaces/IPnpEventRequest.md +1 -1
- package/docs/reference/interfaces/IPnpNegotiateRequest.md +1 -1
- package/docs/reference/interfaces/IPnpOfferRequest.md +1 -1
- package/docs/reference/interfaces/IPnpTerminateRequest.md +1 -1
- package/docs/reference/interfaces/IPolicyAdministrationPointComponent.md +95 -1
- package/docs/reference/interfaces/IPolicyArbiter.md +13 -25
- package/docs/reference/interfaces/IPolicyDecision.md +9 -1
- package/docs/reference/interfaces/IPolicyDecisionPointComponent.md +9 -53
- package/docs/reference/interfaces/IPolicyEnforcementPointComponent.md +88 -22
- package/docs/reference/interfaces/IPolicyEnforcementProcessor.md +14 -4
- package/docs/reference/interfaces/IPolicyExecutionAction.md +20 -16
- package/docs/reference/interfaces/IPolicyExecutionPointComponent.md +10 -72
- package/docs/reference/interfaces/IPolicyInformationPointComponent.md +8 -58
- package/docs/reference/interfaces/IPolicyInformationSource.md +15 -11
- package/docs/reference/interfaces/IPolicyManagementPointComponent.md +21 -11
- package/docs/reference/interfaces/IPolicyNegotiation.md +20 -56
- package/docs/reference/interfaces/IPolicyNegotiationAdminPointComponent.md +1 -1
- package/docs/reference/interfaces/IPolicyNegotiationPointComponent.md +91 -164
- package/docs/reference/interfaces/IPolicyNegotiator.md +11 -5
- package/docs/reference/interfaces/IPolicyObligationEnforcer.md +57 -0
- package/docs/reference/interfaces/IPolicyRequester.md +4 -0
- package/docs/reference/variables/PolicyArbiterFactory.md +5 -0
- package/docs/reference/variables/PolicyDecision.md +8 -2
- package/docs/reference/variables/PolicyEnforcementProcessorFactory.md +5 -0
- package/docs/reference/variables/PolicyExecutionActionFactory.md +5 -0
- package/docs/reference/variables/PolicyInformationSourceFactory.md +5 -0
- package/docs/reference/variables/PolicyNegotiatorFactory.md +5 -0
- package/docs/reference/variables/PolicyObligationEnforcerFactory.md +5 -0
- package/docs/reference/variables/PolicyRequesterFactory.md +5 -0
- package/docs/reference/variables/RightsManagementContexts.md +15 -3
- package/locales/en.json +8 -1
- package/package.json +2 -2
- package/dist/es/models/IPolicyLocator.js.map +0 -1
- package/dist/es/models/api/dap/IDapCreateRequest.js +0 -2
- package/dist/es/models/api/dap/IDapCreateRequest.js.map +0 -1
- package/dist/es/models/api/dap/IDapGetRequest.js +0 -2
- package/dist/es/models/api/dap/IDapGetRequest.js.map +0 -1
- package/dist/es/models/api/dap/IDapGetResponse.js +0 -2
- package/dist/es/models/api/dap/IDapGetResponse.js.map +0 -1
- package/dist/es/models/api/dap/IDapQueryRequest.js +0 -2
- package/dist/es/models/api/dap/IDapQueryRequest.js.map +0 -1
- package/dist/es/models/api/dap/IDapQueryResponse.js +0 -2
- package/dist/es/models/api/dap/IDapQueryResponse.js.map +0 -1
- package/dist/es/models/api/dap/IDapRemoveRequest.js +0 -2
- package/dist/es/models/api/dap/IDapRemoveRequest.js.map +0 -1
- package/dist/es/models/api/dap/IDapUpdateRequest.js +0 -2
- package/dist/es/models/api/dap/IDapUpdateRequest.js.map +0 -1
- package/dist/es/models/dap/IDataAccessHandler.js +0 -2
- package/dist/es/models/dap/IDataAccessHandler.js.map +0 -1
- package/dist/es/models/dap/IDataAccessPointComponent.js +0 -2
- package/dist/es/models/dap/IDataAccessPointComponent.js.map +0 -1
- package/dist/es/models/dap/IDataAccessPointRequestComponent.js +0 -2
- package/dist/es/models/dap/IDataAccessPointRequestComponent.js.map +0 -1
- package/dist/es/models/dap/jsonLd/IDataAccessQuery.js +0 -2
- package/dist/es/models/dap/jsonLd/IDataAccessQuery.js.map +0 -1
- package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js +0 -2
- package/dist/es/models/dap/jsonLd/IDataAccessQueryResponse.js.map +0 -1
- package/dist/es/models/dap/jsonLd/IDataAccessRequest.js +0 -2
- package/dist/es/models/dap/jsonLd/IDataAccessRequest.js.map +0 -1
- package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js +0 -2
- package/dist/es/models/dap/jsonLd/IDataAccessRequestWithObject.js.map +0 -1
- package/dist/es/models/pip/IPolicyInformation.js +0 -2
- package/dist/es/models/pip/IPolicyInformation.js.map +0 -1
- package/dist/es/models/pip/IPolicyInformationItems.js +0 -2
- package/dist/es/models/pip/IPolicyInformationItems.js.map +0 -1
- package/dist/es/utils/locatorHelper.js +0 -56
- package/dist/es/utils/locatorHelper.js.map +0 -1
- package/dist/types/models/IPolicyLocator.d.ts +0 -21
- package/dist/types/models/api/dap/IDapCreateRequest.d.ts +0 -27
- package/dist/types/models/api/dap/IDapGetRequest.d.ts +0 -26
- package/dist/types/models/api/dap/IDapGetResponse.d.ts +0 -17
- package/dist/types/models/api/dap/IDapQueryRequest.d.ts +0 -27
- package/dist/types/models/api/dap/IDapQueryResponse.d.ts +0 -17
- package/dist/types/models/api/dap/IDapRemoveRequest.d.ts +0 -26
- package/dist/types/models/api/dap/IDapUpdateRequest.d.ts +0 -31
- package/dist/types/models/dap/IDataAccessHandler.d.ts +0 -52
- package/dist/types/models/dap/IDataAccessPointComponent.d.ts +0 -71
- package/dist/types/models/dap/IDataAccessPointRequestComponent.d.ts +0 -55
- package/dist/types/models/dap/jsonLd/IDataAccessQuery.d.ts +0 -33
- package/dist/types/models/dap/jsonLd/IDataAccessQueryResponse.d.ts +0 -24
- package/dist/types/models/dap/jsonLd/IDataAccessRequest.d.ts +0 -23
- package/dist/types/models/dap/jsonLd/IDataAccessRequestWithObject.d.ts +0 -24
- package/dist/types/models/pip/IPolicyInformation.d.ts +0 -7
- package/dist/types/models/pip/IPolicyInformationItems.d.ts +0 -5
- package/dist/types/utils/locatorHelper.d.ts +0 -26
- package/docs/reference/classes/LocatorHelper.md +0 -91
- package/docs/reference/interfaces/IDapCreateRequest.md +0 -41
- package/docs/reference/interfaces/IDapGetRequest.md +0 -39
- package/docs/reference/interfaces/IDapGetResponse.md +0 -23
- package/docs/reference/interfaces/IDapQueryRequest.md +0 -41
- package/docs/reference/interfaces/IDapQueryResponse.md +0 -23
- package/docs/reference/interfaces/IDapRemoveRequest.md +0 -39
- package/docs/reference/interfaces/IDapUpdateRequest.md +0 -47
- package/docs/reference/interfaces/IDataAccessHandler.md +0 -169
- package/docs/reference/interfaces/IDataAccessPointComponent.md +0 -242
- package/docs/reference/interfaces/IDataAccessQuery.md +0 -51
- package/docs/reference/interfaces/IDataAccessQueryResponse.md +0 -35
- package/docs/reference/interfaces/IDataAccessRequest.md +0 -35
- package/docs/reference/interfaces/IDataAccessRequestPointComponent.md +0 -191
- package/docs/reference/interfaces/IDataAccessRequestWithObject.md +0 -35
- package/docs/reference/interfaces/IPolicyInformation.md +0 -7
- package/docs/reference/interfaces/IPolicyLocator.md +0 -39
- package/docs/reference/type-aliases/IPolicyInformationItems.md +0 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy arbiters registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyArbiterFactory = Factory.createFactory("policy-arbiter");
|
|
9
|
+
//# sourceMappingURL=policyArbiterFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyArbiterFactory.js","sourceRoot":"","sources":["../../../src/factories/policyArbiterFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAiB,gBAAgB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyArbiter } from \"../models/pdp/IPolicyArbiter.js\";\n\n/**\n * Factory for managing policy arbiters registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyArbiterFactory = Factory.createFactory<IPolicyArbiter>(\"policy-arbiter\");\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy enforcement processors registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyEnforcementProcessorFactory = Factory.createFactory("policy-enforcement-processor");
|
|
9
|
+
//# sourceMappingURL=policyEnforcementProcessorFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyEnforcementProcessorFactory.js","sourceRoot":"","sources":["../../../src/factories/policyEnforcementProcessorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC,aAAa,CACrE,8BAA8B,CAC9B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyEnforcementProcessor } from \"../models/pep/IPolicyEnforcementProcessor.js\";\n\n/**\n * Factory for managing policy enforcement processors registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyEnforcementProcessorFactory = Factory.createFactory<IPolicyEnforcementProcessor>(\n\t\"policy-enforcement-processor\"\n);\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy execution action registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyExecutionActionFactory = Factory.createFactory("policy-execution-action");
|
|
9
|
+
//# sourceMappingURL=policyExecutionActionFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyExecutionActionFactory.js","sourceRoot":"","sources":["../../../src/factories/policyExecutionActionFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,4BAA4B,GACxC,OAAO,CAAC,aAAa,CAAyB,yBAAyB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyExecutionAction } from \"../models/pxp/IPolicyExecutionAction.js\";\n\n/**\n * Factory for managing policy execution action registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyExecutionActionFactory =\n\tFactory.createFactory<IPolicyExecutionAction>(\"policy-execution-action\");\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy information sources registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyInformationSourceFactory = Factory.createFactory("policy-information-source");
|
|
9
|
+
//# sourceMappingURL=policyInformationSourceFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyInformationSourceFactory.js","sourceRoot":"","sources":["../../../src/factories/policyInformationSourceFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC,aAAa,CAClE,2BAA2B,CAC3B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyInformationSource } from \"../models/pip/IPolicyInformationSource.js\";\n\n/**\n * Factory for managing policy information sources registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyInformationSourceFactory = Factory.createFactory<IPolicyInformationSource>(\n\t\"policy-information-source\"\n);\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy negotiators registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyNegotiatorFactory = Factory.createFactory("policy-negotiator");
|
|
9
|
+
//# sourceMappingURL=policyNegotiatorFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyNegotiatorFactory.js","sourceRoot":"","sources":["../../../src/factories/policyNegotiatorFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GACnC,OAAO,CAAC,aAAa,CAAoB,mBAAmB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyNegotiator } from \"../models/pnp/IPolicyNegotiator.js\";\n\n/**\n * Factory for managing policy negotiators registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyNegotiatorFactory =\n\tFactory.createFactory<IPolicyNegotiator>(\"policy-negotiator\");\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy obligation enforcer registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyObligationEnforcerFactory = Factory.createFactory("policy-obligation-enforcer");
|
|
9
|
+
//# sourceMappingURL=policyObligationEnforcerFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyObligationEnforcerFactory.js","sourceRoot":"","sources":["../../../src/factories/policyObligationEnforcerFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,aAAa,CACnE,4BAA4B,CAC5B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyObligationEnforcer } from \"../models/pdp/IPolicyObligationEnforcer.js\";\n\n/**\n * Factory for managing policy obligation enforcer registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyObligationEnforcerFactory = Factory.createFactory<IPolicyObligationEnforcer>(\n\t\"policy-obligation-enforcer\"\n);\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright 2025 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { Factory } from "@twin.org/core";
|
|
4
|
+
/**
|
|
5
|
+
* Factory for managing policy requester registration and retrieval.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
+
export const PolicyRequesterFactory = Factory.createFactory("policy-requester");
|
|
9
|
+
//# sourceMappingURL=policyRequesterFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policyRequesterFactory.js","sourceRoot":"","sources":["../../../src/factories/policyRequesterFactory.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,OAAO,CAAC,aAAa,CAAmB,kBAAkB,CAAC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Factory } from \"@twin.org/core\";\nimport type { IPolicyRequester } from \"../models/pnp/IPolicyRequester.js\";\n\n/**\n * Factory for managing policy requester registration and retrieval.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyRequesterFactory = Factory.createFactory<IPolicyRequester>(\"policy-requester\");\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
3
|
+
export * from "./factories/policyArbiterFactory.js";
|
|
4
|
+
export * from "./factories/policyEnforcementProcessorFactory.js";
|
|
5
|
+
export * from "./factories/policyExecutionActionFactory.js";
|
|
6
|
+
export * from "./factories/policyInformationSourceFactory.js";
|
|
7
|
+
export * from "./factories/policyNegotiatorFactory.js";
|
|
8
|
+
export * from "./factories/policyObligationEnforcerFactory.js";
|
|
9
|
+
export * from "./factories/policyRequesterFactory.js";
|
|
10
10
|
export * from "./models/api/pap/IPapCreateRequest.js";
|
|
11
|
+
export * from "./models/api/pap/IPapGetAgreementRequest.js";
|
|
12
|
+
export * from "./models/api/pap/IPapGetAgreementResponse.js";
|
|
13
|
+
export * from "./models/api/pap/IPapGetOfferRequest.js";
|
|
14
|
+
export * from "./models/api/pap/IPapGetOfferResponse.js";
|
|
11
15
|
export * from "./models/api/pap/IPapGetRequest.js";
|
|
12
16
|
export * from "./models/api/pap/IPapGetResponse.js";
|
|
17
|
+
export * from "./models/api/pap/IPapGetSetRequest.js";
|
|
18
|
+
export * from "./models/api/pap/IPapGetSetResponse.js";
|
|
13
19
|
export * from "./models/api/pap/IPapQueryRequest.js";
|
|
14
20
|
export * from "./models/api/pap/IPapQueryResponse.js";
|
|
15
21
|
export * from "./models/api/pap/IPapRemoveRequest.js";
|
|
@@ -29,24 +35,15 @@ export * from "./models/api/pnp/IPnpNegotiateRequest.js";
|
|
|
29
35
|
export * from "./models/api/pnp/IPnpNegotiationGetRequest.js";
|
|
30
36
|
export * from "./models/api/pnp/IPnpOfferRequest.js";
|
|
31
37
|
export * from "./models/api/pnp/IPnpTerminateRequest.js";
|
|
32
|
-
export * from "./models/dap/IDataAccessHandler.js";
|
|
33
|
-
export * from "./models/dap/IDataAccessPointComponent.js";
|
|
34
|
-
export * from "./models/dap/IDataAccessPointRequestComponent.js";
|
|
35
|
-
export * from "./models/dap/jsonLd/IDataAccessQuery.js";
|
|
36
|
-
export * from "./models/dap/jsonLd/IDataAccessQueryResponse.js";
|
|
37
|
-
export * from "./models/dap/jsonLd/IDataAccessRequest.js";
|
|
38
|
-
export * from "./models/dap/jsonLd/IDataAccessRequestWithObject.js";
|
|
39
|
-
export * from "./models/IPolicyLocator.js";
|
|
40
38
|
export * from "./models/pap/IPolicyAdministrationPointComponent.js";
|
|
41
39
|
export * from "./models/pdp/IPolicyArbiter.js";
|
|
42
40
|
export * from "./models/pdp/IPolicyDecision.js";
|
|
43
41
|
export * from "./models/pdp/IPolicyDecisionPointComponent.js";
|
|
42
|
+
export * from "./models/pdp/IPolicyObligationEnforcer.js";
|
|
44
43
|
export * from "./models/pdp/policyDecision.js";
|
|
45
44
|
export * from "./models/pdp/policyDecisionStage.js";
|
|
46
45
|
export * from "./models/pep/IPolicyEnforcementPointComponent.js";
|
|
47
46
|
export * from "./models/pep/IPolicyEnforcementProcessor.js";
|
|
48
|
-
export * from "./models/pip/IPolicyInformation.js";
|
|
49
|
-
export * from "./models/pip/IPolicyInformationItems.js";
|
|
50
47
|
export * from "./models/pip/IPolicyInformationPointComponent.js";
|
|
51
48
|
export * from "./models/pip/IPolicyInformationSource.js";
|
|
52
49
|
export * from "./models/pip/policyInformationAccessMode.js";
|
|
@@ -61,6 +58,5 @@ export * from "./models/pxp/IPolicyExecutionPointComponent.js";
|
|
|
61
58
|
export * from "./models/rightsManagementContexts.js";
|
|
62
59
|
export * from "./models/rightsManagementNamespaces.js";
|
|
63
60
|
export * from "./models/rightsManagementTypes.js";
|
|
64
|
-
export * from "./utils/locatorHelper.js";
|
|
65
61
|
export * from "./utils/odrlPolicyHelper.js";
|
|
66
62
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qDAAqD,CAAC;AACpE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,uDAAuD,CAAC;AACtE,cAAc,kDAAkD,CAAC;AACjE,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./factories/policyArbiterFactory.js\";\nexport * from \"./factories/policyEnforcementProcessorFactory.js\";\nexport * from \"./factories/policyExecutionActionFactory.js\";\nexport * from \"./factories/policyInformationSourceFactory.js\";\nexport * from \"./factories/policyNegotiatorFactory.js\";\nexport * from \"./factories/policyObligationEnforcerFactory.js\";\nexport * from \"./factories/policyRequesterFactory.js\";\nexport * from \"./models/api/pap/IPapCreateRequest.js\";\nexport * from \"./models/api/pap/IPapGetAgreementRequest.js\";\nexport * from \"./models/api/pap/IPapGetAgreementResponse.js\";\nexport * from \"./models/api/pap/IPapGetOfferRequest.js\";\nexport * from \"./models/api/pap/IPapGetOfferResponse.js\";\nexport * from \"./models/api/pap/IPapGetRequest.js\";\nexport * from \"./models/api/pap/IPapGetResponse.js\";\nexport * from \"./models/api/pap/IPapGetSetRequest.js\";\nexport * from \"./models/api/pap/IPapGetSetResponse.js\";\nexport * from \"./models/api/pap/IPapQueryRequest.js\";\nexport * from \"./models/api/pap/IPapQueryResponse.js\";\nexport * from \"./models/api/pap/IPapRemoveRequest.js\";\nexport * from \"./models/api/pap/IPapUpdateRequest.js\";\nexport * from \"./models/api/pnap/IPnapGetRequest.js\";\nexport * from \"./models/api/pnap/IPnapGetResponse.js\";\nexport * from \"./models/api/pnap/IPnapQueryRequest.js\";\nexport * from \"./models/api/pnap/IPnapQueryResponse.js\";\nexport * from \"./models/api/pnap/IPnapRemoveRequest.js\";\nexport * from \"./models/api/pnap/IPnapSetRequest.js\";\nexport * from \"./models/api/pnp/IPnpAgreementRequest.js\";\nexport * from \"./models/api/pnp/IPnpAgreementVerificationRequest.js\";\nexport * from \"./models/api/pnp/IPnpContractNegotiationResponse.js\";\nexport * from \"./models/api/pnp/IPnpContractResponse.js\";\nexport * from \"./models/api/pnp/IPnpEventRequest.js\";\nexport * from \"./models/api/pnp/IPnpNegotiateRequest.js\";\nexport * from \"./models/api/pnp/IPnpNegotiationGetRequest.js\";\nexport * from \"./models/api/pnp/IPnpOfferRequest.js\";\nexport * from \"./models/api/pnp/IPnpTerminateRequest.js\";\nexport * from \"./models/pap/IPolicyAdministrationPointComponent.js\";\nexport * from \"./models/pdp/IPolicyArbiter.js\";\nexport * from \"./models/pdp/IPolicyDecision.js\";\nexport * from \"./models/pdp/IPolicyDecisionPointComponent.js\";\nexport * from \"./models/pdp/IPolicyObligationEnforcer.js\";\nexport * from \"./models/pdp/policyDecision.js\";\nexport * from \"./models/pdp/policyDecisionStage.js\";\nexport * from \"./models/pep/IPolicyEnforcementPointComponent.js\";\nexport * from \"./models/pep/IPolicyEnforcementProcessor.js\";\nexport * from \"./models/pip/IPolicyInformationPointComponent.js\";\nexport * from \"./models/pip/IPolicyInformationSource.js\";\nexport * from \"./models/pip/policyInformationAccessMode.js\";\nexport * from \"./models/pmp/IPolicyManagementPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiation.js\";\nexport * from \"./models/pnp/IPolicyNegotiationAdminPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiationPointComponent.js\";\nexport * from \"./models/pnp/IPolicyNegotiator.js\";\nexport * from \"./models/pnp/IPolicyRequester.js\";\nexport * from \"./models/pxp/IPolicyExecutionAction.js\";\nexport * from \"./models/pxp/IPolicyExecutionPointComponent.js\";\nexport * from \"./models/rightsManagementContexts.js\";\nexport * from \"./models/rightsManagementNamespaces.js\";\nexport * from \"./models/rightsManagementTypes.js\";\nexport * from \"./utils/odrlPolicyHelper.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetAgreementRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetAgreementRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for getting an agreement.\n */\nexport interface IPapGetAgreementRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the agreement to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetAgreementResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetAgreementResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for getting an agreement.\n */\nexport interface IPapGetAgreementResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IOdrlAgreement;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetOfferRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetOfferRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for getting an offer.\n */\nexport interface IPapGetOfferRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the offer to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetOfferResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetOfferResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for getting an offer.\n */\nexport interface IPapGetOfferResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IOdrlOffer;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetSetRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetSetRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for getting a set.\n */\nexport interface IPapGetSetRequest {\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The ID of the set to get.\n\t\t */\n\t\tid: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPapGetSetResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapGetSetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlSet } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for getting a set.\n */\nexport interface IPapGetSetResponse {\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IOdrlSet;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for querying policies.\n */\nexport interface IPapQueryRequest {\n\t/**\n\t * The query parameters of the request.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The condition for the query.\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\n\t\t/**\n\t\t * The cursor to get next chunk of data, returned in previous response.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IPapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The request structure for querying policies.\n */\nexport interface IPapQueryRequest {\n\t/**\n\t * The query parameters of the request.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The assigner to filter by.\n\t\t */\n\t\tassigner?: string;\n\n\t\t/**\n\t\t * The assignee to filter by.\n\t\t */\n\t\tassignee?: string;\n\n\t\t/**\n\t\t * The action to filter by.\n\t\t */\n\t\taction?: string;\n\n\t\t/**\n\t\t * The target to filter by.\n\t\t */\n\t\ttarget?: string;\n\n\t\t/**\n\t\t * The condition for the query.\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\n\t\t/**\n\t\t * The cursor to get next chunk of data, returned in previous response.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * The response structure for querying policies.\n */\nexport interface IPapQueryResponse {\n\t/**\n\t * The
|
|
1
|
+
{"version":3,"file":"IPapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pap/IPapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for querying policies.\n */\nexport interface IPapQueryResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IOdrlPolicy[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnapQueryRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\n\n/**\n * The request structure for querying manual policy negotiations.\n */\nexport interface IPnapQueryRequest {\n\t/**\n\t * The query parameters of the request.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The state of the policy negotiations.\n\t\t */\n\t\tstate?: DataspaceProtocolContractNegotiationStateType;\n\n\t\t/**\n\t\t * The cursor for pagination.\n\t\t */\n\t\tcursor?: string;\n\t};\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPolicyNegotiation } from \"../../pnp/IPolicyNegotiation.js\";\n\n/**\n * The response structure for querying manual policy negotiations.\n */\nexport interface IPnapQueryResponse {\n\t/**\n\t * The
|
|
1
|
+
{"version":3,"file":"IPnapQueryResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnap/IPnapQueryResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes } from \"@twin.org/web\";\nimport type { IPolicyNegotiation } from \"../../pnp/IPolicyNegotiation.js\";\n\n/**\n * The response structure for querying manual policy negotiations.\n */\nexport interface IPnapQueryResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The body of the response.\n\t */\n\tbody: IPolicyNegotiation[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpAgreementRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpAgreementRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractAgreementMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation agreement.\n */\nexport interface IPnpAgreementRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractAgreementMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpAgreementVerificationRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementVerificationRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpAgreementVerificationRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpAgreementVerificationRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractAgreementVerificationMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation agreement verification.\n */\nexport interface IPnpAgreementVerificationRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the contract negotiation to be retrieved.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractAgreementVerificationMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpContractNegotiationResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractNegotiationResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {\n\
|
|
1
|
+
{"version":3,"file":"IPnpContractNegotiationResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractNegotiationResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {\n\tIDataspaceProtocolContractNegotiation,\n\tIDataspaceProtocolContractNegotiationError\n} from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, HttpStatusCode, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for negotiating a policy.\n */\nexport interface IPnpContractNegotiationResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The state of the policy or an error.\n\t */\n\tbody: IDataspaceProtocolContractNegotiation | IDataspaceProtocolContractNegotiationError;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpContractResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpContractResponse.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpContractResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractNegotiationError } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, HttpStatusCode, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The response structure for negotiating a policy.\n */\nexport interface IPnpContractResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t};\n\n\t/**\n\t * Response status code.\n\t */\n\tstatusCode?: HttpStatusCode;\n\n\t/**\n\t * The error if there was one.\n\t */\n\tbody?: IDataspaceProtocolContractNegotiationError;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpEventRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpEventRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpEventRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpEventRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractNegotiationEventMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation event.\n */\nexport interface IPnpEventRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractNegotiationEventMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpNegotiateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpNegotiateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpNegotiateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpNegotiateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractRequestMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation.\n */\nexport interface IPnpNegotiateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams?: {\n\t\t/**\n\t\t * The identifier of the contract negotiation to be retrieved, can be undefined.\n\t\t */\n\t\tid?: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractRequestMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpOfferRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpOfferRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpOfferRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpOfferRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractOfferMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for sending a contract negotiation offer.\n */\nexport interface IPnpOfferRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams?: {\n\t\t/**\n\t\t * The identifier of the consumer being offered, this can be undefined.\n\t\t */\n\t\tid?: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractOfferMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPnpTerminateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpTerminateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPnpTerminateRequest.js","sourceRoot":"","sources":["../../../../../src/models/api/pnp/IPnpTerminateRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IDataspaceProtocolContractNegotiationTerminationMessage } from \"@twin.org/standards-dataspace-protocol\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * The request structure for requesting a contract negotiation termination.\n */\nexport interface IPnpTerminateRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders: {\n\t\t[HeaderTypes.Accept]?: typeof MimeTypes.JsonLd | typeof MimeTypes.Json;\n\t\t[HeaderTypes.Authorization]?: string;\n\t};\n\n\t/**\n\t * The path parameters of the request.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The identifier of the negotiation to target.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The body parameters of the request.\n\t */\n\tbody: IDataspaceProtocolContractNegotiationTerminationMessage;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyAdministrationPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pap/IPolicyAdministrationPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyAdministrationPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pap/IPolicyAdministrationPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { EntityCondition } from \"@twin.org/entity\";\nimport type {\n\tIOdrlAgreement,\n\tIOdrlOffer,\n\tIOdrlPolicy,\n\tIOdrlSet\n} from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Interface describing a Policy Administration Point (PAP) component that manages ODRL policies.\n */\nexport interface IPolicyAdministrationPointComponent extends IComponent {\n\t/**\n\t * Create a new policy with auto-generated UID.\n\t * @param policy The policy to create (uid will be auto-generated).\n\t * @returns The UID of the created policy.\n\t */\n\tcreate(policy: Omit<IOdrlPolicy, \"uid\"> & { uid?: string }): Promise<string>;\n\n\t/**\n\t * Update an existing policy.\n\t * @param policy The policy to update (must include uid).\n\t * @returns Nothing.\n\t */\n\tupdate(policy: IOdrlPolicy): Promise<void>;\n\n\t/**\n\t * Get a policy.\n\t * @param policyId The id of the policy to get.\n\t * @returns The policy.\n\t */\n\tget(policyId: string): Promise<IOdrlPolicy>;\n\n\t/**\n\t * Get an agreement.\n\t * @param agreementId The id of the agreement to get.\n\t * @returns The agreement.\n\t */\n\tgetAgreement(agreementId: string): Promise<IOdrlAgreement>;\n\n\t/**\n\t * Get a set.\n\t * @param setId The id of the set to get.\n\t * @returns The set.\n\t */\n\tgetSet(setId: string): Promise<IOdrlSet>;\n\n\t/**\n\t * Get an offer.\n\t * @param offerId The id of the offer to get.\n\t * @returns The offer.\n\t */\n\tgetOffer(offerId: string): Promise<IOdrlOffer>;\n\n\t/**\n\t * Remove a policy.\n\t * @param policyId The id of the policy to remove.\n\t * @returns Nothing.\n\t */\n\tremove(policyId: string): Promise<void>;\n\n\t/**\n\t * Query the policies using the specified conditions.\n\t * @param options Optional options to filter by assigner or assignee.\n\t * @param options.assigner The assigner to filter by.\n\t * @param options.assignee The assignee to filter by.\n\t * @param options.target The target to filter by.\n\t * @param options.action The action to filter by.\n\t * @param conditions The conditions to use for the query.\n\t * @param cursor The cursor to use for pagination.\n\t * @param limit The number of results to return per page.\n\t * @returns Cursor for next page of results and the policies matching the query.\n\t */\n\tquery(\n\t\toptions?: {\n\t\t\tassigner?: string;\n\t\t\tassignee?: string;\n\t\t\ttarget?: string;\n\t\t\taction?: string;\n\t\t},\n\t\tconditions?: EntityCondition<IOdrlPolicy>,\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\t/**\n\t\t * The cursor for the next page of results.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * The policies that match the query.\n\t\t */\n\t\tpolicies: IOdrlPolicy[];\n\t}>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyArbiter.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyArbiter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyArbiter.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyArbiter.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActionType, IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.js\";\n\n/**\n * Interface describing a Policy Arbiter.\n */\nexport interface IPolicyArbiter extends IComponent {\n\t/**\n\t * Makes decisions regarding policy access to data.\n\t * @param agreement The agreement to evaluate.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The decisions about access to the data.\n\t */\n\tdecide<D = unknown>(\n\t\tagreement: IOdrlAgreement,\n\t\tinformation?: { [id: string]: IJsonLdNodeObject },\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<IPolicyDecision[]>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecision.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { PolicyDecision } from \"./policyDecision.js\";\n\n/**\n * The information regarding a policy decision.\n */\nexport interface IPolicyDecision {\n\t/**\n\t * The target object for the decision.\n\t */\n\ttarget: string;\n\n\t/**\n\t * The type of the proof.\n\t */\n\tdecision: PolicyDecision;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IPolicyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecision.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { PolicyDecision } from \"./policyDecision.js\";\n\n/**\n * The information regarding a policy decision.\n */\nexport interface IPolicyDecision {\n\t/**\n\t * The target object for the decision, using JSON-path syntax.\n\t */\n\ttarget: string;\n\n\t/**\n\t * The type of the proof.\n\t */\n\tdecision: PolicyDecision;\n\n\t/**\n\t * The value to replace with, if decision is Replace.\n\t */\n\treplaceValue?: unknown;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyDecisionPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecisionPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyDecisionPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyDecisionPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IOdrlAgreement, ActionType } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyDecision } from \"./IPolicyDecision.js\";\n\n/**\n * Interface describing a Policy Decision Point (PDP) contract.\n * Decides if a party can be granted access to a resource, will retrieve policies\n * from the Policy Management Point (PMP) and any additional information from the\n * Policy Information Point (PIP). When a decision is made, the Policy Execution\n * Point (PEP) will execute any registered actions.\n */\nexport interface IPolicyDecisionPointComponent extends IComponent {\n\t/**\n\t * Evaluate requests from a Policy Enforcement Point (PEP).\n\t * Uses the Policy Management Point (PMP) to retrieve the policies and the\n\t * Policy Information Point (PIP) to retrieve additional information.\n\t * Executes any actions on the Policy Execution Point (PXP) before and after decision is made.\n\t * @param agreement The agreement to evaluate.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the PDP will evaluate all actions in the agreement.\n\t * @returns Returns the policy decisions which apply to the data so that the PEP\n\t * can manipulate the data accordingly.\n\t */\n\tevaluate<D = unknown>(\n\t\tagreement: IOdrlAgreement,\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<IPolicyDecision[]>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPolicyObligationEnforcer.js","sourceRoot":"","sources":["../../../../src/models/pdp/IPolicyObligationEnforcer.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActionType, IOdrlDuty, IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Interface describing a Policy Obligation Enforcer.\n */\nexport interface IPolicyObligationEnforcer extends IComponent {\n\t/**\n\t * Enforces obligations regarding policy access to data.\n\t * @param policy The policy to evaluate.\n\t * @param duty The duty to enforce.\n\t * @param information Information provided by the requester to determine if a policy can be created.\n\t * @param data The data to make a decision on.\n\t * @param action Optional action to make a decision on, if not provided, the enforcer will evaluate all actions in the duty.\n\t * @returns Whether the obligations were successfully enforced.\n\t */\n\tenforce<D = unknown>(\n\t\tpolicy: IOdrlPolicy,\n\t\tduty: IOdrlDuty,\n\t\tinformation?: { [id: string]: IJsonLdNodeObject },\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<boolean>;\n}\n"]}
|
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const PolicyDecision = {
|
|
8
8
|
/**
|
|
9
|
-
* Granted.
|
|
9
|
+
* Granted - the property in the original data can be accessed.
|
|
10
10
|
*/
|
|
11
11
|
Granted: "Granted",
|
|
12
12
|
/**
|
|
13
|
-
* Denied.
|
|
13
|
+
* Denied - the property in the original data can not be accessed.
|
|
14
14
|
*/
|
|
15
|
-
Denied: "Denied"
|
|
15
|
+
Denied: "Denied",
|
|
16
|
+
/**
|
|
17
|
+
* Replace - the property should be replaced with a new value.
|
|
18
|
+
*/
|
|
19
|
+
Replace: "Replace"
|
|
16
20
|
};
|
|
17
21
|
//# sourceMappingURL=policyDecision.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/policyDecision.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"policyDecision.js","sourceRoot":"","sources":["../../../../src/models/pdp/policyDecision.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAEhB;;OAEG;IACH,OAAO,EAAE,SAAS;CACT,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The type of decision from a Policy Decision Point (PDP).\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const PolicyDecision = {\n\t/**\n\t * Granted - the property in the original data can be accessed.\n\t */\n\tGranted: \"Granted\",\n\n\t/**\n\t * Denied - the property in the original data can not be accessed.\n\t */\n\tDenied: \"Denied\",\n\n\t/**\n\t * Replace - the property should be replaced with a new value.\n\t */\n\tReplace: \"Replace\"\n} as const;\n\n/**\n * The type of decision from a Policy Decision Point (PDP).\n */\nexport type PolicyDecision = (typeof PolicyDecision)[keyof typeof PolicyDecision];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyEnforcementPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pep/IPolicyEnforcementPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyEnforcementPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pep/IPolicyEnforcementPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { ActionType, IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Interface describing a Policy Enforcement Point (PEP) contract.\n * Intercepts data and uses the Policy Decision Point (PDP) to make decisions on\n * access to a resource, based on the decision a manipulated data object can\n * be returned.\n */\nexport interface IPolicyEnforcementPointComponent extends IComponent {\n\t/**\n\t * Process the data using Policy Decision Point (PDP) and return the manipulated data.\n\t * @param agreement The agreement to enforce.\n\t * @param data The data to process.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The manipulated data with any policies applied.\n\t */\n\tinterceptWithPolicy<D = unknown, R = D>(\n\t\tagreement: IOdrlAgreement,\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<R>;\n\n\t/**\n\t * Process the data using Policy Decision Point (PDP) and return the manipulated data.\n\t * @param uid The uid of the agreement to look up.\n\t * @param data The data to process.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The manipulated data with any policies applied.\n\t */\n\tinterceptWithId<D = unknown, R = D>(\n\t\tuid: string,\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<R>;\n\n\t/**\n\t * Process the data using Policy Decision Point (PDP) and return the manipulated data.\n\t * @param locator The match criteria to look up agreements.\n\t * @param locator.assigner The assigner attribute to match.\n\t * @param locator.assignee The assignee attribute to match.\n\t * @param locator.target The target attribute to match.\n\t * @param locator.action The action attribute to match.\n\t * @param data The data to process.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The manipulated data with any policies applied.\n\t */\n\tinterceptWithLocator<D = unknown, R = D>(\n\t\tlocator: {\n\t\t\tassigner?: string;\n\t\t\tassignee?: string;\n\t\t\ttarget?: string;\n\t\t\taction?: string;\n\t\t},\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<R>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyEnforcementProcessor.js","sourceRoot":"","sources":["../../../../src/models/pep/IPolicyEnforcementProcessor.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyEnforcementProcessor.js","sourceRoot":"","sources":["../../../../src/models/pep/IPolicyEnforcementProcessor.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { ActionType, IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { IPolicyDecision } from \"../pdp/IPolicyDecision.js\";\n\n/**\n * Interface for policy enforcement processors.\n */\nexport interface IPolicyEnforcementProcessor extends IComponent {\n\t/**\n\t * Process the response from the policy decision point.\n\t * @param agreement The agreement to process.\n\t * @param decisions The decisions made by the policy decision point.\n\t * @param data The data to process.\n\t * @param action Optional action to make a decision on, if not provided, the arbiter will evaluate all actions in the agreement.\n\t * @returns The data after processing.\n\t */\n\tprocess<D = unknown, R = D>(\n\t\tagreement: IOdrlAgreement,\n\t\tdecisions: IPolicyDecision[],\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<R>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyInformationPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pip/IPolicyInformationPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyInformationPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pip/IPolicyInformationPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActionType, IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { PolicyInformationAccessMode } from \"./policyInformationAccessMode.js\";\n\n/**\n * Interface describing a Policy Information Point (PEP) contract.\n * Provides additional information to the Policy Decision Point (PDP) when\n * it is making decisions.\n */\nexport interface IPolicyInformationPointComponent extends IComponent {\n\t/**\n\t * Retrieve additional information which is relevant in the PDP decision making.\n\t * @param policy The policy to retrieve the information for if available.\n\t * @param accessMode The access mode to use for the retrieval.\n\t * @param data The data to get any additional information for.\n\t * @param action Optional action to make a decision on, if not provided, the PIP will evaluate all actions in the policy.\n\t * @returns Returns additional information based on the data and identities.\n\t */\n\tretrieve<D = unknown>(\n\t\tpolicy: IOdrlPolicy | undefined,\n\t\taccessMode: PolicyInformationAccessMode,\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<{ [id: string]: IJsonLdNodeObject }>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyInformationSource.js","sourceRoot":"","sources":["../../../../src/models/pip/IPolicyInformationSource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyInformationSource.js","sourceRoot":"","sources":["../../../../src/models/pip/IPolicyInformationSource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ActionType, IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\nimport type { PolicyInformationAccessMode } from \"./policyInformationAccessMode.js\";\n\n/**\n * Interface for policy information sources.\n */\nexport interface IPolicyInformationSource extends IComponent {\n\t/**\n\t * Retrieve information from the sources.\n\t * @param policy The policy to retrieve information for if available.\n\t * @param accessMode The access mode to use for the retrieval.\n\t * @param data The data to process.\n\t * @param action Optional action to make a decision on, if not provided, the PIP will evaluate all actions in the policy.\n\t * @returns The objects containing relevant information or undefined if nothing relevant is found.\n\t */\n\tretrieve<D = unknown>(\n\t\tpolicy: IOdrlPolicy | undefined,\n\t\taccessMode: PolicyInformationAccessMode,\n\t\tdata?: D,\n\t\taction?: ActionType | string\n\t): Promise<{ [id: string]: IJsonLdNodeObject } | undefined>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyManagementPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pmp/IPolicyManagementPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\
|
|
1
|
+
{"version":3,"file":"IPolicyManagementPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pmp/IPolicyManagementPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IOdrlPolicy } from \"@twin.org/standards-w3c-odrl\";\n\n/**\n * Interface describing a Policy Management Point (PMP) contract.\n * Provide the policies to the Policy Decision Point (PDP) based on the data and identities.\n */\nexport interface IPolicyManagementPointComponent extends IComponent {\n\t/**\n\t * Get the policies from a PAP based on the data and identities.\n\t * @param options Optional options to filter by assigner or assignee.\n\t * @param options.assigner The assigner to filter by.\n\t * @param options.assignee The assignee to filter by.\n\t * @param options.target The target to filter by.\n\t * @param options.action The action to filter by.\n\t * @param cursor An optional cursor to continue a previous query.\n\t * @returns Returns the policies which apply to the data and identities so that the PDP can make a decision.\n\t */\n\tretrieve(\n\t\toptions?: {\n\t\t\tassigner?: string;\n\t\t\tassignee?: string;\n\t\t\ttarget?: string;\n\t\t\taction?: string;\n\t\t},\n\t\tcursor?: string\n\t): Promise<{\n\t\tpolicies: IOdrlPolicy[];\n\t\tcursor?: string;\n\t}>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyNegotiation.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyNegotiation.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IError } from \"@twin.org/core\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\nimport type { IOdrlAgreement, IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { ITrustVerificationInfo } from \"@twin.org/trust-models\";\n\n/**\n * Interface describing a rights management policy negotiation.\n */\nexport interface IPolicyNegotiation {\n\t/**\n\t * The primary id used by the provider.\n\t */\n\tid: string;\n\n\t/**\n\t * This is used by the other side of the negotiation.\n\t */\n\tcorrelationId: string;\n\n\t/**\n\t * The unique identifier for the policy.\n\t */\n\tpolicyId?: string;\n\n\t/**\n\t * The date and time when the negotiation was created.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The expiration time for the policy negotiation if it's a manual process.\n\t */\n\texpires?: number;\n\n\t/**\n\t * The status of the negotiation.\n\t */\n\tstate: DataspaceProtocolContractNegotiationStateType;\n\n\t/**\n\t * The callback address to send updates to the requester.\n\t */\n\tcallbackAddress?: string;\n\n\t/**\n\t * Organization identity to be used when sending trust payloads.\n\t */\n\torganizationIdentity: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer?: IOdrlOffer;\n\n\t/**\n\t * The agreement being established if the negotiation was successful.\n\t */\n\tagreement?: IOdrlAgreement;\n\n\t/**\n\t * The information from the trust provider.\n\t */\n\ttrustVerificationInfo?: ITrustVerificationInfo;\n\n\t/**\n\t * A reason code for when the negotiation errors.\n\t */\n\tcode?: string;\n\n\t/**\n\t * A more detailed reason for the negotiation error.\n\t */\n\treason?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n\n\t/**\n\t * A more detailed reason for the negotiation error.\n\t */\n\tdescription?: {\n\t\t\"@value\": string;\n\t\t\"@language\"?: string;\n\t}[];\n\n\t/**\n\t * Any additional error details that don't fit in the reason or description fields.\n\t */\n\terrorDetails?: IError;\n\n\t/**\n\t * The id of the handler, on provider side this is the negotiator, on consumer side this is the requester.\n\t */\n\thandlerId?: string;\n\n\t/**\n\t * Is manual intervention required to complete the negotiation?\n\t */\n\tinterventionRequired?: boolean;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPolicyNegotiationAdminPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiationAdminPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type {
|
|
1
|
+
{"version":3,"file":"IPolicyNegotiationAdminPointComponent.js","sourceRoot":"","sources":["../../../../src/models/pnp/IPolicyNegotiationAdminPointComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"@twin.org/standards-dataspace-protocol\";\nimport type { IPolicyNegotiation } from \"./IPolicyNegotiation.js\";\n\n/**\n * Interface describing a Policy Negotiation Admin Point (PNAP) contract.\n * Components performs administration tasks on the policy negotiations.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#negotiation-protocol\n */\nexport interface IPolicyNegotiationAdminPointComponent extends IComponent {\n\t/**\n\t * Retrieves a policy negotiation.\n\t * @param id The ID of the policy to retrieve the negotiation for.\n\t * @returns The policy negotiation.\n\t */\n\tget(id: string): Promise<IPolicyNegotiation>;\n\n\t/**\n\t * Sets a policy negotiation.\n\t * @param negotiation The updated policy negotiation.\n\t * @returns Nothing.\n\t */\n\tset(negotiation: IPolicyNegotiation): Promise<void>;\n\n\t/**\n\t * Cancels an ongoing negotiation for a resource.\n\t * @param policyId The ID of the policy to cancel.\n\t * @returns Nothing.\n\t */\n\tremove(policyId: string): Promise<void>;\n\n\t/**\n\t * Get a list of the negotiations.\n\t * @param status The state of the negotiations to retrieve.\n\t * @param cursor The cursor to use for pagination.\n\t * @returns A list of negotiations and cursor if there are more entries.\n\t */\n\tquery(\n\t\tstatus?: DataspaceProtocolContractNegotiationStateType,\n\t\tcursor?: string\n\t): Promise<{ items: IPolicyNegotiation[]; cursor?: string }>;\n}\n"]}
|