@triveria/wallet 0.0.235 → 0.0.236

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.
Files changed (3) hide show
  1. package/api.d.ts +144 -309
  2. package/api.js +58 -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 Credential
69
+ * @interface CredentialDraftMetadata
70
70
  */
71
- export interface Credential {
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 Credential
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
95
- */
96
- 'credentialSchema'?: CredentialSchema;
97
- /**
98
- *
99
- * @type {CredentialSubject}
100
- * @memberof Credential
75
+ * @memberof CredentialDraftMetadata
101
76
  */
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
80
  * @type {string}
124
- * @memberof Credential
81
+ * @memberof CredentialDraftMetadata
125
82
  */
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
- * @type {string}
148
- * @memberof Credential
149
- */
150
- 'holder'?: string;
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 Credential
87
+ * @memberof CredentialDraftMetadata
167
88
  */
168
- '_sd_alg'?: string;
89
+ 'type': string;
169
90
  /**
170
91
  *
171
- * @type {RefreshService}
172
- * @memberof Credential
92
+ * @type {string}
93
+ * @memberof CredentialDraftMetadata
173
94
  */
174
- 'refreshService'?: RefreshService;
95
+ 'expirationDate'?: string;
175
96
  /**
176
97
  *
177
- * @type {TermsOfUse}
178
- * @memberof Credential
98
+ * @type {CredentialFormat}
99
+ * @memberof CredentialDraftMetadata
179
100
  */
180
- 'termsOfUse'?: TermsOfUse;
101
+ 'format': CredentialFormat;
181
102
  /**
182
103
  *
183
- * @type {Proof}
184
- * @memberof Credential
104
+ * @type {string}
105
+ * @memberof CredentialDraftMetadata
185
106
  */
186
- 'proof'?: Proof;
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 {Array<string>}
252
+ * @type {string}
332
253
  * @memberof CredentialIssuerDefinition
333
254
  */
334
- 'credentialType': Array<string>;
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
- * Format of the issued credential
349
- * @type {string}
269
+ *
270
+ * @type {CredentialFormat}
350
271
  * @memberof CredentialIssuerDefinition
351
272
  */
352
- 'credentialFormat'?: string;
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 {Credential}
486
+ * @type {CredentialSubject}
541
487
  * @memberof CredentialPayload
542
488
  */
543
- 'credential': Credential;
489
+ 'credentialSubject': CredentialSubject;
544
490
  /**
545
- * An internal credential label used by a holder or issuer as a human readable credential name.
546
- * @type {string}
491
+ *
492
+ * @type {CredentialDraftMetadata}
547
493
  * @memberof CredentialPayload
548
494
  */
549
- 'name': string;
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 {Array<string>}
511
+ * @type {string}
566
512
  * @memberof CredentialRequest
567
513
  */
568
- 'types': Array<string>;
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 {Credential}
687
+ * @type {CredentialSubject}
817
688
  * @memberof CredentialWrapper
818
689
  */
819
- 'vc': Credential;
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 {Array<string>}
912
+ * @type {string}
1056
913
  * @memberof HolderAuthOfferCreationRequest
1057
914
  */
1058
- 'types': Array<string>;
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 PresentationRequest
1750
+ * @interface PresentationMetadata
1908
1751
  */
1909
- export interface PresentationRequest {
1752
+ export interface PresentationMetadata {
1910
1753
  /**
1911
- * URL of verifier authorization server. MUST contain the verifier scope as a query parameter(`scope`).
1754
+ *
1912
1755
  * @type {string}
1913
- * @memberof PresentationRequest
1756
+ * @memberof PresentationMetadata
1914
1757
  */
1915
- 'verifierUrl': string;
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 Proof
1762
+ * @memberof PresentationMetadata
1927
1763
  */
1928
- 'type': string;
1764
+ 'type'?: string;
1929
1765
  /**
1930
1766
  *
1931
1767
  * @type {string}
1932
- * @memberof Proof
1768
+ * @memberof PresentationMetadata
1933
1769
  */
1934
- 'created': string;
1770
+ 'issuanceDate'?: string;
1935
1771
  /**
1936
1772
  *
1937
1773
  * @type {string}
1938
- * @memberof Proof
1774
+ * @memberof PresentationMetadata
1939
1775
  */
1940
- 'verificationMethod': string;
1776
+ 'expirationDate'?: string;
1941
1777
  /**
1942
1778
  *
1943
1779
  * @type {string}
1944
- * @memberof Proof
1780
+ * @memberof PresentationMetadata
1781
+ */
1782
+ 'issuer'?: string;
1783
+ /**
1784
+ *
1785
+ * @type {CredentialFormat}
1786
+ * @memberof PresentationMetadata
1945
1787
  */
1946
- 'proofPurpose': string;
1788
+ 'format'?: CredentialFormat;
1947
1789
  /**
1948
1790
  *
1949
1791
  * @type {string}
1950
- * @memberof Proof
1792
+ * @memberof PresentationMetadata
1951
1793
  */
1952
- 'proofValue'?: string;
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 RefreshServiceItem
1799
+ * @interface PresentationRequest
1964
1800
  */
1965
- export interface RefreshServiceItem {
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 RefreshServiceItem
1805
+ * @memberof PresentationRequest
1976
1806
  */
1977
- 'type': string;
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<Credential>}
1910
+ * @type {Array<CredentialWrapper>}
2107
1911
  * @memberof VerifiedLinkedVp
2108
1912
  */
2109
- 'credentials': Array<Credential>;
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<Credential>}
1923
+ * @type {Array<CredentialWrapper>}
2120
1924
  * @memberof VerifiedWrapper
2121
1925
  */
2122
- 'credentials': Array<Credential>;
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";
@@ -2545,6 +2355,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2545
2355
  * @throws {RequiredError}
2546
2356
  */
2547
2357
  didUpdate: (walletId: string, did?: Did, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2358
+ /**
2359
+ *
2360
+ * @param {*} [options] Override http request option.
2361
+ * @throws {RequiredError}
2362
+ */
2363
+ dummy: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2548
2364
  /**
2549
2365
  *
2550
2366
  * @param {*} [options] Override http request option.
@@ -2832,7 +2648,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2832
2648
  * @param {*} [options] Override http request option.
2833
2649
  * @throws {RequiredError}
2834
2650
  */
2835
- credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
2651
+ credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
2836
2652
  /**
2837
2653
  * Prepares created Verifiable Credential draft for its issuance for a specific client.
2838
2654
  * @param {string} credentialId
@@ -2921,6 +2737,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2921
2737
  * @throws {RequiredError}
2922
2738
  */
2923
2739
  didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
2740
+ /**
2741
+ *
2742
+ * @param {*} [options] Override http request option.
2743
+ * @throws {RequiredError}
2744
+ */
2745
+ dummy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialDraftMetadata>>;
2924
2746
  /**
2925
2747
  *
2926
2748
  * @param {*} [options] Override http request option.
@@ -3210,7 +3032,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3210
3032
  * @param {*} [options] Override http request option.
3211
3033
  * @throws {RequiredError}
3212
3034
  */
3213
- credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): AxiosPromise<Credential>;
3035
+ credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): AxiosPromise<CredentialWrapper>;
3214
3036
  /**
3215
3037
  * Prepares created Verifiable Credential draft for its issuance for a specific client.
3216
3038
  * @param {string} credentialId
@@ -3299,6 +3121,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3299
3121
  * @throws {RequiredError}
3300
3122
  */
3301
3123
  didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): AxiosPromise<Did>;
3124
+ /**
3125
+ *
3126
+ * @param {*} [options] Override http request option.
3127
+ * @throws {RequiredError}
3128
+ */
3129
+ dummy(options?: RawAxiosRequestConfig): AxiosPromise<CredentialDraftMetadata>;
3302
3130
  /**
3303
3131
  *
3304
3132
  * @param {*} [options] Override http request option.
@@ -3593,7 +3421,7 @@ export declare class DefaultApi extends BaseAPI {
3593
3421
  * @throws {RequiredError}
3594
3422
  * @memberof DefaultApi
3595
3423
  */
3596
- credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
3424
+ credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
3597
3425
  /**
3598
3426
  * Prepares created Verifiable Credential draft for its issuance for a specific client.
3599
3427
  * @param {string} credentialId
@@ -3692,6 +3520,13 @@ export declare class DefaultApi extends BaseAPI {
3692
3520
  * @memberof DefaultApi
3693
3521
  */
3694
3522
  didUpdate(walletId: string, did?: Did, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
3523
+ /**
3524
+ *
3525
+ * @param {*} [options] Override http request option.
3526
+ * @throws {RequiredError}
3527
+ * @memberof DefaultApi
3528
+ */
3529
+ dummy(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialDraftMetadata, any>>;
3695
3530
  /**
3696
3531
  *
3697
3532
  * @param {*} [options] Override http request option.
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
- JwtVc: 'jwt_vc',
47
- SdJwtVc: 'sd_jwt_vc'
46
+ SdJwtVc: 'sd_jwt_vc',
47
+ JwtVcVcdm: 'jwt_vc_vcdm'
48
48
  };
49
49
  exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
50
50
  CtWalletSame: 'CtWalletSame',
@@ -651,6 +651,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
651
651
  options: localVarRequestOptions,
652
652
  };
653
653
  }),
654
+ /**
655
+ *
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ dummy: (options = {}) => __awaiter(this, void 0, void 0, function* () {
660
+ const localVarPath = `/dummy`;
661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
662
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
663
+ let baseOptions;
664
+ if (configuration) {
665
+ baseOptions = configuration.baseOptions;
666
+ }
667
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
668
+ const localVarHeaderParameter = {};
669
+ const localVarQueryParameter = {};
670
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
671
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
672
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
673
+ return {
674
+ url: (0, common_1.toPathString)(localVarUrlObj),
675
+ options: localVarRequestOptions,
676
+ };
677
+ }),
654
678
  /**
655
679
  *
656
680
  * @param {*} [options] Override http request option.
@@ -2023,6 +2047,20 @@ const DefaultApiFp = function (configuration) {
2023
2047
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2024
2048
  });
2025
2049
  },
2050
+ /**
2051
+ *
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ */
2055
+ dummy(options) {
2056
+ var _a, _b, _c;
2057
+ return __awaiter(this, void 0, void 0, function* () {
2058
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dummy(options);
2059
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2060
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.dummy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2061
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2062
+ });
2063
+ },
2026
2064
  /**
2027
2065
  *
2028
2066
  * @param {*} [options] Override http request option.
@@ -2693,6 +2731,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2693
2731
  didUpdate(walletId, did, options) {
2694
2732
  return localVarFp.didUpdate(walletId, did, options).then((request) => request(axios, basePath));
2695
2733
  },
2734
+ /**
2735
+ *
2736
+ * @param {*} [options] Override http request option.
2737
+ * @throws {RequiredError}
2738
+ */
2739
+ dummy(options) {
2740
+ return localVarFp.dummy(options).then((request) => request(axios, basePath));
2741
+ },
2696
2742
  /**
2697
2743
  *
2698
2744
  * @param {*} [options] Override http request option.
@@ -3178,6 +3224,15 @@ class DefaultApi extends base_1.BaseAPI {
3178
3224
  didUpdate(walletId, did, options) {
3179
3225
  return (0, exports.DefaultApiFp)(this.configuration).didUpdate(walletId, did, options).then((request) => request(this.axios, this.basePath));
3180
3226
  }
3227
+ /**
3228
+ *
3229
+ * @param {*} [options] Override http request option.
3230
+ * @throws {RequiredError}
3231
+ * @memberof DefaultApi
3232
+ */
3233
+ dummy(options) {
3234
+ return (0, exports.DefaultApiFp)(this.configuration).dummy(options).then((request) => request(this.axios, this.basePath));
3235
+ }
3181
3236
  /**
3182
3237
  *
3183
3238
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.235",
4
+ "version": "0.0.236",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {