@layers/amba-core 1.0.3 → 1.1.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/package.json +1 -1
- package/pkg/amba_core.d.ts +32 -5
- package/pkg/amba_core.js +56 -15
- package/pkg/amba_core_bg.wasm +0 -0
- package/pkg/amba_core_bg.wasm.d.ts +6 -4
- package/pkg-rn/amba_core.d.ts +26 -1
- package/pkg-rn/amba_core_bg.js +56 -15
- package/pkg-rn/amba_core_bg.wasm.d.ts +6 -4
- package/pkg-rn/amba_core_bg.wasm.js +117911 -95132
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers/amba-core",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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
|
@@ -82,8 +82,33 @@ export class AmbaCoreWasm {
|
|
|
82
82
|
leaderboardsGetEntries(key: string, limit?: number | null): Promise<any>;
|
|
83
83
|
leaderboardsGetMyRank(key: string): Promise<any>;
|
|
84
84
|
me(): Promise<any>;
|
|
85
|
+
/**
|
|
86
|
+
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
87
|
+
* existing direct) conversation. JS payload is the same JSON the
|
|
88
|
+
* server accepts (`participant_ids`, optional `type`, optional
|
|
89
|
+
* `name`).
|
|
90
|
+
*/
|
|
91
|
+
messagingCreateConversation(request_json: string): Promise<any>;
|
|
85
92
|
messagingGetConversations(): Promise<any>;
|
|
86
|
-
|
|
93
|
+
/**
|
|
94
|
+
* `GET /v1/client/messaging/conversations/:id/messages` — list
|
|
95
|
+
* messages in a conversation. `limit` and `offset` are emitted as
|
|
96
|
+
* query params when present.
|
|
97
|
+
*/
|
|
98
|
+
messagingListMessages(conversation_id: string, limit?: number | null, offset?: number | null): Promise<any>;
|
|
99
|
+
/**
|
|
100
|
+
* `POST /v1/client/messaging/conversations/:id/read` — bump the
|
|
101
|
+
* caller's `last_read_at` on the conversation.
|
|
102
|
+
*/
|
|
103
|
+
messagingMarkRead(conversation_id: string): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* `POST /v1/client/messaging/conversations/:id/messages` — send a
|
|
106
|
+
* message. The `conversation_id` is a path arg server-side; FFI
|
|
107
|
+
* callers pass it inside the request JSON (`{"conversation_id":
|
|
108
|
+
* ..., "body": ...}`) for ABI stability. JS bindings that prefer
|
|
109
|
+
* the cleaner two-positional shape can wrap this — see the
|
|
110
|
+
* TypeScript `Amba.messaging.sendMessage` surface.
|
|
111
|
+
*/
|
|
87
112
|
messagingSendMessage(request_json: string): Promise<any>;
|
|
88
113
|
moderationGetReportStatus(id: string): Promise<any>;
|
|
89
114
|
moderationReportContent(request_json: string): Promise<any>;
|
|
@@ -186,8 +211,10 @@ export interface InitOutput {
|
|
|
186
211
|
readonly ambacorewasm_leaderboardsGetEntries: (a: number, b: number, c: number, d: number) => number;
|
|
187
212
|
readonly ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: number) => number;
|
|
188
213
|
readonly ambacorewasm_me: (a: number) => number;
|
|
214
|
+
readonly ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
189
215
|
readonly ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
190
|
-
readonly
|
|
216
|
+
readonly ambacorewasm_messagingListMessages: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
217
|
+
readonly ambacorewasm_messagingMarkRead: (a: number, b: number, c: number) => number;
|
|
191
218
|
readonly ambacorewasm_messagingSendMessage: (a: number, b: number, c: number) => number;
|
|
192
219
|
readonly ambacorewasm_moderationGetReportStatus: (a: number, b: number, c: number) => number;
|
|
193
220
|
readonly ambacorewasm_moderationReportContent: (a: number, b: number, c: number) => number;
|
|
@@ -228,9 +255,9 @@ export interface InitOutput {
|
|
|
228
255
|
readonly ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
229
256
|
readonly ambacorewasm_xpGetBalance: (a: number) => number;
|
|
230
257
|
readonly ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
258
|
+
readonly __wasm_bindgen_func_elem_2398: (a: number, b: number, c: number, d: number) => void;
|
|
259
|
+
readonly __wasm_bindgen_func_elem_2394: (a: number, b: number, c: number, d: number) => void;
|
|
260
|
+
readonly __wasm_bindgen_func_elem_2398_98: (a: number, b: number, c: number, d: number) => void;
|
|
234
261
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
235
262
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
236
263
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg/amba_core.js
CHANGED
|
@@ -585,6 +585,20 @@ export class AmbaCoreWasm {
|
|
|
585
585
|
const ret = wasm.ambacorewasm_me(this.__wbg_ptr);
|
|
586
586
|
return takeObject(ret);
|
|
587
587
|
}
|
|
588
|
+
/**
|
|
589
|
+
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
590
|
+
* existing direct) conversation. JS payload is the same JSON the
|
|
591
|
+
* server accepts (`participant_ids`, optional `type`, optional
|
|
592
|
+
* `name`).
|
|
593
|
+
* @param {string} request_json
|
|
594
|
+
* @returns {Promise<any>}
|
|
595
|
+
*/
|
|
596
|
+
messagingCreateConversation(request_json) {
|
|
597
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
598
|
+
const len0 = WASM_VECTOR_LEN;
|
|
599
|
+
const ret = wasm.ambacorewasm_messagingCreateConversation(this.__wbg_ptr, ptr0, len0);
|
|
600
|
+
return takeObject(ret);
|
|
601
|
+
}
|
|
588
602
|
/**
|
|
589
603
|
* @returns {Promise<any>}
|
|
590
604
|
*/
|
|
@@ -593,16 +607,39 @@ export class AmbaCoreWasm {
|
|
|
593
607
|
return takeObject(ret);
|
|
594
608
|
}
|
|
595
609
|
/**
|
|
596
|
-
*
|
|
610
|
+
* `GET /v1/client/messaging/conversations/:id/messages` — list
|
|
611
|
+
* messages in a conversation. `limit` and `offset` are emitted as
|
|
612
|
+
* query params when present.
|
|
613
|
+
* @param {string} conversation_id
|
|
614
|
+
* @param {number | null} [limit]
|
|
615
|
+
* @param {number | null} [offset]
|
|
597
616
|
* @returns {Promise<any>}
|
|
598
617
|
*/
|
|
599
|
-
|
|
600
|
-
const ptr0 = passStringToWasm0(
|
|
618
|
+
messagingListMessages(conversation_id, limit, offset) {
|
|
619
|
+
const ptr0 = passStringToWasm0(conversation_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
601
620
|
const len0 = WASM_VECTOR_LEN;
|
|
602
|
-
const ret = wasm.
|
|
621
|
+
const ret = wasm.ambacorewasm_messagingListMessages(this.__wbg_ptr, ptr0, len0, isLikeNone(limit) ? Number.MAX_SAFE_INTEGER : (limit) >>> 0, isLikeNone(offset) ? Number.MAX_SAFE_INTEGER : (offset) >>> 0);
|
|
603
622
|
return takeObject(ret);
|
|
604
623
|
}
|
|
605
624
|
/**
|
|
625
|
+
* `POST /v1/client/messaging/conversations/:id/read` — bump the
|
|
626
|
+
* caller's `last_read_at` on the conversation.
|
|
627
|
+
* @param {string} conversation_id
|
|
628
|
+
* @returns {Promise<any>}
|
|
629
|
+
*/
|
|
630
|
+
messagingMarkRead(conversation_id) {
|
|
631
|
+
const ptr0 = passStringToWasm0(conversation_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
632
|
+
const len0 = WASM_VECTOR_LEN;
|
|
633
|
+
const ret = wasm.ambacorewasm_messagingMarkRead(this.__wbg_ptr, ptr0, len0);
|
|
634
|
+
return takeObject(ret);
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* `POST /v1/client/messaging/conversations/:id/messages` — send a
|
|
638
|
+
* message. The `conversation_id` is a path arg server-side; FFI
|
|
639
|
+
* callers pass it inside the request JSON (`{"conversation_id":
|
|
640
|
+
* ..., "body": ...}`) for ABI stability. JS bindings that prefer
|
|
641
|
+
* the cleaner two-positional shape can wrap this — see the
|
|
642
|
+
* TypeScript `Amba.messaging.sendMessage` surface.
|
|
606
643
|
* @param {string} request_json
|
|
607
644
|
* @returns {Promise<any>}
|
|
608
645
|
*/
|
|
@@ -1098,6 +1135,10 @@ function __wbg_get_imports() {
|
|
|
1098
1135
|
const ret = new Date();
|
|
1099
1136
|
return addHeapObject(ret);
|
|
1100
1137
|
},
|
|
1138
|
+
__wbg_new_1f236d63ba0c4784: function(arg0, arg1) {
|
|
1139
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1140
|
+
return addHeapObject(ret);
|
|
1141
|
+
},
|
|
1101
1142
|
__wbg_new_310879b66b6e95e1: function() {
|
|
1102
1143
|
const ret = new Array();
|
|
1103
1144
|
return addHeapObject(ret);
|
|
@@ -1113,7 +1154,7 @@ function __wbg_get_imports() {
|
|
|
1113
1154
|
const a = state0.a;
|
|
1114
1155
|
state0.a = 0;
|
|
1115
1156
|
try {
|
|
1116
|
-
return
|
|
1157
|
+
return __wasm_bindgen_func_elem_2398_98(a, state0.b, arg0, arg1);
|
|
1117
1158
|
} finally {
|
|
1118
1159
|
state0.a = a;
|
|
1119
1160
|
}
|
|
@@ -1184,13 +1225,13 @@ function __wbg_get_imports() {
|
|
|
1184
1225
|
return addHeapObject(ret);
|
|
1185
1226
|
},
|
|
1186
1227
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1187
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1188
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1228
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 593, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1229
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2398);
|
|
1189
1230
|
return addHeapObject(ret);
|
|
1190
1231
|
},
|
|
1191
1232
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1192
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1193
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1233
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 588, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1234
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2394);
|
|
1194
1235
|
return addHeapObject(ret);
|
|
1195
1236
|
},
|
|
1196
1237
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1227,14 +1268,14 @@ function __wbg_get_imports() {
|
|
|
1227
1268
|
};
|
|
1228
1269
|
}
|
|
1229
1270
|
|
|
1230
|
-
function
|
|
1231
|
-
wasm.
|
|
1271
|
+
function __wasm_bindgen_func_elem_2398(arg0, arg1, arg2, arg3) {
|
|
1272
|
+
wasm.__wasm_bindgen_func_elem_2398(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1232
1273
|
}
|
|
1233
1274
|
|
|
1234
|
-
function
|
|
1275
|
+
function __wasm_bindgen_func_elem_2394(arg0, arg1, arg2) {
|
|
1235
1276
|
try {
|
|
1236
1277
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1237
|
-
wasm.
|
|
1278
|
+
wasm.__wasm_bindgen_func_elem_2394(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1238
1279
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1239
1280
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1240
1281
|
if (r1) {
|
|
@@ -1245,8 +1286,8 @@ function __wasm_bindgen_func_elem_2347(arg0, arg1, arg2) {
|
|
|
1245
1286
|
}
|
|
1246
1287
|
}
|
|
1247
1288
|
|
|
1248
|
-
function
|
|
1249
|
-
wasm.
|
|
1289
|
+
function __wasm_bindgen_func_elem_2398_98(arg0, arg1, arg2, arg3) {
|
|
1290
|
+
wasm.__wasm_bindgen_func_elem_2398_98(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1250
1291
|
}
|
|
1251
1292
|
|
|
1252
1293
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/amba_core_bg.wasm
CHANGED
|
Binary file
|
|
@@ -54,8 +54,10 @@ export const ambacorewasm_leaderboardsGet: (a: number, b: number, c: number) =>
|
|
|
54
54
|
export const ambacorewasm_leaderboardsGetEntries: (a: number, b: number, c: number, d: number) => number;
|
|
55
55
|
export const ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: number) => number;
|
|
56
56
|
export const ambacorewasm_me: (a: number) => number;
|
|
57
|
+
export const ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
57
58
|
export const ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
58
|
-
export const
|
|
59
|
+
export const ambacorewasm_messagingListMessages: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
60
|
+
export const ambacorewasm_messagingMarkRead: (a: number, b: number, c: number) => number;
|
|
59
61
|
export const ambacorewasm_messagingSendMessage: (a: number, b: number, c: number) => number;
|
|
60
62
|
export const ambacorewasm_moderationGetReportStatus: (a: number, b: number, c: number) => number;
|
|
61
63
|
export const ambacorewasm_moderationReportContent: (a: number, b: number, c: number) => number;
|
|
@@ -96,9 +98,9 @@ export const ambacorewasm_track: (a: number, b: number, c: number, d: number, e:
|
|
|
96
98
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
97
99
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
98
100
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
101
|
-
export const
|
|
101
|
+
export const __wasm_bindgen_func_elem_2398: (a: number, b: number, c: number, d: number) => void;
|
|
102
|
+
export const __wasm_bindgen_func_elem_2394: (a: number, b: number, c: number, d: number) => void;
|
|
103
|
+
export const __wasm_bindgen_func_elem_2398_98: (a: number, b: number, c: number, d: number) => void;
|
|
102
104
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
103
105
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
104
106
|
export const __wbindgen_export3: (a: number) => void;
|
package/pkg-rn/amba_core.d.ts
CHANGED
|
@@ -82,8 +82,33 @@ export class AmbaCoreWasm {
|
|
|
82
82
|
leaderboardsGetEntries(key: string, limit?: number | null): Promise<any>;
|
|
83
83
|
leaderboardsGetMyRank(key: string): Promise<any>;
|
|
84
84
|
me(): Promise<any>;
|
|
85
|
+
/**
|
|
86
|
+
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
87
|
+
* existing direct) conversation. JS payload is the same JSON the
|
|
88
|
+
* server accepts (`participant_ids`, optional `type`, optional
|
|
89
|
+
* `name`).
|
|
90
|
+
*/
|
|
91
|
+
messagingCreateConversation(request_json: string): Promise<any>;
|
|
85
92
|
messagingGetConversations(): Promise<any>;
|
|
86
|
-
|
|
93
|
+
/**
|
|
94
|
+
* `GET /v1/client/messaging/conversations/:id/messages` — list
|
|
95
|
+
* messages in a conversation. `limit` and `offset` are emitted as
|
|
96
|
+
* query params when present.
|
|
97
|
+
*/
|
|
98
|
+
messagingListMessages(conversation_id: string, limit?: number | null, offset?: number | null): Promise<any>;
|
|
99
|
+
/**
|
|
100
|
+
* `POST /v1/client/messaging/conversations/:id/read` — bump the
|
|
101
|
+
* caller's `last_read_at` on the conversation.
|
|
102
|
+
*/
|
|
103
|
+
messagingMarkRead(conversation_id: string): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* `POST /v1/client/messaging/conversations/:id/messages` — send a
|
|
106
|
+
* message. The `conversation_id` is a path arg server-side; FFI
|
|
107
|
+
* callers pass it inside the request JSON (`{"conversation_id":
|
|
108
|
+
* ..., "body": ...}`) for ABI stability. JS bindings that prefer
|
|
109
|
+
* the cleaner two-positional shape can wrap this — see the
|
|
110
|
+
* TypeScript `Amba.messaging.sendMessage` surface.
|
|
111
|
+
*/
|
|
87
112
|
messagingSendMessage(request_json: string): Promise<any>;
|
|
88
113
|
moderationGetReportStatus(id: string): Promise<any>;
|
|
89
114
|
moderationReportContent(request_json: string): Promise<any>;
|
package/pkg-rn/amba_core_bg.js
CHANGED
|
@@ -649,6 +649,20 @@ export class AmbaCoreWasm {
|
|
|
649
649
|
const ret = wasm.ambacorewasm_me(this.__wbg_ptr);
|
|
650
650
|
return takeObject(ret);
|
|
651
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
654
|
+
* existing direct) conversation. JS payload is the same JSON the
|
|
655
|
+
* server accepts (`participant_ids`, optional `type`, optional
|
|
656
|
+
* `name`).
|
|
657
|
+
* @param {string} request_json
|
|
658
|
+
* @returns {Promise<any>}
|
|
659
|
+
*/
|
|
660
|
+
messagingCreateConversation(request_json) {
|
|
661
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
662
|
+
const len0 = WASM_VECTOR_LEN;
|
|
663
|
+
const ret = wasm.ambacorewasm_messagingCreateConversation(this.__wbg_ptr, ptr0, len0);
|
|
664
|
+
return takeObject(ret);
|
|
665
|
+
}
|
|
652
666
|
/**
|
|
653
667
|
* @returns {Promise<any>}
|
|
654
668
|
*/
|
|
@@ -657,16 +671,39 @@ export class AmbaCoreWasm {
|
|
|
657
671
|
return takeObject(ret);
|
|
658
672
|
}
|
|
659
673
|
/**
|
|
660
|
-
*
|
|
674
|
+
* `GET /v1/client/messaging/conversations/:id/messages` — list
|
|
675
|
+
* messages in a conversation. `limit` and `offset` are emitted as
|
|
676
|
+
* query params when present.
|
|
677
|
+
* @param {string} conversation_id
|
|
678
|
+
* @param {number | null} [limit]
|
|
679
|
+
* @param {number | null} [offset]
|
|
661
680
|
* @returns {Promise<any>}
|
|
662
681
|
*/
|
|
663
|
-
|
|
664
|
-
const ptr0 = passStringToWasm0(
|
|
682
|
+
messagingListMessages(conversation_id, limit, offset) {
|
|
683
|
+
const ptr0 = passStringToWasm0(conversation_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
665
684
|
const len0 = WASM_VECTOR_LEN;
|
|
666
|
-
const ret = wasm.
|
|
685
|
+
const ret = wasm.ambacorewasm_messagingListMessages(this.__wbg_ptr, ptr0, len0, isLikeNone(limit) ? Number.MAX_SAFE_INTEGER : (limit) >>> 0, isLikeNone(offset) ? Number.MAX_SAFE_INTEGER : (offset) >>> 0);
|
|
667
686
|
return takeObject(ret);
|
|
668
687
|
}
|
|
669
688
|
/**
|
|
689
|
+
* `POST /v1/client/messaging/conversations/:id/read` — bump the
|
|
690
|
+
* caller's `last_read_at` on the conversation.
|
|
691
|
+
* @param {string} conversation_id
|
|
692
|
+
* @returns {Promise<any>}
|
|
693
|
+
*/
|
|
694
|
+
messagingMarkRead(conversation_id) {
|
|
695
|
+
const ptr0 = passStringToWasm0(conversation_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
696
|
+
const len0 = WASM_VECTOR_LEN;
|
|
697
|
+
const ret = wasm.ambacorewasm_messagingMarkRead(this.__wbg_ptr, ptr0, len0);
|
|
698
|
+
return takeObject(ret);
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* `POST /v1/client/messaging/conversations/:id/messages` — send a
|
|
702
|
+
* message. The `conversation_id` is a path arg server-side; FFI
|
|
703
|
+
* callers pass it inside the request JSON (`{"conversation_id":
|
|
704
|
+
* ..., "body": ...}`) for ABI stability. JS bindings that prefer
|
|
705
|
+
* the cleaner two-positional shape can wrap this — see the
|
|
706
|
+
* TypeScript `Amba.messaging.sendMessage` surface.
|
|
670
707
|
* @param {string} request_json
|
|
671
708
|
* @returns {Promise<any>}
|
|
672
709
|
*/
|
|
@@ -1159,6 +1196,10 @@ export function __wbg_new_0_2722fcdb71a888a6() {
|
|
|
1159
1196
|
const ret = new Date();
|
|
1160
1197
|
return addHeapObject(ret);
|
|
1161
1198
|
}
|
|
1199
|
+
export function __wbg_new_1f236d63ba0c4784(arg0, arg1) {
|
|
1200
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1201
|
+
return addHeapObject(ret);
|
|
1202
|
+
}
|
|
1162
1203
|
export function __wbg_new_310879b66b6e95e1() {
|
|
1163
1204
|
const ret = new Array();
|
|
1164
1205
|
return addHeapObject(ret);
|
|
@@ -1174,7 +1215,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
|
1174
1215
|
const a = state0.a;
|
|
1175
1216
|
state0.a = 0;
|
|
1176
1217
|
try {
|
|
1177
|
-
return
|
|
1218
|
+
return __wasm_bindgen_func_elem_2398_98(a, state0.b, arg0, arg1);
|
|
1178
1219
|
} finally {
|
|
1179
1220
|
state0.a = a;
|
|
1180
1221
|
}
|
|
@@ -1245,13 +1286,13 @@ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
|
|
|
1245
1286
|
return addHeapObject(ret);
|
|
1246
1287
|
}
|
|
1247
1288
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1248
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1249
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1289
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 593, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1290
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2398);
|
|
1250
1291
|
return addHeapObject(ret);
|
|
1251
1292
|
}
|
|
1252
1293
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1253
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1254
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1294
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 588, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1295
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2394);
|
|
1255
1296
|
return addHeapObject(ret);
|
|
1256
1297
|
}
|
|
1257
1298
|
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
@@ -1281,14 +1322,14 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
1281
1322
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
1282
1323
|
takeObject(arg0);
|
|
1283
1324
|
}
|
|
1284
|
-
function
|
|
1285
|
-
wasm.
|
|
1325
|
+
function __wasm_bindgen_func_elem_2398(arg0, arg1, arg2, arg3) {
|
|
1326
|
+
wasm.__wasm_bindgen_func_elem_2398(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1286
1327
|
}
|
|
1287
1328
|
|
|
1288
|
-
function
|
|
1329
|
+
function __wasm_bindgen_func_elem_2394(arg0, arg1, arg2) {
|
|
1289
1330
|
try {
|
|
1290
1331
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1291
|
-
wasm.
|
|
1332
|
+
wasm.__wasm_bindgen_func_elem_2394(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1292
1333
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1293
1334
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1294
1335
|
if (r1) {
|
|
@@ -1299,8 +1340,8 @@ function __wasm_bindgen_func_elem_2347(arg0, arg1, arg2) {
|
|
|
1299
1340
|
}
|
|
1300
1341
|
}
|
|
1301
1342
|
|
|
1302
|
-
function
|
|
1303
|
-
wasm.
|
|
1343
|
+
function __wasm_bindgen_func_elem_2398_98(arg0, arg1, arg2, arg3) {
|
|
1344
|
+
wasm.__wasm_bindgen_func_elem_2398_98(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1304
1345
|
}
|
|
1305
1346
|
|
|
1306
1347
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -54,8 +54,10 @@ export const ambacorewasm_leaderboardsGet: (a: number, b: number, c: number) =>
|
|
|
54
54
|
export const ambacorewasm_leaderboardsGetEntries: (a: number, b: number, c: number, d: number) => number;
|
|
55
55
|
export const ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: number) => number;
|
|
56
56
|
export const ambacorewasm_me: (a: number) => number;
|
|
57
|
+
export const ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
57
58
|
export const ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
58
|
-
export const
|
|
59
|
+
export const ambacorewasm_messagingListMessages: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
60
|
+
export const ambacorewasm_messagingMarkRead: (a: number, b: number, c: number) => number;
|
|
59
61
|
export const ambacorewasm_messagingSendMessage: (a: number, b: number, c: number) => number;
|
|
60
62
|
export const ambacorewasm_moderationGetReportStatus: (a: number, b: number, c: number) => number;
|
|
61
63
|
export const ambacorewasm_moderationReportContent: (a: number, b: number, c: number) => number;
|
|
@@ -96,9 +98,9 @@ export const ambacorewasm_track: (a: number, b: number, c: number, d: number, e:
|
|
|
96
98
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
97
99
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
98
100
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
101
|
-
export const
|
|
101
|
+
export const __wasm_bindgen_func_elem_2398: (a: number, b: number, c: number, d: number) => void;
|
|
102
|
+
export const __wasm_bindgen_func_elem_2394: (a: number, b: number, c: number, d: number) => void;
|
|
103
|
+
export const __wasm_bindgen_func_elem_2398_98: (a: number, b: number, c: number, d: number) => void;
|
|
102
104
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
103
105
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
104
106
|
export const __wbindgen_export3: (a: number) => void;
|