@procivis/react-native-one-core 1.120826.0 → 1.126524.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) {
@@ -216,14 +208,20 @@ class ProcivisOneCoreModule(reactContext: ReactApplicationContext) :
216
208
  promise: Promise
217
209
  ) {
218
210
  asyncCall(promise, scope) {
219
- return@asyncCall getCore().holderAcceptCredential(construct(request))
211
+ val result = getCore().holderAcceptCredential(construct(request))
212
+ return@asyncCall convertToRN(result)
220
213
  }
221
214
  }
222
215
 
223
216
  @ReactMethod
224
- fun holderRejectCredential(interactionId: String, promise: Promise) {
217
+ fun holderRejectCredential(
218
+ interactionId: String,
219
+ credentialIds: ReadableArray?,
220
+ promise: Promise
221
+ ) {
225
222
  asyncCall(promise, scope) {
226
- getCore().holderRejectCredential(interactionId)
223
+ val ids = credentialIds?.let { DeserializeSpecific.ids(it) }
224
+ getCore().holderRejectCredential(interactionId, ids)
227
225
  return@asyncCall null
228
226
  }
229
227
  }
@@ -15,6 +15,7 @@ object SerializeSpecific {
15
15
  ApplicableCredentialOrFailureHint::class.java,
16
16
  PresentationDefinitionV2ClaimValue::class.java,
17
17
  HandleInvitationResponse::class.java,
18
+ TrustInformationDetailInfo::class.java,
18
19
  )
19
20
 
20
21
  fun isCustomConversionType(input: Any?): Boolean {
@@ -45,6 +46,9 @@ object SerializeSpecific {
45
46
  if (input is HandleInvitationResponse) {
46
47
  return invitationResponse(input)
47
48
  }
49
+ if (input is TrustInformationDetailInfo) {
50
+ return trustInformationDetailInfo(input)
51
+ }
48
52
  throw IllegalArgumentException("Invalid map conversion: $input")
49
53
  }
50
54
 
@@ -89,6 +93,14 @@ object SerializeSpecific {
89
93
  convertToRN(metadata.value) as ReadableMap
90
94
  )
91
95
  }
96
+
97
+ is HistoryMetadata.EcosystemsResolved -> {
98
+ result.putString("type_", "ECOSYSTEMS_RESOLVED")
99
+ result.putMap(
100
+ "value",
101
+ convertToRN(metadata.value) as ReadableMap
102
+ )
103
+ }
92
104
  }
93
105
  return result
94
106
  }
@@ -227,6 +239,10 @@ object SerializeSpecific {
227
239
  value.ecosystem?.let {
228
240
  result.putString("ecosystem", it)
229
241
  }
242
+ result.putMap(
243
+ "ecosystemErrors",
244
+ convertToRN(value.ecosystemErrors) as ReadableMap
245
+ )
230
246
  }
231
247
 
232
248
  is HandleInvitationResponse.AuthorizationCodeFlow -> {
@@ -237,6 +253,10 @@ object SerializeSpecific {
237
253
  value.ecosystem?.let {
238
254
  result.putString("ecosystem", it)
239
255
  }
256
+ result.putMap(
257
+ "ecosystemErrors",
258
+ convertToRN(value.ecosystemErrors) as ReadableMap
259
+ )
240
260
  }
241
261
 
242
262
  is HandleInvitationResponse.ProofRequest -> {
@@ -247,6 +267,23 @@ object SerializeSpecific {
247
267
  value.ecosystem?.let {
248
268
  result.putString("ecosystem", it)
249
269
  }
270
+ result.putMap(
271
+ "ecosystemErrors",
272
+ convertToRN(value.ecosystemErrors) as ReadableMap
273
+ )
274
+ }
275
+ }
276
+ return result
277
+ }
278
+
279
+ private fun trustInformationDetailInfo(value: TrustInformationDetailInfo): ReadableMap {
280
+ val result = Arguments.createMap()
281
+ when (value) {
282
+ is TrustInformationDetailInfo.Eudi -> {
283
+ result.putString("type_", "EUDI")
284
+ val values = Arguments.createArray()
285
+ values.pushMap(convertToRN(value.v1) as ReadableMap)
286
+ result.putArray("value", values)
250
287
  }
251
288
  }
252
289
  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/120826/android/onecore-debug.aar",
5
- "sha1": "8042630dab29996bf714f17cc780098228e5810c"
4
+ "url": "https://onesdk.blob.core.windows.net/core-sdk/126524/android/onecore-debug.aar",
5
+ "sha1": "feef82a3e79882cda0339fdcf8fd9e086fb7a349"
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/126524/android/onecore-release.aar",
9
+ "sha1": "fce0244e6bcb8abb19495818adbed33f17688326"
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/126524/ios/deploy.zip",
14
+ "sha1": "2b1b11c6f9d1ead1713b92a0819f1d97c58de114"
15
15
  }
16
16
  }
@@ -140,6 +140,14 @@ export interface VerificationProtocolCapabilities {
140
140
  verifierIdentifierTypes: IdentifierType[];
141
141
  supportedPresentationDefinition: PresentationDefinitionVersion[];
142
142
  }
143
+ export declare enum TransactionDataFeature {
144
+ SupportsMultipleTxDataPerPresentation = "SUPPORTS_MULTIPLE_TX_DATA_PER_PRESENTATION"
145
+ }
146
+ export interface TransactionDataCapabilities {
147
+ features: TransactionDataFeature[];
148
+ formats: string[];
149
+ transactionDataTypes: string[];
150
+ }
143
151
  export interface CoreConfig {
144
152
  format: ConfigEntities<FormatCapabilities>;
145
153
  issuanceProtocol: ConfigEntities<IssuanceProtocolCapabilities>;
@@ -157,6 +165,7 @@ export interface CoreConfig {
157
165
  walletProvider: ConfigEntities;
158
166
  verifierProvider: ConfigEntities<undefined, {}>;
159
167
  globalSettings: GlobalSettings;
168
+ transactionDataProvider: ConfigEntities<TransactionDataCapabilities>;
160
169
  ecosystem: ConfigEntities;
161
170
  }
162
171
  export {};
@@ -58,6 +58,10 @@ export var PresentationDefinitionVersion;
58
58
  PresentationDefinitionVersion["V1"] = "V1";
59
59
  PresentationDefinitionVersion["V2"] = "V2";
60
60
  })(PresentationDefinitionVersion || (PresentationDefinitionVersion = {}));
61
+ export var TransactionDataFeature;
62
+ (function (TransactionDataFeature) {
63
+ TransactionDataFeature["SupportsMultipleTxDataPerPresentation"] = "SUPPORTS_MULTIPLE_TX_DATA_PER_PRESENTATION";
64
+ })(TransactionDataFeature || (TransactionDataFeature = {}));
61
65
  // Typescript automatic assertions to keep the fields of ONECore Config and typed Config in sync
62
66
  /** assert that all fields listed in {@link CoreConfig} exist in {@link Config} */
63
67
  const missingFieldsCheck = null;
@@ -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",
@@ -103,6 +103,8 @@ export interface Config {
103
103
  */
104
104
  walletProvider: Record<string, string>;
105
105
  verifierProvider: Record<string, string>;
106
+ /** Transaction data types and their capabilities. */
107
+ transactionDataProvider: Record<string, string>;
106
108
  ecosystem: Record<string, string>;
107
109
  /** Deployment-wide settings that are not tied to a specific config entity. */
108
110
  globalSettings: GlobalSettings;
@@ -138,7 +140,6 @@ export interface CreateCredentialSchemaRequest {
138
140
  organisationId: string;
139
141
  claims: Array<CredentialClaimSchemaRequest>;
140
142
  keyStorageSecurity?: KeyStorageSecurity;
141
- layoutType: LayoutType;
142
143
  layoutProperties?: CredentialSchemaLayoutProperties;
143
144
  allowSuspension?: boolean;
144
145
  allowRevocation?: boolean;
@@ -148,6 +149,7 @@ export interface CreateCredentialSchemaRequest {
148
149
  translations?: CredentialSchemaTranslations;
149
150
  embeddedDisclosurePolicy?: DisclosurePolicyCreateRequest;
150
151
  expiration?: number;
152
+ ecosystem?: string;
151
153
  }
152
154
  export interface CreateDidRequest {
153
155
  organisationId: string;
@@ -175,6 +177,8 @@ export interface CreateIdentifierRequest {
175
177
  certificates?: Array<CreateCertificateRequest>;
176
178
  certificateAuthorities?: Array<CreateCertificateAuthorityRequest>;
177
179
  trustInformation: Array<CreateIdentifierTrustInformationRequest>;
180
+ translations?: IdentifierTranslations;
181
+ logo?: string;
178
182
  }
179
183
  export interface CreateIdentifierTrustInformationRequest {
180
184
  data: string;
@@ -253,6 +257,7 @@ export interface CreateProofSchemaRequest {
253
257
  expireDuration: number;
254
258
  /** Set of all claims to request. */
255
259
  proofInputSchemas: Array<CreateProofSchemaInput>;
260
+ ecosystem?: string;
256
261
  }
257
262
  export interface CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest {
258
263
  type: CreateSelfSignedCaRequestIssuerAlternativeNameType;
@@ -304,7 +309,7 @@ export interface CredentialDetail {
304
309
  /** State representation of the credential in the system. */
305
310
  state: CredentialState;
306
311
  /** Schema of the credential. */
307
- schema: CredentialSchemaInfo;
312
+ schema: CredentialSchemaListItem;
308
313
  claims: Array<Claim>;
309
314
  redirectUri?: string;
310
315
  /**
@@ -328,6 +333,7 @@ export interface CredentialDetail {
328
333
  type: CredentialType;
329
334
  remainingBatchItemCount?: number;
330
335
  parentId?: string;
336
+ ecosystem?: string;
331
337
  }
332
338
  export interface CredentialList {
333
339
  values: Array<CredentialListItem>;
@@ -346,7 +352,7 @@ export interface CredentialListItem {
346
352
  /** State representation of the credential in the system. */
347
353
  state: CredentialState;
348
354
  /** Schema of the credential. */
349
- schema: CredentialSchemaInfo;
355
+ schema: CredentialSchemaListItem;
350
356
  /**
351
357
  * The role the system has in relation to the credential. For example,
352
358
  * if the system received the credential as a wallet this value will
@@ -364,6 +370,7 @@ export interface CredentialListItem {
364
370
  type: CredentialType;
365
371
  parentId?: string;
366
372
  redirectUri?: string;
373
+ ecosystem?: string;
367
374
  }
368
375
  export interface CredentialListQuery {
369
376
  /** Page number to retrieve (0-based indexing). */
@@ -409,6 +416,7 @@ export interface CredentialListQuery {
409
416
  include?: Array<CredentialListIncludeEntityType>;
410
417
  /** Return only credentials with the specified credential schema(s). */
411
418
  credentialSchemaIds?: Array<string>;
419
+ ecosystems?: Array<string>;
412
420
  /**
413
421
  * Return only credentials created after this time. Timestamp in
414
422
  * RFC 3339 format (for example `2023-06-09T14:19:57.000Z`).
@@ -482,7 +490,6 @@ export interface CredentialSchemaDetail {
482
490
  claims: Array<ClaimSchema>;
483
491
  keyStorageSecurity?: KeyStorageSecurity;
484
492
  importedSourceUrl: string;
485
- layoutType?: LayoutType;
486
493
  layoutProperties?: CredentialSchemaLayoutProperties;
487
494
  allowSuspension: boolean;
488
495
  allowRevocation?: boolean;
@@ -491,6 +498,7 @@ export interface CredentialSchemaDetail {
491
498
  transactionCode?: CredentialSchemaTransactionCode;
492
499
  translations: CredentialSchemaTranslations;
493
500
  expiration?: number;
501
+ ecosystem?: string;
494
502
  }
495
503
  export interface CredentialSchemaDetailInfo {
496
504
  id: string;
@@ -503,7 +511,6 @@ export interface CredentialSchemaDetailInfo {
503
511
  keyStorageSecurity?: KeyStorageSecurity;
504
512
  schemaId: string;
505
513
  importedSourceUrl: string;
506
- layoutType?: LayoutType;
507
514
  layoutProperties?: CredentialSchemaLayoutProperties;
508
515
  allowSuspension: boolean;
509
516
  requiresWalletInstanceAttestation: boolean;
@@ -512,11 +519,11 @@ export interface CredentialSchemaDetailInfo {
512
519
  }
513
520
  export interface CredentialSchemaFormatRequest {
514
521
  format: string;
515
- schemaId?: string;
522
+ ecosystemSchemaId?: string;
516
523
  }
517
524
  export interface CredentialSchemaFormatResponse {
518
525
  format: string;
519
- schemaId: string;
526
+ ecosystemSchemaId: string;
520
527
  }
521
528
  export interface CredentialSchemaInfo {
522
529
  id: string;
@@ -524,10 +531,8 @@ export interface CredentialSchemaInfo {
524
531
  lastModified: string;
525
532
  name: string;
526
533
  format: string;
527
- revocationMethod?: string;
528
534
  keyStorageSecurity?: KeyStorageSecurity;
529
535
  schemaId: string;
530
- layoutType?: LayoutType;
531
536
  importedSourceUrl: string;
532
537
  layoutProperties?: CredentialSchemaLayoutProperties;
533
538
  allowSuspension: boolean;
@@ -555,13 +560,14 @@ export interface CredentialSchemaListItem {
555
560
  formats: Array<CredentialSchemaFormatResponse>;
556
561
  keyStorageSecurity?: KeyStorageSecurity;
557
562
  importedSourceUrl: string;
558
- layoutType?: LayoutType;
559
563
  layoutProperties?: CredentialSchemaLayoutProperties;
560
564
  allowSuspension: boolean;
561
565
  allowRevocation?: boolean;
562
566
  batchSize?: number;
563
567
  requiresWalletInstanceAttestation: boolean;
564
568
  expiration?: number;
569
+ ecosystem?: string;
570
+ translations?: CredentialSchemaTranslations;
565
571
  }
566
572
  export interface CredentialSchemaListQuery {
567
573
  page: number;
@@ -573,8 +579,9 @@ export interface CredentialSchemaListQuery {
573
579
  ids?: Array<string>;
574
580
  exact?: Array<CredentialSchemaListQueryExactColumn>;
575
581
  include?: Array<CredentialSchemaListIncludeEntityType>;
576
- schemaIds?: Array<string>;
582
+ ecosystemSchemaIds?: Array<string>;
577
583
  formats?: Array<string>;
584
+ ecosystems?: Array<string>;
578
585
  usesBatchIssuance?: boolean;
579
586
  isMultiformatSchema?: boolean;
580
587
  createdDateAfter?: string;
@@ -700,6 +707,22 @@ export interface DisplayName {
700
707
  lang: string;
701
708
  value: string;
702
709
  }
710
+ export interface EcosystemInfo {
711
+ /** When true, the organization has selected this ecosystem. */
712
+ selected: boolean;
713
+ /** When true, the ecosystem should be selected by provider default (if any). */
714
+ defaultSelected: boolean;
715
+ /** Ecosystem provider name. */
716
+ name: string;
717
+ displayName: Array<DisplayName>;
718
+ description: Array<DisplayName>;
719
+ logo: string;
720
+ }
721
+ export interface EcosystemOutcome {
722
+ result: EcosystemTrustResult;
723
+ /** Why the provider did not trust the interaction. `None` when it did. */
724
+ error?: HistoryErrorMetadata;
725
+ }
703
726
  export interface ErrorResponse {
704
727
  code: string;
705
728
  message: string;
@@ -888,6 +911,17 @@ export interface HolderAcceptCredentialRequest {
888
911
  /** User-provided transaction code. */
889
912
  txCode?: string;
890
913
  }
914
+ export interface HolderAcceptCredentialResponse {
915
+ /** One credential per accepted credential configuration. */
916
+ credentialIds: Array<string>;
917
+ /**
918
+ * Some of the offered credential configurations could not be issued.
919
+ * Only set when several configurations were offered.
920
+ */
921
+ partiallySuccessful?: boolean;
922
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
923
+ ecosystemErrors: Record<string, EcosystemOutcome>;
924
+ }
891
925
  export interface HolderActivateInstanceRequest {
892
926
  /** Key type for the authentication key generated during activation. */
893
927
  keyType: string;
@@ -942,11 +976,14 @@ export interface IdentifierDetail {
942
976
  organisationId?: string;
943
977
  type: IdentifierType;
944
978
  isRemote: boolean;
979
+ autogenerated: boolean;
945
980
  state: IdentifierState;
946
981
  did?: DidDetail;
947
982
  key?: KeyDetail;
948
983
  certificates?: Array<CertificateDetail>;
949
984
  trustInformation: Array<IdentifierTrustInformationResponseDto>;
985
+ logo?: string;
986
+ translations: IdentifierTranslationsResponse;
950
987
  }
951
988
  export interface IdentifierList {
952
989
  values: Array<IdentifierListItem>;
@@ -960,8 +997,11 @@ export interface IdentifierListItem {
960
997
  name: string;
961
998
  type: IdentifierType;
962
999
  isRemote: boolean;
1000
+ autogenerated: boolean;
963
1001
  state: IdentifierState;
964
1002
  organisationId?: string;
1003
+ logo?: string;
1004
+ translations?: IdentifierTranslationsResponse;
965
1005
  }
966
1006
  export interface IdentifierListQuery {
967
1007
  page: number;
@@ -974,20 +1014,36 @@ export interface IdentifierListQuery {
974
1014
  types?: Array<IdentifierType>;
975
1015
  states?: Array<IdentifierState>;
976
1016
  exact?: Array<IdentifierListQueryExactColumn>;
1017
+ include?: Array<IdentifierListIncludeEntity>;
977
1018
  didMethods?: Array<string>;
978
1019
  isRemote?: boolean;
1020
+ autogenerated?: boolean;
979
1021
  keyAlgorithms?: Array<string>;
980
1022
  keyRoles?: Array<KeyRole>;
981
1023
  keyStorages?: Array<string>;
982
1024
  certificateRoles?: Array<CertificateRole>;
983
1025
  certificateRolesMatchMode?: CertificateRolesMatchMode;
1026
+ /** Deprecated, use `ecosystemCredentialSchemaId` */
984
1027
  trustIssuanceSchemaId?: string;
1028
+ /** Deprecated, use `ecosystemProofSchemaId` */
985
1029
  trustVerificationSchemaId?: string;
1030
+ ecosystem?: string;
1031
+ ecosystemRoles?: Array<EcosystemRole>;
1032
+ ecosystemCredentialSchemaId?: string;
1033
+ ecosystemProofSchemaId?: string;
986
1034
  createdDateAfter?: string;
987
1035
  createdDateBefore?: string;
988
1036
  lastModifiedAfter?: string;
989
1037
  lastModifiedBefore?: string;
990
1038
  }
1039
+ export interface IdentifierTranslations {
1040
+ name: Record<string, string>;
1041
+ logoAltText?: Record<string, string>;
1042
+ }
1043
+ export interface IdentifierTranslationsResponse {
1044
+ name: Record<string, string>;
1045
+ logoAltText?: Record<string, string>;
1046
+ }
991
1047
  export interface IdentifierTrustInformationResponseDto {
992
1048
  data: string;
993
1049
  type: IdentifierTrustInformationType;
@@ -1008,7 +1064,7 @@ export interface ImportCredentialSchemaClaimSchema {
1008
1064
  }
1009
1065
  export interface ImportCredentialSchemaFormat {
1010
1066
  format: string;
1011
- schemaId: string;
1067
+ ecosystemSchemaId: string;
1012
1068
  }
1013
1069
  export interface ImportCredentialSchemaLayoutProperties {
1014
1070
  background?: CredentialSchemaBackgroundProperties;
@@ -1032,7 +1088,6 @@ export interface ImportCredentialSchemaRequestSchema {
1032
1088
  claims: Array<ImportCredentialSchemaClaimSchema>;
1033
1089
  keyStorageSecurity?: KeyStorageSecurity;
1034
1090
  importedSourceUrl: string;
1035
- layoutType?: LayoutType;
1036
1091
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
1037
1092
  allowSuspension?: boolean;
1038
1093
  requiresWalletInstanceAttestation?: boolean;
@@ -1042,6 +1097,7 @@ export interface ImportCredentialSchemaRequestSchema {
1042
1097
  translations?: CredentialSchemaTranslations;
1043
1098
  embeddedDisclosurePolicy?: DisclosurePolicy;
1044
1099
  expiration?: number;
1100
+ ecosystem?: string;
1045
1101
  }
1046
1102
  export interface ImportCredentialSchemaTransactionCode {
1047
1103
  type: TransactionCodeType;
@@ -1086,7 +1142,6 @@ export interface ImportProofSchemaCredentialSchema {
1086
1142
  keyStorageSecurity?: KeyStorageSecurity;
1087
1143
  schemaId: string;
1088
1144
  importedSourceUrl: string;
1089
- layoutType?: LayoutType;
1090
1145
  layoutProperties?: CredentialSchemaLayoutProperties;
1091
1146
  allowSuspension?: boolean;
1092
1147
  requiresWalletInstanceAttestation?: boolean;
@@ -1135,12 +1190,6 @@ export interface InitiateIssuanceRequest {
1135
1190
  export interface InitiateIssuanceResponse {
1136
1191
  url: string;
1137
1192
  }
1138
- export interface InstanceDetail {
1139
- id: string;
1140
- providerUrl: string;
1141
- providerName: string;
1142
- authenticationKeyType: string;
1143
- }
1144
1193
  export interface InstanceProvider {
1145
1194
  /**
1146
1195
  * Full URL for the GET provider metadata endpoint, for example:
@@ -1160,6 +1209,7 @@ export interface KeyDetail {
1160
1209
  publicKey: number[];
1161
1210
  keyType: string;
1162
1211
  storageType: string;
1212
+ autogenerated: boolean;
1163
1213
  }
1164
1214
  export interface KeyListItem {
1165
1215
  id: string;
@@ -1169,6 +1219,7 @@ export interface KeyListItem {
1169
1219
  publicKey: number[];
1170
1220
  keyType: string;
1171
1221
  storageType: string;
1222
+ autogenerated: boolean;
1172
1223
  }
1173
1224
  export interface MdocMsoValidity {
1174
1225
  expiration: string;
@@ -1202,22 +1253,21 @@ export interface OpenId4vciTxCode {
1202
1253
  description?: string;
1203
1254
  }
1204
1255
  export interface OrganisationConfiguration {
1205
- selectedEcosystems: Array<string>;
1206
1256
  /**
1207
- * When true, the verifier will only validate presentations of
1208
- * credentials issued by trusted issuers.
1257
+ * When true, the issuer will only issue credentials to holders of one of
1258
+ * the selected ecosystems.
1209
1259
  */
1210
- trustedIssuerRequired: boolean;
1260
+ enforceEcosystemAsIssuer: boolean;
1211
1261
  /**
1212
- * When true, the wallet only accepts presentation requests from
1213
- * trusted relying parties.
1262
+ * When true, the wallet only accepts issuance and presentation requests
1263
+ * from members of one of the selected ecosystems.
1214
1264
  */
1215
- trustedRpRequired: boolean;
1265
+ enforceEcosystemAsHolder: boolean;
1216
1266
  /**
1217
- * When true, the issuer will only issue credentials requiring wallet
1218
- * attestations to wallets of trusted wallet providers.
1267
+ * When true, the verifier will only validate presentations of credentials
1268
+ * issued within one of the selected ecosystems.
1219
1269
  */
1220
- trustedWalletProviderRequired: boolean;
1270
+ enforceEcosystemAsVerifier: boolean;
1221
1271
  }
1222
1272
  export interface OrganisationDetail {
1223
1273
  id: string;
@@ -1231,18 +1281,26 @@ export interface OrganisationDetail {
1231
1281
  parentOrganisation?: string;
1232
1282
  /** Policy-level configuration for this organization. */
1233
1283
  configuration?: OrganisationConfiguration;
1284
+ /**
1285
+ * The ecosystems offered to this organization by its wallet or verifier
1286
+ * provider, annotated with whether the organization currently selected
1287
+ * each one. Ecosystems this system is not configured for are omitted.
1288
+ * If there is no wallet or verifier provider, the ecosystems configured
1289
+ * in the local system are returned.
1290
+ */
1291
+ ecosystems: Array<EcosystemInfo>;
1234
1292
  walletProvider?: WalletProviderDetail;
1235
1293
  verifierProvider?: VerifierProviderDetail;
1236
1294
  /**
1237
1295
  * Wallet registration details for this organization's Business
1238
1296
  * Wallet.
1239
1297
  */
1240
- walletInstance?: InstanceDetail;
1298
+ walletInstance?: WalletInstanceDetail;
1241
1299
  /**
1242
1300
  * Verifier registration details for this organization's Business
1243
1301
  * Verifier.
1244
1302
  */
1245
- verifierInstance?: InstanceDetail;
1303
+ verifierInstance?: VerifierInstanceDetail;
1246
1304
  }
1247
1305
  export interface PeripheralDiscoveryData {
1248
1306
  deviceAddress: string;
@@ -1367,6 +1425,7 @@ export interface ProofDetail {
1367
1425
  trustInformation?: TrustInformation;
1368
1426
  /** Transaction data attached to this proof request. Present only if the proof role is `VERIFIER`. */
1369
1427
  transactionData?: Array<TransactionDataResponse>;
1428
+ ecosystem?: string;
1370
1429
  }
1371
1430
  export interface ProofInput {
1372
1431
  /** Set of claims asserted by the shared credential. */
@@ -1375,6 +1434,8 @@ export interface ProofInput {
1375
1434
  credential?: CredentialDetail;
1376
1435
  /** Credential schema metadata. */
1377
1436
  credentialSchema: CredentialSchemaInfo;
1437
+ /** Trust of the credential shared for this input, and of its issuer. */
1438
+ trustInformation?: TrustInformation;
1378
1439
  }
1379
1440
  export interface ProofInputSchema {
1380
1441
  claimSchemas: Array<ProofClaimSchema>;
@@ -1412,6 +1473,7 @@ export interface ProofListItem {
1412
1473
  retainUntilDate?: string;
1413
1474
  /** Country profile associated with this request. */
1414
1475
  profile?: string;
1476
+ ecosystem?: string;
1415
1477
  redirectUri?: string;
1416
1478
  }
1417
1479
  export interface ProofListQuery {
@@ -1429,6 +1491,7 @@ export interface ProofListQuery {
1429
1491
  name?: string;
1430
1492
  /** Filter by one or more country profiles. */
1431
1493
  profiles?: Array<string>;
1494
+ ecosystems?: Array<string>;
1432
1495
  /** Filter by one or more UUIDs. */
1433
1496
  ids?: Array<string>;
1434
1497
  /** Filter by one or more proof request states. */
@@ -1513,6 +1576,7 @@ export interface ProofSchemaDetail {
1513
1576
  proofInputSchemas: Array<ProofInputSchema>;
1514
1577
  /** Source URL for imported schema. */
1515
1578
  importedSourceUrl?: string;
1579
+ ecosystem?: string;
1516
1580
  }
1517
1581
  export interface ProofSchemaList {
1518
1582
  values: Array<ProofSchemaListItem>;
@@ -1532,6 +1596,7 @@ export interface ProofSchemaListItem {
1532
1596
  * deleted.
1533
1597
  */
1534
1598
  expireDuration: number;
1599
+ ecosystem?: string;
1535
1600
  }
1536
1601
  export interface ProofSchemaListQuery {
1537
1602
  page: number;
@@ -1543,6 +1608,7 @@ export interface ProofSchemaListQuery {
1543
1608
  exact?: Array<ProofSchemaListQueryExactColumn>;
1544
1609
  ids?: Array<string>;
1545
1610
  formats?: Array<string>;
1611
+ ecosystems?: Array<string>;
1546
1612
  createdDateAfter?: string;
1547
1613
  createdDateBefore?: string;
1548
1614
  lastModifiedAfter?: string;
@@ -1664,27 +1730,19 @@ export interface TransactionDataResponse {
1664
1730
  /** Type-specific transaction data content, encoded as a JSON string. */
1665
1731
  data?: string;
1666
1732
  }
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
1733
  export interface TrustInformation {
1678
1734
  receivedAt: string;
1679
1735
  name?: string;
1680
1736
  result: TrustResolutionResult;
1737
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
1738
+ ecosystemErrors: Record<string, EcosystemOutcome>;
1681
1739
  }
1682
1740
  export interface TrustInformationDetail {
1683
- /**
1684
- * EUDI trust information received from Access Certificates, Registration
1685
- * Certificates, or National Registry public APIs.
1686
- */
1687
- eudiEcosystem?: EudiTrustInformation;
1741
+ ecosystem?: string;
1742
+ issuer?: TrustInformationDetailInfo;
1743
+ verifier?: TrustInformationDetailInfo;
1744
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
1745
+ ecosystemErrors: Record<string, EcosystemOutcome>;
1688
1746
  }
1689
1747
  export interface TrustResolutionMetadata {
1690
1748
  result: TrustResolutionResult;
@@ -1702,20 +1760,21 @@ export interface UnexportableEntities {
1702
1760
  export interface UpsertOrganisationConfiguration {
1703
1761
  selectedEcosystems?: Array<string>;
1704
1762
  /**
1705
- * When true, the verifier will only validate presentations of
1706
- * credentials issued by trusted issuers.
1763
+ * When true, the issuer will only issue credentials to wallet units of one of
1764
+ * the selected ecosystems.
1707
1765
  */
1708
- trustedIssuerRequired?: boolean;
1766
+ enforceEcosystemAsIssuer?: boolean;
1709
1767
  /**
1710
- * When true, the wallet only accepts presentation requests from
1711
- * trusted relying parties.
1768
+ * When true, the wallet only accepts issuance and presentation requests
1769
+ * from members of one of the selected ecosystems.
1712
1770
  */
1713
- trustedRpRequired?: boolean;
1771
+ enforceEcosystemAsHolder?: boolean;
1714
1772
  /**
1715
- * When true, the issuer will only issue credentials requiring wallet
1716
- * attestations to wallets of trusted wallet providers.
1773
+ * When true, the verifier will only accept presentations of credentials
1774
+ * issued by issuers of the selected ecosystems. Ecosystems must be consistent
1775
+ * across presentations belonging to the same proof request.
1717
1776
  */
1718
- trustedWalletProviderRequired?: boolean;
1777
+ enforceEcosystemAsVerifier?: boolean;
1719
1778
  }
1720
1779
  export interface UpsertOrganisationRequest {
1721
1780
  /** Unique identifier of the organization to create or update. */
@@ -1744,6 +1803,20 @@ export interface UpsertOrganisationRequest {
1744
1803
  */
1745
1804
  parentOrganisation?: string | null;
1746
1805
  }
1806
+ export interface VerifierInstanceDetail {
1807
+ id: string;
1808
+ providerUrl: string;
1809
+ providerName: string;
1810
+ authenticationKeyType: string;
1811
+ /** The feature flags advertised by the provider backing this instance. */
1812
+ featureFlags: VerifierInstanceFeatureFlags;
1813
+ }
1814
+ export interface VerifierInstanceFeatureFlags {
1815
+ ecosystemsEnabled: boolean;
1816
+ /** Whether this instance must enforce the ecosystems advertised by its provider. */
1817
+ ecosystemsEnforcementEnabled: boolean;
1818
+ accessCertificateProvisioningEnabled: boolean;
1819
+ }
1747
1820
  export interface VerifierProviderDetail {
1748
1821
  /** Verifier Provider configuration used by this organization. */
1749
1822
  providerName?: string;
@@ -1762,6 +1835,21 @@ export interface Version {
1762
1835
  rustVersion: string;
1763
1836
  pipelineId: string;
1764
1837
  }
1838
+ export interface WalletInstanceDetail {
1839
+ id: string;
1840
+ providerUrl: string;
1841
+ providerName: string;
1842
+ authenticationKeyType: string;
1843
+ /** The feature flags advertised by the provider backing this instance. */
1844
+ featureFlags: WalletInstanceFeatureFlags;
1845
+ }
1846
+ export interface WalletInstanceFeatureFlags {
1847
+ ecosystemsEnabled: boolean;
1848
+ /** Whether this instance must enforce the ecosystems advertised by its provider. */
1849
+ ecosystemsEnforcementEnabled: boolean;
1850
+ refreshCredentialBatchEnabled: boolean;
1851
+ documentSigningEnabled: boolean;
1852
+ }
1765
1853
  export interface WalletProviderDetail {
1766
1854
  /**
1767
1855
  * Wallet Provider configuration used by this organization to provide
@@ -1772,7 +1860,7 @@ export interface WalletProviderDetail {
1772
1860
  issuer?: IdentifierListItem;
1773
1861
  }
1774
1862
  export interface WalletRelyingPartyMetadata {
1775
- name: string;
1863
+ name?: string;
1776
1864
  }
1777
1865
  export type ApplicableCredentialOrFailureHint = {
1778
1866
  type_: "APPLICABLE_CREDENTIALS";
@@ -1956,7 +2044,8 @@ export declare enum CredentialState {
1956
2044
  SUSPENDED = "SUSPENDED",
1957
2045
  ERROR = "ERROR",
1958
2046
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
1959
- EXPIRED = "EXPIRED"
2047
+ EXPIRED = "EXPIRED",
2048
+ EXPIRING = "EXPIRING"
1960
2049
  }
1961
2050
  export declare enum CredentialType {
1962
2051
  SINGLE = "SINGLE",
@@ -1971,6 +2060,18 @@ export declare enum DidType {
1971
2060
  LOCAL = "LOCAL",
1972
2061
  REMOTE = "REMOTE"
1973
2062
  }
2063
+ export declare enum EcosystemRole {
2064
+ HOLDER = "HOLDER",
2065
+ ISSUER = "ISSUER",
2066
+ VERIFIER = "VERIFIER",
2067
+ PID_PROVIDER = "PID_PROVIDER",
2068
+ NATIONAL_REGISTRY_REGISTRAR = "NATIONAL_REGISTRY_REGISTRAR",
2069
+ WALLET_PROVIDER = "WALLET_PROVIDER"
2070
+ }
2071
+ export declare enum EcosystemTrustResult {
2072
+ TRUSTED = "TRUSTED",
2073
+ NOT_TRUSTED = "NOT_TRUSTED"
2074
+ }
1974
2075
  export type HandleInvitationResponse = {
1975
2076
  type_: "CREDENTIAL_ISSUANCE";
1976
2077
  /** For reference. */
@@ -1991,6 +2092,8 @@ export type HandleInvitationResponse = {
1991
2092
  /** Whether a valid WIA is required to complete issuance. */
1992
2093
  requiresWalletInstanceAttestation: boolean;
1993
2094
  ecosystem?: string;
2095
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
2096
+ ecosystemErrors: Record<string, EcosystemOutcome>;
1994
2097
  } | {
1995
2098
  type_: "AUTHORIZATION_CODE_FLOW";
1996
2099
  /** For reference. */
@@ -2003,6 +2106,8 @@ export type HandleInvitationResponse = {
2003
2106
  /** Protocol used for issuance. */
2004
2107
  protocol: string;
2005
2108
  ecosystem?: string;
2109
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
2110
+ ecosystemErrors: Record<string, EcosystemOutcome>;
2006
2111
  } | {
2007
2112
  type_: "PROOF_REQUEST";
2008
2113
  /** For reference. */
@@ -2012,6 +2117,8 @@ export type HandleInvitationResponse = {
2012
2117
  /** Protocol used for issuance. */
2013
2118
  protocol: string;
2014
2119
  ecosystem?: string;
2120
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
2121
+ ecosystemErrors: Record<string, EcosystemOutcome>;
2015
2122
  };
2016
2123
  export declare enum HistoryAction {
2017
2124
  ACCEPTED = "ACCEPTED",
@@ -2038,6 +2145,7 @@ export declare enum HistoryAction {
2038
2145
  UPDATED = "UPDATED",
2039
2146
  REACTIVATED = "REACTIVATED",
2040
2147
  EXPIRED = "EXPIRED",
2148
+ EXPIRING = "EXPIRING",
2041
2149
  INTERACTION_CREATED = "INTERACTION_CREATED",
2042
2150
  INTERACTION_ERRORED = "INTERACTION_ERRORED",
2043
2151
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
@@ -2046,6 +2154,7 @@ export declare enum HistoryAction {
2046
2154
  WRP_RC_RECEIVED = "WRP_RC_RECEIVED",
2047
2155
  WRP_NR_RECEIVED = "WRP_NR_RECEIVED",
2048
2156
  TRUST_RESOLVED = "TRUST_RESOLVED",
2157
+ ECOSYSTEMS_RESOLVED = "ECOSYSTEMS_RESOLVED",
2049
2158
  REFRESHED = "REFRESHED",
2050
2159
  SIGNED = "SIGNED"
2051
2160
  }
@@ -2092,6 +2201,11 @@ export type HistoryMetadata = {
2092
2201
  } | {
2093
2202
  type_: "TRUST_RESOLUTION";
2094
2203
  value: TrustResolutionMetadata;
2204
+ }
2205
+ /** One entry per ecosystem provider consulted, keyed by provider id. */
2206
+ | {
2207
+ type_: "ECOSYSTEMS_RESOLVED";
2208
+ value: Record<string, EcosystemOutcome>;
2095
2209
  };
2096
2210
  export declare enum HistorySearchType {
2097
2211
  ALL = "ALL",
@@ -2104,6 +2218,10 @@ export declare enum HistorySearchType {
2104
2218
  VERIFIER_NAME = "VERIFIER_NAME",
2105
2219
  PROOF_SCHEMA_NAME = "PROOF_SCHEMA_NAME"
2106
2220
  }
2221
+ export declare enum IdentifierListIncludeEntity {
2222
+ LOGO = "LOGO",
2223
+ TRANSLATIONS = "TRANSLATIONS"
2224
+ }
2107
2225
  export declare enum IdentifierListQueryExactColumn {
2108
2226
  NAME = "NAME"
2109
2227
  }
@@ -2147,11 +2265,6 @@ export declare enum KeyStorageSecurity {
2147
2265
  ENHANCED_BASIC = "ENHANCED_BASIC",
2148
2266
  BASIC = "BASIC"
2149
2267
  }
2150
- export declare enum LayoutType {
2151
- CARD = "CARD",
2152
- DOCUMENT = "DOCUMENT",
2153
- SINGLE_ATTRIBUTE = "SINGLE_ATTRIBUTE"
2154
- }
2155
2268
  export type NativeKeyStorageError = {
2156
2269
  type_: "KEY_GENERATION_FAILURE";
2157
2270
  reason: string;
@@ -2282,6 +2395,10 @@ export declare enum TransactionCodeType {
2282
2395
  NUMERIC = "NUMERIC",
2283
2396
  ALPHANUMERIC = "ALPHANUMERIC"
2284
2397
  }
2398
+ export type TrustInformationDetailInfo = {
2399
+ type_: "EUDI";
2400
+ value: [EudiTrustInformation];
2401
+ };
2285
2402
  export declare enum TrustResolutionResult {
2286
2403
  TRUSTED = "TRUSTED",
2287
2404
  UNTRUSTED = "UNTRUSTED",
@@ -2465,9 +2582,11 @@ export interface OneCore {
2465
2582
  */
2466
2583
  getHistoryEntry(historyId: string): Promise<HistoryListItem>;
2467
2584
  getIdentifier(id: string): Promise<IdentifierDetail>;
2468
- /** Returns details of an existing organization. */
2585
+ /**
2586
+ * Returns details of an existing organization, including the ecosystems
2587
+ * offered to it.
2588
+ */
2469
2589
  getOrganisation(id: string): Promise<OrganisationDetail>;
2470
- getOrganisationTrustCollections(id: string): Promise<Array<TrustCollectionInfo>>;
2471
2590
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2472
2591
  /** Returns detailed information about a proof request. */
2473
2592
  getProof(proofId: string): Promise<ProofDetail>;
@@ -2488,7 +2607,7 @@ export interface OneCore {
2488
2607
  * identifier that matches issuer's restrictions. Alternatively,
2489
2608
  * you can specify an existing identifier.
2490
2609
  */
2491
- holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<string>;
2610
+ holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<HolderAcceptCredentialResponse>;
2492
2611
  /** Activates the instance with the provider after user authentication. */
2493
2612
  holderActivateInstance(id: string, request: HolderActivateInstanceRequest): Promise<HolderActivateInstanceResponse>;
2494
2613
  /** Returns instance registration details from the provider. */
@@ -2509,8 +2628,8 @@ export interface OneCore {
2509
2628
  holderRefreshCredential(interactionId: string): Promise<HolderRefreshCredentialResponse>;
2510
2629
  /** Registers the instance with a Wallet or Verifier Provider. */
2511
2630
  holderRegisterInstance(request: HolderRegisterInstanceRequest): Promise<HolderRegisterInstanceResponse>;
2512
- /** Rejects an offered credential. */
2513
- holderRejectCredential(interactionId: string): Promise<void>;
2631
+ /** Rejects offered credentials. Without `credential_ids`, all credentials of the interaction are rejected. */
2632
+ holderRejectCredential(interactionId: string, credentialIds: Array<string> | undefined): Promise<void>;
2514
2633
  /** Rejects a proof request. */
2515
2634
  holderRejectProof(interactionId: string): Promise<void>;
2516
2635
  /**
@@ -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,20 @@ 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 = {}));
157
+ export var EcosystemTrustResult;
158
+ (function (EcosystemTrustResult) {
159
+ EcosystemTrustResult["TRUSTED"] = "TRUSTED";
160
+ EcosystemTrustResult["NOT_TRUSTED"] = "NOT_TRUSTED";
161
+ })(EcosystemTrustResult || (EcosystemTrustResult = {}));
147
162
  export var HistoryAction;
148
163
  (function (HistoryAction) {
149
164
  HistoryAction["ACCEPTED"] = "ACCEPTED";
@@ -170,6 +185,7 @@ export var HistoryAction;
170
185
  HistoryAction["UPDATED"] = "UPDATED";
171
186
  HistoryAction["REACTIVATED"] = "REACTIVATED";
172
187
  HistoryAction["EXPIRED"] = "EXPIRED";
188
+ HistoryAction["EXPIRING"] = "EXPIRING";
173
189
  HistoryAction["INTERACTION_CREATED"] = "INTERACTION_CREATED";
174
190
  HistoryAction["INTERACTION_ERRORED"] = "INTERACTION_ERRORED";
175
191
  HistoryAction["INTERACTION_EXPIRED"] = "INTERACTION_EXPIRED";
@@ -178,6 +194,7 @@ export var HistoryAction;
178
194
  HistoryAction["WRP_RC_RECEIVED"] = "WRP_RC_RECEIVED";
179
195
  HistoryAction["WRP_NR_RECEIVED"] = "WRP_NR_RECEIVED";
180
196
  HistoryAction["TRUST_RESOLVED"] = "TRUST_RESOLVED";
197
+ HistoryAction["ECOSYSTEMS_RESOLVED"] = "ECOSYSTEMS_RESOLVED";
181
198
  HistoryAction["REFRESHED"] = "REFRESHED";
182
199
  HistoryAction["SIGNED"] = "SIGNED";
183
200
  })(HistoryAction || (HistoryAction = {}));
@@ -222,6 +239,11 @@ export var HistorySearchType;
222
239
  HistorySearchType["VERIFIER_NAME"] = "VERIFIER_NAME";
223
240
  HistorySearchType["PROOF_SCHEMA_NAME"] = "PROOF_SCHEMA_NAME";
224
241
  })(HistorySearchType || (HistorySearchType = {}));
242
+ export var IdentifierListIncludeEntity;
243
+ (function (IdentifierListIncludeEntity) {
244
+ IdentifierListIncludeEntity["LOGO"] = "LOGO";
245
+ IdentifierListIncludeEntity["TRANSLATIONS"] = "TRANSLATIONS";
246
+ })(IdentifierListIncludeEntity || (IdentifierListIncludeEntity = {}));
225
247
  export var IdentifierListQueryExactColumn;
226
248
  (function (IdentifierListQueryExactColumn) {
227
249
  IdentifierListQueryExactColumn["NAME"] = "NAME";
@@ -274,12 +296,6 @@ export var KeyStorageSecurity;
274
296
  KeyStorageSecurity["ENHANCED_BASIC"] = "ENHANCED_BASIC";
275
297
  KeyStorageSecurity["BASIC"] = "BASIC";
276
298
  })(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
299
  export var OpenId4vciTxCodeInputMode;
284
300
  (function (OpenId4vciTxCodeInputMode) {
285
301
  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)
@@ -80,6 +76,7 @@ RCT_EXTERN_METHOD(holderAcceptCredential:(NSDictionary *)request
80
76
  rejecter:(RCTPromiseRejectBlock)reject)
81
77
 
82
78
  RCT_EXTERN_METHOD(holderRejectCredential:(NSString *)interactionId
79
+ credentialIds:(NSArray *)credentialIds
83
80
  resolver:(RCTPromiseResolveBlock)resolve
84
81
  rejecter:(RCTPromiseRejectBlock)reject)
85
82
 
@@ -233,18 +233,23 @@ class ProcivisOneCoreModule: RCTEventEmitter {
233
233
  reject: @escaping RCTPromiseRejectBlock
234
234
  ) {
235
235
  asyncCall(resolve, reject) {
236
- return try await self.getCore().holderAcceptCredential(request: try deserialize(request))
236
+ let result = try await self.getCore().holderAcceptCredential(request: try deserialize(request))
237
+ return try serializeAny(result)
237
238
  }
238
239
  }
239
240
 
240
- @objc(holderRejectCredential:resolver:rejecter:)
241
+ @objc(holderRejectCredential:credentialIds:resolver:rejecter:)
241
242
  func holderRejectCredential(
242
243
  interactionId: String,
244
+ credentialIds: NSArray?,
243
245
  resolve: @escaping RCTPromiseResolveBlock,
244
246
  reject: @escaping RCTPromiseRejectBlock
245
247
  ) {
246
248
  asyncCall(resolve, reject) {
247
- try await self.getCore().holderRejectCredential(interactionId: interactionId)
249
+ try await self.getCore().holderRejectCredential(
250
+ interactionId: interactionId,
251
+ credentialIds: try deserializeOpt(credentialIds)
252
+ )
248
253
  return nil as NSDictionary?
249
254
  }
250
255
  }
@@ -837,18 +842,6 @@ class ProcivisOneCoreModule: RCTEventEmitter {
837
842
  }
838
843
  }
839
844
 
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
845
  @objc(nfcReadIsoMdlEngagement:resolver:rejecter:)
853
846
  func nfcReadIsoMdlEngagement(
854
847
  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
@@ -74,6 +76,11 @@ private func serialize(historyMetadata: HistoryMetadata) throws -> NSDictionary
74
76
  "type_": "TRUST_RESOLUTION",
75
77
  "value": try serializeAny(value)
76
78
  ];
79
+ case let .ecosystemsResolved(value):
80
+ return [
81
+ "type_": "ECOSYSTEMS_RESOLVED",
82
+ "value": try serializeAny(value)
83
+ ];
77
84
  }
78
85
  }
79
86
 
@@ -124,7 +131,7 @@ private func serialize(proofRequestClaimValue: ProofClaimValue) throws -> NSDict
124
131
 
125
132
  private func serialize(invitationResponse: HandleInvitationResponse) throws -> NSDictionary {
126
133
  switch (invitationResponse) {
127
- case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode, `protocol`, requiresWalletInstanceAttestation, ecosystem):
134
+ case let .credentialIssuance(interactionId, keyStorageSecurityLevels, keyAlgorithms, txCode, `protocol`, requiresWalletInstanceAttestation, ecosystem, ecosystemErrors):
128
135
  var result: [String: Any] = [
129
136
  "type_": "CREDENTIAL_ISSUANCE",
130
137
  "interactionId": interactionId,
@@ -143,9 +150,10 @@ private func serialize(invitationResponse: HandleInvitationResponse) throws -> N
143
150
  if let ecosystem = ecosystem {
144
151
  result["ecosystem"] = ecosystem
145
152
  }
153
+ result["ecosystemErrors"] = try serializeAny(ecosystemErrors)
146
154
  return result as NSDictionary;
147
155
 
148
- case let .proofRequest(interactionId, proofId, `protocol`, ecosystem):
156
+ case let .proofRequest(interactionId, proofId, `protocol`, ecosystem, ecosystemErrors):
149
157
  var result: [String: Any] = [
150
158
  "type_": "PROOF_REQUEST",
151
159
  "interactionId": interactionId,
@@ -155,9 +163,10 @@ private func serialize(invitationResponse: HandleInvitationResponse) throws -> N
155
163
  if let ecosystem = ecosystem {
156
164
  result["ecosystem"] = ecosystem
157
165
  }
166
+ result["ecosystemErrors"] = try serializeAny(ecosystemErrors)
158
167
  return result as NSDictionary;
159
168
 
160
- case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl, `protocol`, ecosystem):
169
+ case let .authorizationCodeFlow(interactionId, authorizationCodeFlowUrl, `protocol`, ecosystem, ecosystemErrors):
161
170
  var result: [String: Any] = [
162
171
  "type_": "AUTHORIZATION_CODE_FLOW",
163
172
  "interactionId": interactionId,
@@ -167,6 +176,7 @@ private func serialize(invitationResponse: HandleInvitationResponse) throws -> N
167
176
  if let ecosystem = ecosystem {
168
177
  result["ecosystem"] = ecosystem
169
178
  }
179
+ result["ecosystemErrors"] = try serializeAny(ecosystemErrors)
170
180
  return result as NSDictionary;
171
181
  }
172
182
  }
@@ -217,3 +227,13 @@ private func serialize(presentationDefinitionV2ClaimValue: PresentationDefinitio
217
227
  ];
218
228
  }
219
229
  }
230
+
231
+ private func serialize(trustInformationDetailInfo: TrustInformationDetailInfo) throws -> NSDictionary {
232
+ switch (trustInformationDetailInfo) {
233
+ case let .eudi(value):
234
+ return [
235
+ "type_": "EUDI",
236
+ "value": [try serializeAny(value)]
237
+ ];
238
+ }
239
+ }
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.126524.0",
4
4
  "author": "Procivis AG (https://procivis.ch)",
5
5
  "license": "Apache-2.0",
6
6
  "description": "ONE core bindings for React Native",