@sovity.de/edc-client 9.0.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,38 +23,6 @@ export declare function AssetPageFromJSONTyped(json: any, ignoreDiscriminator: b
23
23
 
24
24
  export declare function AssetPageToJSON(value?: AssetPage | null): any;
25
25
 
26
- /**
27
- * Type-Safe OpenAPI generator friendly Constraint DTO that supports an opinionated subset of the original EDC Constraint Entity.
28
- * @export
29
- * @interface AtomicConstraintDto
30
- */
31
- export declare interface AtomicConstraintDto {
32
- /**
33
- * Left part of the constraint.
34
- * @type {string}
35
- * @memberof AtomicConstraintDto
36
- */
37
- leftExpression: string;
38
- /**
39
- *
40
- * @type {OperatorDto}
41
- * @memberof AtomicConstraintDto
42
- */
43
- operator: OperatorDto;
44
- /**
45
- * Right part of the constraint.
46
- * @type {string}
47
- * @memberof AtomicConstraintDto
48
- */
49
- rightExpression: string;
50
- }
51
-
52
- export declare function AtomicConstraintDtoFromJSON(json: any): AtomicConstraintDto;
53
-
54
- export declare function AtomicConstraintDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AtomicConstraintDto;
55
-
56
- export declare function AtomicConstraintDtoToJSON(value?: AtomicConstraintDto | null): any;
57
-
58
26
  /**
59
27
  * sovity EDC API Wrapper
60
28
  * sovity\'s EDC API Wrapper contains a selection of APIs for multiple consumers, e.g. our EDC UI API, our generic Use Case API, our Commercial Edition APIs, etc. We bundled these APIs, so we can have an easier time generating our API Client Libraries.
@@ -753,17 +721,17 @@ export declare function ContractTerminatedByToJSON(value?: ContractTerminatedBy
753
721
  */
754
722
  export declare interface ContractTerminationRequest {
755
723
  /**
756
- * A short reason why this contract was terminated
724
+ * A user explanation to detail why the contract was terminated.
757
725
  * @type {string}
758
726
  * @memberof ContractTerminationRequest
759
727
  */
760
- reason: string;
728
+ detail: string;
761
729
  /**
762
- * A user explanation to detail why the contract was terminated.
730
+ * A short reason why this contract was terminated
763
731
  * @type {string}
764
732
  * @memberof ContractTerminationRequest
765
733
  */
766
- detail?: string;
734
+ reason: string;
767
735
  }
768
736
 
769
737
  export declare function ContractTerminationRequestFromJSON(json: any): ContractTerminationRequest;
@@ -801,8 +769,8 @@ export declare interface CreatePolicyDefinitionRequest {
801
769
  policyDefinitionCreateRequest?: PolicyDefinitionCreateRequest;
802
770
  }
803
771
 
804
- export declare interface CreatePolicyDefinitionUseCaseRequest {
805
- policyCreateRequest?: PolicyCreateRequest;
772
+ export declare interface CreatePolicyDefinitionV2Request {
773
+ policyDefinitionCreateDto?: PolicyDefinitionCreateDto;
806
774
  }
807
775
 
808
776
  /**
@@ -1134,61 +1102,6 @@ export declare interface ErrorContext {
1134
1102
 
1135
1103
  export declare function exists(json: any, key: string): boolean;
1136
1104
 
1137
- /**
1138
- * Represents a single atomic constraint or a multiplicity constraint. The atomicConstraint will be evaluated if the constraintType is ATOMIC_CONSTRAINT.
1139
- * @export
1140
- * @interface Expression
1141
- */
1142
- export declare interface Expression {
1143
- /**
1144
- *
1145
- * @type {ExpressionType}
1146
- * @memberof Expression
1147
- */
1148
- expressionType?: ExpressionType;
1149
- /**
1150
- * List of policy elements that are evaluated according the expressionType.
1151
- * @type {Array<Expression>}
1152
- * @memberof Expression
1153
- */
1154
- expressions?: Array<Expression>;
1155
- /**
1156
- *
1157
- * @type {AtomicConstraintDto}
1158
- * @memberof Expression
1159
- */
1160
- atomicConstraint?: AtomicConstraintDto;
1161
- }
1162
-
1163
- export declare function ExpressionFromJSON(json: any): Expression;
1164
-
1165
- export declare function ExpressionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Expression;
1166
-
1167
- export declare function ExpressionToJSON(value?: Expression | null): any;
1168
-
1169
- /**
1170
- * Expression types:
1171
- * * `ATOMIC_CONSTRAINT` - A single constraint for the policy
1172
- * * `AND` - Several constraints, all of which must be respected
1173
- * * `OR` - Several constraints, of which at least one must be respected
1174
- * * `XOR` - Several constraints, of which exactly one must be respected
1175
- * @export
1176
- */
1177
- export declare const ExpressionType: {
1178
- readonly AtomicConstraint: "ATOMIC_CONSTRAINT";
1179
- readonly And: "AND";
1180
- readonly Or: "OR";
1181
- readonly Xor: "XOR";
1182
- };
1183
-
1184
- export declare type ExpressionType = (typeof ExpressionType)[keyof typeof ExpressionType];
1185
-
1186
- export declare function ExpressionTypeFromJSON(json: any): ExpressionType;
1187
-
1188
- export declare function ExpressionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressionType;
1189
-
1190
- export declare function ExpressionTypeToJSON(value?: ExpressionType | null): any;
1191
-
1192
1105
  export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
1193
1106
 
1194
1107
  export declare class FetchError extends Error {
@@ -1211,6 +1124,10 @@ export declare interface GetCatalogPageDataOffersRequest {
1211
1124
  connectorEndpoint?: string;
1212
1125
  }
1213
1126
 
1127
+ export declare interface GetContractAgreementCardRequest {
1128
+ contractAgreementId: string;
1129
+ }
1130
+
1214
1131
  export declare interface GetContractAgreementPageRequest {
1215
1132
  contractAgreementPageQuery?: ContractAgreementPageQuery;
1216
1133
  }
@@ -1242,6 +1159,32 @@ export declare type HTTPRequestInit = {
1242
1159
  body?: HTTPBody;
1243
1160
  };
1244
1161
 
1162
+ /**
1163
+ * Object indicates whether an ID for the given object type is already taken or not
1164
+ * @export
1165
+ * @interface IdAvailabilityResponse
1166
+ */
1167
+ export declare interface IdAvailabilityResponse {
1168
+ /**
1169
+ * ID
1170
+ * @type {string}
1171
+ * @memberof IdAvailabilityResponse
1172
+ */
1173
+ id: string;
1174
+ /**
1175
+ *
1176
+ * @type {boolean}
1177
+ * @memberof IdAvailabilityResponse
1178
+ */
1179
+ available?: boolean;
1180
+ }
1181
+
1182
+ export declare function IdAvailabilityResponseFromJSON(json: any): IdAvailabilityResponse;
1183
+
1184
+ export declare function IdAvailabilityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdAvailabilityResponse;
1185
+
1186
+ export declare function IdAvailabilityResponseToJSON(value?: IdAvailabilityResponse | null): any;
1187
+
1245
1188
  /**
1246
1189
  * Marks the operation as successful
1247
1190
  * @export
@@ -1352,11 +1295,6 @@ export declare type InitOverrideFunction = (requestContext: {
1352
1295
  */
1353
1296
  export declare function instanceOfAssetPage(value: object): boolean;
1354
1297
 
1355
- /**
1356
- * Check if a given object implements the AtomicConstraintDto interface.
1357
- */
1358
- export declare function instanceOfAtomicConstraintDto(value: object): boolean;
1359
-
1360
1298
  /**
1361
1299
  * Check if a given object implements the CatalogFilterExpression interface.
1362
1300
  */
@@ -1453,9 +1391,9 @@ export declare function instanceOfDashboardPage(value: object): boolean;
1453
1391
  export declare function instanceOfDashboardTransferAmounts(value: object): boolean;
1454
1392
 
1455
1393
  /**
1456
- * Check if a given object implements the Expression interface.
1394
+ * Check if a given object implements the IdAvailabilityResponse interface.
1457
1395
  */
1458
- export declare function instanceOfExpression(value: object): boolean;
1396
+ export declare function instanceOfIdAvailabilityResponse(value: object): boolean;
1459
1397
 
1460
1398
  /**
1461
1399
  * Check if a given object implements the IdResponseDto interface.
@@ -1478,14 +1416,9 @@ export declare function instanceOfInitiateTransferRequest(value: object): boolea
1478
1416
  export declare function instanceOfKpiResult(value: object): boolean;
1479
1417
 
1480
1418
  /**
1481
- * Check if a given object implements the PermissionDto interface.
1419
+ * Check if a given object implements the PolicyDefinitionCreateDto interface.
1482
1420
  */
1483
- export declare function instanceOfPermissionDto(value: object): boolean;
1484
-
1485
- /**
1486
- * Check if a given object implements the PolicyCreateRequest interface.
1487
- */
1488
- export declare function instanceOfPolicyCreateRequest(value: object): boolean;
1421
+ export declare function instanceOfPolicyDefinitionCreateDto(value: object): boolean;
1489
1422
 
1490
1423
  /**
1491
1424
  * Check if a given object implements the PolicyDefinitionCreateRequest interface.
@@ -1597,11 +1530,28 @@ export declare function instanceOfUiPolicyConstraint(value: object): boolean;
1597
1530
  */
1598
1531
  export declare function instanceOfUiPolicyCreateRequest(value: object): boolean;
1599
1532
 
1533
+ /**
1534
+ * Check if a given object implements the UiPolicyExpression interface.
1535
+ */
1536
+ export declare function instanceOfUiPolicyExpression(value: object): boolean;
1537
+
1600
1538
  /**
1601
1539
  * Check if a given object implements the UiPolicyLiteral interface.
1602
1540
  */
1603
1541
  export declare function instanceOfUiPolicyLiteral(value: object): boolean;
1604
1542
 
1543
+ export declare interface IsAssetIdAvailableRequest {
1544
+ assetId: string;
1545
+ }
1546
+
1547
+ export declare interface IsContractDefinitionIdAvailableRequest {
1548
+ contractDefinitionId: string;
1549
+ }
1550
+
1551
+ export declare interface IsPolicyIdAvailableRequest {
1552
+ policyId: string;
1553
+ }
1554
+
1605
1555
  export declare type Json = any;
1606
1556
 
1607
1557
  export declare class JSONApiResponse<T> {
@@ -1666,7 +1616,7 @@ export declare interface Middleware {
1666
1616
  export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
1667
1617
 
1668
1618
  /**
1669
- * Operator for policies
1619
+ * Type-Safe ODRL Policy Operator as supported by the sovity product landscape
1670
1620
  * @export
1671
1621
  */
1672
1622
  export declare const OperatorDto: {
@@ -1693,53 +1643,33 @@ export declare function OperatorDtoFromJSONTyped(json: any, ignoreDiscriminator:
1693
1643
  export declare function OperatorDtoToJSON(value?: OperatorDto | null): any;
1694
1644
 
1695
1645
  /**
1696
- * Permission description for the policy to evaluate to TRUE.
1697
- * @export
1698
- * @interface PermissionDto
1699
- */
1700
- export declare interface PermissionDto {
1701
- /**
1702
- *
1703
- * @type {Expression}
1704
- * @memberof PermissionDto
1705
- */
1706
- expression: Expression;
1707
- }
1708
-
1709
- export declare function PermissionDtoFromJSON(json: any): PermissionDto;
1710
-
1711
- export declare function PermissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionDto;
1712
-
1713
- export declare function PermissionDtoToJSON(value?: PermissionDto | null): any;
1714
-
1715
- /**
1716
- * Policy Creation Request Supporting Multiplicity Constraints.
1646
+ * Create a Policy Definition
1717
1647
  * @export
1718
- * @interface PolicyCreateRequest
1648
+ * @interface PolicyDefinitionCreateDto
1719
1649
  */
1720
- export declare interface PolicyCreateRequest {
1650
+ export declare interface PolicyDefinitionCreateDto {
1721
1651
  /**
1722
1652
  * Policy Definition ID
1723
1653
  * @type {string}
1724
- * @memberof PolicyCreateRequest
1654
+ * @memberof PolicyDefinitionCreateDto
1725
1655
  */
1726
1656
  policyDefinitionId: string;
1727
1657
  /**
1728
1658
  *
1729
- * @type {PermissionDto}
1730
- * @memberof PolicyCreateRequest
1659
+ * @type {UiPolicyExpression}
1660
+ * @memberof PolicyDefinitionCreateDto
1731
1661
  */
1732
- permission?: PermissionDto;
1662
+ expression: UiPolicyExpression;
1733
1663
  }
1734
1664
 
1735
- export declare function PolicyCreateRequestFromJSON(json: any): PolicyCreateRequest;
1665
+ export declare function PolicyDefinitionCreateDtoFromJSON(json: any): PolicyDefinitionCreateDto;
1736
1666
 
1737
- export declare function PolicyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyCreateRequest;
1667
+ export declare function PolicyDefinitionCreateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyDefinitionCreateDto;
1738
1668
 
1739
- export declare function PolicyCreateRequestToJSON(value?: PolicyCreateRequest | null): any;
1669
+ export declare function PolicyDefinitionCreateDtoToJSON(value?: PolicyDefinitionCreateDto | null): any;
1740
1670
 
1741
1671
  /**
1742
- * Data for creating a Policy Definition
1672
+ * [Deprecated] Create a Policy Definition. Use PolicyDefinitionCreateDto
1743
1673
  * @export
1744
1674
  * @interface PolicyDefinitionCreateRequest
1745
1675
  */
@@ -1754,6 +1684,7 @@ export declare interface PolicyDefinitionCreateRequest {
1754
1684
  *
1755
1685
  * @type {UiPolicyCreateRequest}
1756
1686
  * @memberof PolicyDefinitionCreateRequest
1687
+ * @deprecated
1757
1688
  */
1758
1689
  policy: UiPolicyCreateRequest;
1759
1690
  }
@@ -2131,13 +2062,21 @@ export declare class UIApi extends runtime.BaseAPI {
2131
2062
  */
2132
2063
  createContractDefinition(requestParameters?: CreateContractDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
2133
2064
  /**
2134
- * Create a new Policy Definition
2065
+ * [Deprecated] Create a new Policy Definition from a list of constraints. Use createPolicyDefinitionV2 instead.
2135
2066
  */
2136
2067
  createPolicyDefinitionRaw(requestParameters: CreatePolicyDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponseDto>>;
2137
2068
  /**
2138
- * Create a new Policy Definition
2069
+ * [Deprecated] Create a new Policy Definition from a list of constraints. Use createPolicyDefinitionV2 instead.
2139
2070
  */
2140
2071
  createPolicyDefinition(requestParameters?: CreatePolicyDefinitionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
2072
+ /**
2073
+ * Create a new Policy Definition
2074
+ */
2075
+ createPolicyDefinitionV2Raw(requestParameters: CreatePolicyDefinitionV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponseDto>>;
2076
+ /**
2077
+ * Create a new Policy Definition
2078
+ */
2079
+ createPolicyDefinitionV2(requestParameters?: CreatePolicyDefinitionV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
2141
2080
  /**
2142
2081
  * Delete an Asset
2143
2082
  */
@@ -2186,6 +2125,14 @@ export declare class UIApi extends runtime.BaseAPI {
2186
2125
  * Fetch a connector\'s data offers
2187
2126
  */
2188
2127
  getCatalogPageDataOffers(requestParameters?: GetCatalogPageDataOffersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UiDataOffer>>;
2128
+ /**
2129
+ * Get a single contract agreement card by its identifier
2130
+ */
2131
+ getContractAgreementCardRaw(requestParameters: GetContractAgreementCardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContractAgreementCard>>;
2132
+ /**
2133
+ * Get a single contract agreement card by its identifier
2134
+ */
2135
+ getContractAgreementCard(requestParameters: GetContractAgreementCardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContractAgreementCard>;
2189
2136
  /**
2190
2137
  * Collect filtered data for the Contract Agreement Page
2191
2138
  */
@@ -2266,6 +2213,30 @@ export declare class UIApi extends runtime.BaseAPI {
2266
2213
  * Initiate a Transfer Process
2267
2214
  */
2268
2215
  initiateTransfer(requestParameters?: InitiateTransferOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
2216
+ /**
2217
+ * Validates if the provided assetId is already taken
2218
+ */
2219
+ isAssetIdAvailableRaw(requestParameters: IsAssetIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdAvailabilityResponse>>;
2220
+ /**
2221
+ * Validates if the provided assetId is already taken
2222
+ */
2223
+ isAssetIdAvailable(requestParameters: IsAssetIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdAvailabilityResponse>;
2224
+ /**
2225
+ * Validates if the provided contractDefinitionId is already taken
2226
+ */
2227
+ isContractDefinitionIdAvailableRaw(requestParameters: IsContractDefinitionIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdAvailabilityResponse>>;
2228
+ /**
2229
+ * Validates if the provided contractDefinitionId is already taken
2230
+ */
2231
+ isContractDefinitionIdAvailable(requestParameters: IsContractDefinitionIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdAvailabilityResponse>;
2232
+ /**
2233
+ * Validates if the provided policyId is already taken
2234
+ */
2235
+ isPolicyIdAvailableRaw(requestParameters: IsPolicyIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdAvailabilityResponse>>;
2236
+ /**
2237
+ * Validates if the provided policyId is already taken
2238
+ */
2239
+ isPolicyIdAvailable(requestParameters: IsPolicyIdAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdAvailabilityResponse>;
2269
2240
  /**
2270
2241
  * Terminates a contract agreement designated by its contract agreement id.
2271
2242
  */
@@ -2277,7 +2248,7 @@ export declare class UIApi extends runtime.BaseAPI {
2277
2248
  }
2278
2249
 
2279
2250
  /**
2280
- * Type-Safe Asset Metadata as needed by our UI
2251
+ * Type-safe data offer metadata as supported by the sovity product landscape. Contains extension points.
2281
2252
  * @export
2282
2253
  * @interface UiAsset
2283
2254
  */
@@ -2537,7 +2508,7 @@ export declare interface UiAsset {
2537
2508
  }
2538
2509
 
2539
2510
  /**
2540
- * Type-Safe OpenAPI generator friendly Asset Create DTO that supports an opinionated subset of the original EDC Asset Entity.
2511
+ * Type-safe data offer metadata for creating an asset as supported by the sovity product landscape. Contains extension points.
2541
2512
  * @export
2542
2513
  * @interface UiAssetCreateRequest
2543
2514
  */
@@ -2731,7 +2702,7 @@ export declare function UiAssetCreateRequestFromJSONTyped(json: any, ignoreDiscr
2731
2702
  export declare function UiAssetCreateRequestToJSON(value?: UiAssetCreateRequest | null): any;
2732
2703
 
2733
2704
  /**
2734
- * Data for editing an asset.
2705
+ * Type-safe data offer metadata for editing an asset as supported by the sovity product landscape. Contains extension points.
2735
2706
  * @export
2736
2707
  * @interface UiAssetEditRequest
2737
2708
  */
@@ -3126,7 +3097,7 @@ export declare function UiDataOfferFromJSONTyped(json: any, ignoreDiscriminator:
3126
3097
  export declare function UiDataOfferToJSON(value?: UiDataOffer | null): any;
3127
3098
 
3128
3099
  /**
3129
- * Data Offer Data Source Model. Supports certain Data Address types but also leaves a backdoor for custom Data Address Properties.
3100
+ * Type-safe data source as supported by the sovity product landscape. Contains extension points for using custom data address properties.
3130
3101
  * @export
3131
3102
  * @interface UiDataSource
3132
3103
  */
@@ -3164,7 +3135,7 @@ export declare function UiDataSourceFromJSON(json: any): UiDataSource;
3164
3135
  export declare function UiDataSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiDataSource;
3165
3136
 
3166
3137
  /**
3167
- * Only for type HTTP_DATA
3138
+ * HTTP_DATA type Data Source.
3168
3139
  * @export
3169
3140
  * @interface UiDataSourceHttpData
3170
3141
  */
@@ -3289,7 +3260,7 @@ export declare function UiDataSourceOnRequestToJSON(value?: UiDataSourceOnReques
3289
3260
  export declare function UiDataSourceToJSON(value?: UiDataSource | null): any;
3290
3261
 
3291
3262
  /**
3292
- * Type-Safe OpenAPI generator friendly Policy DTO as needed by our UI
3263
+ * Type-Safe OpenAPI generator friendly ODLR policy subset as endorsed by sovity.
3293
3264
  * @export
3294
3265
  * @interface UiPolicy
3295
3266
  */
@@ -3301,11 +3272,11 @@ export declare interface UiPolicy {
3301
3272
  */
3302
3273
  policyJsonLd: string;
3303
3274
  /**
3304
- * Conjunction of required expressions for the policy to evaluate to TRUE.
3305
- * @type {Array<UiPolicyConstraint>}
3275
+ *
3276
+ * @type {UiPolicyExpression}
3306
3277
  * @memberof UiPolicy
3307
3278
  */
3308
- constraints?: Array<UiPolicyConstraint>;
3279
+ expression?: UiPolicyExpression;
3309
3280
  /**
3310
3281
  * When trying to reduce the policy JSON-LD to our opinionated subset of functionalities, many fields and functionalities are unsupported. Should any discrepancies occur during the mapping process, we'll collect them here.
3311
3282
  * @type {Array<string>}
@@ -3315,7 +3286,7 @@ export declare interface UiPolicy {
3315
3286
  }
3316
3287
 
3317
3288
  /**
3318
- * ODRL AtomicConstraint as supported by our UI
3289
+ * ODRL AtomicConstraint as supported by the sovity product landscape. For example 'a EQ b', 'c IN [d, e, f]'
3319
3290
  * @export
3320
3291
  * @interface UiPolicyConstraint
3321
3292
  */
@@ -3347,15 +3318,16 @@ export declare function UiPolicyConstraintFromJSONTyped(json: any, ignoreDiscrim
3347
3318
  export declare function UiPolicyConstraintToJSON(value?: UiPolicyConstraint | null): any;
3348
3319
 
3349
3320
  /**
3350
- * Type-Safe OpenAPI generator friendly Policy Create DTO that supports an opinionated subset of the original EDC Policy Entity.
3321
+ * [Deprecated] Conjunction of constraints (simplified UiPolicyExpression)
3351
3322
  * @export
3352
3323
  * @interface UiPolicyCreateRequest
3353
3324
  */
3354
3325
  export declare interface UiPolicyCreateRequest {
3355
3326
  /**
3356
- * Conjunction of required expressions for the policy to evaluate to TRUE.
3327
+ * Conjunction of required constraints
3357
3328
  * @type {Array<UiPolicyConstraint>}
3358
3329
  * @memberof UiPolicyCreateRequest
3330
+ * @deprecated
3359
3331
  */
3360
3332
  constraints?: Array<UiPolicyConstraint>;
3361
3333
  }
@@ -3366,6 +3338,62 @@ export declare function UiPolicyCreateRequestFromJSONTyped(json: any, ignoreDisc
3366
3338
 
3367
3339
  export declare function UiPolicyCreateRequestToJSON(value?: UiPolicyCreateRequest | null): any;
3368
3340
 
3341
+ /**
3342
+ * ODRL constraint as supported by the sovity product landscape
3343
+ * @export
3344
+ * @interface UiPolicyExpression
3345
+ */
3346
+ export declare interface UiPolicyExpression {
3347
+ /**
3348
+ *
3349
+ * @type {UiPolicyExpressionType}
3350
+ * @memberof UiPolicyExpression
3351
+ */
3352
+ type: UiPolicyExpressionType;
3353
+ /**
3354
+ * Only for types AND, OR, XONE. List of sub-expressions to be evaluated according to the expressionType.
3355
+ * @type {Array<UiPolicyExpression>}
3356
+ * @memberof UiPolicyExpression
3357
+ */
3358
+ expressions?: Array<UiPolicyExpression>;
3359
+ /**
3360
+ *
3361
+ * @type {UiPolicyConstraint}
3362
+ * @memberof UiPolicyExpression
3363
+ */
3364
+ constraint?: UiPolicyConstraint;
3365
+ }
3366
+
3367
+ export declare function UiPolicyExpressionFromJSON(json: any): UiPolicyExpression;
3368
+
3369
+ export declare function UiPolicyExpressionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiPolicyExpression;
3370
+
3371
+ export declare function UiPolicyExpressionToJSON(value?: UiPolicyExpression | null): any;
3372
+
3373
+ /**
3374
+ * Ui Policy Expression types:
3375
+ * * `CONSTRAINT` - Expression 'a=b'
3376
+ * * `AND` - Conjunction of several expressions. Evaluates to true iff all child expressions are true.
3377
+ * * `OR` - Disjunction of several expressions. Evaluates to true iff at least one child expression is true.
3378
+ * * `XONE` - XONE operation. Evaluates to true iff exactly one child expression is true.
3379
+ * @export
3380
+ */
3381
+ export declare const UiPolicyExpressionType: {
3382
+ readonly Empty: "EMPTY";
3383
+ readonly Constraint: "CONSTRAINT";
3384
+ readonly And: "AND";
3385
+ readonly Or: "OR";
3386
+ readonly Xone: "XONE";
3387
+ };
3388
+
3389
+ export declare type UiPolicyExpressionType = (typeof UiPolicyExpressionType)[keyof typeof UiPolicyExpressionType];
3390
+
3391
+ export declare function UiPolicyExpressionTypeFromJSON(json: any): UiPolicyExpressionType;
3392
+
3393
+ export declare function UiPolicyExpressionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiPolicyExpressionType;
3394
+
3395
+ export declare function UiPolicyExpressionTypeToJSON(value?: UiPolicyExpressionType | null): any;
3396
+
3369
3397
  export declare function UiPolicyFromJSON(json: any): UiPolicy;
3370
3398
 
3371
3399
  export declare function UiPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UiPolicy;
@@ -3426,14 +3454,6 @@ export declare function UiPolicyToJSON(value?: UiPolicy | null): any;
3426
3454
  *
3427
3455
  */
3428
3456
  export declare class UseCaseApi extends runtime.BaseAPI {
3429
- /**
3430
- * Create a new Policy Definition
3431
- */
3432
- createPolicyDefinitionUseCaseRaw(requestParameters: CreatePolicyDefinitionUseCaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponseDto>>;
3433
- /**
3434
- * Create a new Policy Definition
3435
- */
3436
- createPolicyDefinitionUseCase(requestParameters?: CreatePolicyDefinitionUseCaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
3437
3457
  /**
3438
3458
  * Basic KPIs about the running EDC Connector.
3439
3459
  */