@procivis/react-native-one-core 1.98296.0 → 1.107844.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.
@@ -44,7 +44,7 @@ export interface CharacteristicSettings {
44
44
  }
45
45
  export interface Claim {
46
46
  path: string;
47
- schema: ClaimSchema;
47
+ schema: ClaimSchemaInfo;
48
48
  value: ClaimValue;
49
49
  }
50
50
  export interface ClaimSchema {
@@ -56,6 +56,19 @@ export interface ClaimSchema {
56
56
  required: boolean;
57
57
  array: boolean;
58
58
  claims: Array<ClaimSchema>;
59
+ mappings?: Array<CredentialClaimSchemaMapping>;
60
+ translations: CredentialClaimSchemaTranslations;
61
+ }
62
+ export interface ClaimSchemaInfo {
63
+ id: string;
64
+ createdDate: string;
65
+ lastModified: string;
66
+ key: string;
67
+ datatype: string;
68
+ required: boolean;
69
+ array: boolean;
70
+ claims: Array<ClaimSchemaInfo>;
71
+ translations: CredentialClaimSchemaTranslations;
59
72
  }
60
73
  export interface Config {
61
74
  /** Credential formats. */
@@ -78,8 +91,6 @@ export interface Config {
78
91
  keyAlgorithm: Record<string, string>;
79
92
  /** Storage options for keys. */
80
93
  keyStorage: Record<string, string>;
81
- /** Trust management solutions. */
82
- trustManagement: Record<string, string>;
83
94
  /** Entities held in temporary storage. */
84
95
  cacheEntities: Record<string, string>;
85
96
  /** Tasks which can be run via the `runTask` method. */
@@ -91,6 +102,8 @@ export interface Config {
91
102
  * management, trust collections, and feature flags.
92
103
  */
93
104
  walletProvider: Record<string, string>;
105
+ verifierProvider: Record<string, string>;
106
+ defaultLanguage: string;
94
107
  }
95
108
  export interface ContinueIssuanceResponse {
96
109
  /** For reference. */
@@ -116,6 +129,21 @@ export interface CreateCertificateRequest {
116
129
  keyId: string;
117
130
  roles: Array<CertificateRole>;
118
131
  }
132
+ export interface CreateCredentialSchemaRequest {
133
+ name: string;
134
+ formats: Array<CredentialSchemaFormatRequest>;
135
+ organisationId: string;
136
+ claims: Array<CredentialClaimSchemaRequest>;
137
+ keyStorageSecurity?: KeyStorageSecurity;
138
+ layoutType: LayoutType;
139
+ layoutProperties?: CredentialSchemaLayoutProperties;
140
+ allowSuspension?: boolean;
141
+ allowRevocation?: boolean;
142
+ batchSize?: number;
143
+ requiresWalletInstanceAttestation: boolean;
144
+ transactionCode?: CredentialSchemaTransactionCodeRequest;
145
+ translations?: CredentialSchemaTranslations;
146
+ }
119
147
  export interface CreateDidRequest {
120
148
  organisationId: string;
121
149
  name: string;
@@ -150,8 +178,7 @@ export interface CreateIdentifierTrustInformationRequest {
150
178
  export interface CreateOrganisationRequest {
151
179
  /** If no UUID is passed, one will be created. */
152
180
  id?: string;
153
- /** If no name is passed, the UUID will be used. */
154
- name?: string;
181
+ parentOrganisation?: string;
155
182
  }
156
183
  /**
157
184
  * If protocol is `ISO_MDL`, specify the device engagement type
@@ -219,16 +246,6 @@ export interface CreateProofSchemaRequest {
219
246
  /** Set of all claims to request. */
220
247
  proofInputSchemas: Array<CreateProofSchemaInput>;
221
248
  }
222
- export interface CreateRemoteTrustEntityRequest {
223
- didId: string;
224
- trustAnchorId?: string;
225
- name: string;
226
- logo?: string;
227
- termsUrl?: string;
228
- privacyUrl?: string;
229
- website?: string;
230
- role: TrustEntityRole;
231
- }
232
249
  export interface CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest {
233
250
  type: CreateSelfSignedCaRequestIssuerAlternativeNameType;
234
251
  name: string;
@@ -243,31 +260,28 @@ export interface CreateSelfSignedCertificateAuthorityRequestContent {
243
260
  subject: CsrSubject;
244
261
  issuerAlternativeName?: CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest;
245
262
  }
246
- export interface CreateTrustAnchorRequest {
247
- name: string;
248
- type: string;
249
- isPublisher?: boolean;
250
- publisherReference?: string;
251
- }
252
- export interface CreateTrustEntityRequest {
253
- name: string;
254
- logo?: string;
255
- website?: string;
256
- termsUrl?: string;
257
- privacyUrl?: string;
258
- role: TrustEntityRole;
259
- trustAnchorId: string;
260
- didId?: string;
261
- type?: TrustEntityType;
262
- identifierId?: string;
263
- content?: string;
264
- organisationId: string;
265
- }
266
263
  export interface CreatedBackup {
267
264
  historyId: string;
268
265
  file: string;
269
266
  unexportable: UnexportableEntities;
270
267
  }
268
+ export interface CredentialClaimSchemaMapping {
269
+ format: string;
270
+ technicalKey: string;
271
+ namespace?: string;
272
+ }
273
+ export interface CredentialClaimSchemaRequest {
274
+ key: string;
275
+ datatype: string;
276
+ required: boolean;
277
+ array?: boolean;
278
+ claims: Array<CredentialClaimSchemaRequest>;
279
+ mappings?: Array<CredentialClaimSchemaMapping>;
280
+ translations?: CredentialClaimSchemaTranslations;
281
+ }
282
+ export interface CredentialClaimSchemaTranslations {
283
+ name: Record<string, string>;
284
+ }
271
285
  export interface CredentialDetail {
272
286
  id: string;
273
287
  createdDate: string;
@@ -281,7 +295,7 @@ export interface CredentialDetail {
281
295
  /** State representation of the credential in the system. */
282
296
  state: CredentialState;
283
297
  /** Schema of the credential. */
284
- schema: CredentialSchemaListItem;
298
+ schema: CredentialSchemaInfo;
285
299
  claims: Array<Claim>;
286
300
  redirectUri?: string;
287
301
  /**
@@ -291,6 +305,7 @@ export interface CredentialDetail {
291
305
  * this value will be `VERIFIER`.
292
306
  */
293
307
  role: CredentialRole;
308
+ interactionId?: string;
294
309
  /** Scheduled date for credential reactivation. */
295
310
  suspendEndDate?: string;
296
311
  /** Validity details for ISO mdocs. */
@@ -299,6 +314,7 @@ export interface CredentialDetail {
299
314
  protocol: string;
300
315
  /** Country profile associated with the credential. */
301
316
  profile?: string;
317
+ trustInformation?: TrustInformation;
302
318
  }
303
319
  export interface CredentialList {
304
320
  values: Array<CredentialListItem>;
@@ -316,7 +332,7 @@ export interface CredentialListItem {
316
332
  /** State representation of the credential in the system. */
317
333
  state: CredentialState;
318
334
  /** Schema of the credential. */
319
- schema: CredentialSchemaListItem;
335
+ schema: CredentialSchemaInfo;
320
336
  /**
321
337
  * The role the system has in relation to the credential. For example,
322
338
  * if the system received the credential as a wallet this value will
@@ -418,7 +434,7 @@ export interface CredentialQuery {
418
434
  }
419
435
  export interface CredentialQueryFailureHint {
420
436
  reason: CredentialQueryFailureReason;
421
- credentialSchema?: CredentialSchemaDetail;
437
+ credentialSchema?: CredentialSchemaDetailInfo;
422
438
  }
423
439
  export interface CredentialRevocationCheckResponse {
424
440
  credentialId: string;
@@ -435,13 +451,32 @@ export interface CredentialSchemaCodeProperties {
435
451
  type: CredentialSchemaCodeType;
436
452
  }
437
453
  export interface CredentialSchemaDetail {
454
+ id: string;
455
+ createdDate: string;
456
+ lastModified: string;
457
+ name: string;
458
+ formats: Array<CredentialSchemaFormatResponse>;
459
+ organisationId: string;
460
+ claims: Array<ClaimSchema>;
461
+ keyStorageSecurity?: KeyStorageSecurity;
462
+ importedSourceUrl: string;
463
+ layoutType?: LayoutType;
464
+ layoutProperties?: CredentialSchemaLayoutProperties;
465
+ allowSuspension: boolean;
466
+ allowRevocation?: boolean;
467
+ batchSize?: number;
468
+ requiresWalletInstanceAttestation: boolean;
469
+ transactionCode?: CredentialSchemaTransactionCode;
470
+ translations: CredentialSchemaTranslations;
471
+ }
472
+ export interface CredentialSchemaDetailInfo {
438
473
  id: string;
439
474
  createdDate: string;
440
475
  lastModified: string;
441
476
  name: string;
442
477
  format: string;
443
478
  revocationMethod?: string;
444
- claims: Array<ClaimSchema>;
479
+ claims: Array<ClaimSchemaInfo>;
445
480
  keyStorageSecurity?: KeyStorageSecurity;
446
481
  schemaId: string;
447
482
  importedSourceUrl: string;
@@ -450,6 +485,31 @@ export interface CredentialSchemaDetail {
450
485
  allowSuspension: boolean;
451
486
  requiresWalletInstanceAttestation: boolean;
452
487
  transactionCode?: CredentialSchemaTransactionCode;
488
+ translations: CredentialSchemaTranslations;
489
+ }
490
+ export interface CredentialSchemaFormatRequest {
491
+ format: string;
492
+ schemaId?: string;
493
+ }
494
+ export interface CredentialSchemaFormatResponse {
495
+ format: string;
496
+ schemaId: string;
497
+ }
498
+ export interface CredentialSchemaInfo {
499
+ id: string;
500
+ createdDate: string;
501
+ lastModified: string;
502
+ name: string;
503
+ format: string;
504
+ revocationMethod?: string;
505
+ keyStorageSecurity?: KeyStorageSecurity;
506
+ schemaId: string;
507
+ layoutType?: LayoutType;
508
+ importedSourceUrl: string;
509
+ layoutProperties?: CredentialSchemaLayoutProperties;
510
+ allowSuspension: boolean;
511
+ requiresWalletInstanceAttestation: boolean;
512
+ translations?: CredentialSchemaTranslations;
453
513
  }
454
514
  export interface CredentialSchemaLayoutProperties {
455
515
  background?: CredentialSchemaBackgroundProperties;
@@ -469,14 +529,14 @@ export interface CredentialSchemaListItem {
469
529
  createdDate: string;
470
530
  lastModified: string;
471
531
  name: string;
472
- format: string;
473
- revocationMethod?: string;
532
+ formats: Array<CredentialSchemaFormatResponse>;
474
533
  keyStorageSecurity?: KeyStorageSecurity;
475
- schemaId: string;
476
- layoutType?: LayoutType;
477
534
  importedSourceUrl: string;
535
+ layoutType?: LayoutType;
478
536
  layoutProperties?: CredentialSchemaLayoutProperties;
479
537
  allowSuspension: boolean;
538
+ allowRevocation?: boolean;
539
+ batchSize?: number;
480
540
  requiresWalletInstanceAttestation: boolean;
481
541
  }
482
542
  export interface CredentialSchemaListQuery {
@@ -490,7 +550,10 @@ export interface CredentialSchemaListQuery {
490
550
  exact?: Array<CredentialSchemaListQueryExactColumn>;
491
551
  include?: Array<CredentialSchemaListIncludeEntityType>;
492
552
  schemaId?: string;
553
+ schemaIds?: Array<string>;
493
554
  formats?: Array<string>;
555
+ usesBatchIssuance?: boolean;
556
+ isMultiformatSchema?: boolean;
494
557
  createdDateAfter?: string;
495
558
  createdDateBefore?: string;
496
559
  lastModifiedAfter?: string;
@@ -509,6 +572,15 @@ export interface CredentialSchemaTransactionCode {
509
572
  length: number;
510
573
  description?: string;
511
574
  }
575
+ export interface CredentialSchemaTransactionCodeRequest {
576
+ type: TransactionCodeType;
577
+ length: number;
578
+ description?: string;
579
+ }
580
+ export interface CredentialSchemaTranslations {
581
+ name: Record<string, string>;
582
+ description?: Record<string, string>;
583
+ }
512
584
  export interface CredentialSet {
513
585
  required: boolean;
514
586
  options: Array<Array<string>>;
@@ -584,6 +656,31 @@ export interface ErrorResponse {
584
656
  message: string;
585
657
  cause?: Cause;
586
658
  }
659
+ export interface EudiIntermediary {
660
+ name?: string;
661
+ identifier: string;
662
+ website: string;
663
+ email?: string;
664
+ phone?: string;
665
+ country: string;
666
+ }
667
+ export interface EudiSupervisoryAuthority {
668
+ email: string;
669
+ phone: string;
670
+ uri: string;
671
+ }
672
+ export interface EudiTrustInformation {
673
+ name: string;
674
+ website: string;
675
+ email?: string;
676
+ phone?: string;
677
+ country: string;
678
+ identifier: string;
679
+ serviceDescription: Array<Record<string, string>>;
680
+ supervisoryAuthority: EudiSupervisoryAuthority;
681
+ intermediary?: EudiIntermediary;
682
+ isPublicSector: boolean;
683
+ }
587
684
  export interface GenerateKeyRequest {
588
685
  /** Specifies the organizational context of this operation. */
589
686
  organisationId: string;
@@ -711,17 +808,40 @@ export interface HolderAcceptCredentialRequest {
711
808
  /** User-provided transaction code. */
712
809
  txCode?: string;
713
810
  }
811
+ export interface HolderAcceptCredentialResponse {
812
+ credentialIds: Array<string>;
813
+ }
814
+ export interface HolderRefreshCredentialResponse {
815
+ credentialIds: Array<string>;
816
+ }
714
817
  export interface HolderRegisterWalletUnitRequest {
715
818
  /** The wallet unit's organization. */
716
819
  organisationId: string;
717
- /** Reference the `walletProvider` configuration. */
820
+ /** Wallet Provider details. */
718
821
  walletProvider: WalletProvider;
822
+ /**
823
+ * Choose a key type and the system will generate a key to use for
824
+ * registration.
825
+ */
719
826
  keyType: string;
827
+ /**
828
+ * When true, the wallet will only interact with entities that can be
829
+ * verified as trusted. Requires the Wallet Provider to have the
830
+ * `trustEcosystemsEnabled` feature flag enabled.
831
+ */
832
+ trustedRpRequired: boolean;
720
833
  }
721
834
  export interface HolderRegisterWalletUnitResponse {
722
835
  id: string;
723
836
  status: WalletUnitStatus;
724
837
  }
838
+ export interface HolderWalletInstanceDetail {
839
+ id: string;
840
+ trustedRpRequired: boolean;
841
+ walletProviderUrl: string;
842
+ walletProviderName: string;
843
+ authenticationKeyType: string;
844
+ }
725
845
  export interface HolderWalletUnit {
726
846
  id: string;
727
847
  createdDate: string;
@@ -732,9 +852,23 @@ export interface HolderWalletUnit {
732
852
  walletProviderName: string;
733
853
  status: WalletUnitStatus;
734
854
  authenticationKey?: KeyListItem;
855
+ trustedRpRequired: boolean;
735
856
  }
736
857
  export interface HolderWalletUnitUpdateRequest {
737
- trustCollections: Array<string>;
858
+ /**
859
+ * The trust collections the wallet subscribes to, selected from those
860
+ * made available by the Wallet Provider. The wallet will evaluate trust
861
+ * against the lists contained in these collections. To keep subscribed
862
+ * collections in sync with the Wallet Provider, run the
863
+ * `TRUST_COLLECTION_SYNC` task.
864
+ */
865
+ trustCollections?: Array<string>;
866
+ /**
867
+ * When true, the wallet will only interact with entities that can be
868
+ * verified as trusted. Requires the Wallet Provider to have the
869
+ * `trustEcosystemsEnabled` feature flag enabled.
870
+ */
871
+ trustedRpRequired?: boolean;
738
872
  }
739
873
  export interface IdentifierDetail {
740
874
  id: string;
@@ -805,6 +939,11 @@ export interface ImportCredentialSchemaClaimSchema {
805
939
  datatype: string;
806
940
  array?: boolean;
807
941
  claims?: Array<ImportCredentialSchemaClaimSchema>;
942
+ mappings?: Array<CredentialClaimSchemaMapping>;
943
+ }
944
+ export interface ImportCredentialSchemaFormat {
945
+ format: string;
946
+ schemaId: string;
808
947
  }
809
948
  export interface ImportCredentialSchemaLayoutProperties {
810
949
  background?: CredentialSchemaBackgroundProperties;
@@ -823,18 +962,19 @@ export interface ImportCredentialSchemaRequestSchema {
823
962
  createdDate: string;
824
963
  lastModified: string;
825
964
  name: string;
826
- format: string;
827
- revocationMethod: string;
965
+ formats: Array<ImportCredentialSchemaFormat>;
828
966
  organisationId: string;
829
967
  claims: Array<ImportCredentialSchemaClaimSchema>;
830
968
  keyStorageSecurity?: KeyStorageSecurity;
831
- schemaId: string;
832
969
  importedSourceUrl: string;
833
970
  layoutType?: LayoutType;
834
971
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
835
972
  allowSuspension?: boolean;
836
973
  requiresWalletInstanceAttestation?: boolean;
837
974
  transactionCode?: ImportCredentialSchemaTransactionCode;
975
+ allowRevocation?: boolean;
976
+ batchSize?: number;
977
+ translations?: CredentialSchemaTranslations;
838
978
  }
839
979
  export interface ImportCredentialSchemaTransactionCode {
840
980
  type: TransactionCodeType;
@@ -956,6 +1096,10 @@ export interface Metadata {
956
1096
  dbHash: string;
957
1097
  createdAt: string;
958
1098
  }
1099
+ export interface MultiLangString {
1100
+ lang: string;
1101
+ value: string;
1102
+ }
959
1103
  /** Optional messages to be displayed on (iOS) system overlay. */
960
1104
  export interface NfcScanRequest {
961
1105
  inProgressMessage?: string;
@@ -973,6 +1117,28 @@ export interface OpenId4vciTxCode {
973
1117
  */
974
1118
  description?: string;
975
1119
  }
1120
+ export interface OrganisationDetail {
1121
+ id: string;
1122
+ createdDate: string;
1123
+ lastModified: string;
1124
+ deactivatedAt?: string;
1125
+ /**
1126
+ * The parent organization this organization inherits policy-level
1127
+ * configuration from, if any.
1128
+ */
1129
+ parentOrganisation?: string;
1130
+ walletProvider?: WalletProviderDetail;
1131
+ /**
1132
+ * Wallet registration details for this organization's Business
1133
+ * Wallet.
1134
+ */
1135
+ walletInstance?: HolderWalletInstanceDetail;
1136
+ /**
1137
+ * Wallet registration details for this organization's Business
1138
+ * Wallet.
1139
+ */
1140
+ verifierInstance?: VerifierInstanceDetail;
1141
+ }
976
1142
  export interface PeripheralDiscoveryData {
977
1143
  deviceAddress: string;
978
1144
  localDeviceName?: string;
@@ -1018,7 +1184,7 @@ export interface PresentationDefinitionV2 {
1018
1184
  }
1019
1185
  export interface PresentationDefinitionV2Claim {
1020
1186
  path: string;
1021
- schema: ClaimSchema;
1187
+ schema: ClaimSchemaInfo;
1022
1188
  value: PresentationDefinitionV2ClaimValue;
1023
1189
  userSelection: boolean;
1024
1190
  required: boolean;
@@ -1033,7 +1199,7 @@ export interface PresentationDefinitionV2Credential {
1033
1199
  issuerCertificate?: CertificateDetail;
1034
1200
  holder?: IdentifierListItem;
1035
1201
  state: CredentialState;
1036
- schema: CredentialSchemaListItem;
1202
+ schema: CredentialSchemaInfo;
1037
1203
  claims: Array<PresentationDefinitionV2Claim>;
1038
1204
  redirectUri?: string;
1039
1205
  role: CredentialRole;
@@ -1109,6 +1275,8 @@ export interface ProofDetail {
1109
1275
  claimsRemovedAt?: string;
1110
1276
  /** Country profile associated with this request. */
1111
1277
  profile?: string;
1278
+ /** Trust information of the verifier, if any. */
1279
+ trustInformation?: TrustInformation;
1112
1280
  }
1113
1281
  export interface ProofInput {
1114
1282
  /** Set of claims asserted by the shared credential. */
@@ -1116,11 +1284,11 @@ export interface ProofInput {
1116
1284
  /** Shared credential metadata. */
1117
1285
  credential?: CredentialDetail;
1118
1286
  /** Credential schema metadata. */
1119
- credentialSchema: CredentialSchemaListItem;
1287
+ credentialSchema: CredentialSchemaInfo;
1120
1288
  }
1121
1289
  export interface ProofInputSchema {
1122
1290
  claimSchemas: Array<ProofClaimSchema>;
1123
- credentialSchema: CredentialSchemaListItem;
1291
+ credentialSchema: CredentialSchemaInfo;
1124
1292
  }
1125
1293
  export interface ProofList {
1126
1294
  values: Array<ProofListItem>;
@@ -1298,39 +1466,20 @@ export interface RegisterVerifierInstanceRequest {
1298
1466
  verifierProviderUrl: string;
1299
1467
  /** Reference a configured `verifierProvider` instance. */
1300
1468
  type: string;
1469
+ /**
1470
+ * When true, the verifier will only validate presentations of
1471
+ * credentials issued by trusted issuers. Requires the Verifier
1472
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1473
+ * enabled.
1474
+ */
1475
+ trustedIssuerRequired: boolean;
1301
1476
  }
1302
1477
  export interface RegisterVerifierInstanceResponse {
1303
1478
  id: string;
1304
1479
  }
1305
- export interface RemoteTrustEntityDetail {
1306
- id: string;
1307
- organisationId?: string;
1308
- createdDate: string;
1309
- lastModified: string;
1310
- name: string;
1311
- logo?: string;
1312
- website?: string;
1313
- termsUrl?: string;
1314
- privacyUrl?: string;
1315
- role: TrustEntityRole;
1316
- trustAnchor: TrustAnchorDetail;
1317
- did?: DidListItem;
1318
- state: TrustEntityState;
1319
- }
1320
- export interface ResolveTrustEntitiesRequest {
1321
- identifiers: Array<ResolveTrustEntityRequest>;
1322
- }
1323
- export interface ResolveTrustEntityRequest {
1324
- id: string;
1325
- certificateId?: string;
1326
- }
1327
1480
  export interface ResolvedJsonLdContext {
1328
1481
  context: string;
1329
1482
  }
1330
- export interface ResolvedTrustEntity {
1331
- trustEntity: TrustEntityDetail;
1332
- certificateIds?: Array<string>;
1333
- }
1334
1483
  export interface ServiceDescription {
1335
1484
  uuid: string;
1336
1485
  advertise: boolean;
@@ -1352,45 +1501,8 @@ export interface ShareProofResponse {
1352
1501
  url: string;
1353
1502
  expiresAt?: string;
1354
1503
  }
1355
- export interface TrustAnchorDetail {
1356
- id: string;
1357
- name: string;
1358
- createdDate: string;
1359
- lastModified: string;
1360
- type: string;
1361
- isPublisher: boolean;
1362
- publisherReference: string;
1363
- }
1364
- export interface TrustAnchorList {
1365
- values: Array<TrustAnchorListItem>;
1366
- totalPages: number;
1367
- totalItems: number;
1368
- }
1369
- export interface TrustAnchorListItem {
1370
- id: string;
1371
- name: string;
1372
- createdDate: string;
1373
- lastModified: string;
1374
- type: string;
1375
- isPublisher: boolean;
1376
- publisherReference: string;
1377
- entities: number;
1378
- }
1379
- export interface TrustAnchorListQuery {
1380
- page: number;
1381
- pageSize: number;
1382
- sort?: SortableTrustAnchorColumn;
1383
- sortDirection?: SortDirection;
1384
- name?: string;
1385
- isPublisher?: boolean;
1386
- type?: string;
1387
- exact?: Array<TrustAnchorListQueryExactColumn>;
1388
- createdDateAfter?: string;
1389
- createdDateBefore?: string;
1390
- lastModifiedAfter?: string;
1391
- lastModifiedBefore?: string;
1392
- }
1393
1504
  export interface TrustCollectionInfo {
1505
+ /** When true, the wallet is subscribed to this trust collection. */
1394
1506
  selected: boolean;
1395
1507
  id: string;
1396
1508
  name: string;
@@ -1399,77 +1511,23 @@ export interface TrustCollectionInfo {
1399
1511
  description: Array<DisplayName>;
1400
1512
  }
1401
1513
  export interface TrustCollections {
1514
+ /** Trust collections available from the Wallet Provider. */
1402
1515
  trustCollections: Array<TrustCollectionInfo>;
1403
1516
  }
1404
- export interface TrustEntityCertificate {
1405
- state: CertificateState;
1406
- publicKey: string;
1407
- commonName?: string;
1408
- serialNumber: string;
1409
- notBefore: string;
1410
- notAfter: string;
1411
- issuer: string;
1412
- subject: string;
1413
- fingerprint: string;
1414
- extensions: Array<CertificateX509Extension>;
1517
+ export interface TrustInformation {
1518
+ receivedAt: string;
1519
+ name?: string;
1520
+ result: TrustResolutionResult;
1415
1521
  }
1416
- export interface TrustEntityDetail {
1417
- id: string;
1418
- organisationId?: string;
1419
- createdDate: string;
1420
- lastModified: string;
1421
- name: string;
1422
- logo?: string;
1423
- website?: string;
1424
- termsUrl?: string;
1425
- privacyUrl?: string;
1426
- role: TrustEntityRole;
1427
- trustAnchor: TrustAnchorDetail;
1428
- did?: DidListItem;
1429
- state: TrustEntityState;
1430
- entityKey: string;
1431
- type: TrustEntityType;
1432
- identifier?: IdentifierListItem;
1433
- content?: string;
1434
- ca?: TrustEntityCertificate;
1435
- }
1436
- export interface TrustEntityList {
1437
- values: Array<TrustEntityListItem>;
1438
- totalPages: number;
1439
- totalItems: number;
1522
+ export interface TrustInformationDetail {
1523
+ /**
1524
+ * EUDI trust information received from Access Certificates, Registration
1525
+ * Certificates, or National Registry public APIs.
1526
+ */
1527
+ eudiEcosystem?: EudiTrustInformation;
1440
1528
  }
1441
- export interface TrustEntityListItem {
1442
- id: string;
1443
- name: string;
1444
- createdDate: string;
1445
- lastModified: string;
1446
- logo?: string;
1447
- website?: string;
1448
- termsUrl?: string;
1449
- state: TrustEntityState;
1450
- privacyUrl?: string;
1451
- role: TrustEntityRole;
1452
- trustAnchor: TrustAnchorDetail;
1453
- did?: DidListItem;
1454
- }
1455
- export interface TrustEntityListQuery {
1456
- page: number;
1457
- pageSize: number;
1458
- sort?: SortableTrustEntityColumn;
1459
- sortDirection?: SortDirection;
1460
- name?: string;
1461
- role?: TrustEntityRole;
1462
- trustAnchor?: string;
1463
- didId?: string;
1464
- organisationId?: string;
1465
- types?: Array<TrustEntityType>;
1466
- entityKey?: string;
1467
- states?: Array<TrustEntityState>;
1468
- exact?: Array<TrustEntityListQueryExactColumn>;
1469
- createdDateAfter?: string;
1470
- createdDateBefore?: string;
1471
- lastModifiedAfter?: string;
1472
- lastModifiedBefore?: string;
1529
+ export interface TrustResolutionMetadata {
1530
+ result: TrustResolutionResult;
1473
1531
  }
1474
1532
  export interface UnexportableEntities {
1475
1533
  credentials: Array<CredentialDetail>;
@@ -1481,30 +1539,47 @@ export interface UnexportableEntities {
1481
1539
  totalDids: number;
1482
1540
  totalIdentifiers: number;
1483
1541
  }
1484
- export interface UpdateRemoteTrustEntityRequest {
1485
- didId: string;
1486
- action?: TrustEntityUpdateAction;
1487
- name?: string;
1488
- logo?: string | null;
1489
- website?: string | null;
1490
- termsUrl?: string | null;
1491
- privacyUrl?: string | null;
1492
- role?: TrustEntityRole;
1493
- }
1494
1542
  export interface UpdateVerifierInstanceRequest {
1495
- trustCollections: Array<string>;
1543
+ /**
1544
+ * The trust collections the verifier subscribes to, selected from
1545
+ * those made available by the Verifier Provider. The verifier will
1546
+ * evaluate trust against the lists contained in these collections.
1547
+ * To keep subscribed collections in sync with the Verifier Provider,
1548
+ * run the `TRUST_COLLECTION_SYNC` task.
1549
+ */
1550
+ trustCollections?: Array<string>;
1551
+ /**
1552
+ * When true, the verifier will only validate presentations of
1553
+ * credentials issued by trusted issuers. Requires the Verifier
1554
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1555
+ * enabled.
1556
+ */
1557
+ trustedIssuerRequired?: boolean;
1496
1558
  }
1497
1559
  export interface UpsertOrganisationRequest {
1498
1560
  /** Unique identifier of the organization to create or update. */
1499
1561
  id: string;
1500
- /** Organization's display name. */
1501
- name?: string;
1502
1562
  /** Set to `true` to deactivate the organization. */
1503
1563
  deactivate?: boolean;
1504
1564
  /** Wallet Provider use only. */
1505
1565
  walletProvider?: string | null;
1506
1566
  /** Wallet Provider use only. */
1507
1567
  walletProviderIssuer?: string | null;
1568
+ /**
1569
+ * The parent organization this organization inherits policy-level
1570
+ * configuration from, if any.
1571
+ */
1572
+ parentOrganisation?: string | null;
1573
+ }
1574
+ export interface VerifierInstanceDetail {
1575
+ id: string;
1576
+ /**
1577
+ * When true, the verifier will only validate presentations of
1578
+ * credentials issued by trusted issuers. Requires the Verifier
1579
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1580
+ * enabled.
1581
+ */
1582
+ trustedIssuerRequired: boolean;
1508
1583
  }
1509
1584
  export interface Version {
1510
1585
  target: string;
@@ -1516,12 +1591,30 @@ export interface Version {
1516
1591
  pipelineId: string;
1517
1592
  }
1518
1593
  export interface WalletProvider {
1594
+ /**
1595
+ * Full URL for the GET Wallet Provider metadata endpoint,
1596
+ * for example: <domain>/ssi/wallet-provider/v1/<walletProvider>
1597
+ */
1519
1598
  url: string;
1599
+ /** Choose the Wallet Provider implementation. */
1520
1600
  type: WalletProviderType;
1521
1601
  }
1602
+ export interface WalletProviderDetail {
1603
+ /**
1604
+ * Wallet Provider configuration used by this organization to provide
1605
+ * wallets.
1606
+ */
1607
+ providerName?: string;
1608
+ /** Identifier used by this organization to provide wallets. */
1609
+ issuer?: IdentifierListItem;
1610
+ }
1611
+ export interface WalletRelyingPartyMetadata {
1612
+ name: string;
1613
+ }
1522
1614
  export type ApplicableCredentialOrFailureHint = {
1523
1615
  type_: "APPLICABLE_CREDENTIALS";
1524
1616
  applicableCredentials: Array<PresentationDefinitionV2Credential>;
1617
+ purpose?: Record<string, string>;
1525
1618
  } | {
1526
1619
  type_: "FAILURE_HINT";
1527
1620
  failureHint: CredentialQueryFailureHint;
@@ -1579,7 +1672,10 @@ export declare enum CacheType {
1579
1672
  TRUST_LIST = "TRUST_LIST",
1580
1673
  X509_CRL = "X509_CRL",
1581
1674
  ANDROID_ATTESTATION_CRL = "ANDROID_ATTESTATION_CRL",
1582
- OPEN_ID_METADATA = "OPEN_ID_METADATA"
1675
+ OPEN_ID_METADATA_HOLDER = "OPEN_ID_METADATA_HOLDER",
1676
+ OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER",
1677
+ WALLET_PROVIDER_METADATA = "WALLET_PROVIDER_METADATA",
1678
+ REMOTE_TRUST_COLLECTION = "REMOTE_TRUST_COLLECTION"
1583
1679
  }
1584
1680
  export declare enum CertificateRole {
1585
1681
  AUTHENTICATION = "AUTHENTICATION",
@@ -1646,7 +1742,7 @@ export declare enum CreateSelfSignedCaRequestIssuerAlternativeNameType {
1646
1742
  }
1647
1743
  export declare enum CredentialListIncludeEntityType {
1648
1744
  LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1649
- CREDENTIAL = "CREDENTIAL"
1745
+ TRANSLATIONS = "TRANSLATIONS"
1650
1746
  }
1651
1747
  export declare enum CredentialListQueryExactColumn {
1652
1748
  NAME = "NAME"
@@ -1672,7 +1768,8 @@ export declare enum CredentialSchemaCodeType {
1672
1768
  QR_CODE = "QR_CODE"
1673
1769
  }
1674
1770
  export declare enum CredentialSchemaListIncludeEntityType {
1675
- LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES"
1771
+ LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1772
+ TRANSLATIONS = "TRANSLATIONS"
1676
1773
  }
1677
1774
  export declare enum CredentialSchemaListQueryExactColumn {
1678
1775
  NAME = "NAME",
@@ -1766,7 +1863,9 @@ export declare enum HistoryAction {
1766
1863
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED",
1767
1864
  DELIVERED = "DELIVERED",
1768
1865
  WRP_AC_RECEIVED = "WRP_AC_RECEIVED",
1769
- WRP_RC_RECEIVED = "WRP_RC_RECEIVED"
1866
+ WRP_RC_RECEIVED = "WRP_RC_RECEIVED",
1867
+ WRP_NR_RECEIVED = "WRP_NR_RECEIVED",
1868
+ TRUST_RESOLVED = "TRUST_RESOLVED"
1770
1869
  }
1771
1870
  export declare enum HistoryEntityType {
1772
1871
  KEY = "KEY",
@@ -1779,8 +1878,6 @@ export declare enum HistoryEntityType {
1779
1878
  PROOF_SCHEMA = "PROOF_SCHEMA",
1780
1879
  ORGANISATION = "ORGANISATION",
1781
1880
  BACKUP = "BACKUP",
1782
- TRUST_ANCHOR = "TRUST_ANCHOR",
1783
- TRUST_ENTITY = "TRUST_ENTITY",
1784
1881
  WALLET_UNIT = "WALLET_UNIT",
1785
1882
  USER = "USER",
1786
1883
  PROVIDER = "PROVIDER",
@@ -1808,8 +1905,11 @@ export type HistoryMetadata = {
1808
1905
  type_: "WALLET_UNIT_JWT";
1809
1906
  value: [string];
1810
1907
  } | {
1811
- type_: "CERTIFICATE";
1812
- value: [string];
1908
+ type_: "WALLET_RELYING_PARTY";
1909
+ value: WalletRelyingPartyMetadata;
1910
+ } | {
1911
+ type_: "TRUST_RESOLUTION";
1912
+ value: TrustResolutionMetadata;
1813
1913
  };
1814
1914
  export declare enum HistorySearchType {
1815
1915
  ALL = "ALL",
@@ -1986,49 +2086,14 @@ export declare enum SortableProofSchemaColumn {
1986
2086
  NAME = "NAME",
1987
2087
  CREATED_DATE = "CREATED_DATE"
1988
2088
  }
1989
- export declare enum SortableTrustAnchorColumn {
1990
- NAME = "NAME",
1991
- CREATED_DATE = "CREATED_DATE",
1992
- TYPE = "TYPE"
1993
- }
1994
- export declare enum SortableTrustEntityColumn {
1995
- NAME = "NAME",
1996
- ROLE = "ROLE",
1997
- LAST_MODIFIED = "LAST_MODIFIED",
1998
- STATE = "STATE"
1999
- }
2000
2089
  export declare enum TransactionCodeType {
2001
2090
  NUMERIC = "NUMERIC",
2002
2091
  ALPHANUMERIC = "ALPHANUMERIC"
2003
2092
  }
2004
- export declare enum TrustAnchorListQueryExactColumn {
2005
- NAME = "NAME",
2006
- TYPE = "TYPE"
2007
- }
2008
- export declare enum TrustEntityListQueryExactColumn {
2009
- NAME = "NAME"
2010
- }
2011
- export declare enum TrustEntityRole {
2012
- ISSUER = "ISSUER",
2013
- VERIFIER = "VERIFIER",
2014
- BOTH = "BOTH"
2015
- }
2016
- export declare enum TrustEntityState {
2017
- ACTIVE = "ACTIVE",
2018
- REMOVED = "REMOVED",
2019
- WITHDRAWN = "WITHDRAWN",
2020
- REMOVED_AND_WITHDRAWN = "REMOVED_AND_WITHDRAWN"
2021
- }
2022
- export declare enum TrustEntityType {
2023
- DID = "DID",
2024
- /** certificate authority */
2025
- CA = "CA"
2026
- }
2027
- export declare enum TrustEntityUpdateAction {
2028
- ADMIN_ACTIVATE = "ADMIN_ACTIVATE",
2029
- ACTIVATE = "ACTIVATE",
2030
- WITHDRAW = "WITHDRAW",
2031
- REMOVE = "REMOVE"
2093
+ export declare enum TrustResolutionResult {
2094
+ TRUSTED = "TRUSTED",
2095
+ UNTRUSTED = "UNTRUSTED",
2096
+ UNKNOWN = "UNKNOWN"
2032
2097
  }
2033
2098
  export declare enum WalletProviderType {
2034
2099
  PROCIVIS_ONE = "PROCIVIS_ONE"
@@ -2153,6 +2218,8 @@ export interface OneCore {
2153
2218
  continueIssuance(url: string): Promise<ContinueIssuanceResponse>;
2154
2219
  /** Creates a backup of the current database and writes it to a file. */
2155
2220
  createBackup(password: string, outputPath: string): Promise<CreatedBackup>;
2221
+ /** Creates a credential schema */
2222
+ createCredentialSchema(request: CreateCredentialSchemaRequest): Promise<string>;
2156
2223
  /** Deprecated. Use the `createIdentifier` method. */
2157
2224
  createDid(request: CreateDidRequest): Promise<string>;
2158
2225
  /** Creates a new identifier. */
@@ -2172,9 +2239,6 @@ export interface OneCore {
2172
2239
  * before building a proof schema that includes their claims.
2173
2240
  */
2174
2241
  createProofSchema(request: CreateProofSchemaRequest): Promise<string>;
2175
- createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<string>;
2176
- createTrustAnchor(anchor: CreateTrustAnchorRequest): Promise<string>;
2177
- createTrustEntity(request: CreateTrustEntityRequest): Promise<string>;
2178
2242
  /**
2179
2243
  * Deletes the system cache. See the
2180
2244
  * [Caching](https://docs.procivis.ch/configure/caching#cached-entities)
@@ -2192,7 +2256,6 @@ export interface OneCore {
2192
2256
  deleteProof(proofId: string): Promise<void>;
2193
2257
  deleteProofClaims(proofId: string): Promise<void>;
2194
2258
  deleteProofSchema(proofSchemaId: string): Promise<void>;
2195
- deleteTrustAnchor(anchorId: string): Promise<void>;
2196
2259
  /**
2197
2260
  * Commits to the restored database, replacing the original. The old
2198
2261
  * database is deleted.
@@ -2212,18 +2275,23 @@ export interface OneCore {
2212
2275
  * preferences for suitable key storage types for wallets to use.
2213
2276
  */
2214
2277
  getCredentialSchema(credentialSchemaId: string): Promise<CredentialSchemaDetail>;
2278
+ /** Returns detailed trust information about a credential issuer. */
2279
+ getCredentialTrustInformation(credentialId: string): Promise<TrustInformationDetail>;
2215
2280
  /** Returns details on a single event. */
2216
2281
  getHistoryEntry(historyId: string): Promise<HistoryListItem>;
2217
2282
  getIdentifier(id: string): Promise<IdentifierDetail>;
2283
+ /** Returns details of an existing organization. */
2284
+ getOrganisation(id: string): Promise<OrganisationDetail>;
2218
2285
  getPresentationDefinition(proofId: string): Promise<PresentationDefinition>;
2219
2286
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2220
2287
  /** Returns detailed information about a proof request. */
2221
2288
  getProof(proofId: string): Promise<ProofDetail>;
2222
2289
  getProofSchema(proofSchemaId: string): Promise<ProofSchemaDetail>;
2223
- getRemoteTrustEntity(didId: string): Promise<RemoteTrustEntityDetail>;
2224
- getTrustAnchor(trustAnchorId: string): Promise<TrustAnchorDetail>;
2225
- getTrustEntity(trustEntityId: string): Promise<TrustEntityDetail>;
2226
- getTrustEntityByDid(didId: string): Promise<TrustEntityDetail>;
2290
+ /**
2291
+ * Returns detailed trust information about the requesting entity for a
2292
+ * proof request.
2293
+ */
2294
+ getProofTrustInformation(proofId: string): Promise<TrustInformationDetail>;
2227
2295
  /** Returns trust collections curated by the Verifier Provider. */
2228
2296
  getVerifierInstanceTrustCollections(id: string): Promise<TrustCollections>;
2229
2297
  /**
@@ -2237,11 +2305,13 @@ export interface OneCore {
2237
2305
  * identifier that matches issuer's restrictions. Alternatively,
2238
2306
  * you can specify an existing identifier.
2239
2307
  */
2240
- holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<string>;
2308
+ holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<HolderAcceptCredentialResponse>;
2241
2309
  /** Returns wallet registration details from the Wallet Provider. */
2242
2310
  holderGetWalletUnit(id: string): Promise<HolderWalletUnit>;
2243
2311
  /** Returns trust collections curated by the Wallet Provider. */
2244
2312
  holderGetWalletUnitTrustCollections(id: string): Promise<TrustCollections>;
2313
+ /** Receive a new credential batch */
2314
+ holderRefreshCredential(interactionId: string): Promise<HolderRefreshCredentialResponse>;
2245
2315
  /** Registers the wallet unit with a Wallet Provider. */
2246
2316
  holderRegisterWalletUnit(request: HolderRegisterWalletUnitRequest): Promise<HolderRegisterWalletUnitResponse>;
2247
2317
  /** Rejects an offered credential. */
@@ -2286,8 +2356,6 @@ export interface OneCore {
2286
2356
  listProofSchemas(filter: ProofSchemaListQuery): Promise<ProofSchemaList>;
2287
2357
  /** Returns a filterable list of proof requests. */
2288
2358
  listProofs(query: ProofListQuery): Promise<ProofList>;
2289
- listTrustAnchors(filters: TrustAnchorListQuery): Promise<TrustAnchorList>;
2290
- listTrustEntities(filters: TrustEntityListQuery): Promise<TrustEntityList>;
2291
2359
  /** Scan NFC for ISO 18013-5 engagment. */
2292
2360
  nfcReadIsoMdlEngagement(request: NfcScanRequest): Promise<string>;
2293
2361
  /** Cancel previously started NFC scan via `nfc_read_iso_mdl_engagement`. */
@@ -2302,7 +2370,6 @@ export interface OneCore {
2302
2370
  registerVerifierInstance(request: RegisterVerifierInstanceRequest): Promise<RegisterVerifierInstanceResponse>;
2303
2371
  /** Returns the @context of a JSON-LD credential. The result is cached. */
2304
2372
  resolveJsonldContext(url: string): Promise<ResolvedJsonLdContext>;
2305
- resolveTrustEntityByIdentifier(request: ResolveTrustEntitiesRequest): Promise<Record<string, Array<ResolvedTrustEntity>>>;
2306
2373
  /** Discards the restored database and continues using the original. */
2307
2374
  rollbackImport(): Promise<void>;
2308
2375
  /**
@@ -2331,7 +2398,6 @@ export interface OneCore {
2331
2398
  * Follow by calling either `finalizeImport` or `rollbackImport`.
2332
2399
  */
2333
2400
  unpackBackup(password: string, inputPath: string): Promise<Metadata>;
2334
- updateRemoteTrustEntity(request: UpdateRemoteTrustEntityRequest): Promise<void>;
2335
2401
  /** Modifies verifier unit's settings. */
2336
2402
  updateVerifierInstance(id: string, request: UpdateVerifierInstanceRequest): Promise<void>;
2337
2403
  /**