@procivis/react-native-one-core 1.115964.0 → 1.119306.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 CHANGED
@@ -86,61 +86,24 @@ regulatory ecosystems.
86
86
  We continue to look for more opportunities for interoperability testing as the standards
87
87
  and regulations mature and harden.
88
88
 
89
- ## Supported standards
90
-
91
- ### Credential models
92
-
93
- #### IETF SD-JWT VC
94
-
95
- - [IETF SD-JWT-based Verifiable Credentials][sdjwtvc]:
96
-
97
- | Standard | Supported representations | Supported proof/signature types |
98
- | -------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
99
- | IETF SD-JWT VC | SD-JWT | <ul><li>JOSE / ECDSA [ES256][es2]</li><li>JOSE / EdDSA [Ed25519][ed255]</li><li>JOSE / [ML-DSA-65 (FIPS 204)][fips]\*</li></ul> |
100
-
101
- #### ISO mdoc
102
-
103
- - [ISO/IEC 18013-5:2021][iso5] standard for mdoc credentials in the following variations:
104
-
105
- | Standard | Supported representations | Supported proof/signature types |
106
- | -------------------- | ------------------------- | --------------------------------------------------------------------------------- |
107
- | ISO/IEC 18013-5:2021 | mdoc | <ul><li>COSE / ECDSA [ES256][es2]</li><li>COSE / EdDSA [Ed25519][ed255]</li></ul> |
108
-
109
- #### W3C VC
110
-
111
- - [W3C Verifiable Credentials Data Model 2.0][vcdm] in the following variations:
112
-
113
- | Securing mechanism | Supported representations | Supported proof/signature types |
114
- | -------------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
115
- | [W3C Data Integrity Proofs][vcdi] (embedded) | [JSON-LD][jld] in Compacted Document Form | <ul><li>[W3C Data Integrity ECDSA Cryptosuites v1.0][ecd] / [ecdsa-rdfc-2019][ecd2019]</li><li>[W3C Data Integrity EdDSA Cryptosuites v1.0][edd] / [eddsa-rdfc-2022][edd2022]</li><li>[W3C Data Integrity BBS Cryptosuites v1.0][bbs] / [bbs-2023][bbs2023]</li></ul> |
116
- | [W3C VC-JOSE-COSE][jose] (enveloping) | <ul><li>[SD-JWT][sdjwt]</li><li>[JWT][jw]</li></ul> | <ul><li>JOSE / ECDSA [ES256][es2]</li><li>JOSE / EdDSA [Ed25519][ed255]</li><li>JOSE / [ML-DSA-65 (FIPS 204)][fips]\*</li></ul> |
117
-
118
- - **Backwards compatibility**: Procivis One supports verification of proofs which use VCDM 1.1.
119
-
120
- ### Exchange and transport
121
-
122
- - OpenID4VCI (Issuance)
123
- - [v1.0][vci1]
124
- - OpenID4VP (Verification)
125
- - [v1.0][vp1.0]
126
- - [Draft 25][vp25]
127
- - [Draft 20][vp20]
128
- - [OID4VP over BLE][ble]; optimized version of Draft 00
129
- - OID4VP over MQTT; proprietary adaptation of "OID4VP over BLE" via MQTT channel
130
- - ISO/IEC 18013 (Verification)
131
- - [18013-5][iso5]: Device engagement using either NFC or QR Code, data retrieval using BLE
132
- - [18013-7 Annex B][iso7]: Online data retrieval via OID4VP
133
-
134
- ### Key storage
135
-
136
- - Secure Enclave (iOS) and Android Keystore (TEE or Strongbox)
137
- - Internal encrypted database
138
-
139
- ### Revocation methods
140
-
141
- - [Bitstring Status List v1.0][sl]
142
- - [Token Status List - Draft 03][tsl]
143
- - [Certificate Revocation List][crl]
89
+ ## Standards and technologies
90
+
91
+ | Category | Supported |
92
+ | -------- | --------- |
93
+ | Credential formats | SD-JWT VC, ISO mdoc, W3C VC |
94
+ | Issuance protocol | OpenID4VCI |
95
+ | Presentation protocols | OpenID4VP, ISO/IEC 18013-5, ISO/IEC 18013-7 |
96
+ | Transport and engagement | BLE, MQTT, NFC, QR code |
97
+ | Revocation | Bitstring Status List, Token Status List, CRL |
98
+ | Key storage | Secure Enclave, Android Keystore, Azure Key Vault, HSM, internal database |
99
+ | DID methods | did\:key, did\:web, did\:jwk, did\:webvh |
100
+ | Trust infrastructure | ETSI Trusted Lists, Lists of Trusted Lists (LoTL), and Lists of Trusted Entities (LoTE), EUDI Access and Registration Certificates |
101
+ | Cryptographic suites | ES256, Ed25519, ML-DSA-65, BBS |
102
+ | Wallet attestations | Wallet Unit Attestation (WUA) and Wallet Instance Attestation (WIA) |
103
+
104
+ For the full list of supported standards, specifications, protocol versions, and
105
+ ETSI coverage, see the [Supported Standards and Technologies][supptech] page in
106
+ the Procivis One documentation.
144
107
 
145
108
  ## Support
146
109
 
@@ -160,44 +123,15 @@ Version 2.0](./LICENSE).
160
123
  © Procivis AG, [https://www.procivis.ch](https://www.procivis.ch).
161
124
 
162
125
  [archi]: https://github.com/procivis#architecture
163
- [bbs]: https://www.w3.org/TR/vc-di-bbs/
164
- [bbs2023]: https://www.w3.org/TR/vc-di-bbs/#bbs-2023
165
- [ble]: https://openid.net/specs/openid-4-verifiable-presentations-over-ble-1_0.html
166
126
  [canivc]: https://canivc.com/implementations/procivis-one-core/
167
127
  [comp]: https://github.com/procivis/one-react-native-components
168
128
  [core]: https://github.com/procivis/one-core
169
- [cose]: https://www.rfc-editor.org/rfc/rfc9052
170
- [crl]: https://www.ietf.org/rfc/rfc5280.txt
171
129
  [docs]: https://docs.procivis.ch/
172
- [ecd]: https://www.w3.org/TR/vc-di-ecdsa/
173
- [ecd2019]: https://www.w3.org/TR/vc-di-ecdsa/#ecdsa-rdfc-2019
174
- [edd]: https://www.w3.org/TR/vc-di-eddsa/
175
- [edd2022]: https://www.w3.org/TR/vc-di-eddsa/#eddsa-rdfc-2022
176
- [ed255]: https://datatracker.ietf.org/doc/html/rfc8037
177
- [es2]: https://datatracker.ietf.org/doc/html/rfc7518
178
130
  [eudiwi]: https://issuer.eudiw.dev/
179
131
  [eudiwv]: https://verifier.eudiw.dev/home
180
- [fips]: https://csrc.nist.gov/pubs/fips/204/final
181
- [iso5]: https://www.iso.org/standard/69084.html
182
- [iso7]: https://www.iso.org/standard/82772.html
183
- [jld]: https://www.w3.org/TR/json-ld11/
184
- [jose]: https://w3c.github.io/vc-jose-cose/
185
- [jw]: https://datatracker.ietf.org/doc/html/rfc7519
186
132
  [key]: https://github.com/procivis#key-features
187
133
  [lvvc]: https://eprint.iacr.org/2022/1658.pdf
188
134
  [owf]: https://github.com/openwallet-foundation-labs/identity-credential
189
135
  [pow]: https://github.com/procivis/one-wallet
190
- [pqc]: https://csrc.nist.gov/pqc-standardization
191
- [rncore]: https://github.com/procivis/react-native-one-core
192
- [sdjwt]: https://www.ietf.org/archive/id/draft-ietf-oauth-selective-disclosure-jwt-12.html
193
- [sdjwtvc]: https://www.ietf.org/archive/id/draft-ietf-oauth-sd-jwt-vc-05.html
194
136
  [sdkref]: https://docs.procivis.ch/sdk
195
- [sl]: https://www.w3.org/TR/vc-bitstring-status-list/
196
137
  [trial]: https://docs.procivis.ch/trial
197
- [tsl]: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-status-list-03
198
- [vcdi]: https://www.w3.org/TR/vc-data-integrity/
199
- [vcdm]: https://www.w3.org/TR/vc-data-model-2.0/
200
- [vci1]: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html
201
- [vp1.0]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-final.html
202
- [vp20]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-20.html
203
- [vp25]: https://openid.net/specs/openid-4-verifiable-presentations-1_0-25.html
@@ -138,6 +138,14 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
138
138
  }
139
139
  }
140
140
 
141
+ @ReactMethod
142
+ fun getOrganisationTrustCollections(organisationId: String, promise: Promise) {
143
+ asyncCall(promise, scope) {
144
+ val result = getCore().getOrganisationTrustCollections(organisationId)
145
+ return@asyncCall convertToRN(result)
146
+ }
147
+ }
148
+
141
149
  @ReactMethod
142
150
  fun generateKey(keyRequest: ReadableMap, promise: Promise) {
143
151
  asyncCall(promise, scope) {
@@ -580,73 +588,33 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
580
588
  }
581
589
 
582
590
  @ReactMethod
583
- fun holderRegisterWalletUnit(request: ReadableMap, promise: Promise) {
584
- asyncCall(promise, scope) {
585
- val result = getCore().holderRegisterWalletUnit(construct(request))
586
- return@asyncCall convertToRN(result)
587
- }
588
- }
589
-
590
- @ReactMethod
591
- fun holderActivateWalletUnit(id: String, request: ReadableMap, promise: Promise) {
592
- asyncCall(promise, scope) {
593
- getCore().holderActivateWalletUnit(id, construct(request))
594
- return@asyncCall null
595
- }
596
- }
597
-
598
- @ReactMethod
599
- fun holderWalletUnitStatus(walletUnitId: String, promise: Promise) {
600
- asyncCall(promise, scope) {
601
- getCore().holderWalletUnitStatus(walletUnitId)
602
- return@asyncCall null
603
- }
604
- }
605
-
606
- @ReactMethod
607
- fun holderWalletUnitUpdate(walletUnitId: String, request: ReadableMap, promise: Promise) {
608
- asyncCall(promise, scope) {
609
- getCore().holderWalletUnitUpdate(walletUnitId, construct(request))
610
- return@asyncCall null
611
- }
612
- }
613
-
614
- @ReactMethod
615
- fun holderGetWalletUnit(walletUnitId: String, promise: Promise) {
616
- asyncCall(promise, scope) {
617
- val result = getCore().holderGetWalletUnit(walletUnitId)
618
- return@asyncCall convertToRN(result)
619
- }
620
- }
621
-
622
- @ReactMethod
623
- fun holderGetWalletUnitTrustCollections(walletUnitId: String, promise: Promise) {
591
+ fun holderRegisterInstance(request: ReadableMap, promise: Promise) {
624
592
  asyncCall(promise, scope) {
625
- val result = getCore().holderGetWalletUnitTrustCollections(walletUnitId)
593
+ val result = getCore().holderRegisterInstance(construct(request))
626
594
  return@asyncCall convertToRN(result)
627
595
  }
628
596
  }
629
597
 
630
598
  @ReactMethod
631
- fun registerVerifierInstance(request: ReadableMap, promise: Promise) {
599
+ fun holderActivateInstance(id: String, request: ReadableMap, promise: Promise) {
632
600
  asyncCall(promise, scope) {
633
- val result = getCore().registerVerifierInstance(construct(request))
601
+ val result = getCore().holderActivateInstance(id, construct(request))
634
602
  return@asyncCall convertToRN(result)
635
603
  }
636
604
  }
637
605
 
638
606
  @ReactMethod
639
- fun updateVerifierInstance(verifierInstanceId: String, request: ReadableMap, promise: Promise) {
607
+ fun holderInstanceStatus(id: String, promise: Promise) {
640
608
  asyncCall(promise, scope) {
641
- getCore().updateVerifierInstance(verifierInstanceId, construct(request))
609
+ getCore().holderInstanceStatus(id)
642
610
  return@asyncCall null
643
611
  }
644
612
  }
645
613
 
646
614
  @ReactMethod
647
- fun getVerifierInstanceTrustCollections(verifierInstanceId: String, promise: Promise) {
615
+ fun holderGetInstance(id: String, promise: Promise) {
648
616
  asyncCall(promise, scope) {
649
- val result = getCore().getVerifierInstanceTrustCollections(verifierInstanceId)
617
+ val result = getCore().holderGetInstance(id)
650
618
  return@asyncCall convertToRN(result)
651
619
  }
652
620
  }
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/115964/android/onecore-debug.aar",
5
- "sha1": "c31bdc53088d93e4cf00205e3b7b13b6c7adbe30"
4
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/119306/android/onecore-debug.aar",
5
+ "sha1": "ff7e6e928cc3b0c3865c2a966e210a86023310a4"
6
6
  },
7
7
  "release": {
8
- "url": "https://onesdk.blob.core.windows.net/core-sdk/115964/android/onecore-release.aar",
9
- "sha1": "7115c6c8fd0715181890a7613a44318800e530e0"
8
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/119306/android/onecore-release.aar",
9
+ "sha1": "f9c2489cfedeea5546ad37e6806d6ec013534a99"
10
10
  }
11
11
  },
12
12
  "ios": {
13
- "url": "https://onesdk.blob.core.windows.net/core-sdk/115964/ios/deploy.zip",
14
- "sha1": "c16efa7d89daccfbaf4b0566742dc33e1f0bafd9"
13
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/119306/ios/deploy.zip",
14
+ "sha1": "aca46be28fe64660882327d62a3200bd17339b2a"
15
15
  }
16
16
  }
@@ -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", "getOrganisation", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "holderRefreshCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "getCredentialTrustInformation", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "createCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofTrustInformation", "holderGetTransactionData", "listProofs", "deleteProof", "proposeProof", "qesAuthorize", "qesSign", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterWalletUnit", "holderActivateWalletUnit", "holderWalletUnitStatus", "holderGetWalletUnit", "holderWalletUnitUpdate", "holderGetWalletUnitTrustCollections", "registerVerifierInstance", "updateVerifierInstance", "getVerifierInstanceTrustCollections", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
13
+ export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "getOrganisation", "getOrganisationTrustCollections", "generateKey", "createDid", "listDids", "createIdentifier", "getIdentifier", "listIdentifiers", "deleteIdentifier", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "holderRefreshCredential", "initiateIssuance", "continueIssuance", "getPresentationDefinitionV2", "holderRejectProof", "holderSubmitProofV2", "listCredentials", "runTask", "deleteProofClaims", "getCredential", "getCredentialTrustInformation", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "createCredentialSchema", "listCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofTrustInformation", "holderGetTransactionData", "listProofs", "deleteProof", "proposeProof", "qesAuthorize", "qesSign", "createProofSchema", "listProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "listHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "holderRegisterInstance", "holderActivateInstance", "holderInstanceStatus", "holderGetInstance", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
package/dist/src/core.js CHANGED
@@ -10,6 +10,7 @@ export const interfaceMethodNames = [
10
10
  "createOrganisation",
11
11
  "upsertOrganisation",
12
12
  "getOrganisation",
13
+ "getOrganisationTrustCollections",
13
14
  "generateKey",
14
15
  "createDid",
15
16
  "listDids",
@@ -64,21 +65,16 @@ export const interfaceMethodNames = [
64
65
  "finalizeImport",
65
66
  "rollbackImport",
66
67
  "resolveJsonldContext",
67
- "holderRegisterWalletUnit",
68
- "holderActivateWalletUnit",
69
- "holderWalletUnitStatus",
70
- "holderGetWalletUnit",
71
- "holderWalletUnitUpdate",
72
- "holderGetWalletUnitTrustCollections",
73
- "registerVerifierInstance",
74
- "updateVerifierInstance",
75
- "getVerifierInstanceTrustCollections",
68
+ "holderRegisterInstance",
69
+ "holderActivateInstance",
70
+ "holderInstanceStatus",
71
+ "holderGetInstance",
76
72
  "nfcReadIsoMdlEngagement",
77
73
  "nfcStopIsoMdlEngagement",
78
74
  "uninitialize",
79
75
  ];
80
76
  // Typescript automatic assertions to keep ONECore and interfaceMethodNames in sync
81
77
  /** assert that all method names listed in {@link interfaceMethodNames} exist in {@link ONECore} interface */
82
- const methodNamesCheck = interfaceMethodNames;
78
+ const missingMethodsCheck = interfaceMethodNames;
83
79
  /** assert that all {@link ONECore} interface methods are listed in {@link interfaceMethodNames} */
84
- const interfaceMethodsCheck = null;
80
+ const extraMethodsCheck = null;
@@ -357,6 +357,7 @@ export interface CredentialListItem {
357
357
  consumedAt?: string;
358
358
  type: CredentialType;
359
359
  parentId?: string;
360
+ redirectUri?: string;
360
361
  }
361
362
  export interface CredentialListQuery {
362
363
  /** Page number to retrieve (0-based indexing). */
@@ -878,73 +879,52 @@ export interface HolderAcceptCredentialRequest {
878
879
  /** User-provided transaction code. */
879
880
  txCode?: string;
880
881
  }
881
- export interface HolderActivateWalletUnitRequest {
882
+ export interface HolderActivateInstanceRequest {
882
883
  /** Key type for the authentication key generated during activation. */
883
884
  keyType: string;
884
885
  /** Identity token obtained from the identity provider after user authentication. */
885
886
  userIdToken?: string;
887
+ /** Access token obtained from the identity provider after user authentication. */
888
+ userAccessToken?: string;
889
+ }
890
+ export interface HolderActivateInstanceResponse {
891
+ /** IdentifierId with provisioned access certificate (if any) */
892
+ accessCertificateIdentifierId?: string;
893
+ }
894
+ export interface HolderInstance {
895
+ id: string;
896
+ createdDate: string;
897
+ lastModified: string;
898
+ role: InstanceRole;
899
+ providerInstanceId: string;
900
+ providerUrl: string;
901
+ providerType: InstanceProviderType;
902
+ providerName: string;
903
+ status: InstanceStatus;
904
+ authenticationKey?: KeyListItem;
905
+ userNonce?: string;
886
906
  }
887
907
  export interface HolderRefreshCredentialResponse {
888
908
  credentialIds: Array<string>;
889
909
  }
890
- export interface HolderRegisterWalletUnitRequest {
891
- /** The wallet unit's organization. */
910
+ export interface HolderRegisterInstanceRequest {
911
+ /** The instance's organization. */
892
912
  organisationId: string;
893
- /** Wallet Provider details. */
894
- walletProvider: WalletProvider;
913
+ /** Role of the instance being registered. */
914
+ role: InstanceRole;
915
+ /** Provider details. */
916
+ provider: InstanceProvider;
895
917
  /**
896
918
  * Choose a key type and the system will generate a key to use for
897
919
  * registration.
898
920
  */
899
921
  keyType: string;
900
- /**
901
- * When true, the wallet will only interact with entities that can be
902
- * verified as trusted. Requires the Wallet Provider to have the
903
- * `trustEcosystemsEnabled` feature flag enabled.
904
- */
905
- trustedRpRequired: boolean;
906
- }
907
- export interface HolderRegisterWalletUnitResponse {
908
- id: string;
909
- status: WalletUnitStatus;
910
- userNonce?: string;
911
922
  }
912
- export interface HolderWalletInstanceDetail {
923
+ export interface HolderRegisterInstanceResponse {
913
924
  id: string;
914
- trustedRpRequired: boolean;
915
- walletProviderUrl: string;
916
- walletProviderName: string;
917
- authenticationKeyType: string;
918
- }
919
- export interface HolderWalletUnit {
920
- id: string;
921
- createdDate: string;
922
- lastModified: string;
923
- providerWalletUnitId: string;
924
- walletProviderUrl: string;
925
- walletProviderType: WalletProviderType;
926
- walletProviderName: string;
927
- status: WalletUnitStatus;
928
- authenticationKey?: KeyListItem;
929
- trustedRpRequired: boolean;
925
+ status: InstanceStatus;
930
926
  userNonce?: string;
931
927
  }
932
- export interface HolderWalletUnitUpdateRequest {
933
- /**
934
- * The trust collections the wallet subscribes to, selected from those
935
- * made available by the Wallet Provider. The wallet will evaluate trust
936
- * against the lists contained in these collections. To keep subscribed
937
- * collections in sync with the Wallet Provider, run the
938
- * `TRUST_COLLECTION_SYNC` task.
939
- */
940
- trustCollections?: Array<string>;
941
- /**
942
- * When true, the wallet will only interact with entities that can be
943
- * verified as trusted. Requires the Wallet Provider to have the
944
- * `trustEcosystemsEnabled` feature flag enabled.
945
- */
946
- trustedRpRequired?: boolean;
947
- }
948
928
  export interface IdentifierDetail {
949
929
  id: string;
950
930
  createdDate: string;
@@ -1144,6 +1124,22 @@ export interface InitiateIssuanceRequest {
1144
1124
  export interface InitiateIssuanceResponse {
1145
1125
  url: string;
1146
1126
  }
1127
+ export interface InstanceDetail {
1128
+ id: string;
1129
+ providerUrl: string;
1130
+ providerName: string;
1131
+ authenticationKeyType: string;
1132
+ }
1133
+ export interface InstanceProvider {
1134
+ /**
1135
+ * Full URL for the GET provider metadata endpoint, for example:
1136
+ * <domain>/ssi/wallet-provider/v1/<provider> or
1137
+ * <domain>/ssi/verifier-provider/v1/<provider>
1138
+ */
1139
+ url: string;
1140
+ /** Choose the provider implementation. */
1141
+ type: InstanceProviderType;
1142
+ }
1147
1143
  export interface KeyDetail {
1148
1144
  id: string;
1149
1145
  createdDate: string;
@@ -1194,6 +1190,23 @@ export interface OpenId4vciTxCode {
1194
1190
  */
1195
1191
  description?: string;
1196
1192
  }
1193
+ export interface OrganisationConfiguration {
1194
+ /**
1195
+ * When true, the verifier will only validate presentations of
1196
+ * credentials issued by trusted issuers.
1197
+ */
1198
+ trustedIssuerRequired: boolean;
1199
+ /**
1200
+ * When true, the wallet only accepts presentation requests from
1201
+ * trusted relying parties.
1202
+ */
1203
+ trustedRpRequired: boolean;
1204
+ /**
1205
+ * When true, the issuer will only issue credentials requiring wallet
1206
+ * attestations to wallets of trusted wallet providers.
1207
+ */
1208
+ trustedWalletProviderRequired: boolean;
1209
+ }
1197
1210
  export interface OrganisationDetail {
1198
1211
  id: string;
1199
1212
  createdDate: string;
@@ -1204,17 +1217,20 @@ export interface OrganisationDetail {
1204
1217
  * configuration from, if any.
1205
1218
  */
1206
1219
  parentOrganisation?: string;
1220
+ /** Policy-level configuration for this organization. */
1221
+ configuration?: OrganisationConfiguration;
1207
1222
  walletProvider?: WalletProviderDetail;
1223
+ verifierProvider?: VerifierProviderDetail;
1208
1224
  /**
1209
1225
  * Wallet registration details for this organization's Business
1210
1226
  * Wallet.
1211
1227
  */
1212
- walletInstance?: HolderWalletInstanceDetail;
1228
+ walletInstance?: InstanceDetail;
1213
1229
  /**
1214
- * Wallet registration details for this organization's Business
1215
- * Wallet.
1230
+ * Verifier registration details for this organization's Business
1231
+ * Verifier.
1216
1232
  */
1217
- verifierInstance?: VerifierInstanceDetail;
1233
+ verifierInstance?: InstanceDetail;
1218
1234
  }
1219
1235
  export interface PeripheralDiscoveryData {
1220
1236
  deviceAddress: string;
@@ -1384,6 +1400,7 @@ export interface ProofListItem {
1384
1400
  retainUntilDate?: string;
1385
1401
  /** Country profile associated with this request. */
1386
1402
  profile?: string;
1403
+ redirectUri?: string;
1387
1404
  }
1388
1405
  export interface ProofListQuery {
1389
1406
  /** Page number to retrieve (0-based indexing). */
@@ -1593,24 +1610,6 @@ export interface QesSignResponse {
1593
1610
  /** Base64-encoded signed document returned by the QES provider. */
1594
1611
  signedDocument: string;
1595
1612
  }
1596
- export interface RegisterVerifierInstanceRequest {
1597
- /** The verifier unit's organization. */
1598
- organisationId: string;
1599
- /** The Verifier Provider's reference URL. */
1600
- verifierProviderUrl: string;
1601
- /** Reference a configured `verifierProvider` instance. */
1602
- type: string;
1603
- /**
1604
- * When true, the verifier will only validate presentations of
1605
- * credentials issued by trusted issuers. Requires the Verifier
1606
- * Provider to have the `trustEcosystemsEnabled` feature flag
1607
- * enabled.
1608
- */
1609
- trustedIssuerRequired: boolean;
1610
- }
1611
- export interface RegisterVerifierInstanceResponse {
1612
- id: string;
1613
- }
1614
1613
  export interface ResolvedJsonLdContext {
1615
1614
  context: string;
1616
1615
  }
@@ -1641,7 +1640,6 @@ export interface TransactionDataDisplay {
1641
1640
  }
1642
1641
  export interface TransactionDataDisplayAttribute {
1643
1642
  key: string;
1644
- /** The attribute value, encoded as a JSON string. */
1645
1643
  value: string;
1646
1644
  }
1647
1645
  /** Transaction data attached to a proof request. */
@@ -1654,7 +1652,7 @@ export interface TransactionDataResponse {
1654
1652
  data?: string;
1655
1653
  }
1656
1654
  export interface TrustCollectionInfo {
1657
- /** When true, the wallet is subscribed to this trust collection. */
1655
+ /** When true, the organization is subscribed to this trust collection. */
1658
1656
  selected: boolean;
1659
1657
  id: string;
1660
1658
  name: string;
@@ -1663,10 +1661,6 @@ export interface TrustCollectionInfo {
1663
1661
  description: Array<DisplayName>;
1664
1662
  defaultSelected?: boolean;
1665
1663
  }
1666
- export interface TrustCollections {
1667
- /** Trust collections available from the Wallet Provider. */
1668
- trustCollections: Array<TrustCollectionInfo>;
1669
- }
1670
1664
  export interface TrustInformation {
1671
1665
  receivedAt: string;
1672
1666
  name?: string;
@@ -1692,22 +1686,22 @@ export interface UnexportableEntities {
1692
1686
  totalDids: number;
1693
1687
  totalIdentifiers: number;
1694
1688
  }
1695
- export interface UpdateVerifierInstanceRequest {
1696
- /**
1697
- * The trust collections the verifier subscribes to, selected from
1698
- * those made available by the Verifier Provider. The verifier will
1699
- * evaluate trust against the lists contained in these collections.
1700
- * To keep subscribed collections in sync with the Verifier Provider,
1701
- * run the `TRUST_COLLECTION_SYNC` task.
1702
- */
1703
- trustCollections?: Array<string>;
1689
+ export interface UpsertOrganisationConfiguration {
1704
1690
  /**
1705
1691
  * When true, the verifier will only validate presentations of
1706
- * credentials issued by trusted issuers. Requires the Verifier
1707
- * Provider to have the `trustEcosystemsEnabled` feature flag
1708
- * enabled.
1692
+ * credentials issued by trusted issuers.
1709
1693
  */
1710
1694
  trustedIssuerRequired?: boolean;
1695
+ /**
1696
+ * When true, the wallet only accepts presentation requests from
1697
+ * trusted relying parties.
1698
+ */
1699
+ trustedRpRequired?: boolean;
1700
+ /**
1701
+ * When true, the issuer will only issue credentials requiring wallet
1702
+ * attestations to wallets of trusted wallet providers.
1703
+ */
1704
+ trustedWalletProviderRequired?: boolean;
1711
1705
  }
1712
1706
  export interface UpsertOrganisationRequest {
1713
1707
  /** Unique identifier of the organization to create or update. */
@@ -1718,21 +1712,32 @@ export interface UpsertOrganisationRequest {
1718
1712
  walletProvider?: string | null;
1719
1713
  /** Wallet Provider use only. */
1720
1714
  walletProviderIssuer?: string | null;
1715
+ /** Verifier Provider use only. */
1716
+ verifierProvider?: string | null;
1717
+ /** Verifier Provider use only. */
1718
+ verifierProviderIssuer?: string | null;
1719
+ /** Policy-level configuration for this organization. */
1720
+ configuration?: UpsertOrganisationConfiguration;
1721
+ /**
1722
+ * The trust collections this organization's wallet subscribes to,
1723
+ * selected from those made available by the Wallet Provider. Omit to
1724
+ * leave the current selection unchanged.
1725
+ */
1726
+ trustCollections?: Array<string>;
1721
1727
  /**
1722
1728
  * The parent organization this organization inherits policy-level
1723
1729
  * configuration from, if any.
1724
1730
  */
1725
1731
  parentOrganisation?: string | null;
1726
1732
  }
1727
- export interface VerifierInstanceDetail {
1728
- id: string;
1733
+ export interface VerifierProviderDetail {
1734
+ /** Verifier Provider configuration used by this organization. */
1735
+ providerName?: string;
1729
1736
  /**
1730
- * When true, the verifier will only validate presentations of
1731
- * credentials issued by trusted issuers. Requires the Verifier
1732
- * Provider to have the `trustEcosystemsEnabled` feature flag
1733
- * enabled.
1737
+ * Identifier used by this organization to authenticate to the
1738
+ * verifier provider.
1734
1739
  */
1735
- trustedIssuerRequired: boolean;
1740
+ issuer?: IdentifierListItem;
1736
1741
  }
1737
1742
  export interface Version {
1738
1743
  target: string;
@@ -1743,15 +1748,6 @@ export interface Version {
1743
1748
  rustVersion: string;
1744
1749
  pipelineId: string;
1745
1750
  }
1746
- export interface WalletProvider {
1747
- /**
1748
- * Full URL for the GET Wallet Provider metadata endpoint,
1749
- * for example: <domain>/ssi/wallet-provider/v1/<walletProvider>
1750
- */
1751
- url: string;
1752
- /** Choose the Wallet Provider implementation. */
1753
- type: WalletProviderType;
1754
- }
1755
1751
  export interface WalletProviderDetail {
1756
1752
  /**
1757
1753
  * Wallet Provider configuration used by this organization to provide
@@ -2061,7 +2057,6 @@ export declare enum HistoryEntityType {
2061
2057
  TRUST_LIST_PUBLICATION = "TRUST_LIST_PUBLICATION",
2062
2058
  TRUST_COLLECTION = "TRUST_COLLECTION",
2063
2059
  TRUST_LIST_SUBSCRIPTION = "TRUST_LIST_SUBSCRIPTION",
2064
- VERIFIER_INSTANCE = "VERIFIER_INSTANCE",
2065
2060
  QES_DOCUMENT = "QES_DOCUMENT"
2066
2061
  }
2067
2062
  export type HistoryMetadata = {
@@ -2107,6 +2102,20 @@ export declare enum IdentifierType {
2107
2102
  CERTIFICATE = "CERTIFICATE",
2108
2103
  CERTIFICATE_AUTHORITY = "CERTIFICATE_AUTHORITY"
2109
2104
  }
2105
+ export declare enum InstanceProviderType {
2106
+ PROCIVIS_ONE = "PROCIVIS_ONE"
2107
+ }
2108
+ export declare enum InstanceRole {
2109
+ WALLET = "WALLET",
2110
+ VERIFIER = "VERIFIER"
2111
+ }
2112
+ export declare enum InstanceStatus {
2113
+ PENDING = "PENDING",
2114
+ ACTIVE = "ACTIVE",
2115
+ REVOKED = "REVOKED",
2116
+ UNATTESTED = "UNATTESTED",
2117
+ ERROR = "ERROR"
2118
+ }
2110
2119
  export declare enum KeyRole {
2111
2120
  AUTHENTICATION = "AUTHENTICATION",
2112
2121
  ASSERTION_METHOD = "ASSERTION_METHOD",
@@ -2259,16 +2268,6 @@ export declare enum TrustResolutionResult {
2259
2268
  UNTRUSTED = "UNTRUSTED",
2260
2269
  UNKNOWN = "UNKNOWN"
2261
2270
  }
2262
- export declare enum WalletProviderType {
2263
- PROCIVIS_ONE = "PROCIVIS_ONE"
2264
- }
2265
- export declare enum WalletUnitStatus {
2266
- PENDING = "PENDING",
2267
- ACTIVE = "ACTIVE",
2268
- REVOKED = "REVOKED",
2269
- UNATTESTED = "UNATTESTED",
2270
- ERROR = "ERROR"
2271
- }
2272
2271
  export interface BleCentral {
2273
2272
  connect(peripheral: string): Promise<number>;
2274
2273
  disconnect(peripheral: string): Promise<void>;
@@ -2449,6 +2448,7 @@ export interface OneCore {
2449
2448
  getIdentifier(id: string): Promise<IdentifierDetail>;
2450
2449
  /** Returns details of an existing organization. */
2451
2450
  getOrganisation(id: string): Promise<OrganisationDetail>;
2451
+ getOrganisationTrustCollections(id: string): Promise<Array<TrustCollectionInfo>>;
2452
2452
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2453
2453
  /** Returns detailed information about a proof request. */
2454
2454
  getProof(proofId: string): Promise<ProofDetail>;
@@ -2458,8 +2458,6 @@ export interface OneCore {
2458
2458
  * proof request.
2459
2459
  */
2460
2460
  getProofTrustInformation(proofId: string): Promise<TrustInformationDetail>;
2461
- /** Returns trust collections curated by the Verifier Provider. */
2462
- getVerifierInstanceTrustCollections(id: string): Promise<TrustCollections>;
2463
2461
  /**
2464
2462
  * For a wallet, handles the interaction once the wallet connects to a share
2465
2463
  * endpoint URL (for example, scans the QR code of an offered credential or
@@ -2472,8 +2470,10 @@ export interface OneCore {
2472
2470
  * you can specify an existing identifier.
2473
2471
  */
2474
2472
  holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<string>;
2475
- /** Activates the wallet instance with the Wallet Provider after user authentication. */
2476
- holderActivateWalletUnit(id: string, request: HolderActivateWalletUnitRequest): Promise<void>;
2473
+ /** Activates the instance with the provider after user authentication. */
2474
+ holderActivateInstance(id: string, request: HolderActivateInstanceRequest): Promise<HolderActivateInstanceResponse>;
2475
+ /** Returns instance registration details from the provider. */
2476
+ holderGetInstance(id: string): Promise<HolderInstance>;
2477
2477
  /**
2478
2478
  * For wallets; returns the details of a single transaction data entry of a
2479
2479
  * proof request, including human-readable display data and the raw
@@ -2481,14 +2481,15 @@ export interface OneCore {
2481
2481
  * obtained from `getPresentationDefinitionv2`.
2482
2482
  */
2483
2483
  holderGetTransactionData(proofId: string, transactionDataId: string): Promise<ProofTransactionData>;
2484
- /** Returns wallet registration details from the Wallet Provider. */
2485
- holderGetWalletUnit(id: string): Promise<HolderWalletUnit>;
2486
- /** Returns trust collections curated by the Wallet Provider. */
2487
- holderGetWalletUnitTrustCollections(id: string): Promise<TrustCollections>;
2484
+ /**
2485
+ * Check status of the instance with the provider. Will return an error
2486
+ * if the instance has been revoked.
2487
+ */
2488
+ holderInstanceStatus(id: string): Promise<void>;
2488
2489
  /** Receive a new credential batch */
2489
2490
  holderRefreshCredential(interactionId: string): Promise<HolderRefreshCredentialResponse>;
2490
- /** Registers the wallet unit with a Wallet Provider. */
2491
- holderRegisterWalletUnit(request: HolderRegisterWalletUnitRequest): Promise<HolderRegisterWalletUnitResponse>;
2491
+ /** Registers the instance with a Wallet or Verifier Provider. */
2492
+ holderRegisterInstance(request: HolderRegisterInstanceRequest): Promise<HolderRegisterInstanceResponse>;
2492
2493
  /** Rejects an offered credential. */
2493
2494
  holderRejectCredential(interactionId: string): Promise<void>;
2494
2495
  /** Rejects a proof request. */
@@ -2498,13 +2499,6 @@ export interface OneCore {
2498
2499
  * be used after `getPresentationDefinitionv2`.
2499
2500
  */
2500
2501
  holderSubmitProofV2(interactionId: string, submission: Record<string, Array<PresentationSubmitV2CredentialRequest>>): Promise<void>;
2501
- /**
2502
- * Check status of wallet unit with the Wallet Provider. Will return an error
2503
- * if the unit has been revoked.
2504
- */
2505
- holderWalletUnitStatus(id: string): Promise<void>;
2506
- /** Modifies wallet unit's settings. */
2507
- holderWalletUnitUpdate(id: string, request: HolderWalletUnitUpdateRequest): Promise<void>;
2508
2502
  /**
2509
2503
  * Imports a credential schema shared from another mobile verifier device
2510
2504
  * using the one-core.
@@ -2549,8 +2543,6 @@ export interface OneCore {
2549
2543
  * from `qesAuthorize` for a signed document.
2550
2544
  */
2551
2545
  qesSign(request: QesSignRequest): Promise<QesSignResponse>;
2552
- /** Registers the verifier unit with a Verifier Provider. */
2553
- registerVerifierInstance(request: RegisterVerifierInstanceRequest): Promise<RegisterVerifierInstanceResponse>;
2554
2546
  /**
2555
2547
  * Returns the JSON-LD context document for a given URI. This is a
2556
2548
  * [cached entity](https://docs.procivis.ch/configure/caching).
@@ -2585,8 +2577,6 @@ export interface OneCore {
2585
2577
  * Follow by calling either `finalizeImport` or `rollbackImport`.
2586
2578
  */
2587
2579
  unpackBackup(password: string, inputPath: string): Promise<Metadata>;
2588
- /** Modifies verifier unit's settings. */
2589
- updateVerifierInstance(id: string, request: UpdateVerifierInstanceRequest): Promise<void>;
2590
2580
  /**
2591
2581
  * Updates or deactivates an organization if it exists, otherwise
2592
2582
  * creates a new organization using the provided UUID and name.
@@ -207,7 +207,6 @@ export var HistoryEntityType;
207
207
  HistoryEntityType["TRUST_LIST_PUBLICATION"] = "TRUST_LIST_PUBLICATION";
208
208
  HistoryEntityType["TRUST_COLLECTION"] = "TRUST_COLLECTION";
209
209
  HistoryEntityType["TRUST_LIST_SUBSCRIPTION"] = "TRUST_LIST_SUBSCRIPTION";
210
- HistoryEntityType["VERIFIER_INSTANCE"] = "VERIFIER_INSTANCE";
211
210
  HistoryEntityType["QES_DOCUMENT"] = "QES_DOCUMENT";
212
211
  })(HistoryEntityType || (HistoryEntityType = {}));
213
212
  export var HistorySearchType;
@@ -242,6 +241,23 @@ export var IdentifierType;
242
241
  IdentifierType["CERTIFICATE"] = "CERTIFICATE";
243
242
  IdentifierType["CERTIFICATE_AUTHORITY"] = "CERTIFICATE_AUTHORITY";
244
243
  })(IdentifierType || (IdentifierType = {}));
244
+ export var InstanceProviderType;
245
+ (function (InstanceProviderType) {
246
+ InstanceProviderType["PROCIVIS_ONE"] = "PROCIVIS_ONE";
247
+ })(InstanceProviderType || (InstanceProviderType = {}));
248
+ export var InstanceRole;
249
+ (function (InstanceRole) {
250
+ InstanceRole["WALLET"] = "WALLET";
251
+ InstanceRole["VERIFIER"] = "VERIFIER";
252
+ })(InstanceRole || (InstanceRole = {}));
253
+ export var InstanceStatus;
254
+ (function (InstanceStatus) {
255
+ InstanceStatus["PENDING"] = "PENDING";
256
+ InstanceStatus["ACTIVE"] = "ACTIVE";
257
+ InstanceStatus["REVOKED"] = "REVOKED";
258
+ InstanceStatus["UNATTESTED"] = "UNATTESTED";
259
+ InstanceStatus["ERROR"] = "ERROR";
260
+ })(InstanceStatus || (InstanceStatus = {}));
245
261
  export var KeyRole;
246
262
  (function (KeyRole) {
247
263
  KeyRole["AUTHENTICATION"] = "AUTHENTICATION";
@@ -357,15 +373,3 @@ export var TrustResolutionResult;
357
373
  TrustResolutionResult["UNTRUSTED"] = "UNTRUSTED";
358
374
  TrustResolutionResult["UNKNOWN"] = "UNKNOWN";
359
375
  })(TrustResolutionResult || (TrustResolutionResult = {}));
360
- export var WalletProviderType;
361
- (function (WalletProviderType) {
362
- WalletProviderType["PROCIVIS_ONE"] = "PROCIVIS_ONE";
363
- })(WalletProviderType || (WalletProviderType = {}));
364
- export var WalletUnitStatus;
365
- (function (WalletUnitStatus) {
366
- WalletUnitStatus["PENDING"] = "PENDING";
367
- WalletUnitStatus["ACTIVE"] = "ACTIVE";
368
- WalletUnitStatus["REVOKED"] = "REVOKED";
369
- WalletUnitStatus["UNATTESTED"] = "UNATTESTED";
370
- WalletUnitStatus["ERROR"] = "ERROR";
371
- })(WalletUnitStatus || (WalletUnitStatus = {}));
@@ -39,6 +39,10 @@ RCT_EXTERN_METHOD(getOrganisation:(NSString *)organisationId
39
39
  resolver:(RCTPromiseResolveBlock)resolve
40
40
  rejecter:(RCTPromiseRejectBlock)reject)
41
41
 
42
+ RCT_EXTERN_METHOD(getOrganisationTrustCollections:(NSString *)organisationId
43
+ resolver:(RCTPromiseResolveBlock)resolve
44
+ rejecter:(RCTPromiseRejectBlock)reject)
45
+
42
46
  RCT_EXTERN_METHOD(generateKey:(NSDictionary *)keyRequest
43
47
  resolver:(RCTPromiseResolveBlock)resolve
44
48
  rejecter:(RCTPromiseRejectBlock)reject)
@@ -255,42 +259,20 @@ RCT_EXTERN_METHOD(resolveJsonldContext:(NSString *)url
255
259
  resolver:(RCTPromiseResolveBlock)resolve
256
260
  rejecter:(RCTPromiseRejectBlock)reject)
257
261
 
258
- RCT_EXTERN_METHOD(holderRegisterWalletUnit:(NSDictionary *)request
259
- resolver:(RCTPromiseResolveBlock)resolve
260
- rejecter:(RCTPromiseRejectBlock)reject)
261
-
262
- RCT_EXTERN_METHOD(holderActivateWalletUnit:(NSString *)unitId
263
- request:(NSDictionary *)request
264
- resolver:(RCTPromiseResolveBlock)resolve
265
- rejecter:(RCTPromiseRejectBlock)reject)
266
-
267
- RCT_EXTERN_METHOD(holderWalletUnitStatus:(NSString *)walletUnitId
262
+ RCT_EXTERN_METHOD(holderRegisterInstance:(NSDictionary *)request
268
263
  resolver:(RCTPromiseResolveBlock)resolve
269
264
  rejecter:(RCTPromiseRejectBlock)reject)
270
265
 
271
- RCT_EXTERN_METHOD(holderGetWalletUnit:(NSString *)walletUnitId
272
- resolver:(RCTPromiseResolveBlock)resolve
273
- rejecter:(RCTPromiseRejectBlock)reject)
274
-
275
- RCT_EXTERN_METHOD(holderWalletUnitUpdate:(NSString *)walletUnitId
266
+ RCT_EXTERN_METHOD(holderActivateInstance:(NSString *)instanceId
276
267
  request:(NSDictionary *)request
277
268
  resolver:(RCTPromiseResolveBlock)resolve
278
269
  rejecter:(RCTPromiseRejectBlock)reject)
279
270
 
280
- RCT_EXTERN_METHOD(holderGetWalletUnitTrustCollections:(NSString *)walletUnitId
281
- resolver:(RCTPromiseResolveBlock)resolve
282
- rejecter:(RCTPromiseRejectBlock)reject)
283
-
284
- RCT_EXTERN_METHOD(registerVerifierInstance:(NSDictionary *)request
285
- resolver:(RCTPromiseResolveBlock)resolve
286
- rejecter:(RCTPromiseRejectBlock)reject)
287
-
288
- RCT_EXTERN_METHOD(updateVerifierInstance:(NSString *)verifierInstanceId
289
- request:(NSDictionary *)request
271
+ RCT_EXTERN_METHOD(holderInstanceStatus:(NSString *)instanceId
290
272
  resolver:(RCTPromiseResolveBlock)resolve
291
273
  rejecter:(RCTPromiseRejectBlock)reject)
292
274
 
293
- RCT_EXTERN_METHOD(getVerifierInstanceTrustCollections:(NSString *)verifierInstanceId
275
+ RCT_EXTERN_METHOD(holderGetInstance:(NSString *)instanceId
294
276
  resolver:(RCTPromiseResolveBlock)resolve
295
277
  rejecter:(RCTPromiseRejectBlock)reject)
296
278
 
@@ -788,113 +788,63 @@ class ProcivisOneCoreModule: RCTEventEmitter {
788
788
  }
789
789
  }
790
790
 
791
- @objc(holderRegisterWalletUnit:resolver:rejecter:)
792
- func holderRegisterWalletUnit(
791
+ @objc(holderRegisterInstance:resolver:rejecter:)
792
+ func holderRegisterInstance(
793
793
  request: NSDictionary,
794
794
  resolve: @escaping RCTPromiseResolveBlock,
795
795
  reject: @escaping RCTPromiseRejectBlock
796
796
  ) {
797
797
  asyncCall(resolve, reject) {
798
- let result = try await self.getCore().holderRegisterWalletUnit(request: try deserialize(request))
798
+ let result = try await self.getCore().holderRegisterInstance(request: try deserialize(request))
799
799
  return try serializeAny(result)
800
800
  }
801
801
  }
802
802
 
803
- @objc(holderActivateWalletUnit:request:resolver:rejecter:)
804
- func holderActivateWalletUnit(
803
+ @objc(holderActivateInstance:request:resolver:rejecter:)
804
+ func holderActivateInstance(
805
805
  id: String,
806
806
  request: NSDictionary,
807
807
  resolve: @escaping RCTPromiseResolveBlock,
808
808
  reject: @escaping RCTPromiseRejectBlock
809
809
  ) {
810
810
  asyncCall(resolve, reject) {
811
- try await self.getCore().holderActivateWalletUnit(id: id, request: try deserialize(request))
812
- return nil as NSDictionary?
813
- }
814
- }
815
-
816
- @objc(holderWalletUnitStatus:resolver:rejecter:)
817
- func holderWalletUnitStatus(
818
- walletUnitId: String,
819
- resolve: @escaping RCTPromiseResolveBlock,
820
- reject: @escaping RCTPromiseRejectBlock
821
- ) {
822
- asyncCall(resolve, reject) {
823
- try await self.getCore().holderWalletUnitStatus(id: walletUnitId)
824
- return nil as NSDictionary?
825
- }
826
- }
827
-
828
- @objc(holderWalletUnitUpdate:request:resolver:rejecter:)
829
- func holderWalletUnitUpdate(
830
- walletUnitId: String,
831
- request: NSDictionary,
832
- resolve: @escaping RCTPromiseResolveBlock,
833
- reject: @escaping RCTPromiseRejectBlock
834
- ) {
835
- asyncCall(resolve, reject) {
836
- try await self.getCore().holderWalletUnitUpdate(id: walletUnitId, request: try deserialize(request))
837
- return nil as NSDictionary?
838
- }
839
- }
840
-
841
- @objc(holderGetWalletUnit:resolver:rejecter:)
842
- func holderGetWalletUnit(
843
- walletUnitId: String,
844
- resolve: @escaping RCTPromiseResolveBlock,
845
- reject: @escaping RCTPromiseRejectBlock
846
- ) {
847
- asyncCall(resolve, reject) {
848
- let result = try await self.getCore().holderGetWalletUnit(id: walletUnitId)
811
+ let result = try await self.getCore().holderActivateInstance(id: id, request: try deserialize(request))
849
812
  return try serializeAny(result)
850
813
  }
851
814
  }
852
815
 
853
- @objc(holderGetWalletUnitTrustCollections:resolver:rejecter:)
854
- func holderGetWalletUnitTrustCollections(
855
- walletUnitId: String,
816
+ @objc(holderInstanceStatus:resolver:rejecter:)
817
+ func holderInstanceStatus(
818
+ instanceId: String,
856
819
  resolve: @escaping RCTPromiseResolveBlock,
857
820
  reject: @escaping RCTPromiseRejectBlock
858
821
  ) {
859
822
  asyncCall(resolve, reject) {
860
- let result = try await self.getCore().holderGetWalletUnitTrustCollections(id: walletUnitId)
861
- return try serializeAny(result)
823
+ try await self.getCore().holderInstanceStatus(id: instanceId)
824
+ return nil as NSDictionary?
862
825
  }
863
826
  }
864
827
 
865
- @objc(registerVerifierInstance:resolver:rejecter:)
866
- func registerVerifierInstance(
867
- request: NSDictionary,
828
+ @objc(holderGetInstance:resolver:rejecter:)
829
+ func holderGetInstance(
830
+ instanceId: String,
868
831
  resolve: @escaping RCTPromiseResolveBlock,
869
832
  reject: @escaping RCTPromiseRejectBlock
870
833
  ) {
871
834
  asyncCall(resolve, reject) {
872
- let result = try await self.getCore().registerVerifierInstance(request: try deserialize(request))
835
+ let result = try await self.getCore().holderGetInstance(id: instanceId)
873
836
  return try serializeAny(result)
874
837
  }
875
838
  }
876
839
 
877
- @objc(updateVerifierInstance:request:resolver:rejecter:)
878
- func updateVerifierInstance(
879
- verifierInstanceId: String,
880
- request: NSDictionary,
881
- resolve: @escaping RCTPromiseResolveBlock,
882
- reject: @escaping RCTPromiseRejectBlock
883
- ) {
884
- asyncCall(resolve, reject) {
885
- try await self.getCore().updateVerifierInstance(id: verifierInstanceId, request: try deserialize(request))
886
- return nil as NSDictionary?
887
- }
888
- }
889
-
890
- @objc(getVerifierInstanceTrustCollections:resolver:rejecter:)
891
- func getVerifierInstanceTrustCollections(
892
- verifierInstanceId: String,
840
+ @objc(getOrganisationTrustCollections:resolver:rejecter:)
841
+ func getOrganisationTrustCollections(
842
+ organisationId: String,
893
843
  resolve: @escaping RCTPromiseResolveBlock,
894
844
  reject: @escaping RCTPromiseRejectBlock
895
845
  ) {
896
846
  asyncCall(resolve, reject) {
897
- let result = try await self.getCore().getVerifierInstanceTrustCollections(id: verifierInstanceId)
847
+ let result = try await self.getCore().getOrganisationTrustCollections(id: organisationId)
898
848
  return try serializeAny(result)
899
849
  }
900
850
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procivis/react-native-one-core",
3
- "version": "1.115964.0",
3
+ "version": "1.119306.0",
4
4
  "author": "Procivis AG (https://procivis.ch)",
5
5
  "license": "Apache-2.0",
6
6
  "description": "ONE core bindings for React Native",
@@ -37,7 +37,7 @@
37
37
  "babel-jest": "^29.5.0",
38
38
  "husky": "^7.0.4",
39
39
  "jest": "^29.5.0",
40
- "react-native": "0.72.17",
40
+ "react-native": "0.83.0",
41
41
  "typedoc": "^0.28.6",
42
42
  "typescript": "^5.1.6"
43
43
  },