@triveria/wallet 0.0.235 → 0.0.237
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.
- package/api.d.ts +119 -309
- package/api.js +3 -3
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -64,135 +64,56 @@ export interface AuthOffer {
|
|
|
64
64
|
'validUntil': string;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Accompanying information about the verifiable credential draft - schema, type, format etc.
|
|
68
68
|
* @export
|
|
69
|
-
* @interface
|
|
69
|
+
* @interface CredentialDraftMetadata
|
|
70
70
|
*/
|
|
71
|
-
export interface
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
/**
|
|
74
|
-
* The value of the @context property MUST be an ordered set where the first item is a URL with the value https://www.w3.org/ns/credentials/v2. Subsequent items in the array MUST express context information and be composed of any combination of URLs or objects. It is RECOMMENDED that each URL in the @context be one which, if dereferenced, results in a document containing machine-readable information about the @context. https://www.w3.org/TR/vc-data-model-2.0/#contexts
|
|
75
|
-
* @type {Array<string>}
|
|
76
|
-
* @memberof Credential
|
|
77
|
-
*/
|
|
78
|
-
'@context'?: Array<string>;
|
|
71
|
+
export interface CredentialDraftMetadata {
|
|
79
72
|
/**
|
|
80
73
|
*
|
|
81
74
|
* @type {string}
|
|
82
|
-
* @memberof
|
|
83
|
-
*/
|
|
84
|
-
'id'?: string;
|
|
85
|
-
/**
|
|
86
|
-
* The value of the type property MUST be, or map to (through interpretation of the @context property), one or more URLs. If more than one URL is provided, the URLs MUST be interpreted as an unordered set. Syntactic conveniences SHOULD be used to ease developer usage. Such conveniences might include JSON-LD terms. It is RECOMMENDED that each URL in the type be one which, if dereferenced, results in a document containing machine-readable information about the type. https://www.w3.org/TR/vc-data-model-2.0/#types
|
|
87
|
-
* @type {Array<string>}
|
|
88
|
-
* @memberof Credential
|
|
89
|
-
*/
|
|
90
|
-
'type'?: Array<string>;
|
|
91
|
-
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {CredentialSchema}
|
|
94
|
-
* @memberof Credential
|
|
75
|
+
* @memberof CredentialDraftMetadata
|
|
95
76
|
*/
|
|
96
|
-
'
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @type {CredentialSubject}
|
|
100
|
-
* @memberof Credential
|
|
101
|
-
*/
|
|
102
|
-
'credentialSubject'?: CredentialSubject;
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @type {CredentialStatus}
|
|
106
|
-
* @memberof Credential
|
|
107
|
-
*/
|
|
108
|
-
'credentialStatus'?: CredentialStatus;
|
|
77
|
+
'id': string;
|
|
109
78
|
/**
|
|
110
79
|
*
|
|
111
|
-
* @type {Array<EvidenceItem>}
|
|
112
|
-
* @memberof Credential
|
|
113
|
-
*/
|
|
114
|
-
'evidence'?: Array<EvidenceItem>;
|
|
115
|
-
/**
|
|
116
|
-
* Date Time Stamp string value representing the date and time the credential becomes valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validFrom
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof Credential
|
|
119
|
-
*/
|
|
120
|
-
'validFrom'?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Date Time Stamp string value representing the date and time the credential ceases to be valid https://www.w3.org/TR/vc-data-model-2.0/#defn-validUntil
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof Credential
|
|
125
|
-
*/
|
|
126
|
-
'validUntil'?: string;
|
|
127
|
-
/**
|
|
128
|
-
* EBSI specific field defining the date of issuance.
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof Credential
|
|
131
|
-
*/
|
|
132
|
-
'issued'?: string;
|
|
133
|
-
/**
|
|
134
|
-
* EBSI specific field defining the date of issuance.
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof Credential
|
|
137
|
-
*/
|
|
138
|
-
'issuanceDate'?: string;
|
|
139
|
-
/**
|
|
140
|
-
* EBSI specific field defining the date of expiration.
|
|
141
|
-
* @type {string}
|
|
142
|
-
* @memberof Credential
|
|
143
|
-
*/
|
|
144
|
-
'expirationDate'?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-holder
|
|
147
80
|
* @type {string}
|
|
148
|
-
* @memberof
|
|
81
|
+
* @memberof CredentialDraftMetadata
|
|
149
82
|
*/
|
|
150
|
-
'
|
|
83
|
+
'name': string;
|
|
151
84
|
/**
|
|
152
85
|
*
|
|
153
|
-
* @type {VerifiableCredentialIssuer}
|
|
154
|
-
* @memberof Credential
|
|
155
|
-
*/
|
|
156
|
-
'issuer'?: VerifiableCredentialIssuer;
|
|
157
|
-
/**
|
|
158
|
-
* Array of specific VC field disclosures
|
|
159
|
-
* @type {Array<string>}
|
|
160
|
-
* @memberof Credential
|
|
161
|
-
*/
|
|
162
|
-
'_sd'?: Array<string>;
|
|
163
|
-
/**
|
|
164
|
-
* Algorithm used for hashing disclosure digests
|
|
165
86
|
* @type {string}
|
|
166
|
-
* @memberof
|
|
87
|
+
* @memberof CredentialDraftMetadata
|
|
167
88
|
*/
|
|
168
|
-
'
|
|
89
|
+
'type': string;
|
|
169
90
|
/**
|
|
170
91
|
*
|
|
171
|
-
* @type {
|
|
172
|
-
* @memberof
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CredentialDraftMetadata
|
|
173
94
|
*/
|
|
174
|
-
'
|
|
95
|
+
'expirationDate'?: string;
|
|
175
96
|
/**
|
|
176
97
|
*
|
|
177
|
-
* @type {
|
|
178
|
-
* @memberof
|
|
98
|
+
* @type {CredentialFormat}
|
|
99
|
+
* @memberof CredentialDraftMetadata
|
|
179
100
|
*/
|
|
180
|
-
'
|
|
101
|
+
'format': CredentialFormat;
|
|
181
102
|
/**
|
|
182
103
|
*
|
|
183
|
-
* @type {
|
|
184
|
-
* @memberof
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof CredentialDraftMetadata
|
|
185
106
|
*/
|
|
186
|
-
'
|
|
107
|
+
'credentialSchema'?: string;
|
|
187
108
|
}
|
|
188
109
|
/**
|
|
189
|
-
*
|
|
110
|
+
* jwt_vc_vcdm - VC using W3C VC Data Model as jwt sd_jwt_vc - VC using sd_jwt_vc data model as jwt
|
|
190
111
|
* @export
|
|
191
112
|
* @enum {string}
|
|
192
113
|
*/
|
|
193
114
|
export declare const CredentialFormat: {
|
|
194
|
-
readonly JwtVc: "jwt_vc";
|
|
195
115
|
readonly SdJwtVc: "sd_jwt_vc";
|
|
116
|
+
readonly JwtVcVcdm: "jwt_vc_vcdm";
|
|
196
117
|
};
|
|
197
118
|
export type CredentialFormat = typeof CredentialFormat[keyof typeof CredentialFormat];
|
|
198
119
|
/**
|
|
@@ -328,10 +249,10 @@ export interface CredentialIssuerDefinition {
|
|
|
328
249
|
'id': string;
|
|
329
250
|
/**
|
|
330
251
|
* Type of credentials for which the specified credential issuer will be used.
|
|
331
|
-
* @type {
|
|
252
|
+
* @type {string}
|
|
332
253
|
* @memberof CredentialIssuerDefinition
|
|
333
254
|
*/
|
|
334
|
-
'credentialType':
|
|
255
|
+
'credentialType': string;
|
|
335
256
|
/**
|
|
336
257
|
* Type of issuer to be used with credentials of the type specified.
|
|
337
258
|
* @type {string}
|
|
@@ -345,11 +266,11 @@ export interface CredentialIssuerDefinition {
|
|
|
345
266
|
*/
|
|
346
267
|
'issuerConfiguration'?: CredentialIssuerDefinitionIssuerConfiguration;
|
|
347
268
|
/**
|
|
348
|
-
*
|
|
349
|
-
* @type {
|
|
269
|
+
*
|
|
270
|
+
* @type {CredentialFormat}
|
|
350
271
|
* @memberof CredentialIssuerDefinition
|
|
351
272
|
*/
|
|
352
|
-
'credentialFormat'
|
|
273
|
+
'credentialFormat': CredentialFormat;
|
|
353
274
|
/**
|
|
354
275
|
* JSON paths of credential claims which will support being disclosed partially.
|
|
355
276
|
* @type {Array<string>}
|
|
@@ -370,6 +291,19 @@ export type CredentialIssuerDefinitionCredentialIssuerEnum = typeof CredentialIs
|
|
|
370
291
|
* @export
|
|
371
292
|
*/
|
|
372
293
|
export type CredentialIssuerDefinitionIssuerConfiguration = CredentialRequirementsIssuerConfig | CtWalletSameIssuerConfig | VPDrivenIssuerConfig;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @export
|
|
297
|
+
* @interface CredentialIssuerMetadata
|
|
298
|
+
*/
|
|
299
|
+
export interface CredentialIssuerMetadata {
|
|
300
|
+
/**
|
|
301
|
+
* DID or URI
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof CredentialIssuerMetadata
|
|
304
|
+
*/
|
|
305
|
+
'id'?: string;
|
|
306
|
+
}
|
|
373
307
|
/**
|
|
374
308
|
*
|
|
375
309
|
* @export
|
|
@@ -456,6 +390,18 @@ export interface CredentialMetadata {
|
|
|
456
390
|
* @memberof CredentialMetadata
|
|
457
391
|
*/
|
|
458
392
|
'updated': string;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @type {string}
|
|
396
|
+
* @memberof CredentialMetadata
|
|
397
|
+
*/
|
|
398
|
+
'issuanceDate': string;
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @memberof CredentialMetadata
|
|
403
|
+
*/
|
|
404
|
+
'expirationDate'?: string;
|
|
459
405
|
/**
|
|
460
406
|
*
|
|
461
407
|
* @type {string}
|
|
@@ -537,16 +483,16 @@ export interface CredentialPayload {
|
|
|
537
483
|
[key: string]: any;
|
|
538
484
|
/**
|
|
539
485
|
*
|
|
540
|
-
* @type {
|
|
486
|
+
* @type {CredentialSubject}
|
|
541
487
|
* @memberof CredentialPayload
|
|
542
488
|
*/
|
|
543
|
-
'
|
|
489
|
+
'credentialSubject': CredentialSubject;
|
|
544
490
|
/**
|
|
545
|
-
*
|
|
546
|
-
* @type {
|
|
491
|
+
*
|
|
492
|
+
* @type {CredentialDraftMetadata}
|
|
547
493
|
* @memberof CredentialPayload
|
|
548
494
|
*/
|
|
549
|
-
'
|
|
495
|
+
'credentialDraftMetadata': CredentialDraftMetadata;
|
|
550
496
|
/**
|
|
551
497
|
* If true, the credential draft is checked against its schema. Defaults to true.
|
|
552
498
|
* @type {boolean}
|
|
@@ -562,10 +508,10 @@ export interface CredentialPayload {
|
|
|
562
508
|
export interface CredentialRequest {
|
|
563
509
|
/**
|
|
564
510
|
*
|
|
565
|
-
* @type {
|
|
511
|
+
* @type {string}
|
|
566
512
|
* @memberof CredentialRequest
|
|
567
513
|
*/
|
|
568
|
-
'types':
|
|
514
|
+
'types': string;
|
|
569
515
|
/**
|
|
570
516
|
*
|
|
571
517
|
* @type {CredentialFormat}
|
|
@@ -629,75 +575,6 @@ export interface CredentialRequirementsIssuerConfig {
|
|
|
629
575
|
*/
|
|
630
576
|
'credentialVerifierId': string;
|
|
631
577
|
}
|
|
632
|
-
/**
|
|
633
|
-
* @type CredentialSchema
|
|
634
|
-
* One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
|
|
635
|
-
* @export
|
|
636
|
-
*/
|
|
637
|
-
export type CredentialSchema = Array<CredentialSchemaItem> | CredentialSchemaItem;
|
|
638
|
-
/**
|
|
639
|
-
*
|
|
640
|
-
* @export
|
|
641
|
-
* @interface CredentialSchemaItem
|
|
642
|
-
*/
|
|
643
|
-
export interface CredentialSchemaItem {
|
|
644
|
-
[key: string]: any;
|
|
645
|
-
/**
|
|
646
|
-
* A URL identifying the schema file
|
|
647
|
-
* @type {string}
|
|
648
|
-
* @memberof CredentialSchemaItem
|
|
649
|
-
*/
|
|
650
|
-
'id': string;
|
|
651
|
-
/**
|
|
652
|
-
*
|
|
653
|
-
* @type {string}
|
|
654
|
-
* @memberof CredentialSchemaItem
|
|
655
|
-
*/
|
|
656
|
-
'name'?: string;
|
|
657
|
-
/**
|
|
658
|
-
* Defines the schema type, for example, JsonSchema
|
|
659
|
-
* @type {string}
|
|
660
|
-
* @memberof CredentialSchemaItem
|
|
661
|
-
*/
|
|
662
|
-
'type': string;
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* It is expected that the value will provide enough information to determine the current status of the credential and that machine readable information will be retrievable from the URL https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialStatus
|
|
666
|
-
* @export
|
|
667
|
-
* @interface CredentialStatus
|
|
668
|
-
*/
|
|
669
|
-
export interface CredentialStatus {
|
|
670
|
-
/**
|
|
671
|
-
*
|
|
672
|
-
* @type {string}
|
|
673
|
-
* @memberof CredentialStatus
|
|
674
|
-
*/
|
|
675
|
-
'id': string;
|
|
676
|
-
/**
|
|
677
|
-
*
|
|
678
|
-
* @type {string}
|
|
679
|
-
* @memberof CredentialStatus
|
|
680
|
-
*/
|
|
681
|
-
'type': string;
|
|
682
|
-
/**
|
|
683
|
-
*
|
|
684
|
-
* @type {string}
|
|
685
|
-
* @memberof CredentialStatus
|
|
686
|
-
*/
|
|
687
|
-
'statusPurpose'?: string;
|
|
688
|
-
/**
|
|
689
|
-
*
|
|
690
|
-
* @type {string}
|
|
691
|
-
* @memberof CredentialStatus
|
|
692
|
-
*/
|
|
693
|
-
'statusListIndex'?: string;
|
|
694
|
-
/**
|
|
695
|
-
*
|
|
696
|
-
* @type {string}
|
|
697
|
-
* @memberof CredentialStatus
|
|
698
|
-
*/
|
|
699
|
-
'statusListCredential'?: string;
|
|
700
|
-
}
|
|
701
578
|
/**
|
|
702
579
|
* @type CredentialSubject
|
|
703
580
|
* Set of objects that MUST contain one or more claims that are each related to a subject of the verifiable credential https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSubject. Currently we support only one subject in the verifiable credential because there is no consensus about \"vc-jwt\" encoding of multi-subject verifiable credentials
|
|
@@ -717,12 +594,6 @@ export interface CredentialSubjectItem {
|
|
|
717
594
|
* @memberof CredentialSubjectItem
|
|
718
595
|
*/
|
|
719
596
|
'id'?: string;
|
|
720
|
-
/**
|
|
721
|
-
* Array of specific VC subject field disclosures
|
|
722
|
-
* @type {Array<string>}
|
|
723
|
-
* @memberof CredentialSubjectItem
|
|
724
|
-
*/
|
|
725
|
-
'_sd'?: Array<string>;
|
|
726
597
|
}
|
|
727
598
|
/**
|
|
728
599
|
*
|
|
@@ -813,10 +684,10 @@ export interface CredentialWrapper {
|
|
|
813
684
|
'metadata': CredentialMetadata;
|
|
814
685
|
/**
|
|
815
686
|
*
|
|
816
|
-
* @type {
|
|
687
|
+
* @type {CredentialSubject}
|
|
817
688
|
* @memberof CredentialWrapper
|
|
818
689
|
*/
|
|
819
|
-
'
|
|
690
|
+
'vcSubject'?: CredentialSubject;
|
|
820
691
|
/**
|
|
821
692
|
* The base64 encoded Verifiable Credential in its final signed form
|
|
822
693
|
* @type {string}
|
|
@@ -923,6 +794,12 @@ export interface EbsiConfiguration {
|
|
|
923
794
|
* @memberof EbsiConfiguration
|
|
924
795
|
*/
|
|
925
796
|
'mainSchema': string;
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @type {string}
|
|
800
|
+
* @memberof EbsiConfiguration
|
|
801
|
+
*/
|
|
802
|
+
'statusListSchema': string;
|
|
926
803
|
}
|
|
927
804
|
/**
|
|
928
805
|
* EBSI specific data
|
|
@@ -967,26 +844,6 @@ export interface EbsiSpecificWalletData {
|
|
|
967
844
|
*/
|
|
968
845
|
'configuration': EbsiConfiguration;
|
|
969
846
|
}
|
|
970
|
-
/**
|
|
971
|
-
* A scheme providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential
|
|
972
|
-
* @export
|
|
973
|
-
* @interface EvidenceItem
|
|
974
|
-
*/
|
|
975
|
-
export interface EvidenceItem {
|
|
976
|
-
[key: string]: any;
|
|
977
|
-
/**
|
|
978
|
-
* URL that points to where more information about this instance of evidence can be found
|
|
979
|
-
* @type {string}
|
|
980
|
-
* @memberof EvidenceItem
|
|
981
|
-
*/
|
|
982
|
-
'id'?: string;
|
|
983
|
-
/**
|
|
984
|
-
* The precise content of each evidence scheme is determined by the specific evidence type definition.
|
|
985
|
-
* @type {Array<string>}
|
|
986
|
-
* @memberof EvidenceItem
|
|
987
|
-
*/
|
|
988
|
-
'type': Array<string>;
|
|
989
|
-
}
|
|
990
847
|
/**
|
|
991
848
|
* Presented credential field that will be matched
|
|
992
849
|
* @export
|
|
@@ -1052,10 +909,10 @@ export interface HolderAuthOfferCreationRequest {
|
|
|
1052
909
|
'issuerUrl': string;
|
|
1053
910
|
/**
|
|
1054
911
|
*
|
|
1055
|
-
* @type {
|
|
912
|
+
* @type {string}
|
|
1056
913
|
* @memberof HolderAuthOfferCreationRequest
|
|
1057
914
|
*/
|
|
1058
|
-
'types':
|
|
915
|
+
'types': string;
|
|
1059
916
|
/**
|
|
1060
917
|
*
|
|
1061
918
|
* @type {CredentialFormat}
|
|
@@ -1138,12 +995,6 @@ export interface InitAuthOffer {
|
|
|
1138
995
|
* @memberof InitAuthOffer
|
|
1139
996
|
*/
|
|
1140
997
|
'issuerId': string;
|
|
1141
|
-
/**
|
|
1142
|
-
*
|
|
1143
|
-
* @type {CredentialFormat}
|
|
1144
|
-
* @memberof InitAuthOffer
|
|
1145
|
-
*/
|
|
1146
|
-
'format': CredentialFormat;
|
|
1147
998
|
/**
|
|
1148
999
|
*
|
|
1149
1000
|
* @type {string}
|
|
@@ -1187,12 +1038,6 @@ export interface InitPreAuthOffer {
|
|
|
1187
1038
|
* @memberof InitPreAuthOffer
|
|
1188
1039
|
*/
|
|
1189
1040
|
'issuerId': string;
|
|
1190
|
-
/**
|
|
1191
|
-
*
|
|
1192
|
-
* @type {CredentialFormat}
|
|
1193
|
-
* @memberof InitPreAuthOffer
|
|
1194
|
-
*/
|
|
1195
|
-
'format': CredentialFormat;
|
|
1196
1041
|
/**
|
|
1197
1042
|
*
|
|
1198
1043
|
* @type {string}
|
|
@@ -1356,20 +1201,6 @@ export interface IssuerLogo {
|
|
|
1356
1201
|
*/
|
|
1357
1202
|
'alt_text'?: string;
|
|
1358
1203
|
}
|
|
1359
|
-
/**
|
|
1360
|
-
* Object containing an `id` property.
|
|
1361
|
-
* @export
|
|
1362
|
-
* @interface IssuerMeta
|
|
1363
|
-
*/
|
|
1364
|
-
export interface IssuerMeta {
|
|
1365
|
-
[key: string]: any;
|
|
1366
|
-
/**
|
|
1367
|
-
*
|
|
1368
|
-
* @type {string}
|
|
1369
|
-
* @memberof IssuerMeta
|
|
1370
|
-
*/
|
|
1371
|
-
'id': string;
|
|
1372
|
-
}
|
|
1373
1204
|
/**
|
|
1374
1205
|
*
|
|
1375
1206
|
* @export
|
|
@@ -1746,6 +1577,18 @@ export interface PresentationDefinitionFormat {
|
|
|
1746
1577
|
* @memberof PresentationDefinitionFormat
|
|
1747
1578
|
*/
|
|
1748
1579
|
'jwt_vp'?: PresentationDefinitionFormatAlg;
|
|
1580
|
+
/**
|
|
1581
|
+
*
|
|
1582
|
+
* @type {PresentationDefinitionFormatAlg}
|
|
1583
|
+
* @memberof PresentationDefinitionFormat
|
|
1584
|
+
*/
|
|
1585
|
+
'sd_jwt'?: PresentationDefinitionFormatAlg;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {PresentationDefinitionFormatAlg}
|
|
1589
|
+
* @memberof PresentationDefinitionFormat
|
|
1590
|
+
*/
|
|
1591
|
+
'dc+sd-jwt-vc'?: PresentationDefinitionFormatAlg;
|
|
1749
1592
|
/**
|
|
1750
1593
|
*
|
|
1751
1594
|
* @type {PresentationDefinitionFormatAlg}
|
|
@@ -1902,79 +1745,66 @@ export declare const PresentationDefinitionSubmissionRequirementsRuleEnum: {
|
|
|
1902
1745
|
};
|
|
1903
1746
|
export type PresentationDefinitionSubmissionRequirementsRuleEnum = typeof PresentationDefinitionSubmissionRequirementsRuleEnum[keyof typeof PresentationDefinitionSubmissionRequirementsRuleEnum];
|
|
1904
1747
|
/**
|
|
1905
|
-
*
|
|
1748
|
+
* Metadata of the verifiable presentation
|
|
1906
1749
|
* @export
|
|
1907
|
-
* @interface
|
|
1750
|
+
* @interface PresentationMetadata
|
|
1908
1751
|
*/
|
|
1909
|
-
export interface
|
|
1752
|
+
export interface PresentationMetadata {
|
|
1910
1753
|
/**
|
|
1911
|
-
*
|
|
1754
|
+
*
|
|
1912
1755
|
* @type {string}
|
|
1913
|
-
* @memberof
|
|
1756
|
+
* @memberof PresentationMetadata
|
|
1914
1757
|
*/
|
|
1915
|
-
'
|
|
1916
|
-
}
|
|
1917
|
-
/**
|
|
1918
|
-
* One or more cryptographic proofs that can be used to detect tampering and verify the authorship of a verifiable credential or verifiable presentation https://www.w3.org/TR/vc-data-model-2.0/#securing-verifiable-credentials
|
|
1919
|
-
* @export
|
|
1920
|
-
* @interface Proof
|
|
1921
|
-
*/
|
|
1922
|
-
export interface Proof {
|
|
1758
|
+
'id'?: string;
|
|
1923
1759
|
/**
|
|
1924
1760
|
*
|
|
1925
1761
|
* @type {string}
|
|
1926
|
-
* @memberof
|
|
1762
|
+
* @memberof PresentationMetadata
|
|
1927
1763
|
*/
|
|
1928
|
-
'type'
|
|
1764
|
+
'type'?: string;
|
|
1929
1765
|
/**
|
|
1930
1766
|
*
|
|
1931
1767
|
* @type {string}
|
|
1932
|
-
* @memberof
|
|
1768
|
+
* @memberof PresentationMetadata
|
|
1933
1769
|
*/
|
|
1934
|
-
'
|
|
1770
|
+
'issuanceDate'?: string;
|
|
1935
1771
|
/**
|
|
1936
1772
|
*
|
|
1937
1773
|
* @type {string}
|
|
1938
|
-
* @memberof
|
|
1774
|
+
* @memberof PresentationMetadata
|
|
1939
1775
|
*/
|
|
1940
|
-
'
|
|
1776
|
+
'expirationDate'?: string;
|
|
1941
1777
|
/**
|
|
1942
1778
|
*
|
|
1943
1779
|
* @type {string}
|
|
1944
|
-
* @memberof
|
|
1780
|
+
* @memberof PresentationMetadata
|
|
1945
1781
|
*/
|
|
1946
|
-
'
|
|
1782
|
+
'issuer'?: string;
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* @type {CredentialFormat}
|
|
1786
|
+
* @memberof PresentationMetadata
|
|
1787
|
+
*/
|
|
1788
|
+
'format'?: CredentialFormat;
|
|
1947
1789
|
/**
|
|
1948
1790
|
*
|
|
1949
1791
|
* @type {string}
|
|
1950
|
-
* @memberof
|
|
1792
|
+
* @memberof PresentationMetadata
|
|
1951
1793
|
*/
|
|
1952
|
-
'
|
|
1794
|
+
'credentialSchema'?: string;
|
|
1953
1795
|
}
|
|
1954
|
-
/**
|
|
1955
|
-
* @type RefreshService
|
|
1956
|
-
* A refresh service is a mechanism that can be utilized by software agents to retrieve an updated copy of a Verifiable Credential https://www.w3.org/TR/vc-data-model-2.0/#defn-refreshService
|
|
1957
|
-
* @export
|
|
1958
|
-
*/
|
|
1959
|
-
export type RefreshService = Array<RefreshServiceItem> | RefreshServiceItem;
|
|
1960
1796
|
/**
|
|
1961
1797
|
*
|
|
1962
1798
|
* @export
|
|
1963
|
-
* @interface
|
|
1799
|
+
* @interface PresentationRequest
|
|
1964
1800
|
*/
|
|
1965
|
-
export interface
|
|
1966
|
-
/**
|
|
1967
|
-
* The URL of the service
|
|
1968
|
-
* @type {string}
|
|
1969
|
-
* @memberof RefreshServiceItem
|
|
1970
|
-
*/
|
|
1971
|
-
'id': string;
|
|
1801
|
+
export interface PresentationRequest {
|
|
1972
1802
|
/**
|
|
1973
|
-
*
|
|
1803
|
+
* URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
|
|
1974
1804
|
* @type {string}
|
|
1975
|
-
* @memberof
|
|
1805
|
+
* @memberof PresentationRequest
|
|
1976
1806
|
*/
|
|
1977
|
-
'
|
|
1807
|
+
'verifierUrl': string;
|
|
1978
1808
|
}
|
|
1979
1809
|
/**
|
|
1980
1810
|
* Info needed to revoke legal entity\'s DID
|
|
@@ -2031,26 +1861,6 @@ export declare const SystemImpactStatusEnum: {
|
|
|
2031
1861
|
readonly Critical: "critical";
|
|
2032
1862
|
};
|
|
2033
1863
|
export type SystemImpactStatusEnum = typeof SystemImpactStatusEnum[keyof typeof SystemImpactStatusEnum];
|
|
2034
|
-
/**
|
|
2035
|
-
* Policy under which the creator issued the credential or presentation https://www.w3.org/TR/vc-data-model-2.0/#defn-termsOfUse
|
|
2036
|
-
* @export
|
|
2037
|
-
* @interface TermsOfUse
|
|
2038
|
-
*/
|
|
2039
|
-
export interface TermsOfUse {
|
|
2040
|
-
[key: string]: any;
|
|
2041
|
-
/**
|
|
2042
|
-
*
|
|
2043
|
-
* @type {string}
|
|
2044
|
-
* @memberof TermsOfUse
|
|
2045
|
-
*/
|
|
2046
|
-
'id'?: string;
|
|
2047
|
-
/**
|
|
2048
|
-
*
|
|
2049
|
-
* @type {string}
|
|
2050
|
-
* @memberof TermsOfUse
|
|
2051
|
-
*/
|
|
2052
|
-
'type': string;
|
|
2053
|
-
}
|
|
2054
1864
|
/**
|
|
2055
1865
|
*
|
|
2056
1866
|
* @export
|
|
@@ -2083,12 +1893,6 @@ export interface VcOffer {
|
|
|
2083
1893
|
*/
|
|
2084
1894
|
'Url': string;
|
|
2085
1895
|
}
|
|
2086
|
-
/**
|
|
2087
|
-
* @type VerifiableCredentialIssuer
|
|
2088
|
-
* Either a URL or an object containing an id property https://www.w3.org/TR/vc-data-model-2.0/#defn-issuer
|
|
2089
|
-
* @export
|
|
2090
|
-
*/
|
|
2091
|
-
export type VerifiableCredentialIssuer = IssuerMeta | string;
|
|
2092
1896
|
/**
|
|
2093
1897
|
*
|
|
2094
1898
|
* @export
|
|
@@ -2103,10 +1907,10 @@ export interface VerifiedLinkedVp {
|
|
|
2103
1907
|
'linkedVpId': string;
|
|
2104
1908
|
/**
|
|
2105
1909
|
*
|
|
2106
|
-
* @type {Array<
|
|
1910
|
+
* @type {Array<CredentialWrapper>}
|
|
2107
1911
|
* @memberof VerifiedLinkedVp
|
|
2108
1912
|
*/
|
|
2109
|
-
'credentials': Array<
|
|
1913
|
+
'credentials': Array<CredentialWrapper>;
|
|
2110
1914
|
}
|
|
2111
1915
|
/**
|
|
2112
1916
|
* Wrapped result of successful verification interaction.
|
|
@@ -2116,10 +1920,10 @@ export interface VerifiedLinkedVp {
|
|
|
2116
1920
|
export interface VerifiedWrapper {
|
|
2117
1921
|
/**
|
|
2118
1922
|
*
|
|
2119
|
-
* @type {Array<
|
|
1923
|
+
* @type {Array<CredentialWrapper>}
|
|
2120
1924
|
* @memberof VerifiedWrapper
|
|
2121
1925
|
*/
|
|
2122
|
-
'credentials': Array<
|
|
1926
|
+
'credentials': Array<CredentialWrapper>;
|
|
2123
1927
|
/**
|
|
2124
1928
|
* The Verifiable Presentation that was presented during the interaction.
|
|
2125
1929
|
* @type {string}
|
|
@@ -2258,6 +2062,12 @@ export interface WalletConfig {
|
|
|
2258
2062
|
* @memberof WalletConfig
|
|
2259
2063
|
*/
|
|
2260
2064
|
'EBSI'?: EbsiSpecificWalletData;
|
|
2065
|
+
/**
|
|
2066
|
+
* Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
|
|
2067
|
+
* @type {number}
|
|
2068
|
+
* @memberof WalletConfig
|
|
2069
|
+
*/
|
|
2070
|
+
'statusListExpiration'?: number;
|
|
2261
2071
|
}
|
|
2262
2072
|
export declare const WalletConfigTrustFrameworkEnum: {
|
|
2263
2073
|
readonly Ebsi: "EBSI";
|
|
@@ -2832,7 +2642,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2832
2642
|
* @param {*} [options] Override http request option.
|
|
2833
2643
|
* @throws {RequiredError}
|
|
2834
2644
|
*/
|
|
2835
|
-
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2645
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
|
|
2836
2646
|
/**
|
|
2837
2647
|
* Prepares created Verifiable Credential draft for its issuance for a specific client.
|
|
2838
2648
|
* @param {string} credentialId
|
|
@@ -3210,7 +3020,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3210
3020
|
* @param {*} [options] Override http request option.
|
|
3211
3021
|
* @throws {RequiredError}
|
|
3212
3022
|
*/
|
|
3213
|
-
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3023
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): AxiosPromise<CredentialWrapper>;
|
|
3214
3024
|
/**
|
|
3215
3025
|
* Prepares created Verifiable Credential draft for its issuance for a specific client.
|
|
3216
3026
|
* @param {string} credentialId
|
|
@@ -3593,7 +3403,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3593
3403
|
* @throws {RequiredError}
|
|
3594
3404
|
* @memberof DefaultApi
|
|
3595
3405
|
*/
|
|
3596
|
-
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3406
|
+
credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
|
|
3597
3407
|
/**
|
|
3598
3408
|
* Prepares created Verifiable Credential draft for its issuance for a specific client.
|
|
3599
3409
|
* @param {string} credentialId
|
package/api.js
CHANGED
|
@@ -38,13 +38,13 @@ exports.AccreditationRequestTypeEnum = {
|
|
|
38
38
|
RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation'
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* jwt_vc_vcdm - VC using W3C VC Data Model as jwt sd_jwt_vc - VC using sd_jwt_vc data model as jwt
|
|
42
42
|
* @export
|
|
43
43
|
* @enum {string}
|
|
44
44
|
*/
|
|
45
45
|
exports.CredentialFormat = {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
SdJwtVc: 'sd_jwt_vc',
|
|
47
|
+
JwtVcVcdm: 'jwt_vc_vcdm'
|
|
48
48
|
};
|
|
49
49
|
exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
|
|
50
50
|
CtWalletSame: 'CtWalletSame',
|