@triveria/wallet 0.0.217 → 0.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.d.ts CHANGED
@@ -289,10 +289,10 @@ export interface CredentialIssuerDefinition {
289
289
  'credentialIssuer': CredentialIssuerDefinitionCredentialIssuerEnum;
290
290
  /**
291
291
  *
292
- * @type {VPDrivenIssuerConfig}
292
+ * @type {CredentialIssuerDefinitionIssuerConfiguration}
293
293
  * @memberof CredentialIssuerDefinition
294
294
  */
295
- 'issuerConfiguration'?: VPDrivenIssuerConfig;
295
+ 'issuerConfiguration'?: CredentialIssuerDefinitionIssuerConfiguration;
296
296
  /**
297
297
  * Format of the issued credential
298
298
  * @type {string}
@@ -314,6 +314,11 @@ export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
314
314
  readonly CredentialRequirements: "CredentialRequirements";
315
315
  };
316
316
  export type CredentialIssuerDefinitionCredentialIssuerEnum = typeof CredentialIssuerDefinitionCredentialIssuerEnum[keyof typeof CredentialIssuerDefinitionCredentialIssuerEnum];
317
+ /**
318
+ * @type CredentialIssuerDefinitionIssuerConfiguration
319
+ * @export
320
+ */
321
+ export type CredentialIssuerDefinitionIssuerConfiguration = CredentialRequirementsIssuerConfig | CtWalletSameIssuerConfig | VPDrivenIssuerConfig;
317
322
  /**
318
323
  *
319
324
  * @export
@@ -560,6 +565,19 @@ export interface CredentialRequirements {
560
565
  */
561
566
  'mapping': object;
562
567
  }
568
+ /**
569
+ *
570
+ * @export
571
+ * @interface CredentialRequirementsIssuerConfig
572
+ */
573
+ export interface CredentialRequirementsIssuerConfig {
574
+ /**
575
+ * ID of the verifier used for verification of presented credential.
576
+ * @type {string}
577
+ * @memberof CredentialRequirementsIssuerConfig
578
+ */
579
+ 'credentialVerifierId': string;
580
+ }
563
581
  /**
564
582
  * @type CredentialSchema
565
583
  * 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
@@ -755,6 +773,25 @@ export interface CredentialWrapper {
755
773
  */
756
774
  'signedVc'?: string;
757
775
  }
776
+ /**
777
+ *
778
+ * @export
779
+ * @interface CtWalletSameIssuerConfig
780
+ */
781
+ export interface CtWalletSameIssuerConfig {
782
+ /**
783
+ * Default credential schema
784
+ * @type {string}
785
+ * @memberof CtWalletSameIssuerConfig
786
+ */
787
+ 'defaultSchema'?: string;
788
+ /**
789
+ * Default values for the credentialSubject property.
790
+ * @type {object}
791
+ * @memberof CtWalletSameIssuerConfig
792
+ */
793
+ 'defaultCredentialSubject'?: object;
794
+ }
758
795
  /**
759
796
  * The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.
760
797
  * @export
package/api.js CHANGED
@@ -380,6 +380,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
380
380
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
381
381
  const localVarHeaderParameter = {};
382
382
  const localVarQueryParameter = {};
383
+ // authentication accessToken required
384
+ // http bearer authentication required
385
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
383
386
  localVarHeaderParameter['Content-Type'] = 'application/json';
384
387
  if (walletId != null) {
385
388
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -417,6 +420,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
417
420
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
418
421
  const localVarHeaderParameter = {};
419
422
  const localVarQueryParameter = {};
423
+ // authentication accessToken required
424
+ // http bearer authentication required
425
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
420
426
  localVarHeaderParameter['Content-Type'] = 'application/json';
421
427
  if (walletId != null) {
422
428
  localVarHeaderParameter['wallet-id'] = String(walletId);
package/configuration.js CHANGED
@@ -23,7 +23,7 @@ class Configuration {
23
23
  this.accessToken = param.accessToken;
24
24
  this.basePath = param.basePath;
25
25
  this.serverIndex = param.serverIndex;
26
- this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': "OpenAPI-Generator/typescript-axios" }) }, param.baseOptions);
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
27
27
  this.formDataCtor = param.formDataCtor;
28
28
  }
29
29
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.217",
4
+ "version": "0.0.218",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {