@triveria/wallet 0.0.199 → 0.0.201

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 +61 -10
  2. package/api.js +19 -13
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -321,12 +321,30 @@ export interface CredentialMetadata {
321
321
  * @memberof CredentialMetadata
322
322
  */
323
323
  'id': string;
324
+ /**
325
+ *
326
+ * @type {string}
327
+ * @memberof CredentialMetadata
328
+ */
329
+ 'walletId': string;
330
+ /**
331
+ *
332
+ * @type {string}
333
+ * @memberof CredentialMetadata
334
+ */
335
+ 'ownerId': string;
324
336
  /**
325
337
  *
326
338
  * @type {string}
327
339
  * @memberof CredentialMetadata
328
340
  */
329
341
  'name': string;
342
+ /**
343
+ *
344
+ * @type {string}
345
+ * @memberof CredentialMetadata
346
+ */
347
+ 'interaction': CredentialMetadataInteractionEnum;
330
348
  /**
331
349
  *
332
350
  * @type {string}
@@ -344,13 +362,25 @@ export interface CredentialMetadata {
344
362
  * @type {string}
345
363
  * @memberof CredentialMetadata
346
364
  */
347
- 'created'?: string;
365
+ 'customId'?: string;
366
+ /**
367
+ * In case of issued credential this is the DID of the holder wallet
368
+ * @type {string}
369
+ * @memberof CredentialMetadata
370
+ */
371
+ 'offeredToClientId'?: string;
372
+ /**
373
+ *
374
+ * @type {string}
375
+ * @memberof CredentialMetadata
376
+ */
377
+ 'created': string;
348
378
  /**
349
379
  *
350
380
  * @type {string}
351
381
  * @memberof CredentialMetadata
352
382
  */
353
- 'updated'?: string;
383
+ 'updated': string;
354
384
  /**
355
385
  *
356
386
  * @type {string}
@@ -370,12 +400,33 @@ export interface CredentialMetadata {
370
400
  */
371
401
  'issuerDisplay'?: Array<IssuerDisplayItem>;
372
402
  }
403
+ export declare const CredentialMetadataInteractionEnum: {
404
+ readonly Issuance: "issuance";
405
+ readonly Receive: "receive";
406
+ readonly StatusList: "statusList";
407
+ readonly TaoCredentials: "taoCredentials";
408
+ };
409
+ export type CredentialMetadataInteractionEnum = typeof CredentialMetadataInteractionEnum[keyof typeof CredentialMetadataInteractionEnum];
373
410
  export declare const CredentialMetadataStatusEnum: {
374
411
  readonly Draft: "draft";
375
412
  readonly Valid: "valid";
376
413
  readonly Invalid: "invalid";
377
414
  };
378
415
  export type CredentialMetadataStatusEnum = typeof CredentialMetadataStatusEnum[keyof typeof CredentialMetadataStatusEnum];
416
+ /**
417
+ *
418
+ * @export
419
+ * @interface CredentialMetadataPatchPayload
420
+ */
421
+ export interface CredentialMetadataPatchPayload {
422
+ [key: string]: any;
423
+ /**
424
+ *
425
+ * @type {string}
426
+ * @memberof CredentialMetadataPatchPayload
427
+ */
428
+ 'name'?: string;
429
+ }
379
430
  /**
380
431
  * A Credential container used to create credentials with metadata.
381
432
  * @export
@@ -2143,11 +2194,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2143
2194
  * 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.
2144
2195
  * @param {string} credentialId Verifiable Credential Identifier
2145
2196
  * @param {string} walletId
2146
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
2197
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
2147
2198
  * @param {*} [options] Override http request option.
2148
2199
  * @throws {RequiredError}
2149
2200
  */
2150
- credentialMetadataPatch: (credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2201
+ credentialMetadataPatch: (credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2151
2202
  /**
2152
2203
  * 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.
2153
2204
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2523,11 +2574,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2523
2574
  * 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.
2524
2575
  * @param {string} credentialId Verifiable Credential Identifier
2525
2576
  * @param {string} walletId
2526
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
2577
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
2527
2578
  * @param {*} [options] Override http request option.
2528
2579
  * @throws {RequiredError}
2529
2580
  */
2530
- credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2581
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
2531
2582
  /**
2532
2583
  * 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.
2533
2584
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2905,11 +2956,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2905
2956
  * 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.
2906
2957
  * @param {string} credentialId Verifiable Credential Identifier
2907
2958
  * @param {string} walletId
2908
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
2959
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
2909
2960
  * @param {*} [options] Override http request option.
2910
2961
  * @throws {RequiredError}
2911
2962
  */
2912
- credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2963
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2913
2964
  /**
2914
2965
  * 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.
2915
2966
  * @param {string} credentialId Verifiable Credential Identifier
@@ -3294,12 +3345,12 @@ export declare class DefaultApi extends BaseAPI {
3294
3345
  * 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.
3295
3346
  * @param {string} credentialId Verifiable Credential Identifier
3296
3347
  * @param {string} walletId
3297
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
3348
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
3298
3349
  * @param {*} [options] Override http request option.
3299
3350
  * @throws {RequiredError}
3300
3351
  * @memberof DefaultApi
3301
3352
  */
3302
- credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadata?: CredentialMetadata, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
3353
+ credentialMetadataPatch(credentialId: string, walletId: string, credentialMetadataPatchPayload?: CredentialMetadataPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any>>;
3303
3354
  /**
3304
3355
  * 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.
3305
3356
  * @param {string} credentialId Verifiable Credential Identifier
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.OidcRevisionOidc4vciEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -51,6 +51,12 @@ exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
51
51
  IssuanceQueue: 'IssuanceQueue',
52
52
  VpDriven: 'VPDriven'
53
53
  };
54
+ exports.CredentialMetadataInteractionEnum = {
55
+ Issuance: 'issuance',
56
+ Receive: 'receive',
57
+ StatusList: 'statusList',
58
+ TaoCredentials: 'taoCredentials'
59
+ };
54
60
  exports.CredentialMetadataStatusEnum = {
55
61
  Draft: 'draft',
56
62
  Valid: 'valid',
@@ -355,11 +361,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
355
361
  * 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.
356
362
  * @param {string} credentialId Verifiable Credential Identifier
357
363
  * @param {string} walletId
358
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
364
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
359
365
  * @param {*} [options] Override http request option.
360
366
  * @throws {RequiredError}
361
367
  */
362
- credentialMetadataPatch: (credentialId, walletId, credentialMetadata, options = {}) => __awaiter(this, void 0, void 0, function* () {
368
+ credentialMetadataPatch: (credentialId, walletId, credentialMetadataPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
363
369
  // verify required parameter 'credentialId' is not null or undefined
364
370
  (0, common_1.assertParamExists)('credentialMetadataPatch', 'credentialId', credentialId);
365
371
  // verify required parameter 'walletId' is not null or undefined
@@ -382,7 +388,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
382
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
383
389
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
384
390
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
385
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialMetadata, localVarRequestOptions, configuration);
391
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(credentialMetadataPatchPayload, localVarRequestOptions, configuration);
386
392
  return {
387
393
  url: (0, common_1.toPathString)(localVarUrlObj),
388
394
  options: localVarRequestOptions,
@@ -1877,14 +1883,14 @@ const DefaultApiFp = function (configuration) {
1877
1883
  * 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.
1878
1884
  * @param {string} credentialId Verifiable Credential Identifier
1879
1885
  * @param {string} walletId
1880
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
1886
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
1881
1887
  * @param {*} [options] Override http request option.
1882
1888
  * @throws {RequiredError}
1883
1889
  */
1884
- credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
1890
+ credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
1885
1891
  var _a, _b, _c;
1886
1892
  return __awaiter(this, void 0, void 0, function* () {
1887
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialMetadataPatch(credentialId, walletId, credentialMetadata, options);
1893
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options);
1888
1894
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1889
1895
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialMetadataPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1890
1896
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2607,12 +2613,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2607
2613
  * 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.
2608
2614
  * @param {string} credentialId Verifiable Credential Identifier
2609
2615
  * @param {string} walletId
2610
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
2616
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
2611
2617
  * @param {*} [options] Override http request option.
2612
2618
  * @throws {RequiredError}
2613
2619
  */
2614
- credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
2615
- return localVarFp.credentialMetadataPatch(credentialId, walletId, credentialMetadata, options).then((request) => request(axios, basePath));
2620
+ credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
2621
+ return localVarFp.credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options).then((request) => request(axios, basePath));
2616
2622
  },
2617
2623
  /**
2618
2624
  * 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.
@@ -3090,13 +3096,13 @@ class DefaultApi extends base_1.BaseAPI {
3090
3096
  * 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.
3091
3097
  * @param {string} credentialId Verifiable Credential Identifier
3092
3098
  * @param {string} walletId
3093
- * @param {CredentialMetadata} [credentialMetadata] Verifiable Credential metadata in JSON
3099
+ * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
3094
3100
  * @param {*} [options] Override http request option.
3095
3101
  * @throws {RequiredError}
3096
3102
  * @memberof DefaultApi
3097
3103
  */
3098
- credentialMetadataPatch(credentialId, walletId, credentialMetadata, options) {
3099
- return (0, exports.DefaultApiFp)(this.configuration).credentialMetadataPatch(credentialId, walletId, credentialMetadata, options).then((request) => request(this.axios, this.basePath));
3104
+ credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options) {
3105
+ return (0, exports.DefaultApiFp)(this.configuration).credentialMetadataPatch(credentialId, walletId, credentialMetadataPatchPayload, options).then((request) => request(this.axios, this.basePath));
3100
3106
  }
3101
3107
  /**
3102
3108
  * 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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.199",
4
+ "version": "0.0.201",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {