@triveria/wallet 0.0.76 → 0.0.78

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 +190 -0
  2. package/api.js +222 -1
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -13,6 +13,24 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ * TBD
18
+ * @export
19
+ * @interface AccreditationRequest
20
+ */
21
+ export interface AccreditationRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccreditationRequest
26
+ */
27
+ 'type': AccreditationRequestTypeEnum;
28
+ }
29
+ export declare const AccreditationRequestTypeEnum: {
30
+ readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
31
+ readonly RootTrustedAccreditationOrganisation: "RootTrustedAccreditationOrganisation";
32
+ };
33
+ export type AccreditationRequestTypeEnum = typeof AccreditationRequestTypeEnum[keyof typeof AccreditationRequestTypeEnum];
16
34
  /**
17
35
  * The authorized flow initiation result consisting of the issuer state and URL
18
36
  * @export
@@ -500,6 +518,49 @@ export interface Did {
500
518
  */
501
519
  'Did': string;
502
520
  }
521
+ /**
522
+ * URLs of EBSI services
523
+ * @export
524
+ * @interface EbsiConfiguration
525
+ */
526
+ export interface EbsiConfiguration {
527
+ /**
528
+ *
529
+ * @type {string}
530
+ * @memberof EbsiConfiguration
531
+ */
532
+ 'conformanceClientId': string;
533
+ /**
534
+ *
535
+ * @type {string}
536
+ * @memberof EbsiConfiguration
537
+ */
538
+ 'authorization': string;
539
+ /**
540
+ *
541
+ * @type {string}
542
+ * @memberof EbsiConfiguration
543
+ */
544
+ 'didRegistry': string;
545
+ /**
546
+ *
547
+ * @type {string}
548
+ * @memberof EbsiConfiguration
549
+ */
550
+ 'trustedIssuersRegistry': string;
551
+ /**
552
+ *
553
+ * @type {string}
554
+ * @memberof EbsiConfiguration
555
+ */
556
+ 'trustedSchemasRegistry': string;
557
+ /**
558
+ *
559
+ * @type {string}
560
+ * @memberof EbsiConfiguration
561
+ */
562
+ 'mainSchema': string;
563
+ }
503
564
  /**
504
565
  * EBSI specific data
505
566
  * @export
@@ -524,6 +585,12 @@ export interface EbsiSpecificWalletData {
524
585
  * @memberof EbsiSpecificWalletData
525
586
  */
526
587
  'proxyUrl'?: string;
588
+ /**
589
+ *
590
+ * @type {EbsiConfiguration}
591
+ * @memberof EbsiSpecificWalletData
592
+ */
593
+ 'configuration': EbsiConfiguration;
527
594
  }
528
595
  /**
529
596
  * A scheme providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential
@@ -772,6 +839,30 @@ export interface PreAuthOffer {
772
839
  */
773
840
  'offer': string;
774
841
  }
842
+ /**
843
+ * TBD
844
+ * @export
845
+ * @interface PrepareToAccreditRequest
846
+ */
847
+ export interface PrepareToAccreditRequest {
848
+ /**
849
+ *
850
+ * @type {string}
851
+ * @memberof PrepareToAccreditRequest
852
+ */
853
+ 'did': string;
854
+ /**
855
+ *
856
+ * @type {string}
857
+ * @memberof PrepareToAccreditRequest
858
+ */
859
+ 'type': PrepareToAccreditRequestTypeEnum;
860
+ }
861
+ export declare const PrepareToAccreditRequestTypeEnum: {
862
+ readonly TrustedIssuer: "TrustedIssuer";
863
+ readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
864
+ };
865
+ export type PrepareToAccreditRequestTypeEnum = typeof PrepareToAccreditRequestTypeEnum[keyof typeof PrepareToAccreditRequestTypeEnum];
775
866
  /**
776
867
  *
777
868
  * @export
@@ -1212,6 +1303,14 @@ export type WalletNotificationEventDetails = IdTokenReceivedNotification | VpVer
1212
1303
  * @export
1213
1304
  */
1214
1305
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
1306
+ /**
1307
+ * TBD
1308
+ * @param {string} walletId
1309
+ * @param {AccreditationRequest} [accreditationRequest]
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ accreditAs: (walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1215
1314
  /**
1216
1315
  * TBD
1217
1316
  * @param {string} walletId
@@ -1408,6 +1507,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1408
1507
  * @throws {RequiredError}
1409
1508
  */
1410
1509
  onboardLegalEntity: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1510
+ /**
1511
+ * TBD
1512
+ * @param {string} walletId
1513
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1514
+ * @param {*} [options] Override http request option.
1515
+ * @throws {RequiredError}
1516
+ */
1517
+ prepareToAccredit: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1518
+ /**
1519
+ * TBD
1520
+ * @param {string} walletId
1521
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1522
+ * @param {*} [options] Override http request option.
1523
+ * @throws {RequiredError}
1524
+ */
1525
+ revokeAccreditation: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1411
1526
  /**
1412
1527
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
1413
1528
  * @param {Wallet} [wallet]
@@ -1449,6 +1564,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1449
1564
  * @export
1450
1565
  */
1451
1566
  export declare const DefaultApiFp: (configuration?: Configuration) => {
1567
+ /**
1568
+ * TBD
1569
+ * @param {string} walletId
1570
+ * @param {AccreditationRequest} [accreditationRequest]
1571
+ * @param {*} [options] Override http request option.
1572
+ * @throws {RequiredError}
1573
+ */
1574
+ accreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1452
1575
  /**
1453
1576
  * TBD
1454
1577
  * @param {string} walletId
@@ -1645,6 +1768,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1645
1768
  * @throws {RequiredError}
1646
1769
  */
1647
1770
  onboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OnboardResult>>;
1771
+ /**
1772
+ * TBD
1773
+ * @param {string} walletId
1774
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1775
+ * @param {*} [options] Override http request option.
1776
+ * @throws {RequiredError}
1777
+ */
1778
+ prepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1779
+ /**
1780
+ * TBD
1781
+ * @param {string} walletId
1782
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1783
+ * @param {*} [options] Override http request option.
1784
+ * @throws {RequiredError}
1785
+ */
1786
+ revokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1648
1787
  /**
1649
1788
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
1650
1789
  * @param {Wallet} [wallet]
@@ -1686,6 +1825,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1686
1825
  * @export
1687
1826
  */
1688
1827
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1828
+ /**
1829
+ * TBD
1830
+ * @param {string} walletId
1831
+ * @param {AccreditationRequest} [accreditationRequest]
1832
+ * @param {*} [options] Override http request option.
1833
+ * @throws {RequiredError}
1834
+ */
1835
+ accreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: any): AxiosPromise<void>;
1689
1836
  /**
1690
1837
  * TBD
1691
1838
  * @param {string} walletId
@@ -1882,6 +2029,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1882
2029
  * @throws {RequiredError}
1883
2030
  */
1884
2031
  onboardLegalEntity(walletId: string, options?: any): AxiosPromise<OnboardResult>;
2032
+ /**
2033
+ * TBD
2034
+ * @param {string} walletId
2035
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2036
+ * @param {*} [options] Override http request option.
2037
+ * @throws {RequiredError}
2038
+ */
2039
+ prepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: any): AxiosPromise<void>;
2040
+ /**
2041
+ * TBD
2042
+ * @param {string} walletId
2043
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2044
+ * @param {*} [options] Override http request option.
2045
+ * @throws {RequiredError}
2046
+ */
2047
+ revokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: any): AxiosPromise<void>;
1885
2048
  /**
1886
2049
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
1887
2050
  * @param {Wallet} [wallet]
@@ -1925,6 +2088,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1925
2088
  * @extends {BaseAPI}
1926
2089
  */
1927
2090
  export declare class DefaultApi extends BaseAPI {
2091
+ /**
2092
+ * TBD
2093
+ * @param {string} walletId
2094
+ * @param {AccreditationRequest} [accreditationRequest]
2095
+ * @param {*} [options] Override http request option.
2096
+ * @throws {RequiredError}
2097
+ * @memberof DefaultApi
2098
+ */
2099
+ accreditAs(walletId: string, accreditationRequest?: AccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1928
2100
  /**
1929
2101
  * TBD
1930
2102
  * @param {string} walletId
@@ -2146,6 +2318,24 @@ export declare class DefaultApi extends BaseAPI {
2146
2318
  * @memberof DefaultApi
2147
2319
  */
2148
2320
  onboardLegalEntity(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OnboardResult, any>>;
2321
+ /**
2322
+ * TBD
2323
+ * @param {string} walletId
2324
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2325
+ * @param {*} [options] Override http request option.
2326
+ * @throws {RequiredError}
2327
+ * @memberof DefaultApi
2328
+ */
2329
+ prepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2330
+ /**
2331
+ * TBD
2332
+ * @param {string} walletId
2333
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2334
+ * @param {*} [options] Override http request option.
2335
+ * @throws {RequiredError}
2336
+ * @memberof DefaultApi
2337
+ */
2338
+ revokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2149
2339
  /**
2150
2340
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
2151
2341
  * @param {Wallet} [wallet]
package/api.js CHANGED
@@ -25,13 +25,17 @@ 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.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = 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
32
32
  const common_1 = require("./common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("./base");
35
+ exports.AccreditationRequestTypeEnum = {
36
+ TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
37
+ RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation'
38
+ };
35
39
  exports.CredentialIssuerDefinitionCredentialFormatEnum = {
36
40
  JwtVc: 'jwt_vc'
37
41
  };
@@ -55,6 +59,10 @@ exports.HealthStatusStatusEnum = {
55
59
  Limited: 'limited',
56
60
  Critical: 'critical'
57
61
  };
62
+ exports.PrepareToAccreditRequestTypeEnum = {
63
+ TrustedIssuer: 'TrustedIssuer',
64
+ TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
65
+ };
58
66
  exports.SystemImpactStatusEnum = {
59
67
  Ok: 'ok',
60
68
  Limited: 'limited',
@@ -71,6 +79,40 @@ exports.WalletNotificationEventTypeEnum = {
71
79
  */
72
80
  const DefaultApiAxiosParamCreator = function (configuration) {
73
81
  return {
82
+ /**
83
+ * TBD
84
+ * @param {string} walletId
85
+ * @param {AccreditationRequest} [accreditationRequest]
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ accreditAs: (walletId, accreditationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
90
+ // verify required parameter 'walletId' is not null or undefined
91
+ (0, common_1.assertParamExists)('accreditAs', 'walletId', walletId);
92
+ const localVarPath = `/wallets/{wallet_id}/accredit`
93
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
94
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
96
+ let baseOptions;
97
+ if (configuration) {
98
+ baseOptions = configuration.baseOptions;
99
+ }
100
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
101
+ const localVarHeaderParameter = {};
102
+ const localVarQueryParameter = {};
103
+ // authentication accessToken required
104
+ // http bearer authentication required
105
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
107
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
110
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accreditationRequest, localVarRequestOptions, configuration);
111
+ return {
112
+ url: (0, common_1.toPathString)(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ }),
74
116
  /**
75
117
  * TBD
76
118
  * @param {string} walletId
@@ -945,6 +987,74 @@ const DefaultApiAxiosParamCreator = function (configuration) {
945
987
  options: localVarRequestOptions,
946
988
  };
947
989
  }),
990
+ /**
991
+ * TBD
992
+ * @param {string} walletId
993
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
994
+ * @param {*} [options] Override http request option.
995
+ * @throws {RequiredError}
996
+ */
997
+ prepareToAccredit: (walletId, prepareToAccreditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
998
+ // verify required parameter 'walletId' is not null or undefined
999
+ (0, common_1.assertParamExists)('prepareToAccredit', 'walletId', walletId);
1000
+ const localVarPath = `/wallets/{wallet_id}/prepare-to-accredit`
1001
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1002
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1003
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1004
+ let baseOptions;
1005
+ if (configuration) {
1006
+ baseOptions = configuration.baseOptions;
1007
+ }
1008
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1009
+ const localVarHeaderParameter = {};
1010
+ const localVarQueryParameter = {};
1011
+ // authentication accessToken required
1012
+ // http bearer authentication required
1013
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1014
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1015
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1016
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1017
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1018
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToAccreditRequest, localVarRequestOptions, configuration);
1019
+ return {
1020
+ url: (0, common_1.toPathString)(localVarUrlObj),
1021
+ options: localVarRequestOptions,
1022
+ };
1023
+ }),
1024
+ /**
1025
+ * TBD
1026
+ * @param {string} walletId
1027
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ revokeAccreditation: (walletId, prepareToAccreditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1032
+ // verify required parameter 'walletId' is not null or undefined
1033
+ (0, common_1.assertParamExists)('revokeAccreditation', 'walletId', walletId);
1034
+ const localVarPath = `/wallets/{wallet_id}/revoke-accredit`
1035
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1036
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1037
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1038
+ let baseOptions;
1039
+ if (configuration) {
1040
+ baseOptions = configuration.baseOptions;
1041
+ }
1042
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1043
+ const localVarHeaderParameter = {};
1044
+ const localVarQueryParameter = {};
1045
+ // authentication accessToken required
1046
+ // http bearer authentication required
1047
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1048
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1049
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1050
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1051
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1052
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToAccreditRequest, localVarRequestOptions, configuration);
1053
+ return {
1054
+ url: (0, common_1.toPathString)(localVarUrlObj),
1055
+ options: localVarRequestOptions,
1056
+ };
1057
+ }),
948
1058
  /**
949
1059
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
950
1060
  * @param {Wallet} [wallet]
@@ -1108,6 +1218,22 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
1108
1218
  const DefaultApiFp = function (configuration) {
1109
1219
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
1110
1220
  return {
1221
+ /**
1222
+ * TBD
1223
+ * @param {string} walletId
1224
+ * @param {AccreditationRequest} [accreditationRequest]
1225
+ * @param {*} [options] Override http request option.
1226
+ * @throws {RequiredError}
1227
+ */
1228
+ accreditAs(walletId, accreditationRequest, options) {
1229
+ var _a, _b, _c;
1230
+ return __awaiter(this, void 0, void 0, function* () {
1231
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.accreditAs(walletId, accreditationRequest, options);
1232
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1233
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.accreditAs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1234
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1235
+ });
1236
+ },
1111
1237
  /**
1112
1238
  * TBD
1113
1239
  * @param {string} walletId
@@ -1504,6 +1630,38 @@ const DefaultApiFp = function (configuration) {
1504
1630
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1505
1631
  });
1506
1632
  },
1633
+ /**
1634
+ * TBD
1635
+ * @param {string} walletId
1636
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1637
+ * @param {*} [options] Override http request option.
1638
+ * @throws {RequiredError}
1639
+ */
1640
+ prepareToAccredit(walletId, prepareToAccreditRequest, options) {
1641
+ var _a, _b, _c;
1642
+ return __awaiter(this, void 0, void 0, function* () {
1643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.prepareToAccredit(walletId, prepareToAccreditRequest, options);
1644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1645
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.prepareToAccredit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1647
+ });
1648
+ },
1649
+ /**
1650
+ * TBD
1651
+ * @param {string} walletId
1652
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1653
+ * @param {*} [options] Override http request option.
1654
+ * @throws {RequiredError}
1655
+ */
1656
+ revokeAccreditation(walletId, prepareToAccreditRequest, options) {
1657
+ var _a, _b, _c;
1658
+ return __awaiter(this, void 0, void 0, function* () {
1659
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.revokeAccreditation(walletId, prepareToAccreditRequest, options);
1660
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1661
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.revokeAccreditation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1662
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1663
+ });
1664
+ },
1507
1665
  /**
1508
1666
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
1509
1667
  * @param {Wallet} [wallet]
@@ -1589,6 +1747,16 @@ exports.DefaultApiFp = DefaultApiFp;
1589
1747
  const DefaultApiFactory = function (configuration, basePath, axios) {
1590
1748
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
1591
1749
  return {
1750
+ /**
1751
+ * TBD
1752
+ * @param {string} walletId
1753
+ * @param {AccreditationRequest} [accreditationRequest]
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ accreditAs(walletId, accreditationRequest, options) {
1758
+ return localVarFp.accreditAs(walletId, accreditationRequest, options).then((request) => request(axios, basePath));
1759
+ },
1592
1760
  /**
1593
1761
  * TBD
1594
1762
  * @param {string} walletId
@@ -1835,6 +2003,26 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1835
2003
  onboardLegalEntity(walletId, options) {
1836
2004
  return localVarFp.onboardLegalEntity(walletId, options).then((request) => request(axios, basePath));
1837
2005
  },
2006
+ /**
2007
+ * TBD
2008
+ * @param {string} walletId
2009
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2010
+ * @param {*} [options] Override http request option.
2011
+ * @throws {RequiredError}
2012
+ */
2013
+ prepareToAccredit(walletId, prepareToAccreditRequest, options) {
2014
+ return localVarFp.prepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
2015
+ },
2016
+ /**
2017
+ * TBD
2018
+ * @param {string} walletId
2019
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ revokeAccreditation(walletId, prepareToAccreditRequest, options) {
2024
+ return localVarFp.revokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
2025
+ },
1838
2026
  /**
1839
2027
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
1840
2028
  * @param {Wallet} [wallet]
@@ -1890,6 +2078,17 @@ exports.DefaultApiFactory = DefaultApiFactory;
1890
2078
  * @extends {BaseAPI}
1891
2079
  */
1892
2080
  class DefaultApi extends base_1.BaseAPI {
2081
+ /**
2082
+ * TBD
2083
+ * @param {string} walletId
2084
+ * @param {AccreditationRequest} [accreditationRequest]
2085
+ * @param {*} [options] Override http request option.
2086
+ * @throws {RequiredError}
2087
+ * @memberof DefaultApi
2088
+ */
2089
+ accreditAs(walletId, accreditationRequest, options) {
2090
+ return (0, exports.DefaultApiFp)(this.configuration).accreditAs(walletId, accreditationRequest, options).then((request) => request(this.axios, this.basePath));
2091
+ }
1893
2092
  /**
1894
2093
  * TBD
1895
2094
  * @param {string} walletId
@@ -2161,6 +2360,28 @@ class DefaultApi extends base_1.BaseAPI {
2161
2360
  onboardLegalEntity(walletId, options) {
2162
2361
  return (0, exports.DefaultApiFp)(this.configuration).onboardLegalEntity(walletId, options).then((request) => request(this.axios, this.basePath));
2163
2362
  }
2363
+ /**
2364
+ * TBD
2365
+ * @param {string} walletId
2366
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2367
+ * @param {*} [options] Override http request option.
2368
+ * @throws {RequiredError}
2369
+ * @memberof DefaultApi
2370
+ */
2371
+ prepareToAccredit(walletId, prepareToAccreditRequest, options) {
2372
+ return (0, exports.DefaultApiFp)(this.configuration).prepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
2373
+ }
2374
+ /**
2375
+ * TBD
2376
+ * @param {string} walletId
2377
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2378
+ * @param {*} [options] Override http request option.
2379
+ * @throws {RequiredError}
2380
+ * @memberof DefaultApi
2381
+ */
2382
+ revokeAccreditation(walletId, prepareToAccreditRequest, options) {
2383
+ return (0, exports.DefaultApiFp)(this.configuration).revokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
2384
+ }
2164
2385
  /**
2165
2386
  * The call will authenticate the client and create a new wallet that will be accessible only to the client.
2166
2387
  * @param {Wallet} [wallet]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.76",
4
+ "version": "0.0.78",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {