@triveria/wallet 0.0.236 → 0.0.238

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 +128 -30
  2. package/api.js +2 -57
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -669,6 +669,12 @@ export interface CredentialVerifierDefinition {
669
669
  * @memberof CredentialVerifierDefinition
670
670
  */
671
671
  'presentationDefinition': PresentationDefinition;
672
+ /**
673
+ *
674
+ * @type {DCQLQuery}
675
+ * @memberof CredentialVerifierDefinition
676
+ */
677
+ 'dcqlQuery'?: DCQLQuery;
672
678
  }
673
679
  /**
674
680
  * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
@@ -714,6 +720,98 @@ export interface CtWalletSameIssuerConfig {
714
720
  */
715
721
  'defaultCredentialSubject'?: object;
716
722
  }
723
+ /**
724
+ * JSON-based query language used to request credential presentations by verifiers.
725
+ * @export
726
+ * @interface DCQLQuery
727
+ */
728
+ export interface DCQLQuery {
729
+ /**
730
+ *
731
+ * @type {Array<DCQLQueryCredentials>}
732
+ * @memberof DCQLQuery
733
+ */
734
+ 'credentials': Array<DCQLQueryCredentials>;
735
+ }
736
+ /**
737
+ *
738
+ * @export
739
+ * @interface DCQLQueryClaim
740
+ */
741
+ export interface DCQLQueryClaim {
742
+ /**
743
+ *
744
+ * @type {string}
745
+ * @memberof DCQLQueryClaim
746
+ */
747
+ 'id': string;
748
+ /**
749
+ *
750
+ * @type {Array<DCQLQueryClaimPathInner>}
751
+ * @memberof DCQLQueryClaim
752
+ */
753
+ 'path': Array<DCQLQueryClaimPathInner>;
754
+ /**
755
+ *
756
+ * @type {Array<DCQLQueryClaimValuesInner>}
757
+ * @memberof DCQLQueryClaim
758
+ */
759
+ 'values'?: Array<DCQLQueryClaimValuesInner>;
760
+ }
761
+ /**
762
+ * @type DCQLQueryClaimPathInner
763
+ * @export
764
+ */
765
+ export type DCQLQueryClaimPathInner = number | string;
766
+ /**
767
+ * @type DCQLQueryClaimValuesInner
768
+ * @export
769
+ */
770
+ export type DCQLQueryClaimValuesInner = boolean | number | string;
771
+ /**
772
+ *
773
+ * @export
774
+ * @interface DCQLQueryCredentials
775
+ */
776
+ export interface DCQLQueryCredentials {
777
+ /**
778
+ * A string identifying the Credential in the response.
779
+ * @type {string}
780
+ * @memberof DCQLQueryCredentials
781
+ */
782
+ 'id': string;
783
+ /**
784
+ *
785
+ * @type {string}
786
+ * @memberof DCQLQueryCredentials
787
+ */
788
+ 'format': string;
789
+ /**
790
+ *
791
+ * @type {DCQLQuerySdJwtVcMeta}
792
+ * @memberof DCQLQueryCredentials
793
+ */
794
+ 'meta'?: DCQLQuerySdJwtVcMeta;
795
+ /**
796
+ *
797
+ * @type {Array<DCQLQueryClaim>}
798
+ * @memberof DCQLQueryCredentials
799
+ */
800
+ 'claims'?: Array<DCQLQueryClaim>;
801
+ }
802
+ /**
803
+ *
804
+ * @export
805
+ * @interface DCQLQuerySdJwtVcMeta
806
+ */
807
+ export interface DCQLQuerySdJwtVcMeta {
808
+ /**
809
+ *
810
+ * @type {Array<string>}
811
+ * @memberof DCQLQuerySdJwtVcMeta
812
+ */
813
+ 'vct_values'?: Array<string>;
814
+ }
717
815
  /**
718
816
  * 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.
719
817
  * @export
@@ -844,6 +942,19 @@ export interface EbsiSpecificWalletData {
844
942
  */
845
943
  'configuration': EbsiConfiguration;
846
944
  }
945
+ /**
946
+ * URLs of EUDI services
947
+ * @export
948
+ * @interface EudiConfiguration
949
+ */
950
+ export interface EudiConfiguration {
951
+ /**
952
+ * URL of EUDI Trusted List
953
+ * @type {string}
954
+ * @memberof EudiConfiguration
955
+ */
956
+ 'tslUrl': string;
957
+ }
847
958
  /**
848
959
  * Presented credential field that will be matched
849
960
  * @export
@@ -1107,6 +1218,12 @@ export interface InteractionAuthorizationRequirements {
1107
1218
  * @memberof InteractionAuthorizationRequirements
1108
1219
  */
1109
1220
  'presentationDefinition'?: PresentationDefinition;
1221
+ /**
1222
+ *
1223
+ * @type {DCQLQuery}
1224
+ * @memberof InteractionAuthorizationRequirements
1225
+ */
1226
+ 'dcqlQuery'?: DCQLQuery;
1110
1227
  /**
1111
1228
  * List of credentials suitable for presentation.
1112
1229
  * @type {Array<InputDescriptorSuitableCredentials>}
@@ -1133,6 +1250,7 @@ export interface InteractionAuthorizationRequirements {
1133
1250
  'issuerDisplay'?: Array<IssuerDisplayItem>;
1134
1251
  }
1135
1252
  export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
1253
+ readonly None: "none";
1136
1254
  readonly IdToken: "id_token";
1137
1255
  readonly VpToken: "vp_token";
1138
1256
  readonly Pin: "pin";
@@ -1394,7 +1512,7 @@ export interface OfferReceivedNotification {
1394
1512
  'credentialId'?: string;
1395
1513
  }
1396
1514
  /**
1397
- * OIDC specifications are differs drastically from version to version. EBSI needs Draft 11 revision, EUDI uses Release 1.0 revision, so this field should set the revision wallet uses. If omited Draft11 for OIDC4VCI, and Draft16 for OIDC4VP are used for the EBSI compatibility
1515
+ * Specifies the revision of OIDC4VCI and OIDC4VP specifications for issuer and verifier wallets. EBSI uses OIDC4VCI Draft11, OIDC4VP Draft16, EUDI uses OIDC4VCI Draft15, OIDC4VP Draft23. OIDC4VCI Draft11 and OIDC4VP Draft 16 are used by default for EBSI compatibility.
1398
1516
  * @export
1399
1517
  * @interface OidcRevision
1400
1518
  */
@@ -1404,18 +1522,17 @@ export interface OidcRevision {
1404
1522
  * @type {string}
1405
1523
  * @memberof OidcRevision
1406
1524
  */
1407
- 'oidc4vci'?: OidcRevisionOidc4vciEnum;
1525
+ 'oidc4vci': OidcRevisionOidc4vciEnum;
1408
1526
  /**
1409
1527
  *
1410
1528
  * @type {string}
1411
1529
  * @memberof OidcRevision
1412
1530
  */
1413
- 'oidc4vp'?: OidcRevisionOidc4vpEnum;
1531
+ 'oidc4vp': OidcRevisionOidc4vpEnum;
1414
1532
  }
1415
1533
  export declare const OidcRevisionOidc4vciEnum: {
1416
1534
  readonly Draft11: "Draft11";
1417
- readonly Draft13: "Draft13";
1418
- readonly Release10: "Release10";
1535
+ readonly Draft15: "Draft15";
1419
1536
  };
1420
1537
  export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
1421
1538
  export declare const OidcRevisionOidc4vpEnum: {
@@ -2062,6 +2179,12 @@ export interface WalletConfig {
2062
2179
  * @memberof WalletConfig
2063
2180
  */
2064
2181
  'EBSI'?: EbsiSpecificWalletData;
2182
+ /**
2183
+ *
2184
+ * @type {EudiConfiguration}
2185
+ * @memberof WalletConfig
2186
+ */
2187
+ 'EUDI'?: EudiConfiguration;
2065
2188
  /**
2066
2189
  * Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
2067
2190
  * @type {number}
@@ -2355,12 +2478,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2355
2478
  * @throws {RequiredError}
2356
2479
  */
2357
2480
  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>;
2364
2481
  /**
2365
2482
  *
2366
2483
  * @param {*} [options] Override http request option.
@@ -2737,12 +2854,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2737
2854
  * @throws {RequiredError}
2738
2855
  */
2739
2856
  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>>;
2746
2857
  /**
2747
2858
  *
2748
2859
  * @param {*} [options] Override http request option.
@@ -3121,12 +3232,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3121
3232
  * @throws {RequiredError}
3122
3233
  */
3123
3234
  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>;
3130
3235
  /**
3131
3236
  *
3132
3237
  * @param {*} [options] Override http request option.
@@ -3520,13 +3625,6 @@ export declare class DefaultApi extends BaseAPI {
3520
3625
  * @memberof DefaultApi
3521
3626
  */
3522
3627
  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>>;
3530
3628
  /**
3531
3629
  *
3532
3630
  * @param {*} [options] Override http request option.
package/api.js CHANGED
@@ -75,6 +75,7 @@ exports.HealthStatusStatusEnum = {
75
75
  Critical: 'critical'
76
76
  };
77
77
  exports.InteractionAuthorizationRequirementsRequirementTypeEnum = {
78
+ None: 'none',
78
79
  IdToken: 'id_token',
79
80
  VpToken: 'vp_token',
80
81
  Pin: 'pin'
@@ -90,8 +91,7 @@ exports.ListSort = {
90
91
  };
91
92
  exports.OidcRevisionOidc4vciEnum = {
92
93
  Draft11: 'Draft11',
93
- Draft13: 'Draft13',
94
- Release10: 'Release10'
94
+ Draft15: 'Draft15'
95
95
  };
96
96
  exports.OidcRevisionOidc4vpEnum = {
97
97
  Draft16: 'Draft16',
@@ -651,30 +651,6 @@ 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
- }),
678
654
  /**
679
655
  *
680
656
  * @param {*} [options] Override http request option.
@@ -2047,20 +2023,6 @@ const DefaultApiFp = function (configuration) {
2047
2023
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2048
2024
  });
2049
2025
  },
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
- },
2064
2026
  /**
2065
2027
  *
2066
2028
  * @param {*} [options] Override http request option.
@@ -2731,14 +2693,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2731
2693
  didUpdate(walletId, did, options) {
2732
2694
  return localVarFp.didUpdate(walletId, did, options).then((request) => request(axios, basePath));
2733
2695
  },
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
- },
2742
2696
  /**
2743
2697
  *
2744
2698
  * @param {*} [options] Override http request option.
@@ -3224,15 +3178,6 @@ class DefaultApi extends base_1.BaseAPI {
3224
3178
  didUpdate(walletId, did, options) {
3225
3179
  return (0, exports.DefaultApiFp)(this.configuration).didUpdate(walletId, did, options).then((request) => request(this.axios, this.basePath));
3226
3180
  }
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
- }
3236
3181
  /**
3237
3182
  *
3238
3183
  * @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.236",
4
+ "version": "0.0.238",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {