@layers/amba-core 1.2.0 → 4.0.1
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/package.json +1 -1
- package/pkg/amba_core.d.ts +17 -3
- package/pkg/amba_core.js +72 -11
- package/pkg/amba_core_bg.wasm +0 -0
- package/pkg/amba_core_bg.wasm.d.ts +10 -3
- package/pkg-rn/amba_core.d.ts +7 -0
- package/pkg-rn/amba_core_bg.js +72 -11
- package/pkg-rn/amba_core_bg.wasm.d.ts +10 -3
- package/pkg-rn/amba_core_bg.wasm.js +55529 -47154
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers/amba-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "amba SDK runtime — shared client core used by @layers/amba-web, @layers/amba-node, @layers/amba-react-native. Internal dependency; install one of those packages instead.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./pkg/amba_core.js",
|
package/pkg/amba_core.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export class AmbaCoreWasm {
|
|
|
54
54
|
contentUpdateItem(id: string, state_json: string): Promise<any>;
|
|
55
55
|
currenciesGetBalance(): Promise<any>;
|
|
56
56
|
currenciesGetTransactions(currency_key: string): Promise<any>;
|
|
57
|
+
currentIdentifiers(): Promise<any>;
|
|
57
58
|
deepLinksCreate(params_json: string): Promise<any>;
|
|
58
59
|
deepLinksGet(short_code: string): Promise<any>;
|
|
59
60
|
diagnosticsPing(): Promise<any>;
|
|
@@ -113,6 +114,8 @@ export class AmbaCoreWasm {
|
|
|
113
114
|
leaguesCohort(): Promise<any>;
|
|
114
115
|
leaguesMe(): Promise<any>;
|
|
115
116
|
linkAccount(provider: string, credential: string): Promise<any>;
|
|
117
|
+
linkEmailOtp(email: string, code: string): Promise<any>;
|
|
118
|
+
linkSmsOtp(phone: string, code: string): Promise<any>;
|
|
116
119
|
me(): Promise<any>;
|
|
117
120
|
/**
|
|
118
121
|
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
@@ -217,6 +220,10 @@ export class AmbaCoreWasm {
|
|
|
217
220
|
* for back-compat.
|
|
218
221
|
*/
|
|
219
222
|
track(event: string, properties_json?: string | null, telemetry?: boolean | null): Promise<any>;
|
|
223
|
+
unlinkApple(): Promise<any>;
|
|
224
|
+
unlinkEmailOtp(): Promise<any>;
|
|
225
|
+
unlinkGoogle(): Promise<any>;
|
|
226
|
+
unlinkSmsOtp(): Promise<any>;
|
|
220
227
|
usersGet(user_id?: string | null): Promise<any>;
|
|
221
228
|
usersUpdate(user_id: string | null | undefined, patch_json: string): Promise<any>;
|
|
222
229
|
verifyEmailOtp(email: string, code: string): Promise<any>;
|
|
@@ -258,6 +265,7 @@ export interface InitOutput {
|
|
|
258
265
|
readonly ambacorewasm_contentUpdateItem: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
259
266
|
readonly ambacorewasm_currenciesGetBalance: (a: number) => number;
|
|
260
267
|
readonly ambacorewasm_currenciesGetTransactions: (a: number, b: number, c: number) => number;
|
|
268
|
+
readonly ambacorewasm_currentIdentifiers: (a: number) => number;
|
|
261
269
|
readonly ambacorewasm_deepLinksCreate: (a: number, b: number, c: number) => number;
|
|
262
270
|
readonly ambacorewasm_deepLinksGet: (a: number, b: number, c: number) => number;
|
|
263
271
|
readonly ambacorewasm_diagnosticsPing: (a: number) => number;
|
|
@@ -295,6 +303,8 @@ export interface InitOutput {
|
|
|
295
303
|
readonly ambacorewasm_leaguesCohort: (a: number) => number;
|
|
296
304
|
readonly ambacorewasm_leaguesMe: (a: number) => number;
|
|
297
305
|
readonly ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
306
|
+
readonly ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
307
|
+
readonly ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
298
308
|
readonly ambacorewasm_me: (a: number) => number;
|
|
299
309
|
readonly ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
300
310
|
readonly ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
@@ -348,6 +358,10 @@ export interface InitOutput {
|
|
|
348
358
|
readonly ambacorewasm_syncPullChanges: (a: number, b: number, c: number) => number;
|
|
349
359
|
readonly ambacorewasm_syncPushChanges: (a: number, b: number, c: number) => number;
|
|
350
360
|
readonly ambacorewasm_track: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
361
|
+
readonly ambacorewasm_unlinkApple: (a: number) => number;
|
|
362
|
+
readonly ambacorewasm_unlinkEmailOtp: (a: number) => number;
|
|
363
|
+
readonly ambacorewasm_unlinkGoogle: (a: number) => number;
|
|
364
|
+
readonly ambacorewasm_unlinkSmsOtp: (a: number) => number;
|
|
351
365
|
readonly ambacorewasm_usersGet: (a: number, b: number, c: number) => number;
|
|
352
366
|
readonly ambacorewasm_usersUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
353
367
|
readonly ambacorewasm_verifyEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -356,9 +370,9 @@ export interface InitOutput {
|
|
|
356
370
|
readonly ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
357
371
|
readonly ambacorewasm_xpGetBalance: (a: number) => number;
|
|
358
372
|
readonly ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
359
|
-
readonly
|
|
360
|
-
readonly
|
|
361
|
-
readonly
|
|
373
|
+
readonly __wasm_bindgen_func_elem_2995: (a: number, b: number, c: number, d: number) => void;
|
|
374
|
+
readonly __wasm_bindgen_func_elem_2991: (a: number, b: number, c: number, d: number) => void;
|
|
375
|
+
readonly __wasm_bindgen_func_elem_2995_133: (a: number, b: number, c: number, d: number) => void;
|
|
362
376
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
363
377
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
364
378
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg/amba_core.js
CHANGED
|
@@ -326,6 +326,13 @@ export class AmbaCoreWasm {
|
|
|
326
326
|
const ret = wasm.ambacorewasm_currenciesGetTransactions(this.__wbg_ptr, ptr0, len0);
|
|
327
327
|
return takeObject(ret);
|
|
328
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* @returns {Promise<any>}
|
|
331
|
+
*/
|
|
332
|
+
currentIdentifiers() {
|
|
333
|
+
const ret = wasm.ambacorewasm_currentIdentifiers(this.__wbg_ptr);
|
|
334
|
+
return takeObject(ret);
|
|
335
|
+
}
|
|
329
336
|
/**
|
|
330
337
|
* @param {string} params_json
|
|
331
338
|
* @returns {Promise<any>}
|
|
@@ -710,6 +717,32 @@ export class AmbaCoreWasm {
|
|
|
710
717
|
const ret = wasm.ambacorewasm_linkAccount(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
711
718
|
return takeObject(ret);
|
|
712
719
|
}
|
|
720
|
+
/**
|
|
721
|
+
* @param {string} email
|
|
722
|
+
* @param {string} code
|
|
723
|
+
* @returns {Promise<any>}
|
|
724
|
+
*/
|
|
725
|
+
linkEmailOtp(email, code) {
|
|
726
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
727
|
+
const len0 = WASM_VECTOR_LEN;
|
|
728
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
729
|
+
const len1 = WASM_VECTOR_LEN;
|
|
730
|
+
const ret = wasm.ambacorewasm_linkEmailOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
731
|
+
return takeObject(ret);
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* @param {string} phone
|
|
735
|
+
* @param {string} code
|
|
736
|
+
* @returns {Promise<any>}
|
|
737
|
+
*/
|
|
738
|
+
linkSmsOtp(phone, code) {
|
|
739
|
+
const ptr0 = passStringToWasm0(phone, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
740
|
+
const len0 = WASM_VECTOR_LEN;
|
|
741
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
742
|
+
const len1 = WASM_VECTOR_LEN;
|
|
743
|
+
const ret = wasm.ambacorewasm_linkSmsOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
744
|
+
return takeObject(ret);
|
|
745
|
+
}
|
|
713
746
|
/**
|
|
714
747
|
* @returns {Promise<any>}
|
|
715
748
|
*/
|
|
@@ -1276,6 +1309,34 @@ export class AmbaCoreWasm {
|
|
|
1276
1309
|
const ret = wasm.ambacorewasm_track(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(telemetry) ? 0xFFFFFF : telemetry ? 1 : 0);
|
|
1277
1310
|
return takeObject(ret);
|
|
1278
1311
|
}
|
|
1312
|
+
/**
|
|
1313
|
+
* @returns {Promise<any>}
|
|
1314
|
+
*/
|
|
1315
|
+
unlinkApple() {
|
|
1316
|
+
const ret = wasm.ambacorewasm_unlinkApple(this.__wbg_ptr);
|
|
1317
|
+
return takeObject(ret);
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* @returns {Promise<any>}
|
|
1321
|
+
*/
|
|
1322
|
+
unlinkEmailOtp() {
|
|
1323
|
+
const ret = wasm.ambacorewasm_unlinkEmailOtp(this.__wbg_ptr);
|
|
1324
|
+
return takeObject(ret);
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* @returns {Promise<any>}
|
|
1328
|
+
*/
|
|
1329
|
+
unlinkGoogle() {
|
|
1330
|
+
const ret = wasm.ambacorewasm_unlinkGoogle(this.__wbg_ptr);
|
|
1331
|
+
return takeObject(ret);
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* @returns {Promise<any>}
|
|
1335
|
+
*/
|
|
1336
|
+
unlinkSmsOtp() {
|
|
1337
|
+
const ret = wasm.ambacorewasm_unlinkSmsOtp(this.__wbg_ptr);
|
|
1338
|
+
return takeObject(ret);
|
|
1339
|
+
}
|
|
1279
1340
|
/**
|
|
1280
1341
|
* @param {string | null} [user_id]
|
|
1281
1342
|
* @returns {Promise<any>}
|
|
@@ -1477,7 +1538,7 @@ function __wbg_get_imports() {
|
|
|
1477
1538
|
const a = state0.a;
|
|
1478
1539
|
state0.a = 0;
|
|
1479
1540
|
try {
|
|
1480
|
-
return
|
|
1541
|
+
return __wasm_bindgen_func_elem_2995_133(a, state0.b, arg0, arg1);
|
|
1481
1542
|
} finally {
|
|
1482
1543
|
state0.a = a;
|
|
1483
1544
|
}
|
|
@@ -1548,13 +1609,13 @@ function __wbg_get_imports() {
|
|
|
1548
1609
|
return addHeapObject(ret);
|
|
1549
1610
|
},
|
|
1550
1611
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1551
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1552
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1612
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 759, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1613
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2995);
|
|
1553
1614
|
return addHeapObject(ret);
|
|
1554
1615
|
},
|
|
1555
1616
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1556
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1557
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1617
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 754, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1618
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2991);
|
|
1558
1619
|
return addHeapObject(ret);
|
|
1559
1620
|
},
|
|
1560
1621
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1591,14 +1652,14 @@ function __wbg_get_imports() {
|
|
|
1591
1652
|
};
|
|
1592
1653
|
}
|
|
1593
1654
|
|
|
1594
|
-
function
|
|
1595
|
-
wasm.
|
|
1655
|
+
function __wasm_bindgen_func_elem_2995(arg0, arg1, arg2, arg3) {
|
|
1656
|
+
wasm.__wasm_bindgen_func_elem_2995(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1596
1657
|
}
|
|
1597
1658
|
|
|
1598
|
-
function
|
|
1659
|
+
function __wasm_bindgen_func_elem_2991(arg0, arg1, arg2) {
|
|
1599
1660
|
try {
|
|
1600
1661
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1601
|
-
wasm.
|
|
1662
|
+
wasm.__wasm_bindgen_func_elem_2991(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1602
1663
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1603
1664
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1604
1665
|
if (r1) {
|
|
@@ -1609,8 +1670,8 @@ function __wasm_bindgen_func_elem_2899(arg0, arg1, arg2) {
|
|
|
1609
1670
|
}
|
|
1610
1671
|
}
|
|
1611
1672
|
|
|
1612
|
-
function
|
|
1613
|
-
wasm.
|
|
1673
|
+
function __wasm_bindgen_func_elem_2995_133(arg0, arg1, arg2, arg3) {
|
|
1674
|
+
wasm.__wasm_bindgen_func_elem_2995_133(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1614
1675
|
}
|
|
1615
1676
|
|
|
1616
1677
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/amba_core_bg.wasm
CHANGED
|
Binary file
|
|
@@ -28,6 +28,7 @@ export const ambacorewasm_contentGetToday: (a: number, b: number, c: number) =>
|
|
|
28
28
|
export const ambacorewasm_contentUpdateItem: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
29
29
|
export const ambacorewasm_currenciesGetBalance: (a: number) => number;
|
|
30
30
|
export const ambacorewasm_currenciesGetTransactions: (a: number, b: number, c: number) => number;
|
|
31
|
+
export const ambacorewasm_currentIdentifiers: (a: number) => number;
|
|
31
32
|
export const ambacorewasm_deepLinksCreate: (a: number, b: number, c: number) => number;
|
|
32
33
|
export const ambacorewasm_deepLinksGet: (a: number, b: number, c: number) => number;
|
|
33
34
|
export const ambacorewasm_diagnosticsPing: (a: number) => number;
|
|
@@ -65,6 +66,8 @@ export const ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: numbe
|
|
|
65
66
|
export const ambacorewasm_leaguesCohort: (a: number) => number;
|
|
66
67
|
export const ambacorewasm_leaguesMe: (a: number) => number;
|
|
67
68
|
export const ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
69
|
+
export const ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
|
+
export const ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
68
71
|
export const ambacorewasm_me: (a: number) => number;
|
|
69
72
|
export const ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
70
73
|
export const ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
@@ -118,6 +121,10 @@ export const ambacorewasm_streaksQualify: (a: number, b: number, c: number) => n
|
|
|
118
121
|
export const ambacorewasm_syncPullChanges: (a: number, b: number, c: number) => number;
|
|
119
122
|
export const ambacorewasm_syncPushChanges: (a: number, b: number, c: number) => number;
|
|
120
123
|
export const ambacorewasm_track: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
124
|
+
export const ambacorewasm_unlinkApple: (a: number) => number;
|
|
125
|
+
export const ambacorewasm_unlinkEmailOtp: (a: number) => number;
|
|
126
|
+
export const ambacorewasm_unlinkGoogle: (a: number) => number;
|
|
127
|
+
export const ambacorewasm_unlinkSmsOtp: (a: number) => number;
|
|
121
128
|
export const ambacorewasm_usersGet: (a: number, b: number, c: number) => number;
|
|
122
129
|
export const ambacorewasm_usersUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
123
130
|
export const ambacorewasm_verifyEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -126,9 +133,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
|
|
|
126
133
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
127
134
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
128
135
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
136
|
+
export const __wasm_bindgen_func_elem_2995: (a: number, b: number, c: number, d: number) => void;
|
|
137
|
+
export const __wasm_bindgen_func_elem_2991: (a: number, b: number, c: number, d: number) => void;
|
|
138
|
+
export const __wasm_bindgen_func_elem_2995_133: (a: number, b: number, c: number, d: number) => void;
|
|
132
139
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
133
140
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
134
141
|
export const __wbindgen_export3: (a: number) => void;
|
package/pkg-rn/amba_core.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export class AmbaCoreWasm {
|
|
|
54
54
|
contentUpdateItem(id: string, state_json: string): Promise<any>;
|
|
55
55
|
currenciesGetBalance(): Promise<any>;
|
|
56
56
|
currenciesGetTransactions(currency_key: string): Promise<any>;
|
|
57
|
+
currentIdentifiers(): Promise<any>;
|
|
57
58
|
deepLinksCreate(params_json: string): Promise<any>;
|
|
58
59
|
deepLinksGet(short_code: string): Promise<any>;
|
|
59
60
|
diagnosticsPing(): Promise<any>;
|
|
@@ -113,6 +114,8 @@ export class AmbaCoreWasm {
|
|
|
113
114
|
leaguesCohort(): Promise<any>;
|
|
114
115
|
leaguesMe(): Promise<any>;
|
|
115
116
|
linkAccount(provider: string, credential: string): Promise<any>;
|
|
117
|
+
linkEmailOtp(email: string, code: string): Promise<any>;
|
|
118
|
+
linkSmsOtp(phone: string, code: string): Promise<any>;
|
|
116
119
|
me(): Promise<any>;
|
|
117
120
|
/**
|
|
118
121
|
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
@@ -217,6 +220,10 @@ export class AmbaCoreWasm {
|
|
|
217
220
|
* for back-compat.
|
|
218
221
|
*/
|
|
219
222
|
track(event: string, properties_json?: string | null, telemetry?: boolean | null): Promise<any>;
|
|
223
|
+
unlinkApple(): Promise<any>;
|
|
224
|
+
unlinkEmailOtp(): Promise<any>;
|
|
225
|
+
unlinkGoogle(): Promise<any>;
|
|
226
|
+
unlinkSmsOtp(): Promise<any>;
|
|
220
227
|
usersGet(user_id?: string | null): Promise<any>;
|
|
221
228
|
usersUpdate(user_id: string | null | undefined, patch_json: string): Promise<any>;
|
|
222
229
|
verifyEmailOtp(email: string, code: string): Promise<any>;
|
package/pkg-rn/amba_core_bg.js
CHANGED
|
@@ -390,6 +390,13 @@ export class AmbaCoreWasm {
|
|
|
390
390
|
const ret = wasm.ambacorewasm_currenciesGetTransactions(this.__wbg_ptr, ptr0, len0);
|
|
391
391
|
return takeObject(ret);
|
|
392
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* @returns {Promise<any>}
|
|
395
|
+
*/
|
|
396
|
+
currentIdentifiers() {
|
|
397
|
+
const ret = wasm.ambacorewasm_currentIdentifiers(this.__wbg_ptr);
|
|
398
|
+
return takeObject(ret);
|
|
399
|
+
}
|
|
393
400
|
/**
|
|
394
401
|
* @param {string} params_json
|
|
395
402
|
* @returns {Promise<any>}
|
|
@@ -774,6 +781,32 @@ export class AmbaCoreWasm {
|
|
|
774
781
|
const ret = wasm.ambacorewasm_linkAccount(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
775
782
|
return takeObject(ret);
|
|
776
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* @param {string} email
|
|
786
|
+
* @param {string} code
|
|
787
|
+
* @returns {Promise<any>}
|
|
788
|
+
*/
|
|
789
|
+
linkEmailOtp(email, code) {
|
|
790
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
791
|
+
const len0 = WASM_VECTOR_LEN;
|
|
792
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
793
|
+
const len1 = WASM_VECTOR_LEN;
|
|
794
|
+
const ret = wasm.ambacorewasm_linkEmailOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
795
|
+
return takeObject(ret);
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @param {string} phone
|
|
799
|
+
* @param {string} code
|
|
800
|
+
* @returns {Promise<any>}
|
|
801
|
+
*/
|
|
802
|
+
linkSmsOtp(phone, code) {
|
|
803
|
+
const ptr0 = passStringToWasm0(phone, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
804
|
+
const len0 = WASM_VECTOR_LEN;
|
|
805
|
+
const ptr1 = passStringToWasm0(code, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
806
|
+
const len1 = WASM_VECTOR_LEN;
|
|
807
|
+
const ret = wasm.ambacorewasm_linkSmsOtp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
808
|
+
return takeObject(ret);
|
|
809
|
+
}
|
|
777
810
|
/**
|
|
778
811
|
* @returns {Promise<any>}
|
|
779
812
|
*/
|
|
@@ -1340,6 +1373,34 @@ export class AmbaCoreWasm {
|
|
|
1340
1373
|
const ret = wasm.ambacorewasm_track(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(telemetry) ? 0xFFFFFF : telemetry ? 1 : 0);
|
|
1341
1374
|
return takeObject(ret);
|
|
1342
1375
|
}
|
|
1376
|
+
/**
|
|
1377
|
+
* @returns {Promise<any>}
|
|
1378
|
+
*/
|
|
1379
|
+
unlinkApple() {
|
|
1380
|
+
const ret = wasm.ambacorewasm_unlinkApple(this.__wbg_ptr);
|
|
1381
|
+
return takeObject(ret);
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* @returns {Promise<any>}
|
|
1385
|
+
*/
|
|
1386
|
+
unlinkEmailOtp() {
|
|
1387
|
+
const ret = wasm.ambacorewasm_unlinkEmailOtp(this.__wbg_ptr);
|
|
1388
|
+
return takeObject(ret);
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @returns {Promise<any>}
|
|
1392
|
+
*/
|
|
1393
|
+
unlinkGoogle() {
|
|
1394
|
+
const ret = wasm.ambacorewasm_unlinkGoogle(this.__wbg_ptr);
|
|
1395
|
+
return takeObject(ret);
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* @returns {Promise<any>}
|
|
1399
|
+
*/
|
|
1400
|
+
unlinkSmsOtp() {
|
|
1401
|
+
const ret = wasm.ambacorewasm_unlinkSmsOtp(this.__wbg_ptr);
|
|
1402
|
+
return takeObject(ret);
|
|
1403
|
+
}
|
|
1343
1404
|
/**
|
|
1344
1405
|
* @param {string | null} [user_id]
|
|
1345
1406
|
* @returns {Promise<any>}
|
|
@@ -1538,7 +1599,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
|
1538
1599
|
const a = state0.a;
|
|
1539
1600
|
state0.a = 0;
|
|
1540
1601
|
try {
|
|
1541
|
-
return
|
|
1602
|
+
return __wasm_bindgen_func_elem_2995_133(a, state0.b, arg0, arg1);
|
|
1542
1603
|
} finally {
|
|
1543
1604
|
state0.a = a;
|
|
1544
1605
|
}
|
|
@@ -1609,13 +1670,13 @@ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
|
|
|
1609
1670
|
return addHeapObject(ret);
|
|
1610
1671
|
}
|
|
1611
1672
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1612
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1613
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1673
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 759, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1674
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2995);
|
|
1614
1675
|
return addHeapObject(ret);
|
|
1615
1676
|
}
|
|
1616
1677
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1617
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1618
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1678
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 754, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1679
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2991);
|
|
1619
1680
|
return addHeapObject(ret);
|
|
1620
1681
|
}
|
|
1621
1682
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -1645,14 +1706,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1645
1706
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1646
1707
|
takeObject(arg0);
|
|
1647
1708
|
}
|
|
1648
|
-
function
|
|
1649
|
-
wasm.
|
|
1709
|
+
function __wasm_bindgen_func_elem_2995(arg0, arg1, arg2, arg3) {
|
|
1710
|
+
wasm.__wasm_bindgen_func_elem_2995(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1650
1711
|
}
|
|
1651
1712
|
|
|
1652
|
-
function
|
|
1713
|
+
function __wasm_bindgen_func_elem_2991(arg0, arg1, arg2) {
|
|
1653
1714
|
try {
|
|
1654
1715
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1655
|
-
wasm.
|
|
1716
|
+
wasm.__wasm_bindgen_func_elem_2991(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1656
1717
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1657
1718
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1658
1719
|
if (r1) {
|
|
@@ -1663,8 +1724,8 @@ function __wasm_bindgen_func_elem_2899(arg0, arg1, arg2) {
|
|
|
1663
1724
|
}
|
|
1664
1725
|
}
|
|
1665
1726
|
|
|
1666
|
-
function
|
|
1667
|
-
wasm.
|
|
1727
|
+
function __wasm_bindgen_func_elem_2995_133(arg0, arg1, arg2, arg3) {
|
|
1728
|
+
wasm.__wasm_bindgen_func_elem_2995_133(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1668
1729
|
}
|
|
1669
1730
|
|
|
1670
1731
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -28,6 +28,7 @@ export const ambacorewasm_contentGetToday: (a: number, b: number, c: number) =>
|
|
|
28
28
|
export const ambacorewasm_contentUpdateItem: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
29
29
|
export const ambacorewasm_currenciesGetBalance: (a: number) => number;
|
|
30
30
|
export const ambacorewasm_currenciesGetTransactions: (a: number, b: number, c: number) => number;
|
|
31
|
+
export const ambacorewasm_currentIdentifiers: (a: number) => number;
|
|
31
32
|
export const ambacorewasm_deepLinksCreate: (a: number, b: number, c: number) => number;
|
|
32
33
|
export const ambacorewasm_deepLinksGet: (a: number, b: number, c: number) => number;
|
|
33
34
|
export const ambacorewasm_diagnosticsPing: (a: number) => number;
|
|
@@ -65,6 +66,8 @@ export const ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: numbe
|
|
|
65
66
|
export const ambacorewasm_leaguesCohort: (a: number) => number;
|
|
66
67
|
export const ambacorewasm_leaguesMe: (a: number) => number;
|
|
67
68
|
export const ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
69
|
+
export const ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
70
|
+
export const ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
68
71
|
export const ambacorewasm_me: (a: number) => number;
|
|
69
72
|
export const ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
70
73
|
export const ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
@@ -118,6 +121,10 @@ export const ambacorewasm_streaksQualify: (a: number, b: number, c: number) => n
|
|
|
118
121
|
export const ambacorewasm_syncPullChanges: (a: number, b: number, c: number) => number;
|
|
119
122
|
export const ambacorewasm_syncPushChanges: (a: number, b: number, c: number) => number;
|
|
120
123
|
export const ambacorewasm_track: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
124
|
+
export const ambacorewasm_unlinkApple: (a: number) => number;
|
|
125
|
+
export const ambacorewasm_unlinkEmailOtp: (a: number) => number;
|
|
126
|
+
export const ambacorewasm_unlinkGoogle: (a: number) => number;
|
|
127
|
+
export const ambacorewasm_unlinkSmsOtp: (a: number) => number;
|
|
121
128
|
export const ambacorewasm_usersGet: (a: number, b: number, c: number) => number;
|
|
122
129
|
export const ambacorewasm_usersUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
123
130
|
export const ambacorewasm_verifyEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -126,9 +133,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
|
|
|
126
133
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
127
134
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
128
135
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
129
|
-
export const
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
136
|
+
export const __wasm_bindgen_func_elem_2995: (a: number, b: number, c: number, d: number) => void;
|
|
137
|
+
export const __wasm_bindgen_func_elem_2991: (a: number, b: number, c: number, d: number) => void;
|
|
138
|
+
export const __wasm_bindgen_func_elem_2995_133: (a: number, b: number, c: number, d: number) => void;
|
|
132
139
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
133
140
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
134
141
|
export const __wbindgen_export3: (a: number) => void;
|