@sphereon/ssi-sdk.pd-manager 0.34.1-fix.223 → 0.34.1-fix.247
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/index.cjs +20 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -40
- package/dist/index.d.ts +29 -40
- package/dist/index.js +20 -26
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/plugin.schema.json +19 -25
- package/src/agent/PDManager.ts +3 -8
- package/src/index.ts +2 -1
- package/src/types/IPDManager.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IAgentPlugin, IPluginMethodMap, IAgentContext } from '@veramo/core';
|
|
2
|
-
import { AbstractPDStore, DcqlQueryItem, FindDcqlQueryArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store';
|
|
3
|
-
export { ImportDcqlQueryItem } from '@sphereon/ssi-sdk.data-store';
|
|
2
|
+
import { AbstractPDStore, DcqlQueryItem, FindDcqlQueryArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
|
|
3
|
+
export { ImportDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
|
|
4
4
|
import { ReleaseType } from 'semver';
|
|
5
5
|
export { ReleaseType } from 'semver';
|
|
6
|
+
export { DcqlQuery } from 'dcql';
|
|
6
7
|
|
|
7
8
|
var IPDManager$1 = {
|
|
8
9
|
components: {
|
|
@@ -41,15 +42,15 @@ var IPDManager$1 = {
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
PresentationDefinitionItemFilter: {
|
|
44
|
-
$ref: "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"
|
|
45
|
+
$ref: "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>"
|
|
45
46
|
},
|
|
46
|
-
"Partial<Omit<PresentationDefinitionItem,(\"
|
|
47
|
+
"Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
|
|
47
48
|
type: "object",
|
|
48
49
|
properties: {
|
|
49
50
|
id: {
|
|
50
51
|
type: "string"
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
queryId: {
|
|
53
54
|
type: "string"
|
|
54
55
|
},
|
|
55
56
|
tenantId: {
|
|
@@ -102,7 +103,7 @@ var IPDManager$1 = {
|
|
|
102
103
|
id: {
|
|
103
104
|
type: "string"
|
|
104
105
|
},
|
|
105
|
-
|
|
106
|
+
queryId: {
|
|
106
107
|
type: "string"
|
|
107
108
|
},
|
|
108
109
|
tenantId: {
|
|
@@ -117,11 +118,8 @@ var IPDManager$1 = {
|
|
|
117
118
|
purpose: {
|
|
118
119
|
type: "string"
|
|
119
120
|
},
|
|
120
|
-
definitionPayload: {
|
|
121
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
122
|
-
},
|
|
123
121
|
dcqlPayload: {
|
|
124
|
-
$ref: "#/components/schemas/
|
|
122
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
125
123
|
},
|
|
126
124
|
createdAt: {
|
|
127
125
|
type: "string",
|
|
@@ -134,9 +132,9 @@ var IPDManager$1 = {
|
|
|
134
132
|
},
|
|
135
133
|
required: [
|
|
136
134
|
"id",
|
|
137
|
-
"
|
|
135
|
+
"queryId",
|
|
138
136
|
"version",
|
|
139
|
-
"
|
|
137
|
+
"query",
|
|
140
138
|
"createdAt",
|
|
141
139
|
"lastUpdatedAt"
|
|
142
140
|
],
|
|
@@ -869,7 +867,7 @@ var IPDManager$1 = {
|
|
|
869
867
|
},
|
|
870
868
|
additionalProperties: false
|
|
871
869
|
},
|
|
872
|
-
|
|
870
|
+
DcqlQuery: {
|
|
873
871
|
type: "object",
|
|
874
872
|
properties: {
|
|
875
873
|
credentials: {
|
|
@@ -973,7 +971,7 @@ var IPDManager$1 = {
|
|
|
973
971
|
PersistDefinitionArgs: {
|
|
974
972
|
type: "object",
|
|
975
973
|
properties: {
|
|
976
|
-
|
|
974
|
+
queryItem: {
|
|
977
975
|
$ref: "#/components/schemas/PersistPresentationDefinitionItem"
|
|
978
976
|
},
|
|
979
977
|
opts: {
|
|
@@ -981,7 +979,7 @@ var IPDManager$1 = {
|
|
|
981
979
|
}
|
|
982
980
|
},
|
|
983
981
|
required: [
|
|
984
|
-
"
|
|
982
|
+
"queryItem"
|
|
985
983
|
],
|
|
986
984
|
additionalProperties: false
|
|
987
985
|
},
|
|
@@ -992,7 +990,7 @@ var IPDManager$1 = {
|
|
|
992
990
|
id: {
|
|
993
991
|
type: "string"
|
|
994
992
|
},
|
|
995
|
-
|
|
993
|
+
queryId: {
|
|
996
994
|
type: "string"
|
|
997
995
|
},
|
|
998
996
|
version: {
|
|
@@ -1007,15 +1005,12 @@ var IPDManager$1 = {
|
|
|
1007
1005
|
purpose: {
|
|
1008
1006
|
type: "string"
|
|
1009
1007
|
},
|
|
1010
|
-
definitionPayload: {
|
|
1011
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
1012
|
-
},
|
|
1013
1008
|
dcqlPayload: {
|
|
1014
|
-
$ref: "#/components/schemas/
|
|
1009
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
1015
1010
|
}
|
|
1016
1011
|
},
|
|
1017
1012
|
required: [
|
|
1018
|
-
"
|
|
1013
|
+
"queryPayload"
|
|
1019
1014
|
]
|
|
1020
1015
|
},
|
|
1021
1016
|
PersistOptions: {
|
|
@@ -1055,7 +1050,7 @@ var IPDManager$1 = {
|
|
|
1055
1050
|
},
|
|
1056
1051
|
methods: {
|
|
1057
1052
|
pdmDeleteDefinition: {
|
|
1058
|
-
description: "Delete a single presentation
|
|
1053
|
+
description: "Delete a single presentation query records by primary key",
|
|
1059
1054
|
"arguments": {
|
|
1060
1055
|
$ref: "#/components/schemas/DeleteDefinitionItemArgs"
|
|
1061
1056
|
},
|
|
@@ -1064,7 +1059,7 @@ var IPDManager$1 = {
|
|
|
1064
1059
|
}
|
|
1065
1060
|
},
|
|
1066
1061
|
pdmDeleteDefinitions: {
|
|
1067
|
-
description: "Delete multiple presentation
|
|
1062
|
+
description: "Delete multiple presentation querys records using filters",
|
|
1068
1063
|
"arguments": {
|
|
1069
1064
|
$ref: "#/components/schemas/DeleteDefinitionItemsArgs"
|
|
1070
1065
|
},
|
|
@@ -1073,7 +1068,7 @@ var IPDManager$1 = {
|
|
|
1073
1068
|
}
|
|
1074
1069
|
},
|
|
1075
1070
|
pdmGetDefinition: {
|
|
1076
|
-
description: "Get a single presentation
|
|
1071
|
+
description: "Get a single presentation query records by primary key",
|
|
1077
1072
|
"arguments": {
|
|
1078
1073
|
$ref: "#/components/schemas/GetDefinitionItemArgs"
|
|
1079
1074
|
},
|
|
@@ -1082,7 +1077,7 @@ var IPDManager$1 = {
|
|
|
1082
1077
|
}
|
|
1083
1078
|
},
|
|
1084
1079
|
pdmGetDefinitions: {
|
|
1085
|
-
description: "Find one or more presentation
|
|
1080
|
+
description: "Find one or more presentation query records using filters",
|
|
1086
1081
|
"arguments": {
|
|
1087
1082
|
$ref: "#/components/schemas/GetDefinitionItemsArgs"
|
|
1088
1083
|
},
|
|
@@ -1094,7 +1089,7 @@ var IPDManager$1 = {
|
|
|
1094
1089
|
}
|
|
1095
1090
|
},
|
|
1096
1091
|
pdmHasDefinition: {
|
|
1097
|
-
description: "Checks whether a presentation
|
|
1092
|
+
description: "Checks whether a presentation query record exists by primary key",
|
|
1098
1093
|
"arguments": {
|
|
1099
1094
|
$ref: "#/components/schemas/HasDefinitionItemArgs"
|
|
1100
1095
|
},
|
|
@@ -1103,7 +1098,7 @@ var IPDManager$1 = {
|
|
|
1103
1098
|
}
|
|
1104
1099
|
},
|
|
1105
1100
|
pdmHasDefinitions: {
|
|
1106
|
-
description: "Checks whether one or more presentation
|
|
1101
|
+
description: "Checks whether one or more presentation query records exist using filters",
|
|
1107
1102
|
"arguments": {
|
|
1108
1103
|
$ref: "#/components/schemas/HasDefinitionItemsArgs"
|
|
1109
1104
|
},
|
|
@@ -1112,7 +1107,7 @@ var IPDManager$1 = {
|
|
|
1112
1107
|
}
|
|
1113
1108
|
},
|
|
1114
1109
|
pdmPersistDefinition: {
|
|
1115
|
-
description: "Check in a presentation
|
|
1110
|
+
description: "Check in a presentation query. It has version control logic which will add or update presentation query records and has settings for automatic version numbering.",
|
|
1116
1111
|
"arguments": {
|
|
1117
1112
|
$ref: "#/components/schemas/PersistDefinitionArgs"
|
|
1118
1113
|
},
|
|
@@ -1169,13 +1164,13 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1169
1164
|
PresentationDefinitionItemFilter: {
|
|
1170
1165
|
$ref: string;
|
|
1171
1166
|
};
|
|
1172
|
-
"Partial<Omit<PresentationDefinitionItem,(\"
|
|
1167
|
+
"Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
|
|
1173
1168
|
type: string;
|
|
1174
1169
|
properties: {
|
|
1175
1170
|
id: {
|
|
1176
1171
|
type: string;
|
|
1177
1172
|
};
|
|
1178
|
-
|
|
1173
|
+
queryId: {
|
|
1179
1174
|
type: string;
|
|
1180
1175
|
};
|
|
1181
1176
|
tenantId: {
|
|
@@ -1226,7 +1221,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1226
1221
|
id: {
|
|
1227
1222
|
type: string;
|
|
1228
1223
|
};
|
|
1229
|
-
|
|
1224
|
+
queryId: {
|
|
1230
1225
|
type: string;
|
|
1231
1226
|
};
|
|
1232
1227
|
tenantId: {
|
|
@@ -1241,9 +1236,6 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1241
1236
|
purpose: {
|
|
1242
1237
|
type: string;
|
|
1243
1238
|
};
|
|
1244
|
-
definitionPayload: {
|
|
1245
|
-
$ref: string;
|
|
1246
|
-
};
|
|
1247
1239
|
dcqlPayload: {
|
|
1248
1240
|
$ref: string;
|
|
1249
1241
|
};
|
|
@@ -1931,7 +1923,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1931
1923
|
};
|
|
1932
1924
|
additionalProperties: boolean;
|
|
1933
1925
|
};
|
|
1934
|
-
|
|
1926
|
+
DcqlQuery: {
|
|
1935
1927
|
type: string;
|
|
1936
1928
|
properties: {
|
|
1937
1929
|
credentials: {
|
|
@@ -2020,7 +2012,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2020
2012
|
PersistDefinitionArgs: {
|
|
2021
2013
|
type: string;
|
|
2022
2014
|
properties: {
|
|
2023
|
-
|
|
2015
|
+
queryItem: {
|
|
2024
2016
|
$ref: string;
|
|
2025
2017
|
};
|
|
2026
2018
|
opts: {
|
|
@@ -2037,7 +2029,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2037
2029
|
id: {
|
|
2038
2030
|
type: string;
|
|
2039
2031
|
};
|
|
2040
|
-
|
|
2032
|
+
queryId: {
|
|
2041
2033
|
type: string;
|
|
2042
2034
|
};
|
|
2043
2035
|
version: {
|
|
@@ -2052,9 +2044,6 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2052
2044
|
purpose: {
|
|
2053
2045
|
type: string;
|
|
2054
2046
|
};
|
|
2055
|
-
definitionPayload: {
|
|
2056
|
-
$ref: string;
|
|
2057
|
-
};
|
|
2058
2047
|
dcqlPayload: {
|
|
2059
2048
|
$ref: string;
|
|
2060
2049
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IAgentPlugin, IPluginMethodMap, IAgentContext } from '@veramo/core';
|
|
2
|
-
import { AbstractPDStore, DcqlQueryItem, FindDcqlQueryArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store';
|
|
3
|
-
export { ImportDcqlQueryItem } from '@sphereon/ssi-sdk.data-store';
|
|
2
|
+
import { AbstractPDStore, DcqlQueryItem, FindDcqlQueryArgs, NonPersistedDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
|
|
3
|
+
export { ImportDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types';
|
|
4
4
|
import { ReleaseType } from 'semver';
|
|
5
5
|
export { ReleaseType } from 'semver';
|
|
6
|
+
export { DcqlQuery } from 'dcql';
|
|
6
7
|
|
|
7
8
|
var IPDManager$1 = {
|
|
8
9
|
components: {
|
|
@@ -41,15 +42,15 @@ var IPDManager$1 = {
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
PresentationDefinitionItemFilter: {
|
|
44
|
-
$ref: "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"
|
|
45
|
+
$ref: "#/components/schemas/Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>"
|
|
45
46
|
},
|
|
46
|
-
"Partial<Omit<PresentationDefinitionItem,(\"
|
|
47
|
+
"Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
|
|
47
48
|
type: "object",
|
|
48
49
|
properties: {
|
|
49
50
|
id: {
|
|
50
51
|
type: "string"
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
queryId: {
|
|
53
54
|
type: "string"
|
|
54
55
|
},
|
|
55
56
|
tenantId: {
|
|
@@ -102,7 +103,7 @@ var IPDManager$1 = {
|
|
|
102
103
|
id: {
|
|
103
104
|
type: "string"
|
|
104
105
|
},
|
|
105
|
-
|
|
106
|
+
queryId: {
|
|
106
107
|
type: "string"
|
|
107
108
|
},
|
|
108
109
|
tenantId: {
|
|
@@ -117,11 +118,8 @@ var IPDManager$1 = {
|
|
|
117
118
|
purpose: {
|
|
118
119
|
type: "string"
|
|
119
120
|
},
|
|
120
|
-
definitionPayload: {
|
|
121
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
122
|
-
},
|
|
123
121
|
dcqlPayload: {
|
|
124
|
-
$ref: "#/components/schemas/
|
|
122
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
125
123
|
},
|
|
126
124
|
createdAt: {
|
|
127
125
|
type: "string",
|
|
@@ -134,9 +132,9 @@ var IPDManager$1 = {
|
|
|
134
132
|
},
|
|
135
133
|
required: [
|
|
136
134
|
"id",
|
|
137
|
-
"
|
|
135
|
+
"queryId",
|
|
138
136
|
"version",
|
|
139
|
-
"
|
|
137
|
+
"query",
|
|
140
138
|
"createdAt",
|
|
141
139
|
"lastUpdatedAt"
|
|
142
140
|
],
|
|
@@ -869,7 +867,7 @@ var IPDManager$1 = {
|
|
|
869
867
|
},
|
|
870
868
|
additionalProperties: false
|
|
871
869
|
},
|
|
872
|
-
|
|
870
|
+
DcqlQuery: {
|
|
873
871
|
type: "object",
|
|
874
872
|
properties: {
|
|
875
873
|
credentials: {
|
|
@@ -973,7 +971,7 @@ var IPDManager$1 = {
|
|
|
973
971
|
PersistDefinitionArgs: {
|
|
974
972
|
type: "object",
|
|
975
973
|
properties: {
|
|
976
|
-
|
|
974
|
+
queryItem: {
|
|
977
975
|
$ref: "#/components/schemas/PersistPresentationDefinitionItem"
|
|
978
976
|
},
|
|
979
977
|
opts: {
|
|
@@ -981,7 +979,7 @@ var IPDManager$1 = {
|
|
|
981
979
|
}
|
|
982
980
|
},
|
|
983
981
|
required: [
|
|
984
|
-
"
|
|
982
|
+
"queryItem"
|
|
985
983
|
],
|
|
986
984
|
additionalProperties: false
|
|
987
985
|
},
|
|
@@ -992,7 +990,7 @@ var IPDManager$1 = {
|
|
|
992
990
|
id: {
|
|
993
991
|
type: "string"
|
|
994
992
|
},
|
|
995
|
-
|
|
993
|
+
queryId: {
|
|
996
994
|
type: "string"
|
|
997
995
|
},
|
|
998
996
|
version: {
|
|
@@ -1007,15 +1005,12 @@ var IPDManager$1 = {
|
|
|
1007
1005
|
purpose: {
|
|
1008
1006
|
type: "string"
|
|
1009
1007
|
},
|
|
1010
|
-
definitionPayload: {
|
|
1011
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
1012
|
-
},
|
|
1013
1008
|
dcqlPayload: {
|
|
1014
|
-
$ref: "#/components/schemas/
|
|
1009
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
1015
1010
|
}
|
|
1016
1011
|
},
|
|
1017
1012
|
required: [
|
|
1018
|
-
"
|
|
1013
|
+
"queryPayload"
|
|
1019
1014
|
]
|
|
1020
1015
|
},
|
|
1021
1016
|
PersistOptions: {
|
|
@@ -1055,7 +1050,7 @@ var IPDManager$1 = {
|
|
|
1055
1050
|
},
|
|
1056
1051
|
methods: {
|
|
1057
1052
|
pdmDeleteDefinition: {
|
|
1058
|
-
description: "Delete a single presentation
|
|
1053
|
+
description: "Delete a single presentation query records by primary key",
|
|
1059
1054
|
"arguments": {
|
|
1060
1055
|
$ref: "#/components/schemas/DeleteDefinitionItemArgs"
|
|
1061
1056
|
},
|
|
@@ -1064,7 +1059,7 @@ var IPDManager$1 = {
|
|
|
1064
1059
|
}
|
|
1065
1060
|
},
|
|
1066
1061
|
pdmDeleteDefinitions: {
|
|
1067
|
-
description: "Delete multiple presentation
|
|
1062
|
+
description: "Delete multiple presentation querys records using filters",
|
|
1068
1063
|
"arguments": {
|
|
1069
1064
|
$ref: "#/components/schemas/DeleteDefinitionItemsArgs"
|
|
1070
1065
|
},
|
|
@@ -1073,7 +1068,7 @@ var IPDManager$1 = {
|
|
|
1073
1068
|
}
|
|
1074
1069
|
},
|
|
1075
1070
|
pdmGetDefinition: {
|
|
1076
|
-
description: "Get a single presentation
|
|
1071
|
+
description: "Get a single presentation query records by primary key",
|
|
1077
1072
|
"arguments": {
|
|
1078
1073
|
$ref: "#/components/schemas/GetDefinitionItemArgs"
|
|
1079
1074
|
},
|
|
@@ -1082,7 +1077,7 @@ var IPDManager$1 = {
|
|
|
1082
1077
|
}
|
|
1083
1078
|
},
|
|
1084
1079
|
pdmGetDefinitions: {
|
|
1085
|
-
description: "Find one or more presentation
|
|
1080
|
+
description: "Find one or more presentation query records using filters",
|
|
1086
1081
|
"arguments": {
|
|
1087
1082
|
$ref: "#/components/schemas/GetDefinitionItemsArgs"
|
|
1088
1083
|
},
|
|
@@ -1094,7 +1089,7 @@ var IPDManager$1 = {
|
|
|
1094
1089
|
}
|
|
1095
1090
|
},
|
|
1096
1091
|
pdmHasDefinition: {
|
|
1097
|
-
description: "Checks whether a presentation
|
|
1092
|
+
description: "Checks whether a presentation query record exists by primary key",
|
|
1098
1093
|
"arguments": {
|
|
1099
1094
|
$ref: "#/components/schemas/HasDefinitionItemArgs"
|
|
1100
1095
|
},
|
|
@@ -1103,7 +1098,7 @@ var IPDManager$1 = {
|
|
|
1103
1098
|
}
|
|
1104
1099
|
},
|
|
1105
1100
|
pdmHasDefinitions: {
|
|
1106
|
-
description: "Checks whether one or more presentation
|
|
1101
|
+
description: "Checks whether one or more presentation query records exist using filters",
|
|
1107
1102
|
"arguments": {
|
|
1108
1103
|
$ref: "#/components/schemas/HasDefinitionItemsArgs"
|
|
1109
1104
|
},
|
|
@@ -1112,7 +1107,7 @@ var IPDManager$1 = {
|
|
|
1112
1107
|
}
|
|
1113
1108
|
},
|
|
1114
1109
|
pdmPersistDefinition: {
|
|
1115
|
-
description: "Check in a presentation
|
|
1110
|
+
description: "Check in a presentation query. It has version control logic which will add or update presentation query records and has settings for automatic version numbering.",
|
|
1116
1111
|
"arguments": {
|
|
1117
1112
|
$ref: "#/components/schemas/PersistDefinitionArgs"
|
|
1118
1113
|
},
|
|
@@ -1169,13 +1164,13 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1169
1164
|
PresentationDefinitionItemFilter: {
|
|
1170
1165
|
$ref: string;
|
|
1171
1166
|
};
|
|
1172
|
-
"Partial<Omit<PresentationDefinitionItem,(\"
|
|
1167
|
+
"Partial<Omit<PresentationDefinitionItem,(\"queryPayload\"|\"dcqlPayload\")>>": {
|
|
1173
1168
|
type: string;
|
|
1174
1169
|
properties: {
|
|
1175
1170
|
id: {
|
|
1176
1171
|
type: string;
|
|
1177
1172
|
};
|
|
1178
|
-
|
|
1173
|
+
queryId: {
|
|
1179
1174
|
type: string;
|
|
1180
1175
|
};
|
|
1181
1176
|
tenantId: {
|
|
@@ -1226,7 +1221,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1226
1221
|
id: {
|
|
1227
1222
|
type: string;
|
|
1228
1223
|
};
|
|
1229
|
-
|
|
1224
|
+
queryId: {
|
|
1230
1225
|
type: string;
|
|
1231
1226
|
};
|
|
1232
1227
|
tenantId: {
|
|
@@ -1241,9 +1236,6 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1241
1236
|
purpose: {
|
|
1242
1237
|
type: string;
|
|
1243
1238
|
};
|
|
1244
|
-
definitionPayload: {
|
|
1245
|
-
$ref: string;
|
|
1246
|
-
};
|
|
1247
1239
|
dcqlPayload: {
|
|
1248
1240
|
$ref: string;
|
|
1249
1241
|
};
|
|
@@ -1931,7 +1923,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
1931
1923
|
};
|
|
1932
1924
|
additionalProperties: boolean;
|
|
1933
1925
|
};
|
|
1934
|
-
|
|
1926
|
+
DcqlQuery: {
|
|
1935
1927
|
type: string;
|
|
1936
1928
|
properties: {
|
|
1937
1929
|
credentials: {
|
|
@@ -2020,7 +2012,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2020
2012
|
PersistDefinitionArgs: {
|
|
2021
2013
|
type: string;
|
|
2022
2014
|
properties: {
|
|
2023
|
-
|
|
2015
|
+
queryItem: {
|
|
2024
2016
|
$ref: string;
|
|
2025
2017
|
};
|
|
2026
2018
|
opts: {
|
|
@@ -2037,7 +2029,7 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2037
2029
|
id: {
|
|
2038
2030
|
type: string;
|
|
2039
2031
|
};
|
|
2040
|
-
|
|
2032
|
+
queryId: {
|
|
2041
2033
|
type: string;
|
|
2042
2034
|
};
|
|
2043
2035
|
version: {
|
|
@@ -2052,9 +2044,6 @@ declare class PDManager implements IAgentPlugin {
|
|
|
2052
2044
|
purpose: {
|
|
2053
2045
|
type: string;
|
|
2054
2046
|
};
|
|
2055
|
-
definitionPayload: {
|
|
2056
|
-
$ref: string;
|
|
2057
|
-
};
|
|
2058
2047
|
dcqlPayload: {
|
|
2059
2048
|
$ref: string;
|
|
2060
2049
|
};
|
package/dist/index.js
CHANGED
|
@@ -38,15 +38,15 @@ var plugin_schema_default = {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
PresentationDefinitionItemFilter: {
|
|
41
|
-
$ref: '#/components/schemas/Partial<Omit<PresentationDefinitionItem,("
|
|
41
|
+
$ref: '#/components/schemas/Partial<Omit<PresentationDefinitionItem,("queryPayload"|"dcqlPayload")>>'
|
|
42
42
|
},
|
|
43
|
-
'Partial<Omit<PresentationDefinitionItem,("
|
|
43
|
+
'Partial<Omit<PresentationDefinitionItem,("queryPayload"|"dcqlPayload")>>': {
|
|
44
44
|
type: "object",
|
|
45
45
|
properties: {
|
|
46
46
|
id: {
|
|
47
47
|
type: "string"
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
queryId: {
|
|
50
50
|
type: "string"
|
|
51
51
|
},
|
|
52
52
|
tenantId: {
|
|
@@ -97,7 +97,7 @@ var plugin_schema_default = {
|
|
|
97
97
|
id: {
|
|
98
98
|
type: "string"
|
|
99
99
|
},
|
|
100
|
-
|
|
100
|
+
queryId: {
|
|
101
101
|
type: "string"
|
|
102
102
|
},
|
|
103
103
|
tenantId: {
|
|
@@ -112,11 +112,8 @@ var plugin_schema_default = {
|
|
|
112
112
|
purpose: {
|
|
113
113
|
type: "string"
|
|
114
114
|
},
|
|
115
|
-
definitionPayload: {
|
|
116
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
117
|
-
},
|
|
118
115
|
dcqlPayload: {
|
|
119
|
-
$ref: "#/components/schemas/
|
|
116
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
120
117
|
},
|
|
121
118
|
createdAt: {
|
|
122
119
|
type: "string",
|
|
@@ -127,7 +124,7 @@ var plugin_schema_default = {
|
|
|
127
124
|
format: "date-time"
|
|
128
125
|
}
|
|
129
126
|
},
|
|
130
|
-
required: ["id", "
|
|
127
|
+
required: ["id", "queryId", "version", "query", "createdAt", "lastUpdatedAt"],
|
|
131
128
|
additionalProperties: false
|
|
132
129
|
},
|
|
133
130
|
IPresentationDefinition: {
|
|
@@ -807,7 +804,7 @@ var plugin_schema_default = {
|
|
|
807
804
|
},
|
|
808
805
|
additionalProperties: false
|
|
809
806
|
},
|
|
810
|
-
|
|
807
|
+
DcqlQuery: {
|
|
811
808
|
type: "object",
|
|
812
809
|
properties: {
|
|
813
810
|
credentials: {
|
|
@@ -896,14 +893,14 @@ var plugin_schema_default = {
|
|
|
896
893
|
PersistDefinitionArgs: {
|
|
897
894
|
type: "object",
|
|
898
895
|
properties: {
|
|
899
|
-
|
|
896
|
+
queryItem: {
|
|
900
897
|
$ref: "#/components/schemas/PersistPresentationDefinitionItem"
|
|
901
898
|
},
|
|
902
899
|
opts: {
|
|
903
900
|
$ref: "#/components/schemas/PersistOptions"
|
|
904
901
|
}
|
|
905
902
|
},
|
|
906
|
-
required: ["
|
|
903
|
+
required: ["queryItem"],
|
|
907
904
|
additionalProperties: false
|
|
908
905
|
},
|
|
909
906
|
PersistPresentationDefinitionItem: {
|
|
@@ -913,7 +910,7 @@ var plugin_schema_default = {
|
|
|
913
910
|
id: {
|
|
914
911
|
type: "string"
|
|
915
912
|
},
|
|
916
|
-
|
|
913
|
+
queryId: {
|
|
917
914
|
type: "string"
|
|
918
915
|
},
|
|
919
916
|
version: {
|
|
@@ -928,14 +925,11 @@ var plugin_schema_default = {
|
|
|
928
925
|
purpose: {
|
|
929
926
|
type: "string"
|
|
930
927
|
},
|
|
931
|
-
definitionPayload: {
|
|
932
|
-
$ref: "#/components/schemas/IPresentationDefinition"
|
|
933
|
-
},
|
|
934
928
|
dcqlPayload: {
|
|
935
|
-
$ref: "#/components/schemas/
|
|
929
|
+
$ref: "#/components/schemas/DcqlQuery"
|
|
936
930
|
}
|
|
937
931
|
},
|
|
938
|
-
required: ["
|
|
932
|
+
required: ["queryPayload"]
|
|
939
933
|
},
|
|
940
934
|
PersistOptions: {
|
|
941
935
|
type: "object",
|
|
@@ -960,7 +954,7 @@ var plugin_schema_default = {
|
|
|
960
954
|
},
|
|
961
955
|
methods: {
|
|
962
956
|
pdmDeleteDefinition: {
|
|
963
|
-
description: "Delete a single presentation
|
|
957
|
+
description: "Delete a single presentation query records by primary key",
|
|
964
958
|
arguments: {
|
|
965
959
|
$ref: "#/components/schemas/DeleteDefinitionItemArgs"
|
|
966
960
|
},
|
|
@@ -969,7 +963,7 @@ var plugin_schema_default = {
|
|
|
969
963
|
}
|
|
970
964
|
},
|
|
971
965
|
pdmDeleteDefinitions: {
|
|
972
|
-
description: "Delete multiple presentation
|
|
966
|
+
description: "Delete multiple presentation querys records using filters",
|
|
973
967
|
arguments: {
|
|
974
968
|
$ref: "#/components/schemas/DeleteDefinitionItemsArgs"
|
|
975
969
|
},
|
|
@@ -978,7 +972,7 @@ var plugin_schema_default = {
|
|
|
978
972
|
}
|
|
979
973
|
},
|
|
980
974
|
pdmGetDefinition: {
|
|
981
|
-
description: "Get a single presentation
|
|
975
|
+
description: "Get a single presentation query records by primary key",
|
|
982
976
|
arguments: {
|
|
983
977
|
$ref: "#/components/schemas/GetDefinitionItemArgs"
|
|
984
978
|
},
|
|
@@ -987,7 +981,7 @@ var plugin_schema_default = {
|
|
|
987
981
|
}
|
|
988
982
|
},
|
|
989
983
|
pdmGetDefinitions: {
|
|
990
|
-
description: "Find one or more presentation
|
|
984
|
+
description: "Find one or more presentation query records using filters",
|
|
991
985
|
arguments: {
|
|
992
986
|
$ref: "#/components/schemas/GetDefinitionItemsArgs"
|
|
993
987
|
},
|
|
@@ -999,7 +993,7 @@ var plugin_schema_default = {
|
|
|
999
993
|
}
|
|
1000
994
|
},
|
|
1001
995
|
pdmHasDefinition: {
|
|
1002
|
-
description: "Checks whether a presentation
|
|
996
|
+
description: "Checks whether a presentation query record exists by primary key",
|
|
1003
997
|
arguments: {
|
|
1004
998
|
$ref: "#/components/schemas/HasDefinitionItemArgs"
|
|
1005
999
|
},
|
|
@@ -1008,7 +1002,7 @@ var plugin_schema_default = {
|
|
|
1008
1002
|
}
|
|
1009
1003
|
},
|
|
1010
1004
|
pdmHasDefinitions: {
|
|
1011
|
-
description: "Checks whether one or more presentation
|
|
1005
|
+
description: "Checks whether one or more presentation query records exist using filters",
|
|
1012
1006
|
arguments: {
|
|
1013
1007
|
$ref: "#/components/schemas/HasDefinitionItemsArgs"
|
|
1014
1008
|
},
|
|
@@ -1017,7 +1011,7 @@ var plugin_schema_default = {
|
|
|
1017
1011
|
}
|
|
1018
1012
|
},
|
|
1019
1013
|
pdmPersistDefinition: {
|
|
1020
|
-
description: "Check in a presentation
|
|
1014
|
+
description: "Check in a presentation query. It has version control logic which will add or update presentation query records and has settings for automatic version numbering.",
|
|
1021
1015
|
arguments: {
|
|
1022
1016
|
$ref: "#/components/schemas/PersistDefinitionArgs"
|
|
1023
1017
|
},
|
|
@@ -1032,7 +1026,7 @@ var plugin_schema_default = {
|
|
|
1032
1026
|
|
|
1033
1027
|
// src/agent/PDManager.ts
|
|
1034
1028
|
import { isPresentationDefinitionEqual } from "@sphereon/ssi-sdk.data-store";
|
|
1035
|
-
import semver from "semver/preload";
|
|
1029
|
+
import semver from "semver/preload.js";
|
|
1036
1030
|
var pdManagerMethods = [
|
|
1037
1031
|
"pdmHasDefinition",
|
|
1038
1032
|
"pdmHasGetDefinitions",
|