@procivis/react-native-one-core 1.95657.0 → 1.101239.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/android/src/main/java/ch/procivis/one/core/ProcivisOneCoreModule.kt +40 -0
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +14 -0
- package/core-sdk.json +6 -6
- package/dist/src/core.d.ts +1 -1
- package/dist/src/core.js +5 -0
- package/dist/src/one-core-uniffi-intf.d.ts +558 -13
- package/dist/src/one-core-uniffi-intf.js +31 -1
- package/ios/ProcivisOneCoreModule.m +21 -0
- package/ios/ProcivisOneCoreModule.swift +61 -0
- package/ios/RSEPinPad.swift +0 -4
- package/ios/RSEPinPadManager.m +0 -1
- package/ios/Serialize.swift +8 -2
- package/package.json +1 -1
|
@@ -343,6 +343,14 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
+
@ReactMethod
|
|
347
|
+
fun getCredentialTrustInformation(credentialId: String, promise: Promise) {
|
|
348
|
+
asyncCall(promise, scope) {
|
|
349
|
+
val result = getCore().getCredentialTrustInformation(credentialId)
|
|
350
|
+
return@asyncCall convertToRN(result)
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
346
354
|
@ReactMethod
|
|
347
355
|
fun deleteCredential(credentialId: String, promise: Promise) {
|
|
348
356
|
asyncCall(promise, scope) {
|
|
@@ -405,6 +413,14 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
405
413
|
}
|
|
406
414
|
}
|
|
407
415
|
|
|
416
|
+
@ReactMethod
|
|
417
|
+
fun getProofTrustInformation(proofId: String, promise: Promise) {
|
|
418
|
+
asyncCall(promise, scope) {
|
|
419
|
+
val result = getCore().getProofTrustInformation(proofId)
|
|
420
|
+
return@asyncCall convertToRN(result)
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
408
424
|
@ReactMethod
|
|
409
425
|
fun listProofs(query: ReadableMap, promise: Promise) {
|
|
410
426
|
asyncCall(promise, scope) {
|
|
@@ -689,6 +705,30 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
|
|
|
689
705
|
}
|
|
690
706
|
}
|
|
691
707
|
|
|
708
|
+
@ReactMethod
|
|
709
|
+
fun registerVerifierInstance(request: ReadableMap, promise: Promise) {
|
|
710
|
+
asyncCall(promise, scope) {
|
|
711
|
+
val result = getCore().registerVerifierInstance(construct(request))
|
|
712
|
+
return@asyncCall convertToRN(result)
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
@ReactMethod
|
|
717
|
+
fun updateVerifierInstance(verifierInstanceId: String, request: ReadableMap, promise: Promise) {
|
|
718
|
+
asyncCall(promise, scope) {
|
|
719
|
+
getCore().updateVerifierInstance(verifierInstanceId, construct(request))
|
|
720
|
+
return@asyncCall null
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
@ReactMethod
|
|
725
|
+
fun getVerifierInstanceTrustCollections(verifierInstanceId: String, promise: Promise) {
|
|
726
|
+
asyncCall(promise, scope) {
|
|
727
|
+
val result = getCore().getVerifierInstanceTrustCollections(verifierInstanceId)
|
|
728
|
+
return@asyncCall convertToRN(result)
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
692
732
|
@ReactMethod
|
|
693
733
|
fun nfcReadIsoMdlEngagement(request: ReadableMap, promise: Promise) {
|
|
694
734
|
asyncCall(promise, scope) {
|
|
@@ -73,6 +73,14 @@ object SerializeSpecific {
|
|
|
73
73
|
values.pushString(metadata.v1)
|
|
74
74
|
result.putArray("value", values)
|
|
75
75
|
}
|
|
76
|
+
|
|
77
|
+
is HistoryMetadata.WalletRelyingParty -> {
|
|
78
|
+
result.putString("type_", "WALLET_RELYING_PARTY")
|
|
79
|
+
result.putMap(
|
|
80
|
+
"value",
|
|
81
|
+
convertToRN(metadata.value) as ReadableMap
|
|
82
|
+
)
|
|
83
|
+
}
|
|
76
84
|
}
|
|
77
85
|
return result
|
|
78
86
|
}
|
|
@@ -86,6 +94,12 @@ object SerializeSpecific {
|
|
|
86
94
|
"applicableCredentials",
|
|
87
95
|
convertToRN(query.applicableCredentials) as ReadableArray
|
|
88
96
|
)
|
|
97
|
+
query.purpose?.let {
|
|
98
|
+
val purpose = Arguments.createMap()
|
|
99
|
+
it.forEach { (key, value) -> purpose.putString(key, value) }
|
|
100
|
+
result.putMap("purpose", purpose)
|
|
101
|
+
}
|
|
102
|
+
|
|
89
103
|
}
|
|
90
104
|
|
|
91
105
|
is ApplicableCredentialOrFailureHint.FailureHint -> {
|
package/core-sdk.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"android": {
|
|
3
3
|
"debug": {
|
|
4
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
5
|
-
"sha1": "
|
|
4
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/101239/android/onecore-debug.aar",
|
|
5
|
+
"sha1": "203ac2e7d295a42a640e49231866af296044c7f6"
|
|
6
6
|
},
|
|
7
7
|
"release": {
|
|
8
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
9
|
-
"sha1": "
|
|
8
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/101239/android/onecore-release.aar",
|
|
9
|
+
"sha1": "ca6fa85ef86b49cd02897ca7ce44f7324c8d81fd"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"ios": {
|
|
13
|
-
"url": "https://onesdk.blob.core.windows.net/core-sdk/
|
|
14
|
-
"sha1": "
|
|
13
|
+
"url": "https://onesdk.blob.core.windows.net/core-sdk/101239/ios/deploy.zip",
|
|
14
|
+
"sha1": "1190a61b7d55a6995e960e1e7618c0316c66bf38"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/dist/src/core.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export interface ONECore extends Omit<OneCore, "version" | "getConfig"> {
|
|
|
10
10
|
* @hidden
|
|
11
11
|
* New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
12
12
|
*/
|
|
13
|
-
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinition", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "listProofs", "deleteProof", "proposeProof", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "listTrustAnchors", "createTrustEntity", "getTrustEntity", "listTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "holderWalletUnitUpdate", "holderGetWalletUnitTrustCollections", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
|
|
13
|
+
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinition", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "getCredentialTrustInformation", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofTrustInformation", "listProofs", "deleteProof", "proposeProof", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "listTrustAnchors", "createTrustEntity", "getTrustEntity", "listTrustEntities", "getTrustEntityByDid", "resolveTrustEntityByIdentifier", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "holderWalletUnitUpdate", "holderGetWalletUnitTrustCollections", "registerVerifierInstance", "updateVerifierInstance", "getVerifierInstanceTrustCollections", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
|
package/dist/src/core.js
CHANGED
|
@@ -30,6 +30,7 @@ export const interfaceMethodNames = [
|
|
|
30
30
|
"runTask",
|
|
31
31
|
"deleteProofClaims",
|
|
32
32
|
"getCredential",
|
|
33
|
+
"getCredentialTrustInformation",
|
|
33
34
|
"deleteCredential",
|
|
34
35
|
"importCredentialSchema",
|
|
35
36
|
"getCredentialSchema",
|
|
@@ -40,6 +41,7 @@ export const interfaceMethodNames = [
|
|
|
40
41
|
"shareProofSchema",
|
|
41
42
|
"shareCredentialSchema",
|
|
42
43
|
"getProof",
|
|
44
|
+
"getProofTrustInformation",
|
|
43
45
|
"listProofs",
|
|
44
46
|
"deleteProof",
|
|
45
47
|
"proposeProof",
|
|
@@ -75,6 +77,9 @@ export const interfaceMethodNames = [
|
|
|
75
77
|
"holderGetWalletUnit",
|
|
76
78
|
"holderWalletUnitUpdate",
|
|
77
79
|
"holderGetWalletUnitTrustCollections",
|
|
80
|
+
"registerVerifierInstance",
|
|
81
|
+
"updateVerifierInstance",
|
|
82
|
+
"getVerifierInstanceTrustCollections",
|
|
78
83
|
"nfcReadIsoMdlEngagement",
|
|
79
84
|
"nfcStopIsoMdlEngagement",
|
|
80
85
|
"uninitialize",
|