@monerium/sdk 2.1.20 → 2.2.0
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/CHANGELOG.md +92 -53
- package/dist/index.d.ts +47 -47
- package/dist/index.mjs +459 -92
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +117 -117
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,115 +1,154 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.
|
|
3
|
+
## [2.2.0](https://github.com/monerium/sdk/compare/v2.1.23...v2.2.0) (2023-04-25)
|
|
4
4
|
|
|
5
|
-
### Bug Fixes
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use Yarn PnP ([#73](https://github.com/monerium/sdk/issues/73)) ([4295154](https://github.com/monerium/sdk/commit/4295154487c3eb255b23816b5cf32aac52cae710))
|
|
9
|
+
|
|
10
|
+
## [2.1.23](https://github.com/monerium/sdk/compare/v2.1.22...v2.1.23) (2023-04-25)
|
|
10
11
|
|
|
11
|
-
## [2.1.19](https://github.com/monerium/sdk/compare/v2.1.18...v2.1.19) (2023-04-24)
|
|
12
12
|
|
|
13
13
|
### Bug Fixes
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
* now it should publish succesfully to npm registry ([#71](https://github.com/monerium/sdk/issues/71)) ([5b5e37b](https://github.com/monerium/sdk/commit/5b5e37b2cde1d1e0411e3e023cfcd5f7eca376d6))
|
|
16
|
+
|
|
17
|
+
## [2.1.22](https://github.com/monerium/sdk/compare/v2.1.21...v2.1.22) (2023-04-24)
|
|
16
18
|
|
|
17
|
-
## [2.1.18](https://github.com/monerium/sdk/compare/v2.1.17...v2.1.18) (2023-04-24)
|
|
18
19
|
|
|
19
20
|
### Bug Fixes
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
* deploy static pipeline ([#69](https://github.com/monerium/sdk/issues/69)) ([38067e7](https://github.com/monerium/sdk/commit/38067e75e3334b6eb20dcc182f1d6aaca5af0caa))
|
|
22
23
|
|
|
23
|
-
## [2.1.17](https://github.com/monerium/sdk/compare/v2.1.16...v2.1.17) (2023-04-24)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
## [2.1.21](https://github.com/monerium/sdk/compare/v2.1.20...v2.1.21) (2023-04-24)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
### Miscellaneous
|
|
28
|
+
|
|
29
|
+
- cleanup changelog history ([1c4b12b](https://github.com/monerium/sdk/commit/1c4b12b77eaa61d07b0b39d056a35f505416039a))
|
|
30
|
+
|
|
31
|
+
## [2.1.20](https://github.com/monerium/sdk/compare/v2.0.19...v2.1.20) (2023-04-24)
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
Issues with Github Actions and Yarn v3 resolved.
|
|
34
|
+
|
|
35
|
+
## [2.0.19](https://github.com/monerium/sdk/compare/v2.0.18...v2.0.19) (2023-04-24)
|
|
30
36
|
|
|
31
37
|
### Bug Fixes
|
|
32
38
|
|
|
33
|
-
-
|
|
39
|
+
- include network and chain in linkAccount ([cd7fe6e](https://github.com/monerium/sdk/commit/cd7fe6e4b52dc38f589e081b7afa6dc36f2436f8))
|
|
40
|
+
- pipeline error ([d489695](https://github.com/monerium/sdk/commit/d489695a567630b0da0a7ec2269569b0eaac93f2))
|
|
41
|
+
- return BearerProfile from auth function ([ef7fe3b](https://github.com/monerium/sdk/commit/ef7fe3b58b21e3671602c70545e4a04669dd6461))
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
### Miscellaneous
|
|
44
|
+
|
|
45
|
+
- added backwards compatibility to node v17.5 ([61bba5e](https://github.com/monerium/sdk/commit/61bba5e15131e7d125ce03fcb65b39120559d9f3))
|
|
46
|
+
- migrate to yarn v3 ([4d47d6f](https://github.com/monerium/sdk/commit/4d47d6fe4e798e8af61eab7dd03b188322fd0f31))
|
|
47
|
+
- set node engine >= 17.5 ([407cf66](https://github.com/monerium/sdk/commit/407cf66eefa9734e89df9e031f523db70abf7674))
|
|
48
|
+
|
|
49
|
+
## [2.0.18](https://github.com/monerium/sdk/compare/v2.0.17...v2.0.18) (2023-04-21)
|
|
36
50
|
|
|
37
51
|
### Bug Fixes
|
|
38
52
|
|
|
39
|
-
-
|
|
40
|
-
-
|
|
53
|
+
- es6 module imports ([00edf8d](https://github.com/monerium/sdk/commit/00edf8d600e6944fbcc17da00351ffae9ee79b53))
|
|
54
|
+
- test credentials ([00edf8d](https://github.com/monerium/sdk/commit/00edf8d600e6944fbcc17da00351ffae9ee79b53))
|
|
55
|
+
|
|
56
|
+
### Miscellaneous
|
|
57
|
+
|
|
58
|
+
- explain and add uppercase to the -randomness- ([5ed54d8](https://github.com/monerium/sdk/commit/5ed54d86a79b88293c595bd23ecf07cd30aafe63))
|
|
59
|
+
|
|
60
|
+
## [2.0.17](https://github.com/monerium/sdk/compare/v2.0.16...v2.0.17) (2023-02-25)
|
|
61
|
+
|
|
62
|
+
### Miscellaneous
|
|
63
|
+
|
|
64
|
+
- dont use crypto-js for randomizing a string ([412957e](https://github.com/monerium/sdk/commit/412957e028d968bbc483dbc6f8724f7e2da4739a))
|
|
41
65
|
|
|
42
|
-
## [2.
|
|
66
|
+
## [2.0.16](https://github.com/monerium/sdk/compare/v2.0.15...v2.0.16) (2023-02-25)
|
|
43
67
|
|
|
44
68
|
### Bug Fixes
|
|
45
69
|
|
|
46
|
-
-
|
|
47
|
-
- missing bracket ([817e366](https://github.com/monerium/sdk/commit/817e366c540395ea10c24cb79e1f173d81f337b5))
|
|
70
|
+
- broken build ([b05107c](https://github.com/monerium/sdk/commit/b05107c9e7246153807fe9a8ca65066f9fede989))
|
|
48
71
|
|
|
49
|
-
## [2.
|
|
72
|
+
## [2.0.15](https://github.com/monerium/sdk/compare/v2.0.14...v2.0.15) (2023-02-25)
|
|
50
73
|
|
|
51
74
|
### Bug Fixes
|
|
52
75
|
|
|
53
|
-
-
|
|
76
|
+
- broken build ([8278788](https://github.com/monerium/sdk/commit/8278788a9bc456016805e9fc65cb1137174e096e))
|
|
54
77
|
|
|
55
|
-
## [2.
|
|
78
|
+
## [2.0.14](https://github.com/monerium/sdk/compare/v2.0.13...v2.0.14) (2023-02-25)
|
|
56
79
|
|
|
57
80
|
### Bug Fixes
|
|
58
81
|
|
|
59
|
-
-
|
|
82
|
+
- broken package ([e3cc93e](https://github.com/monerium/sdk/commit/e3cc93ecab62129387b4bd6ba7d4151adab48ca3))
|
|
60
83
|
|
|
61
|
-
## [2.
|
|
84
|
+
## [2.0.13](https://github.com/monerium/sdk/compare/v2.0.12...v2.0.13) (2023-02-25)
|
|
62
85
|
|
|
63
86
|
### Bug Fixes
|
|
64
87
|
|
|
65
|
-
-
|
|
88
|
+
- pkce incorrect encoding + replaced crypto-js with node:crypto polyfill. ([c1b4e66](https://github.com/monerium/sdk/commit/c1b4e66b4bcf906c414b15250d6aaf9485f931a7))
|
|
66
89
|
|
|
67
|
-
## [2.
|
|
90
|
+
## [2.0.12](https://github.com/monerium/sdk/compare/v2.0.11...v2.0.12) (2023-02-25)
|
|
68
91
|
|
|
69
92
|
### Bug Fixes
|
|
70
93
|
|
|
71
|
-
-
|
|
94
|
+
- replace encodeBase64Url, not available in the downgraded version of crypto-js ([c883b64](https://github.com/monerium/sdk/commit/c883b6422b1d068752a420abce2ce3a14d8a4092))
|
|
72
95
|
|
|
73
|
-
## [2.
|
|
96
|
+
## [2.0.11](https://github.com/monerium/sdk/compare/v2.0.10...v2.0.11) (2023-02-25)
|
|
74
97
|
|
|
75
98
|
### Bug Fixes
|
|
76
99
|
|
|
77
|
-
-
|
|
78
|
-
- npm scope ([cc27404](https://github.com/monerium/sdk/commit/cc27404f76eab0ffab0d1b2aad1823685335c07a))
|
|
100
|
+
- crypto-js to 3.1.9-1 because of https://github.com/brix/crypto-js/issues/256 ([00bffd9](https://github.com/monerium/sdk/commit/00bffd9e7e90315f09cee4a8ade60121d1e1b75a))
|
|
79
101
|
|
|
80
|
-
|
|
102
|
+
### Miscellaneous
|
|
103
|
+
|
|
104
|
+
- remove unnecessary comment ([c8d64ad](https://github.com/monerium/sdk/commit/c8d64adad6157eecd1e2a3faf0bec0a86da74f07))
|
|
105
|
+
|
|
106
|
+
## [2.0.10](https://github.com/monerium/sdk/compare/v2.0.9...v2.0.10) (2023-02-16)
|
|
107
|
+
|
|
108
|
+
### Miscellaneous
|
|
109
|
+
|
|
110
|
+
- define properties for automatic wallet link on auth flow ([#19](https://github.com/monerium/sdk/issues/19)) ([3bf845c](https://github.com/monerium/sdk/commit/3bf845cac60bb8a2d5ee7a9dbfa56c76f6996178))
|
|
111
|
+
|
|
112
|
+
## [2.0.9](https://github.com/monerium/sdk/compare/v2.0.8...v2.0.9) (2023-02-06)
|
|
81
113
|
|
|
82
114
|
### Bug Fixes
|
|
83
115
|
|
|
84
|
-
-
|
|
116
|
+
- build files ([1b0f99f](https://github.com/monerium/sdk/commit/1b0f99fcc6635de69b62de72198f22daa2d36b10))
|
|
85
117
|
|
|
86
|
-
## [2.
|
|
118
|
+
## [2.0.8](https://github.com/monerium/sdk/compare/v2.0.7...v2.0.8) (2023-02-06)
|
|
87
119
|
|
|
88
120
|
### Bug Fixes
|
|
89
121
|
|
|
90
|
-
-
|
|
122
|
+
- move dts-bundle config to configs and update paths ([2de558f](https://github.com/monerium/sdk/commit/2de558f6c69b5c72d77ee1065e326d05072ad16c))
|
|
123
|
+
|
|
124
|
+
### Miscellaneous
|
|
125
|
+
|
|
126
|
+
- add getting started to README and document pckeRequest ([8cf68dd](https://github.com/monerium/sdk/commit/8cf68dd7fcf28b098192ca0da8dfdb3878a3e449))
|
|
127
|
+
- deprecate pkceRequest for getAuthFlowURI ([4f33174](https://github.com/monerium/sdk/commit/4f33174abbdbc0758b61efc4161e4fc234524ca5))
|
|
128
|
+
|
|
129
|
+
## [2.0.7](https://github.com/monerium/sdk/compare/v2.0.6...v2.0.7) (2023-01-11)
|
|
130
|
+
|
|
131
|
+
### Miscellaneous
|
|
132
|
+
|
|
133
|
+
- add commitlint ([bdae6d8](https://github.com/monerium/sdk/commit/bdae6d83ed386d80be0f27e362e6622ad6ca0ffd))
|
|
134
|
+
- add theme for typedoc to expand and make the sidebar more useful ([355f0f8](https://github.com/monerium/sdk/commit/355f0f839b27bdaeaead2463c0afc48409080041))
|
|
135
|
+
- fix and document pckeRequest ([3905283](https://github.com/monerium/sdk/commit/390528378206149862795ee7a46b54649927e384))
|
|
91
136
|
|
|
92
|
-
## [2.
|
|
137
|
+
## [2.0.6](https://github.com/monerium/sdk/compare/v2.0.0...v2.0.6) (2023-01-05)
|
|
93
138
|
|
|
94
139
|
### Bug Fixes
|
|
95
140
|
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
- fix ([2d781e3](https://github.com/monerium/sdk/commit/2d781e3780eda0d1ad5cf520f39eab9abfb10c7c))
|
|
99
|
-
- frozen lockfile deprecated ([143cb31](https://github.com/monerium/sdk/commit/143cb31c847cc88b1bbcf1a8ba8d2e653ad94001))
|
|
100
|
-
- npm scope ([5412bf9](https://github.com/monerium/sdk/commit/5412bf97d85e18d8d6b121199519271036345d05))
|
|
101
|
-
- npmAuthToken can be empty, static deploy github action doesnt need it ([e7e553b](https://github.com/monerium/sdk/commit/e7e553b03def857101b02fcb31b1d4f0f6ba0479))
|
|
102
|
-
- remove verbose ([c9a1097](https://github.com/monerium/sdk/commit/c9a10976c5dd2de7cc68c01af4e663a392de3224))
|
|
103
|
-
- yarn cache ([cacbdfb](https://github.com/monerium/sdk/commit/cacbdfbd637966290c2dbd313179cc128e5c0bb4))
|
|
104
|
-
- zero install ([f563c15](https://github.com/monerium/sdk/commit/f563c1514801675b9baf63b10aa7ac8d856cb7fa))
|
|
141
|
+
- Update TypeDocs and set workflow to run only on release ([42e5b41](https://github.com/monerium/sdk/commit/42e5b417eca0e2e1f7d7af51a5cde59df28c1ba0))
|
|
142
|
+
- Update TypeDocs and set workflow to run only on release ([#7](https://github.com/monerium/sdk/issues/7)) ([42e5b41](https://github.com/monerium/sdk/commit/42e5b417eca0e2e1f7d7af51a5cde59df28c1ba0))
|
|
105
143
|
|
|
106
144
|
### Miscellaneous
|
|
107
145
|
|
|
108
|
-
-
|
|
109
|
-
- **main:** release 2.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
146
|
+
- cleanup ([5c75dea](https://github.com/monerium/sdk/commit/5c75dea7ee3cd8468a09fdf2f70024047e87f3a0))
|
|
147
|
+
- **main:** release 2.0.5 ([#13](https://github.com/monerium/sdk/issues/13)) ([21c4052](https://github.com/monerium/sdk/commit/21c405262a6f6d0503dadc11aea483c2ebf3574f))
|
|
148
|
+
|
|
149
|
+
## [2.0.5](https://github.com/monerium/sdk/compare/v2.0.0...v2.0.5) (2023-01-05)
|
|
150
|
+
|
|
151
|
+
### Bug Fixes
|
|
152
|
+
|
|
153
|
+
- Update TypeDocs and adjust workflows ([42e5b41
|
|
154
|
+
](https://github.com/monerium/sdk/commit/42e5b417eca0e2e1f7d7af51a5cde59df28c1ba0))
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
export type Environment = {
|
|
4
4
|
api: string;
|
|
@@ -19,17 +19,17 @@ export interface BearerProfile {
|
|
|
19
19
|
userId: string;
|
|
20
20
|
}
|
|
21
21
|
export declare enum Currency {
|
|
22
|
-
eur =
|
|
23
|
-
usd =
|
|
24
|
-
gbp =
|
|
25
|
-
isk =
|
|
22
|
+
eur = 'eur',
|
|
23
|
+
usd = 'usd',
|
|
24
|
+
gbp = 'gbp',
|
|
25
|
+
isk = 'isk',
|
|
26
26
|
}
|
|
27
27
|
export type AuthArgs =
|
|
28
|
-
| Omit<AuthCode,
|
|
29
|
-
| Omit<RefreshToken,
|
|
30
|
-
| Omit<ClientCredentials,
|
|
28
|
+
| Omit<AuthCode, 'grant_type'>
|
|
29
|
+
| Omit<RefreshToken, 'grant_type'>
|
|
30
|
+
| Omit<ClientCredentials, 'grant_type'>;
|
|
31
31
|
export interface AuthCode {
|
|
32
|
-
grant_type:
|
|
32
|
+
grant_type: 'authorization_code';
|
|
33
33
|
client_id: string;
|
|
34
34
|
code: string;
|
|
35
35
|
code_verifier: string;
|
|
@@ -37,13 +37,13 @@ export interface AuthCode {
|
|
|
37
37
|
scope?: string;
|
|
38
38
|
}
|
|
39
39
|
export interface RefreshToken {
|
|
40
|
-
grant_type:
|
|
40
|
+
grant_type: 'refresh_token';
|
|
41
41
|
client_id: string;
|
|
42
42
|
refresh_token: string;
|
|
43
43
|
scope?: string;
|
|
44
44
|
}
|
|
45
45
|
export interface ClientCredentials {
|
|
46
|
-
grant_type:
|
|
46
|
+
grant_type: 'client_credentials';
|
|
47
47
|
client_id: string;
|
|
48
48
|
client_secret: string;
|
|
49
49
|
scope?: string;
|
|
@@ -53,7 +53,7 @@ export interface ClientCredentials {
|
|
|
53
53
|
*/
|
|
54
54
|
export type PKCERequestArgs = Omit<
|
|
55
55
|
PKCERequest,
|
|
56
|
-
|
|
56
|
+
'code_challenge' | 'code_challenge_method' | 'response_type'
|
|
57
57
|
>;
|
|
58
58
|
export type PKCERequest = {
|
|
59
59
|
/** the authentication flow client id of the application */
|
|
@@ -61,9 +61,9 @@ export type PKCERequest = {
|
|
|
61
61
|
/** the code challenge automatically generated by the SDK */
|
|
62
62
|
code_challenge: string;
|
|
63
63
|
/** the code challenge method for the authentication flow , handled by the SDK */
|
|
64
|
-
code_challenge_method:
|
|
64
|
+
code_challenge_method: 'S256';
|
|
65
65
|
/** the response type of the authentication flow, handled by the SDK */
|
|
66
|
-
response_type:
|
|
66
|
+
response_type: 'code';
|
|
67
67
|
/** the state of the application */
|
|
68
68
|
state?: string;
|
|
69
69
|
/** the redirect uri of the application */
|
|
@@ -80,18 +80,18 @@ export type PKCERequest = {
|
|
|
80
80
|
chain?: Chain;
|
|
81
81
|
};
|
|
82
82
|
declare enum Method {
|
|
83
|
-
password =
|
|
84
|
-
resource =
|
|
85
|
-
jwt =
|
|
86
|
-
apiKey =
|
|
83
|
+
password = 'password',
|
|
84
|
+
resource = 'resource',
|
|
85
|
+
jwt = 'jwt',
|
|
86
|
+
apiKey = 'apiKey',
|
|
87
87
|
}
|
|
88
88
|
export declare enum ProfileType {
|
|
89
|
-
corporate =
|
|
90
|
-
personal =
|
|
89
|
+
corporate = 'corporate',
|
|
90
|
+
personal = 'personal',
|
|
91
91
|
}
|
|
92
92
|
export declare enum Permission {
|
|
93
|
-
read =
|
|
94
|
-
write =
|
|
93
|
+
read = 'read',
|
|
94
|
+
write = 'write',
|
|
95
95
|
}
|
|
96
96
|
export interface AuthProfile {
|
|
97
97
|
id: string;
|
|
@@ -103,7 +103,7 @@ export interface AuthContext {
|
|
|
103
103
|
userId: string;
|
|
104
104
|
email: string;
|
|
105
105
|
name: string;
|
|
106
|
-
roles:
|
|
106
|
+
roles: 'admin'[];
|
|
107
107
|
auth: {
|
|
108
108
|
method: Method;
|
|
109
109
|
subject: string;
|
|
@@ -113,23 +113,23 @@ export interface AuthContext {
|
|
|
113
113
|
profiles: AuthProfile[];
|
|
114
114
|
}
|
|
115
115
|
export declare enum KYCState {
|
|
116
|
-
absent =
|
|
117
|
-
submitted =
|
|
118
|
-
pending =
|
|
119
|
-
confirmed =
|
|
116
|
+
absent = 'absent',
|
|
117
|
+
submitted = 'submitted',
|
|
118
|
+
pending = 'pending',
|
|
119
|
+
confirmed = 'confirmed',
|
|
120
120
|
}
|
|
121
121
|
export declare enum KYCOutcome {
|
|
122
|
-
approved =
|
|
123
|
-
rejected =
|
|
124
|
-
unknown =
|
|
122
|
+
approved = 'approved',
|
|
123
|
+
rejected = 'rejected',
|
|
124
|
+
unknown = 'unknown',
|
|
125
125
|
}
|
|
126
126
|
export interface KYC {
|
|
127
127
|
state: KYCState;
|
|
128
128
|
outcome: KYCOutcome;
|
|
129
129
|
}
|
|
130
130
|
export declare enum PaymentStandard {
|
|
131
|
-
iban =
|
|
132
|
-
scan =
|
|
131
|
+
iban = 'iban',
|
|
132
|
+
scan = 'scan',
|
|
133
133
|
}
|
|
134
134
|
export interface Account {
|
|
135
135
|
address: string;
|
|
@@ -149,15 +149,15 @@ export interface Profile {
|
|
|
149
149
|
accounts: Account[];
|
|
150
150
|
}
|
|
151
151
|
export declare enum Chain {
|
|
152
|
-
polygon =
|
|
153
|
-
ethereum =
|
|
154
|
-
gnosis =
|
|
152
|
+
polygon = 'polygon',
|
|
153
|
+
ethereum = 'ethereum',
|
|
154
|
+
gnosis = 'gnosis',
|
|
155
155
|
}
|
|
156
156
|
export declare enum Network {
|
|
157
|
-
mainnet =
|
|
158
|
-
chiado =
|
|
159
|
-
goerli =
|
|
160
|
-
mumbai =
|
|
157
|
+
mainnet = 'mainnet',
|
|
158
|
+
chiado = 'chiado',
|
|
159
|
+
goerli = 'goerli',
|
|
160
|
+
mumbai = 'mumbai',
|
|
161
161
|
}
|
|
162
162
|
export interface Balance {
|
|
163
163
|
currency: Currency;
|
|
@@ -171,17 +171,17 @@ export interface Balances {
|
|
|
171
171
|
balances: Balance[];
|
|
172
172
|
}
|
|
173
173
|
export declare enum OrderKind {
|
|
174
|
-
redeem =
|
|
175
|
-
issue =
|
|
174
|
+
redeem = 'redeem',
|
|
175
|
+
issue = 'issue',
|
|
176
176
|
}
|
|
177
177
|
export declare enum OrderState {
|
|
178
|
-
placed =
|
|
179
|
-
pending =
|
|
180
|
-
processed =
|
|
181
|
-
rejected =
|
|
178
|
+
placed = 'placed',
|
|
179
|
+
pending = 'pending',
|
|
180
|
+
processed = 'processed',
|
|
181
|
+
rejected = 'rejected',
|
|
182
182
|
}
|
|
183
183
|
export interface Fee {
|
|
184
|
-
provider:
|
|
184
|
+
provider: 'satchel';
|
|
185
185
|
currency: Currency;
|
|
186
186
|
amount: string;
|
|
187
187
|
}
|
|
@@ -295,7 +295,7 @@ export declare class MoneriumClient {
|
|
|
295
295
|
/** The PKCE code verifier */
|
|
296
296
|
codeVerifier?: string;
|
|
297
297
|
bearerProfile?: BearerProfile;
|
|
298
|
-
constructor(env?:
|
|
298
|
+
constructor(env?: 'production' | 'sandbox');
|
|
299
299
|
auth(args: AuthArgs): Promise<BearerProfile>;
|
|
300
300
|
/**
|
|
301
301
|
* Construct the url to the authorization code flow,
|