@monerium/sdk 2.0.16 → 2.0.18

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/dist/index.mjs ADDED
@@ -0,0 +1,748 @@
1
+ var ne = Object.defineProperty;
2
+ var oe = (e, t, o) =>
3
+ t in e
4
+ ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o })
5
+ : (e[t] = o);
6
+ var E = (e, t, o) => (oe(e, typeof t != "symbol" ? t + "" : t, o), o),
7
+ I = (e, t, o) => {
8
+ if (!t.has(e)) throw TypeError("Cannot " + o);
9
+ };
10
+ var U = (e, t, o) => (
11
+ I(e, t, "read from private field"), o ? o.call(e) : t.get(e)
12
+ ),
13
+ P = (e, t, o) => {
14
+ if (t.has(e))
15
+ throw TypeError("Cannot add the same private member more than once");
16
+ t instanceof WeakSet ? t.add(e) : t.set(e, o);
17
+ },
18
+ M = (e, t, o, a) => (
19
+ I(e, t, "write to private field"), a ? a.call(e, o) : t.set(e, o), o
20
+ );
21
+ var B = (e, t, o) => (I(e, t, "access private method"), o);
22
+ var O =
23
+ typeof globalThis < "u"
24
+ ? globalThis
25
+ : typeof window < "u"
26
+ ? window
27
+ : typeof global < "u"
28
+ ? global
29
+ : typeof self < "u"
30
+ ? self
31
+ : {};
32
+ function ie(e) {
33
+ if (e.__esModule) return e;
34
+ var t = e.default;
35
+ if (typeof t == "function") {
36
+ var o = function a() {
37
+ if (this instanceof a) {
38
+ var w = [null];
39
+ w.push.apply(w, arguments);
40
+ var l = Function.bind.apply(t, w);
41
+ return new l();
42
+ }
43
+ return t.apply(this, arguments);
44
+ };
45
+ o.prototype = t.prototype;
46
+ } else o = {};
47
+ return (
48
+ Object.defineProperty(o, "__esModule", { value: !0 }),
49
+ Object.keys(e).forEach(function (a) {
50
+ var w = Object.getOwnPropertyDescriptor(e, a);
51
+ Object.defineProperty(
52
+ o,
53
+ a,
54
+ w.get
55
+ ? w
56
+ : {
57
+ enumerable: !0,
58
+ get: function () {
59
+ return e[a];
60
+ },
61
+ }
62
+ );
63
+ }),
64
+ o
65
+ );
66
+ }
67
+ var D = {},
68
+ se = {
69
+ get exports() {
70
+ return D;
71
+ },
72
+ set exports(e) {
73
+ D = e;
74
+ },
75
+ };
76
+ function ae(e) {
77
+ throw new Error(
78
+ 'Could not dynamically require "' +
79
+ e +
80
+ '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'
81
+ );
82
+ }
83
+ var q = {},
84
+ ce = {
85
+ get exports() {
86
+ return q;
87
+ },
88
+ set exports(e) {
89
+ q = e;
90
+ },
91
+ };
92
+ const ue = {},
93
+ fe = /* @__PURE__ */ Object.freeze(
94
+ /* @__PURE__ */ Object.defineProperty(
95
+ {
96
+ __proto__: null,
97
+ default: ue,
98
+ },
99
+ Symbol.toStringTag,
100
+ { value: "Module" }
101
+ )
102
+ ),
103
+ he = /* @__PURE__ */ ie(fe);
104
+ var G;
105
+ function J() {
106
+ return (
107
+ G ||
108
+ ((G = 1),
109
+ (function (e, t) {
110
+ (function (o, a) {
111
+ e.exports = a();
112
+ })(O, function () {
113
+ var o =
114
+ o ||
115
+ (function (a, w) {
116
+ var l;
117
+ if (
118
+ (typeof window < "u" && window.crypto && (l = window.crypto),
119
+ typeof self < "u" && self.crypto && (l = self.crypto),
120
+ typeof globalThis < "u" &&
121
+ globalThis.crypto &&
122
+ (l = globalThis.crypto),
123
+ !l &&
124
+ typeof window < "u" &&
125
+ window.msCrypto &&
126
+ (l = window.msCrypto),
127
+ !l && typeof O < "u" && O.crypto && (l = O.crypto),
128
+ !l && typeof ae == "function")
129
+ )
130
+ try {
131
+ l = he;
132
+ } catch {}
133
+ var S = function () {
134
+ if (l) {
135
+ if (typeof l.getRandomValues == "function")
136
+ try {
137
+ return l.getRandomValues(new Uint32Array(1))[0];
138
+ } catch {}
139
+ if (typeof l.randomBytes == "function")
140
+ try {
141
+ return l.randomBytes(4).readInt32LE();
142
+ } catch {}
143
+ }
144
+ throw new Error(
145
+ "Native crypto module could not be used to get secure random number."
146
+ );
147
+ },
148
+ k =
149
+ Object.create ||
150
+ (function () {
151
+ function r() {}
152
+ return function (n) {
153
+ var s;
154
+ return (
155
+ (r.prototype = n),
156
+ (s = new r()),
157
+ (r.prototype = null),
158
+ s
159
+ );
160
+ };
161
+ })(),
162
+ _ = {},
163
+ C = (_.lib = {}),
164
+ y = (C.Base = (function () {
165
+ return {
166
+ extend: function (r) {
167
+ var n = k(this);
168
+ return (
169
+ r && n.mixIn(r),
170
+ (!n.hasOwnProperty("init") || this.init === n.init) &&
171
+ (n.init = function () {
172
+ n.$super.init.apply(this, arguments);
173
+ }),
174
+ (n.init.prototype = n),
175
+ (n.$super = this),
176
+ n
177
+ );
178
+ },
179
+ create: function () {
180
+ var r = this.extend();
181
+ return r.init.apply(r, arguments), r;
182
+ },
183
+ init: function () {},
184
+ mixIn: function (r) {
185
+ for (var n in r) r.hasOwnProperty(n) && (this[n] = r[n]);
186
+ r.hasOwnProperty("toString") &&
187
+ (this.toString = r.toString);
188
+ },
189
+ clone: function () {
190
+ return this.init.prototype.extend(this);
191
+ },
192
+ };
193
+ })()),
194
+ d = (C.WordArray = y.extend({
195
+ init: function (r, n) {
196
+ (r = this.words = r || []),
197
+ n != w
198
+ ? (this.sigBytes = n)
199
+ : (this.sigBytes = r.length * 4);
200
+ },
201
+ toString: function (r) {
202
+ return (r || u).stringify(this);
203
+ },
204
+ concat: function (r) {
205
+ var n = this.words,
206
+ s = r.words,
207
+ c = this.sigBytes,
208
+ p = r.sigBytes;
209
+ if ((this.clamp(), c % 4))
210
+ for (var g = 0; g < p; g++) {
211
+ var m = (s[g >>> 2] >>> (24 - (g % 4) * 8)) & 255;
212
+ n[(c + g) >>> 2] |= m << (24 - ((c + g) % 4) * 8);
213
+ }
214
+ else
215
+ for (var b = 0; b < p; b += 4)
216
+ n[(c + b) >>> 2] = s[b >>> 2];
217
+ return (this.sigBytes += p), this;
218
+ },
219
+ clamp: function () {
220
+ var r = this.words,
221
+ n = this.sigBytes;
222
+ (r[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
223
+ (r.length = a.ceil(n / 4));
224
+ },
225
+ clone: function () {
226
+ var r = y.clone.call(this);
227
+ return (r.words = this.words.slice(0)), r;
228
+ },
229
+ random: function (r) {
230
+ for (var n = [], s = 0; s < r; s += 4) n.push(S());
231
+ return new d.init(n, r);
232
+ },
233
+ })),
234
+ v = (_.enc = {}),
235
+ u = (v.Hex = {
236
+ stringify: function (r) {
237
+ for (
238
+ var n = r.words, s = r.sigBytes, c = [], p = 0;
239
+ p < s;
240
+ p++
241
+ ) {
242
+ var g = (n[p >>> 2] >>> (24 - (p % 4) * 8)) & 255;
243
+ c.push((g >>> 4).toString(16)),
244
+ c.push((g & 15).toString(16));
245
+ }
246
+ return c.join("");
247
+ },
248
+ parse: function (r) {
249
+ for (var n = r.length, s = [], c = 0; c < n; c += 2)
250
+ s[c >>> 3] |=
251
+ parseInt(r.substr(c, 2), 16) << (24 - (c % 8) * 4);
252
+ return new d.init(s, n / 2);
253
+ },
254
+ }),
255
+ h = (v.Latin1 = {
256
+ stringify: function (r) {
257
+ for (
258
+ var n = r.words, s = r.sigBytes, c = [], p = 0;
259
+ p < s;
260
+ p++
261
+ ) {
262
+ var g = (n[p >>> 2] >>> (24 - (p % 4) * 8)) & 255;
263
+ c.push(String.fromCharCode(g));
264
+ }
265
+ return c.join("");
266
+ },
267
+ parse: function (r) {
268
+ for (var n = r.length, s = [], c = 0; c < n; c++)
269
+ s[c >>> 2] |=
270
+ (r.charCodeAt(c) & 255) << (24 - (c % 4) * 8);
271
+ return new d.init(s, n);
272
+ },
273
+ }),
274
+ i = (v.Utf8 = {
275
+ stringify: function (r) {
276
+ try {
277
+ return decodeURIComponent(escape(h.stringify(r)));
278
+ } catch {
279
+ throw new Error("Malformed UTF-8 data");
280
+ }
281
+ },
282
+ parse: function (r) {
283
+ return h.parse(unescape(encodeURIComponent(r)));
284
+ },
285
+ }),
286
+ f = (C.BufferedBlockAlgorithm = y.extend({
287
+ reset: function () {
288
+ (this._data = new d.init()), (this._nDataBytes = 0);
289
+ },
290
+ _append: function (r) {
291
+ typeof r == "string" && (r = i.parse(r)),
292
+ this._data.concat(r),
293
+ (this._nDataBytes += r.sigBytes);
294
+ },
295
+ _process: function (r) {
296
+ var n,
297
+ s = this._data,
298
+ c = s.words,
299
+ p = s.sigBytes,
300
+ g = this.blockSize,
301
+ m = g * 4,
302
+ b = p / m;
303
+ r
304
+ ? (b = a.ceil(b))
305
+ : (b = a.max((b | 0) - this._minBufferSize, 0));
306
+ var z = b * g,
307
+ H = a.min(z * 4, p);
308
+ if (z) {
309
+ for (var L = 0; L < z; L += g) this._doProcessBlock(c, L);
310
+ (n = c.splice(0, z)), (s.sigBytes -= H);
311
+ }
312
+ return new d.init(n, H);
313
+ },
314
+ clone: function () {
315
+ var r = y.clone.call(this);
316
+ return (r._data = this._data.clone()), r;
317
+ },
318
+ _minBufferSize: 0,
319
+ }));
320
+ C.Hasher = f.extend({
321
+ cfg: y.extend(),
322
+ init: function (r) {
323
+ (this.cfg = this.cfg.extend(r)), this.reset();
324
+ },
325
+ reset: function () {
326
+ f.reset.call(this), this._doReset();
327
+ },
328
+ update: function (r) {
329
+ return this._append(r), this._process(), this;
330
+ },
331
+ finalize: function (r) {
332
+ r && this._append(r);
333
+ var n = this._doFinalize();
334
+ return n;
335
+ },
336
+ blockSize: 16,
337
+ _createHelper: function (r) {
338
+ return function (n, s) {
339
+ return new r.init(s).finalize(n);
340
+ };
341
+ },
342
+ _createHmacHelper: function (r) {
343
+ return function (n, s) {
344
+ return new x.HMAC.init(r, s).finalize(n);
345
+ };
346
+ },
347
+ });
348
+ var x = (_.algo = {});
349
+ return _;
350
+ })(Math);
351
+ return o;
352
+ });
353
+ })(ce)),
354
+ q
355
+ );
356
+ }
357
+ (function (e, t) {
358
+ (function (o, a) {
359
+ e.exports = a(J());
360
+ })(O, function (o) {
361
+ return (
362
+ (function () {
363
+ var a = o,
364
+ w = a.lib,
365
+ l = w.WordArray,
366
+ S = a.enc;
367
+ S.Base64url = {
368
+ stringify: function (_, C = !0) {
369
+ var y = _.words,
370
+ d = _.sigBytes,
371
+ v = C ? this._safe_map : this._map;
372
+ _.clamp();
373
+ for (var u = [], h = 0; h < d; h += 3)
374
+ for (
375
+ var i = (y[h >>> 2] >>> (24 - (h % 4) * 8)) & 255,
376
+ f = (y[(h + 1) >>> 2] >>> (24 - ((h + 1) % 4) * 8)) & 255,
377
+ x = (y[(h + 2) >>> 2] >>> (24 - ((h + 2) % 4) * 8)) & 255,
378
+ r = (i << 16) | (f << 8) | x,
379
+ n = 0;
380
+ n < 4 && h + n * 0.75 < d;
381
+ n++
382
+ )
383
+ u.push(v.charAt((r >>> (6 * (3 - n))) & 63));
384
+ var s = v.charAt(64);
385
+ if (s) for (; u.length % 4; ) u.push(s);
386
+ return u.join("");
387
+ },
388
+ parse: function (_, C = !0) {
389
+ var y = _.length,
390
+ d = C ? this._safe_map : this._map,
391
+ v = this._reverseMap;
392
+ if (!v) {
393
+ v = this._reverseMap = [];
394
+ for (var u = 0; u < d.length; u++) v[d.charCodeAt(u)] = u;
395
+ }
396
+ var h = d.charAt(64);
397
+ if (h) {
398
+ var i = _.indexOf(h);
399
+ i !== -1 && (y = i);
400
+ }
401
+ return k(_, y, v);
402
+ },
403
+ _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
404
+ _safe_map:
405
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
406
+ };
407
+ function k(_, C, y) {
408
+ for (var d = [], v = 0, u = 0; u < C; u++)
409
+ if (u % 4) {
410
+ var h = y[_.charCodeAt(u - 1)] << ((u % 4) * 2),
411
+ i = y[_.charCodeAt(u)] >>> (6 - (u % 4) * 2),
412
+ f = h | i;
413
+ (d[v >>> 2] |= f << (24 - (v % 4) * 8)), v++;
414
+ }
415
+ return l.create(d, v);
416
+ }
417
+ })(),
418
+ o.enc.Base64url
419
+ );
420
+ });
421
+ })(se);
422
+ var V = {},
423
+ le = {
424
+ get exports() {
425
+ return V;
426
+ },
427
+ set exports(e) {
428
+ V = e;
429
+ },
430
+ };
431
+ (function (e, t) {
432
+ (function (o, a) {
433
+ e.exports = a(J());
434
+ })(O, function (o) {
435
+ return (
436
+ (function (a) {
437
+ var w = o,
438
+ l = w.lib,
439
+ S = l.WordArray,
440
+ k = l.Hasher,
441
+ _ = w.algo,
442
+ C = [],
443
+ y = [];
444
+ (function () {
445
+ function u(x) {
446
+ for (var r = a.sqrt(x), n = 2; n <= r; n++) if (!(x % n)) return !1;
447
+ return !0;
448
+ }
449
+ function h(x) {
450
+ return ((x - (x | 0)) * 4294967296) | 0;
451
+ }
452
+ for (var i = 2, f = 0; f < 64; )
453
+ u(i) &&
454
+ (f < 8 && (C[f] = h(a.pow(i, 1 / 2))),
455
+ (y[f] = h(a.pow(i, 1 / 3))),
456
+ f++),
457
+ i++;
458
+ })();
459
+ var d = [],
460
+ v = (_.SHA256 = k.extend({
461
+ _doReset: function () {
462
+ this._hash = new S.init(C.slice(0));
463
+ },
464
+ _doProcessBlock: function (u, h) {
465
+ for (
466
+ var i = this._hash.words,
467
+ f = i[0],
468
+ x = i[1],
469
+ r = i[2],
470
+ n = i[3],
471
+ s = i[4],
472
+ c = i[5],
473
+ p = i[6],
474
+ g = i[7],
475
+ m = 0;
476
+ m < 64;
477
+ m++
478
+ ) {
479
+ if (m < 16) d[m] = u[h + m] | 0;
480
+ else {
481
+ var b = d[m - 15],
482
+ z =
483
+ ((b << 25) | (b >>> 7)) ^
484
+ ((b << 14) | (b >>> 18)) ^
485
+ (b >>> 3),
486
+ H = d[m - 2],
487
+ L =
488
+ ((H << 15) | (H >>> 17)) ^
489
+ ((H << 13) | (H >>> 19)) ^
490
+ (H >>> 10);
491
+ d[m] = z + d[m - 7] + L + d[m - 16];
492
+ }
493
+ var K = (s & c) ^ (~s & p),
494
+ Y = (f & x) ^ (f & r) ^ (x & r),
495
+ ee =
496
+ ((f << 30) | (f >>> 2)) ^
497
+ ((f << 19) | (f >>> 13)) ^
498
+ ((f << 10) | (f >>> 22)),
499
+ re =
500
+ ((s << 26) | (s >>> 6)) ^
501
+ ((s << 21) | (s >>> 11)) ^
502
+ ((s << 7) | (s >>> 25)),
503
+ N = g + re + K + y[m] + d[m],
504
+ te = ee + Y;
505
+ (g = p),
506
+ (p = c),
507
+ (c = s),
508
+ (s = (n + N) | 0),
509
+ (n = r),
510
+ (r = x),
511
+ (x = f),
512
+ (f = (N + te) | 0);
513
+ }
514
+ (i[0] = (i[0] + f) | 0),
515
+ (i[1] = (i[1] + x) | 0),
516
+ (i[2] = (i[2] + r) | 0),
517
+ (i[3] = (i[3] + n) | 0),
518
+ (i[4] = (i[4] + s) | 0),
519
+ (i[5] = (i[5] + c) | 0),
520
+ (i[6] = (i[6] + p) | 0),
521
+ (i[7] = (i[7] + g) | 0);
522
+ },
523
+ _doFinalize: function () {
524
+ var u = this._data,
525
+ h = u.words,
526
+ i = this._nDataBytes * 8,
527
+ f = u.sigBytes * 8;
528
+ return (
529
+ (h[f >>> 5] |= 128 << (24 - (f % 32))),
530
+ (h[(((f + 64) >>> 9) << 4) + 14] = a.floor(i / 4294967296)),
531
+ (h[(((f + 64) >>> 9) << 4) + 15] = i),
532
+ (u.sigBytes = h.length * 4),
533
+ this._process(),
534
+ this._hash
535
+ );
536
+ },
537
+ clone: function () {
538
+ var u = k.clone.call(this);
539
+ return (u._hash = this._hash.clone()), u;
540
+ },
541
+ }));
542
+ (w.SHA256 = k._createHelper(v)),
543
+ (w.HmacSHA256 = k._createHmacHelper(v));
544
+ })(Math),
545
+ o.SHA256
546
+ );
547
+ });
548
+ })(le);
549
+ const de = () => {
550
+ let e = "";
551
+ const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
552
+ o = t.length;
553
+ let a = 0;
554
+ for (; a < 128; ) (e += t.charAt(Math.floor(Math.random() * o))), (a += 1);
555
+ return e;
556
+ },
557
+ pe = {
558
+ environments: {
559
+ production: {
560
+ api: "https://api.monerium.app",
561
+ web: "https://monerium.app",
562
+ },
563
+ sandbox: {
564
+ api: "https://api.monerium.dev",
565
+ web: "https://sandbox.monerium.dev",
566
+ },
567
+ },
568
+ };
569
+ var $, W, A, R, T, Q, j, X, F, Z;
570
+ class Re {
571
+ constructor(t = "sandbox") {
572
+ P(this, A);
573
+ P(this, T);
574
+ P(this, j);
575
+ P(this, F);
576
+ P(this, $, void 0);
577
+ P(this, W, void 0);
578
+ E(this, "codeVerifier");
579
+ E(this, "bearerProfile");
580
+ E(this, "pkceRequest", (t) => this.getAuthFlowURI(t));
581
+ M(this, $, pe.environments[t]);
582
+ }
583
+ async auth(t) {
584
+ let o;
585
+ if (B(this, T, Q).call(this, t))
586
+ o = { ...t, grant_type: "authorization_code" };
587
+ else if (B(this, j, X).call(this, t))
588
+ o = { ...t, grant_type: "refresh_token" };
589
+ else if (B(this, F, Z).call(this, t))
590
+ o = { ...t, grant_type: "client_credentials" };
591
+ else throw new Error("Authentication method could not be detected.");
592
+ (this.bearerProfile = await B(this, A, R).call(
593
+ this,
594
+ "post",
595
+ "auth/token",
596
+ new URLSearchParams(o),
597
+ !0
598
+ )),
599
+ M(this, W, `Bearer ${this.bearerProfile.access_token}`);
600
+ }
601
+ getAuthFlowURI(t) {
602
+ this.codeVerifier = de();
603
+ const o = D.stringify(V(this.codeVerifier)),
604
+ a = {
605
+ ...t,
606
+ client_id: t == null ? void 0 : t.client_id,
607
+ code_challenge: o,
608
+ code_challenge_method: "S256",
609
+ response_type: "code",
610
+ };
611
+ return `${U(this, $).api}/auth?${new URLSearchParams(a)}`;
612
+ }
613
+ getAuthContext() {
614
+ return B(this, A, R).call(this, "get", "auth/context");
615
+ }
616
+ getProfile(t) {
617
+ return B(this, A, R).call(this, "get", `profiles/${t}`);
618
+ }
619
+ getBalances(t) {
620
+ return t
621
+ ? B(this, A, R).call(this, "get", `profiles/${t}/balances`)
622
+ : B(this, A, R).call(this, "get", "balances");
623
+ }
624
+ getOrders(t) {
625
+ const o = new URLSearchParams(t);
626
+ return B(this, A, R).call(this, "get", `orders?${o}`);
627
+ }
628
+ getOrder(t) {
629
+ return B(this, A, R).call(this, "get", `orders/${t}`);
630
+ }
631
+ getTokens() {
632
+ return B(this, A, R).call(this, "get", "tokens");
633
+ }
634
+ linkAddress(t, o) {
635
+ return B(this, A, R).call(
636
+ this,
637
+ "post",
638
+ `profiles/${t}/addresses`,
639
+ JSON.stringify(o)
640
+ );
641
+ }
642
+ placeOrder(t, o) {
643
+ return o
644
+ ? B(this, A, R).call(
645
+ this,
646
+ "post",
647
+ `profiles/${o}/orders`,
648
+ JSON.stringify(t)
649
+ )
650
+ : B(this, A, R).call(this, "post", "orders", JSON.stringify(t));
651
+ }
652
+ uploadSupportingDocument(t) {
653
+ const o = new URLSearchParams(t);
654
+ return B(this, A, R).call(this, "post", "files/supporting-document", o, !0);
655
+ }
656
+ }
657
+ ($ = new WeakMap()),
658
+ (W = new WeakMap()),
659
+ (A = new WeakSet()),
660
+ (R = async function (t, o, a, w) {
661
+ const l = await fetch(`${U(this, $).api}/${o}`, {
662
+ method: t,
663
+ headers: {
664
+ "Content-Type": `application/${w ? "x-www-form-urlencoded" : "json"}`,
665
+ Authorization: U(this, W) || "",
666
+ },
667
+ body: a,
668
+ });
669
+ let S;
670
+ try {
671
+ S = await l.json();
672
+ } catch {
673
+ throw await l.text();
674
+ }
675
+ if (l.ok) return S;
676
+ throw S;
677
+ }),
678
+ (T = new WeakSet()),
679
+ (Q = function (t) {
680
+ return t.code != null;
681
+ }),
682
+ (j = new WeakSet()),
683
+ (X = function (t) {
684
+ return t.refresh_token != null;
685
+ }),
686
+ (F = new WeakSet()),
687
+ (Z = function (t) {
688
+ return t.client_secret != null;
689
+ });
690
+ var ve = /* @__PURE__ */ ((e) => (
691
+ (e.eur = "eur"), (e.usd = "usd"), (e.gbp = "gbp"), (e.isk = "isk"), e
692
+ ))(ve || {}),
693
+ ge = /* @__PURE__ */ ((e) => (
694
+ (e.corporate = "corporate"), (e.personal = "personal"), e
695
+ ))(ge || {}),
696
+ ye = /* @__PURE__ */ ((e) => ((e.read = "read"), (e.write = "write"), e))(
697
+ ye || {}
698
+ ),
699
+ we = /* @__PURE__ */ ((e) => (
700
+ (e.absent = "absent"),
701
+ (e.submitted = "submitted"),
702
+ (e.pending = "pending"),
703
+ (e.confirmed = "confirmed"),
704
+ e
705
+ ))(we || {}),
706
+ _e = /* @__PURE__ */ ((e) => (
707
+ (e.approved = "approved"),
708
+ (e.rejected = "rejected"),
709
+ (e.unknown = "unknown"),
710
+ e
711
+ ))(_e || {}),
712
+ me = /* @__PURE__ */ ((e) => ((e.iban = "iban"), (e.scan = "scan"), e))(
713
+ me || {}
714
+ ),
715
+ be = /* @__PURE__ */ ((e) => (
716
+ (e.polygon = "polygon"), (e.ethereum = "ethereum"), (e.gnosis = "gnosis"), e
717
+ ))(be || {}),
718
+ Be = /* @__PURE__ */ ((e) => (
719
+ (e.mainnet = "mainnet"),
720
+ (e.chiado = "chiado"),
721
+ (e.goerli = "goerli"),
722
+ (e.mumbai = "mumbai"),
723
+ e
724
+ ))(Be || {}),
725
+ xe = /* @__PURE__ */ ((e) => ((e.redeem = "redeem"), (e.issue = "issue"), e))(
726
+ xe || {}
727
+ ),
728
+ Ae = /* @__PURE__ */ ((e) => (
729
+ (e.placed = "placed"),
730
+ (e.pending = "pending"),
731
+ (e.processed = "processed"),
732
+ (e.rejected = "rejected"),
733
+ e
734
+ ))(Ae || {});
735
+ export {
736
+ be as Chain,
737
+ ve as Currency,
738
+ _e as KYCOutcome,
739
+ we as KYCState,
740
+ Re as MoneriumClient,
741
+ Be as Network,
742
+ xe as OrderKind,
743
+ Ae as OrderState,
744
+ me as PaymentStandard,
745
+ ye as Permission,
746
+ ge as ProfileType,
747
+ };
748
+ //# sourceMappingURL=index.mjs.map