@defold-typescript/library-types 0.18.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/NOTICE +52 -0
- package/README.md +78 -0
- package/api-doc/boom.boom.json +26 -0
- package/api-doc/bridge.bridge.json +1653 -0
- package/api-doc/bzAnim.bzLibrary.json +156 -0
- package/api-doc/defcon.console.json +109 -0
- package/api-doc/defmath.defmath.json +1381 -0
- package/api-doc/defsave.defsave.json +175 -0
- package/api-doc/deftest.deftest.json +71 -0
- package/api-doc/dicebag.dicebag.json +323 -0
- package/api-doc/event.event.json +238 -0
- package/api-doc/gooey.gooey.json +963 -0
- package/api-doc/immutable.immutable.json +63 -0
- package/api-doc/in.accelerometer.json +281 -0
- package/api-doc/in.button.json +148 -0
- package/api-doc/in.cursor.json +203 -0
- package/api-doc/in.gesture.json +206 -0
- package/api-doc/in.keyboard.json +45 -0
- package/api-doc/in.mapper.json +141 -0
- package/api-doc/in.onscreen.json +265 -0
- package/api-doc/in.state.json +195 -0
- package/api-doc/in.textbox.json +213 -0
- package/api-doc/in.triggers.json +1260 -0
- package/api-doc/lang.lang.json +411 -0
- package/api-doc/log.log.json +50 -0
- package/api-doc/metrics.fps.json +88 -0
- package/api-doc/metrics.mem.json +80 -0
- package/api-doc/monarch.monarch.json +1065 -0
- package/api-doc/monarch.transitions.easings.json +206 -0
- package/api-doc/monarch.transitions.gui.json +445 -0
- package/api-doc/nakama.engine.defold.json +165 -0
- package/api-doc/nakama.nakama.json +6574 -0
- package/api-doc/nakama.util.log.json +25 -0
- package/api-doc/narrator.narrator.json +150 -0
- package/api-doc/orthographic.camera.json +1019 -0
- package/api-doc/persist.persist.json +142 -0
- package/api-doc/platypus.platypus.json +631 -0
- package/api-doc/proto.proto.json +355 -0
- package/api-doc/rendy.rendy.json +408 -0
- package/api-doc/richtext.color.json +219 -0
- package/api-doc/richtext.richtext.json +382 -0
- package/api-doc/richtext.tags.json +67 -0
- package/api-doc/saver.saver.json +553 -0
- package/api-doc/saver.storage.json +174 -0
- package/api-doc/squid.squid.json +660 -0
- package/api-doc/starly.starly.json +488 -0
- package/api-doc/tweener.tweener.json +419 -0
- package/api-doc/yagames.yagames.json +1465 -0
- package/api-doc/zzfx.api.json +85 -0
- package/generated/boom.boom.d.ts +1585 -0
- package/generated/bridge.bridge.d.ts +533 -0
- package/generated/bzAnim.bzLibrary.d.ts +93 -0
- package/generated/defcon.console.d.ts +24 -0
- package/generated/defmath.defmath.d.ts +194 -0
- package/generated/defsave.defsave.d.ts +31 -0
- package/generated/deftest.deftest.d.ts +47 -0
- package/generated/dicebag.dicebag.d.ts +90 -0
- package/generated/event.event.d.ts +54 -0
- package/generated/gooey.gooey.d.ts +261 -0
- package/generated/immutable.immutable.d.ts +13 -0
- package/generated/in.accelerometer.d.ts +37 -0
- package/generated/in.button.d.ts +20 -0
- package/generated/in.cursor.d.ts +33 -0
- package/generated/in.gesture.d.ts +64 -0
- package/generated/in.keyboard.d.ts +18 -0
- package/generated/in.mapper.d.ts +23 -0
- package/generated/in.onscreen.d.ts +58 -0
- package/generated/in.state.d.ts +34 -0
- package/generated/in.textbox.d.ts +26 -0
- package/generated/in.triggers.d.ts +180 -0
- package/generated/lang.lang.d.ts +33 -0
- package/generated/log.log.d.ts +40 -0
- package/generated/metrics.fps.d.ts +16 -0
- package/generated/metrics.mem.d.ts +16 -0
- package/generated/monarch.monarch.d.ts +412 -0
- package/generated/monarch.transitions.easings.d.ts +65 -0
- package/generated/monarch.transitions.gui.d.ts +197 -0
- package/generated/nakama.engine.defold.d.ts +24 -0
- package/generated/nakama.nakama.d.ts +594 -0
- package/generated/nakama.util.log.d.ts +10 -0
- package/generated/narrator.narrator.d.ts +66 -0
- package/generated/orthographic.camera.d.ts +308 -0
- package/generated/persist.persist.d.ts +34 -0
- package/generated/platypus.platypus.d.ts +76 -0
- package/generated/proto.proto.d.ts +36 -0
- package/generated/rendy.rendy.d.ts +184 -0
- package/generated/richtext.color.d.ts +33 -0
- package/generated/richtext.richtext.d.ts +126 -0
- package/generated/richtext.tags.d.ts +12 -0
- package/generated/saver.saver.d.ts +44 -0
- package/generated/saver.storage.d.ts +16 -0
- package/generated/squid.squid.d.ts +106 -0
- package/generated/starly.starly.d.ts +148 -0
- package/generated/tweener.tweener.d.ts +151 -0
- package/generated/yagames.yagames.d.ts +279 -0
- package/generated/zzfx.api.d.ts +20 -0
- package/library-classification.json +726 -0
- package/library-targets.json +291 -0
- package/package.json +180 -0
- package/scripts/extract-api-doc.ts +418 -0
- package/scripts/sync-library-types.ts +542 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
/** @noSelfInFile **/
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @see {@link https://github.com/heroiclabs/nakama-defold|Github Source}
|
|
5
|
+
* @noResolution
|
|
6
|
+
*/
|
|
7
|
+
declare module 'nakama.nakama' {
|
|
8
|
+
export type Client = symbol;
|
|
9
|
+
|
|
10
|
+
export interface ClientConfig {
|
|
11
|
+
host: string;
|
|
12
|
+
port: number;
|
|
13
|
+
use_ssl?: boolean;
|
|
14
|
+
username: string;
|
|
15
|
+
password: string;
|
|
16
|
+
engine: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
type SessionToken = symbol;
|
|
20
|
+
interface Session {
|
|
21
|
+
token: SessionToken;
|
|
22
|
+
refresh_token: SessionToken;
|
|
23
|
+
created: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function authenticate_custom(
|
|
27
|
+
client: Client,
|
|
28
|
+
body: { id: string; vars?: unknown },
|
|
29
|
+
create: boolean,
|
|
30
|
+
username: string,
|
|
31
|
+
callback?: (result: unknown) => void
|
|
32
|
+
): Session;
|
|
33
|
+
|
|
34
|
+
export function create_client(config: ClientConfig): Client;
|
|
35
|
+
|
|
36
|
+
export function create_api_account_custom(id: string, vars?: unknown): { id: string; vars: unknown };
|
|
37
|
+
|
|
38
|
+
export function set_bearer_token(client: Client, token: SessionToken): void;
|
|
39
|
+
|
|
40
|
+
export function sync(fn: () => void): void;
|
|
41
|
+
|
|
42
|
+
// Generated
|
|
43
|
+
export function create_match_create_message(): void;
|
|
44
|
+
export function create_match_leave_message(match_id: string): void;
|
|
45
|
+
export function create_channel_message_send_message(channel_id: string, content: string): void;
|
|
46
|
+
export function create_channel_message_update_message(channel_id: string, message_id: string, content: string): void;
|
|
47
|
+
export function create_channel_message_remove_message(channel_id: string, message_id: string): void;
|
|
48
|
+
export function create_channel_join_message(target: any, type: any, persistence: any, hidden: any): void;
|
|
49
|
+
export function create_channel_leave_message(channel_id: string): void;
|
|
50
|
+
export function create_matchmaker_add_message(
|
|
51
|
+
query: string,
|
|
52
|
+
min_count: any,
|
|
53
|
+
max_count: any,
|
|
54
|
+
string_properties: string,
|
|
55
|
+
numeric_properties: any
|
|
56
|
+
): void;
|
|
57
|
+
export function create_matchmaker_remove_message(ticket: any): void;
|
|
58
|
+
export function create_match_data_message(match_id: string, op_code: number, data: string): void;
|
|
59
|
+
export function create_status_follow_message(user_ids: string): void;
|
|
60
|
+
export function create_status_unfollow_message(user_ids: string): void;
|
|
61
|
+
export function create_status_update_message(status: string): void;
|
|
62
|
+
export function create_group_user_list_group_user(state_int: any, user_api_user: any): void;
|
|
63
|
+
export function create_user_group_list_user_group(group_api_group: any, state_int: any): void;
|
|
64
|
+
export function create_write_leaderboard_record_request_leaderboard_record_write(
|
|
65
|
+
metadata_str: any,
|
|
66
|
+
operator_api_operator: any,
|
|
67
|
+
score_str: any,
|
|
68
|
+
subscore_str: any
|
|
69
|
+
): void;
|
|
70
|
+
export function create_write_tournament_record_request_tournament_record_write(
|
|
71
|
+
metadata_str: any,
|
|
72
|
+
operator_api_operator: any,
|
|
73
|
+
score_str: any,
|
|
74
|
+
subscore_str: any
|
|
75
|
+
): void;
|
|
76
|
+
export function create_api_account(
|
|
77
|
+
custom_id_str: any,
|
|
78
|
+
devices_arr: any,
|
|
79
|
+
disable_time_str: any,
|
|
80
|
+
email_str: any,
|
|
81
|
+
user_api_user: any,
|
|
82
|
+
verify_time_str: any,
|
|
83
|
+
wallet_str: any
|
|
84
|
+
): void;
|
|
85
|
+
export function create_api_account_apple(token_str: any, vars_obj: any): void;
|
|
86
|
+
//export function create_api_account_custom(id_str: any, vars_obj: any): void;
|
|
87
|
+
export function create_api_account_device(id_str: any, vars_obj: any): void;
|
|
88
|
+
export function create_api_account_email(email_str: any, password_str: any, vars_obj: any): void;
|
|
89
|
+
export function create_api_account_facebook(token_str: any, vars_obj: any): void;
|
|
90
|
+
export function create_api_account_facebook_instant_game(signed_player_info_str: any, vars_obj: any): void;
|
|
91
|
+
export function create_api_account_game_center(
|
|
92
|
+
bundle_id_str: any,
|
|
93
|
+
player_id_str: any,
|
|
94
|
+
public_key_url_str: any,
|
|
95
|
+
salt_str: any,
|
|
96
|
+
signature_str: any,
|
|
97
|
+
timestamp_seconds_str: any,
|
|
98
|
+
vars_obj: any
|
|
99
|
+
): void;
|
|
100
|
+
export function create_api_account_google(token_str: any, vars_obj: any): void;
|
|
101
|
+
export function create_api_account_steam(token_str: any, vars_obj: any): void;
|
|
102
|
+
export function create_api_channel_message(
|
|
103
|
+
channel_id_str: any,
|
|
104
|
+
code_int: any,
|
|
105
|
+
content_str: any,
|
|
106
|
+
create_time_str: any,
|
|
107
|
+
group_id_str: any,
|
|
108
|
+
message_id_str: any,
|
|
109
|
+
persistent_bool: any,
|
|
110
|
+
room_name_str: any,
|
|
111
|
+
sender_id_str: any,
|
|
112
|
+
update_time_str: any,
|
|
113
|
+
user_id_one_str: any,
|
|
114
|
+
user_id_two_str: any,
|
|
115
|
+
username_str: any
|
|
116
|
+
): void;
|
|
117
|
+
export function create_api_channel_message_list(
|
|
118
|
+
cacheable_cursor_str: any,
|
|
119
|
+
messages_arr: any,
|
|
120
|
+
next_cursor_str: any,
|
|
121
|
+
prev_cursor_str: any
|
|
122
|
+
): void;
|
|
123
|
+
export function create_api_create_group_request(
|
|
124
|
+
avatar_url_str: any,
|
|
125
|
+
description_str: any,
|
|
126
|
+
lang_tag_str: any,
|
|
127
|
+
max_count_int: any,
|
|
128
|
+
name_str: any,
|
|
129
|
+
open_bool: any
|
|
130
|
+
): void;
|
|
131
|
+
export function create_api_delete_storage_object_id(collection_str: any, key_str: any, version_str: any): void;
|
|
132
|
+
export function create_api_delete_storage_objects_request(object_ids_arr: any): void;
|
|
133
|
+
export function create_api_event(external_bool: any, name_str: any, properties_obj: any, timestamp_str: any): void;
|
|
134
|
+
export function create_api_friend(state_int: any, update_time_str: any, user_api_user: any): void;
|
|
135
|
+
export function create_api_friend_list(cursor_str: any, friends_arr: any): void;
|
|
136
|
+
export function create_api_group(
|
|
137
|
+
avatar_url_str: any,
|
|
138
|
+
create_time_str: any,
|
|
139
|
+
creator_id_str: any,
|
|
140
|
+
description_str: any,
|
|
141
|
+
edge_count_int: any,
|
|
142
|
+
id_str: any,
|
|
143
|
+
lang_tag_str: any,
|
|
144
|
+
max_count_int: any,
|
|
145
|
+
metadata_str: any,
|
|
146
|
+
name_str: any,
|
|
147
|
+
open_bool: any,
|
|
148
|
+
update_time_str: any
|
|
149
|
+
): void;
|
|
150
|
+
export function create_api_group_list(cursor_str: any, groups_arr: any): void;
|
|
151
|
+
export function create_api_group_user_list(cursor_str: any, group_users_arr: any): void;
|
|
152
|
+
export function create_api_leaderboard_record(
|
|
153
|
+
create_time_str: any,
|
|
154
|
+
expiry_time_str: any,
|
|
155
|
+
leaderboard_id_str: any,
|
|
156
|
+
max_num_score_int: any,
|
|
157
|
+
metadata_str: any,
|
|
158
|
+
num_score_int: any,
|
|
159
|
+
owner_id_str: any,
|
|
160
|
+
rank_str: any,
|
|
161
|
+
score_str: any,
|
|
162
|
+
subscore_str: any,
|
|
163
|
+
update_time_str: any,
|
|
164
|
+
username_str: any
|
|
165
|
+
): void;
|
|
166
|
+
export function create_api_leaderboard_record_list(
|
|
167
|
+
next_cursor_str: any,
|
|
168
|
+
owner_records_arr: any,
|
|
169
|
+
prev_cursor_str: any,
|
|
170
|
+
records_arr: any
|
|
171
|
+
): void;
|
|
172
|
+
export function create_api_link_steam_request(account_api_account_steam: any, sync_bool: any): void;
|
|
173
|
+
export function create_api_match(
|
|
174
|
+
authoritative_bool: any,
|
|
175
|
+
handler_name_str: any,
|
|
176
|
+
label_str: any,
|
|
177
|
+
match_id_str: any,
|
|
178
|
+
size_int: any,
|
|
179
|
+
tick_rate_int: any
|
|
180
|
+
): void;
|
|
181
|
+
export function create_api_match_list(matches_arr: any): void;
|
|
182
|
+
export function create_api_notification(
|
|
183
|
+
code_int: any,
|
|
184
|
+
content_str: any,
|
|
185
|
+
create_time_str: any,
|
|
186
|
+
id_str: any,
|
|
187
|
+
persistent_bool: any,
|
|
188
|
+
sender_id_str: any,
|
|
189
|
+
subject_str: any
|
|
190
|
+
): void;
|
|
191
|
+
export function create_api_notification_list(cacheable_cursor_str: any, notifications_arr: any): void;
|
|
192
|
+
export function create_api_read_storage_object_id(collection_str: any, key_str: any, user_id_str: any): void;
|
|
193
|
+
export function create_api_read_storage_objects_request(object_ids_arr: any): void;
|
|
194
|
+
export function create_api_rpc(http_key_str: any, id_str: any, payload_str: any): void;
|
|
195
|
+
export function create_api_session(created_bool: any, refresh_token_str: any, token_str: any): void;
|
|
196
|
+
export function create_api_session_logout_request(refresh_token_str: any, token_str: any): void;
|
|
197
|
+
export function create_api_session_refresh_request(token_str: any, vars_obj: any): void;
|
|
198
|
+
export function create_api_storage_object(
|
|
199
|
+
collection_str: any,
|
|
200
|
+
create_time_str: any,
|
|
201
|
+
key_str: any,
|
|
202
|
+
permission_read_int: any,
|
|
203
|
+
permission_write_int: any,
|
|
204
|
+
update_time_str: any,
|
|
205
|
+
user_id_str: any,
|
|
206
|
+
value_str: any,
|
|
207
|
+
version_str: any
|
|
208
|
+
): void;
|
|
209
|
+
export function create_api_storage_object_ack(
|
|
210
|
+
collection_str: any,
|
|
211
|
+
key_str: any,
|
|
212
|
+
user_id_str: any,
|
|
213
|
+
version_str: any
|
|
214
|
+
): void;
|
|
215
|
+
export function create_api_storage_object_acks(acks_arr: any): void;
|
|
216
|
+
export function create_api_storage_object_list(cursor_str: any, objects_arr: any): void;
|
|
217
|
+
export function create_api_storage_objects(objects_arr: any): void;
|
|
218
|
+
export function create_api_tournament(
|
|
219
|
+
can_enter_bool: any,
|
|
220
|
+
category_int: any,
|
|
221
|
+
create_time_str: any,
|
|
222
|
+
description_str: any,
|
|
223
|
+
duration_int: any,
|
|
224
|
+
end_active_int: any,
|
|
225
|
+
end_time_str: any,
|
|
226
|
+
id_str: any,
|
|
227
|
+
max_num_score_int: any,
|
|
228
|
+
max_size_int: any,
|
|
229
|
+
metadata_str: any,
|
|
230
|
+
next_reset_int: any,
|
|
231
|
+
operator_api_operator: any,
|
|
232
|
+
prev_reset_int: any,
|
|
233
|
+
size_int: any,
|
|
234
|
+
sort_order_int: any,
|
|
235
|
+
start_active_int: any,
|
|
236
|
+
start_time_str: any,
|
|
237
|
+
title_str: any
|
|
238
|
+
): void;
|
|
239
|
+
export function create_api_tournament_list(cursor_str: any, tournaments_arr: any): void;
|
|
240
|
+
export function create_api_tournament_record_list(
|
|
241
|
+
next_cursor_str: any,
|
|
242
|
+
owner_records_arr: any,
|
|
243
|
+
prev_cursor_str: any,
|
|
244
|
+
records_arr: any
|
|
245
|
+
): void;
|
|
246
|
+
export function create_api_update_account_request(
|
|
247
|
+
avatar_url_str: any,
|
|
248
|
+
display_name_str: any,
|
|
249
|
+
lang_tag_str: any,
|
|
250
|
+
location_str: any,
|
|
251
|
+
timezone_str: any,
|
|
252
|
+
username_str: any
|
|
253
|
+
): void;
|
|
254
|
+
export function create_api_update_group_request(
|
|
255
|
+
avatar_url_str: any,
|
|
256
|
+
description_str: any,
|
|
257
|
+
group_id_str: any,
|
|
258
|
+
lang_tag_str: any,
|
|
259
|
+
name_str: any,
|
|
260
|
+
open_bool: any
|
|
261
|
+
): void;
|
|
262
|
+
export function create_api_user(
|
|
263
|
+
apple_id_str: any,
|
|
264
|
+
avatar_url_str: any,
|
|
265
|
+
create_time_str: any,
|
|
266
|
+
display_name_str: any,
|
|
267
|
+
edge_count_int: any,
|
|
268
|
+
facebook_id_str: any,
|
|
269
|
+
facebook_instant_game_id_str: any,
|
|
270
|
+
gamecenter_id_str: any,
|
|
271
|
+
google_id_str: any,
|
|
272
|
+
id_str: any,
|
|
273
|
+
lang_tag_str: any,
|
|
274
|
+
location_str: any,
|
|
275
|
+
metadata_str: any,
|
|
276
|
+
online_bool: any,
|
|
277
|
+
steam_id_str: any,
|
|
278
|
+
timezone_str: any,
|
|
279
|
+
update_time_str: any,
|
|
280
|
+
username_str: any
|
|
281
|
+
): void;
|
|
282
|
+
export function create_api_user_group_list(cursor_str: any, user_groups_arr: any): void;
|
|
283
|
+
export function create_api_users(users_arr: any): void;
|
|
284
|
+
export function create_api_validate_purchase_apple_request(receipt_str: any): void;
|
|
285
|
+
export function create_api_validate_purchase_google_request(purchase_str: any): void;
|
|
286
|
+
export function create_api_validate_purchase_huawei_request(purchase_str: any, signature_str: any): void;
|
|
287
|
+
export function create_api_validate_purchase_response(validated_purchases_arr: any): void;
|
|
288
|
+
export function create_api_validated_purchase(
|
|
289
|
+
create_time_str: any,
|
|
290
|
+
environment_validated_purchase_environment: any,
|
|
291
|
+
product_id_str: any,
|
|
292
|
+
provider_response_str: any,
|
|
293
|
+
purchase_time_str: any,
|
|
294
|
+
store_validated_purchase_store: any,
|
|
295
|
+
transaction_id_str: any,
|
|
296
|
+
update_time_str: any
|
|
297
|
+
): void;
|
|
298
|
+
export function create_api_write_storage_object(
|
|
299
|
+
collection_str: any,
|
|
300
|
+
key_str: any,
|
|
301
|
+
permission_read_int: any,
|
|
302
|
+
permission_write_int: any,
|
|
303
|
+
value_str: any,
|
|
304
|
+
version_str: any
|
|
305
|
+
): void;
|
|
306
|
+
export function create_api_write_storage_objects_request(objects_arr: any): void;
|
|
307
|
+
export function create_protobuf_any(type_url_str: any, value_str: any): void;
|
|
308
|
+
export function create_rpc_status(code_int: any, details_arr: any, message_str: any): void;
|
|
309
|
+
//export function create_client(config: any): void;
|
|
310
|
+
export function on_notification(socket: any, fn: any): void;
|
|
311
|
+
export function on_matchdata(socket: any, fn: any): void;
|
|
312
|
+
export function on_matchpresence(socket: any, fn: any): void;
|
|
313
|
+
export function on_matchmakermatched(socket: any, fn: any): void;
|
|
314
|
+
export function on_statuspresence(socket: any, fn: any): void;
|
|
315
|
+
export function on_streampresence(socket: any, fn: any): void;
|
|
316
|
+
export function on_streamdata(socket: any, fn: any): void;
|
|
317
|
+
export function on_channelmessage(socket: any, fn: any): void;
|
|
318
|
+
export function on_channelpresence(socket: any, fn: any): void;
|
|
319
|
+
export function on_disconnect(socket: any, fn: any): void;
|
|
320
|
+
export function create_socket(client: any): void;
|
|
321
|
+
export function socket_connect(socket: any, callback: any): void;
|
|
322
|
+
export function socket_send(socket: any, message: string, callback: any): void;
|
|
323
|
+
// export function sync(fn: any): void;
|
|
324
|
+
// export function set_bearer_token(client: any, bearer_token: any): void;
|
|
325
|
+
export function healthcheck(client: any, callback: any): void;
|
|
326
|
+
export function get_account(client: any, callback: any): void;
|
|
327
|
+
export function update_account(client: any, body_api_update_account_request: any, callback: any): void;
|
|
328
|
+
export function authenticate_apple(
|
|
329
|
+
client: any,
|
|
330
|
+
body_api_account_apple: any,
|
|
331
|
+
create_bool: any,
|
|
332
|
+
username_str: any,
|
|
333
|
+
callback: any
|
|
334
|
+
): void;
|
|
335
|
+
//export function authenticate_custom(
|
|
336
|
+
// client: any,
|
|
337
|
+
// body_api_account_custom: any,
|
|
338
|
+
// create_bool: any,
|
|
339
|
+
// username_str: any,
|
|
340
|
+
// callback: any
|
|
341
|
+
//): void;
|
|
342
|
+
export function authenticate_device(
|
|
343
|
+
client: any,
|
|
344
|
+
body_api_account_device: any,
|
|
345
|
+
create_bool: any,
|
|
346
|
+
username_str: any,
|
|
347
|
+
callback: any
|
|
348
|
+
): void;
|
|
349
|
+
export function authenticate_email(
|
|
350
|
+
client: any,
|
|
351
|
+
body_api_account_email: any,
|
|
352
|
+
create_bool: any,
|
|
353
|
+
username_str: any,
|
|
354
|
+
callback: any
|
|
355
|
+
): void;
|
|
356
|
+
export function authenticate_facebook(
|
|
357
|
+
client: any,
|
|
358
|
+
body_api_account_facebook: any,
|
|
359
|
+
create_bool: any,
|
|
360
|
+
username_str: any,
|
|
361
|
+
sync_bool: any,
|
|
362
|
+
callback: any
|
|
363
|
+
): void;
|
|
364
|
+
export function authenticate_facebook_instant_game(
|
|
365
|
+
client: any,
|
|
366
|
+
body_api_account_facebook_instant_game: any,
|
|
367
|
+
create_bool: any,
|
|
368
|
+
username_str: any,
|
|
369
|
+
callback: any
|
|
370
|
+
): void;
|
|
371
|
+
export function authenticate_game_center(
|
|
372
|
+
client: any,
|
|
373
|
+
body_api_account_game_center: any,
|
|
374
|
+
create_bool: any,
|
|
375
|
+
username_str: any,
|
|
376
|
+
callback: any
|
|
377
|
+
): void;
|
|
378
|
+
export function authenticate_google(
|
|
379
|
+
client: any,
|
|
380
|
+
body_api_account_google: any,
|
|
381
|
+
create_bool: any,
|
|
382
|
+
username_str: any,
|
|
383
|
+
callback: any
|
|
384
|
+
): void;
|
|
385
|
+
export function authenticate_steam(
|
|
386
|
+
client: any,
|
|
387
|
+
body_api_account_steam: any,
|
|
388
|
+
create_bool: any,
|
|
389
|
+
username_str: any,
|
|
390
|
+
sync_bool: any,
|
|
391
|
+
callback: any
|
|
392
|
+
): void;
|
|
393
|
+
export function link_apple(client: any, body_api_account_apple: any, callback: any): void;
|
|
394
|
+
export function link_custom(client: any, body_api_account_custom: any, callback: any): void;
|
|
395
|
+
export function link_device(client: any, body_api_account_device: any, callback: any): void;
|
|
396
|
+
export function link_email(client: any, body_api_account_email: any, callback: any): void;
|
|
397
|
+
export function link_facebook(client: any, body_api_account_facebook: any, sync_bool: any, callback: any): void;
|
|
398
|
+
export function link_facebook_instant_game(
|
|
399
|
+
client: any,
|
|
400
|
+
body_api_account_facebook_instant_game: any,
|
|
401
|
+
callback: any
|
|
402
|
+
): void;
|
|
403
|
+
export function link_game_center(client: any, body_api_account_game_center: any, callback: any): void;
|
|
404
|
+
export function link_google(client: any, body_api_account_google: any, callback: any): void;
|
|
405
|
+
export function link_steam(client: any, body_api_link_steam_request: any, callback: any): void;
|
|
406
|
+
export function session_refresh(client: any, body_api_session_refresh_request: any, callback: any): void;
|
|
407
|
+
export function unlink_apple(client: any, body_api_account_apple: any, callback: any): void;
|
|
408
|
+
export function unlink_custom(client: any, body_api_account_custom: any, callback: any): void;
|
|
409
|
+
export function unlink_device(client: any, body_api_account_device: any, callback: any): void;
|
|
410
|
+
export function unlink_email(client: any, body_api_account_email: any, callback: any): void;
|
|
411
|
+
export function unlink_facebook(client: any, body_api_account_facebook: any, callback: any): void;
|
|
412
|
+
export function unlink_facebook_instant_game(
|
|
413
|
+
client: any,
|
|
414
|
+
body_api_account_facebook_instant_game: any,
|
|
415
|
+
callback: any
|
|
416
|
+
): void;
|
|
417
|
+
export function unlink_game_center(client: any, body_api_account_game_center: any, callback: any): void;
|
|
418
|
+
export function unlink_google(client: any, body_api_account_google: any, callback: any): void;
|
|
419
|
+
export function unlink_steam(client: any, body_api_account_steam: any, callback: any): void;
|
|
420
|
+
export function list_channel_messages(
|
|
421
|
+
client: any,
|
|
422
|
+
channel_id_str: any,
|
|
423
|
+
limit_int: number,
|
|
424
|
+
forward_bool: any,
|
|
425
|
+
cursor_str: any,
|
|
426
|
+
callback: any
|
|
427
|
+
): void;
|
|
428
|
+
export function event(client: any, body_api_event: any, callback: any): void;
|
|
429
|
+
export function delete_friends(client: any, ids_arr: any, usernames_arr: any, callback: any): void;
|
|
430
|
+
export function list_friends(client: any, limit_int: number, state_int: any, cursor_str: any, callback: any): void;
|
|
431
|
+
export function add_friends(client: any, ids_arr: any, usernames_arr: any, callback: any): void;
|
|
432
|
+
export function block_friends(client: any, ids_arr: any, usernames_arr: any, callback: any): void;
|
|
433
|
+
export function import_facebook_friends(
|
|
434
|
+
client: any,
|
|
435
|
+
body_api_account_facebook: any,
|
|
436
|
+
reset_bool: any,
|
|
437
|
+
callback: any
|
|
438
|
+
): void;
|
|
439
|
+
export function import_steam_friends(client: any, body_api_account_steam: any, reset_bool: any, callback: any): void;
|
|
440
|
+
export function list_groups(
|
|
441
|
+
client: any,
|
|
442
|
+
name_str: any,
|
|
443
|
+
cursor_str: any,
|
|
444
|
+
limit_int: number,
|
|
445
|
+
lang_tag_str: any,
|
|
446
|
+
members_int: any,
|
|
447
|
+
open_bool: any,
|
|
448
|
+
callback: any
|
|
449
|
+
): void;
|
|
450
|
+
export function create_group(client: any, body_api_create_group_request: any, callback: any): void;
|
|
451
|
+
export function delete_group(client: any, group_id_str: any, callback: any): void;
|
|
452
|
+
export function update_group(client: any, group_id_str: any, body_api_update_group_request: any, callback: any): void;
|
|
453
|
+
export function add_group_users(client: any, group_id_str: any, user_ids_arr: any, callback: any): void;
|
|
454
|
+
export function ban_group_users(client: any, group_id_str: any, user_ids_arr: any, callback: any): void;
|
|
455
|
+
export function demote_group_users(client: any, group_id_str: any, user_ids_arr: any, callback: any): void;
|
|
456
|
+
export function join_group(client: any, group_id_str: any, callback: any): void;
|
|
457
|
+
export function kick_group_users(client: any, group_id_str: any, user_ids_arr: any, callback: any): void;
|
|
458
|
+
export function leave_group(client: any, group_id_str: any, callback: any): void;
|
|
459
|
+
export function promote_group_users(client: any, group_id_str: any, user_ids_arr: any, callback: any): void;
|
|
460
|
+
export function list_group_users(
|
|
461
|
+
client: any,
|
|
462
|
+
group_id_str: any,
|
|
463
|
+
limit_int: number,
|
|
464
|
+
state_int: any,
|
|
465
|
+
cursor_str: any,
|
|
466
|
+
callback: any
|
|
467
|
+
): void;
|
|
468
|
+
export function validate_purchase_apple(
|
|
469
|
+
client: any,
|
|
470
|
+
body_api_validate_purchase_apple_request: any,
|
|
471
|
+
callback: any
|
|
472
|
+
): void;
|
|
473
|
+
export function validate_purchase_google(
|
|
474
|
+
client: any,
|
|
475
|
+
body_api_validate_purchase_google_request: any,
|
|
476
|
+
callback: any
|
|
477
|
+
): void;
|
|
478
|
+
export function validate_purchase_huawei(
|
|
479
|
+
client: any,
|
|
480
|
+
body_api_validate_purchase_huawei_request: any,
|
|
481
|
+
callback: any
|
|
482
|
+
): void;
|
|
483
|
+
export function delete_leaderboard_record(client: any, leaderboard_id_str: any, callback: any): void;
|
|
484
|
+
export function list_leaderboard_records(
|
|
485
|
+
client: any,
|
|
486
|
+
leaderboard_id_str: any,
|
|
487
|
+
owner_ids_arr: any,
|
|
488
|
+
limit_int: number,
|
|
489
|
+
cursor_str: any,
|
|
490
|
+
expiry_str: any,
|
|
491
|
+
callback: any
|
|
492
|
+
): void;
|
|
493
|
+
export function write_leaderboard_record(
|
|
494
|
+
client: any,
|
|
495
|
+
leaderboard_id_str: any,
|
|
496
|
+
body_write_leaderboard_record_request_leaderboard_record_write: any,
|
|
497
|
+
callback: any
|
|
498
|
+
): void;
|
|
499
|
+
export function list_leaderboard_records_around_owner(
|
|
500
|
+
client: any,
|
|
501
|
+
leaderboard_id_str: any,
|
|
502
|
+
owner_id_str: any,
|
|
503
|
+
limit_int: number,
|
|
504
|
+
expiry_str: any,
|
|
505
|
+
callback: any
|
|
506
|
+
): void;
|
|
507
|
+
export function list_matches(
|
|
508
|
+
client: any,
|
|
509
|
+
limit_int: number,
|
|
510
|
+
authoritative_bool: any,
|
|
511
|
+
label_str: any,
|
|
512
|
+
min_size_int: any,
|
|
513
|
+
max_size_int: any,
|
|
514
|
+
query_str: any,
|
|
515
|
+
callback: any
|
|
516
|
+
): void;
|
|
517
|
+
export function delete_notifications(client: any, ids_arr: any, callback: any): void;
|
|
518
|
+
export function list_notifications(client: any, limit_int: number, cacheable_cursor_str: any, callback: any): void;
|
|
519
|
+
export function rpc_func2(client: any, id_str: any, payload_str: any, http_key_str: any, callback: any): void;
|
|
520
|
+
export function rpc_func(client: any, id_str: any, body_: any, http_key_str: any, callback: any): void;
|
|
521
|
+
export function session_logout(client: any, body_api_session_logout_request: any, callback: any): void;
|
|
522
|
+
export function read_storage_objects(client: any, body_api_read_storage_objects_request: any, callback: any): void;
|
|
523
|
+
export function write_storage_objects(client: any, body_api_write_storage_objects_request: any, callback: any): void;
|
|
524
|
+
export function delete_storage_objects(
|
|
525
|
+
client: any,
|
|
526
|
+
body_api_delete_storage_objects_request: any,
|
|
527
|
+
callback: any
|
|
528
|
+
): void;
|
|
529
|
+
export function list_storage_objects(
|
|
530
|
+
client: any,
|
|
531
|
+
collection_str: any,
|
|
532
|
+
user_id_str: any,
|
|
533
|
+
limit_int: number,
|
|
534
|
+
cursor_str: any,
|
|
535
|
+
callback: any
|
|
536
|
+
): void;
|
|
537
|
+
export function list_storage_objects2(
|
|
538
|
+
client: any,
|
|
539
|
+
collection_str: any,
|
|
540
|
+
user_id_str: any,
|
|
541
|
+
limit_int: number,
|
|
542
|
+
cursor_str: any,
|
|
543
|
+
callback: any
|
|
544
|
+
): void;
|
|
545
|
+
export function list_tournaments(
|
|
546
|
+
client: any,
|
|
547
|
+
category_start_int: any,
|
|
548
|
+
category_end_int: any,
|
|
549
|
+
start_time_int: any,
|
|
550
|
+
end_time_int: any,
|
|
551
|
+
limit_int: number,
|
|
552
|
+
cursor_str: any,
|
|
553
|
+
callback: any
|
|
554
|
+
): void;
|
|
555
|
+
export function list_tournament_records(
|
|
556
|
+
client: any,
|
|
557
|
+
tournament_id_str: any,
|
|
558
|
+
owner_ids_arr: any,
|
|
559
|
+
limit_int: number,
|
|
560
|
+
cursor_str: any,
|
|
561
|
+
expiry_str: any,
|
|
562
|
+
callback: any
|
|
563
|
+
): void;
|
|
564
|
+
export function write_tournament_record2(
|
|
565
|
+
client: any,
|
|
566
|
+
tournament_id_str: any,
|
|
567
|
+
body_write_tournament_record_request_tournament_record_write: any,
|
|
568
|
+
callback: any
|
|
569
|
+
): void;
|
|
570
|
+
export function write_tournament_record(
|
|
571
|
+
client: any,
|
|
572
|
+
tournament_id_str: any,
|
|
573
|
+
body_write_tournament_record_request_tournament_record_write: any,
|
|
574
|
+
callback: any
|
|
575
|
+
): void;
|
|
576
|
+
export function join_tournament(client: any, tournament_id_str: any, callback: any): void;
|
|
577
|
+
export function list_tournament_records_around_owner(
|
|
578
|
+
client: any,
|
|
579
|
+
tournament_id_str: any,
|
|
580
|
+
owner_id_str: any,
|
|
581
|
+
limit_int: number,
|
|
582
|
+
expiry_str: any,
|
|
583
|
+
callback: any
|
|
584
|
+
): void;
|
|
585
|
+
export function get_users(client: any, ids_arr: any, usernames_arr: any, facebook_ids_arr: any, callback: any): void;
|
|
586
|
+
export function list_user_groups(
|
|
587
|
+
client: any,
|
|
588
|
+
user_id_str: any,
|
|
589
|
+
limit_int: number,
|
|
590
|
+
state_int: any,
|
|
591
|
+
cursor_str: any,
|
|
592
|
+
callback: any
|
|
593
|
+
): void;
|
|
594
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a definition stub with incomplete or untested signatures.
|
|
3
|
+
* Contributions to improve the accuracy of these types are welcome.
|
|
4
|
+
* @see {@link https://github.com/astrochili/narrator|Github Source}
|
|
5
|
+
* @noResolution
|
|
6
|
+
*/
|
|
7
|
+
declare module 'narrator.narrator' {
|
|
8
|
+
type Paragraph = {
|
|
9
|
+
text: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
type Choice = {
|
|
14
|
+
text: string;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type Book = {};
|
|
19
|
+
|
|
20
|
+
type SaveState = {};
|
|
21
|
+
|
|
22
|
+
class Story {
|
|
23
|
+
begin(): void;
|
|
24
|
+
can_continue(): boolean;
|
|
25
|
+
continue(steps?: number): Paragraph[] | Paragraph;
|
|
26
|
+
can_choose(): boolean;
|
|
27
|
+
get_choices(): Choice[];
|
|
28
|
+
choose(index: number): void;
|
|
29
|
+
jump_to(path: string): void;
|
|
30
|
+
get_visits(path: string): number;
|
|
31
|
+
get_tags(path: string): string[];
|
|
32
|
+
save_state(): SaveState;
|
|
33
|
+
load_state(state: SaveState): void;
|
|
34
|
+
observe(
|
|
35
|
+
variable: string,
|
|
36
|
+
observer: (this: void, value: unknown) => void,
|
|
37
|
+
): void;
|
|
38
|
+
bind(
|
|
39
|
+
func_name: string,
|
|
40
|
+
handler: (this: void, ...args: any[]) => unknown,
|
|
41
|
+
): void;
|
|
42
|
+
global_tags: string[];
|
|
43
|
+
constants: Readonly<{ [key: string]: unknown }>;
|
|
44
|
+
variables: { [key: string]: unknown };
|
|
45
|
+
migrate: (
|
|
46
|
+
this: void,
|
|
47
|
+
state: SaveState,
|
|
48
|
+
old_version: number,
|
|
49
|
+
new_version: number,
|
|
50
|
+
) => SaveState;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function parse_file(
|
|
54
|
+
this: void,
|
|
55
|
+
path: string,
|
|
56
|
+
params?: { save?: boolean },
|
|
57
|
+
): Book;
|
|
58
|
+
|
|
59
|
+
export function parse_content(
|
|
60
|
+
this: void,
|
|
61
|
+
content: string,
|
|
62
|
+
inclusions?: string[],
|
|
63
|
+
): Book;
|
|
64
|
+
|
|
65
|
+
export function init_story(this: void, book: Book): Story;
|
|
66
|
+
}
|