@monerium/sdk 2.2.1 → 2.2.3
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 +31 -11
- package/dist/index.d.ts +234 -240
- package/dist/index.mjs +727 -994
- package/dist/index.umd.js +1 -764
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,55 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [2.2.
|
|
3
|
+
## [2.2.3](https://github.com/monerium/sdk/compare/v2.2.2...v2.2.3) (2023-04-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* commonjs bundle not properly referenced in package.json ([85d4b19](https://github.com/monerium/sdk/commit/85d4b19c054102b48b9cd55c55b498965e9db7b6))
|
|
4
9
|
|
|
5
10
|
|
|
6
11
|
### Miscellaneous
|
|
7
12
|
|
|
8
|
-
*
|
|
9
|
-
* ignore release please branches for build ([4b68cfa](https://github.com/monerium/sdk/commit/4b68cfa17380432136620acb67e856619333e3aa))
|
|
10
|
-
* move configs to reduce clutter in root folder ([#78](https://github.com/monerium/sdk/issues/78)) ([f2dcb21](https://github.com/monerium/sdk/commit/f2dcb2190811c9521e029eb15caef3b4ee557c4a))
|
|
13
|
+
* add version to action step ([804d0d8](https://github.com/monerium/sdk/commit/804d0d843b809aad960f224a0602edd3359454fc))
|
|
11
14
|
|
|
12
|
-
## [2.2.
|
|
15
|
+
## [2.2.2](https://github.com/monerium/sdk/compare/v2.2.1...v2.2.2) (2023-04-26)
|
|
13
16
|
|
|
14
17
|
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* coverage output path ([675b7cd](https://github.com/monerium/sdk/commit/675b7cd3536a320dcbe915bfeb077609bfa834b1))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Miscellaneous
|
|
24
|
+
|
|
25
|
+
* archive build and reuse for deploying static files. ([#80](https://github.com/monerium/sdk/issues/80)) ([cfc34d8](https://github.com/monerium/sdk/commit/cfc34d80f2db547505c34b55ab3b2a7d0a37aae5))
|
|
26
|
+
* move .prettierignore into configs folder and add some rules ([171b0b3](https://github.com/monerium/sdk/commit/171b0b3c5dc807f0bec0cc9220b390302fdd98e9))
|
|
27
|
+
|
|
28
|
+
## [2.2.1](https://github.com/monerium/sdk/compare/v2.2.0...v2.2.1) (2023-04-26)
|
|
29
|
+
|
|
30
|
+
### Miscellaneous
|
|
31
|
+
|
|
32
|
+
- backward support for node 16.15 ([a80379b](https://github.com/monerium/sdk/commit/a80379b8849f78e541d9f4455cd12cd676e7751f))
|
|
33
|
+
- ignore release please branches for build ([4b68cfa](https://github.com/monerium/sdk/commit/4b68cfa17380432136620acb67e856619333e3aa))
|
|
34
|
+
- move configs to reduce clutter in root folder ([#78](https://github.com/monerium/sdk/issues/78)) ([f2dcb21](https://github.com/monerium/sdk/commit/f2dcb2190811c9521e029eb15caef3b4ee557c4a))
|
|
35
|
+
|
|
36
|
+
## [2.2.0](https://github.com/monerium/sdk/compare/v2.1.23...v2.2.0) (2023-04-25)
|
|
37
|
+
|
|
15
38
|
### Features
|
|
16
39
|
|
|
17
|
-
|
|
40
|
+
- use Yarn PnP ([#73](https://github.com/monerium/sdk/issues/73)) ([4295154](https://github.com/monerium/sdk/commit/4295154487c3eb255b23816b5cf32aac52cae710))
|
|
18
41
|
|
|
19
42
|
## [2.1.23](https://github.com/monerium/sdk/compare/v2.1.22...v2.1.23) (2023-04-25)
|
|
20
43
|
|
|
21
|
-
|
|
22
44
|
### Bug Fixes
|
|
23
45
|
|
|
24
|
-
|
|
46
|
+
- now it should publish succesfully to npm registry ([#71](https://github.com/monerium/sdk/issues/71)) ([5b5e37b](https://github.com/monerium/sdk/commit/5b5e37b2cde1d1e0411e3e023cfcd5f7eca376d6))
|
|
25
47
|
|
|
26
48
|
## [2.1.22](https://github.com/monerium/sdk/compare/v2.1.21...v2.1.22) (2023-04-24)
|
|
27
49
|
|
|
28
|
-
|
|
29
50
|
### Bug Fixes
|
|
30
51
|
|
|
31
|
-
|
|
32
|
-
|
|
52
|
+
- deploy static pipeline ([#69](https://github.com/monerium/sdk/issues/69)) ([38067e7](https://github.com/monerium/sdk/commit/38067e75e3334b6eb20dcc182f1d6aaca5af0caa))
|
|
33
53
|
|
|
34
54
|
## [2.1.21](https://github.com/monerium/sdk/compare/v2.1.20...v2.1.21) (2023-04-24)
|
|
35
55
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,328 +1,322 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
export type Environment = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
api: string;
|
|
5
|
+
web: string;
|
|
6
6
|
};
|
|
7
7
|
export type Config = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
environments: {
|
|
9
|
+
production: Environment;
|
|
10
|
+
sandbox: Environment;
|
|
11
|
+
};
|
|
12
12
|
};
|
|
13
13
|
export interface BearerProfile {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
access_token: string;
|
|
15
|
+
token_type: string;
|
|
16
|
+
expires_in: number;
|
|
17
|
+
refresh_token: string;
|
|
18
|
+
profile: string;
|
|
19
|
+
userId: string;
|
|
20
20
|
}
|
|
21
21
|
export declare enum Currency {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
export type AuthArgs =
|
|
28
|
-
| Omit<AuthCode, 'grant_type'>
|
|
29
|
-
| Omit<RefreshToken, 'grant_type'>
|
|
30
|
-
| Omit<ClientCredentials, 'grant_type'>;
|
|
22
|
+
eur = "eur",
|
|
23
|
+
usd = "usd",
|
|
24
|
+
gbp = "gbp",
|
|
25
|
+
isk = "isk"
|
|
26
|
+
}
|
|
27
|
+
export type AuthArgs = Omit<AuthCode, "grant_type"> | Omit<RefreshToken, "grant_type"> | Omit<ClientCredentials, "grant_type">;
|
|
31
28
|
export interface AuthCode {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
grant_type: "authorization_code";
|
|
30
|
+
client_id: string;
|
|
31
|
+
code: string;
|
|
32
|
+
code_verifier: string;
|
|
33
|
+
redirect_uri: string;
|
|
34
|
+
scope?: string;
|
|
38
35
|
}
|
|
39
36
|
export interface RefreshToken {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
grant_type: "refresh_token";
|
|
38
|
+
client_id: string;
|
|
39
|
+
refresh_token: string;
|
|
40
|
+
scope?: string;
|
|
44
41
|
}
|
|
45
42
|
export interface ClientCredentials {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
grant_type: "client_credentials";
|
|
44
|
+
client_id: string;
|
|
45
|
+
client_secret: string;
|
|
46
|
+
scope?: string;
|
|
50
47
|
}
|
|
51
48
|
/**
|
|
52
49
|
* @returns A {@link PKCERequest} object with properties omitted that are automatically computed in by the SDK.
|
|
53
50
|
*/
|
|
54
|
-
export type PKCERequestArgs = Omit<
|
|
55
|
-
PKCERequest,
|
|
56
|
-
'code_challenge' | 'code_challenge_method' | 'response_type'
|
|
57
|
-
>;
|
|
51
|
+
export type PKCERequestArgs = Omit<PKCERequest, "code_challenge" | "code_challenge_method" | "response_type">;
|
|
58
52
|
export type PKCERequest = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
53
|
+
/** the authentication flow client id of the application */
|
|
54
|
+
client_id: string;
|
|
55
|
+
/** the code challenge automatically generated by the SDK */
|
|
56
|
+
code_challenge: string;
|
|
57
|
+
/** the code challenge method for the authentication flow , handled by the SDK */
|
|
58
|
+
code_challenge_method: "S256";
|
|
59
|
+
/** the response type of the authentication flow, handled by the SDK */
|
|
60
|
+
response_type: "code";
|
|
61
|
+
/** the state of the application */
|
|
62
|
+
state?: string;
|
|
63
|
+
/** the redirect uri of the application */
|
|
64
|
+
redirect_uri?: string;
|
|
65
|
+
/** the scope of the application */
|
|
66
|
+
scope?: string;
|
|
67
|
+
/** the address of the wallet to automatically link */
|
|
68
|
+
address?: string;
|
|
69
|
+
/** the signature of the wallet to automatically link */
|
|
70
|
+
signature?: string;
|
|
71
|
+
/** the network of the wallet to automatically link */
|
|
72
|
+
network?: Network;
|
|
73
|
+
/** the chain of the wallet to automatically link */
|
|
74
|
+
chain?: Chain;
|
|
81
75
|
};
|
|
82
76
|
declare enum Method {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
77
|
+
password = "password",
|
|
78
|
+
resource = "resource",
|
|
79
|
+
jwt = "jwt",
|
|
80
|
+
apiKey = "apiKey"
|
|
87
81
|
}
|
|
88
82
|
export declare enum ProfileType {
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
corporate = "corporate",
|
|
84
|
+
personal = "personal"
|
|
91
85
|
}
|
|
92
86
|
export declare enum Permission {
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
read = "read",
|
|
88
|
+
write = "write"
|
|
95
89
|
}
|
|
96
90
|
export interface AuthProfile {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
91
|
+
id: string;
|
|
92
|
+
type: ProfileType;
|
|
93
|
+
name: string;
|
|
94
|
+
perms: Permission[];
|
|
101
95
|
}
|
|
102
96
|
export interface AuthContext {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
97
|
+
userId: string;
|
|
98
|
+
email: string;
|
|
99
|
+
name: string;
|
|
100
|
+
roles: "admin"[];
|
|
101
|
+
auth: {
|
|
102
|
+
method: Method;
|
|
103
|
+
subject: string;
|
|
104
|
+
verified: boolean;
|
|
105
|
+
};
|
|
106
|
+
defaultProfile: string;
|
|
107
|
+
profiles: AuthProfile[];
|
|
114
108
|
}
|
|
115
109
|
export declare enum KYCState {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
absent = "absent",
|
|
111
|
+
submitted = "submitted",
|
|
112
|
+
pending = "pending",
|
|
113
|
+
confirmed = "confirmed"
|
|
120
114
|
}
|
|
121
115
|
export declare enum KYCOutcome {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
approved = "approved",
|
|
117
|
+
rejected = "rejected",
|
|
118
|
+
unknown = "unknown"
|
|
125
119
|
}
|
|
126
120
|
export interface KYC {
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
state: KYCState;
|
|
122
|
+
outcome: KYCOutcome;
|
|
129
123
|
}
|
|
130
124
|
export declare enum PaymentStandard {
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
iban = "iban",
|
|
126
|
+
scan = "scan"
|
|
133
127
|
}
|
|
134
128
|
export interface Account {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
129
|
+
address: string;
|
|
130
|
+
currency: Currency;
|
|
131
|
+
standard: PaymentStandard;
|
|
132
|
+
iban?: string;
|
|
133
|
+
sortCode?: string;
|
|
134
|
+
accountNumber?: string;
|
|
135
|
+
network: Network;
|
|
136
|
+
chain: Chain;
|
|
137
|
+
id?: string;
|
|
144
138
|
}
|
|
145
139
|
export interface Profile {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
kyc: KYC;
|
|
143
|
+
accounts: Account[];
|
|
150
144
|
}
|
|
151
145
|
export declare enum Chain {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
146
|
+
polygon = "polygon",
|
|
147
|
+
ethereum = "ethereum",
|
|
148
|
+
gnosis = "gnosis"
|
|
155
149
|
}
|
|
156
150
|
export declare enum Network {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
151
|
+
mainnet = "mainnet",
|
|
152
|
+
chiado = "chiado",
|
|
153
|
+
goerli = "goerli",
|
|
154
|
+
mumbai = "mumbai"
|
|
161
155
|
}
|
|
162
156
|
export interface Balance {
|
|
163
|
-
|
|
164
|
-
|
|
157
|
+
currency: Currency;
|
|
158
|
+
amount: string;
|
|
165
159
|
}
|
|
166
160
|
export interface Balances {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
161
|
+
id: string;
|
|
162
|
+
address: string;
|
|
163
|
+
chain: Chain;
|
|
164
|
+
network: Network;
|
|
165
|
+
balances: Balance[];
|
|
172
166
|
}
|
|
173
167
|
export declare enum OrderKind {
|
|
174
|
-
|
|
175
|
-
|
|
168
|
+
redeem = "redeem",
|
|
169
|
+
issue = "issue"
|
|
176
170
|
}
|
|
177
171
|
export declare enum OrderState {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
placed = "placed",
|
|
173
|
+
pending = "pending",
|
|
174
|
+
processed = "processed",
|
|
175
|
+
rejected = "rejected"
|
|
182
176
|
}
|
|
183
177
|
export interface Fee {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
178
|
+
provider: "satchel";
|
|
179
|
+
currency: Currency;
|
|
180
|
+
amount: string;
|
|
187
181
|
}
|
|
188
182
|
export interface IBAN {
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
standard: PaymentStandard.iban;
|
|
184
|
+
iban: string;
|
|
191
185
|
}
|
|
192
186
|
export interface SCAN {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
187
|
+
standard: PaymentStandard.scan;
|
|
188
|
+
sortCode: string;
|
|
189
|
+
accountNumber: string;
|
|
196
190
|
}
|
|
197
191
|
export interface Individual {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
firstName: string;
|
|
193
|
+
lastName: string;
|
|
194
|
+
country?: string;
|
|
201
195
|
}
|
|
202
196
|
export interface Corporation {
|
|
203
|
-
|
|
204
|
-
|
|
197
|
+
companyName: string;
|
|
198
|
+
country: string;
|
|
205
199
|
}
|
|
206
200
|
export interface Counterpart {
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
identifier: IBAN | SCAN;
|
|
202
|
+
details: Individual | Corporation;
|
|
209
203
|
}
|
|
210
204
|
export interface OrderMetadata {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
205
|
+
approvedAt: string;
|
|
206
|
+
processedAt: string;
|
|
207
|
+
rejectedAt: string;
|
|
208
|
+
state: OrderState;
|
|
209
|
+
placedBy: string;
|
|
210
|
+
placedAt: string;
|
|
211
|
+
receivedAmount: string;
|
|
212
|
+
sentAmount: string;
|
|
219
213
|
}
|
|
220
214
|
export interface OrderFilter {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
215
|
+
address?: string;
|
|
216
|
+
txHash?: string;
|
|
217
|
+
profile?: string;
|
|
218
|
+
memo?: string;
|
|
219
|
+
accountId?: string;
|
|
220
|
+
state?: OrderState;
|
|
227
221
|
}
|
|
228
222
|
export interface Order {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
223
|
+
id: string;
|
|
224
|
+
profile: string;
|
|
225
|
+
accountId: string;
|
|
226
|
+
address: string;
|
|
227
|
+
kind: OrderKind;
|
|
228
|
+
amount: string;
|
|
229
|
+
currency: Currency;
|
|
230
|
+
totalFee: string;
|
|
231
|
+
fees: Fee[];
|
|
232
|
+
counterpart: Counterpart;
|
|
233
|
+
memo: string;
|
|
234
|
+
rejectedReason: string;
|
|
235
|
+
supportingDocumentId: string;
|
|
236
|
+
meta: OrderMetadata;
|
|
243
237
|
}
|
|
244
238
|
export interface Token {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
239
|
+
currency: Currency;
|
|
240
|
+
ticker: string;
|
|
241
|
+
symbol: string;
|
|
242
|
+
chain: Chain;
|
|
243
|
+
network: Network;
|
|
244
|
+
address: string;
|
|
245
|
+
decimals: number;
|
|
252
246
|
}
|
|
253
247
|
export interface NewOrder {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
248
|
+
kind: OrderKind;
|
|
249
|
+
amount: string;
|
|
250
|
+
signature: string;
|
|
251
|
+
accountId?: string;
|
|
252
|
+
address: string;
|
|
253
|
+
currency: Currency;
|
|
254
|
+
counterpart: Counterpart;
|
|
255
|
+
message: string;
|
|
256
|
+
memo: string;
|
|
257
|
+
supportingDocumentId?: string;
|
|
258
|
+
chain: Chain;
|
|
259
|
+
network: Network;
|
|
266
260
|
}
|
|
267
261
|
export interface SupportingDocMetadata {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
uploadedBy: string;
|
|
263
|
+
createdAt: string;
|
|
264
|
+
updatedAt: string;
|
|
271
265
|
}
|
|
272
266
|
export interface SupportingDoc {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
267
|
+
id: string;
|
|
268
|
+
name: string;
|
|
269
|
+
type: string;
|
|
270
|
+
size: number;
|
|
271
|
+
hash: string;
|
|
272
|
+
meta: SupportingDocMetadata;
|
|
279
273
|
}
|
|
280
274
|
export interface CurrencyAccounts {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
275
|
+
network: Network;
|
|
276
|
+
chain: Chain;
|
|
277
|
+
currency: Currency;
|
|
284
278
|
}
|
|
285
279
|
export interface LinkAddress {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
280
|
+
address: string;
|
|
281
|
+
message: string;
|
|
282
|
+
signature: string;
|
|
283
|
+
accounts: CurrencyAccounts[];
|
|
284
|
+
network?: Network;
|
|
285
|
+
chain?: Chain;
|
|
292
286
|
}
|
|
293
287
|
export declare class MoneriumClient {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
288
|
+
#private;
|
|
289
|
+
/** The PKCE code verifier */
|
|
290
|
+
codeVerifier?: string;
|
|
291
|
+
bearerProfile?: BearerProfile;
|
|
292
|
+
constructor(env?: "production" | "sandbox");
|
|
293
|
+
auth(args: AuthArgs): Promise<BearerProfile>;
|
|
294
|
+
/**
|
|
295
|
+
* Construct the url to the authorization code flow,
|
|
296
|
+
* the code verifier is needed afterwards to obtain an access token and is therefore stored in `this.codeVerifier`
|
|
297
|
+
* For automatic wallet link, add the following properties: `address`, `signature`, `chain` & `network`
|
|
298
|
+
* @returns string
|
|
299
|
+
*/
|
|
300
|
+
getAuthFlowURI(args: PKCERequestArgs): string;
|
|
301
|
+
/**
|
|
302
|
+
* @deprecated since v2.0.7, use {@link getAuthFlowURI} instead.
|
|
303
|
+
*/
|
|
304
|
+
pkceRequest: (args: PKCERequestArgs) => string;
|
|
305
|
+
getAuthContext(): Promise<AuthContext>;
|
|
306
|
+
/**
|
|
307
|
+
* @param {string} profileId - the id of the profile to fetch.
|
|
308
|
+
*/
|
|
309
|
+
getProfile(profileId: string): Promise<Profile>;
|
|
310
|
+
/**
|
|
311
|
+
* @param {string=} profileId - the id of the profile to fetch balances.
|
|
312
|
+
*/
|
|
313
|
+
getBalances(profileId?: string): Promise<Balances> | Promise<Balances[]>;
|
|
314
|
+
getOrders(filter?: OrderFilter): Promise<Order[]>;
|
|
315
|
+
getOrder(orderId: string): Promise<Order>;
|
|
316
|
+
getTokens(): Promise<Token[]>;
|
|
317
|
+
linkAddress(profileId: string, body: LinkAddress): Promise<any>;
|
|
318
|
+
placeOrder(order: NewOrder, profileId?: string): Promise<Order>;
|
|
319
|
+
uploadSupportingDocument(document: File): Promise<SupportingDoc>;
|
|
326
320
|
}
|
|
327
321
|
|
|
328
322
|
export {};
|