@procivis/react-native-one-core 1.101239.0 → 1.109666.1

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,11 @@ export interface CredentialDetail {
298
314
  protocol: string;
299
315
  /** Country profile associated with the credential. */
300
316
  profile?: string;
317
+ trustInformation?: TrustInformation;
318
+ consumedAt?: string;
319
+ type: CredentialType;
320
+ remainingBatchItemCount?: number;
321
+ parentId?: string;
301
322
  }
302
323
  export interface CredentialList {
303
324
  values: Array<CredentialListItem>;
@@ -315,7 +336,7 @@ export interface CredentialListItem {
315
336
  /** State representation of the credential in the system. */
316
337
  state: CredentialState;
317
338
  /** Schema of the credential. */
318
- schema: CredentialSchemaListItem;
339
+ schema: CredentialSchemaInfo;
319
340
  /**
320
341
  * The role the system has in relation to the credential. For example,
321
342
  * if the system received the credential as a wallet this value will
@@ -329,6 +350,9 @@ export interface CredentialListItem {
329
350
  protocol: string;
330
351
  /** Country profile associated with the credential. */
331
352
  profile?: string;
353
+ consumedAt?: string;
354
+ type: CredentialType;
355
+ parentId?: string;
332
356
  }
333
357
  export interface CredentialListQuery {
334
358
  /** Page number to retrieve (0-based indexing). */
@@ -361,8 +385,12 @@ export interface CredentialListQuery {
361
385
  roles?: Array<CredentialRole>;
362
386
  /** Filter by one or more UUIDs. */
363
387
  ids?: Array<string>;
388
+ /** Filter by batch parent UUID. */
389
+ parentId?: string;
364
390
  /** Filter by one or more credential states. */
365
391
  states?: Array<CredentialState>;
392
+ /** Filter by one or more credential types. */
393
+ types?: Array<CredentialType>;
366
394
  /**
367
395
  * Additional fields to include in response objects. Omitting
368
396
  * this keeps responses shorter.
@@ -417,7 +445,7 @@ export interface CredentialQuery {
417
445
  }
418
446
  export interface CredentialQueryFailureHint {
419
447
  reason: CredentialQueryFailureReason;
420
- credentialSchema?: CredentialSchemaDetail;
448
+ credentialSchema?: CredentialSchemaDetailInfo;
421
449
  }
422
450
  export interface CredentialRevocationCheckResponse {
423
451
  credentialId: string;
@@ -434,13 +462,32 @@ export interface CredentialSchemaCodeProperties {
434
462
  type: CredentialSchemaCodeType;
435
463
  }
436
464
  export interface CredentialSchemaDetail {
465
+ id: string;
466
+ createdDate: string;
467
+ lastModified: string;
468
+ name: string;
469
+ formats: Array<CredentialSchemaFormatResponse>;
470
+ organisationId: string;
471
+ claims: Array<ClaimSchema>;
472
+ keyStorageSecurity?: KeyStorageSecurity;
473
+ importedSourceUrl: string;
474
+ layoutType?: LayoutType;
475
+ layoutProperties?: CredentialSchemaLayoutProperties;
476
+ allowSuspension: boolean;
477
+ allowRevocation?: boolean;
478
+ batchSize?: number;
479
+ requiresWalletInstanceAttestation: boolean;
480
+ transactionCode?: CredentialSchemaTransactionCode;
481
+ translations: CredentialSchemaTranslations;
482
+ }
483
+ export interface CredentialSchemaDetailInfo {
437
484
  id: string;
438
485
  createdDate: string;
439
486
  lastModified: string;
440
487
  name: string;
441
488
  format: string;
442
489
  revocationMethod?: string;
443
- claims: Array<ClaimSchema>;
490
+ claims: Array<ClaimSchemaInfo>;
444
491
  keyStorageSecurity?: KeyStorageSecurity;
445
492
  schemaId: string;
446
493
  importedSourceUrl: string;
@@ -449,6 +496,31 @@ export interface CredentialSchemaDetail {
449
496
  allowSuspension: boolean;
450
497
  requiresWalletInstanceAttestation: boolean;
451
498
  transactionCode?: CredentialSchemaTransactionCode;
499
+ translations: CredentialSchemaTranslations;
500
+ }
501
+ export interface CredentialSchemaFormatRequest {
502
+ format: string;
503
+ schemaId?: string;
504
+ }
505
+ export interface CredentialSchemaFormatResponse {
506
+ format: string;
507
+ schemaId: string;
508
+ }
509
+ export interface CredentialSchemaInfo {
510
+ id: string;
511
+ createdDate: string;
512
+ lastModified: string;
513
+ name: string;
514
+ format: string;
515
+ revocationMethod?: string;
516
+ keyStorageSecurity?: KeyStorageSecurity;
517
+ schemaId: string;
518
+ layoutType?: LayoutType;
519
+ importedSourceUrl: string;
520
+ layoutProperties?: CredentialSchemaLayoutProperties;
521
+ allowSuspension: boolean;
522
+ requiresWalletInstanceAttestation: boolean;
523
+ translations?: CredentialSchemaTranslations;
452
524
  }
453
525
  export interface CredentialSchemaLayoutProperties {
454
526
  background?: CredentialSchemaBackgroundProperties;
@@ -468,14 +540,14 @@ export interface CredentialSchemaListItem {
468
540
  createdDate: string;
469
541
  lastModified: string;
470
542
  name: string;
471
- format: string;
472
- revocationMethod?: string;
543
+ formats: Array<CredentialSchemaFormatResponse>;
473
544
  keyStorageSecurity?: KeyStorageSecurity;
474
- schemaId: string;
475
- layoutType?: LayoutType;
476
545
  importedSourceUrl: string;
546
+ layoutType?: LayoutType;
477
547
  layoutProperties?: CredentialSchemaLayoutProperties;
478
548
  allowSuspension: boolean;
549
+ allowRevocation?: boolean;
550
+ batchSize?: number;
479
551
  requiresWalletInstanceAttestation: boolean;
480
552
  }
481
553
  export interface CredentialSchemaListQuery {
@@ -489,7 +561,10 @@ export interface CredentialSchemaListQuery {
489
561
  exact?: Array<CredentialSchemaListQueryExactColumn>;
490
562
  include?: Array<CredentialSchemaListIncludeEntityType>;
491
563
  schemaId?: string;
564
+ schemaIds?: Array<string>;
492
565
  formats?: Array<string>;
566
+ usesBatchIssuance?: boolean;
567
+ isMultiformatSchema?: boolean;
493
568
  createdDateAfter?: string;
494
569
  createdDateBefore?: string;
495
570
  lastModifiedAfter?: string;
@@ -508,6 +583,15 @@ export interface CredentialSchemaTransactionCode {
508
583
  length: number;
509
584
  description?: string;
510
585
  }
586
+ export interface CredentialSchemaTransactionCodeRequest {
587
+ type: TransactionCodeType;
588
+ length: number;
589
+ description?: string;
590
+ }
591
+ export interface CredentialSchemaTranslations {
592
+ name: Record<string, string>;
593
+ description?: Record<string, string>;
594
+ }
511
595
  export interface CredentialSet {
512
596
  required: boolean;
513
597
  options: Array<Array<string>>;
@@ -735,17 +819,37 @@ export interface HolderAcceptCredentialRequest {
735
819
  /** User-provided transaction code. */
736
820
  txCode?: string;
737
821
  }
822
+ export interface HolderRefreshCredentialResponse {
823
+ credentialIds: Array<string>;
824
+ }
738
825
  export interface HolderRegisterWalletUnitRequest {
739
826
  /** The wallet unit's organization. */
740
827
  organisationId: string;
741
- /** Reference the `walletProvider` configuration. */
828
+ /** Wallet Provider details. */
742
829
  walletProvider: WalletProvider;
830
+ /**
831
+ * Choose a key type and the system will generate a key to use for
832
+ * registration.
833
+ */
743
834
  keyType: string;
835
+ /**
836
+ * When true, the wallet will only interact with entities that can be
837
+ * verified as trusted. Requires the Wallet Provider to have the
838
+ * `trustEcosystemsEnabled` feature flag enabled.
839
+ */
840
+ trustedRpRequired: boolean;
744
841
  }
745
842
  export interface HolderRegisterWalletUnitResponse {
746
843
  id: string;
747
844
  status: WalletUnitStatus;
748
845
  }
846
+ export interface HolderWalletInstanceDetail {
847
+ id: string;
848
+ trustedRpRequired: boolean;
849
+ walletProviderUrl: string;
850
+ walletProviderName: string;
851
+ authenticationKeyType: string;
852
+ }
749
853
  export interface HolderWalletUnit {
750
854
  id: string;
751
855
  createdDate: string;
@@ -756,9 +860,23 @@ export interface HolderWalletUnit {
756
860
  walletProviderName: string;
757
861
  status: WalletUnitStatus;
758
862
  authenticationKey?: KeyListItem;
863
+ trustedRpRequired: boolean;
759
864
  }
760
865
  export interface HolderWalletUnitUpdateRequest {
761
- trustCollections: Array<string>;
866
+ /**
867
+ * The trust collections the wallet subscribes to, selected from those
868
+ * made available by the Wallet Provider. The wallet will evaluate trust
869
+ * against the lists contained in these collections. To keep subscribed
870
+ * collections in sync with the Wallet Provider, run the
871
+ * `TRUST_COLLECTION_SYNC` task.
872
+ */
873
+ trustCollections?: Array<string>;
874
+ /**
875
+ * When true, the wallet will only interact with entities that can be
876
+ * verified as trusted. Requires the Wallet Provider to have the
877
+ * `trustEcosystemsEnabled` feature flag enabled.
878
+ */
879
+ trustedRpRequired?: boolean;
762
880
  }
763
881
  export interface IdentifierDetail {
764
882
  id: string;
@@ -829,6 +947,11 @@ export interface ImportCredentialSchemaClaimSchema {
829
947
  datatype: string;
830
948
  array?: boolean;
831
949
  claims?: Array<ImportCredentialSchemaClaimSchema>;
950
+ mappings?: Array<CredentialClaimSchemaMapping>;
951
+ }
952
+ export interface ImportCredentialSchemaFormat {
953
+ format: string;
954
+ schemaId: string;
832
955
  }
833
956
  export interface ImportCredentialSchemaLayoutProperties {
834
957
  background?: CredentialSchemaBackgroundProperties;
@@ -847,18 +970,19 @@ export interface ImportCredentialSchemaRequestSchema {
847
970
  createdDate: string;
848
971
  lastModified: string;
849
972
  name: string;
850
- format: string;
851
- revocationMethod: string;
973
+ formats: Array<ImportCredentialSchemaFormat>;
852
974
  organisationId: string;
853
975
  claims: Array<ImportCredentialSchemaClaimSchema>;
854
976
  keyStorageSecurity?: KeyStorageSecurity;
855
- schemaId: string;
856
977
  importedSourceUrl: string;
857
978
  layoutType?: LayoutType;
858
979
  layoutProperties?: ImportCredentialSchemaLayoutProperties;
859
980
  allowSuspension?: boolean;
860
981
  requiresWalletInstanceAttestation?: boolean;
861
982
  transactionCode?: ImportCredentialSchemaTransactionCode;
983
+ allowRevocation?: boolean;
984
+ batchSize?: number;
985
+ translations?: CredentialSchemaTranslations;
862
986
  }
863
987
  export interface ImportCredentialSchemaTransactionCode {
864
988
  type: TransactionCodeType;
@@ -1001,6 +1125,28 @@ export interface OpenId4vciTxCode {
1001
1125
  */
1002
1126
  description?: string;
1003
1127
  }
1128
+ export interface OrganisationDetail {
1129
+ id: string;
1130
+ createdDate: string;
1131
+ lastModified: string;
1132
+ deactivatedAt?: string;
1133
+ /**
1134
+ * The parent organization this organization inherits policy-level
1135
+ * configuration from, if any.
1136
+ */
1137
+ parentOrganisation?: string;
1138
+ walletProvider?: WalletProviderDetail;
1139
+ /**
1140
+ * Wallet registration details for this organization's Business
1141
+ * Wallet.
1142
+ */
1143
+ walletInstance?: HolderWalletInstanceDetail;
1144
+ /**
1145
+ * Wallet registration details for this organization's Business
1146
+ * Wallet.
1147
+ */
1148
+ verifierInstance?: VerifierInstanceDetail;
1149
+ }
1004
1150
  export interface PeripheralDiscoveryData {
1005
1151
  deviceAddress: string;
1006
1152
  localDeviceName?: string;
@@ -1046,7 +1192,7 @@ export interface PresentationDefinitionV2 {
1046
1192
  }
1047
1193
  export interface PresentationDefinitionV2Claim {
1048
1194
  path: string;
1049
- schema: ClaimSchema;
1195
+ schema: ClaimSchemaInfo;
1050
1196
  value: PresentationDefinitionV2ClaimValue;
1051
1197
  userSelection: boolean;
1052
1198
  required: boolean;
@@ -1061,7 +1207,7 @@ export interface PresentationDefinitionV2Credential {
1061
1207
  issuerCertificate?: CertificateDetail;
1062
1208
  holder?: IdentifierListItem;
1063
1209
  state: CredentialState;
1064
- schema: CredentialSchemaListItem;
1210
+ schema: CredentialSchemaInfo;
1065
1211
  claims: Array<PresentationDefinitionV2Claim>;
1066
1212
  redirectUri?: string;
1067
1213
  role: CredentialRole;
@@ -1137,6 +1283,8 @@ export interface ProofDetail {
1137
1283
  claimsRemovedAt?: string;
1138
1284
  /** Country profile associated with this request. */
1139
1285
  profile?: string;
1286
+ /** Trust information of the verifier, if any. */
1287
+ trustInformation?: TrustInformation;
1140
1288
  }
1141
1289
  export interface ProofInput {
1142
1290
  /** Set of claims asserted by the shared credential. */
@@ -1144,11 +1292,11 @@ export interface ProofInput {
1144
1292
  /** Shared credential metadata. */
1145
1293
  credential?: CredentialDetail;
1146
1294
  /** Credential schema metadata. */
1147
- credentialSchema: CredentialSchemaListItem;
1295
+ credentialSchema: CredentialSchemaInfo;
1148
1296
  }
1149
1297
  export interface ProofInputSchema {
1150
1298
  claimSchemas: Array<ProofClaimSchema>;
1151
- credentialSchema: CredentialSchemaListItem;
1299
+ credentialSchema: CredentialSchemaInfo;
1152
1300
  }
1153
1301
  export interface ProofList {
1154
1302
  values: Array<ProofListItem>;
@@ -1326,39 +1474,20 @@ export interface RegisterVerifierInstanceRequest {
1326
1474
  verifierProviderUrl: string;
1327
1475
  /** Reference a configured `verifierProvider` instance. */
1328
1476
  type: string;
1477
+ /**
1478
+ * When true, the verifier will only validate presentations of
1479
+ * credentials issued by trusted issuers. Requires the Verifier
1480
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1481
+ * enabled.
1482
+ */
1483
+ trustedIssuerRequired: boolean;
1329
1484
  }
1330
1485
  export interface RegisterVerifierInstanceResponse {
1331
1486
  id: string;
1332
1487
  }
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
1488
  export interface ResolvedJsonLdContext {
1356
1489
  context: string;
1357
1490
  }
1358
- export interface ResolvedTrustEntity {
1359
- trustEntity: TrustEntityDetail;
1360
- certificateIds?: Array<string>;
1361
- }
1362
1491
  export interface ServiceDescription {
1363
1492
  uuid: string;
1364
1493
  advertise: boolean;
@@ -1380,45 +1509,8 @@ export interface ShareProofResponse {
1380
1509
  url: string;
1381
1510
  expiresAt?: string;
1382
1511
  }
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
1512
  export interface TrustCollectionInfo {
1513
+ /** When true, the wallet is subscribed to this trust collection. */
1422
1514
  selected: boolean;
1423
1515
  id: string;
1424
1516
  name: string;
@@ -1427,77 +1519,13 @@ export interface TrustCollectionInfo {
1427
1519
  description: Array<DisplayName>;
1428
1520
  }
1429
1521
  export interface TrustCollections {
1522
+ /** Trust collections available from the Wallet Provider. */
1430
1523
  trustCollections: Array<TrustCollectionInfo>;
1431
1524
  }
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;
1525
+ export interface TrustInformation {
1526
+ receivedAt: string;
1488
1527
  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;
1528
+ result: TrustResolutionResult;
1501
1529
  }
1502
1530
  export interface TrustInformationDetail {
1503
1531
  /**
@@ -1506,6 +1534,9 @@ export interface TrustInformationDetail {
1506
1534
  */
1507
1535
  eudiEcosystem?: EudiTrustInformation;
1508
1536
  }
1537
+ export interface TrustResolutionMetadata {
1538
+ result: TrustResolutionResult;
1539
+ }
1509
1540
  export interface UnexportableEntities {
1510
1541
  credentials: Array<CredentialDetail>;
1511
1542
  keys: Array<KeyListItem>;
@@ -1516,18 +1547,22 @@ export interface UnexportableEntities {
1516
1547
  totalDids: number;
1517
1548
  totalIdentifiers: number;
1518
1549
  }
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
1550
  export interface UpdateVerifierInstanceRequest {
1530
- trustCollections: Array<string>;
1551
+ /**
1552
+ * The trust collections the verifier subscribes to, selected from
1553
+ * those made available by the Verifier Provider. The verifier will
1554
+ * evaluate trust against the lists contained in these collections.
1555
+ * To keep subscribed collections in sync with the Verifier Provider,
1556
+ * run the `TRUST_COLLECTION_SYNC` task.
1557
+ */
1558
+ trustCollections?: Array<string>;
1559
+ /**
1560
+ * When true, the verifier will only validate presentations of
1561
+ * credentials issued by trusted issuers. Requires the Verifier
1562
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1563
+ * enabled.
1564
+ */
1565
+ trustedIssuerRequired?: boolean;
1531
1566
  }
1532
1567
  export interface UpsertOrganisationRequest {
1533
1568
  /** Unique identifier of the organization to create or update. */
@@ -1538,8 +1573,22 @@ export interface UpsertOrganisationRequest {
1538
1573
  walletProvider?: string | null;
1539
1574
  /** Wallet Provider use only. */
1540
1575
  walletProviderIssuer?: string | null;
1576
+ /**
1577
+ * The parent organization this organization inherits policy-level
1578
+ * configuration from, if any.
1579
+ */
1541
1580
  parentOrganisation?: string | null;
1542
1581
  }
1582
+ export interface VerifierInstanceDetail {
1583
+ id: string;
1584
+ /**
1585
+ * When true, the verifier will only validate presentations of
1586
+ * credentials issued by trusted issuers. Requires the Verifier
1587
+ * Provider to have the `trustEcosystemsEnabled` feature flag
1588
+ * enabled.
1589
+ */
1590
+ trustedIssuerRequired: boolean;
1591
+ }
1543
1592
  export interface Version {
1544
1593
  target: string;
1545
1594
  buildTime: string;
@@ -1550,9 +1599,23 @@ export interface Version {
1550
1599
  pipelineId: string;
1551
1600
  }
1552
1601
  export interface WalletProvider {
1602
+ /**
1603
+ * Full URL for the GET Wallet Provider metadata endpoint,
1604
+ * for example: <domain>/ssi/wallet-provider/v1/<walletProvider>
1605
+ */
1553
1606
  url: string;
1607
+ /** Choose the Wallet Provider implementation. */
1554
1608
  type: WalletProviderType;
1555
1609
  }
1610
+ export interface WalletProviderDetail {
1611
+ /**
1612
+ * Wallet Provider configuration used by this organization to provide
1613
+ * wallets.
1614
+ */
1615
+ providerName?: string;
1616
+ /** Identifier used by this organization to provide wallets. */
1617
+ issuer?: IdentifierListItem;
1618
+ }
1556
1619
  export interface WalletRelyingPartyMetadata {
1557
1620
  name: string;
1558
1621
  }
@@ -1618,7 +1681,9 @@ export declare enum CacheType {
1618
1681
  X509_CRL = "X509_CRL",
1619
1682
  ANDROID_ATTESTATION_CRL = "ANDROID_ATTESTATION_CRL",
1620
1683
  OPEN_ID_METADATA_HOLDER = "OPEN_ID_METADATA_HOLDER",
1621
- OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER"
1684
+ OPEN_ID_METADATA_ISSUER = "OPEN_ID_METADATA_ISSUER",
1685
+ WALLET_PROVIDER_METADATA = "WALLET_PROVIDER_METADATA",
1686
+ REMOTE_TRUST_COLLECTION = "REMOTE_TRUST_COLLECTION"
1622
1687
  }
1623
1688
  export declare enum CertificateRole {
1624
1689
  AUTHENTICATION = "AUTHENTICATION",
@@ -1685,7 +1750,7 @@ export declare enum CreateSelfSignedCaRequestIssuerAlternativeNameType {
1685
1750
  }
1686
1751
  export declare enum CredentialListIncludeEntityType {
1687
1752
  LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1688
- CREDENTIAL = "CREDENTIAL"
1753
+ TRANSLATIONS = "TRANSLATIONS"
1689
1754
  }
1690
1755
  export declare enum CredentialListQueryExactColumn {
1691
1756
  NAME = "NAME"
@@ -1711,7 +1776,8 @@ export declare enum CredentialSchemaCodeType {
1711
1776
  QR_CODE = "QR_CODE"
1712
1777
  }
1713
1778
  export declare enum CredentialSchemaListIncludeEntityType {
1714
- LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES"
1779
+ LAYOUT_PROPERTIES = "LAYOUT_PROPERTIES",
1780
+ TRANSLATIONS = "TRANSLATIONS"
1715
1781
  }
1716
1782
  export declare enum CredentialSchemaListQueryExactColumn {
1717
1783
  NAME = "NAME",
@@ -1728,6 +1794,11 @@ export declare enum CredentialState {
1728
1794
  ERROR = "ERROR",
1729
1795
  INTERACTION_EXPIRED = "INTERACTION_EXPIRED"
1730
1796
  }
1797
+ export declare enum CredentialType {
1798
+ SINGLE = "SINGLE",
1799
+ BATCH_PARENT = "BATCH_PARENT",
1800
+ BATCH_ITEM = "BATCH_ITEM"
1801
+ }
1731
1802
  export declare enum DidListQueryExactColumn {
1732
1803
  NAME = "NAME",
1733
1804
  DID = "DID"
@@ -1806,7 +1877,9 @@ export declare enum HistoryAction {
1806
1877
  DELIVERED = "DELIVERED",
1807
1878
  WRP_AC_RECEIVED = "WRP_AC_RECEIVED",
1808
1879
  WRP_RC_RECEIVED = "WRP_RC_RECEIVED",
1809
- WRP_NR_RECEIVED = "WRP_NR_RECEIVED"
1880
+ WRP_NR_RECEIVED = "WRP_NR_RECEIVED",
1881
+ TRUST_RESOLVED = "TRUST_RESOLVED",
1882
+ REFRESHED = "REFRESHED"
1810
1883
  }
1811
1884
  export declare enum HistoryEntityType {
1812
1885
  KEY = "KEY",
@@ -1819,8 +1892,6 @@ export declare enum HistoryEntityType {
1819
1892
  PROOF_SCHEMA = "PROOF_SCHEMA",
1820
1893
  ORGANISATION = "ORGANISATION",
1821
1894
  BACKUP = "BACKUP",
1822
- TRUST_ANCHOR = "TRUST_ANCHOR",
1823
- TRUST_ENTITY = "TRUST_ENTITY",
1824
1895
  WALLET_UNIT = "WALLET_UNIT",
1825
1896
  USER = "USER",
1826
1897
  PROVIDER = "PROVIDER",
@@ -1850,6 +1921,9 @@ export type HistoryMetadata = {
1850
1921
  } | {
1851
1922
  type_: "WALLET_RELYING_PARTY";
1852
1923
  value: WalletRelyingPartyMetadata;
1924
+ } | {
1925
+ type_: "TRUST_RESOLUTION";
1926
+ value: TrustResolutionMetadata;
1853
1927
  };
1854
1928
  export declare enum HistorySearchType {
1855
1929
  ALL = "ALL",
@@ -2026,49 +2100,14 @@ export declare enum SortableProofSchemaColumn {
2026
2100
  NAME = "NAME",
2027
2101
  CREATED_DATE = "CREATED_DATE"
2028
2102
  }
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
2103
  export declare enum TransactionCodeType {
2041
2104
  NUMERIC = "NUMERIC",
2042
2105
  ALPHANUMERIC = "ALPHANUMERIC"
2043
2106
  }
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"
2107
+ export declare enum TrustResolutionResult {
2108
+ TRUSTED = "TRUSTED",
2109
+ UNTRUSTED = "UNTRUSTED",
2110
+ UNKNOWN = "UNKNOWN"
2072
2111
  }
2073
2112
  export declare enum WalletProviderType {
2074
2113
  PROCIVIS_ONE = "PROCIVIS_ONE"
@@ -2193,6 +2232,8 @@ export interface OneCore {
2193
2232
  continueIssuance(url: string): Promise<ContinueIssuanceResponse>;
2194
2233
  /** Creates a backup of the current database and writes it to a file. */
2195
2234
  createBackup(password: string, outputPath: string): Promise<CreatedBackup>;
2235
+ /** Creates a credential schema */
2236
+ createCredentialSchema(request: CreateCredentialSchemaRequest): Promise<string>;
2196
2237
  /** Deprecated. Use the `createIdentifier` method. */
2197
2238
  createDid(request: CreateDidRequest): Promise<string>;
2198
2239
  /** Creates a new identifier. */
@@ -2212,9 +2253,6 @@ export interface OneCore {
2212
2253
  * before building a proof schema that includes their claims.
2213
2254
  */
2214
2255
  createProofSchema(request: CreateProofSchemaRequest): Promise<string>;
2215
- createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<string>;
2216
- createTrustAnchor(anchor: CreateTrustAnchorRequest): Promise<string>;
2217
- createTrustEntity(request: CreateTrustEntityRequest): Promise<string>;
2218
2256
  /**
2219
2257
  * Deletes the system cache. See the
2220
2258
  * [Caching](https://docs.procivis.ch/configure/caching#cached-entities)
@@ -2232,7 +2270,6 @@ export interface OneCore {
2232
2270
  deleteProof(proofId: string): Promise<void>;
2233
2271
  deleteProofClaims(proofId: string): Promise<void>;
2234
2272
  deleteProofSchema(proofSchemaId: string): Promise<void>;
2235
- deleteTrustAnchor(anchorId: string): Promise<void>;
2236
2273
  /**
2237
2274
  * Commits to the restored database, replacing the original. The old
2238
2275
  * database is deleted.
@@ -2257,6 +2294,8 @@ export interface OneCore {
2257
2294
  /** Returns details on a single event. */
2258
2295
  getHistoryEntry(historyId: string): Promise<HistoryListItem>;
2259
2296
  getIdentifier(id: string): Promise<IdentifierDetail>;
2297
+ /** Returns details of an existing organization. */
2298
+ getOrganisation(id: string): Promise<OrganisationDetail>;
2260
2299
  getPresentationDefinition(proofId: string): Promise<PresentationDefinition>;
2261
2300
  getPresentationDefinitionV2(proofId: string): Promise<PresentationDefinitionV2>;
2262
2301
  /** Returns detailed information about a proof request. */
@@ -2267,10 +2306,6 @@ export interface OneCore {
2267
2306
  * proof request.
2268
2307
  */
2269
2308
  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
2309
  /** Returns trust collections curated by the Verifier Provider. */
2275
2310
  getVerifierInstanceTrustCollections(id: string): Promise<TrustCollections>;
2276
2311
  /**
@@ -2289,6 +2324,8 @@ export interface OneCore {
2289
2324
  holderGetWalletUnit(id: string): Promise<HolderWalletUnit>;
2290
2325
  /** Returns trust collections curated by the Wallet Provider. */
2291
2326
  holderGetWalletUnitTrustCollections(id: string): Promise<TrustCollections>;
2327
+ /** Receive a new credential batch */
2328
+ holderRefreshCredential(interactionId: string): Promise<HolderRefreshCredentialResponse>;
2292
2329
  /** Registers the wallet unit with a Wallet Provider. */
2293
2330
  holderRegisterWalletUnit(request: HolderRegisterWalletUnitRequest): Promise<HolderRegisterWalletUnitResponse>;
2294
2331
  /** Rejects an offered credential. */
@@ -2333,8 +2370,6 @@ export interface OneCore {
2333
2370
  listProofSchemas(filter: ProofSchemaListQuery): Promise<ProofSchemaList>;
2334
2371
  /** Returns a filterable list of proof requests. */
2335
2372
  listProofs(query: ProofListQuery): Promise<ProofList>;
2336
- listTrustAnchors(filters: TrustAnchorListQuery): Promise<TrustAnchorList>;
2337
- listTrustEntities(filters: TrustEntityListQuery): Promise<TrustEntityList>;
2338
2373
  /** Scan NFC for ISO 18013-5 engagment. */
2339
2374
  nfcReadIsoMdlEngagement(request: NfcScanRequest): Promise<string>;
2340
2375
  /** Cancel previously started NFC scan via `nfc_read_iso_mdl_engagement`. */
@@ -2349,7 +2384,6 @@ export interface OneCore {
2349
2384
  registerVerifierInstance(request: RegisterVerifierInstanceRequest): Promise<RegisterVerifierInstanceResponse>;
2350
2385
  /** Returns the @context of a JSON-LD credential. The result is cached. */
2351
2386
  resolveJsonldContext(url: string): Promise<ResolvedJsonLdContext>;
2352
- resolveTrustEntityByIdentifier(request: ResolveTrustEntitiesRequest): Promise<Record<string, Array<ResolvedTrustEntity>>>;
2353
2387
  /** Discards the restored database and continues using the original. */
2354
2388
  rollbackImport(): Promise<void>;
2355
2389
  /**
@@ -2378,7 +2412,6 @@ export interface OneCore {
2378
2412
  * Follow by calling either `finalizeImport` or `rollbackImport`.
2379
2413
  */
2380
2414
  unpackBackup(password: string, inputPath: string): Promise<Metadata>;
2381
- updateRemoteTrustEntity(request: UpdateRemoteTrustEntityRequest): Promise<void>;
2382
2415
  /** Modifies verifier unit's settings. */
2383
2416
  updateVerifierInstance(id: string, request: UpdateVerifierInstanceRequest): Promise<void>;
2384
2417
  /**