@procivis/react-native-one-core 1.101239.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;
@@ -218,16 +246,6 @@ export interface CreateProofSchemaRequest {
218
246
  /** Set of all claims to request. */
219
247
  proofInputSchemas: Array<CreateProofSchemaInput>;
220
248
  }
221
- export interface CreateRemoteTrustEntityRequest {
222
- didId: string;
223
- trustAnchorId?: string;
224
- name: string;
225
- logo?: string;
226
- termsUrl?: string;
227
- privacyUrl?: string;
228
- website?: string;
229
- role: TrustEntityRole;
230
- }
231
249
  export interface CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest {
232
250
  type: CreateSelfSignedCaRequestIssuerAlternativeNameType;
233
251
  name: string;
@@ -242,31 +260,28 @@ export interface CreateSelfSignedCertificateAuthorityRequestContent {
242
260
  subject: CsrSubject;
243
261
  issuerAlternativeName?: CreateSelfSignedCertificateAuthorityIssuerAlternativeNameRequest;
244
262
  }
245
- export interface CreateTrustAnchorRequest {
246
- name: string;
247
- type: string;
248
- isPublisher?: boolean;
249
- publisherReference?: string;
250
- }
251
- export interface CreateTrustEntityRequest {
252
- name: string;
253
- logo?: string;
254
- website?: string;
255
- termsUrl?: string;
256
- privacyUrl?: string;
257
- role: TrustEntityRole;
258
- trustAnchorId: string;
259
- didId?: string;
260
- type?: TrustEntityType;
261
- identifierId?: string;
262
- content?: string;
263
- organisationId: string;
264
- }
265
263
  export interface CreatedBackup {
266
264
  historyId: string;
267
265
  file: string;
268
266
  unexportable: UnexportableEntities;
269
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
+ }
270
285
  export interface CredentialDetail {
271
286
  id: string;
272
287
  createdDate: string;
@@ -280,7 +295,7 @@ export interface CredentialDetail {
280
295
  /** State representation of the credential in the system. */
281
296
  state: CredentialState;
282
297
  /** Schema of the credential. */
283
- schema: CredentialSchemaListItem;
298
+ schema: CredentialSchemaInfo;
284
299
  claims: Array<Claim>;
285
300
  redirectUri?: string;
286
301
  /**
@@ -290,6 +305,7 @@ export interface CredentialDetail {
290
305
  * this value will be `VERIFIER`.
291
306
  */
292
307
  role: CredentialRole;
308
+ interactionId?: string;
293
309
  /** Scheduled date for credential reactivation. */
294
310
  suspendEndDate?: string;
295
311
  /** Validity details for ISO mdocs. */
@@ -298,6 +314,7 @@ export interface CredentialDetail {
298
314
  protocol: string;
299
315
  /** Country profile associated with the credential. */
300
316
  profile?: string;
317
+ trustInformation?: TrustInformation;
301
318
  }
302
319
  export interface CredentialList {
303
320
  values: Array<CredentialListItem>;
@@ -315,7 +332,7 @@ export interface CredentialListItem {
315
332
  /** State representation of the credential in the system. */
316
333
  state: CredentialState;
317
334
  /** Schema of the credential. */
318
- schema: CredentialSchemaListItem;
335
+ schema: CredentialSchemaInfo;
319
336
  /**
320
337
  * The role the system has in relation to the credential. For example,
321
338
  * if the system received the credential as a wallet this value will
@@ -417,7 +434,7 @@ export interface CredentialQuery {
417
434
  }
418
435
  export interface CredentialQueryFailureHint {
419
436
  reason: CredentialQueryFailureReason;
420
- credentialSchema?: CredentialSchemaDetail;
437
+ credentialSchema?: CredentialSchemaDetailInfo;
421
438
  }
422
439
  export interface CredentialRevocationCheckResponse {
423
440
  credentialId: string;
@@ -434,13 +451,32 @@ export interface CredentialSchemaCodeProperties {
434
451
  type: CredentialSchemaCodeType;
435
452
  }
436
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 {
437
473
  id: string;
438
474
  createdDate: string;
439
475
  lastModified: string;
440
476
  name: string;
441
477
  format: string;
442
478
  revocationMethod?: string;
443
- claims: Array<ClaimSchema>;
479
+ claims: Array<ClaimSchemaInfo>;
444
480
  keyStorageSecurity?: KeyStorageSecurity;
445
481
  schemaId: string;
446
482
  importedSourceUrl: string;
@@ -449,6 +485,31 @@ export interface CredentialSchemaDetail {
449
485
  allowSuspension: boolean;
450
486
  requiresWalletInstanceAttestation: boolean;
451
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;
452
513
  }
453
514
  export interface CredentialSchemaLayoutProperties {
454
515
  background?: CredentialSchemaBackgroundProperties;
@@ -468,14 +529,14 @@ export interface CredentialSchemaListItem {
468
529
  createdDate: string;
469
530
  lastModified: string;
470
531
  name: string;
471
- format: string;
472
- revocationMethod?: string;
532
+ formats: Array<CredentialSchemaFormatResponse>;
473
533
  keyStorageSecurity?: KeyStorageSecurity;
474
- schemaId: string;
475
- layoutType?: LayoutType;
476
534
  importedSourceUrl: string;
535
+ layoutType?: LayoutType;
477
536
  layoutProperties?: CredentialSchemaLayoutProperties;
478
537
  allowSuspension: boolean;
538
+ allowRevocation?: boolean;
539
+ batchSize?: number;
479
540
  requiresWalletInstanceAttestation: boolean;
480
541
  }
481
542
  export interface CredentialSchemaListQuery {
@@ -489,7 +550,10 @@ export interface CredentialSchemaListQuery {
489
550
  exact?: Array<CredentialSchemaListQueryExactColumn>;
490
551
  include?: Array<CredentialSchemaListIncludeEntityType>;
491
552
  schemaId?: string;
553
+ schemaIds?: Array<string>;
492
554
  formats?: Array<string>;
555
+ usesBatchIssuance?: boolean;
556
+ isMultiformatSchema?: boolean;
493
557
  createdDateAfter?: string;
494
558
  createdDateBefore?: string;
495
559
  lastModifiedAfter?: string;
@@ -508,6 +572,15 @@ export interface CredentialSchemaTransactionCode {
508
572
  length: number;
509
573
  description?: string;
510
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
+ }
511
584
  export interface CredentialSet {
512
585
  required: boolean;
513
586
  options: Array<Array<string>>;
@@ -735,17 +808,40 @@ export interface HolderAcceptCredentialRequest {
735
808
  /** User-provided transaction code. */
736
809
  txCode?: string;
737
810
  }
811
+ export interface HolderAcceptCredentialResponse {
812
+ credentialIds: Array<string>;
813
+ }
814
+ export interface HolderRefreshCredentialResponse {
815
+ credentialIds: Array<string>;
816
+ }
738
817
  export interface HolderRegisterWalletUnitRequest {
739
818
  /** The wallet unit's organization. */
740
819
  organisationId: string;
741
- /** Reference the `walletProvider` configuration. */
820
+ /** Wallet Provider details. */
742
821
  walletProvider: WalletProvider;
822
+ /**
823
+ * Choose a key type and the system will generate a key to use for
824
+ * registration.
825
+ */
743
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;
744
833
  }
745
834
  export interface HolderRegisterWalletUnitResponse {
746
835
  id: string;
747
836
  status: WalletUnitStatus;
748
837
  }
838
+ export interface HolderWalletInstanceDetail {
839
+ id: string;
840
+ trustedRpRequired: boolean;
841
+ walletProviderUrl: string;
842
+ walletProviderName: string;
843
+ authenticationKeyType: string;
844
+ }
749
845
  export interface HolderWalletUnit {
750
846
  id: string;
751
847
  createdDate: string;
@@ -756,9 +852,23 @@ export interface HolderWalletUnit {
756
852
  walletProviderName: string;
757
853
  status: WalletUnitStatus;
758
854
  authenticationKey?: KeyListItem;
855
+ trustedRpRequired: boolean;
759
856
  }
760
857
  export interface HolderWalletUnitUpdateRequest {
761
- 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;
762
872
  }
763
873
  export interface IdentifierDetail {
764
874
  id: string;
@@ -829,6 +939,11 @@ export interface ImportCredentialSchemaClaimSchema {
829
939
  datatype: string;
830
940
  array?: boolean;
831
941
  claims?: Array<ImportCredentialSchemaClaimSchema>;
942
+ mappings?: Array<CredentialClaimSchemaMapping>;
943
+ }
944
+ export interface ImportCredentialSchemaFormat {
945
+ format: string;
946
+ schemaId: string;
832
947
  }
833
948
  export interface ImportCredentialSchemaLayoutProperties {
834
949
  background?: CredentialSchemaBackgroundProperties;
@@ -847,18 +962,19 @@ export interface ImportCredentialSchemaRequestSchema {
847
962
  createdDate: string;
848
963
  lastModified: string;
849
964
  name: string;
850
- format: string;
851
- revocationMethod: string;
965
+ formats: Array<ImportCredentialSchemaFormat>;
852
966
  organisationId: string;
853
967
  claims: Array<ImportCredentialSchemaClaimSchema>;
854
968
  keyStorageSecurity?: KeyStorageSecurity;
855
- schemaId: string;
856
969
  importedSourceUrl: string;
857
970
  layoutType?: LayoutType;
858
971
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
859
972
  allowSuspension?: boolean;
860
973
  requiresWalletInstanceAttestation?: boolean;
861
974
  transactionCode?: ImportCredentialSchemaTransactionCode;
975
+ allowRevocation?: boolean;
976
+ batchSize?: number;
977
+ translations?: CredentialSchemaTranslations;
862
978
  }
863
979
  export interface ImportCredentialSchemaTransactionCode {
864
980
  type: TransactionCodeType;
@@ -1001,6 +1117,28 @@ export interface OpenId4vciTxCode {
1001
1117
  */
1002
1118
  description?: string;
1003
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
+ }
1004
1142
  export interface PeripheralDiscoveryData {
1005
1143
  deviceAddress: string;
1006
1144
  localDeviceName?: string;
@@ -1046,7 +1184,7 @@ export interface PresentationDefinitionV2 {
1046
1184
  }
1047
1185
  export interface PresentationDefinitionV2Claim {
1048
1186
  path: string;
1049
- schema: ClaimSchema;
1187
+ schema: ClaimSchemaInfo;
1050
1188
  value: PresentationDefinitionV2ClaimValue;
1051
1189
  userSelection: boolean;
1052
1190
  required: boolean;
@@ -1061,7 +1199,7 @@ export interface PresentationDefinitionV2Credential {
1061
1199
  issuerCertificate?: CertificateDetail;
1062
1200
  holder?: IdentifierListItem;
1063
1201
  state: CredentialState;
1064
- schema: CredentialSchemaListItem;
1202
+ schema: CredentialSchemaInfo;
1065
1203
  claims: Array<PresentationDefinitionV2Claim>;
1066
1204
  redirectUri?: string;
1067
1205
  role: CredentialRole;
@@ -1137,6 +1275,8 @@ export interface ProofDetail {
1137
1275
  claimsRemovedAt?: string;
1138
1276
  /** Country profile associated with this request. */
1139
1277
  profile?: string;
1278
+ /** Trust information of the verifier, if any. */
1279
+ trustInformation?: TrustInformation;
1140
1280
  }
1141
1281
  export interface ProofInput {
1142
1282
  /** Set of claims asserted by the shared credential. */
@@ -1144,11 +1284,11 @@ export interface ProofInput {
1144
1284
  /** Shared credential metadata. */
1145
1285
  credential?: CredentialDetail;
1146
1286
  /** Credential schema metadata. */
1147
- credentialSchema: CredentialSchemaListItem;
1287
+ credentialSchema: CredentialSchemaInfo;
1148
1288
  }
1149
1289
  export interface ProofInputSchema {
1150
1290
  claimSchemas: Array<ProofClaimSchema>;
1151
- credentialSchema: CredentialSchemaListItem;
1291
+ credentialSchema: CredentialSchemaInfo;
1152
1292
  }
1153
1293
  export interface ProofList {
1154
1294
  values: Array<ProofListItem>;
@@ -1326,39 +1466,20 @@ export interface RegisterVerifierInstanceRequest {
1326
1466
  verifierProviderUrl: string;
1327
1467
  /** Reference a configured `verifierProvider` instance. */
1328
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;
1329
1476
  }
1330
1477
  export interface RegisterVerifierInstanceResponse {
1331
1478
  id: string;
1332
1479
  }
1333
- export interface RemoteTrustEntityDetail {
1334
- id: string;
1335
- organisationId?: string;
1336
- createdDate: string;
1337
- lastModified: string;
1338
- name: string;
1339
- logo?: string;
1340
- website?: string;
1341
- termsUrl?: string;
1342
- privacyUrl?: string;
1343
- role: TrustEntityRole;
1344
- trustAnchor: TrustAnchorDetail;
1345
- did?: DidListItem;
1346
- state: TrustEntityState;
1347
- }
1348
- export interface ResolveTrustEntitiesRequest {
1349
- identifiers: Array<ResolveTrustEntityRequest>;
1350
- }
1351
- export interface ResolveTrustEntityRequest {
1352
- id: string;
1353
- certificateId?: string;
1354
- }
1355
1480
  export interface ResolvedJsonLdContext {
1356
1481
  context: string;
1357
1482
  }
1358
- export interface ResolvedTrustEntity {
1359
- trustEntity: TrustEntityDetail;
1360
- certificateIds?: Array<string>;
1361
- }
1362
1483
  export interface ServiceDescription {
1363
1484
  uuid: string;
1364
1485
  advertise: boolean;
@@ -1380,45 +1501,8 @@ export interface ShareProofResponse {
1380
1501
  url: string;
1381
1502
  expiresAt?: string;
1382
1503
  }
1383
- export interface TrustAnchorDetail {
1384
- id: string;
1385
- name: string;
1386
- createdDate: string;
1387
- lastModified: string;
1388
- type: string;
1389
- isPublisher: boolean;
1390
- publisherReference: string;
1391
- }
1392
- export interface TrustAnchorList {
1393
- values: Array<TrustAnchorListItem>;
1394
- totalPages: number;
1395
- totalItems: number;
1396
- }
1397
- export interface TrustAnchorListItem {
1398
- id: string;
1399
- name: string;
1400
- createdDate: string;
1401
- lastModified: string;
1402
- type: string;
1403
- isPublisher: boolean;
1404
- publisherReference: string;
1405
- entities: number;
1406
- }
1407
- export interface TrustAnchorListQuery {
1408
- page: number;
1409
- pageSize: number;
1410
- sort?: SortableTrustAnchorColumn;
1411
- sortDirection?: SortDirection;
1412
- name?: string;
1413
- isPublisher?: boolean;
1414
- type?: string;
1415
- exact?: Array<TrustAnchorListQueryExactColumn>;
1416
- createdDateAfter?: string;
1417
- createdDateBefore?: string;
1418
- lastModifiedAfter?: string;
1419
- lastModifiedBefore?: string;
1420
- }
1421
1504
  export interface TrustCollectionInfo {
1505
+ /** When true, the wallet is subscribed to this trust collection. */
1422
1506
  selected: boolean;
1423
1507
  id: string;
1424
1508
  name: string;
@@ -1427,77 +1511,13 @@ export interface TrustCollectionInfo {
1427
1511
  description: Array<DisplayName>;
1428
1512
  }
1429
1513
  export interface TrustCollections {
1514
+ /** Trust collections available from the Wallet Provider. */
1430
1515
  trustCollections: Array<TrustCollectionInfo>;
1431
1516
  }
1432
- export interface TrustEntityCertificate {
1433
- state: CertificateState;
1434
- publicKey: string;
1435
- commonName?: string;
1436
- serialNumber: string;
1437
- notBefore: string;
1438
- notAfter: string;
1439
- issuer: string;
1440
- subject: string;
1441
- fingerprint: string;
1442
- extensions: Array<CertificateX509Extension>;
1443
- }
1444
- export interface TrustEntityDetail {
1445
- id: string;
1446
- organisationId?: string;
1447
- createdDate: string;
1448
- lastModified: string;
1449
- name: string;
1450
- logo?: string;
1451
- website?: string;
1452
- termsUrl?: string;
1453
- privacyUrl?: string;
1454
- role: TrustEntityRole;
1455
- trustAnchor: TrustAnchorDetail;
1456
- did?: DidListItem;
1457
- state: TrustEntityState;
1458
- entityKey: string;
1459
- type: TrustEntityType;
1460
- identifier?: IdentifierListItem;
1461
- content?: string;
1462
- ca?: TrustEntityCertificate;
1463
- }
1464
- export interface TrustEntityList {
1465
- values: Array<TrustEntityListItem>;
1466
- totalPages: number;
1467
- totalItems: number;
1468
- }
1469
- export interface TrustEntityListItem {
1470
- id: string;
1471
- name: string;
1472
- createdDate: string;
1473
- lastModified: string;
1474
- logo?: string;
1475
- website?: string;
1476
- termsUrl?: string;
1477
- state: TrustEntityState;
1478
- privacyUrl?: string;
1479
- role: TrustEntityRole;
1480
- trustAnchor: TrustAnchorDetail;
1481
- did?: DidListItem;
1482
- }
1483
- export interface TrustEntityListQuery {
1484
- page: number;
1485
- pageSize: number;
1486
- sort?: SortableTrustEntityColumn;
1487
- sortDirection?: SortDirection;
1517
+ export interface TrustInformation {
1518
+ receivedAt: string;
1488
1519
  name?: string;
1489
- role?: TrustEntityRole;
1490
- trustAnchor?: string;
1491
- didId?: string;
1492
- organisationId?: string;
1493
- types?: Array<TrustEntityType>;
1494
- entityKey?: string;
1495
- states?: Array<TrustEntityState>;
1496
- exact?: Array<TrustEntityListQueryExactColumn>;
1497
- createdDateAfter?: string;
1498
- createdDateBefore?: string;
1499
- lastModifiedAfter?: string;
1500
- lastModifiedBefore?: string;
1520
+ result: TrustResolutionResult;
1501
1521
  }
1502
1522
  export interface TrustInformationDetail {
1503
1523
  /**
@@ -1506,6 +1526,9 @@ export interface TrustInformationDetail {
1506
1526
  */
1507
1527
  eudiEcosystem?: EudiTrustInformation;
1508
1528
  }
1529
+ export interface TrustResolutionMetadata {
1530
+ result: TrustResolutionResult;
1531
+ }
1509
1532
  export interface UnexportableEntities {
1510
1533
  credentials: Array<CredentialDetail>;
1511
1534
  keys: Array<KeyListItem>;
@@ -1516,18 +1539,22 @@ export interface UnexportableEntities {
1516
1539
  totalDids: number;
1517
1540
  totalIdentifiers: number;
1518
1541
  }
1519
- export interface UpdateRemoteTrustEntityRequest {
1520
- didId: string;
1521
- action?: TrustEntityUpdateAction;
1522
- name?: string;
1523
- logo?: string | null;
1524
- website?: string | null;
1525
- termsUrl?: string | null;
1526
- privacyUrl?: string | null;
1527
- role?: TrustEntityRole;
1528
- }
1529
1542
  export interface UpdateVerifierInstanceRequest {
1530
- 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;
1531
1558
  }
1532
1559
  export interface UpsertOrganisationRequest {
1533
1560
  /** Unique identifier of the organization to create or update. */
@@ -1538,8 +1565,22 @@ export interface UpsertOrganisationRequest {
1538
1565
  walletProvider?: string | null;
1539
1566
  /** Wallet Provider use only. */
1540
1567
  walletProviderIssuer?: string | null;
1568
+ /**
1569
+ * The parent organization this organization inherits policy-level
1570
+ * configuration from, if any.
1571
+ */
1541
1572
  parentOrganisation?: string | null;
1542
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;
1583
+ }
1543
1584
  export interface Version {
1544
1585
  target: string;
1545
1586
  buildTime: string;
@@ -1550,9 +1591,23 @@ export interface Version {
1550
1591
  pipelineId: string;
1551
1592
  }
1552
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
+ */
1553
1598
  url: string;
1599
+ /** Choose the Wallet Provider implementation. */
1554
1600
  type: WalletProviderType;
1555
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
+ }
1556
1611
  export interface WalletRelyingPartyMetadata {
1557
1612
  name: string;
1558
1613
  }
@@ -1618,7 +1673,9 @@ export declare enum CacheType {
1618
1673
  X509_CRL = "X509_CRL",
1619
1674
  ANDROID_ATTESTATION_CRL = "ANDROID_ATTESTATION_CRL",
1620
1675
  OPEN_ID_METADATA_HOLDER = "OPEN_ID_METADATA_HOLDER",
1621
- OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER"
1676
+ OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER",
1677
+ WALLET_PROVIDER_METADATA = "WALLET_PROVIDER_METADATA",
1678
+ REMOTE_TRUST_COLLECTION = "REMOTE_TRUST_COLLECTION"
1622
1679
  }
1623
1680
  export declare enum CertificateRole {
1624
1681
  AUTHENTICATION = "AUTHENTICATION",
@@ -1685,7 +1742,7 @@ export declare enum CreateSelfSignedCaRequestIssuerAlternativeNameType {
1685
1742
  }
1686
1743
  export declare enum CredentialListIncludeEntityType {
1687
1744
  LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1688
- CREDENTIAL = "CREDENTIAL"
1745
+ TRANSLATIONS = "TRANSLATIONS"
1689
1746
  }
1690
1747
  export declare enum CredentialListQueryExactColumn {
1691
1748
  NAME = "NAME"
@@ -1711,7 +1768,8 @@ export declare enum CredentialSchemaCodeType {
1711
1768
  QR_CODE = "QR_CODE"
1712
1769
  }
1713
1770
  export declare enum CredentialSchemaListIncludeEntityType {
1714
- LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES"
1771
+ LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1772
+ TRANSLATIONS = "TRANSLATIONS"
1715
1773
  }
1716
1774
  export declare enum CredentialSchemaListQueryExactColumn {
1717
1775
  NAME = "NAME",
@@ -1806,7 +1864,8 @@ export declare enum HistoryAction {
1806
1864
  DELIVERED = "DELIVERED",
1807
1865
  WRP_AC_RECEIVED = "WRP_AC_RECEIVED",
1808
1866
  WRP_RC_RECEIVED = "WRP_RC_RECEIVED",
1809
- WRP_NR_RECEIVED = "WRP_NR_RECEIVED"
1867
+ WRP_NR_RECEIVED = "WRP_NR_RECEIVED",
1868
+ TRUST_RESOLVED = "TRUST_RESOLVED"
1810
1869
  }
1811
1870
  export declare enum HistoryEntityType {
1812
1871
  KEY = "KEY",
@@ -1819,8 +1878,6 @@ export declare enum HistoryEntityType {
1819
1878
  PROOF_SCHEMA = "PROOF_SCHEMA",
1820
1879
  ORGANISATION = "ORGANISATION",
1821
1880
  BACKUP = "BACKUP",
1822
- TRUST_ANCHOR = "TRUST_ANCHOR",
1823
- TRUST_ENTITY = "TRUST_ENTITY",
1824
1881
  WALLET_UNIT = "WALLET_UNIT",
1825
1882
  USER = "USER",
1826
1883
  PROVIDER = "PROVIDER",
@@ -1850,6 +1907,9 @@ export type HistoryMetadata = {
1850
1907
  } | {
1851
1908
  type_: "WALLET_RELYING_PARTY";
1852
1909
  value: WalletRelyingPartyMetadata;
1910
+ } | {
1911
+ type_: "TRUST_RESOLUTION";
1912
+ value: TrustResolutionMetadata;
1853
1913
  };
1854
1914
  export declare enum HistorySearchType {
1855
1915
  ALL = "ALL",
@@ -2026,49 +2086,14 @@ export declare enum SortableProofSchemaColumn {
2026
2086
  NAME = "NAME",
2027
2087
  CREATED_DATE = "CREATED_DATE"
2028
2088
  }
2029
- export declare enum SortableTrustAnchorColumn {
2030
- NAME = "NAME",
2031
- CREATED_DATE = "CREATED_DATE",
2032
- TYPE = "TYPE"
2033
- }
2034
- export declare enum SortableTrustEntityColumn {
2035
- NAME = "NAME",
2036
- ROLE = "ROLE",
2037
- LAST_MODIFIED = "LAST_MODIFIED",
2038
- STATE = "STATE"
2039
- }
2040
2089
  export declare enum TransactionCodeType {
2041
2090
  NUMERIC = "NUMERIC",
2042
2091
  ALPHANUMERIC = "ALPHANUMERIC"
2043
2092
  }
2044
- export declare enum TrustAnchorListQueryExactColumn {
2045
- NAME = "NAME",
2046
- TYPE = "TYPE"
2047
- }
2048
- export declare enum TrustEntityListQueryExactColumn {
2049
- NAME = "NAME"
2050
- }
2051
- export declare enum TrustEntityRole {
2052
- ISSUER = "ISSUER",
2053
- VERIFIER = "VERIFIER",
2054
- BOTH = "BOTH"
2055
- }
2056
- export declare enum TrustEntityState {
2057
- ACTIVE = "ACTIVE",
2058
- REMOVED = "REMOVED",
2059
- WITHDRAWN = "WITHDRAWN",
2060
- REMOVED_AND_WITHDRAWN = "REMOVED_AND_WITHDRAWN"
2061
- }
2062
- export declare enum TrustEntityType {
2063
- DID = "DID",
2064
- /** certificate authority */
2065
- CA = "CA"
2066
- }
2067
- export declare enum TrustEntityUpdateAction {
2068
- ADMIN_ACTIVATE = "ADMIN_ACTIVATE",
2069
- ACTIVATE = "ACTIVATE",
2070
- WITHDRAW = "WITHDRAW",
2071
- REMOVE = "REMOVE"
2093
+ export declare enum TrustResolutionResult {
2094
+ TRUSTED = "TRUSTED",
2095
+ UNTRUSTED = "UNTRUSTED",
2096
+ UNKNOWN = "UNKNOWN"
2072
2097
  }
2073
2098
  export declare enum WalletProviderType {
2074
2099
  PROCIVIS_ONE = "PROCIVIS_ONE"
@@ -2193,6 +2218,8 @@ export interface OneCore {
2193
2218
  continueIssuance(url: string): Promise<ContinueIssuanceResponse>;
2194
2219
  /** Creates a backup of the current database and writes it to a file. */
2195
2220
  createBackup(password: string, outputPath: string): Promise<CreatedBackup>;
2221
+ /** Creates a credential schema */
2222
+ createCredentialSchema(request: CreateCredentialSchemaRequest): Promise<string>;
2196
2223
  /** Deprecated. Use the `createIdentifier` method. */
2197
2224
  createDid(request: CreateDidRequest): Promise<string>;
2198
2225
  /** Creates a new identifier. */
@@ -2212,9 +2239,6 @@ export interface OneCore {
2212
2239
  * before building a proof schema that includes their claims.
2213
2240
  */
2214
2241
  createProofSchema(request: CreateProofSchemaRequest): Promise<string>;
2215
- createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<string>;
2216
- createTrustAnchor(anchor: CreateTrustAnchorRequest): Promise<string>;
2217
- createTrustEntity(request: CreateTrustEntityRequest): Promise<string>;
2218
2242
  /**
2219
2243
  * Deletes the system cache. See the
2220
2244
  * [Caching](https://docs.procivis.ch/configure/caching#cached-entities)
@@ -2232,7 +2256,6 @@ export interface OneCore {
2232
2256
  deleteProof(proofId: string): Promise<void>;
2233
2257
  deleteProofClaims(proofId: string): Promise<void>;
2234
2258
  deleteProofSchema(proofSchemaId: string): Promise<void>;
2235
- deleteTrustAnchor(anchorId: string): Promise<void>;
2236
2259
  /**
2237
2260
  * Commits to the restored database, replacing the original. The old
2238
2261
  * database is deleted.
@@ -2257,6 +2280,8 @@ export interface OneCore {
2257
2280
  /** Returns details on a single event. */
2258
2281
  getHistoryEntry(historyId: string): Promise<HistoryListItem>;
2259
2282
  getIdentifier(id: string): Promise<IdentifierDetail>;
2283
+ /** Returns details of an existing organization. */
2284
+ getOrganisation(id: string): Promise<OrganisationDetail>;
2260
2285
  getPresentationDefinition(proofId: string): Promise<PresentationDefinition>;
2261
2286
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2262
2287
  /** Returns detailed information about a proof request. */
@@ -2267,10 +2292,6 @@ export interface OneCore {
2267
2292
  * proof request.
2268
2293
  */
2269
2294
  getProofTrustInformation(proofId: string): Promise<TrustInformationDetail>;
2270
- getRemoteTrustEntity(didId: string): Promise<RemoteTrustEntityDetail>;
2271
- getTrustAnchor(trustAnchorId: string): Promise<TrustAnchorDetail>;
2272
- getTrustEntity(trustEntityId: string): Promise<TrustEntityDetail>;
2273
- getTrustEntityByDid(didId: string): Promise<TrustEntityDetail>;
2274
2295
  /** Returns trust collections curated by the Verifier Provider. */
2275
2296
  getVerifierInstanceTrustCollections(id: string): Promise<TrustCollections>;
2276
2297
  /**
@@ -2284,11 +2305,13 @@ export interface OneCore {
2284
2305
  * identifier that matches issuer's restrictions. Alternatively,
2285
2306
  * you can specify an existing identifier.
2286
2307
  */
2287
- holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<string>;
2308
+ holderAcceptCredential(request: HolderAcceptCredentialRequest): Promise<HolderAcceptCredentialResponse>;
2288
2309
  /** Returns wallet registration details from the Wallet Provider. */
2289
2310
  holderGetWalletUnit(id: string): Promise<HolderWalletUnit>;
2290
2311
  /** Returns trust collections curated by the Wallet Provider. */
2291
2312
  holderGetWalletUnitTrustCollections(id: string): Promise<TrustCollections>;
2313
+ /** Receive a new credential batch */
2314
+ holderRefreshCredential(interactionId: string): Promise<HolderRefreshCredentialResponse>;
2292
2315
  /** Registers the wallet unit with a Wallet Provider. */
2293
2316
  holderRegisterWalletUnit(request: HolderRegisterWalletUnitRequest): Promise<HolderRegisterWalletUnitResponse>;
2294
2317
  /** Rejects an offered credential. */
@@ -2333,8 +2356,6 @@ export interface OneCore {
2333
2356
  listProofSchemas(filter: ProofSchemaListQuery): Promise<ProofSchemaList>;
2334
2357
  /** Returns a filterable list of proof requests. */
2335
2358
  listProofs(query: ProofListQuery): Promise<ProofList>;
2336
- listTrustAnchors(filters: TrustAnchorListQuery): Promise<TrustAnchorList>;
2337
- listTrustEntities(filters: TrustEntityListQuery): Promise<TrustEntityList>;
2338
2359
  /** Scan NFC for ISO 18013-5 engagment. */
2339
2360
  nfcReadIsoMdlEngagement(request: NfcScanRequest): Promise<string>;
2340
2361
  /** Cancel previously started NFC scan via `nfc_read_iso_mdl_engagement`. */
@@ -2349,7 +2370,6 @@ export interface OneCore {
2349
2370
  registerVerifierInstance(request: RegisterVerifierInstanceRequest): Promise<RegisterVerifierInstanceResponse>;
2350
2371
  /** Returns the @context of a JSON-LD credential. The result is cached. */
2351
2372
  resolveJsonldContext(url: string): Promise<ResolvedJsonLdContext>;
2352
- resolveTrustEntityByIdentifier(request: ResolveTrustEntitiesRequest): Promise<Record<string, Array<ResolvedTrustEntity>>>;
2353
2373
  /** Discards the restored database and continues using the original. */
2354
2374
  rollbackImport(): Promise<void>;
2355
2375
  /**
@@ -2378,7 +2398,6 @@ export interface OneCore {
2378
2398
  * Follow by calling either `finalizeImport` or `rollbackImport`.
2379
2399
  */
2380
2400
  unpackBackup(password: string, inputPath: string): Promise<Metadata>;
2381
- updateRemoteTrustEntity(request: UpdateRemoteTrustEntityRequest): Promise<void>;
2382
2401
  /** Modifies verifier unit's settings. */
2383
2402
  updateVerifierInstance(id: string, request: UpdateVerifierInstanceRequest): Promise<void>;
2384
2403
  /**