@layers/amba-core 4.0.6 → 4.0.8
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 +15 -4
- package/pkg/amba_core.d.ts +3 -3
- package/pkg/amba_core.js +11 -11
- package/pkg/amba_core_bg.wasm +0 -0
- package/pkg/amba_core_bg.wasm.d.ts +3 -3
- package/pkg-inline/amba_core.d.ts +463 -0
- package/pkg-inline/amba_core.js +24 -0
- package/pkg-rn/amba_core_bg.js +11 -11
- package/pkg-rn/amba_core_bg.wasm.d.ts +3 -3
- package/pkg-rn/amba_core_bg.wasm.js +42223 -38117
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers/amba-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
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",
|
|
@@ -13,7 +13,14 @@
|
|
|
13
13
|
"import": "./pkg/amba_core.js",
|
|
14
14
|
"default": "./pkg/amba_core.js"
|
|
15
15
|
},
|
|
16
|
-
"./wasm": "./pkg/amba_core_bg.wasm"
|
|
16
|
+
"./wasm": "./pkg/amba_core_bg.wasm",
|
|
17
|
+
"./pkg/amba_core_bg.wasm": "./pkg/amba_core_bg.wasm",
|
|
18
|
+
"./inline": {
|
|
19
|
+
"types": "./pkg-inline/amba_core.d.ts",
|
|
20
|
+
"browser": "./pkg-inline/amba_core.js",
|
|
21
|
+
"import": "./pkg-inline/amba_core.js",
|
|
22
|
+
"default": "./pkg-inline/amba_core.js"
|
|
23
|
+
}
|
|
17
24
|
},
|
|
18
25
|
"files": [
|
|
19
26
|
"pkg/amba_core.js",
|
|
@@ -25,11 +32,14 @@
|
|
|
25
32
|
"pkg-rn/amba_core_bg.wasm.js",
|
|
26
33
|
"pkg-rn/amba_core.d.ts",
|
|
27
34
|
"pkg-rn/amba_core_bg.wasm.d.ts",
|
|
35
|
+
"pkg-inline/amba_core.js",
|
|
36
|
+
"pkg-inline/amba_core.d.ts",
|
|
28
37
|
"README.md"
|
|
29
38
|
],
|
|
30
39
|
"sideEffects": [
|
|
31
40
|
"./pkg/snippets/*",
|
|
32
|
-
"./pkg-rn/amba_core_bg.wasm.js"
|
|
41
|
+
"./pkg-rn/amba_core_bg.wasm.js",
|
|
42
|
+
"./pkg-inline/amba_core.js"
|
|
33
43
|
],
|
|
34
44
|
"license": "MIT",
|
|
35
45
|
"repository": {
|
|
@@ -47,8 +57,9 @@
|
|
|
47
57
|
"node": ">=20.0.0"
|
|
48
58
|
},
|
|
49
59
|
"scripts": {
|
|
50
|
-
"build": "pnpm run build:web && pnpm run build:rn && node ./scripts/verify-pkg.mjs",
|
|
60
|
+
"build": "pnpm run build:web && pnpm run build:inline && pnpm run build:rn && node ./scripts/verify-pkg.mjs",
|
|
51
61
|
"build:web": "wasm-pack build ../../core --target web --out-name amba_core --out-dir ../packages/core/pkg",
|
|
62
|
+
"build:inline": "node ./scripts/build-inline.mjs",
|
|
52
63
|
"build:rn": "node ./scripts/build-rn.mjs",
|
|
53
64
|
"build:bundler": "wasm-pack build ../../core --target bundler --out-name amba_core --out-dir ../packages/core/pkg-bundler",
|
|
54
65
|
"build:nodejs": "wasm-pack build ../../core --target nodejs --out-name amba_core --out-dir ../packages/core/pkg-node",
|
package/pkg/amba_core.d.ts
CHANGED
|
@@ -429,9 +429,9 @@ export interface InitOutput {
|
|
|
429
429
|
readonly ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
430
430
|
readonly ambacorewasm_xpGetBalance: (a: number) => number;
|
|
431
431
|
readonly ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
432
|
-
readonly
|
|
433
|
-
readonly
|
|
434
|
-
readonly
|
|
432
|
+
readonly __wasm_bindgen_func_elem_3271: (a: number, b: number, c: number, d: number) => void;
|
|
433
|
+
readonly __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
|
|
434
|
+
readonly __wasm_bindgen_func_elem_3271_144: (a: number, b: number, c: number, d: number) => void;
|
|
435
435
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
436
436
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
437
437
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg/amba_core.js
CHANGED
|
@@ -1689,7 +1689,7 @@ function __wbg_get_imports() {
|
|
|
1689
1689
|
const a = state0.a;
|
|
1690
1690
|
state0.a = 0;
|
|
1691
1691
|
try {
|
|
1692
|
-
return
|
|
1692
|
+
return __wasm_bindgen_func_elem_3271_144(a, state0.b, arg0, arg1);
|
|
1693
1693
|
} finally {
|
|
1694
1694
|
state0.a = a;
|
|
1695
1695
|
}
|
|
@@ -1760,13 +1760,13 @@ function __wbg_get_imports() {
|
|
|
1760
1760
|
return addHeapObject(ret);
|
|
1761
1761
|
},
|
|
1762
1762
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1763
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1764
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1763
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref, Externref], shim_idx: 830, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1764
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3271);
|
|
1765
1765
|
return addHeapObject(ret);
|
|
1766
1766
|
},
|
|
1767
1767
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1768
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1769
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1768
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 819, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1769
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3252);
|
|
1770
1770
|
return addHeapObject(ret);
|
|
1771
1771
|
},
|
|
1772
1772
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1803,14 +1803,14 @@ function __wbg_get_imports() {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
-
function
|
|
1807
|
-
wasm.
|
|
1806
|
+
function __wasm_bindgen_func_elem_3271(arg0, arg1, arg2, arg3) {
|
|
1807
|
+
wasm.__wasm_bindgen_func_elem_3271(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1808
1808
|
}
|
|
1809
1809
|
|
|
1810
|
-
function
|
|
1810
|
+
function __wasm_bindgen_func_elem_3252(arg0, arg1, arg2) {
|
|
1811
1811
|
try {
|
|
1812
1812
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1813
|
-
wasm.
|
|
1813
|
+
wasm.__wasm_bindgen_func_elem_3252(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1814
1814
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1815
1815
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1816
1816
|
if (r1) {
|
|
@@ -1821,8 +1821,8 @@ function __wasm_bindgen_func_elem_3228(arg0, arg1, arg2) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
-
function
|
|
1825
|
-
wasm.
|
|
1824
|
+
function __wasm_bindgen_func_elem_3271_144(arg0, arg1, arg2, arg3) {
|
|
1825
|
+
wasm.__wasm_bindgen_func_elem_3271_144(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1826
1826
|
}
|
|
1827
1827
|
|
|
1828
1828
|
const AmbaCoreWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/amba_core_bg.wasm
CHANGED
|
Binary file
|
|
@@ -144,9 +144,9 @@ export const ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: num
|
|
|
144
144
|
export const ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
145
145
|
export const ambacorewasm_xpGetBalance: (a: number) => number;
|
|
146
146
|
export const ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
147
|
-
export const
|
|
148
|
-
export const
|
|
149
|
-
export const
|
|
147
|
+
export const __wasm_bindgen_func_elem_3271: (a: number, b: number, c: number, d: number) => void;
|
|
148
|
+
export const __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
|
|
149
|
+
export const __wasm_bindgen_func_elem_3271_144: (a: number, b: number, c: number, d: number) => void;
|
|
150
150
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
151
151
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
152
152
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* JS-callable opaque handle to [`AmbaCore`].
|
|
6
|
+
*
|
|
7
|
+
* The JS side instantiates it via `AmbaCoreWasm.init(configJson, fetchFn)`
|
|
8
|
+
* and stashes it for the lifetime of the page.
|
|
9
|
+
*/
|
|
10
|
+
export class AmbaCoreWasm {
|
|
11
|
+
private constructor();
|
|
12
|
+
free(): void;
|
|
13
|
+
[Symbol.dispose](): void;
|
|
14
|
+
achievementsGetAll(): Promise<any>;
|
|
15
|
+
achievementsGetProgress(): Promise<any>;
|
|
16
|
+
aiAnthropicMessages(request_json: string): Promise<any>;
|
|
17
|
+
anonymousId(): string;
|
|
18
|
+
appUserId(): string | undefined;
|
|
19
|
+
catalogGet(item_id: string): Promise<any>;
|
|
20
|
+
catalogList(): Promise<any>;
|
|
21
|
+
challengesClaim(id: string): Promise<any>;
|
|
22
|
+
challengesGet(id: string): Promise<any>;
|
|
23
|
+
challengesGetActive(): Promise<any>;
|
|
24
|
+
challengesGetProgress(id: string): Promise<any>;
|
|
25
|
+
/**
|
|
26
|
+
* `filter_json` is the JSON-encoded [`Filter`] tree or `null`/None.
|
|
27
|
+
* Returns the bare count as a JS `number` value.
|
|
28
|
+
*/
|
|
29
|
+
collectionsCount(collection: string, filter_json?: string | null): Promise<any>;
|
|
30
|
+
collectionsDelete(collection: string, id: string): Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Bulk soft-delete rows matching `filter_json` (a JSON-encoded
|
|
33
|
+
* [`Filter`](crate::collections::Filter) tree). Returns
|
|
34
|
+
* `{data: {deleted: N}}`.
|
|
35
|
+
*/
|
|
36
|
+
collectionsDeleteWhere(collection: string, filter_json: string): Promise<any>;
|
|
37
|
+
collectionsFind(collection: string, options_json: string): Promise<any>;
|
|
38
|
+
/**
|
|
39
|
+
* Vector-search. `options_json` matches `NearestOptions`
|
|
40
|
+
* (`{vector_field, query_vector, k, filter?}`).
|
|
41
|
+
*/
|
|
42
|
+
collectionsFindNearest(collection: string, options_json: string): Promise<any>;
|
|
43
|
+
collectionsFindOne(collection: string, id: string): Promise<any>;
|
|
44
|
+
collectionsInsert(collection: string, row_json: string): Promise<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Restore a previously soft-deleted row by id. Returns the restored row.
|
|
47
|
+
*/
|
|
48
|
+
collectionsRestore(collection: string, id: string): Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Run an ordered batch of writes as ONE atomic transaction.
|
|
51
|
+
* `operations_json` is a JSON-encoded array of wire-shaped op objects
|
|
52
|
+
* (`[{collection, op, id?, row?, set?, where?, expected?, on_conflict?,
|
|
53
|
+
* conflict_target?}]`). Resolves to the per-op results array; rejects with
|
|
54
|
+
* the server's structured error (naming the failing op index) on rollback.
|
|
55
|
+
*/
|
|
56
|
+
collectionsTransaction(operations_json: string): Promise<any>;
|
|
57
|
+
collectionsUpdate(collection: string, id: string, set_json: string): Promise<any>;
|
|
58
|
+
/**
|
|
59
|
+
* Upsert a row. `options_json` is `{on_conflict, conflict_target}` —
|
|
60
|
+
* `on_conflict` is `"ignore"` or `"update"`, `conflict_target` is the
|
|
61
|
+
* array of unique-index columns to arbitrate on. Returns the resolved
|
|
62
|
+
* row.
|
|
63
|
+
*/
|
|
64
|
+
collectionsUpsert(collection: string, row_json: string, options_json: string): Promise<any>;
|
|
65
|
+
configFetch(): Promise<any>;
|
|
66
|
+
contentCreateItem(channel: string, item_json: string): Promise<any>;
|
|
67
|
+
contentGetItem(id: string): Promise<any>;
|
|
68
|
+
/**
|
|
69
|
+
* Localized variant of `contentGetItem`: `language` is an optional
|
|
70
|
+
* BCP-47 tag forwarded as `?language=`. See `contentGetTodayLocalized`.
|
|
71
|
+
*/
|
|
72
|
+
contentGetItemLocalized(id: string, language?: string | null): Promise<any>;
|
|
73
|
+
/**
|
|
74
|
+
* `channel` is optional; `limit` caps results per page; `cursor` is
|
|
75
|
+
* the server-issued opaque pagination token. Mirror the TS wrapper
|
|
76
|
+
* signature: getLibrary(channel?, { limit?, cursor? }).
|
|
77
|
+
*/
|
|
78
|
+
contentGetLibrary(channel?: string | null, limit?: number | null, cursor?: string | null): Promise<any>;
|
|
79
|
+
/**
|
|
80
|
+
* `channel` is optional; when omitted, FFI defaults to `"default"` so
|
|
81
|
+
* single-channel apps can call `Amba.content.getToday()` without args.
|
|
82
|
+
*/
|
|
83
|
+
contentGetToday(channel?: string | null): Promise<any>;
|
|
84
|
+
/**
|
|
85
|
+
* Localized variant of `contentGetToday`: `language` is an optional
|
|
86
|
+
* BCP-47 tag (e.g. `"es-419"`). When present it is forwarded as
|
|
87
|
+
* `?language=`; the server returns the translated title/body when a
|
|
88
|
+
* translation exists, falling back to the base item otherwise. Passing
|
|
89
|
+
* `undefined`/`null` is identical to `contentGetToday`.
|
|
90
|
+
*/
|
|
91
|
+
contentGetTodayLocalized(channel?: string | null, language?: string | null): Promise<any>;
|
|
92
|
+
contentUpdateItem(id: string, state_json: string): Promise<any>;
|
|
93
|
+
currenciesGetBalance(): Promise<any>;
|
|
94
|
+
currenciesGetTransactions(currency_key: string): Promise<any>;
|
|
95
|
+
currentIdentifiers(): Promise<any>;
|
|
96
|
+
deepLinksCreate(params_json: string): Promise<any>;
|
|
97
|
+
deepLinksGet(short_code: string): Promise<any>;
|
|
98
|
+
diagnosticsPing(): Promise<any>;
|
|
99
|
+
entitlementsHas(name: string): Promise<any>;
|
|
100
|
+
entitlementsList(): Promise<any>;
|
|
101
|
+
entitlementsRestore(): Promise<any>;
|
|
102
|
+
feedsGetActivity(feed?: string | null, cursor?: string | null): Promise<any>;
|
|
103
|
+
flagsFetch(): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* Single-flag lookup (SDK 4.0). Returns `null` for unknown /
|
|
106
|
+
* disabled keys — the WASM bridge prefers `null` over throwing
|
|
107
|
+
* for the not-found path so consumers can branch on the value
|
|
108
|
+
* without try/catch boilerplate. Other errors (auth, rate-limit,
|
|
109
|
+
* network) still surface as JsError.
|
|
110
|
+
*/
|
|
111
|
+
flagsGet(key: string): Promise<any>;
|
|
112
|
+
friendsAcceptRequest(friendship_id: string): Promise<any>;
|
|
113
|
+
friendsBlockUser(user_id: string): Promise<any>;
|
|
114
|
+
friendsDeclineRequest(friendship_id: string): Promise<any>;
|
|
115
|
+
friendsGetFriends(): Promise<any>;
|
|
116
|
+
friendsGetList(): Promise<any>;
|
|
117
|
+
friendsRemoveBlock(friendship_id: string): Promise<any>;
|
|
118
|
+
/**
|
|
119
|
+
* Unfriend by the other user's id (SDK 4.0). Wraps
|
|
120
|
+
* `DELETE /v1/client/friends/by-user/{userId}` — distinct from
|
|
121
|
+
* `friendsRemoveBlock` which targets a friendship row id.
|
|
122
|
+
*/
|
|
123
|
+
friendsRemoveFriend(user_id: string): Promise<any>;
|
|
124
|
+
friendsSendRequest(user_id: string): Promise<any>;
|
|
125
|
+
friendsUnblockUser(user_id: string): Promise<any>;
|
|
126
|
+
groupsCreate(params_json: string): Promise<any>;
|
|
127
|
+
groupsDelete(id: string): Promise<any>;
|
|
128
|
+
groupsGet(id: string): Promise<any>;
|
|
129
|
+
groupsGetMembers(id: string): Promise<any>;
|
|
130
|
+
groupsInvite(id: string, user_id: string): Promise<any>;
|
|
131
|
+
groupsJoin(id: string): Promise<any>;
|
|
132
|
+
groupsLeave(id: string): Promise<any>;
|
|
133
|
+
groupsUpdate(id: string, patch_json: string): Promise<any>;
|
|
134
|
+
/**
|
|
135
|
+
* Initialize the SDK.
|
|
136
|
+
*
|
|
137
|
+
* `config_json`: JSON-stringified `AmbaConfig` (api_key, base_url,
|
|
138
|
+
* sdk_platform, sdk_wrapper_version, consent_required, debug).
|
|
139
|
+
*
|
|
140
|
+
* `fetch_fn`: a JS function `(url, init) => Promise<Response>`
|
|
141
|
+
* matching the global `fetch` signature. The wrapper passes
|
|
142
|
+
* `window.fetch.bind(window)` or a server-side polyfill.
|
|
143
|
+
*/
|
|
144
|
+
static init(config_json: string, fetch_fn: Function): AmbaCoreWasm;
|
|
145
|
+
inventoryConsume(request_json: string): Promise<any>;
|
|
146
|
+
inventoryGetItem(id: string): Promise<any>;
|
|
147
|
+
inventoryGetItems(): Promise<any>;
|
|
148
|
+
inventoryPurchase(request_json: string): Promise<any>;
|
|
149
|
+
isAuthenticated(): boolean;
|
|
150
|
+
leaderboardsGet(key: string): Promise<any>;
|
|
151
|
+
leaderboardsGetEntries(key: string, limit?: number | null): Promise<any>;
|
|
152
|
+
leaderboardsGetMyRank(key: string): Promise<any>;
|
|
153
|
+
leaguesCohort(): Promise<any>;
|
|
154
|
+
leaguesMe(): Promise<any>;
|
|
155
|
+
linkAccount(provider: string, credential: string): Promise<any>;
|
|
156
|
+
linkEmailOtp(email: string, code: string): Promise<any>;
|
|
157
|
+
linkEmailPassword(email: string, password: string): Promise<any>;
|
|
158
|
+
linkSmsOtp(phone: string, code: string): Promise<any>;
|
|
159
|
+
me(): Promise<any>;
|
|
160
|
+
/**
|
|
161
|
+
* `POST /v1/client/messaging/conversations/:id/participants` — add a
|
|
162
|
+
* participant to a conversation. The caller must already be a member
|
|
163
|
+
* (server enforces `NOT_A_PARTICIPANT`); idempotent server-side.
|
|
164
|
+
*/
|
|
165
|
+
messagingAddParticipant(conversation_id: string, user_id: string): Promise<any>;
|
|
166
|
+
/**
|
|
167
|
+
* `POST /v1/client/messaging/conversations` — create (or fetch the
|
|
168
|
+
* existing direct) conversation. JS payload is the same JSON the
|
|
169
|
+
* server accepts (`participant_ids`, optional `type`, optional
|
|
170
|
+
* `name`).
|
|
171
|
+
*/
|
|
172
|
+
messagingCreateConversation(request_json: string): Promise<any>;
|
|
173
|
+
messagingGetConversations(): Promise<any>;
|
|
174
|
+
/**
|
|
175
|
+
* Single-message lookup. The server has no dedicated GET-by-id
|
|
176
|
+
* route; this paginates `list_messages` and filters in core (see
|
|
177
|
+
* `MessagingModule::get_message`). Resolves to JSON `null` when
|
|
178
|
+
* the message isn't found.
|
|
179
|
+
*/
|
|
180
|
+
messagingGetMessage(conversation_id: string, message_id: string): Promise<any>;
|
|
181
|
+
/**
|
|
182
|
+
* `GET /v1/client/messaging/conversations/:id/messages` — list
|
|
183
|
+
* messages in a conversation. `limit` and `offset` are emitted as
|
|
184
|
+
* query params when present.
|
|
185
|
+
*/
|
|
186
|
+
messagingListMessages(conversation_id: string, limit?: number | null, offset?: number | null): Promise<any>;
|
|
187
|
+
/**
|
|
188
|
+
* `POST /v1/client/messaging/conversations/:id/read` — bump the
|
|
189
|
+
* caller's `last_read_at` on the conversation.
|
|
190
|
+
*/
|
|
191
|
+
messagingMarkRead(conversation_id: string): Promise<any>;
|
|
192
|
+
/**
|
|
193
|
+
* `POST /v1/client/messaging/conversations/:id/messages` — send a
|
|
194
|
+
* message. The `conversation_id` is a path arg server-side; FFI
|
|
195
|
+
* callers pass it inside the request JSON (`{"conversation_id":
|
|
196
|
+
* ..., "body": ...}`) for ABI stability. JS bindings that prefer
|
|
197
|
+
* the cleaner two-positional shape can wrap this — see the
|
|
198
|
+
* TypeScript `Amba.messaging.sendMessage` surface.
|
|
199
|
+
*/
|
|
200
|
+
messagingSendMessage(request_json: string): Promise<any>;
|
|
201
|
+
moderationGetReportStatus(id: string): Promise<any>;
|
|
202
|
+
moderationReportContent(request_json: string): Promise<any>;
|
|
203
|
+
moderationReportUser(request_json: string): Promise<any>;
|
|
204
|
+
offeringsGet(offering_id: string): Promise<any>;
|
|
205
|
+
offeringsList(): Promise<any>;
|
|
206
|
+
onboardingComplete(): Promise<any>;
|
|
207
|
+
onboardingGetStatus(): Promise<any>;
|
|
208
|
+
onboardingNextStep(payload_json: string): Promise<any>;
|
|
209
|
+
onboardingSkipStep(): Promise<any>;
|
|
210
|
+
pushGetTokens(): Promise<any>;
|
|
211
|
+
pushRegister(token: string, platform: string, bundle_id?: string | null): Promise<any>;
|
|
212
|
+
pushSubscribe(topic: string): Promise<any>;
|
|
213
|
+
pushUnregister(token: string): Promise<any>;
|
|
214
|
+
pushUnsubscribe(topic: string): Promise<any>;
|
|
215
|
+
referralsClaimReferral(code: string): Promise<any>;
|
|
216
|
+
referralsCreate(code?: string | null, max_uses?: number | null): Promise<any>;
|
|
217
|
+
referralsGetReferralCode(): Promise<any>;
|
|
218
|
+
refreshSession(): Promise<any>;
|
|
219
|
+
requestEmailOtp(email: string): Promise<any>;
|
|
220
|
+
requestMagicLink(email: string): Promise<any>;
|
|
221
|
+
requestSmsOtp(phone: string): Promise<any>;
|
|
222
|
+
reviewsCreate(params_json: string): Promise<any>;
|
|
223
|
+
reviewsDelete(id: string): Promise<any>;
|
|
224
|
+
reviewsList(target_type: string, target_id: string): Promise<any>;
|
|
225
|
+
reviewsUpdate(id: string, patch_json: string): Promise<any>;
|
|
226
|
+
rolesGetMyRoles(): Promise<any>;
|
|
227
|
+
rolesHasPermission(permission: string): Promise<any>;
|
|
228
|
+
sessionsList(): Promise<any>;
|
|
229
|
+
sessionsRevoke(session_id: string): Promise<any>;
|
|
230
|
+
setDebug(enabled: boolean): void;
|
|
231
|
+
signInAnonymously(): Promise<any>;
|
|
232
|
+
signInWithEmail(email: string, password: string): Promise<any>;
|
|
233
|
+
signInWithSocial(provider: string, id_token: string): Promise<any>;
|
|
234
|
+
signOut(rotate_anonymous_id: boolean): Promise<any>;
|
|
235
|
+
signUpWithEmail(email: string, password: string): Promise<any>;
|
|
236
|
+
storageCommit(upload_id: string, asset_id: string): Promise<any>;
|
|
237
|
+
storageDelete(asset_id: string): Promise<any>;
|
|
238
|
+
/**
|
|
239
|
+
* Returns the raw asset bytes as a `Uint8Array`. The TS wrapper
|
|
240
|
+
* hands these to a `Blob` constructor when the caller needs
|
|
241
|
+
* browser-native semantics (`new Blob([bytes], {type: mime})`).
|
|
242
|
+
*/
|
|
243
|
+
storageDownload(asset_id: string): Promise<any>;
|
|
244
|
+
/**
|
|
245
|
+
* `prefix` forwards as `?prefix=` (server currently ignores it).
|
|
246
|
+
*/
|
|
247
|
+
storageList(prefix?: string | null): Promise<any>;
|
|
248
|
+
storagePresign(bucket: string, filename: string, mime_type: string, size_bytes: number, retention_days?: number | null): Promise<any>;
|
|
249
|
+
storesGetPurchaseOptions(store_key: string): Promise<any>;
|
|
250
|
+
storesList(): Promise<any>;
|
|
251
|
+
storesPurchase(store_key: string, purchase_option_id: string, receipt_json: string): Promise<any>;
|
|
252
|
+
streaksGetAll(): Promise<any>;
|
|
253
|
+
streaksQualify(streak_key: string): Promise<any>;
|
|
254
|
+
/**
|
|
255
|
+
* `since_json` is a JSON object `{"entity_type": "...",
|
|
256
|
+
* "checkpoint_token"?: "..."}`. The TS wrapper accepts a richer
|
|
257
|
+
* `since` value (e.g. a plain cursor string) and stamps the
|
|
258
|
+
* `entity_type` field before forwarding.
|
|
259
|
+
*/
|
|
260
|
+
syncPullChanges(since_json: string): Promise<any>;
|
|
261
|
+
syncPushChanges(changes_json: string): Promise<any>;
|
|
262
|
+
/**
|
|
263
|
+
* Track an event. Returns a Promise that resolves to undefined on success.
|
|
264
|
+
*
|
|
265
|
+
* `telemetry` — when `Some(true)`, the server routes the event to
|
|
266
|
+
* the `telemetry_events` table (no fan-out, cheaper billing).
|
|
267
|
+
* `None` / `Some(false)` keeps the legacy engagement-event routing
|
|
268
|
+
* for back-compat.
|
|
269
|
+
*/
|
|
270
|
+
track(event: string, properties_json?: string | null, telemetry?: boolean | null): Promise<any>;
|
|
271
|
+
unlinkApple(): Promise<any>;
|
|
272
|
+
unlinkEmailOtp(): Promise<any>;
|
|
273
|
+
unlinkGoogle(): Promise<any>;
|
|
274
|
+
unlinkSmsOtp(): Promise<any>;
|
|
275
|
+
usersGet(user_id?: string | null): Promise<any>;
|
|
276
|
+
usersUpdate(user_id: string | null | undefined, patch_json: string): Promise<any>;
|
|
277
|
+
verifyEmailOtp(email: string, code: string): Promise<any>;
|
|
278
|
+
verifyMagicLink(token: string): Promise<any>;
|
|
279
|
+
verifySmsOtp(phone: string, code: string): Promise<any>;
|
|
280
|
+
xpClaim(grant_key: string): Promise<any>;
|
|
281
|
+
xpGetBalance(): Promise<any>;
|
|
282
|
+
xpGetHistory(limit?: number | null): Promise<any>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
286
|
+
|
|
287
|
+
export interface InitOutput {
|
|
288
|
+
readonly memory: WebAssembly.Memory;
|
|
289
|
+
readonly __wbg_ambacorewasm_free: (a: number, b: number) => void;
|
|
290
|
+
readonly ambacorewasm_achievementsGetAll: (a: number) => number;
|
|
291
|
+
readonly ambacorewasm_achievementsGetProgress: (a: number) => number;
|
|
292
|
+
readonly ambacorewasm_aiAnthropicMessages: (a: number, b: number, c: number) => number;
|
|
293
|
+
readonly ambacorewasm_anonymousId: (a: number, b: number) => void;
|
|
294
|
+
readonly ambacorewasm_appUserId: (a: number, b: number) => void;
|
|
295
|
+
readonly ambacorewasm_catalogGet: (a: number, b: number, c: number) => number;
|
|
296
|
+
readonly ambacorewasm_catalogList: (a: number) => number;
|
|
297
|
+
readonly ambacorewasm_challengesClaim: (a: number, b: number, c: number) => number;
|
|
298
|
+
readonly ambacorewasm_challengesGet: (a: number, b: number, c: number) => number;
|
|
299
|
+
readonly ambacorewasm_challengesGetActive: (a: number) => number;
|
|
300
|
+
readonly ambacorewasm_challengesGetProgress: (a: number, b: number, c: number) => number;
|
|
301
|
+
readonly ambacorewasm_collectionsCount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
302
|
+
readonly ambacorewasm_collectionsDelete: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
303
|
+
readonly ambacorewasm_collectionsDeleteWhere: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
304
|
+
readonly ambacorewasm_collectionsFind: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
305
|
+
readonly ambacorewasm_collectionsFindNearest: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
306
|
+
readonly ambacorewasm_collectionsFindOne: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
307
|
+
readonly ambacorewasm_collectionsInsert: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
308
|
+
readonly ambacorewasm_collectionsRestore: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
309
|
+
readonly ambacorewasm_collectionsTransaction: (a: number, b: number, c: number) => number;
|
|
310
|
+
readonly ambacorewasm_collectionsUpdate: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
311
|
+
readonly ambacorewasm_collectionsUpsert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
312
|
+
readonly ambacorewasm_configFetch: (a: number) => number;
|
|
313
|
+
readonly ambacorewasm_contentCreateItem: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
314
|
+
readonly ambacorewasm_contentGetItem: (a: number, b: number, c: number) => number;
|
|
315
|
+
readonly ambacorewasm_contentGetItemLocalized: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
316
|
+
readonly ambacorewasm_contentGetLibrary: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
317
|
+
readonly ambacorewasm_contentGetToday: (a: number, b: number, c: number) => number;
|
|
318
|
+
readonly ambacorewasm_contentGetTodayLocalized: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
319
|
+
readonly ambacorewasm_contentUpdateItem: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
320
|
+
readonly ambacorewasm_currenciesGetBalance: (a: number) => number;
|
|
321
|
+
readonly ambacorewasm_currenciesGetTransactions: (a: number, b: number, c: number) => number;
|
|
322
|
+
readonly ambacorewasm_currentIdentifiers: (a: number) => number;
|
|
323
|
+
readonly ambacorewasm_deepLinksCreate: (a: number, b: number, c: number) => number;
|
|
324
|
+
readonly ambacorewasm_deepLinksGet: (a: number, b: number, c: number) => number;
|
|
325
|
+
readonly ambacorewasm_diagnosticsPing: (a: number) => number;
|
|
326
|
+
readonly ambacorewasm_entitlementsHas: (a: number, b: number, c: number) => number;
|
|
327
|
+
readonly ambacorewasm_entitlementsList: (a: number) => number;
|
|
328
|
+
readonly ambacorewasm_entitlementsRestore: (a: number) => number;
|
|
329
|
+
readonly ambacorewasm_feedsGetActivity: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
330
|
+
readonly ambacorewasm_flagsFetch: (a: number) => number;
|
|
331
|
+
readonly ambacorewasm_flagsGet: (a: number, b: number, c: number) => number;
|
|
332
|
+
readonly ambacorewasm_friendsAcceptRequest: (a: number, b: number, c: number) => number;
|
|
333
|
+
readonly ambacorewasm_friendsBlockUser: (a: number, b: number, c: number) => number;
|
|
334
|
+
readonly ambacorewasm_friendsDeclineRequest: (a: number, b: number, c: number) => number;
|
|
335
|
+
readonly ambacorewasm_friendsGetFriends: (a: number) => number;
|
|
336
|
+
readonly ambacorewasm_friendsGetList: (a: number) => number;
|
|
337
|
+
readonly ambacorewasm_friendsRemoveBlock: (a: number, b: number, c: number) => number;
|
|
338
|
+
readonly ambacorewasm_friendsRemoveFriend: (a: number, b: number, c: number) => number;
|
|
339
|
+
readonly ambacorewasm_friendsSendRequest: (a: number, b: number, c: number) => number;
|
|
340
|
+
readonly ambacorewasm_friendsUnblockUser: (a: number, b: number, c: number) => number;
|
|
341
|
+
readonly ambacorewasm_groupsCreate: (a: number, b: number, c: number) => number;
|
|
342
|
+
readonly ambacorewasm_groupsDelete: (a: number, b: number, c: number) => number;
|
|
343
|
+
readonly ambacorewasm_groupsGet: (a: number, b: number, c: number) => number;
|
|
344
|
+
readonly ambacorewasm_groupsGetMembers: (a: number, b: number, c: number) => number;
|
|
345
|
+
readonly ambacorewasm_groupsInvite: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
346
|
+
readonly ambacorewasm_groupsJoin: (a: number, b: number, c: number) => number;
|
|
347
|
+
readonly ambacorewasm_groupsLeave: (a: number, b: number, c: number) => number;
|
|
348
|
+
readonly ambacorewasm_groupsUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
349
|
+
readonly ambacorewasm_init: (a: number, b: number, c: number, d: number) => void;
|
|
350
|
+
readonly ambacorewasm_inventoryConsume: (a: number, b: number, c: number) => number;
|
|
351
|
+
readonly ambacorewasm_inventoryGetItem: (a: number, b: number, c: number) => number;
|
|
352
|
+
readonly ambacorewasm_inventoryGetItems: (a: number) => number;
|
|
353
|
+
readonly ambacorewasm_inventoryPurchase: (a: number, b: number, c: number) => number;
|
|
354
|
+
readonly ambacorewasm_isAuthenticated: (a: number) => number;
|
|
355
|
+
readonly ambacorewasm_leaderboardsGet: (a: number, b: number, c: number) => number;
|
|
356
|
+
readonly ambacorewasm_leaderboardsGetEntries: (a: number, b: number, c: number, d: number) => number;
|
|
357
|
+
readonly ambacorewasm_leaderboardsGetMyRank: (a: number, b: number, c: number) => number;
|
|
358
|
+
readonly ambacorewasm_leaguesCohort: (a: number) => number;
|
|
359
|
+
readonly ambacorewasm_leaguesMe: (a: number) => number;
|
|
360
|
+
readonly ambacorewasm_linkAccount: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
361
|
+
readonly ambacorewasm_linkEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
362
|
+
readonly ambacorewasm_linkEmailPassword: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
363
|
+
readonly ambacorewasm_linkSmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
364
|
+
readonly ambacorewasm_me: (a: number) => number;
|
|
365
|
+
readonly ambacorewasm_messagingAddParticipant: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
366
|
+
readonly ambacorewasm_messagingCreateConversation: (a: number, b: number, c: number) => number;
|
|
367
|
+
readonly ambacorewasm_messagingGetConversations: (a: number) => number;
|
|
368
|
+
readonly ambacorewasm_messagingGetMessage: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
369
|
+
readonly ambacorewasm_messagingListMessages: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
370
|
+
readonly ambacorewasm_messagingMarkRead: (a: number, b: number, c: number) => number;
|
|
371
|
+
readonly ambacorewasm_messagingSendMessage: (a: number, b: number, c: number) => number;
|
|
372
|
+
readonly ambacorewasm_moderationGetReportStatus: (a: number, b: number, c: number) => number;
|
|
373
|
+
readonly ambacorewasm_moderationReportContent: (a: number, b: number, c: number) => number;
|
|
374
|
+
readonly ambacorewasm_moderationReportUser: (a: number, b: number, c: number) => number;
|
|
375
|
+
readonly ambacorewasm_offeringsGet: (a: number, b: number, c: number) => number;
|
|
376
|
+
readonly ambacorewasm_offeringsList: (a: number) => number;
|
|
377
|
+
readonly ambacorewasm_onboardingComplete: (a: number) => number;
|
|
378
|
+
readonly ambacorewasm_onboardingGetStatus: (a: number) => number;
|
|
379
|
+
readonly ambacorewasm_onboardingNextStep: (a: number, b: number, c: number) => number;
|
|
380
|
+
readonly ambacorewasm_onboardingSkipStep: (a: number) => number;
|
|
381
|
+
readonly ambacorewasm_pushGetTokens: (a: number) => number;
|
|
382
|
+
readonly ambacorewasm_pushRegister: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
383
|
+
readonly ambacorewasm_pushSubscribe: (a: number, b: number, c: number) => number;
|
|
384
|
+
readonly ambacorewasm_pushUnregister: (a: number, b: number, c: number) => number;
|
|
385
|
+
readonly ambacorewasm_pushUnsubscribe: (a: number, b: number, c: number) => number;
|
|
386
|
+
readonly ambacorewasm_referralsClaimReferral: (a: number, b: number, c: number) => number;
|
|
387
|
+
readonly ambacorewasm_referralsCreate: (a: number, b: number, c: number, d: number) => number;
|
|
388
|
+
readonly ambacorewasm_referralsGetReferralCode: (a: number) => number;
|
|
389
|
+
readonly ambacorewasm_refreshSession: (a: number) => number;
|
|
390
|
+
readonly ambacorewasm_requestEmailOtp: (a: number, b: number, c: number) => number;
|
|
391
|
+
readonly ambacorewasm_requestMagicLink: (a: number, b: number, c: number) => number;
|
|
392
|
+
readonly ambacorewasm_requestSmsOtp: (a: number, b: number, c: number) => number;
|
|
393
|
+
readonly ambacorewasm_reviewsCreate: (a: number, b: number, c: number) => number;
|
|
394
|
+
readonly ambacorewasm_reviewsDelete: (a: number, b: number, c: number) => number;
|
|
395
|
+
readonly ambacorewasm_reviewsList: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
396
|
+
readonly ambacorewasm_reviewsUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
397
|
+
readonly ambacorewasm_rolesGetMyRoles: (a: number) => number;
|
|
398
|
+
readonly ambacorewasm_rolesHasPermission: (a: number, b: number, c: number) => number;
|
|
399
|
+
readonly ambacorewasm_sessionsList: (a: number) => number;
|
|
400
|
+
readonly ambacorewasm_sessionsRevoke: (a: number, b: number, c: number) => number;
|
|
401
|
+
readonly ambacorewasm_setDebug: (a: number, b: number) => void;
|
|
402
|
+
readonly ambacorewasm_signInAnonymously: (a: number) => number;
|
|
403
|
+
readonly ambacorewasm_signInWithEmail: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
404
|
+
readonly ambacorewasm_signInWithSocial: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
405
|
+
readonly ambacorewasm_signOut: (a: number, b: number) => number;
|
|
406
|
+
readonly ambacorewasm_signUpWithEmail: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
407
|
+
readonly ambacorewasm_storageCommit: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
408
|
+
readonly ambacorewasm_storageDelete: (a: number, b: number, c: number) => number;
|
|
409
|
+
readonly ambacorewasm_storageDownload: (a: number, b: number, c: number) => number;
|
|
410
|
+
readonly ambacorewasm_storageList: (a: number, b: number, c: number) => number;
|
|
411
|
+
readonly ambacorewasm_storagePresign: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
412
|
+
readonly ambacorewasm_storesGetPurchaseOptions: (a: number, b: number, c: number) => number;
|
|
413
|
+
readonly ambacorewasm_storesList: (a: number) => number;
|
|
414
|
+
readonly ambacorewasm_storesPurchase: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
415
|
+
readonly ambacorewasm_streaksGetAll: (a: number) => number;
|
|
416
|
+
readonly ambacorewasm_streaksQualify: (a: number, b: number, c: number) => number;
|
|
417
|
+
readonly ambacorewasm_syncPullChanges: (a: number, b: number, c: number) => number;
|
|
418
|
+
readonly ambacorewasm_syncPushChanges: (a: number, b: number, c: number) => number;
|
|
419
|
+
readonly ambacorewasm_track: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
420
|
+
readonly ambacorewasm_unlinkApple: (a: number) => number;
|
|
421
|
+
readonly ambacorewasm_unlinkEmailOtp: (a: number) => number;
|
|
422
|
+
readonly ambacorewasm_unlinkGoogle: (a: number) => number;
|
|
423
|
+
readonly ambacorewasm_unlinkSmsOtp: (a: number) => number;
|
|
424
|
+
readonly ambacorewasm_usersGet: (a: number, b: number, c: number) => number;
|
|
425
|
+
readonly ambacorewasm_usersUpdate: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
426
|
+
readonly ambacorewasm_verifyEmailOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
427
|
+
readonly ambacorewasm_verifyMagicLink: (a: number, b: number, c: number) => number;
|
|
428
|
+
readonly ambacorewasm_verifySmsOtp: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
429
|
+
readonly ambacorewasm_xpClaim: (a: number, b: number, c: number) => number;
|
|
430
|
+
readonly ambacorewasm_xpGetBalance: (a: number) => number;
|
|
431
|
+
readonly ambacorewasm_xpGetHistory: (a: number, b: number) => number;
|
|
432
|
+
readonly __wasm_bindgen_func_elem_3271: (a: number, b: number, c: number, d: number) => void;
|
|
433
|
+
readonly __wasm_bindgen_func_elem_3252: (a: number, b: number, c: number, d: number) => void;
|
|
434
|
+
readonly __wasm_bindgen_func_elem_3271_144: (a: number, b: number, c: number, d: number) => void;
|
|
435
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
436
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
437
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
438
|
+
readonly __wbindgen_export4: (a: number, b: number) => void;
|
|
439
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
440
|
+
readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
447
|
+
* a precompiled `WebAssembly.Module`.
|
|
448
|
+
*
|
|
449
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
450
|
+
*
|
|
451
|
+
* @returns {InitOutput}
|
|
452
|
+
*/
|
|
453
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
457
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
458
|
+
*
|
|
459
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
460
|
+
*
|
|
461
|
+
* @returns {Promise<InitOutput>}
|
|
462
|
+
*/
|
|
463
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|