@triveria/wallet 0.0.46 → 0.0.48

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 +76 -59
  2. package/api.js +100 -97
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -147,6 +147,19 @@ export interface Credential {
147
147
  */
148
148
  'proof'?: Proof;
149
149
  }
150
+ /**
151
+ *
152
+ * @export
153
+ * @interface CredentialIdObject
154
+ */
155
+ export interface CredentialIdObject {
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof CredentialIdObject
160
+ */
161
+ 'id': string;
162
+ }
150
163
  /**
151
164
  *
152
165
  * @export
@@ -1134,7 +1147,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1134
1147
  */
1135
1148
  accreditAsTrustedIssuer: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1136
1149
  /**
1137
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1150
+ * Creates a new credential, which is always created in a draft state.
1138
1151
  * @param {string} walletId
1139
1152
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1140
1153
  * @param {*} [options] Override http request option.
@@ -1158,37 +1171,38 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1158
1171
  */
1159
1172
  credentialImport: (walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1160
1173
  /**
1161
- *
1162
- * @param {string} credentialId Verifiable Credential Identifier
1174
+ * Retrieves a list of credentials.
1163
1175
  * @param {string} walletId
1164
1176
  * @param {*} [options] Override http request option.
1165
1177
  * @throws {RequiredError}
1166
1178
  */
1167
- credentialIssue: (credentialId: string, walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1179
+ credentialList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1168
1180
  /**
1169
- * Retrieves a list of credentials.
1181
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1182
+ * @param {string} credentialId Verifiable Credential Identifier
1170
1183
  * @param {string} walletId
1184
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1171
1185
  * @param {*} [options] Override http request option.
1172
1186
  * @throws {RequiredError}
1173
1187
  */
1174
- credentialList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1188
+ credentialMetadataPatch: (credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1175
1189
  /**
1176
- * TBD
1190
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1191
+ * @param {string} credentialId Verifiable Credential Identifier
1177
1192
  * @param {string} walletId
1178
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1193
+ * @param {CredentialPayload} [credentialPayload]
1179
1194
  * @param {*} [options] Override http request option.
1180
1195
  * @throws {RequiredError}
1181
1196
  */
1182
- credentialRequest: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1197
+ credentialPatch: (credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1183
1198
  /**
1184
- *
1185
- * @param {string} credentialId Verifiable Credential Identifier
1199
+ * TBD
1186
1200
  * @param {string} walletId
1187
- * @param {Credential} [credential] Verifiable Credential in JSON format
1201
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1188
1202
  * @param {*} [options] Override http request option.
1189
1203
  * @throws {RequiredError}
1190
1204
  */
1191
- credentialUpdate: (credentialId: string, walletId: string, credential?: Credential, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1205
+ credentialRequest: (walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1192
1206
  /**
1193
1207
  *
1194
1208
  * @param {string} deferredId Deferred token
@@ -1234,7 +1248,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1234
1248
  */
1235
1249
  oidcAcceptOffer: (walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1236
1250
  /**
1237
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1251
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1238
1252
  * @param {string} credentialId
1239
1253
  * @param {string} walletId
1240
1254
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1346,13 +1360,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1346
1360
  */
1347
1361
  accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1348
1362
  /**
1349
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1363
+ * Creates a new credential, which is always created in a draft state.
1350
1364
  * @param {string} walletId
1351
1365
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1352
1366
  * @param {*} [options] Override http request option.
1353
1367
  * @throws {RequiredError}
1354
1368
  */
1355
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
1369
+ credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1356
1370
  /**
1357
1371
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
1358
1372
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1370,37 +1384,38 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1370
1384
  */
1371
1385
  credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
1372
1386
  /**
1373
- *
1374
- * @param {string} credentialId Verifiable Credential Identifier
1387
+ * Retrieves a list of credentials.
1375
1388
  * @param {string} walletId
1376
1389
  * @param {*} [options] Override http request option.
1377
1390
  * @throws {RequiredError}
1378
1391
  */
1379
- credentialIssue(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1392
+ credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1380
1393
  /**
1381
- * Retrieves a list of credentials.
1394
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1395
+ * @param {string} credentialId Verifiable Credential Identifier
1382
1396
  * @param {string} walletId
1397
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1383
1398
  * @param {*} [options] Override http request option.
1384
1399
  * @throws {RequiredError}
1385
1400
  */
1386
- credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1401
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1387
1402
  /**
1388
- * TBD
1403
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1404
+ * @param {string} credentialId Verifiable Credential Identifier
1389
1405
  * @param {string} walletId
1390
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1406
+ * @param {CredentialPayload} [credentialPayload]
1391
1407
  * @param {*} [options] Override http request option.
1392
1408
  * @throws {RequiredError}
1393
1409
  */
1394
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
1410
+ credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1395
1411
  /**
1396
- *
1397
- * @param {string} credentialId Verifiable Credential Identifier
1412
+ * TBD
1398
1413
  * @param {string} walletId
1399
- * @param {Credential} [credential] Verifiable Credential in JSON format
1414
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1400
1415
  * @param {*} [options] Override http request option.
1401
1416
  * @throws {RequiredError}
1402
1417
  */
1403
- credentialUpdate(credentialId: string, walletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
1418
+ credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
1404
1419
  /**
1405
1420
  *
1406
1421
  * @param {string} deferredId Deferred token
@@ -1446,7 +1461,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1446
1461
  */
1447
1462
  oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
1448
1463
  /**
1449
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1464
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1450
1465
  * @param {string} credentialId
1451
1466
  * @param {string} walletId
1452
1467
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1558,13 +1573,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1558
1573
  */
1559
1574
  accreditAsTrustedIssuer(walletId: string, options?: any): AxiosPromise<void>;
1560
1575
  /**
1561
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1576
+ * Creates a new credential, which is always created in a draft state.
1562
1577
  * @param {string} walletId
1563
1578
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1564
1579
  * @param {*} [options] Override http request option.
1565
1580
  * @throws {RequiredError}
1566
1581
  */
1567
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: any): AxiosPromise<Credential>;
1582
+ credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: any): AxiosPromise<CredentialIdObject>;
1568
1583
  /**
1569
1584
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
1570
1585
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1582,37 +1597,38 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1582
1597
  */
1583
1598
  credentialImport(walletId: string, credentialImport?: CredentialImport, options?: any): AxiosPromise<Credential>;
1584
1599
  /**
1585
- *
1586
- * @param {string} credentialId Verifiable Credential Identifier
1600
+ * Retrieves a list of credentials.
1587
1601
  * @param {string} walletId
1588
1602
  * @param {*} [options] Override http request option.
1589
1603
  * @throws {RequiredError}
1590
1604
  */
1591
- credentialIssue(credentialId: string, walletId: string, options?: any): AxiosPromise<void>;
1605
+ credentialList(walletId: string, options?: any): AxiosPromise<CredentialList>;
1592
1606
  /**
1593
- * Retrieves a list of credentials.
1607
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1608
+ * @param {string} credentialId Verifiable Credential Identifier
1594
1609
  * @param {string} walletId
1610
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1595
1611
  * @param {*} [options] Override http request option.
1596
1612
  * @throws {RequiredError}
1597
1613
  */
1598
- credentialList(walletId: string, options?: any): AxiosPromise<CredentialList>;
1614
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: any): AxiosPromise<CredentialIdObject>;
1599
1615
  /**
1600
- * TBD
1616
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1617
+ * @param {string} credentialId Verifiable Credential Identifier
1601
1618
  * @param {string} walletId
1602
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1619
+ * @param {CredentialPayload} [credentialPayload]
1603
1620
  * @param {*} [options] Override http request option.
1604
1621
  * @throws {RequiredError}
1605
1622
  */
1606
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<string>>;
1623
+ credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: any): AxiosPromise<CredentialIdObject>;
1607
1624
  /**
1608
- *
1609
- * @param {string} credentialId Verifiable Credential Identifier
1625
+ * TBD
1610
1626
  * @param {string} walletId
1611
- * @param {Credential} [credential] Verifiable Credential in JSON format
1627
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1612
1628
  * @param {*} [options] Override http request option.
1613
1629
  * @throws {RequiredError}
1614
1630
  */
1615
- credentialUpdate(credentialId: string, walletId: string, credential?: Credential, options?: any): AxiosPromise<Credential>;
1631
+ credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: any): AxiosPromise<Array<string>>;
1616
1632
  /**
1617
1633
  *
1618
1634
  * @param {string} deferredId Deferred token
@@ -1658,7 +1674,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1658
1674
  */
1659
1675
  oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: any): AxiosPromise<Array<string>>;
1660
1676
  /**
1661
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1677
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1662
1678
  * @param {string} credentialId
1663
1679
  * @param {string} walletId
1664
1680
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1773,14 +1789,14 @@ export declare class DefaultApi extends BaseAPI {
1773
1789
  */
1774
1790
  accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1775
1791
  /**
1776
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1792
+ * Creates a new credential, which is always created in a draft state.
1777
1793
  * @param {string} walletId
1778
1794
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1779
1795
  * @param {*} [options] Override http request option.
1780
1796
  * @throws {RequiredError}
1781
1797
  * @memberof DefaultApi
1782
1798
  */
1783
- credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1799
+ credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
1784
1800
  /**
1785
1801
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
1786
1802
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1800,41 +1816,42 @@ export declare class DefaultApi extends BaseAPI {
1800
1816
  */
1801
1817
  credentialImport(walletId: string, credentialImport?: CredentialImport, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1802
1818
  /**
1803
- *
1804
- * @param {string} credentialId Verifiable Credential Identifier
1819
+ * Retrieves a list of credentials.
1805
1820
  * @param {string} walletId
1806
1821
  * @param {*} [options] Override http request option.
1807
1822
  * @throws {RequiredError}
1808
1823
  * @memberof DefaultApi
1809
1824
  */
1810
- credentialIssue(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1825
+ credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1811
1826
  /**
1812
- * Retrieves a list of credentials.
1827
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1828
+ * @param {string} credentialId Verifiable Credential Identifier
1813
1829
  * @param {string} walletId
1830
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1814
1831
  * @param {*} [options] Override http request option.
1815
1832
  * @throws {RequiredError}
1816
1833
  * @memberof DefaultApi
1817
1834
  */
1818
- credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1835
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
1819
1836
  /**
1820
- * TBD
1837
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1838
+ * @param {string} credentialId Verifiable Credential Identifier
1821
1839
  * @param {string} walletId
1822
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1840
+ * @param {CredentialPayload} [credentialPayload]
1823
1841
  * @param {*} [options] Override http request option.
1824
1842
  * @throws {RequiredError}
1825
1843
  * @memberof DefaultApi
1826
1844
  */
1827
- credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
1845
+ credentialPatch(credentialId: string, walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
1828
1846
  /**
1829
- *
1830
- * @param {string} credentialId Verifiable Credential Identifier
1847
+ * TBD
1831
1848
  * @param {string} walletId
1832
- * @param {Credential} [credential] Verifiable Credential in JSON format
1849
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1833
1850
  * @param {*} [options] Override http request option.
1834
1851
  * @throws {RequiredError}
1835
1852
  * @memberof DefaultApi
1836
1853
  */
1837
- credentialUpdate(credentialId: string, walletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1854
+ credentialRequest(walletId: string, credentialRequest?: CredentialRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
1838
1855
  /**
1839
1856
  *
1840
1857
  * @param {string} deferredId Deferred token
@@ -1886,7 +1903,7 @@ export declare class DefaultApi extends BaseAPI {
1886
1903
  */
1887
1904
  oidcAcceptOffer(walletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
1888
1905
  /**
1889
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1906
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1890
1907
  * @param {string} credentialId
1891
1908
  * @param {string} walletId
1892
1909
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
package/api.js CHANGED
@@ -103,7 +103,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
103
103
  };
104
104
  }),
105
105
  /**
106
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
106
+ * Creates a new credential, which is always created in a draft state.
107
107
  * @param {string} walletId
108
108
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
109
109
  * @param {*} [options] Override http request option.
@@ -212,26 +212,22 @@ const DefaultApiAxiosParamCreator = function (configuration) {
212
212
  };
213
213
  }),
214
214
  /**
215
- *
216
- * @param {string} credentialId Verifiable Credential Identifier
215
+ * Retrieves a list of credentials.
217
216
  * @param {string} walletId
218
217
  * @param {*} [options] Override http request option.
219
218
  * @throws {RequiredError}
220
219
  */
221
- credentialIssue: (credentialId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
222
- // verify required parameter 'credentialId' is not null or undefined
223
- (0, common_1.assertParamExists)('credentialIssue', 'credentialId', credentialId);
220
+ credentialList: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
224
221
  // verify required parameter 'walletId' is not null or undefined
225
- (0, common_1.assertParamExists)('credentialIssue', 'walletId', walletId);
226
- const localVarPath = `/credentials/{credential_id}/issue`
227
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
222
+ (0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
223
+ const localVarPath = `/credentials`;
228
224
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
229
225
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
230
226
  let baseOptions;
231
227
  if (configuration) {
232
228
  baseOptions = configuration.baseOptions;
233
229
  }
234
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
230
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
235
231
  const localVarHeaderParameter = {};
236
232
  const localVarQueryParameter = {};
237
233
  // authentication accessToken required
@@ -249,61 +245,66 @@ const DefaultApiAxiosParamCreator = function (configuration) {
249
245
  };
250
246
  }),
251
247
  /**
252
- * Retrieves a list of credentials.
248
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
249
+ * @param {string} credentialId Verifiable Credential Identifier
253
250
  * @param {string} walletId
251
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
254
252
  * @param {*} [options] Override http request option.
255
253
  * @throws {RequiredError}
256
254
  */
257
- credentialList: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
255
+ credentialMetadataPatch: (credentialId, walletId, credentialMetadata, options = {}) => __awaiter(this, void 0, void 0, function* () {
256
+ // verify required parameter 'credentialId' is not null or undefined
257
+ (0, common_1.assertParamExists)('credentialMetadataPatch', 'credentialId', credentialId);
258
258
  // verify required parameter 'walletId' is not null or undefined
259
- (0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
260
- const localVarPath = `/credentials`;
259
+ (0, common_1.assertParamExists)('credentialMetadataPatch', 'walletId', walletId);
260
+ const localVarPath = `/credentials/{credential_id}/metadata`
261
+ .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
261
262
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
262
263
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
263
264
  let baseOptions;
264
265
  if (configuration) {
265
266
  baseOptions = configuration.baseOptions;
266
267
  }
267
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
268
269
  const localVarHeaderParameter = {};
269
270
  const localVarQueryParameter = {};
270
- // authentication accessToken required
271
- // http bearer authentication required
272
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
273
271
  if (walletId != null) {
274
272
  localVarHeaderParameter['wallet-id'] = String(walletId);
275
273
  }
274
+ localVarHeaderParameter['Content-Type'] = 'application/json';
276
275
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
277
276
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
277
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialMetadata, localVarRequestOptions, configuration);
279
279
  return {
280
280
  url: (0, common_1.toPathString)(localVarUrlObj),
281
281
  options: localVarRequestOptions,
282
282
  };
283
283
  }),
284
284
  /**
285
- * TBD
285
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
286
+ * @param {string} credentialId Verifiable Credential Identifier
286
287
  * @param {string} walletId
287
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
288
+ * @param {CredentialPayload} [credentialPayload]
288
289
  * @param {*} [options] Override http request option.
289
290
  * @throws {RequiredError}
290
291
  */
291
- credentialRequest: (walletId, credentialRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
292
+ credentialPatch: (credentialId, walletId, credentialPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
293
+ // verify required parameter 'credentialId' is not null or undefined
294
+ (0, common_1.assertParamExists)('credentialPatch', 'credentialId', credentialId);
292
295
  // verify required parameter 'walletId' is not null or undefined
293
- (0, common_1.assertParamExists)('credentialRequest', 'walletId', walletId);
294
- const localVarPath = `/credentials/request`;
296
+ (0, common_1.assertParamExists)('credentialPatch', 'walletId', walletId);
297
+ const localVarPath = `/credentials/{credential_id}`
298
+ .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
295
299
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
296
300
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
297
301
  let baseOptions;
298
302
  if (configuration) {
299
303
  baseOptions = configuration.baseOptions;
300
304
  }
301
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
305
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
302
306
  const localVarHeaderParameter = {};
303
307
  const localVarQueryParameter = {};
304
- // authentication accessToken required
305
- // http bearer authentication required
306
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
307
308
  if (walletId != null) {
308
309
  localVarHeaderParameter['wallet-id'] = String(walletId);
309
310
  }
@@ -311,27 +312,23 @@ const DefaultApiAxiosParamCreator = function (configuration) {
311
312
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
313
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
314
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
315
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialPayload, localVarRequestOptions, configuration);
315
316
  return {
316
317
  url: (0, common_1.toPathString)(localVarUrlObj),
317
318
  options: localVarRequestOptions,
318
319
  };
319
320
  }),
320
321
  /**
321
- *
322
- * @param {string} credentialId Verifiable Credential Identifier
322
+ * TBD
323
323
  * @param {string} walletId
324
- * @param {Credential} [credential] Verifiable Credential in JSON format
324
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
325
325
  * @param {*} [options] Override http request option.
326
326
  * @throws {RequiredError}
327
327
  */
328
- credentialUpdate: (credentialId, walletId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
329
- // verify required parameter 'credentialId' is not null or undefined
330
- (0, common_1.assertParamExists)('credentialUpdate', 'credentialId', credentialId);
328
+ credentialRequest: (walletId, credentialRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
331
329
  // verify required parameter 'walletId' is not null or undefined
332
- (0, common_1.assertParamExists)('credentialUpdate', 'walletId', walletId);
333
- const localVarPath = `/credentials/{credential_id}`
334
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
330
+ (0, common_1.assertParamExists)('credentialRequest', 'walletId', walletId);
331
+ const localVarPath = `/credentials/request`;
335
332
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
333
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
337
334
  let baseOptions;
@@ -341,6 +338,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
341
338
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
342
339
  const localVarHeaderParameter = {};
343
340
  const localVarQueryParameter = {};
341
+ // authentication accessToken required
342
+ // http bearer authentication required
343
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
344
344
  if (walletId != null) {
345
345
  localVarHeaderParameter['wallet-id'] = String(walletId);
346
346
  }
@@ -348,7 +348,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
348
348
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
349
349
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
350
350
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
351
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credential, localVarRequestOptions, configuration);
351
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialRequest, localVarRequestOptions, configuration);
352
352
  return {
353
353
  url: (0, common_1.toPathString)(localVarUrlObj),
354
354
  options: localVarRequestOptions,
@@ -551,7 +551,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
551
551
  };
552
552
  }),
553
553
  /**
554
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
554
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
555
555
  * @param {string} credentialId
556
556
  * @param {string} walletId
557
557
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1020,7 +1020,7 @@ const DefaultApiFp = function (configuration) {
1020
1020
  });
1021
1021
  },
1022
1022
  /**
1023
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1023
+ * Creates a new credential, which is always created in a draft state.
1024
1024
  * @param {string} walletId
1025
1025
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1026
1026
  * @param {*} [options] Override http request option.
@@ -1068,66 +1068,67 @@ const DefaultApiFp = function (configuration) {
1068
1068
  });
1069
1069
  },
1070
1070
  /**
1071
- *
1072
- * @param {string} credentialId Verifiable Credential Identifier
1071
+ * Retrieves a list of credentials.
1073
1072
  * @param {string} walletId
1074
1073
  * @param {*} [options] Override http request option.
1075
1074
  * @throws {RequiredError}
1076
1075
  */
1077
- credentialIssue(credentialId, walletId, options) {
1076
+ credentialList(walletId, options) {
1078
1077
  var _a, _b, _c;
1079
1078
  return __awaiter(this, void 0, void 0, function* () {
1080
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, walletId, options);
1079
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, options);
1081
1080
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1082
- const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialIssue']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1081
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1083
1082
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1084
1083
  });
1085
1084
  },
1086
1085
  /**
1087
- * Retrieves a list of credentials.
1086
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1087
+ * @param {string} credentialId Verifiable Credential Identifier
1088
1088
  * @param {string} walletId
1089
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1089
1090
  * @param {*} [options] Override http request option.
1090
1091
  * @throws {RequiredError}
1091
1092
  */
1092
- credentialList(walletId, options) {
1093
+ credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
1093
1094
  var _a, _b, _c;
1094
1095
  return __awaiter(this, void 0, void 0, function* () {
1095
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, options);
1096
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialMetadataPatch(credentialId, walletId, credentialMetadata, options);
1096
1097
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1097
- const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1098
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialMetadataPatch']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1098
1099
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1099
1100
  });
1100
1101
  },
1101
1102
  /**
1102
- * TBD
1103
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1104
+ * @param {string} credentialId Verifiable Credential Identifier
1103
1105
  * @param {string} walletId
1104
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1106
+ * @param {CredentialPayload} [credentialPayload]
1105
1107
  * @param {*} [options] Override http request option.
1106
1108
  * @throws {RequiredError}
1107
1109
  */
1108
- credentialRequest(walletId, credentialRequest, options) {
1110
+ credentialPatch(credentialId, walletId, credentialPayload, options) {
1109
1111
  var _a, _b, _c;
1110
1112
  return __awaiter(this, void 0, void 0, function* () {
1111
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRequest(walletId, credentialRequest, options);
1113
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialPatch(credentialId, walletId, credentialPayload, options);
1112
1114
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1113
- const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRequest']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1115
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialPatch']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1114
1116
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1115
1117
  });
1116
1118
  },
1117
1119
  /**
1118
- *
1119
- * @param {string} credentialId Verifiable Credential Identifier
1120
+ * TBD
1120
1121
  * @param {string} walletId
1121
- * @param {Credential} [credential] Verifiable Credential in JSON format
1122
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1122
1123
  * @param {*} [options] Override http request option.
1123
1124
  * @throws {RequiredError}
1124
1125
  */
1125
- credentialUpdate(credentialId, walletId, credential, options) {
1126
+ credentialRequest(walletId, credentialRequest, options) {
1126
1127
  var _a, _b, _c;
1127
1128
  return __awaiter(this, void 0, void 0, function* () {
1128
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, walletId, credential, options);
1129
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialRequest(walletId, credentialRequest, options);
1129
1130
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1130
- const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialUpdate']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1131
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialRequest']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1131
1132
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1132
1133
  });
1133
1134
  },
@@ -1224,7 +1225,7 @@ const DefaultApiFp = function (configuration) {
1224
1225
  });
1225
1226
  },
1226
1227
  /**
1227
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1228
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1228
1229
  * @param {string} credentialId
1229
1230
  * @param {string} walletId
1230
1231
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1446,7 +1447,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1446
1447
  return localVarFp.accreditAsTrustedIssuer(walletId, options).then((request) => request(axios, basePath));
1447
1448
  },
1448
1449
  /**
1449
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1450
+ * Creates a new credential, which is always created in a draft state.
1450
1451
  * @param {string} walletId
1451
1452
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1452
1453
  * @param {*} [options] Override http request option.
@@ -1476,44 +1477,45 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1476
1477
  return localVarFp.credentialImport(walletId, credentialImport, options).then((request) => request(axios, basePath));
1477
1478
  },
1478
1479
  /**
1479
- *
1480
- * @param {string} credentialId Verifiable Credential Identifier
1480
+ * Retrieves a list of credentials.
1481
1481
  * @param {string} walletId
1482
1482
  * @param {*} [options] Override http request option.
1483
1483
  * @throws {RequiredError}
1484
1484
  */
1485
- credentialIssue(credentialId, walletId, options) {
1486
- return localVarFp.credentialIssue(credentialId, walletId, options).then((request) => request(axios, basePath));
1485
+ credentialList(walletId, options) {
1486
+ return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
1487
1487
  },
1488
1488
  /**
1489
- * Retrieves a list of credentials.
1489
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1490
+ * @param {string} credentialId Verifiable Credential Identifier
1490
1491
  * @param {string} walletId
1492
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1491
1493
  * @param {*} [options] Override http request option.
1492
1494
  * @throws {RequiredError}
1493
1495
  */
1494
- credentialList(walletId, options) {
1495
- return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
1496
+ credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
1497
+ return localVarFp.credentialMetadataPatch(credentialId, walletId, credentialMetadata, options).then((request) => request(axios, basePath));
1496
1498
  },
1497
1499
  /**
1498
- * TBD
1500
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1501
+ * @param {string} credentialId Verifiable Credential Identifier
1499
1502
  * @param {string} walletId
1500
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1503
+ * @param {CredentialPayload} [credentialPayload]
1501
1504
  * @param {*} [options] Override http request option.
1502
1505
  * @throws {RequiredError}
1503
1506
  */
1504
- credentialRequest(walletId, credentialRequest, options) {
1505
- return localVarFp.credentialRequest(walletId, credentialRequest, options).then((request) => request(axios, basePath));
1507
+ credentialPatch(credentialId, walletId, credentialPayload, options) {
1508
+ return localVarFp.credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(axios, basePath));
1506
1509
  },
1507
1510
  /**
1508
- *
1509
- * @param {string} credentialId Verifiable Credential Identifier
1511
+ * TBD
1510
1512
  * @param {string} walletId
1511
- * @param {Credential} [credential] Verifiable Credential in JSON format
1513
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1512
1514
  * @param {*} [options] Override http request option.
1513
1515
  * @throws {RequiredError}
1514
1516
  */
1515
- credentialUpdate(credentialId, walletId, credential, options) {
1516
- return localVarFp.credentialUpdate(credentialId, walletId, credential, options).then((request) => request(axios, basePath));
1517
+ credentialRequest(walletId, credentialRequest, options) {
1518
+ return localVarFp.credentialRequest(walletId, credentialRequest, options).then((request) => request(axios, basePath));
1517
1519
  },
1518
1520
  /**
1519
1521
  *
@@ -1572,7 +1574,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1572
1574
  return localVarFp.oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(axios, basePath));
1573
1575
  },
1574
1576
  /**
1575
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1577
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1576
1578
  * @param {string} credentialId
1577
1579
  * @param {string} walletId
1578
1580
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
@@ -1717,7 +1719,7 @@ class DefaultApi extends base_1.BaseAPI {
1717
1719
  return (0, exports.DefaultApiFp)(this.configuration).accreditAsTrustedIssuer(walletId, options).then((request) => request(this.axios, this.basePath));
1718
1720
  }
1719
1721
  /**
1720
- * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1722
+ * Creates a new credential, which is always created in a draft state.
1721
1723
  * @param {string} walletId
1722
1724
  * @param {CredentialPayload} [credentialPayload] A Verifiable Credential payload in JSON format.
1723
1725
  * @param {*} [options] Override http request option.
@@ -1750,48 +1752,49 @@ class DefaultApi extends base_1.BaseAPI {
1750
1752
  return (0, exports.DefaultApiFp)(this.configuration).credentialImport(walletId, credentialImport, options).then((request) => request(this.axios, this.basePath));
1751
1753
  }
1752
1754
  /**
1753
- *
1754
- * @param {string} credentialId Verifiable Credential Identifier
1755
+ * Retrieves a list of credentials.
1755
1756
  * @param {string} walletId
1756
1757
  * @param {*} [options] Override http request option.
1757
1758
  * @throws {RequiredError}
1758
1759
  * @memberof DefaultApi
1759
1760
  */
1760
- credentialIssue(credentialId, walletId, options) {
1761
- return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
1761
+ credentialList(walletId, options) {
1762
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
1762
1763
  }
1763
1764
  /**
1764
- * Retrieves a list of credentials.
1765
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1766
+ * @param {string} credentialId Verifiable Credential Identifier
1765
1767
  * @param {string} walletId
1768
+ * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1766
1769
  * @param {*} [options] Override http request option.
1767
1770
  * @throws {RequiredError}
1768
1771
  * @memberof DefaultApi
1769
1772
  */
1770
- credentialList(walletId, options) {
1771
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
1773
+ credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
1774
+ return (0, exports.DefaultApiFp)(this.configuration).credentialMetadataPatch(credentialId, walletId, credentialMetadata, options).then((request) => request(this.axios, this.basePath));
1772
1775
  }
1773
1776
  /**
1774
- * TBD
1777
+ * Endpoint used to update an existing Credential in draft state. Can be used for additional updates before the Credential is issued. After credential is issued it may not be changed in any way.
1778
+ * @param {string} credentialId Verifiable Credential Identifier
1775
1779
  * @param {string} walletId
1776
- * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1780
+ * @param {CredentialPayload} [credentialPayload]
1777
1781
  * @param {*} [options] Override http request option.
1778
1782
  * @throws {RequiredError}
1779
1783
  * @memberof DefaultApi
1780
1784
  */
1781
- credentialRequest(walletId, credentialRequest, options) {
1782
- return (0, exports.DefaultApiFp)(this.configuration).credentialRequest(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
1785
+ credentialPatch(credentialId, walletId, credentialPayload, options) {
1786
+ return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
1783
1787
  }
1784
1788
  /**
1785
- *
1786
- * @param {string} credentialId Verifiable Credential Identifier
1789
+ * TBD
1787
1790
  * @param {string} walletId
1788
- * @param {Credential} [credential] Verifiable Credential in JSON format
1791
+ * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1789
1792
  * @param {*} [options] Override http request option.
1790
1793
  * @throws {RequiredError}
1791
1794
  * @memberof DefaultApi
1792
1795
  */
1793
- credentialUpdate(credentialId, walletId, credential, options) {
1794
- return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, walletId, credential, options).then((request) => request(this.axios, this.basePath));
1796
+ credentialRequest(walletId, credentialRequest, options) {
1797
+ return (0, exports.DefaultApiFp)(this.configuration).credentialRequest(walletId, credentialRequest, options).then((request) => request(this.axios, this.basePath));
1795
1798
  }
1796
1799
  /**
1797
1800
  *
@@ -1856,7 +1859,7 @@ class DefaultApi extends base_1.BaseAPI {
1856
1859
  return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
1857
1860
  }
1858
1861
  /**
1859
- * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1862
+ * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1860
1863
  * @param {string} credentialId
1861
1864
  * @param {string} walletId
1862
1865
  * @param {IssuanceQueueCredentialAdd} [issuanceQueueCredentialAdd]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.46",
4
+ "version": "0.0.48",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {