@procivis/react-native-one-core 1.52682.0 → 1.56306.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.
- package/README.md +9 -5
- package/android/src/main/java/ch/procivis/one/core/DeserializeSpecific.kt +0 -43
- package/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +17 -2
- package/core-sdk.json +6 -6
- package/dist/src/core.d.ts +4 -2
- package/dist/src/core.js +2 -0
- package/dist/src/credential.d.ts +48 -2
- package/dist/src/credential.js +1 -1
- package/dist/src/credentialSchema.d.ts +12 -1
- package/dist/src/credentialSchema.js +1 -0
- package/dist/src/history.d.ts +7 -4
- package/dist/src/identifier.d.ts +8 -0
- package/dist/src/proof.d.ts +21 -2
- package/dist/src/proof.js +1 -1
- package/dist/src/proofSchema.d.ts +9 -0
- package/dist/src/trust.d.ts +16 -0
- package/ios/Deserialize.swift +0 -46
- package/ios/ProcivisOneCoreModule.m +8 -0
- package/ios/ProcivisOneCoreModule.swift +25 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -153,11 +153,14 @@ Support for the recently published [FIPS-204][fips] is planned for the near futu
|
|
|
153
153
|
|
|
154
154
|
### Exchange and transport
|
|
155
155
|
|
|
156
|
-
-
|
|
157
|
-
- [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
- OpenID4VCI (Issuance)
|
|
157
|
+
- [ID-1][vci]
|
|
158
|
+
- OpenID4VP (Verification)
|
|
159
|
+
- [v1.0][vp1.0]
|
|
160
|
+
- [Draft 25][vp25]
|
|
161
|
+
- [Draft 20][vp20]
|
|
162
|
+
- [OID4VP over BLE][ble]; optimized version of Draft 00
|
|
163
|
+
- OID4VP over MQTT; proprietary adaptation of "OID4VP over BLE" via MQTT channel
|
|
161
164
|
- ISO/IEC 18013
|
|
162
165
|
- [18013-5][iso5]: QR code engagement and offline device retrieval over BLE
|
|
163
166
|
- [18013-7][iso7]: Online data retrieval via OID4VP
|
|
@@ -229,5 +232,6 @@ Version 2.0](./LICENSE).
|
|
|
229
232
|
[vcdi]: https://www.w3.org/TR/vc-data-integrity/
|
|
230
233
|
[vcdm]: https://www.w3.org/TR/vc-data-model-2.0/
|
|
231
234
|
[vci]: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-ID1.html
|
|
235
|
+
[vp1.0]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-final.html
|
|
232
236
|
[vp20]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-20.html
|
|
233
237
|
[vp25]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-25.html
|
|
@@ -51,49 +51,6 @@ object DeserializeSpecific {
|
|
|
51
51
|
return result
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
fun historyListQuery(query: ReadableMap): HistoryListQueryBindingDto {
|
|
55
|
-
return HistoryListQueryBindingDto(
|
|
56
|
-
page = query.getUInt("page")!!,
|
|
57
|
-
pageSize = query.getUInt("pageSize")!!,
|
|
58
|
-
organisationId = query.getString("organisationId").toString(),
|
|
59
|
-
entityId = query.getString("entityId"),
|
|
60
|
-
actions = opt(query.getArray("actions")) { types ->
|
|
61
|
-
enumList(types, HistoryActionBindingEnum::valueOf)
|
|
62
|
-
},
|
|
63
|
-
entityTypes = opt(query.getArray("entityTypes")) { types ->
|
|
64
|
-
enumList(types, HistoryEntityTypeBindingEnum::valueOf)
|
|
65
|
-
},
|
|
66
|
-
createdDateFrom = query.getString("createdDateFrom"),
|
|
67
|
-
createdDateTo = query.getString("createdDateTo"),
|
|
68
|
-
identifierId = query.getString("identifierId"),
|
|
69
|
-
credentialId = query.getString("credentialId"),
|
|
70
|
-
credentialSchemaId = query.getString("credentialSchemaId"),
|
|
71
|
-
search = historySearch(
|
|
72
|
-
query.getString("searchText"),
|
|
73
|
-
query.getString("searchType"),
|
|
74
|
-
),
|
|
75
|
-
proofSchemaId = query.getString("proofSchemaId"),
|
|
76
|
-
)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
private fun historySearch(text: String?, type: String?): HistorySearchBindingDto? {
|
|
80
|
-
if (text == null) {
|
|
81
|
-
return null
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return HistorySearchBindingDto(
|
|
85
|
-
text = text,
|
|
86
|
-
type = opt(type, HistorySearchEnumBindingEnum::valueOf),
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private fun <F, T> opt(input: F?, fn: (F) -> T): T? {
|
|
91
|
-
if (input == null) {
|
|
92
|
-
return null
|
|
93
|
-
}
|
|
94
|
-
return fn(input)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
54
|
fun <T> enumList(entries: ReadableArray, fn: (String) -> T): List<T> {
|
|
98
55
|
val result = mutableListOf<T>()
|
|
99
56
|
for (n in 0 until entries.size()) {
|
|
@@ -213,6 +213,22 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
+
@ReactMethod
|
|
217
|
+
fun initiateIssuance(request: ReadableMap, promise: Promise) {
|
|
218
|
+
asyncCall(promise, scope) {
|
|
219
|
+
val response = getCore().initiateIssuance(construct(request))
|
|
220
|
+
return@asyncCall convertToRN(response)
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
@ReactMethod
|
|
225
|
+
fun continueIssuance(url: String, promise: Promise) {
|
|
226
|
+
asyncCall(promise, scope) {
|
|
227
|
+
val response = getCore().continueIssuance(url)
|
|
228
|
+
return@asyncCall convertToRN(response)
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
216
232
|
@ReactMethod
|
|
217
233
|
fun getPresentationDefinition(proofId: String, promise: Promise) {
|
|
218
234
|
asyncCall(promise, scope) {
|
|
@@ -406,8 +422,7 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
406
422
|
@ReactMethod
|
|
407
423
|
fun getHistory(query: ReadableMap, promise: Promise) {
|
|
408
424
|
asyncCall(promise, scope) {
|
|
409
|
-
val
|
|
410
|
-
val history = getCore().getHistoryList(listQuery)
|
|
425
|
+
val history = getCore().getHistoryList(construct(query))
|
|
411
426
|
return@asyncCall convertToRN(history)
|
|
412
427
|
}
|
|
413
428
|
}
|
package/core-sdk.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"android": {
|
|
3
3
|
"debug": {
|
|
4
|
-
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/android/
|
|
5
|
-
"sha1": "
|
|
4
|
+
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/android/56306/onecore-debug.aar",
|
|
5
|
+
"sha1": "fa86f918237f414fa8a2581bcd0ef33b386acac4"
|
|
6
6
|
},
|
|
7
7
|
"release": {
|
|
8
|
-
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/android/
|
|
9
|
-
"sha1": "
|
|
8
|
+
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/android/56306/onecore-release.aar",
|
|
9
|
+
"sha1": "59a02d824a074e83ddb44ab7b5f29778f0a07fa1"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"ios": {
|
|
13
|
-
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/ios/
|
|
14
|
-
"sha1": "
|
|
13
|
+
"url": "https://onetfstatestorage.blob.core.windows.net/core-sdk/ios/56306/deploy.zip",
|
|
14
|
+
"sha1": "aeb5640771f1cba05bf457f5a60ecb48a5670819"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/src/core.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BackupCreate, ImportBackupMetadata, UnexportableEntities } from "./backup";
|
|
2
2
|
import { Config } from "./config";
|
|
3
|
-
import { CredentialDetail, CredentialListItem, CredentialListQuery, CredentialRevocationCheckResponse, InvitationResultCredentialIssuance } from "./credential";
|
|
3
|
+
import { ContinueIssuanceResponse, CredentialDetail, CredentialListItem, CredentialListQuery, CredentialRevocationCheckResponse, InitiateIssuanceRequest, InitiateIssuanceResponse, InvitationResultCredentialIssuance } from "./credential";
|
|
4
4
|
import { CredentialSchema, CredentialSchemaDetail, CredentialSchemaListQuery, ImportCredentialSchemaRequest, ShareCredentialSchemaResponse } from "./credentialSchema";
|
|
5
5
|
import { DidListItem, DidListQuery, DidRequest } from "./did";
|
|
6
6
|
import { HistoryListItem, HistoryListQuery } from "./history";
|
|
@@ -54,6 +54,8 @@ export interface ONECore {
|
|
|
54
54
|
handleInvitation(url: string, organisationId: string, transport: string[] | undefined): Promise<InvitationResult>;
|
|
55
55
|
holderAcceptCredential(interactionId: InvitationResultCredentialIssuance["interactionId"], didId: DidListItem["id"] | undefined, identifierId: IdentifierListItem["id"] | undefined, keyId: string | undefined, txCode: string | undefined): Promise<void>;
|
|
56
56
|
holderRejectCredential(interactionId: InvitationResultCredentialIssuance["interactionId"]): Promise<void>;
|
|
57
|
+
initiateIssuance(request: InitiateIssuanceRequest): Promise<InitiateIssuanceResponse>;
|
|
58
|
+
continueIssuance(url: string): Promise<ContinueIssuanceResponse>;
|
|
57
59
|
getPresentationDefinition(proofId: ProofDetail["id"]): Promise<PresentationDefinition>;
|
|
58
60
|
holderRejectProof(interactionId: InvitationResultProofRequest["interactionId"]): Promise<void>;
|
|
59
61
|
holderSubmitProof(interactionId: InvitationResultProofRequest["interactionId"], credentials: Record<PresentationDefinitionRequestedCredential["id"], PresentationSubmitCredentialRequest>, didId: DidListItem["id"] | undefined, identifierId: IdentifierListItem["id"] | undefined, keyId: string | undefined): Promise<void>;
|
|
@@ -128,4 +130,4 @@ export interface ONECore {
|
|
|
128
130
|
*/
|
|
129
131
|
uninitialize(deleteData: boolean): Promise<void>;
|
|
130
132
|
}
|
|
131
|
-
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "getDids", "createIdentifier", "getIdentifier", "getIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "getPresentationDefinition", "holderRejectProof", "holderSubmitProof", "getCredentials", "runTask", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "getCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofs", "deleteProof", "proposeProof", "createProofSchema", "getProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "getTrustAnchors", "createTrustEntity", "getTrustEntity", "getTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "getHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "uninitialize"];
|
|
133
|
+
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "getDids", "createIdentifier", "getIdentifier", "getIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinition", "holderRejectProof", "holderSubmitProof", "getCredentials", "runTask", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "getCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofs", "deleteProof", "proposeProof", "createProofSchema", "getProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "getTrustAnchors", "createTrustEntity", "getTrustEntity", "getTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "getHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "uninitialize"];
|
package/dist/src/core.js
CHANGED
package/dist/src/credential.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export type Claim = ClaimValue & {
|
|
|
44
44
|
export interface CredentialListItem {
|
|
45
45
|
id: string;
|
|
46
46
|
createdDate: string;
|
|
47
|
-
issuanceDate
|
|
47
|
+
issuanceDate?: string;
|
|
48
48
|
lastModified: string;
|
|
49
49
|
revocationDate?: string;
|
|
50
50
|
issuer?: IdentifierListItem["id"];
|
|
@@ -53,6 +53,7 @@ export interface CredentialListItem {
|
|
|
53
53
|
role: CredentialRoleEnum;
|
|
54
54
|
suspendEndDate?: string;
|
|
55
55
|
protocol: string;
|
|
56
|
+
profile?: string;
|
|
56
57
|
}
|
|
57
58
|
export interface CredentialDetail extends Omit<CredentialListItem, "issuerDid" | "issuer"> {
|
|
58
59
|
claims: Claim[];
|
|
@@ -78,7 +79,7 @@ export declare enum CredentialListQueryExactColumnEnum {
|
|
|
78
79
|
export declare enum SortableCredentialColumnEnum {
|
|
79
80
|
CREATED_DATE = "CREATED_DATE",
|
|
80
81
|
SCHEMA_NAME = "SCHEMA_NAME",
|
|
81
|
-
|
|
82
|
+
ISSUER = "ISSUER",
|
|
82
83
|
STATE = "STATE"
|
|
83
84
|
}
|
|
84
85
|
export declare enum CredentialListIncludeEntityType {
|
|
@@ -97,7 +98,24 @@ export type CredentialListQuery = ListQuery & {
|
|
|
97
98
|
role?: CredentialRoleEnum;
|
|
98
99
|
ids?: Array<CredentialListItem["id"]>;
|
|
99
100
|
status?: CredentialStateEnum[];
|
|
101
|
+
profile?: string;
|
|
100
102
|
include?: CredentialListIncludeEntityType[];
|
|
103
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
104
|
+
createdDateAfter?: string;
|
|
105
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
106
|
+
createdDateBefore?: string;
|
|
107
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
108
|
+
lastModifiedAfter?: string;
|
|
109
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
110
|
+
lastModifiedBefore?: string;
|
|
111
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
112
|
+
issuanceDateAfter?: string;
|
|
113
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
114
|
+
issuanceDateBefore?: string;
|
|
115
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
116
|
+
revocationDateAfter?: string;
|
|
117
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
118
|
+
revocationDateBefore?: string;
|
|
101
119
|
} & ({
|
|
102
120
|
name?: string;
|
|
103
121
|
searchType?: never;
|
|
@@ -117,6 +135,7 @@ export interface InvitationResultCredentialIssuance {
|
|
|
117
135
|
interactionId: string;
|
|
118
136
|
credentialIds: Array<CredentialListItem["id"]>;
|
|
119
137
|
txCode?: OpenID4VCITxCode;
|
|
138
|
+
credentialConfigurationsSupported: Record<CredentialListItem["id"], CredentialConfigurationSupported>;
|
|
120
139
|
}
|
|
121
140
|
export interface OpenID4VCITxCode {
|
|
122
141
|
inputMode?: OpenID4VCITxCodeInputMode;
|
|
@@ -127,3 +146,30 @@ export declare enum OpenID4VCITxCodeInputMode {
|
|
|
127
146
|
NUMERIC = "NUMERIC",
|
|
128
147
|
TEXT = "TEXT"
|
|
129
148
|
}
|
|
149
|
+
export interface InitiateIssuanceRequest {
|
|
150
|
+
organisationId: string;
|
|
151
|
+
protocol: string;
|
|
152
|
+
issuer: string;
|
|
153
|
+
clientId: string;
|
|
154
|
+
redirectUri?: string;
|
|
155
|
+
scope?: string[];
|
|
156
|
+
authorizationDetails?: InitiateIssuanceAuthorizationDetail[];
|
|
157
|
+
}
|
|
158
|
+
export interface InitiateIssuanceAuthorizationDetail {
|
|
159
|
+
type: string;
|
|
160
|
+
credentialConfigurationId: string;
|
|
161
|
+
}
|
|
162
|
+
export interface InitiateIssuanceResponse {
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
export interface ContinueIssuanceResponse {
|
|
166
|
+
interactionId: string;
|
|
167
|
+
credentialIds: Array<CredentialListItem["id"]>;
|
|
168
|
+
credentialConfigurationsSupported: Record<CredentialListItem["id"], CredentialConfigurationSupported>;
|
|
169
|
+
}
|
|
170
|
+
export interface CredentialConfigurationSupported {
|
|
171
|
+
proofTypesSupported: Record<string, OpenID4VCIProofTypeSupported>;
|
|
172
|
+
}
|
|
173
|
+
export interface OpenID4VCIProofTypeSupported {
|
|
174
|
+
proofSigningAlgValuesSupported: string[];
|
|
175
|
+
}
|
package/dist/src/credential.js
CHANGED
|
@@ -23,7 +23,7 @@ export var SortableCredentialColumnEnum;
|
|
|
23
23
|
(function (SortableCredentialColumnEnum) {
|
|
24
24
|
SortableCredentialColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
25
25
|
SortableCredentialColumnEnum["SCHEMA_NAME"] = "SCHEMA_NAME";
|
|
26
|
-
SortableCredentialColumnEnum["
|
|
26
|
+
SortableCredentialColumnEnum["ISSUER"] = "ISSUER";
|
|
27
27
|
SortableCredentialColumnEnum["STATE"] = "STATE";
|
|
28
28
|
})(SortableCredentialColumnEnum || (SortableCredentialColumnEnum = {}));
|
|
29
29
|
export var CredentialListIncludeEntityType;
|
|
@@ -51,7 +51,8 @@ export declare enum SortableCredentialSchemaColumnEnum {
|
|
|
51
51
|
CREATED_DATE = "CREATED_DATE"
|
|
52
52
|
}
|
|
53
53
|
export declare enum ExactCredentialSchemaFilterColumnEnum {
|
|
54
|
-
NAME = "NAME"
|
|
54
|
+
NAME = "NAME",
|
|
55
|
+
SCHEMA_ID = "SCHEMA_ID"
|
|
55
56
|
}
|
|
56
57
|
export interface CredentialSchemaListQuery extends ListQuery {
|
|
57
58
|
sort?: SortableCredentialSchemaColumnEnum;
|
|
@@ -60,6 +61,16 @@ export interface CredentialSchemaListQuery extends ListQuery {
|
|
|
60
61
|
ids?: string[];
|
|
61
62
|
exact?: ExactCredentialSchemaFilterColumnEnum[];
|
|
62
63
|
include?: CredentialSchemaListIncludeEntityType[];
|
|
64
|
+
schemaId?: string;
|
|
65
|
+
formats?: string[];
|
|
66
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
67
|
+
createdDateAfter?: string;
|
|
68
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
69
|
+
createdDateBefore?: string;
|
|
70
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
71
|
+
lastModifiedAfter?: string;
|
|
72
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
73
|
+
lastModifiedBefore?: string;
|
|
63
74
|
}
|
|
64
75
|
export declare enum WalletStorageType {
|
|
65
76
|
HARDWARE = "HARDWARE",
|
|
@@ -11,6 +11,7 @@ export var SortableCredentialSchemaColumnEnum;
|
|
|
11
11
|
export var ExactCredentialSchemaFilterColumnEnum;
|
|
12
12
|
(function (ExactCredentialSchemaFilterColumnEnum) {
|
|
13
13
|
ExactCredentialSchemaFilterColumnEnum["NAME"] = "NAME";
|
|
14
|
+
ExactCredentialSchemaFilterColumnEnum["SCHEMA_ID"] = "SCHEMA_ID";
|
|
14
15
|
})(ExactCredentialSchemaFilterColumnEnum || (ExactCredentialSchemaFilterColumnEnum = {}));
|
|
15
16
|
export var WalletStorageType;
|
|
16
17
|
(function (WalletStorageType) {
|
package/dist/src/history.d.ts
CHANGED
|
@@ -55,15 +55,18 @@ export interface HistoryListQuery extends ListQuery {
|
|
|
55
55
|
actions?: HistoryActionEnum[];
|
|
56
56
|
entityTypes?: HistoryEntityTypeEnum[];
|
|
57
57
|
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
58
|
-
|
|
58
|
+
createdDateAfter?: string;
|
|
59
59
|
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
60
|
-
|
|
60
|
+
createdDateBefore?: string;
|
|
61
61
|
identifierId?: string;
|
|
62
62
|
credentialId?: string;
|
|
63
63
|
credentialSchemaId?: string;
|
|
64
64
|
proofSchemaId?: string;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
search?: HistoryListSearch;
|
|
66
|
+
}
|
|
67
|
+
export interface HistoryListSearch {
|
|
68
|
+
text: string;
|
|
69
|
+
type?: HistorySearchTypeEnum;
|
|
67
70
|
}
|
|
68
71
|
export interface HistoryErrorMetadata {
|
|
69
72
|
errorCode: string;
|
package/dist/src/identifier.d.ts
CHANGED
|
@@ -122,4 +122,12 @@ export interface IdentifierListQuery extends ListQuery {
|
|
|
122
122
|
keyAlgorithms?: string[];
|
|
123
123
|
keyRoles?: KeyRoleEnum[];
|
|
124
124
|
keyStorages?: string[];
|
|
125
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
126
|
+
createdDateAfter?: string;
|
|
127
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
128
|
+
createdDateBefore?: string;
|
|
129
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
130
|
+
lastModifiedAfter?: string;
|
|
131
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
132
|
+
lastModifiedBefore?: string;
|
|
125
133
|
}
|
package/dist/src/proof.d.ts
CHANGED
|
@@ -44,12 +44,12 @@ export interface ProofDetail {
|
|
|
44
44
|
requestedDate?: string;
|
|
45
45
|
completedDate?: string;
|
|
46
46
|
claimsRemovedAt?: string;
|
|
47
|
+
profile?: string;
|
|
47
48
|
}
|
|
48
49
|
export interface ProofListItem {
|
|
49
50
|
id: string;
|
|
50
51
|
createdDate: string;
|
|
51
52
|
lastModified: string;
|
|
52
|
-
issuanceDate: string;
|
|
53
53
|
requestedDate?: string;
|
|
54
54
|
completedDate?: string;
|
|
55
55
|
verifier?: IdentifierListItem["id"];
|
|
@@ -59,6 +59,7 @@ export interface ProofListItem {
|
|
|
59
59
|
role: ProofRoleEnum;
|
|
60
60
|
schema?: ProofSchemaListItem;
|
|
61
61
|
retainUntilDate?: string;
|
|
62
|
+
profile?: string;
|
|
62
63
|
}
|
|
63
64
|
export interface CreateProofRequest {
|
|
64
65
|
proofSchemaId: ProofSchemaListItem["id"];
|
|
@@ -70,6 +71,7 @@ export interface CreateProofRequest {
|
|
|
70
71
|
scanToVerify?: ScanToVerifyRequest;
|
|
71
72
|
isoMdlEngagement?: string;
|
|
72
73
|
transport?: string[];
|
|
74
|
+
profile?: string;
|
|
73
75
|
}
|
|
74
76
|
export interface ScanToVerifyRequest {
|
|
75
77
|
credential: string;
|
|
@@ -126,7 +128,7 @@ export interface PresentationSubmitCredentialRequest {
|
|
|
126
128
|
}
|
|
127
129
|
export declare enum SortableProofColumnEnum {
|
|
128
130
|
SCHEMA_NAME = "SCHEMA_NAME",
|
|
129
|
-
|
|
131
|
+
VERIFIER = "VERIFIER",
|
|
130
132
|
CREATED_DATE = "CREATED_DATE",
|
|
131
133
|
STATE = "STATE"
|
|
132
134
|
}
|
|
@@ -142,6 +144,23 @@ export interface ProofListQuery extends ListQuery {
|
|
|
142
144
|
proofRoles?: ProofRoleEnum[];
|
|
143
145
|
proofSchemaIds?: string[];
|
|
144
146
|
exact?: ExactProofFilterColumnEnum[];
|
|
147
|
+
profile?: string;
|
|
148
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
149
|
+
createdDateAfter?: string;
|
|
150
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
151
|
+
createdDateBefore?: string;
|
|
152
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
153
|
+
lastModifiedAfter?: string;
|
|
154
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
155
|
+
lastModifiedBefore?: string;
|
|
156
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
157
|
+
requestedDateAfter?: string;
|
|
158
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
159
|
+
requestedDateBefore?: string;
|
|
160
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
161
|
+
completedDateAfter?: string;
|
|
162
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
163
|
+
completedDateBefore?: string;
|
|
145
164
|
}
|
|
146
165
|
export interface ProposeProofResponse {
|
|
147
166
|
proofId: string;
|
package/dist/src/proof.js
CHANGED
|
@@ -26,7 +26,7 @@ export var PresentationDefinitionRuleTypeEnum;
|
|
|
26
26
|
export var SortableProofColumnEnum;
|
|
27
27
|
(function (SortableProofColumnEnum) {
|
|
28
28
|
SortableProofColumnEnum["SCHEMA_NAME"] = "SCHEMA_NAME";
|
|
29
|
-
SortableProofColumnEnum["
|
|
29
|
+
SortableProofColumnEnum["VERIFIER"] = "VERIFIER";
|
|
30
30
|
SortableProofColumnEnum["CREATED_DATE"] = "CREATED_DATE";
|
|
31
31
|
SortableProofColumnEnum["STATE"] = "STATE";
|
|
32
32
|
})(SortableProofColumnEnum || (SortableProofColumnEnum = {}));
|
|
@@ -48,6 +48,15 @@ export interface ProofSchemaListQuery extends ListQuery {
|
|
|
48
48
|
name?: string;
|
|
49
49
|
exact?: ExactProofSchemaFilterColumnEnum[];
|
|
50
50
|
ids?: Array<ProofSchema["id"]>;
|
|
51
|
+
formats?: string[];
|
|
52
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
53
|
+
createdDateAfter?: string;
|
|
54
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
55
|
+
createdDateBefore?: string;
|
|
56
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
57
|
+
lastModifiedAfter?: string;
|
|
58
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
59
|
+
lastModifiedBefore?: string;
|
|
51
60
|
}
|
|
52
61
|
export interface ImportProofSchemaRequest {
|
|
53
62
|
organisationId: string;
|
package/dist/src/trust.d.ts
CHANGED
|
@@ -40,6 +40,14 @@ export interface TrustAnchorListQuery extends Omit<ListQuery, "organisationId">
|
|
|
40
40
|
exact?: ExactTrustAnchorFilterColumnEnum[];
|
|
41
41
|
type?: string;
|
|
42
42
|
isPublisher?: boolean;
|
|
43
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
44
|
+
createdDateAfter?: string;
|
|
45
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
46
|
+
createdDateBefore?: string;
|
|
47
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
48
|
+
lastModifiedAfter?: string;
|
|
49
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
50
|
+
lastModifiedBefore?: string;
|
|
43
51
|
}
|
|
44
52
|
export interface TrustEntityListItem {
|
|
45
53
|
id: string;
|
|
@@ -106,6 +114,14 @@ export interface TrustEntityListQuery {
|
|
|
106
114
|
exact?: ExactTrustEntityFilterColumnEnum[];
|
|
107
115
|
type?: string;
|
|
108
116
|
isPublisher?: boolean;
|
|
117
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
118
|
+
createdDateAfter?: string;
|
|
119
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
120
|
+
createdDateBefore?: string;
|
|
121
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
122
|
+
lastModifiedAfter?: string;
|
|
123
|
+
/** accepts the RFC3339 format, e.g. use the {@link Date.toISOString} */
|
|
124
|
+
lastModifiedBefore?: string;
|
|
109
125
|
}
|
|
110
126
|
export declare enum SortableTrustEntityColumnEnum {
|
|
111
127
|
NAME = "NAME",
|
package/ios/Deserialize.swift
CHANGED
|
@@ -79,17 +79,6 @@ private func deserializeSpecific(_ value: Any, _ type: Any.Type, _ codingPath: [
|
|
|
79
79
|
return deserializeCredentialSchemaTypeBindingEnum(data)
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
if type == HistoryListQueryBindingDto.self {
|
|
83
|
-
guard let data = value as? NSDictionary else {
|
|
84
|
-
let description = "Expected to decode \(type) but found '\(value)' instead."
|
|
85
|
-
throw DecodingError.typeMismatch(
|
|
86
|
-
type,
|
|
87
|
-
DecodingError.Context(codingPath: codingPath, debugDescription: description)
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
return try deserializeHistoryListQuery(data)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
82
|
if type == OptionalString.self {
|
|
94
83
|
if value is NSNull {
|
|
95
84
|
return OptionalString.none
|
|
@@ -124,38 +113,3 @@ private func deserializeCredentialSchemaTypeBindingEnum(_ credentialSchemaType:
|
|
|
124
113
|
return .other(value: other)
|
|
125
114
|
}
|
|
126
115
|
}
|
|
127
|
-
|
|
128
|
-
private func deserializeHistoryListQuery(_ query: NSDictionary) throws -> HistoryListQueryBindingDto
|
|
129
|
-
{
|
|
130
|
-
return HistoryListQueryBindingDto(
|
|
131
|
-
page: try safeCast(query.value(forKey: "page")),
|
|
132
|
-
pageSize: try safeCast(query.value(forKey: "pageSize")),
|
|
133
|
-
organisationId: try safeCast(query.value(forKey: "organisationId")),
|
|
134
|
-
entityId: query.value(forKey: "entityId") as? String,
|
|
135
|
-
entityTypes: try opt(query.value(forKey: "entityTypes") as? NSArray, enumList),
|
|
136
|
-
actions: try opt(query.value(forKey: "actions") as? NSArray, enumList),
|
|
137
|
-
createdDateFrom: query.value(forKey: "createdDateFrom") as? String,
|
|
138
|
-
createdDateTo: query.value(forKey: "createdDateTo") as? String,
|
|
139
|
-
identifierId: query.value(forKey: "identifierId") as? String,
|
|
140
|
-
credentialId: query.value(forKey: "credentialId") as? String,
|
|
141
|
-
credentialSchemaId: query.value(forKey: "credentialSchemaId") as? String,
|
|
142
|
-
proofSchemaId: query.value(forKey: "proofSchemaId") as? String,
|
|
143
|
-
search: try deserializeHistorySearch(
|
|
144
|
-
text: query.value(forKey: "searchText") as? String,
|
|
145
|
-
type: query.value(forKey: "searchType") as? String
|
|
146
|
-
)
|
|
147
|
-
)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
private func deserializeHistorySearch(text: String?, type: String?) throws
|
|
151
|
-
-> HistorySearchBindingDto?
|
|
152
|
-
{
|
|
153
|
-
if text == nil {
|
|
154
|
-
return nil
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return HistorySearchBindingDto(
|
|
158
|
-
text: text!,
|
|
159
|
-
type: try opt(type, deserializeEnum)
|
|
160
|
-
)
|
|
161
|
-
}
|
|
@@ -81,6 +81,14 @@ RCT_EXTERN_METHOD(holderRejectCredential:(NSString *)interactionId
|
|
|
81
81
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
82
82
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
83
83
|
|
|
84
|
+
RCT_EXTERN_METHOD(initiateIssuance:(NSDictionary *)request
|
|
85
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
86
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
87
|
+
|
|
88
|
+
RCT_EXTERN_METHOD(continueIssuance:(NSString *)url
|
|
89
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
90
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
91
|
+
|
|
84
92
|
RCT_EXTERN_METHOD(getPresentationDefinition:(NSString *)proofId
|
|
85
93
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
86
94
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -260,6 +260,30 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
@objc(initiateIssuance:resolver:rejecter:)
|
|
264
|
+
func initiateIssuance(
|
|
265
|
+
request: NSDictionary,
|
|
266
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
267
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
268
|
+
) {
|
|
269
|
+
asyncCall(resolve, reject) {
|
|
270
|
+
let result = try await self.getCore().initiateIssuance(request: try deserialize(request))
|
|
271
|
+
return try serializeAny(result)
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@objc(continueIssuance:resolver:rejecter:)
|
|
276
|
+
func continueIssuance(
|
|
277
|
+
url: String,
|
|
278
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
279
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
280
|
+
) {
|
|
281
|
+
asyncCall(resolve, reject) {
|
|
282
|
+
let result = try await self.getCore().continueIssuance(url: url)
|
|
283
|
+
return try serializeAny(result)
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
263
287
|
@objc(getPresentationDefinition:resolver:rejecter:)
|
|
264
288
|
func getPresentationDefinition(
|
|
265
289
|
proofId: String,
|
|
@@ -710,7 +734,7 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
710
734
|
return try serializeAny(trustEntity)
|
|
711
735
|
}
|
|
712
736
|
}
|
|
713
|
-
|
|
737
|
+
|
|
714
738
|
@objc(resolveTrustEntityByIdentifier:resolver:rejecter:)
|
|
715
739
|
func resolveTrustEntityByIdentifier(
|
|
716
740
|
request: NSDictionary,
|