@triveria/wallet 0.0.162 → 0.0.164

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 +36 -26
  2. package/api.js +40 -31
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -177,6 +177,16 @@ export interface Credential {
177
177
  */
178
178
  'proof'?: Proof;
179
179
  }
180
+ /**
181
+ *
182
+ * @export
183
+ * @enum {string}
184
+ */
185
+ export declare const CredentialFormat: {
186
+ readonly JwtVc: "jwt_vc";
187
+ readonly SdJwtVc: "sd_jwt_vc";
188
+ };
189
+ export type CredentialFormat = typeof CredentialFormat[keyof typeof CredentialFormat];
180
190
  /**
181
191
  *
182
192
  * @export
@@ -361,10 +371,10 @@ export interface CredentialRequest {
361
371
  'types': Array<string>;
362
372
  /**
363
373
  *
364
- * @type {string}
374
+ * @type {CredentialFormat}
365
375
  * @memberof CredentialRequest
366
376
  */
367
- 'format': string;
377
+ 'format': CredentialFormat;
368
378
  /**
369
379
  *
370
380
  * @type {string}
@@ -506,10 +516,10 @@ export interface CredentialToPresentWrapper {
506
516
  export interface CredentialType {
507
517
  /**
508
518
  *
509
- * @type {string}
519
+ * @type {CredentialFormat}
510
520
  * @memberof CredentialType
511
521
  */
512
- 'format': string;
522
+ 'format': CredentialFormat;
513
523
  /**
514
524
  *
515
525
  * @type {Array<string>}
@@ -756,10 +766,10 @@ export interface HolderAuthOfferCreationRequest {
756
766
  'types': Array<string>;
757
767
  /**
758
768
  *
759
- * @type {string}
769
+ * @type {CredentialFormat}
760
770
  * @memberof HolderAuthOfferCreationRequest
761
771
  */
762
- 'format': string;
772
+ 'format': CredentialFormat;
763
773
  /**
764
774
  *
765
775
  * @type {string}
@@ -832,10 +842,10 @@ export interface InitAuthOffer {
832
842
  'credentialTypes': Array<string>;
833
843
  /**
834
844
  *
835
- * @type {string}
845
+ * @type {CredentialFormat}
836
846
  * @memberof InitAuthOffer
837
847
  */
838
- 'format': string;
848
+ 'format': CredentialFormat;
839
849
  /**
840
850
  *
841
851
  * @type {string}
@@ -869,10 +879,10 @@ export interface InitPreAuthOffer {
869
879
  'credentialTypes': Array<string>;
870
880
  /**
871
881
  *
872
- * @type {string}
882
+ * @type {CredentialFormat}
873
883
  * @memberof InitPreAuthOffer
874
884
  */
875
- 'format': string;
885
+ 'format': CredentialFormat;
876
886
  /**
877
887
  *
878
888
  * @type {string}
@@ -2090,21 +2100,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2090
2100
  */
2091
2101
  walletPatch: (walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2092
2102
  /**
2093
- * Gets a specific verified profile (claims) by state
2103
+ * Gets a specific verified credentials by state
2094
2104
  * @param {string} walletId Wallet ID
2095
2105
  * @param {string} state Verifier state
2096
2106
  * @param {*} [options] Override http request option.
2097
2107
  * @throws {RequiredError}
2098
2108
  */
2099
- walletVerifiedProfileByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2109
+ walletVerifiedCredentialsByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2100
2110
  /**
2101
- * Deletes a specific verified profile (claims) by state
2111
+ * Deletes a specific verified credentials by state
2102
2112
  * @param {string} walletId Wallet ID
2103
2113
  * @param {string} state Verifier state
2104
2114
  * @param {*} [options] Override http request option.
2105
2115
  * @throws {RequiredError}
2106
2116
  */
2107
- walletVerifiedProfileDeleteByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2117
+ walletVerifiedCredentialsDeleteByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2108
2118
  };
2109
2119
  /**
2110
2120
  * DefaultApi - functional programming interface
@@ -2416,21 +2426,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2416
2426
  */
2417
2427
  walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
2418
2428
  /**
2419
- * Gets a specific verified profile (claims) by state
2429
+ * Gets a specific verified credentials by state
2420
2430
  * @param {string} walletId Wallet ID
2421
2431
  * @param {string} state Verifier state
2422
2432
  * @param {*} [options] Override http request option.
2423
2433
  * @throws {RequiredError}
2424
2434
  */
2425
- walletVerifiedProfileByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Credential>>>;
2435
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Credential>>>;
2426
2436
  /**
2427
- * Deletes a specific verified profile (claims) by state
2437
+ * Deletes a specific verified credentials by state
2428
2438
  * @param {string} walletId Wallet ID
2429
2439
  * @param {string} state Verifier state
2430
2440
  * @param {*} [options] Override http request option.
2431
2441
  * @throws {RequiredError}
2432
2442
  */
2433
- walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2443
+ walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2434
2444
  };
2435
2445
  /**
2436
2446
  * DefaultApi - factory interface
@@ -2742,21 +2752,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2742
2752
  */
2743
2753
  walletPatch(walletId: string, wallet?: Wallet, options?: any): AxiosPromise<WalletIdObject>;
2744
2754
  /**
2745
- * Gets a specific verified profile (claims) by state
2755
+ * Gets a specific verified credentials by state
2746
2756
  * @param {string} walletId Wallet ID
2747
2757
  * @param {string} state Verifier state
2748
2758
  * @param {*} [options] Override http request option.
2749
2759
  * @throws {RequiredError}
2750
2760
  */
2751
- walletVerifiedProfileByState(walletId: string, state: string, options?: any): AxiosPromise<Array<Credential>>;
2761
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: any): AxiosPromise<Array<Credential>>;
2752
2762
  /**
2753
- * Deletes a specific verified profile (claims) by state
2763
+ * Deletes a specific verified credentials by state
2754
2764
  * @param {string} walletId Wallet ID
2755
2765
  * @param {string} state Verifier state
2756
2766
  * @param {*} [options] Override http request option.
2757
2767
  * @throws {RequiredError}
2758
2768
  */
2759
- walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: any): AxiosPromise<void>;
2769
+ walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: any): AxiosPromise<void>;
2760
2770
  };
2761
2771
  /**
2762
2772
  * DefaultApi - object-oriented interface
@@ -3108,23 +3118,23 @@ export declare class DefaultApi extends BaseAPI {
3108
3118
  */
3109
3119
  walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
3110
3120
  /**
3111
- * Gets a specific verified profile (claims) by state
3121
+ * Gets a specific verified credentials by state
3112
3122
  * @param {string} walletId Wallet ID
3113
3123
  * @param {string} state Verifier state
3114
3124
  * @param {*} [options] Override http request option.
3115
3125
  * @throws {RequiredError}
3116
3126
  * @memberof DefaultApi
3117
3127
  */
3118
- walletVerifiedProfileByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential[], any>>;
3128
+ walletVerifiedCredentialsByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential[], any>>;
3119
3129
  /**
3120
- * Deletes a specific verified profile (claims) by state
3130
+ * Deletes a specific verified credentials by state
3121
3131
  * @param {string} walletId Wallet ID
3122
3132
  * @param {string} state Verifier state
3123
3133
  * @param {*} [options] Override http request option.
3124
3134
  * @throws {RequiredError}
3125
3135
  * @memberof DefaultApi
3126
3136
  */
3127
- walletVerifiedProfileDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3137
+ walletVerifiedCredentialsDeleteByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3128
3138
  }
3129
3139
  /**
3130
3140
  * @export
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.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = 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
@@ -36,6 +36,15 @@ exports.AccreditationRequestTypeEnum = {
36
36
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
37
37
  RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation'
38
38
  };
39
+ /**
40
+ *
41
+ * @export
42
+ * @enum {string}
43
+ */
44
+ exports.CredentialFormat = {
45
+ JwtVc: 'jwt_vc',
46
+ SdJwtVc: 'sd_jwt_vc'
47
+ };
39
48
  exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
40
49
  CtWalletSame: 'CtWalletSame',
41
50
  CtRevocable: 'CtRevocable',
@@ -1451,18 +1460,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1451
1460
  };
1452
1461
  }),
1453
1462
  /**
1454
- * Gets a specific verified profile (claims) by state
1463
+ * Gets a specific verified credentials by state
1455
1464
  * @param {string} walletId Wallet ID
1456
1465
  * @param {string} state Verifier state
1457
1466
  * @param {*} [options] Override http request option.
1458
1467
  * @throws {RequiredError}
1459
1468
  */
1460
- walletVerifiedProfileByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
1469
+ walletVerifiedCredentialsByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
1461
1470
  // verify required parameter 'walletId' is not null or undefined
1462
- (0, common_1.assertParamExists)('walletVerifiedProfileByState', 'walletId', walletId);
1471
+ (0, common_1.assertParamExists)('walletVerifiedCredentialsByState', 'walletId', walletId);
1463
1472
  // verify required parameter 'state' is not null or undefined
1464
- (0, common_1.assertParamExists)('walletVerifiedProfileByState', 'state', state);
1465
- const localVarPath = `/wallets/{wallet_id}/profile/{state}`
1473
+ (0, common_1.assertParamExists)('walletVerifiedCredentialsByState', 'state', state);
1474
+ const localVarPath = `/wallets/{wallet_id}/verified_credentials/{state}`
1466
1475
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
1467
1476
  .replace(`{${"state"}}`, encodeURIComponent(String(state)));
1468
1477
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1486,18 +1495,18 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1486
1495
  };
1487
1496
  }),
1488
1497
  /**
1489
- * Deletes a specific verified profile (claims) by state
1498
+ * Deletes a specific verified credentials by state
1490
1499
  * @param {string} walletId Wallet ID
1491
1500
  * @param {string} state Verifier state
1492
1501
  * @param {*} [options] Override http request option.
1493
1502
  * @throws {RequiredError}
1494
1503
  */
1495
- walletVerifiedProfileDeleteByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
1504
+ walletVerifiedCredentialsDeleteByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
1496
1505
  // verify required parameter 'walletId' is not null or undefined
1497
- (0, common_1.assertParamExists)('walletVerifiedProfileDeleteByState', 'walletId', walletId);
1506
+ (0, common_1.assertParamExists)('walletVerifiedCredentialsDeleteByState', 'walletId', walletId);
1498
1507
  // verify required parameter 'state' is not null or undefined
1499
- (0, common_1.assertParamExists)('walletVerifiedProfileDeleteByState', 'state', state);
1500
- const localVarPath = `/wallets/{wallet_id}/profile/{state}`
1508
+ (0, common_1.assertParamExists)('walletVerifiedCredentialsDeleteByState', 'state', state);
1509
+ const localVarPath = `/wallets/{wallet_id}/verified_credentials/{state}`
1501
1510
  .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
1502
1511
  .replace(`{${"state"}}`, encodeURIComponent(String(state)));
1503
1512
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2139,34 +2148,34 @@ const DefaultApiFp = function (configuration) {
2139
2148
  });
2140
2149
  },
2141
2150
  /**
2142
- * Gets a specific verified profile (claims) by state
2151
+ * Gets a specific verified credentials by state
2143
2152
  * @param {string} walletId Wallet ID
2144
2153
  * @param {string} state Verifier state
2145
2154
  * @param {*} [options] Override http request option.
2146
2155
  * @throws {RequiredError}
2147
2156
  */
2148
- walletVerifiedProfileByState(walletId, state, options) {
2157
+ walletVerifiedCredentialsByState(walletId, state, options) {
2149
2158
  var _a, _b, _c;
2150
2159
  return __awaiter(this, void 0, void 0, function* () {
2151
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedProfileByState(walletId, state, options);
2160
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsByState(walletId, state, options);
2152
2161
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2153
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedProfileByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2162
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedCredentialsByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2154
2163
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2155
2164
  });
2156
2165
  },
2157
2166
  /**
2158
- * Deletes a specific verified profile (claims) by state
2167
+ * Deletes a specific verified credentials by state
2159
2168
  * @param {string} walletId Wallet ID
2160
2169
  * @param {string} state Verifier state
2161
2170
  * @param {*} [options] Override http request option.
2162
2171
  * @throws {RequiredError}
2163
2172
  */
2164
- walletVerifiedProfileDeleteByState(walletId, state, options) {
2173
+ walletVerifiedCredentialsDeleteByState(walletId, state, options) {
2165
2174
  var _a, _b, _c;
2166
2175
  return __awaiter(this, void 0, void 0, function* () {
2167
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedProfileDeleteByState(walletId, state, options);
2176
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletVerifiedCredentialsDeleteByState(walletId, state, options);
2168
2177
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2169
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedProfileDeleteByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2178
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletVerifiedCredentialsDeleteByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2170
2179
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2171
2180
  });
2172
2181
  },
@@ -2561,24 +2570,24 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2561
2570
  return localVarFp.walletPatch(walletId, wallet, options).then((request) => request(axios, basePath));
2562
2571
  },
2563
2572
  /**
2564
- * Gets a specific verified profile (claims) by state
2573
+ * Gets a specific verified credentials by state
2565
2574
  * @param {string} walletId Wallet ID
2566
2575
  * @param {string} state Verifier state
2567
2576
  * @param {*} [options] Override http request option.
2568
2577
  * @throws {RequiredError}
2569
2578
  */
2570
- walletVerifiedProfileByState(walletId, state, options) {
2571
- return localVarFp.walletVerifiedProfileByState(walletId, state, options).then((request) => request(axios, basePath));
2579
+ walletVerifiedCredentialsByState(walletId, state, options) {
2580
+ return localVarFp.walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(axios, basePath));
2572
2581
  },
2573
2582
  /**
2574
- * Deletes a specific verified profile (claims) by state
2583
+ * Deletes a specific verified credentials by state
2575
2584
  * @param {string} walletId Wallet ID
2576
2585
  * @param {string} state Verifier state
2577
2586
  * @param {*} [options] Override http request option.
2578
2587
  * @throws {RequiredError}
2579
2588
  */
2580
- walletVerifiedProfileDeleteByState(walletId, state, options) {
2581
- return localVarFp.walletVerifiedProfileDeleteByState(walletId, state, options).then((request) => request(axios, basePath));
2589
+ walletVerifiedCredentialsDeleteByState(walletId, state, options) {
2590
+ return localVarFp.walletVerifiedCredentialsDeleteByState(walletId, state, options).then((request) => request(axios, basePath));
2582
2591
  },
2583
2592
  };
2584
2593
  };
@@ -3009,26 +3018,26 @@ class DefaultApi extends base_1.BaseAPI {
3009
3018
  return (0, exports.DefaultApiFp)(this.configuration).walletPatch(walletId, wallet, options).then((request) => request(this.axios, this.basePath));
3010
3019
  }
3011
3020
  /**
3012
- * Gets a specific verified profile (claims) by state
3021
+ * Gets a specific verified credentials by state
3013
3022
  * @param {string} walletId Wallet ID
3014
3023
  * @param {string} state Verifier state
3015
3024
  * @param {*} [options] Override http request option.
3016
3025
  * @throws {RequiredError}
3017
3026
  * @memberof DefaultApi
3018
3027
  */
3019
- walletVerifiedProfileByState(walletId, state, options) {
3020
- return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedProfileByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3028
+ walletVerifiedCredentialsByState(walletId, state, options) {
3029
+ return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3021
3030
  }
3022
3031
  /**
3023
- * Deletes a specific verified profile (claims) by state
3032
+ * Deletes a specific verified credentials by state
3024
3033
  * @param {string} walletId Wallet ID
3025
3034
  * @param {string} state Verifier state
3026
3035
  * @param {*} [options] Override http request option.
3027
3036
  * @throws {RequiredError}
3028
3037
  * @memberof DefaultApi
3029
3038
  */
3030
- walletVerifiedProfileDeleteByState(walletId, state, options) {
3031
- return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedProfileDeleteByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3039
+ walletVerifiedCredentialsDeleteByState(walletId, state, options) {
3040
+ return (0, exports.DefaultApiFp)(this.configuration).walletVerifiedCredentialsDeleteByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
3032
3041
  }
3033
3042
  }
3034
3043
  exports.DefaultApi = DefaultApi;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.162",
4
+ "version": "0.0.164",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {