@procivis/react-native-one-core 1.120826.0 → 1.123589.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.
@@ -138,14 +138,6 @@ 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
-
149
141
  @ReactMethod
150
142
  fun generateKey(keyRequest: ReadableMap, promise: Promise) {
151
143
  asyncCall(promise, scope) {
@@ -45,6 +45,9 @@ object SerializeSpecific {
45
45
  if (input is HandleInvitationResponse) {
46
46
  return invitationResponse(input)
47
47
  }
48
+ if (input is TrustInformationDetailInfo) {
49
+ return trustInformationDetailInfo(input)
50
+ }
48
51
  throw IllegalArgumentException("Invalid map conversion: $input")
49
52
  }
50
53
 
@@ -251,6 +254,19 @@ object SerializeSpecific {
251
254
  }
252
255
  return result
253
256
  }
257
+
258
+ private fun trustInformationDetailInfo(value: TrustInformationDetailInfo): ReadableMap {
259
+ val result = Arguments.createMap()
260
+ when (value) {
261
+ is TrustInformationDetailInfo.Eudi -> {
262
+ result.putString("type_", "EUDI")
263
+ val values = Arguments.createArray()
264
+ values.pushMap(convertToRN(value.v1) as ReadableMap)
265
+ result.putArray("value", values)
266
+ }
267
+ }
268
+ return result
269
+ }
254
270
  }
255
271
 
256
272
  object Arr {
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/120826/android/onecore-debug.aar",
5
- "sha1": "8042630dab29996bf714f17cc780098228e5810c"
4
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/123589/android/onecore-debug.aar",
5
+ "sha1": "766ed3ca27be31e8e53c8f653b9722953c18d723"
6
6
  },
7
7
  "release": {
8
- "url": "https://onesdk.blob.core.windows.net/core-sdk/120826/android/onecore-release.aar",
9
- "sha1": "5d1f2e7ce8268174bf46c05d3d546cf54c018d4e"
8
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/123589/android/onecore-release.aar",
9
+ "sha1": "258c5ad012ab0da9a291d7b7dbb33094ca1b313e"
10
10
  }
11
11
  },
12
12
  "ios": {
13
- "url": "https://onesdk.blob.core.windows.net/core-sdk/120826/ios/deploy.zip",
14
- "sha1": "9dad563f89940149b23b8223e44ec09cb33437e0"
13
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/123589/ios/deploy.zip",
14
+ "sha1": "1667b6b7c84638dc7660eba00cdd8f904814c3f7"
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", "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"];
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", "holderRegisterInstance", "holderActivateInstance", "holderInstanceStatus", "holderGetInstance", "nfcReadIsoMdlEngagement", "nfcStopIsoMdlEngagement", "uninitialize"];
package/dist/src/core.js CHANGED
@@ -10,7 +10,6 @@ export const interfaceMethodNames = [
10
10
  "createOrganisation",
11
11
  "upsertOrganisation",
12
12
  "getOrganisation",
13
- "getOrganisationTrustCollections",
14
13
  "generateKey",
15
14
  "createDid",
16
15
  "listDids",
@@ -138,7 +138,6 @@ export interface CreateCredentialSchemaRequest {
138
138
  organisationId: string;
139
139
  claims: Array<CredentialClaimSchemaRequest>;
140
140
  keyStorageSecurity?: KeyStorageSecurity;
141
- layoutType: LayoutType;
142
141
  layoutProperties?: CredentialSchemaLayoutProperties;
143
142
  allowSuspension?: boolean;
144
143
  allowRevocation?: boolean;
@@ -148,6 +147,7 @@ export interface CreateCredentialSchemaRequest {
148
147
  translations?: CredentialSchemaTranslations;
149
148
  embeddedDisclosurePolicy?: DisclosurePolicyCreateRequest;
150
149
  expiration?: number;
150
+ ecosystem?: string;
151
151
  }
152
152
  export interface CreateDidRequest {
153
153
  organisationId: string;
@@ -253,6 +253,7 @@ export interface CreateProofSchemaRequest {
253
253
  expireDuration: number;
254
254
  /** Set of all claims to request. */
255
255
  proofInputSchemas: Array<CreateProofSchemaInput>;
256
+ ecosystem?: string;
256
257
  }
257
258
  export interface CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest {
258
259
  type: CreateSelfSignedCaRequestIssuerAlternativeNameType;
@@ -328,6 +329,7 @@ export interface CredentialDetail {
328
329
  type: CredentialType;
329
330
  remainingBatchItemCount?: number;
330
331
  parentId?: string;
332
+ ecosystem?: string;
331
333
  }
332
334
  export interface CredentialList {
333
335
  values: Array<CredentialListItem>;
@@ -364,6 +366,7 @@ export interface CredentialListItem {
364
366
  type: CredentialType;
365
367
  parentId?: string;
366
368
  redirectUri?: string;
369
+ ecosystem?: string;
367
370
  }
368
371
  export interface CredentialListQuery {
369
372
  /** Page number to retrieve (0-based indexing). */
@@ -409,6 +412,7 @@ export interface CredentialListQuery {
409
412
  include?: Array<CredentialListIncludeEntityType>;
410
413
  /** Return only credentials with the specified credential schema(s). */
411
414
  credentialSchemaIds?: Array<string>;
415
+ ecosystems?: Array<string>;
412
416
  /**
413
417
  * Return only credentials created after this time. Timestamp in
414
418
  * RFC 3339 format (for example `2023-06-09T14:19:57.000Z`).
@@ -482,7 +486,6 @@ export interface CredentialSchemaDetail {
482
486
  claims: Array<ClaimSchema>;
483
487
  keyStorageSecurity?: KeyStorageSecurity;
484
488
  importedSourceUrl: string;
485
- layoutType?: LayoutType;
486
489
  layoutProperties?: CredentialSchemaLayoutProperties;
487
490
  allowSuspension: boolean;
488
491
  allowRevocation?: boolean;
@@ -491,6 +494,7 @@ export interface CredentialSchemaDetail {
491
494
  transactionCode?: CredentialSchemaTransactionCode;
492
495
  translations: CredentialSchemaTranslations;
493
496
  expiration?: number;
497
+ ecosystem?: string;
494
498
  }
495
499
  export interface CredentialSchemaDetailInfo {
496
500
  id: string;
@@ -503,7 +507,6 @@ export interface CredentialSchemaDetailInfo {
503
507
  keyStorageSecurity?: KeyStorageSecurity;
504
508
  schemaId: string;
505
509
  importedSourceUrl: string;
506
- layoutType?: LayoutType;
507
510
  layoutProperties?: CredentialSchemaLayoutProperties;
508
511
  allowSuspension: boolean;
509
512
  requiresWalletInstanceAttestation: boolean;
@@ -527,7 +530,6 @@ export interface CredentialSchemaInfo {
527
530
  revocationMethod?: string;
528
531
  keyStorageSecurity?: KeyStorageSecurity;
529
532
  schemaId: string;
530
- layoutType?: LayoutType;
531
533
  importedSourceUrl: string;
532
534
  layoutProperties?: CredentialSchemaLayoutProperties;
533
535
  allowSuspension: boolean;
@@ -555,13 +557,13 @@ export interface CredentialSchemaListItem {
555
557
  formats: Array<CredentialSchemaFormatResponse>;
556
558
  keyStorageSecurity?: KeyStorageSecurity;
557
559
  importedSourceUrl: string;
558
- layoutType?: LayoutType;
559
560
  layoutProperties?: CredentialSchemaLayoutProperties;
560
561
  allowSuspension: boolean;
561
562
  allowRevocation?: boolean;
562
563
  batchSize?: number;
563
564
  requiresWalletInstanceAttestation: boolean;
564
565
  expiration?: number;
566
+ ecosystem?: string;
565
567
  }
566
568
  export interface CredentialSchemaListQuery {
567
569
  page: number;
@@ -575,6 +577,7 @@ export interface CredentialSchemaListQuery {
575
577
  include?: Array<CredentialSchemaListIncludeEntityType>;
576
578
  schemaIds?: Array<string>;
577
579
  formats?: Array<string>;
580
+ ecosystems?: Array<string>;
578
581
  usesBatchIssuance?: boolean;
579
582
  isMultiformatSchema?: boolean;
580
583
  createdDateAfter?: string;
@@ -700,6 +703,17 @@ export interface DisplayName {
700
703
  lang: string;
701
704
  value: string;
702
705
  }
706
+ export interface EcosystemInfo {
707
+ /** When true, the organization has selected this ecosystem. */
708
+ selected: boolean;
709
+ /** When true, the ecosystem should be selected by provider default (if any). */
710
+ defaultSelected: boolean;
711
+ /** Ecosystem provider name. */
712
+ name: string;
713
+ displayName: Array<DisplayName>;
714
+ description: Array<DisplayName>;
715
+ logo: string;
716
+ }
703
717
  export interface ErrorResponse {
704
718
  code: string;
705
719
  message: string;
@@ -981,8 +995,14 @@ export interface IdentifierListQuery {
981
995
  keyStorages?: Array<string>;
982
996
  certificateRoles?: Array<CertificateRole>;
983
997
  certificateRolesMatchMode?: CertificateRolesMatchMode;
998
+ /** Deprecated, use `ecosystemCredentialSchemaId` */
984
999
  trustIssuanceSchemaId?: string;
1000
+ /** Deprecated, use `ecosystemProofSchemaId` */
985
1001
  trustVerificationSchemaId?: string;
1002
+ ecosystem?: string;
1003
+ ecosystemRoles?: Array<EcosystemRole>;
1004
+ ecosystemCredentialSchemaId?: string;
1005
+ ecosystemProofSchemaId?: string;
986
1006
  createdDateAfter?: string;
987
1007
  createdDateBefore?: string;
988
1008
  lastModifiedAfter?: string;
@@ -1032,7 +1052,6 @@ export interface ImportCredentialSchemaRequestSchema {
1032
1052
  claims: Array<ImportCredentialSchemaClaimSchema>;
1033
1053
  keyStorageSecurity?: KeyStorageSecurity;
1034
1054
  importedSourceUrl: string;
1035
- layoutType?: LayoutType;
1036
1055
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
1037
1056
  allowSuspension?: boolean;
1038
1057
  requiresWalletInstanceAttestation?: boolean;
@@ -1086,7 +1105,6 @@ export interface ImportProofSchemaCredentialSchema {
1086
1105
  keyStorageSecurity?: KeyStorageSecurity;
1087
1106
  schemaId: string;
1088
1107
  importedSourceUrl: string;
1089
- layoutType?: LayoutType;
1090
1108
  layoutProperties?: CredentialSchemaLayoutProperties;
1091
1109
  allowSuspension?: boolean;
1092
1110
  requiresWalletInstanceAttestation?: boolean;
@@ -1135,12 +1153,6 @@ export interface InitiateIssuanceRequest {
1135
1153
  export interface InitiateIssuanceResponse {
1136
1154
  url: string;
1137
1155
  }
1138
- export interface InstanceDetail {
1139
- id: string;
1140
- providerUrl: string;
1141
- providerName: string;
1142
- authenticationKeyType: string;
1143
- }
1144
1156
  export interface InstanceProvider {
1145
1157
  /**
1146
1158
  * Full URL for the GET provider metadata endpoint, for example:
@@ -1202,22 +1214,21 @@ export interface OpenId4vciTxCode {
1202
1214
  description?: string;
1203
1215
  }
1204
1216
  export interface OrganisationConfiguration {
1205
- selectedEcosystems: Array<string>;
1206
1217
  /**
1207
- * When true, the verifier will only validate presentations of
1208
- * credentials issued by trusted issuers.
1218
+ * When true, the issuer will only issue credentials to holders of one of
1219
+ * the selected ecosystems.
1209
1220
  */
1210
- trustedIssuerRequired: boolean;
1221
+ enforceEcosystemAsIssuer: boolean;
1211
1222
  /**
1212
- * When true, the wallet only accepts presentation requests from
1213
- * trusted relying parties.
1223
+ * When true, the wallet only accepts issuance and presentation requests
1224
+ * from members of one of the selected ecosystems.
1214
1225
  */
1215
- trustedRpRequired: boolean;
1226
+ enforceEcosystemAsHolder: boolean;
1216
1227
  /**
1217
- * When true, the issuer will only issue credentials requiring wallet
1218
- * attestations to wallets of trusted wallet providers.
1228
+ * When true, the verifier will only validate presentations of credentials
1229
+ * issued within one of the selected ecosystems.
1219
1230
  */
1220
- trustedWalletProviderRequired: boolean;
1231
+ enforceEcosystemAsVerifier: boolean;
1221
1232
  }
1222
1233
  export interface OrganisationDetail {
1223
1234
  id: string;
@@ -1231,18 +1242,26 @@ export interface OrganisationDetail {
1231
1242
  parentOrganisation?: string;
1232
1243
  /** Policy-level configuration for this organization. */
1233
1244
  configuration?: OrganisationConfiguration;
1245
+ /**
1246
+ * The ecosystems offered to this organization by its wallet or verifier
1247
+ * provider, annotated with whether the organization currently selected
1248
+ * each one. Ecosystems this system is not configured for are omitted.
1249
+ * If there is no wallet or verifier provider, the ecosystems configured
1250
+ * in the local system are returned.
1251
+ */
1252
+ ecosystems: Array<EcosystemInfo>;
1234
1253
  walletProvider?: WalletProviderDetail;
1235
1254
  verifierProvider?: VerifierProviderDetail;
1236
1255
  /**
1237
1256
  * Wallet registration details for this organization's Business
1238
1257
  * Wallet.
1239
1258
  */
1240
- walletInstance?: InstanceDetail;
1259
+ walletInstance?: WalletInstanceDetail;
1241
1260
  /**
1242
1261
  * Verifier registration details for this organization's Business
1243
1262
  * Verifier.
1244
1263
  */
1245
- verifierInstance?: InstanceDetail;
1264
+ verifierInstance?: VerifierInstanceDetail;
1246
1265
  }
1247
1266
  export interface PeripheralDiscoveryData {
1248
1267
  deviceAddress: string;
@@ -1367,6 +1386,7 @@ export interface ProofDetail {
1367
1386
  trustInformation?: TrustInformation;
1368
1387
  /** Transaction data attached to this proof request. Present only if the proof role is `VERIFIER`. */
1369
1388
  transactionData?: Array<TransactionDataResponse>;
1389
+ ecosystem?: string;
1370
1390
  }
1371
1391
  export interface ProofInput {
1372
1392
  /** Set of claims asserted by the shared credential. */
@@ -1412,6 +1432,7 @@ export interface ProofListItem {
1412
1432
  retainUntilDate?: string;
1413
1433
  /** Country profile associated with this request. */
1414
1434
  profile?: string;
1435
+ ecosystem?: string;
1415
1436
  redirectUri?: string;
1416
1437
  }
1417
1438
  export interface ProofListQuery {
@@ -1429,6 +1450,7 @@ export interface ProofListQuery {
1429
1450
  name?: string;
1430
1451
  /** Filter by one or more country profiles. */
1431
1452
  profiles?: Array<string>;
1453
+ ecosystems?: Array<string>;
1432
1454
  /** Filter by one or more UUIDs. */
1433
1455
  ids?: Array<string>;
1434
1456
  /** Filter by one or more proof request states. */
@@ -1513,6 +1535,7 @@ export interface ProofSchemaDetail {
1513
1535
  proofInputSchemas: Array<ProofInputSchema>;
1514
1536
  /** Source URL for imported schema. */
1515
1537
  importedSourceUrl?: string;
1538
+ ecosystem?: string;
1516
1539
  }
1517
1540
  export interface ProofSchemaList {
1518
1541
  values: Array<ProofSchemaListItem>;
@@ -1532,6 +1555,7 @@ export interface ProofSchemaListItem {
1532
1555
  * deleted.
1533
1556
  */
1534
1557
  expireDuration: number;
1558
+ ecosystem?: string;
1535
1559
  }
1536
1560
  export interface ProofSchemaListQuery {
1537
1561
  page: number;
@@ -1543,6 +1567,7 @@ export interface ProofSchemaListQuery {
1543
1567
  exact?: Array<ProofSchemaListQueryExactColumn>;
1544
1568
  ids?: Array<string>;
1545
1569
  formats?: Array<string>;
1570
+ ecosystems?: Array<string>;
1546
1571
  createdDateAfter?: string;
1547
1572
  createdDateBefore?: string;
1548
1573
  lastModifiedAfter?: string;
@@ -1664,27 +1689,15 @@ export interface TransactionDataResponse {
1664
1689
  /** Type-specific transaction data content, encoded as a JSON string. */
1665
1690
  data?: string;
1666
1691
  }
1667
- export interface TrustCollectionInfo {
1668
- /** When true, the organization is subscribed to this trust collection. */
1669
- selected: boolean;
1670
- id: string;
1671
- name: string;
1672
- logo: string;
1673
- displayName: Array<DisplayName>;
1674
- description: Array<DisplayName>;
1675
- defaultSelected?: boolean;
1676
- }
1677
1692
  export interface TrustInformation {
1678
1693
  receivedAt: string;
1679
1694
  name?: string;
1680
1695
  result: TrustResolutionResult;
1681
1696
  }
1682
1697
  export interface TrustInformationDetail {
1683
- /**
1684
- * EUDI trust information received from Access Certificates, Registration
1685
- * Certificates, or National Registry public APIs.
1686
- */
1687
- eudiEcosystem?: EudiTrustInformation;
1698
+ ecosystem?: string;
1699
+ issuer?: TrustInformationDetailInfo;
1700
+ verifier?: TrustInformationDetailInfo;
1688
1701
  }
1689
1702
  export interface TrustResolutionMetadata {
1690
1703
  result: TrustResolutionResult;
@@ -1702,20 +1715,21 @@ export interface UnexportableEntities {
1702
1715
  export interface UpsertOrganisationConfiguration {
1703
1716
  selectedEcosystems?: Array<string>;
1704
1717
  /**
1705
- * When true, the verifier will only validate presentations of
1706
- * credentials issued by trusted issuers.
1718
+ * When true, the issuer will only issue credentials to wallet units of one of
1719
+ * the selected ecosystems.
1707
1720
  */
1708
- trustedIssuerRequired?: boolean;
1721
+ enforceEcosystemAsIssuer?: boolean;
1709
1722
  /**
1710
- * When true, the wallet only accepts presentation requests from
1711
- * trusted relying parties.
1723
+ * When true, the wallet only accepts issuance and presentation requests
1724
+ * from members of one of the selected ecosystems.
1712
1725
  */
1713
- trustedRpRequired?: boolean;
1726
+ enforceEcosystemAsHolder?: boolean;
1714
1727
  /**
1715
- * When true, the issuer will only issue credentials requiring wallet
1716
- * attestations to wallets of trusted wallet providers.
1728
+ * When true, the verifier will only accept presentations of credentials
1729
+ * issued by issuers of the selected ecosystems. Ecosystems must be consistent
1730
+ * across presentations belonging to the same proof request.
1717
1731
  */
1718
- trustedWalletProviderRequired?: boolean;
1732
+ enforceEcosystemAsVerifier?: boolean;
1719
1733
  }
1720
1734
  export interface UpsertOrganisationRequest {
1721
1735
  /** Unique identifier of the organization to create or update. */
@@ -1744,6 +1758,20 @@ export interface UpsertOrganisationRequest {
1744
1758
  */
1745
1759
  parentOrganisation?: string | null;
1746
1760
  }
1761
+ export interface VerifierInstanceDetail {
1762
+ id: string;
1763
+ providerUrl: string;
1764
+ providerName: string;
1765
+ authenticationKeyType: string;
1766
+ /** The feature flags advertised by the provider backing this instance. */
1767
+ featureFlags: VerifierInstanceFeatureFlags;
1768
+ }
1769
+ export interface VerifierInstanceFeatureFlags {
1770
+ ecosystemsEnabled: boolean;
1771
+ /** Whether this instance must enforce the ecosystems advertised by its provider. */
1772
+ ecosystemsEnforcementEnabled: boolean;
1773
+ accessCertificateProvisioningEnabled: boolean;
1774
+ }
1747
1775
  export interface VerifierProviderDetail {
1748
1776
  /** Verifier Provider configuration used by this organization. */
1749
1777
  providerName?: string;
@@ -1762,6 +1790,21 @@ export interface Version {
1762
1790
  rustVersion: string;
1763
1791
  pipelineId: string;
1764
1792
  }
1793
+ export interface WalletInstanceDetail {
1794
+ id: string;
1795
+ providerUrl: string;
1796
+ providerName: string;
1797
+ authenticationKeyType: string;
1798
+ /** The feature flags advertised by the provider backing this instance. */
1799
+ featureFlags: WalletInstanceFeatureFlags;
1800
+ }
1801
+ export interface WalletInstanceFeatureFlags {
1802
+ ecosystemsEnabled: boolean;
1803
+ /** Whether this instance must enforce the ecosystems advertised by its provider. */
1804
+ ecosystemsEnforcementEnabled: boolean;
1805
+ refreshCredentialBatchEnabled: boolean;
1806
+ documentSigningEnabled: boolean;
1807
+ }
1765
1808
  export interface WalletProviderDetail {
1766
1809
  /**
1767
1810
  * Wallet Provider configuration used by this organization to provide
@@ -1772,7 +1815,7 @@ export interface WalletProviderDetail {
1772
1815
  issuer?: IdentifierListItem;
1773
1816
  }
1774
1817
  export interface WalletRelyingPartyMetadata {
1775
- name: string;
1818
+ name?: string;
1776
1819
  }
1777
1820
  export type ApplicableCredentialOrFailureHint = {
1778
1821
  type_: "APPLICABLE_CREDENTIALS";
@@ -1956,7 +1999,8 @@ export declare enum CredentialState {
1956
1999
  SUSPENDED = "SUSPENDED",
1957
2000
  ERROR = "ERROR",
1958
2001
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
1959
- EXPIRED = "EXPIRED"
2002
+ EXPIRED = "EXPIRED",
2003
+ EXPIRING = "EXPIRING"
1960
2004
  }
1961
2005
  export declare enum CredentialType {
1962
2006
  SINGLE = "SINGLE",
@@ -1971,6 +2015,14 @@ export declare enum DidType {
1971
2015
  LOCAL = "LOCAL",
1972
2016
  REMOTE = "REMOTE"
1973
2017
  }
2018
+ export declare enum EcosystemRole {
2019
+ HOLDER = "HOLDER",
2020
+ ISSUER = "ISSUER",
2021
+ VERIFIER = "VERIFIER",
2022
+ PID_PROVIDER = "PID_PROVIDER",
2023
+ NATIONAL_REGISTRY_REGISTRAR = "NATIONAL_REGISTRY_REGISTRAR",
2024
+ WALLET_PROVIDER = "WALLET_PROVIDER"
2025
+ }
1974
2026
  export type HandleInvitationResponse = {
1975
2027
  type_: "CREDENTIAL_ISSUANCE";
1976
2028
  /** For reference. */
@@ -2038,6 +2090,7 @@ export declare enum HistoryAction {
2038
2090
  UPDATED = "UPDATED",
2039
2091
  REACTIVATED = "REACTIVATED",
2040
2092
  EXPIRED = "EXPIRED",
2093
+ EXPIRING = "EXPIRING",
2041
2094
  INTERACTION_CREATED = "INTERACTION_CREATED",
2042
2095
  INTERACTION_ERRORED = "INTERACTION_ERRORED",
2043
2096
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
@@ -2147,11 +2200,6 @@ export declare enum KeyStorageSecurity {
2147
2200
  ENHANCED_BASIC = "ENHANCED_BASIC",
2148
2201
  BASIC = "BASIC"
2149
2202
  }
2150
- export declare enum LayoutType {
2151
- CARD = "CARD",
2152
- DOCUMENT = "DOCUMENT",
2153
- SINGLE_ATTRIBUTE = "SINGLE_ATTRIBUTE"
2154
- }
2155
2203
  export type NativeKeyStorageError = {
2156
2204
  type_: "KEY_GENERATION_FAILURE";
2157
2205
  reason: string;
@@ -2282,6 +2330,10 @@ export declare enum TransactionCodeType {
2282
2330
  NUMERIC = "NUMERIC",
2283
2331
  ALPHANUMERIC = "ALPHANUMERIC"
2284
2332
  }
2333
+ export type TrustInformationDetailInfo = {
2334
+ type_: "EUDI";
2335
+ value: [EudiTrustInformation];
2336
+ };
2285
2337
  export declare enum TrustResolutionResult {
2286
2338
  TRUSTED = "TRUSTED",
2287
2339
  UNTRUSTED = "UNTRUSTED",
@@ -2465,9 +2517,11 @@ export interface OneCore {
2465
2517
  */
2466
2518
  getHistoryEntry(historyId: string): Promise<HistoryListItem>;
2467
2519
  getIdentifier(id: string): Promise<IdentifierDetail>;
2468
- /** Returns details of an existing organization. */
2520
+ /**
2521
+ * Returns details of an existing organization, including the ecosystems
2522
+ * offered to it.
2523
+ */
2469
2524
  getOrganisation(id: string): Promise<OrganisationDetail>;
2470
- getOrganisationTrustCollections(id: string): Promise<Array<TrustCollectionInfo>>;
2471
2525
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2472
2526
  /** Returns detailed information about a proof request. */
2473
2527
  getProof(proofId: string): Promise<ProofDetail>;
@@ -127,6 +127,7 @@ export var CredentialState;
127
127
  CredentialState["ERROR"] = "ERROR";
128
128
  CredentialState["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
129
129
  CredentialState["EXPIRED"] = "EXPIRED";
130
+ CredentialState["EXPIRING"] = "EXPIRING";
130
131
  })(CredentialState || (CredentialState = {}));
131
132
  export var CredentialType;
132
133
  (function (CredentialType) {
@@ -144,6 +145,15 @@ export var DidType;
144
145
  DidType["LOCAL"] = "LOCAL";
145
146
  DidType["REMOTE"] = "REMOTE";
146
147
  })(DidType || (DidType = {}));
148
+ export var EcosystemRole;
149
+ (function (EcosystemRole) {
150
+ EcosystemRole["HOLDER"] = "HOLDER";
151
+ EcosystemRole["ISSUER"] = "ISSUER";
152
+ EcosystemRole["VERIFIER"] = "VERIFIER";
153
+ EcosystemRole["PID_PROVIDER"] = "PID_PROVIDER";
154
+ EcosystemRole["NATIONAL_REGISTRY_REGISTRAR"] = "NATIONAL_REGISTRY_REGISTRAR";
155
+ EcosystemRole["WALLET_PROVIDER"] = "WALLET_PROVIDER";
156
+ })(EcosystemRole || (EcosystemRole = {}));
147
157
  export var HistoryAction;
148
158
  (function (HistoryAction) {
149
159
  HistoryAction["ACCEPTED"] = "ACCEPTED";
@@ -170,6 +180,7 @@ export var HistoryAction;
170
180
  HistoryAction["UPDATED"] = "UPDATED";
171
181
  HistoryAction["REACTIVATED"] = "REACTIVATED";
172
182
  HistoryAction["EXPIRED"] = "EXPIRED";
183
+ HistoryAction["EXPIRING"] = "EXPIRING";
173
184
  HistoryAction["INTERACTION_CREATED"] = "INTERACTION_CREATED";
174
185
  HistoryAction["INTERACTION_ERRORED"] = "INTERACTION_ERRORED";
175
186
  HistoryAction["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
@@ -274,12 +285,6 @@ export var KeyStorageSecurity;
274
285
  KeyStorageSecurity["ENHANCED_BASIC"] = "ENHANCED_BASIC";
275
286
  KeyStorageSecurity["BASIC"] = "BASIC";
276
287
  })(KeyStorageSecurity || (KeyStorageSecurity = {}));
277
- export var LayoutType;
278
- (function (LayoutType) {
279
- LayoutType["CARD"] = "CARD";
280
- LayoutType["DOCUMENT"] = "DOCUMENT";
281
- LayoutType["SINGLE_ATTRIBUTE"] = "SINGLE_ATTRIBUTE";
282
- })(LayoutType || (LayoutType = {}));
283
288
  export var OpenId4vciTxCodeInputMode;
284
289
  (function (OpenId4vciTxCodeInputMode) {
285
290
  OpenId4vciTxCodeInputMode["NUMERIC"] = "NUMERIC";
@@ -39,10 +39,6 @@ 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
-
46
42
  RCT_EXTERN_METHOD(generateKey:(NSDictionary *)keyRequest
47
43
  resolver:(RCTPromiseResolveBlock)resolve
48
44
  rejecter:(RCTPromiseRejectBlock)reject)
@@ -837,18 +837,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
837
837
  }
838
838
  }
839
839
 
840
- @objc(getOrganisationTrustCollections:resolver:rejecter:)
841
- func getOrganisationTrustCollections(
842
- organisationId: String,
843
- resolve: @escaping RCTPromiseResolveBlock,
844
- reject: @escaping RCTPromiseRejectBlock
845
- ) {
846
- asyncCall(resolve, reject) {
847
- let result = try await self.getCore().getOrganisationTrustCollections(id: organisationId)
848
- return try serializeAny(result)
849
- }
850
- }
851
-
852
840
  @objc(nfcReadIsoMdlEngagement:resolver:rejecter:)
853
841
  func nfcReadIsoMdlEngagement(
854
842
  request: NSDictionary,
@@ -41,6 +41,8 @@ private func serializeSpecific(_ value: Encodable) throws -> Any? {
41
41
  return try serialize(applicableCredentialQuery: data)
42
42
  case let data as PresentationDefinitionV2ClaimValue:
43
43
  return try serialize(presentationDefinitionV2ClaimValue: data)
44
+ case let data as TrustInformationDetailInfo:
45
+ return try serialize(trustInformationDetailInfo: data)
44
46
 
45
47
  default:
46
48
  return nil
@@ -217,3 +219,13 @@ private func serialize(presentationDefinitionV2ClaimValue: PresentationDefinitio
217
219
  ];
218
220
  }
219
221
  }
222
+
223
+ private func serialize(trustInformationDetailInfo: TrustInformationDetailInfo) throws -> NSDictionary {
224
+ switch (trustInformationDetailInfo) {
225
+ case let .eudi(value):
226
+ return [
227
+ "type_": "EUDI",
228
+ "value": [try serializeAny(value)]
229
+ ];
230
+ }
231
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@procivis/react-native-one-core",
3
- "version": "1.120826.0",
3
+ "version": "1.123589.0",
4
4
  "author": "Procivis AG (https://procivis.ch)",
5
5
  "license": "Apache-2.0",
6
6
  "description": "ONE core bindings for React Native",