@procivis/react-native-one-core 1.98296.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 +16 -0
- package/android/src/main/java/ch/procivis/one/core/SerializeSpecific.kt +12 -5
- package/core-sdk.json +6 -6
- package/dist/src/core.d.ts +1 -1
- package/dist/src/core.js +2 -0
- package/dist/src/one-core-uniffi-intf.d.ts +55 -8
- package/dist/src/one-core-uniffi-intf.js +3 -1
- package/ios/ProcivisOneCoreModule.m +8 -0
- package/ios/ProcivisOneCoreModule.swift +24 -0
- package/ios/Serialize.swift +6 -5
- 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) {
|
|
@@ -74,11 +74,12 @@ object SerializeSpecific {
|
|
|
74
74
|
result.putArray("value", values)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
is HistoryMetadata.
|
|
78
|
-
result.putString("type_", "
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
is HistoryMetadata.WalletRelyingParty -> {
|
|
78
|
+
result.putString("type_", "WALLET_RELYING_PARTY")
|
|
79
|
+
result.putMap(
|
|
80
|
+
"value",
|
|
81
|
+
convertToRN(metadata.value) as ReadableMap
|
|
82
|
+
)
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
return result
|
|
@@ -93,6 +94,12 @@ object SerializeSpecific {
|
|
|
93
94
|
"applicableCredentials",
|
|
94
95
|
convertToRN(query.applicableCredentials) as ReadableArray
|
|
95
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
|
+
|
|
96
103
|
}
|
|
97
104
|
|
|
98
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", "registerVerifierInstance", "updateVerifierInstance", "getVerifierInstanceTrustCollections", "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",
|
|
@@ -150,8 +150,7 @@ export interface CreateIdentifierTrustInformationRequest {
|
|
|
150
150
|
export interface CreateOrganisationRequest {
|
|
151
151
|
/** If no UUID is passed, one will be created. */
|
|
152
152
|
id?: string;
|
|
153
|
-
|
|
154
|
-
name?: string;
|
|
153
|
+
parentOrganisation?: string;
|
|
155
154
|
}
|
|
156
155
|
/**
|
|
157
156
|
* If protocol is `ISO_MDL`, specify the device engagement type
|
|
@@ -584,6 +583,31 @@ export interface ErrorResponse {
|
|
|
584
583
|
message: string;
|
|
585
584
|
cause?: Cause;
|
|
586
585
|
}
|
|
586
|
+
export interface EudiIntermediary {
|
|
587
|
+
name?: string;
|
|
588
|
+
identifier: string;
|
|
589
|
+
website: string;
|
|
590
|
+
email?: string;
|
|
591
|
+
phone?: string;
|
|
592
|
+
country: string;
|
|
593
|
+
}
|
|
594
|
+
export interface EudiSupervisoryAuthority {
|
|
595
|
+
email: string;
|
|
596
|
+
phone: string;
|
|
597
|
+
uri: string;
|
|
598
|
+
}
|
|
599
|
+
export interface EudiTrustInformation {
|
|
600
|
+
name: string;
|
|
601
|
+
website: string;
|
|
602
|
+
email?: string;
|
|
603
|
+
phone?: string;
|
|
604
|
+
country: string;
|
|
605
|
+
identifier: string;
|
|
606
|
+
serviceDescription: Array<Record<string, string>>;
|
|
607
|
+
supervisoryAuthority: EudiSupervisoryAuthority;
|
|
608
|
+
intermediary?: EudiIntermediary;
|
|
609
|
+
isPublicSector: boolean;
|
|
610
|
+
}
|
|
587
611
|
export interface GenerateKeyRequest {
|
|
588
612
|
/** Specifies the organizational context of this operation. */
|
|
589
613
|
organisationId: string;
|
|
@@ -956,6 +980,10 @@ export interface Metadata {
|
|
|
956
980
|
dbHash: string;
|
|
957
981
|
createdAt: string;
|
|
958
982
|
}
|
|
983
|
+
export interface MultiLangString {
|
|
984
|
+
lang: string;
|
|
985
|
+
value: string;
|
|
986
|
+
}
|
|
959
987
|
/** Optional messages to be displayed on (iOS) system overlay. */
|
|
960
988
|
export interface NfcScanRequest {
|
|
961
989
|
inProgressMessage?: string;
|
|
@@ -1471,6 +1499,13 @@ export interface TrustEntityListQuery {
|
|
|
1471
1499
|
lastModifiedAfter?: string;
|
|
1472
1500
|
lastModifiedBefore?: string;
|
|
1473
1501
|
}
|
|
1502
|
+
export interface TrustInformationDetail {
|
|
1503
|
+
/**
|
|
1504
|
+
* EUDI trust information received from Access Certificates, Registration
|
|
1505
|
+
* Certificates, or National Registry public APIs.
|
|
1506
|
+
*/
|
|
1507
|
+
eudiEcosystem?: EudiTrustInformation;
|
|
1508
|
+
}
|
|
1474
1509
|
export interface UnexportableEntities {
|
|
1475
1510
|
credentials: Array<CredentialDetail>;
|
|
1476
1511
|
keys: Array<KeyListItem>;
|
|
@@ -1497,14 +1532,13 @@ export interface UpdateVerifierInstanceRequest {
|
|
|
1497
1532
|
export interface UpsertOrganisationRequest {
|
|
1498
1533
|
/** Unique identifier of the organization to create or update. */
|
|
1499
1534
|
id: string;
|
|
1500
|
-
/** Organization's display name. */
|
|
1501
|
-
name?: string;
|
|
1502
1535
|
/** Set to `true` to deactivate the organization. */
|
|
1503
1536
|
deactivate?: boolean;
|
|
1504
1537
|
/** Wallet Provider use only. */
|
|
1505
1538
|
walletProvider?: string | null;
|
|
1506
1539
|
/** Wallet Provider use only. */
|
|
1507
1540
|
walletProviderIssuer?: string | null;
|
|
1541
|
+
parentOrganisation?: string | null;
|
|
1508
1542
|
}
|
|
1509
1543
|
export interface Version {
|
|
1510
1544
|
target: string;
|
|
@@ -1519,9 +1553,13 @@ export interface WalletProvider {
|
|
|
1519
1553
|
url: string;
|
|
1520
1554
|
type: WalletProviderType;
|
|
1521
1555
|
}
|
|
1556
|
+
export interface WalletRelyingPartyMetadata {
|
|
1557
|
+
name: string;
|
|
1558
|
+
}
|
|
1522
1559
|
export type ApplicableCredentialOrFailureHint = {
|
|
1523
1560
|
type_: "APPLICABLE_CREDENTIALS";
|
|
1524
1561
|
applicableCredentials: Array<PresentationDefinitionV2Credential>;
|
|
1562
|
+
purpose?: Record<string, string>;
|
|
1525
1563
|
} | {
|
|
1526
1564
|
type_: "FAILURE_HINT";
|
|
1527
1565
|
failureHint: CredentialQueryFailureHint;
|
|
@@ -1579,7 +1617,8 @@ export declare enum CacheType {
|
|
|
1579
1617
|
TRUST_LIST = "TRUST_LIST",
|
|
1580
1618
|
X509_CRL = "X509_CRL",
|
|
1581
1619
|
ANDROID_ATTESTATION_CRL = "ANDROID_ATTESTATION_CRL",
|
|
1582
|
-
|
|
1620
|
+
OPEN_ID_METADATA_HOLDER = "OPEN_ID_METADATA_HOLDER",
|
|
1621
|
+
OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER"
|
|
1583
1622
|
}
|
|
1584
1623
|
export declare enum CertificateRole {
|
|
1585
1624
|
AUTHENTICATION = "AUTHENTICATION",
|
|
@@ -1766,7 +1805,8 @@ export declare enum HistoryAction {
|
|
|
1766
1805
|
INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
|
|
1767
1806
|
DELIVERED = "DELIVERED",
|
|
1768
1807
|
WRP_AC_RECEIVED = "WRP_AC_RECEIVED",
|
|
1769
|
-
WRP_RC_RECEIVED = "WRP_RC_RECEIVED"
|
|
1808
|
+
WRP_RC_RECEIVED = "WRP_RC_RECEIVED",
|
|
1809
|
+
WRP_NR_RECEIVED = "WRP_NR_RECEIVED"
|
|
1770
1810
|
}
|
|
1771
1811
|
export declare enum HistoryEntityType {
|
|
1772
1812
|
KEY = "KEY",
|
|
@@ -1808,8 +1848,8 @@ export type HistoryMetadata = {
|
|
|
1808
1848
|
type_: "WALLET_UNIT_JWT";
|
|
1809
1849
|
value: [string];
|
|
1810
1850
|
} | {
|
|
1811
|
-
type_: "
|
|
1812
|
-
value:
|
|
1851
|
+
type_: "WALLET_RELYING_PARTY";
|
|
1852
|
+
value: WalletRelyingPartyMetadata;
|
|
1813
1853
|
};
|
|
1814
1854
|
export declare enum HistorySearchType {
|
|
1815
1855
|
ALL = "ALL",
|
|
@@ -2212,6 +2252,8 @@ export interface OneCore {
|
|
|
2212
2252
|
* preferences for suitable key storage types for wallets to use.
|
|
2213
2253
|
*/
|
|
2214
2254
|
getCredentialSchema(credentialSchemaId: string): Promise<CredentialSchemaDetail>;
|
|
2255
|
+
/** Returns detailed trust information about a credential issuer. */
|
|
2256
|
+
getCredentialTrustInformation(credentialId: string): Promise<TrustInformationDetail>;
|
|
2215
2257
|
/** Returns details on a single event. */
|
|
2216
2258
|
getHistoryEntry(historyId: string): Promise<HistoryListItem>;
|
|
2217
2259
|
getIdentifier(id: string): Promise<IdentifierDetail>;
|
|
@@ -2220,6 +2262,11 @@ export interface OneCore {
|
|
|
2220
2262
|
/** Returns detailed information about a proof request. */
|
|
2221
2263
|
getProof(proofId: string): Promise<ProofDetail>;
|
|
2222
2264
|
getProofSchema(proofSchemaId: string): Promise<ProofSchemaDetail>;
|
|
2265
|
+
/**
|
|
2266
|
+
* Returns detailed trust information about the requesting entity for a
|
|
2267
|
+
* proof request.
|
|
2268
|
+
*/
|
|
2269
|
+
getProofTrustInformation(proofId: string): Promise<TrustInformationDetail>;
|
|
2223
2270
|
getRemoteTrustEntity(didId: string): Promise<RemoteTrustEntityDetail>;
|
|
2224
2271
|
getTrustAnchor(trustAnchorId: string): Promise<TrustAnchorDetail>;
|
|
2225
2272
|
getTrustEntity(trustEntityId: string): Promise<TrustEntityDetail>;
|
|
@@ -11,7 +11,8 @@ export var CacheType;
|
|
|
11
11
|
CacheType["TRUST_LIST"] = "TRUST_LIST";
|
|
12
12
|
CacheType["X509_CRL"] = "X509_CRL";
|
|
13
13
|
CacheType["ANDROID_ATTESTATION_CRL"] = "ANDROID_ATTESTATION_CRL";
|
|
14
|
-
CacheType["
|
|
14
|
+
CacheType["OPEN_ID_METADATA_HOLDER"] = "OPEN_ID_METADATA_HOLDER";
|
|
15
|
+
CacheType["OPEN_ID_METADATA_ISSUER"] = "OPEN_ID_METADATA_ISSUER";
|
|
15
16
|
})(CacheType || (CacheType = {}));
|
|
16
17
|
export var CertificateRole;
|
|
17
18
|
(function (CertificateRole) {
|
|
@@ -157,6 +158,7 @@ export var HistoryAction;
|
|
|
157
158
|
HistoryAction["DELIVERED"] = "DELIVERED";
|
|
158
159
|
HistoryAction["WRP_AC_RECEIVED"] = "WRP_AC_RECEIVED";
|
|
159
160
|
HistoryAction["WRP_RC_RECEIVED"] = "WRP_RC_RECEIVED";
|
|
161
|
+
HistoryAction["WRP_NR_RECEIVED"] = "WRP_NR_RECEIVED";
|
|
160
162
|
})(HistoryAction || (HistoryAction = {}));
|
|
161
163
|
export var HistoryEntityType;
|
|
162
164
|
(function (HistoryEntityType) {
|
|
@@ -113,6 +113,10 @@ RCT_EXTERN_METHOD(getCredential:(NSString *)credentialId
|
|
|
113
113
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
114
114
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
115
115
|
|
|
116
|
+
RCT_EXTERN_METHOD(getCredentialTrustInformation:(NSString *)credentialId
|
|
117
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
118
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
119
|
+
|
|
116
120
|
RCT_EXTERN_METHOD(deleteCredential:(NSString *)credentialId
|
|
117
121
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
118
122
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -183,6 +187,10 @@ RCT_EXTERN_METHOD(getProof:(NSString *)proofId
|
|
|
183
187
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
184
188
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
185
189
|
|
|
190
|
+
RCT_EXTERN_METHOD(getProofTrustInformation:(NSString *)proofId
|
|
191
|
+
resolver:(RCTPromiseResolveBlock)resolve
|
|
192
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
193
|
+
|
|
186
194
|
RCT_EXTERN_METHOD(listProofs:(NSDictionary *)query
|
|
187
195
|
resolver:(RCTPromiseResolveBlock)resolve
|
|
188
196
|
rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -353,6 +353,18 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
@objc(getCredentialTrustInformation:resolver:rejecter:)
|
|
357
|
+
func getCredentialTrustInformation(
|
|
358
|
+
credentialId: String,
|
|
359
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
360
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
361
|
+
) {
|
|
362
|
+
asyncCall(resolve, reject) {
|
|
363
|
+
let result = try await self.getCore().getCredentialTrustInformation(credentialId: credentialId)
|
|
364
|
+
return try serializeAny(result)
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
356
368
|
@objc(deleteCredential:resolver:rejecter:)
|
|
357
369
|
func deleteCredential(
|
|
358
370
|
credentialId: String,
|
|
@@ -561,6 +573,18 @@ class ProcivisOneCoreModule: RCTEventEmitter {
|
|
|
561
573
|
}
|
|
562
574
|
}
|
|
563
575
|
|
|
576
|
+
@objc(getProofTrustInformation:resolver:rejecter:)
|
|
577
|
+
func getProofTrustInformation(
|
|
578
|
+
proofId: String,
|
|
579
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
580
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
581
|
+
) {
|
|
582
|
+
asyncCall(resolve, reject) {
|
|
583
|
+
let result = try await self.getCore().getProofTrustInformation(proofId: proofId)
|
|
584
|
+
return try serializeAny(result)
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
564
588
|
@objc(listProofs:resolver:rejecter:)
|
|
565
589
|
func listProofs(
|
|
566
590
|
query: NSDictionary,
|
package/ios/Serialize.swift
CHANGED
|
@@ -64,10 +64,10 @@ private func serialize(historyMetadata: HistoryMetadata) throws -> NSDictionary
|
|
|
64
64
|
"type_": "WALLET_UNIT_JWT",
|
|
65
65
|
"value": [value]
|
|
66
66
|
];
|
|
67
|
-
case let .
|
|
67
|
+
case let .walletRelyingParty(value):
|
|
68
68
|
return [
|
|
69
|
-
"type_": "
|
|
70
|
-
"value":
|
|
69
|
+
"type_": "WALLET_RELYING_PARTY",
|
|
70
|
+
"value": try serializeAny(value)
|
|
71
71
|
];
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -157,10 +157,11 @@ private func serialize(invitationResponse: HandleInvitationResponse) throws -> N
|
|
|
157
157
|
|
|
158
158
|
private func serialize(applicableCredentialQuery: ApplicableCredentialOrFailureHint) throws -> NSDictionary {
|
|
159
159
|
switch (applicableCredentialQuery) {
|
|
160
|
-
case let .applicableCredentials(applicableCredentials
|
|
160
|
+
case let .applicableCredentials(applicableCredentials, purpose):
|
|
161
161
|
return [
|
|
162
162
|
"type_": "APPLICABLE_CREDENTIALS",
|
|
163
|
-
"applicableCredentials": try serializeAny(
|
|
163
|
+
"applicableCredentials": try serializeAny(applicableCredentials),
|
|
164
|
+
"purpose": purpose
|
|
164
165
|
];
|
|
165
166
|
|
|
166
167
|
case let .failureHint(failureHint: value):
|