@procivis/react-native-one-core 1.84437.0 → 1.90342.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
@@ -18,7 +18,7 @@ See the [key features][key] and complete solution [architecture][archi].
18
18
  - [How to use the One Core SDK](#how-to-use-the-one-core-react-native-sdk)
19
19
  - [Getting started](#getting-started)
20
20
  - [Background](#background)
21
- - [eIDAS 2.0](#eidas-20)
21
+ - [EU Digital Identity Ecosystem](#eu-digital-identity-ecosystem)
22
22
  - [Interoperability and conformance](#interoperability-and-conformance)
23
23
  - [Supported standards](#supported-standards)
24
24
  - [Support](#support)
@@ -43,35 +43,9 @@ solution, the _Procivis One Desk_, and can quickly begin issuing and verifying c
43
43
 
44
44
  See our documentation:
45
45
 
46
- - [SDK Reference][sdkref]
46
+ - [SDK docs][sdkref]
47
47
  - [Docs home][docs]
48
48
 
49
- ### Installation
50
-
51
- `$ yarn add react-native-one-core`
52
-
53
- Add following to your app `android/build.gradle`:
54
-
55
- ```
56
- ...
57
- allprojects {
58
- repositories {
59
- ...
60
-
61
- flatDir { dirs "$rootDir/../node_modules/react-native-one-core/android/libs" }
62
- }
63
- }
64
- ```
65
-
66
- ## Usage
67
-
68
- ```typescript
69
- import { initializeCore } from "react-native-one-core";
70
- ...
71
- const ONE = await initializeCore();
72
- await ONE.getVersion();
73
- ```
74
-
75
49
  ## Background
76
50
 
77
51
  Decentralized digital identities and credentials is an approach to identity that relocates
@@ -82,18 +56,13 @@ the issuer via back-channels, keeping the wallet holder's interactions private b
82
56
  those parties directly involved in each interaction. This model of digital identity is
83
57
  often referred to as Self-Sovereign Identity, or SSI.
84
58
 
85
- ## eIDAS 2.0
59
+ ## EU Digital Identity Ecosystem
86
60
 
87
- If you want to provide an **EUDI Wallet**, _Procivis One_ provides production grade open
88
- source components to get certified and connect your organization to the eIDAS 2.0 ecosystem.
61
+ ![Procivis One in the EU Digital Identity Ecosystem](https://onesdk.blob.core.windows.net/doc-assets/img/EUDI_Architecture.png)
89
62
 
90
- ![Procivis One in the eIDAS ARF](https://assets.procivis-one.com/static/diff/eIDAS_Architecture.png)
63
+ For an EUDI Wallet, you can also use the [Procivis One Wallet][pow].
91
64
 
92
- For an EUDI Wallet, use the [One Core React Native SDK][rncore] for embedding into
93
- an existing app, or use the [Procivis One Wallet][pow] with adaptations to fit your
94
- needs.
95
-
96
- If you want to issue into an EUDI Wallet or offer services to an EUDI Wallet holder,
65
+ For issuing into an EUDI Wallet or offering services to an EUDI Wallet holder,
97
66
  use the [Procivis One Core][core].
98
67
 
99
68
  ## Interoperability and conformance
@@ -122,35 +91,32 @@ and regulations mature and harden.
122
91
 
123
92
  ### Credential models
124
93
 
125
- #### W3C VC
126
-
127
- - [W3C Verifiable Credentials Data Model 2.0][vcdm] in the following variations:
94
+ #### IETF SD-JWT VC
128
95
 
129
- | Securing mechanism | Supported representations | Supported proof/signature types |
130
- | -------------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
131
- | [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> |
132
- | [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 / CRYSTALS-DILITHIUM 3 [CRYDI3][crydi3]\* |
96
+ - [IETF SD-JWT-based Verifiable Credentials][sdjwtvc]:
133
97
 
134
- \* CRYSTALS-DILITHIUM is a post-quantum resistant signature scheme, selected by NIST for [Post-Quantum Cryptography Standardization][pqc].
135
- Support for the recently published [FIPS-204][fips] is planned for the near future.
98
+ | Standard | Supported representations | Supported proof/signature types |
99
+ | -------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
100
+ | 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> |
136
101
 
137
102
  #### ISO mdoc
138
103
 
139
- - [ISO/IEC 18013-5:2021][iso5] standard for mdoc credentials.
140
- - [COSE][cose] proofs
141
- - ECDSA [ES256][es2]
142
- - EdDSA [Ed25519][ed255]
104
+ - [ISO/IEC 18013-5:2021][iso5] standard for mdoc credentials in the following variations:
143
105
 
144
- #### IETF SD-JWT VC
106
+ | Standard | Supported representations | Supported proof/signature types |
107
+ | -------------------- | ------------------------- | --------------------------------------------------------------------------------- |
108
+ | ISO/IEC 18013-5:2021 | mdoc | <ul><li>COSE / ECDSA [ES256][es2]</li><li>COSE / EdDSA [Ed25519][ed255]</li></ul> |
145
109
 
146
- - [IETF SD-JWT-based Verifiable Credentials][sdjwtvc]:
110
+ #### W3C VC
147
111
 
148
- | Standard | Supported representations | Supported proof/signature types |
149
- | -------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
150
- | IETF SD-JWT VC | SD-JWT | <ul><li>JOSE / ECDSA [ES256][es2]</li><li>JOSE / EdDSA [Ed25519][ed255]</li><li>JOSE / CRYSTALS-DILITHIUM 3 [CRYDI3][crydi3]\*</li></ul> |
112
+ - [W3C Verifiable Credentials Data Model 2.0][vcdm] in the following variations:
113
+
114
+ | Securing mechanism | Supported representations | Supported proof/signature types |
115
+ | -------------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116
+ | [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> |
117
+ | [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> |
151
118
 
152
- \* CRYSTALS-DILITHIUM is a post-quantum resistant signature scheme, selected by NIST for [Post-Quantum Cryptography Standardization][pqc].
153
- Support for the recently published [FIPS-204][fips] is planned for the near future.
119
+ - **Backwards compatibility**: Procivis One supports verification of proofs which use VCDM 1.1.
154
120
 
155
121
  ### Exchange and transport
156
122
 
@@ -175,8 +141,8 @@ Support for the recently published [FIPS-204][fips] is planned for the near futu
175
141
  ### Revocation methods
176
142
 
177
143
  - [Bitstring Status List v1.0][sl]
178
- - [Linked Validity Verifiable Credentials (LVVC)][lvvc]
179
144
  - [Token Status List - Draft 03][tsl]
145
+ - [Certificate Revocation List][crl]
180
146
 
181
147
  ## Support
182
148
 
@@ -203,7 +169,7 @@ Version 2.0](./LICENSE).
203
169
  [comp]: https://github.com/procivis/one-react-native-components
204
170
  [core]: https://github.com/procivis/one-core
205
171
  [cose]: https://www.rfc-editor.org/rfc/rfc9052
206
- [crydi3]: https://datatracker.ietf.org/doc/html/draft-ietf-cose-dilithium-01
172
+ [crl]: https://www.ietf.org/rfc/rfc5280.txt
207
173
  [docs]: https://docs.procivis.ch/
208
174
  [ecd]: https://www.w3.org/TR/vc-di-ecdsa/
209
175
  [ecd2019]: https://www.w3.org/TR/vc-di-ecdsa/#ecdsa-rdfc-2019
@@ -50,11 +50,10 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
50
50
  fun initialize(configJson: String, promise: Promise) {
51
51
  syncCall(promise) {
52
52
  val context = this.reactApplicationContext
53
- val dataDirPath = context.filesDir.absolutePath
54
53
  ubiqu = ubiqu ?: UbiquKeyStorage(context)
55
54
  oneCore =
56
55
  initializeCore(
57
- dataDirPath = dataDirPath,
56
+ context = context,
58
57
  params = InitParamsDto(
59
58
  configJson = configJson,
60
59
  nativeSecureElement = AndroidKeyStoreKeyStorage(context),
@@ -200,18 +200,22 @@ object SerializeSpecific {
200
200
  value.txCode?.let {
201
201
  result.putMap("txCode", convertToRN(it) as ReadableMap)
202
202
  }
203
+ result.putString("protocol", value.protocol)
204
+ result.putBoolean("requiresWalletInstanceAttestation", value.requiresWalletInstanceAttestation)
203
205
  }
204
206
 
205
207
  is HandleInvitationResponseBindingEnum.AuthorizationCodeFlow -> {
206
208
  result.putString("type_", "AUTHORIZATION_CODE_FLOW")
207
209
  result.putString("interactionId", value.interactionId)
208
210
  result.putString("authorizationCodeFlowUrl", value.authorizationCodeFlowUrl)
211
+ result.putString("protocol", value.protocol)
209
212
  }
210
213
 
211
214
  is HandleInvitationResponseBindingEnum.ProofRequest -> {
212
215
  result.putString("type_", "PROOF_REQUEST")
213
216
  result.putString("interactionId", value.interactionId)
214
217
  result.putString("proofId", value.proofId)
218
+ result.putString("protocol", value.protocol)
215
219
  }
216
220
  }
217
221
  return result
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/84437/android/onecore-debug.aar",
5
- "sha1": "602d75e25a7d8d556ed9233199eeb4444f654582"
4
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/90342/android/onecore-debug.aar",
5
+ "sha1": "95f2df40744b1e51acf0060d0acdd9b127277b6a"
6
6
  },
7
7
  "release": {
8
- "url": "https://onesdk.blob.core.windows.net/core-sdk/84437/android/onecore-release.aar",
9
- "sha1": "61a8d7bd0380ff8701353a669c4cd6634d96f8b9"
8
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/90342/android/onecore-release.aar",
9
+ "sha1": "f7370a06f6a05a5df7a6061e9d8f5cb234ff71b9"
10
10
  }
11
11
  },
12
12
  "ios": {
13
- "url": "https://onesdk.blob.core.windows.net/core-sdk/84437/ios/deploy.zip",
14
- "sha1": "8b73ced41ea8078a36944dc51f432f9dfe9abd97"
13
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/90342/ios/deploy.zip",
14
+ "sha1": "d75fa86170b7a5df1ff230d56ba600d3a08e0844"
15
15
  }
16
16
  }
@@ -8,6 +8,7 @@ export interface Cause {
8
8
  }
9
9
  export interface CertificateResponseBindingDto {
10
10
  id: string;
11
+ identifierId: string;
11
12
  createdDate: string;
12
13
  lastModified: string;
13
14
  state: CertificateStateBindingEnum;
@@ -62,6 +63,8 @@ export interface ContinueIssuanceResponseBindingDto {
62
63
  interactionId: string;
63
64
  keyStorageSecurityLevels?: Array<KeyStorageSecurityBindingEnum>;
64
65
  keyAlgorithms?: Array<string>;
66
+ requiresWalletInstanceAttestation: boolean;
67
+ protocol: string;
65
68
  }
66
69
  export interface CreateCaCsrRequestBindingDto {
67
70
  subject: KeyGenerateCsrRequestSubjectBindingDto;
@@ -115,7 +118,6 @@ export interface CreateProofRequestBindingDto {
115
118
  redirectUri?: string;
116
119
  verifierKey?: string;
117
120
  verifierCertificate?: string;
118
- scanToVerify?: ScanToVerifyRequestBindingDto;
119
121
  isoMdlEngagement?: string;
120
122
  transport?: Array<string>;
121
123
  profile?: string;
@@ -193,7 +195,6 @@ export interface CredentialDetailBindingDto {
193
195
  claims: Array<ClaimBindingDto>;
194
196
  redirectUri?: string;
195
197
  role: CredentialRoleBindingDto;
196
- lvvcIssuanceDate?: string;
197
198
  suspendEndDate?: string;
198
199
  mdocMsoValidity?: MdocMsoValidityResponseBindingDto;
199
200
  protocol: string;
@@ -274,7 +275,7 @@ export interface CredentialSchemaBindingDto {
274
275
  importedSourceUrl: string;
275
276
  layoutProperties?: CredentialSchemaLayoutPropertiesBindingDto;
276
277
  allowSuspension: boolean;
277
- requiresAppAttestation: boolean;
278
+ requiresWalletInstanceAttestation: boolean;
278
279
  }
279
280
  export interface CredentialSchemaCodePropertiesBindingDto {
280
281
  attribute: string;
@@ -294,7 +295,8 @@ export interface CredentialSchemaDetailBindingDto {
294
295
  layoutType?: LayoutTypeBindingEnum;
295
296
  layoutProperties?: CredentialSchemaLayoutPropertiesBindingDto;
296
297
  allowSuspension: boolean;
297
- requiresAppAttestation: boolean;
298
+ requiresWalletInstanceAttestation: boolean;
299
+ transactionCode?: CredentialSchemaTransactionCodeBindingDto;
298
300
  }
299
301
  export interface CredentialSchemaLayoutPropertiesBindingDto {
300
302
  background?: CredentialSchemaBackgroundPropertiesBindingDto;
@@ -334,6 +336,11 @@ export interface CredentialSchemaLogoPropertiesBindingDto {
334
336
  export interface CredentialSchemaShareResponseBindingDto {
335
337
  url: string;
336
338
  }
339
+ export interface CredentialSchemaTransactionCodeBindingDto {
340
+ type: TransactionCodeTypeBindingEnum;
341
+ length: number;
342
+ description?: string;
343
+ }
337
344
  export interface CredentialSetResponseBindingDto {
338
345
  required: boolean;
339
346
  options: Array<Array<string>>;
@@ -650,7 +657,13 @@ export interface ImportCredentialSchemaRequestSchemaBindingDto {
650
657
  layoutType?: LayoutTypeBindingEnum;
651
658
  layoutProperties?: ImportCredentialSchemaLayoutPropertiesBindingDto;
652
659
  allowSuspension?: boolean;
653
- requiresAppAttestation?: boolean;
660
+ requiresWalletInstanceAttestation?: boolean;
661
+ transactionCode?: ImportCredentialSchemaTransactionCodeBindingDto;
662
+ }
663
+ export interface ImportCredentialSchemaTransactionCodeBindingDto {
664
+ type: TransactionCodeTypeBindingEnum;
665
+ length: number;
666
+ description?: string;
654
667
  }
655
668
  export interface ImportProofSchemaBindingDto {
656
669
  id: string;
@@ -685,12 +698,11 @@ export interface ImportProofSchemaCredentialSchemaBindingDto {
685
698
  layoutType?: LayoutTypeBindingEnum;
686
699
  layoutProperties?: CredentialSchemaLayoutPropertiesBindingDto;
687
700
  allowSuspension?: boolean;
688
- requiresAppAttestation?: boolean;
701
+ requiresWalletInstanceAttestation?: boolean;
689
702
  }
690
703
  export interface ImportProofSchemaInputSchemaBindingDto {
691
704
  claimSchemas: Array<ImportProofSchemaClaimSchemaBindingDto>;
692
705
  credentialSchema: ImportProofSchemaCredentialSchemaBindingDto;
693
- validityConstraint?: number;
694
706
  }
695
707
  export interface ImportProofSchemaRequestBindingsDto {
696
708
  schema: ImportProofSchemaBindingDto;
@@ -874,7 +886,6 @@ export interface PresentationDefinitionRequestedCredentialBindingDto {
874
886
  fields: Array<PresentationDefinitionFieldBindingDto>;
875
887
  applicableCredentials: Array<string>;
876
888
  inapplicableCredentials: Array<string>;
877
- validityCredentialNbf?: string;
878
889
  multiple?: boolean;
879
890
  }
880
891
  export interface PresentationDefinitionRuleBindingDto {
@@ -904,7 +915,6 @@ export interface PresentationDefinitionV2CredentialDetailBindingDto {
904
915
  claims: Array<PresentationDefinitionV2ClaimBindingDto>;
905
916
  redirectUri?: string;
906
917
  role: CredentialRoleBindingDto;
907
- lvvcIssuanceDate?: string;
908
918
  suspendEndDate?: string;
909
919
  mdocMsoValidity?: MdocMsoValidityResponseBindingDto;
910
920
  protocol: string;
@@ -935,16 +945,13 @@ export interface ProofInputBindingDto {
935
945
  claims: Array<ProofRequestClaimBindingDto>;
936
946
  credential?: CredentialDetailBindingDto;
937
947
  credentialSchema: CredentialSchemaBindingDto;
938
- validityConstraint?: number;
939
948
  }
940
949
  export interface ProofInputSchemaBindingDto {
941
950
  claimSchemas: Array<ProofClaimSchemaBindingDto>;
942
951
  credentialSchema: CredentialSchemaBindingDto;
943
- validityConstraint?: number;
944
952
  }
945
953
  export interface ProofInputSchemaRequestDto {
946
954
  credentialSchemaId: string;
947
- validityConstraint?: number;
948
955
  claimSchemas: Array<CreateProofSchemaClaimRequestDto>;
949
956
  }
950
957
  export interface ProofListBindingDto {
@@ -1046,11 +1053,6 @@ export interface ResolvedIdentifierTrustEntityResponseBindingDto {
1046
1053
  trustEntity: GetTrustEntityResponseBindingDto;
1047
1054
  certificateIds?: Array<string>;
1048
1055
  }
1049
- export interface ScanToVerifyRequestBindingDto {
1050
- credential: string;
1051
- barcode: string;
1052
- barcodeType: ScanToVerifyBarcodeTypeBindingEnum;
1053
- }
1054
1056
  export interface ServiceDescriptionBindingDto {
1055
1057
  uuid: string;
1056
1058
  advertise: boolean;
@@ -1340,6 +1342,8 @@ export type HandleInvitationResponseBindingEnum = {
1340
1342
  * This code is typically sent through a separate channel such as SMS or email.
1341
1343
  */
1342
1344
  txCode?: OpenId4vciTxCodeBindingDto;
1345
+ protocol: string;
1346
+ requiresWalletInstanceAttestation: boolean;
1343
1347
  } | {
1344
1348
  type_: "AUTHORIZATION_CODE_FLOW";
1345
1349
  /** For reference. */
@@ -1349,12 +1353,14 @@ export type HandleInvitationResponseBindingEnum = {
1349
1353
  * the authorization process with the authorization server.
1350
1354
  */
1351
1355
  authorizationCodeFlowUrl: string;
1356
+ protocol: string;
1352
1357
  } | {
1353
1358
  type_: "PROOF_REQUEST";
1354
1359
  /** For reference. */
1355
1360
  interactionId: string;
1356
1361
  /** Proof request. */
1357
1362
  proofId: string;
1363
+ protocol: string;
1358
1364
  };
1359
1365
  export declare enum HistoryActionBindingEnum {
1360
1366
  ACCEPTED = "ACCEPTED",
@@ -1383,7 +1389,8 @@ export declare enum HistoryActionBindingEnum {
1383
1389
  EXPIRED = "EXPIRED",
1384
1390
  INTERACTION_CREATED = "INTERACTION_CREATED",
1385
1391
  INTERACTION_ERRORED = "INTERACTION_ERRORED",
1386
- INTERACTION_EXPIRED = "INTERACTION_EXPIRED"
1392
+ INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
1393
+ DELIVERED = "DELIVERED"
1387
1394
  }
1388
1395
  export declare enum HistoryEntityTypeBindingEnum {
1389
1396
  KEY = "KEY",
@@ -1405,8 +1412,11 @@ export declare enum HistoryEntityTypeBindingEnum {
1405
1412
  STS_ROLE = "STS_ROLE",
1406
1413
  STS_ORGANISATION = "STS_ORGANISATION",
1407
1414
  STS_IAM_ROLE = "STS_IAM_ROLE",
1415
+ STS_SESSION = "STS_SESSION",
1408
1416
  STS_TOKEN = "STS_TOKEN",
1409
- SIGNATURE = "SIGNATURE"
1417
+ SIGNATURE = "SIGNATURE",
1418
+ NOTIFICATION = "NOTIFICATION",
1419
+ SUPERVISORY_AUTHORITY = "SUPERVISORY_AUTHORITY"
1410
1420
  }
1411
1421
  export type HistoryMetadataBinding = {
1412
1422
  type_: "UNEXPORTABLE_ENTITIES";
@@ -1540,10 +1550,6 @@ export declare enum ProofStateBindingEnum {
1540
1550
  ERROR = "ERROR",
1541
1551
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED"
1542
1552
  }
1543
- export declare enum ScanToVerifyBarcodeTypeBindingEnum {
1544
- MRZ = "MRZ",
1545
- PDF417 = "PDF417"
1546
- }
1547
1553
  export declare enum SearchTypeBindingEnum {
1548
1554
  CLAIM_NAME = "CLAIM_NAME",
1549
1555
  CLAIM_VALUE = "CLAIM_VALUE",
@@ -1599,6 +1605,10 @@ export declare enum SortableTrustEntityColumnBindings {
1599
1605
  LAST_MODIFIED = "LAST_MODIFIED",
1600
1606
  STATE = "STATE"
1601
1607
  }
1608
+ export declare enum TransactionCodeTypeBindingEnum {
1609
+ NUMERIC = "NUMERIC",
1610
+ ALPHANUMERIC = "ALPHANUMERIC"
1611
+ }
1602
1612
  export declare enum TrustEntityRoleBindingEnum {
1603
1613
  ISSUER = "ISSUER",
1604
1614
  VERIFIER = "VERIFIER",
@@ -145,6 +145,7 @@ export var HistoryActionBindingEnum;
145
145
  HistoryActionBindingEnum["INTERACTION_CREATED"] = "INTERACTION_CREATED";
146
146
  HistoryActionBindingEnum["INTERACTION_ERRORED"] = "INTERACTION_ERRORED";
147
147
  HistoryActionBindingEnum["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
148
+ HistoryActionBindingEnum["DELIVERED"] = "DELIVERED";
148
149
  })(HistoryActionBindingEnum || (HistoryActionBindingEnum = {}));
149
150
  export var HistoryEntityTypeBindingEnum;
150
151
  (function (HistoryEntityTypeBindingEnum) {
@@ -167,8 +168,11 @@ export var HistoryEntityTypeBindingEnum;
167
168
  HistoryEntityTypeBindingEnum["STS_ROLE"] = "STS_ROLE";
168
169
  HistoryEntityTypeBindingEnum["STS_ORGANISATION"] = "STS_ORGANISATION";
169
170
  HistoryEntityTypeBindingEnum["STS_IAM_ROLE"] = "STS_IAM_ROLE";
171
+ HistoryEntityTypeBindingEnum["STS_SESSION"] = "STS_SESSION";
170
172
  HistoryEntityTypeBindingEnum["STS_TOKEN"] = "STS_TOKEN";
171
173
  HistoryEntityTypeBindingEnum["SIGNATURE"] = "SIGNATURE";
174
+ HistoryEntityTypeBindingEnum["NOTIFICATION"] = "NOTIFICATION";
175
+ HistoryEntityTypeBindingEnum["SUPERVISORY_AUTHORITY"] = "SUPERVISORY_AUTHORITY";
172
176
  })(HistoryEntityTypeBindingEnum || (HistoryEntityTypeBindingEnum = {}));
173
177
  export var HistorySearchEnumBindingEnum;
174
178
  (function (HistorySearchEnumBindingEnum) {
@@ -254,11 +258,6 @@ export var ProofStateBindingEnum;
254
258
  ProofStateBindingEnum["ERROR"] = "ERROR";
255
259
  ProofStateBindingEnum["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
256
260
  })(ProofStateBindingEnum || (ProofStateBindingEnum = {}));
257
- export var ScanToVerifyBarcodeTypeBindingEnum;
258
- (function (ScanToVerifyBarcodeTypeBindingEnum) {
259
- ScanToVerifyBarcodeTypeBindingEnum["MRZ"] = "MRZ";
260
- ScanToVerifyBarcodeTypeBindingEnum["PDF417"] = "PDF417";
261
- })(ScanToVerifyBarcodeTypeBindingEnum || (ScanToVerifyBarcodeTypeBindingEnum = {}));
262
261
  export var SearchTypeBindingEnum;
263
262
  (function (SearchTypeBindingEnum) {
264
263
  SearchTypeBindingEnum["CLAIM_NAME"] = "CLAIM_NAME";
@@ -324,6 +323,11 @@ export var SortableTrustEntityColumnBindings;
324
323
  SortableTrustEntityColumnBindings["LAST_MODIFIED"] = "LAST_MODIFIED";
325
324
  SortableTrustEntityColumnBindings["STATE"] = "STATE";
326
325
  })(SortableTrustEntityColumnBindings || (SortableTrustEntityColumnBindings = {}));
326
+ export var TransactionCodeTypeBindingEnum;
327
+ (function (TransactionCodeTypeBindingEnum) {
328
+ TransactionCodeTypeBindingEnum["NUMERIC"] = "NUMERIC";
329
+ TransactionCodeTypeBindingEnum["ALPHANUMERIC"] = "ALPHANUMERIC";
330
+ })(TransactionCodeTypeBindingEnum || (TransactionCodeTypeBindingEnum = {}));
327
331
  export var TrustEntityRoleBindingEnum;
328
332
  (function (TrustEntityRoleBindingEnum) {
329
333
  TrustEntityRoleBindingEnum["ISSUER"] = "ISSUER";
@@ -30,24 +30,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
30
30
  ) {
31
31
  ProcivisOneCoreEventEmitter.shared.eventEmitter = self
32
32
  syncCall(resolve, reject) {
33
- guard
34
- let dataDirPath = NSSearchPathForDirectoriesInDomains(
35
- .applicationSupportDirectory,
36
- .userDomainMask,
37
- true
38
- ).first
39
- else {
40
- throw BindingError.ErrorResponse(
41
- data: ErrorResponseBindingDto(code: "BR_0000", message: "invalid DataDir", cause: nil)
42
- )
43
- }
44
-
45
- // create folder if not exists
46
- try FileManager.default.createDirectory(
47
- atPath: dataDirPath,
48
- withIntermediateDirectories: true
49
- )
50
-
51
33
  if self.core != nil {
52
34
  throw BindingError.ErrorResponse(
53
35
  data: ErrorResponseBindingDto(
@@ -70,7 +52,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
70
52
  }
71
53
 
72
54
  self.core = try initializeCore(
73
- dataDirPath: dataDirPath,
74
55
  params: InitParamsDto(
75
56
  configJson: configJson,
76
57
  nativeSecureElement: SecureEnclaveKeyStorage(),
@@ -114,10 +114,12 @@ private func serialize(proofRequestClaimValue: ProofRequestClaimValueBindingDto)
114
114
 
115
115
  private func serialize(invitationResponse: HandleInvitationResponseBindingEnum) throws -> NSDictionary {
116
116
  switch (invitationResponse) {
117
- case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode):
117
+ case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode, `protocol`, requiresWalletInstanceAttestation):
118
118
  var result: [String: Any] = [
119
119
  "type_": "CREDENTIAL_ISSUANCE",
120
- "interactionId": interactionId
120
+ "interactionId": interactionId,
121
+ "protocol": `protocol`,
122
+ "requiresWalletInstanceAttestation": requiresWalletInstanceAttestation
121
123
  ];
122
124
  if let keyStorageSecurityLevels = keyStorageSecurityLevels {
123
125
  result["keyStorageSecurityLevels"] = keyStorageSecurityLevels.map { serializeEnumValue(value: $0) }
@@ -130,18 +132,20 @@ private func serialize(invitationResponse: HandleInvitationResponseBindingEnum)
130
132
  }
131
133
  return result as NSDictionary;
132
134
 
133
- case let .proofRequest(interactionId, proofId):
135
+ case let .proofRequest(interactionId, proofId, `protocol`):
134
136
  return [
135
137
  "type_": "PROOF_REQUEST",
136
138
  "interactionId": interactionId,
137
- "proofId": proofId
139
+ "proofId": proofId,
140
+ "protocol": `protocol`
138
141
  ];
139
142
 
140
- case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl):
143
+ case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl, `protocol`):
141
144
  return [
142
145
  "type_": "AUTHORIZATION_CODE_FLOW",
143
146
  "interactionId": interactionId,
144
- "authorizationCodeFlowUrl": authorizationCodeFlowUrl
147
+ "authorizationCodeFlowUrl": authorizationCodeFlowUrl,
148
+ "protocol": `protocol`
145
149
  ];
146
150
  }
147
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procivis/react-native-one-core",
3
- "version": "1.84437.0",
3
+ "version": "1.90342.0",
4
4
  "author": "Procivis AG (https://procivis.ch)",
5
5
  "license": "Apache-2.0",
6
6
  "description": "ONE core bindings for React Native",