@triveria/wallet 0.0.39 → 0.0.41

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 +67 -35
  2. package/api.js +134 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -577,7 +577,7 @@ export interface InitAuthOffer {
577
577
  'offerEndpoint'?: string;
578
578
  }
579
579
  /**
580
- * Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
580
+ * Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
581
581
  * @export
582
582
  * @interface InitPreAuthOffer
583
583
  */
@@ -748,10 +748,10 @@ export interface PresentationDefinitionInputConstraint {
748
748
  export interface PresentationDefinitionInputConstraintField {
749
749
  /**
750
750
  *
751
- * @type {PresentationDefinitionInputDescriptorFilter}
751
+ * @type {object}
752
752
  * @memberof PresentationDefinitionInputConstraintField
753
753
  */
754
- 'filter': PresentationDefinitionInputDescriptorFilter;
754
+ 'filter': object;
755
755
  /**
756
756
  *
757
757
  * @type {Array<string>}
@@ -759,19 +759,6 @@ export interface PresentationDefinitionInputConstraintField {
759
759
  */
760
760
  'path': Array<string>;
761
761
  }
762
- /**
763
- *
764
- * @export
765
- * @interface PresentationDefinitionInputContains
766
- */
767
- export interface PresentationDefinitionInputContains {
768
- /**
769
- *
770
- * @type {string}
771
- * @memberof PresentationDefinitionInputContains
772
- */
773
- 'const': string;
774
- }
775
762
  /**
776
763
  *
777
764
  * @export
@@ -791,25 +778,6 @@ export interface PresentationDefinitionInputDescriptor {
791
778
  */
792
779
  'constraints': PresentationDefinitionInputConstraint;
793
780
  }
794
- /**
795
- *
796
- * @export
797
- * @interface PresentationDefinitionInputDescriptorFilter
798
- */
799
- export interface PresentationDefinitionInputDescriptorFilter {
800
- /**
801
- *
802
- * @type {string}
803
- * @memberof PresentationDefinitionInputDescriptorFilter
804
- */
805
- 'type': string;
806
- /**
807
- *
808
- * @type {PresentationDefinitionInputContains}
809
- * @memberof PresentationDefinitionInputDescriptorFilter
810
- */
811
- 'contains': PresentationDefinitionInputContains;
812
- }
813
781
  /**
814
782
  *
815
783
  * @export
@@ -954,6 +922,12 @@ export interface VcOffer {
954
922
  * @memberof VcOffer
955
923
  */
956
924
  'Pin'?: string;
925
+ /**
926
+ *
927
+ * @type {boolean}
928
+ * @memberof VcOffer
929
+ */
930
+ 'LegalEntity'?: boolean;
957
931
  }
958
932
  /**
959
933
  * Request for the creation of URL used by holder to present credentials to a verifier. Either clientId or idTokenRequestId MUST be present.
@@ -1102,6 +1076,13 @@ export type WalletNotificationEventDetails = IdTokenReceivedNotification | VpVer
1102
1076
  * @export
1103
1077
  */
1104
1078
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
1079
+ /**
1080
+ * TBD
1081
+ * @param {string} walletId
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ accreditAsTrustedIssuer: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1105
1086
  /**
1106
1087
  * 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.
1107
1088
  * @param {string} walletId
@@ -1250,6 +1231,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1250
1231
  * @throws {RequiredError}
1251
1232
  */
1252
1233
  oidcVerifyInitUrl: (walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1234
+ /**
1235
+ * TBD
1236
+ * @param {string} walletId
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ onboardLegalEntity: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1253
1241
  /**
1254
1242
  * Provides wallet details
1255
1243
  * @param {string} walletId
@@ -1284,6 +1272,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1284
1272
  * @export
1285
1273
  */
1286
1274
  export declare const DefaultApiFp: (configuration?: Configuration) => {
1275
+ /**
1276
+ * TBD
1277
+ * @param {string} walletId
1278
+ * @param {*} [options] Override http request option.
1279
+ * @throws {RequiredError}
1280
+ */
1281
+ accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1287
1282
  /**
1288
1283
  * 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.
1289
1284
  * @param {string} walletId
@@ -1432,6 +1427,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1432
1427
  * @throws {RequiredError}
1433
1428
  */
1434
1429
  oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyInitResponse>>;
1430
+ /**
1431
+ * TBD
1432
+ * @param {string} walletId
1433
+ * @param {*} [options] Override http request option.
1434
+ * @throws {RequiredError}
1435
+ */
1436
+ onboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
1435
1437
  /**
1436
1438
  * Provides wallet details
1437
1439
  * @param {string} walletId
@@ -1466,6 +1468,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1466
1468
  * @export
1467
1469
  */
1468
1470
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1471
+ /**
1472
+ * TBD
1473
+ * @param {string} walletId
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ */
1477
+ accreditAsTrustedIssuer(walletId: string, options?: any): AxiosPromise<string>;
1469
1478
  /**
1470
1479
  * 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.
1471
1480
  * @param {string} walletId
@@ -1614,6 +1623,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1614
1623
  * @throws {RequiredError}
1615
1624
  */
1616
1625
  oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: any): AxiosPromise<VerifyInitResponse>;
1626
+ /**
1627
+ * TBD
1628
+ * @param {string} walletId
1629
+ * @param {*} [options] Override http request option.
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ onboardLegalEntity(walletId: string, options?: any): AxiosPromise<string>;
1617
1633
  /**
1618
1634
  * Provides wallet details
1619
1635
  * @param {string} walletId
@@ -1650,6 +1666,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1650
1666
  * @extends {BaseAPI}
1651
1667
  */
1652
1668
  export declare class DefaultApi extends BaseAPI {
1669
+ /**
1670
+ * TBD
1671
+ * @param {string} walletId
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ * @memberof DefaultApi
1675
+ */
1676
+ accreditAsTrustedIssuer(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1653
1677
  /**
1654
1678
  * 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.
1655
1679
  * @param {string} walletId
@@ -1817,6 +1841,14 @@ export declare class DefaultApi extends BaseAPI {
1817
1841
  * @memberof DefaultApi
1818
1842
  */
1819
1843
  oidcVerifyInitUrl(walletId: string, verifyInitRequest?: VerifyInitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VerifyInitResponse, any>>;
1844
+ /**
1845
+ * TBD
1846
+ * @param {string} walletId
1847
+ * @param {*} [options] Override http request option.
1848
+ * @throws {RequiredError}
1849
+ * @memberof DefaultApi
1850
+ */
1851
+ onboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1820
1852
  /**
1821
1853
  * Provides wallet details
1822
1854
  * @param {string} walletId
package/api.js CHANGED
@@ -69,6 +69,39 @@ exports.WalletNotificationEventTypeEnum = {
69
69
  */
70
70
  const DefaultApiAxiosParamCreator = function (configuration) {
71
71
  return {
72
+ /**
73
+ * TBD
74
+ * @param {string} walletId
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ accreditAsTrustedIssuer: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
79
+ // verify required parameter 'walletId' is not null or undefined
80
+ (0, common_1.assertParamExists)('accreditAsTrustedIssuer', 'walletId', walletId);
81
+ const localVarPath = `/accredit-as-trusted-issuer`;
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
89
+ const localVarHeaderParameter = {};
90
+ const localVarQueryParameter = {};
91
+ // authentication accessToken required
92
+ // http bearer authentication required
93
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
94
+ if (walletId != null) {
95
+ localVarHeaderParameter['wallet-id'] = String(walletId);
96
+ }
97
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
98
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
99
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
100
+ return {
101
+ url: (0, common_1.toPathString)(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ }),
72
105
  /**
73
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.
74
107
  * @param {string} walletId
@@ -731,6 +764,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
731
764
  options: localVarRequestOptions,
732
765
  };
733
766
  }),
767
+ /**
768
+ * TBD
769
+ * @param {string} walletId
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ onboardLegalEntity: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
774
+ // verify required parameter 'walletId' is not null or undefined
775
+ (0, common_1.assertParamExists)('onboardLegalEntity', 'walletId', walletId);
776
+ const localVarPath = `/onboard-legal-entity`;
777
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
778
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
779
+ let baseOptions;
780
+ if (configuration) {
781
+ baseOptions = configuration.baseOptions;
782
+ }
783
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
784
+ const localVarHeaderParameter = {};
785
+ const localVarQueryParameter = {};
786
+ // authentication accessToken required
787
+ // http bearer authentication required
788
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
789
+ if (walletId != null) {
790
+ localVarHeaderParameter['wallet-id'] = String(walletId);
791
+ }
792
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
793
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
794
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
795
+ return {
796
+ url: (0, common_1.toPathString)(localVarUrlObj),
797
+ options: localVarRequestOptions,
798
+ };
799
+ }),
734
800
  /**
735
801
  * Provides wallet details
736
802
  * @param {string} walletId
@@ -866,6 +932,21 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
866
932
  const DefaultApiFp = function (configuration) {
867
933
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
868
934
  return {
935
+ /**
936
+ * TBD
937
+ * @param {string} walletId
938
+ * @param {*} [options] Override http request option.
939
+ * @throws {RequiredError}
940
+ */
941
+ accreditAsTrustedIssuer(walletId, options) {
942
+ var _a, _b, _c;
943
+ return __awaiter(this, void 0, void 0, function* () {
944
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.accreditAsTrustedIssuer(walletId, options);
945
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
946
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.accreditAsTrustedIssuer']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
947
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
948
+ });
949
+ },
869
950
  /**
870
951
  * 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.
871
952
  * @param {string} walletId
@@ -1166,6 +1247,21 @@ const DefaultApiFp = function (configuration) {
1166
1247
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1167
1248
  });
1168
1249
  },
1250
+ /**
1251
+ * TBD
1252
+ * @param {string} walletId
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ onboardLegalEntity(walletId, options) {
1257
+ var _a, _b, _c;
1258
+ return __awaiter(this, void 0, void 0, function* () {
1259
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardLegalEntity(walletId, options);
1260
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1261
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.onboardLegalEntity']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1262
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
1263
+ });
1264
+ },
1169
1265
  /**
1170
1266
  * Provides wallet details
1171
1267
  * @param {string} walletId
@@ -1236,6 +1332,15 @@ exports.DefaultApiFp = DefaultApiFp;
1236
1332
  const DefaultApiFactory = function (configuration, basePath, axios) {
1237
1333
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
1238
1334
  return {
1335
+ /**
1336
+ * TBD
1337
+ * @param {string} walletId
1338
+ * @param {*} [options] Override http request option.
1339
+ * @throws {RequiredError}
1340
+ */
1341
+ accreditAsTrustedIssuer(walletId, options) {
1342
+ return localVarFp.accreditAsTrustedIssuer(walletId, options).then((request) => request(axios, basePath));
1343
+ },
1239
1344
  /**
1240
1345
  * 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.
1241
1346
  * @param {string} walletId
@@ -1422,6 +1527,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1422
1527
  oidcVerifyInitUrl(walletId, verifyInitRequest, options) {
1423
1528
  return localVarFp.oidcVerifyInitUrl(walletId, verifyInitRequest, options).then((request) => request(axios, basePath));
1424
1529
  },
1530
+ /**
1531
+ * TBD
1532
+ * @param {string} walletId
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ onboardLegalEntity(walletId, options) {
1537
+ return localVarFp.onboardLegalEntity(walletId, options).then((request) => request(axios, basePath));
1538
+ },
1425
1539
  /**
1426
1540
  * Provides wallet details
1427
1541
  * @param {string} walletId
@@ -1468,6 +1582,16 @@ exports.DefaultApiFactory = DefaultApiFactory;
1468
1582
  * @extends {BaseAPI}
1469
1583
  */
1470
1584
  class DefaultApi extends base_1.BaseAPI {
1585
+ /**
1586
+ * TBD
1587
+ * @param {string} walletId
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof DefaultApi
1591
+ */
1592
+ accreditAsTrustedIssuer(walletId, options) {
1593
+ return (0, exports.DefaultApiFp)(this.configuration).accreditAsTrustedIssuer(walletId, options).then((request) => request(this.axios, this.basePath));
1594
+ }
1471
1595
  /**
1472
1596
  * 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.
1473
1597
  * @param {string} walletId
@@ -1673,6 +1797,16 @@ class DefaultApi extends base_1.BaseAPI {
1673
1797
  oidcVerifyInitUrl(walletId, verifyInitRequest, options) {
1674
1798
  return (0, exports.DefaultApiFp)(this.configuration).oidcVerifyInitUrl(walletId, verifyInitRequest, options).then((request) => request(this.axios, this.basePath));
1675
1799
  }
1800
+ /**
1801
+ * TBD
1802
+ * @param {string} walletId
1803
+ * @param {*} [options] Override http request option.
1804
+ * @throws {RequiredError}
1805
+ * @memberof DefaultApi
1806
+ */
1807
+ onboardLegalEntity(walletId, options) {
1808
+ return (0, exports.DefaultApiFp)(this.configuration).onboardLegalEntity(walletId, options).then((request) => request(this.axios, this.basePath));
1809
+ }
1676
1810
  /**
1677
1811
  * Provides wallet details
1678
1812
  * @param {string} walletId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.39",
4
+ "version": "0.0.41",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {