@defold-typescript/library-types 0.23.0 → 0.25.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/NOTICE +2 -3
- package/api-doc/boom.json +3872 -0
- package/api-doc/bridge.json +10 -5
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/checkpoint.json +127 -0
- package/api-doc/decore.json +1 -1
- package/api-doc/defcon.json +150 -0
- package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
- package/api-doc/defsave.json +518 -0
- package/api-doc/deftest.json +745 -0
- package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
- package/api-doc/druid.json +90 -92
- package/api-doc/event.json +16 -16
- package/api-doc/gooey.json +2050 -0
- package/api-doc/in.accelerometer.json +75 -1
- package/api-doc/in.button.json +17 -10
- package/api-doc/in.cursor.json +26 -0
- package/api-doc/in.gesture.json +401 -6
- package/api-doc/in.keyboard.json +2 -0
- package/api-doc/in.mapper.json +12 -8
- package/api-doc/in.onscreen.json +61 -5
- package/api-doc/in.state.json +61 -13
- package/api-doc/in.textbox.json +23 -12
- package/api-doc/in.triggers.json +336 -0
- package/api-doc/lang.json +5 -5
- package/api-doc/log.json +1 -1
- package/api-doc/metrics.fps.json +61 -2
- package/api-doc/metrics.mem.json +61 -2
- package/api-doc/monarch.monarch.json +249 -7
- package/api-doc/monarch.transitions.easings.json +19 -26
- package/api-doc/monarch.transitions.gui.json +782 -79
- package/api-doc/nakama.engine.defold.json +31 -18
- package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
- package/api-doc/nakama.session.json +315 -0
- package/api-doc/nakama.socket.json +3356 -0
- package/api-doc/nakama.util.log.json +32 -4
- package/api-doc/narrator.json +1 -1
- package/api-doc/openapi/nakama.nakama.json +7680 -0
- package/api-doc/orthographic.camera.json +96 -98
- package/api-doc/orthographic.json +602 -0
- package/api-doc/panthera.json +1183 -0
- package/api-doc/{persist.persist.json → persist.json} +26 -1
- package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
- package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
- package/api-doc/richtext.color.json +77 -0
- package/api-doc/richtext.richtext.json +375 -5
- package/api-doc/saver.saver.json +2 -1
- package/api-doc/saver.storage.json +2 -1
- package/api-doc/shutter.json +551 -0
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +433 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +5 -5
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/checkpoint.d.ts +62 -0
- package/generated/decore.d.ts +1 -1
- package/generated/defcon.d.ts +43 -0
- package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
- package/generated/defsave.d.ts +144 -0
- package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
- package/generated/druid.d.ts +81 -79
- package/generated/event.d.ts +15 -15
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +5 -5
- package/generated/log.d.ts +1 -1
- package/generated/metrics.fps.d.ts +19 -1
- package/generated/metrics.mem.d.ts +19 -1
- package/generated/monarch.monarch.d.ts +44 -1
- package/generated/monarch.transitions.easings.d.ts +0 -1
- package/generated/monarch.transitions.gui.d.ts +96 -12
- package/generated/nakama.d.ts +1158 -0
- package/generated/nakama.engine.defold.d.ts +3 -1
- package/generated/nakama.session.d.ts +95 -0
- package/generated/nakama.socket.d.ts +706 -0
- package/generated/nakama.util.log.d.ts +6 -0
- package/generated/narrator.d.ts +1 -1
- package/generated/openapi/nakama.nakama.d.ts +884 -0
- package/generated/orthographic.camera.d.ts +24 -38
- package/generated/orthographic.d.ts +155 -0
- package/generated/panthera.d.ts +170 -0
- package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
- package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
- package/generated/proto.d.ts +4 -4
- package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
- package/generated/richtext.color.d.ts +15 -0
- package/generated/saver.saver.d.ts +2 -0
- package/generated/saver.storage.d.ts +2 -0
- package/generated/shutter.d.ts +183 -0
- package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
- package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
- package/library-classification.json +0 -156
- package/library-targets.json +1 -218
- package/luals-targets.json +56 -3
- package/openapi-targets.json +17 -0
- package/package.json +7 -57
- package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
- package/scripts/apply-luals-overrides.ts +39 -7
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +94 -17
- package/scripts/extract-api-doc.ts +214 -42
- package/scripts/fidelity-floor.ts +178 -0
- package/scripts/import-upstream-docs.ts +125 -0
- package/scripts/lower-api-doc.ts +21 -3
- package/scripts/luals-fidelity.ts +16 -11
- package/scripts/map-luals-types.ts +52 -21
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +50 -4
- package/scripts/parse-markdown-api.ts +247 -0
- package/scripts/parse-openapi-api.ts +313 -0
- package/scripts/sync-authored-types.ts +249 -0
- package/scripts/sync-library-types.ts +99 -3
- package/scripts/sync-luals-types.ts +14 -1
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +16 -17
- package/api-doc/boom.boom.json +0 -26
- package/api-doc/bzAnim.bzLibrary.json +0 -156
- package/api-doc/defcon.console.json +0 -109
- package/api-doc/defsave.defsave.json +0 -175
- package/api-doc/deftest.deftest.json +0 -71
- package/api-doc/gooey.gooey.json +0 -963
- package/api-doc/starly.starly.json +0 -488
- package/generated/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- package/generated/nakama.nakama.d.ts +0 -594
- package/generated/starly.starly.d.ts +0 -148
- /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
/** @noResolution */
|
|
3
|
+
declare module 'nakama.nakama' {
|
|
4
|
+
/**
|
|
5
|
+
* (synthesized)
|
|
6
|
+
* Defold `nakama` API namespace.
|
|
7
|
+
*/
|
|
8
|
+
export namespace nakama {
|
|
9
|
+
/**
|
|
10
|
+
* Add friends by ID or username to a user's account.
|
|
11
|
+
*
|
|
12
|
+
* @param ids - The account id of a user.
|
|
13
|
+
* @param usernames - The account username of a user.
|
|
14
|
+
*/
|
|
15
|
+
function add_friends(ids?: Record<string | number, unknown>, usernames?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Add users to a group.
|
|
18
|
+
*
|
|
19
|
+
* @param groupId - The group to add users to.
|
|
20
|
+
* @param userIds - The users to add.
|
|
21
|
+
*/
|
|
22
|
+
function add_group_users(groupId: string, userIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Authenticate a user with an Apple ID against the server.
|
|
25
|
+
*
|
|
26
|
+
* @param account - The Apple account details.
|
|
27
|
+
* @param create - Register the account if the user does not already exist.
|
|
28
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
29
|
+
*/
|
|
30
|
+
function authenticate_apple(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* Authenticate a user with a custom id against the server.
|
|
33
|
+
*
|
|
34
|
+
* @param account - The custom account details.
|
|
35
|
+
* @param create - Register the account if the user does not already exist.
|
|
36
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
37
|
+
*/
|
|
38
|
+
function authenticate_custom(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* Authenticate a user with a device id against the server.
|
|
41
|
+
*
|
|
42
|
+
* @param account - The device account details.
|
|
43
|
+
* @param create - Register the account if the user does not already exist.
|
|
44
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
45
|
+
*/
|
|
46
|
+
function authenticate_device(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* Authenticate a user with an email+password against the server.
|
|
49
|
+
*
|
|
50
|
+
* @param account - The email account details.
|
|
51
|
+
* @param create - Register the account if the user does not already exist.
|
|
52
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
53
|
+
*/
|
|
54
|
+
function authenticate_email(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Authenticate a user with a Facebook OAuth token against the server.
|
|
57
|
+
*
|
|
58
|
+
* @param account - The Facebook account details.
|
|
59
|
+
* @param create - Register the account if the user does not already exist.
|
|
60
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
61
|
+
* @param sync - Import Facebook friends for the user.
|
|
62
|
+
*/
|
|
63
|
+
function authenticate_facebook(account: Record<string | number, unknown>, create?: boolean, username?: string, sync?: boolean): Record<string | number, unknown>;
|
|
64
|
+
/**
|
|
65
|
+
* Authenticate a user with a Facebook Instant Game token against the server.
|
|
66
|
+
*
|
|
67
|
+
* @param account - The Facebook Instant Game account details.
|
|
68
|
+
* @param create - Register the account if the user does not already exist.
|
|
69
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
70
|
+
*/
|
|
71
|
+
function authenticate_facebook_instant_game(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Authenticate a user with Apple's GameCenter against the server.
|
|
74
|
+
*
|
|
75
|
+
* @param account - The Game Center account details.
|
|
76
|
+
* @param create - Register the account if the user does not already exist.
|
|
77
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
78
|
+
*/
|
|
79
|
+
function authenticate_game_center(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
80
|
+
/**
|
|
81
|
+
* Authenticate a user with Google against the server.
|
|
82
|
+
*
|
|
83
|
+
* @param account - The Google account details.
|
|
84
|
+
* @param create - Register the account if the user does not already exist.
|
|
85
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
86
|
+
*/
|
|
87
|
+
function authenticate_google(account: Record<string | number, unknown>, create?: boolean, username?: string): Record<string | number, unknown>;
|
|
88
|
+
/**
|
|
89
|
+
* Authenticate a user with Steam against the server.
|
|
90
|
+
*
|
|
91
|
+
* @param account - The Steam account details.
|
|
92
|
+
* @param create - Register the account if the user does not already exist.
|
|
93
|
+
* @param username - Set the username on the account at register. Must be unique.
|
|
94
|
+
* @param sync - Import Steam friends for the user.
|
|
95
|
+
*/
|
|
96
|
+
function authenticate_steam(account: Record<string | number, unknown>, create?: boolean, username?: string, sync?: boolean): Record<string | number, unknown>;
|
|
97
|
+
/**
|
|
98
|
+
* Ban a set of users from a group.
|
|
99
|
+
*
|
|
100
|
+
* @param groupId - The group to ban users from.
|
|
101
|
+
* @param userIds - The users to ban.
|
|
102
|
+
*/
|
|
103
|
+
function ban_group_users(groupId: string, userIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* Block one or more users by ID or username.
|
|
106
|
+
*
|
|
107
|
+
* @param ids - The account id of a user.
|
|
108
|
+
* @param usernames - The account username of a user.
|
|
109
|
+
*/
|
|
110
|
+
function block_friends(ids?: Record<string | number, unknown>, usernames?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* A user with additional account details. Always the current user.
|
|
113
|
+
*/
|
|
114
|
+
function create_api_account(user?: Record<string | number, unknown>, wallet?: string, email?: string, devices?: Record<string | number, unknown>, customId?: string, verifyTime?: string, disableTime?: string): Record<string | number, unknown>;
|
|
115
|
+
/**
|
|
116
|
+
* Send a Apple Sign In token to the server. Used with authenticate/link/unlink.
|
|
117
|
+
*/
|
|
118
|
+
function create_api_account_apple(token?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
119
|
+
/**
|
|
120
|
+
* Send a custom ID to the server. Used with authenticate/link/unlink.
|
|
121
|
+
*/
|
|
122
|
+
function create_api_account_custom(id?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
123
|
+
/**
|
|
124
|
+
* Send a device to the server. Used with authenticate/link/unlink and user.
|
|
125
|
+
*/
|
|
126
|
+
function create_api_account_device(id?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
127
|
+
/**
|
|
128
|
+
* Send an email with password to the server. Used with authenticate/link/unlink.
|
|
129
|
+
*/
|
|
130
|
+
function create_api_account_email(email?: string, password?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
131
|
+
/**
|
|
132
|
+
* Send a Facebook token to the server. Used with authenticate/link/unlink.
|
|
133
|
+
*/
|
|
134
|
+
function create_api_account_facebook(token?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
135
|
+
/**
|
|
136
|
+
* Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink.
|
|
137
|
+
*/
|
|
138
|
+
function create_api_account_facebook_instant_game(signedPlayerInfo?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
139
|
+
/**
|
|
140
|
+
* Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
|
|
141
|
+
*
|
|
142
|
+
* https://developer.apple.com/documentation/gamekit/gklocalplayer/1515407-generateidentityverificationsign
|
|
143
|
+
*/
|
|
144
|
+
function create_api_account_game_center(playerId?: string, bundleId?: string, timestampSeconds?: string, salt?: string, signature?: string, publicKeyUrl?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
145
|
+
/**
|
|
146
|
+
* Send a Google token to the server. Used with authenticate/link/unlink.
|
|
147
|
+
*/
|
|
148
|
+
function create_api_account_google(token?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
149
|
+
/**
|
|
150
|
+
* Send a Steam token to the server. Used with authenticate/link/unlink.
|
|
151
|
+
*/
|
|
152
|
+
function create_api_account_steam(token?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
153
|
+
/**
|
|
154
|
+
* A message sent on a channel.
|
|
155
|
+
*/
|
|
156
|
+
function create_api_channel_message(channelId?: string, messageId?: string, code?: number, senderId?: string, username?: string, content?: string, createTime?: string, updateTime?: string, persistent?: boolean, roomName?: string, groupId?: string, userIdOne?: string, userIdTwo?: string): Record<string | number, unknown>;
|
|
157
|
+
/**
|
|
158
|
+
* A list of channel messages, usually a result of a list operation.
|
|
159
|
+
*/
|
|
160
|
+
function create_api_channel_message_list(messages?: Record<string | number, unknown>, nextCursor?: string, prevCursor?: string, cacheableCursor?: string): Record<string | number, unknown>;
|
|
161
|
+
/**
|
|
162
|
+
* Create a group with the current user as owner.
|
|
163
|
+
*/
|
|
164
|
+
function create_api_create_group_request(name?: string, description?: string, langTag?: string, avatarUrl?: string, open?: boolean, maxCount?: number): Record<string | number, unknown>;
|
|
165
|
+
/**
|
|
166
|
+
* Storage objects to delete.
|
|
167
|
+
*/
|
|
168
|
+
function create_api_delete_storage_object_id(collection?: string, key?: string, version?: string): Record<string | number, unknown>;
|
|
169
|
+
/**
|
|
170
|
+
* Batch delete storage objects.
|
|
171
|
+
*/
|
|
172
|
+
function create_api_delete_storage_objects_request(objectIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
173
|
+
/**
|
|
174
|
+
* Represents an event to be passed through the server to registered event handlers.
|
|
175
|
+
*/
|
|
176
|
+
function create_api_event(name?: string, properties?: Record<string | number, unknown>, timestamp?: string, external?: boolean): Record<string | number, unknown>;
|
|
177
|
+
/**
|
|
178
|
+
* A friend of a user.
|
|
179
|
+
*/
|
|
180
|
+
function create_api_friend(user?: Record<string | number, unknown>, state?: number, updateTime?: string): Record<string | number, unknown>;
|
|
181
|
+
/**
|
|
182
|
+
* A collection of zero or more friends of the user.
|
|
183
|
+
*/
|
|
184
|
+
function create_api_friend_list(friends?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
185
|
+
/**
|
|
186
|
+
* A group in the server.
|
|
187
|
+
*/
|
|
188
|
+
function create_api_group(id?: string, creatorId?: string, name?: string, description?: string, langTag?: string, metadata?: string, avatarUrl?: string, open?: boolean, edgeCount?: number, maxCount?: number, createTime?: string, updateTime?: string): Record<string | number, unknown>;
|
|
189
|
+
/**
|
|
190
|
+
* One or more groups returned from a listing operation.
|
|
191
|
+
*/
|
|
192
|
+
function create_api_group_list(groups?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
193
|
+
/**
|
|
194
|
+
* A list of users belonging to a group, along with their role.
|
|
195
|
+
*/
|
|
196
|
+
function create_api_group_user_list(groupUsers?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
197
|
+
/**
|
|
198
|
+
* Represents a complete leaderboard record with all scores and associated metadata.
|
|
199
|
+
*/
|
|
200
|
+
function create_api_leaderboard_record(leaderboardId?: string, ownerId?: string, username?: string, score?: string, subscore?: string, numScore?: number, metadata?: string, createTime?: string, updateTime?: string, expiryTime?: string, rank?: string, maxNumScore?: number): Record<string | number, unknown>;
|
|
201
|
+
/**
|
|
202
|
+
* A set of leaderboard records, may be part of a leaderboard records page or a batch of individual records.
|
|
203
|
+
*/
|
|
204
|
+
function create_api_leaderboard_record_list(records?: Record<string | number, unknown>, ownerRecords?: Record<string | number, unknown>, nextCursor?: string, prevCursor?: string, rankCount?: string): Record<string | number, unknown>;
|
|
205
|
+
/**
|
|
206
|
+
* Link Steam to the current user's account.
|
|
207
|
+
*/
|
|
208
|
+
function create_api_link_steam_request(account?: Record<string | number, unknown>, sync?: boolean): Record<string | number, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* List user subscriptions.
|
|
211
|
+
*/
|
|
212
|
+
function create_api_list_subscriptions_request(limit?: number, cursor?: string): Record<string | number, unknown>;
|
|
213
|
+
/**
|
|
214
|
+
* Represents a realtime match.
|
|
215
|
+
*/
|
|
216
|
+
function create_api_match(matchId?: string, authoritative?: boolean, label?: string, size?: number, tickRate?: number, handlerName?: string): Record<string | number, unknown>;
|
|
217
|
+
/**
|
|
218
|
+
* A list of realtime matches.
|
|
219
|
+
*/
|
|
220
|
+
function create_api_match_list(matches?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
221
|
+
/**
|
|
222
|
+
* A notification in the server.
|
|
223
|
+
*/
|
|
224
|
+
function create_api_notification(id?: string, subject?: string, content?: string, code?: number, senderId?: string, createTime?: string, persistent?: boolean): Record<string | number, unknown>;
|
|
225
|
+
/**
|
|
226
|
+
* A collection of zero or more notifications.
|
|
227
|
+
*/
|
|
228
|
+
function create_api_notification_list(notifications?: Record<string | number, unknown>, cacheableCursor?: string): Record<string | number, unknown>;
|
|
229
|
+
/**
|
|
230
|
+
* Storage objects to get.
|
|
231
|
+
*/
|
|
232
|
+
function create_api_read_storage_object_id(collection?: string, key?: string, userId?: string): Record<string | number, unknown>;
|
|
233
|
+
/**
|
|
234
|
+
* Batch get storage objects.
|
|
235
|
+
*/
|
|
236
|
+
function create_api_read_storage_objects_request(objectIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
237
|
+
/**
|
|
238
|
+
* Execute an Lua function on the server.
|
|
239
|
+
*/
|
|
240
|
+
function create_api_rpc(id?: string, payload?: string, httpKey?: string): Record<string | number, unknown>;
|
|
241
|
+
/**
|
|
242
|
+
* A user's session used to authenticate messages.
|
|
243
|
+
*/
|
|
244
|
+
function create_api_session(created?: boolean, token?: string, refreshToken?: string): Record<string | number, unknown>;
|
|
245
|
+
/**
|
|
246
|
+
* Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
|
|
247
|
+
*/
|
|
248
|
+
function create_api_session_logout_request(token?: string, refreshToken?: string): Record<string | number, unknown>;
|
|
249
|
+
/**
|
|
250
|
+
* Authenticate against the server with a refresh token.
|
|
251
|
+
*/
|
|
252
|
+
function create_api_session_refresh_request(token?: string, vars?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
253
|
+
/**
|
|
254
|
+
* An object within the storage engine.
|
|
255
|
+
*/
|
|
256
|
+
function create_api_storage_object(collection?: string, key?: string, userId?: string, value?: string, version?: string, permissionRead?: number, permissionWrite?: number, createTime?: string, updateTime?: string): Record<string | number, unknown>;
|
|
257
|
+
/**
|
|
258
|
+
* A storage acknowledgement.
|
|
259
|
+
*/
|
|
260
|
+
function create_api_storage_object_ack(collection?: string, key?: string, version?: string, userId?: string, createTime?: string, updateTime?: string): Record<string | number, unknown>;
|
|
261
|
+
/**
|
|
262
|
+
* Batch of acknowledgements for the storage object write.
|
|
263
|
+
*/
|
|
264
|
+
function create_api_storage_object_acks(acks?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
265
|
+
/**
|
|
266
|
+
* List of storage objects.
|
|
267
|
+
*/
|
|
268
|
+
function create_api_storage_object_list(objects?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
269
|
+
/**
|
|
270
|
+
* Batch of storage objects.
|
|
271
|
+
*/
|
|
272
|
+
function create_api_storage_objects(objects?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
273
|
+
/**
|
|
274
|
+
* A list of validated subscriptions stored by Nakama.
|
|
275
|
+
*/
|
|
276
|
+
function create_api_subscription_list(validatedSubscriptions?: Record<string | number, unknown>, cursor?: string, prevCursor?: string): Record<string | number, unknown>;
|
|
277
|
+
/**
|
|
278
|
+
* A tournament on the server.
|
|
279
|
+
*/
|
|
280
|
+
function create_api_tournament(id?: string, title?: string, description?: string, category?: number, sortOrder?: number, size?: number, maxSize?: number, maxNumScore?: number, canEnter?: boolean, endActive?: number, nextReset?: number, metadata?: string, createTime?: string, startTime?: string, endTime?: string, duration?: number, startActive?: number, prevReset?: number, operator?: Record<string | number, unknown>, authoritative?: boolean): Record<string | number, unknown>;
|
|
281
|
+
/**
|
|
282
|
+
* A list of tournaments.
|
|
283
|
+
*/
|
|
284
|
+
function create_api_tournament_list(tournaments?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
285
|
+
/**
|
|
286
|
+
* A set of tournament records which may be part of a tournament records page or a batch of individual records.
|
|
287
|
+
*/
|
|
288
|
+
function create_api_tournament_record_list(records?: Record<string | number, unknown>, ownerRecords?: Record<string | number, unknown>, nextCursor?: string, prevCursor?: string, rankCount?: string): Record<string | number, unknown>;
|
|
289
|
+
/**
|
|
290
|
+
* Update a user's account details.
|
|
291
|
+
*/
|
|
292
|
+
function create_api_update_account_request(username?: string, displayName?: string, avatarUrl?: string, langTag?: string, location?: string, timezone?: string): Record<string | number, unknown>;
|
|
293
|
+
/**
|
|
294
|
+
* A user in the server.
|
|
295
|
+
*/
|
|
296
|
+
function create_api_user(id?: string, username?: string, displayName?: string, avatarUrl?: string, langTag?: string, location?: string, timezone?: string, metadata?: string, facebookId?: string, googleId?: string, gamecenterId?: string, steamId?: string, online?: boolean, edgeCount?: number, createTime?: string, updateTime?: string, facebookInstantGameId?: string, appleId?: string): Record<string | number, unknown>;
|
|
297
|
+
/**
|
|
298
|
+
* A list of groups belonging to a user, along with the user's role in each group.
|
|
299
|
+
*/
|
|
300
|
+
function create_api_user_group_list(userGroups?: Record<string | number, unknown>, cursor?: string): Record<string | number, unknown>;
|
|
301
|
+
/**
|
|
302
|
+
* A collection of zero or more users.
|
|
303
|
+
*/
|
|
304
|
+
function create_api_users(users?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
305
|
+
function create_api_validate_purchase_apple_request(receipt?: string, persist?: boolean): Record<string | number, unknown>;
|
|
306
|
+
function create_api_validate_purchase_facebook_instant_request(signedRequest?: string, persist?: boolean): Record<string | number, unknown>;
|
|
307
|
+
function create_api_validate_purchase_google_request(purchase?: string, persist?: boolean): Record<string | number, unknown>;
|
|
308
|
+
function create_api_validate_purchase_huawei_request(purchase?: string, signature?: string, persist?: boolean): Record<string | number, unknown>;
|
|
309
|
+
/**
|
|
310
|
+
* Validate IAP response.
|
|
311
|
+
*/
|
|
312
|
+
function create_api_validate_purchase_response(validatedPurchases?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
313
|
+
function create_api_validate_subscription_apple_request(receipt?: string, persist?: boolean): Record<string | number, unknown>;
|
|
314
|
+
function create_api_validate_subscription_google_request(receipt?: string, persist?: boolean): Record<string | number, unknown>;
|
|
315
|
+
/**
|
|
316
|
+
* Validate Subscription response.
|
|
317
|
+
*/
|
|
318
|
+
function create_api_validate_subscription_response(validatedSubscription?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
319
|
+
/**
|
|
320
|
+
* Validated Purchase stored by Nakama.
|
|
321
|
+
*/
|
|
322
|
+
function create_api_validated_purchase(userId?: string, productId?: string, transactionId?: string, store?: Record<string | number, unknown>, purchaseTime?: string, createTime?: string, updateTime?: string, refundTime?: string, providerResponse?: string, environment?: Record<string | number, unknown>, seenBefore?: boolean): Record<string | number, unknown>;
|
|
323
|
+
function create_api_validated_subscription(userId?: string, productId?: string, originalTransactionId?: string, store?: Record<string | number, unknown>, purchaseTime?: string, createTime?: string, updateTime?: string, environment?: Record<string | number, unknown>, expiryTime?: string, refundTime?: string, providerResponse?: string, providerNotification?: string, active?: boolean): Record<string | number, unknown>;
|
|
324
|
+
/**
|
|
325
|
+
* The object to store.
|
|
326
|
+
*/
|
|
327
|
+
function create_api_write_storage_object(collection?: string, key?: string, value?: string, version?: string, permissionRead?: number, permissionWrite?: number): Record<string | number, unknown>;
|
|
328
|
+
/**
|
|
329
|
+
* Write objects to the storage engine.
|
|
330
|
+
*/
|
|
331
|
+
function create_api_write_storage_objects_request(objects?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
332
|
+
function create_channel_join_message(target: string, type: number, persistence: Record<string | number, unknown>, hidden: Record<string | number, unknown>): void;
|
|
333
|
+
function create_channel_leave_message(channel_id: string): void;
|
|
334
|
+
function create_channel_message(id: string, presences: Record<string | number, unknown>, self: Record<string | number, unknown>, room_name: string, group_id: string, user_id_one: string, user_id_two: string): void;
|
|
335
|
+
function create_channel_message_ack_message(channel_id: string, message_id: string, code: Record<string | number, unknown>, username: string, create_time: Record<string | number, unknown>, update_time: Record<string | number, unknown>, persistent: Record<string | number, unknown>, room_name: string, group_id: string, user_id_one: string, user_id_two: string): void;
|
|
336
|
+
function create_channel_message_remove_message(channel_id: string, message_id: string): void;
|
|
337
|
+
function create_channel_message_send_message(channel_id: string, content: string): void;
|
|
338
|
+
function create_channel_message_update_message(channel_id: string, message_id: string, content: string): void;
|
|
339
|
+
function create_channel_presence_event_message(channel_id: string, joins: Record<string | number, unknown>, leaves: Record<string | number, unknown>, room_name: string, group_id: string, user_id_one: string, user_id_two: string): void;
|
|
340
|
+
function create_envelope_message(cid: string, channel?: Record<string | number, unknown>, channel_join?: Record<string | number, unknown>, channel_leave?: Record<string | number, unknown>, channel_message?: Record<string | number, unknown>, channel_message_ack?: Record<string | number, unknown>, channel_message_send?: Record<string | number, unknown>, channel_message_update?: Record<string | number, unknown>, channel_message_remove?: Record<string | number, unknown>, channel_presence_event?: Record<string | number, unknown>, error?: Record<string | number, unknown>, match?: Record<string | number, unknown>, match_create?: Record<string | number, unknown>, match_data?: Record<string | number, unknown>, match_data_send?: Record<string | number, unknown>, match_join?: Record<string | number, unknown>, match_leave?: Record<string | number, unknown>, match_presence_event?: Record<string | number, unknown>, matchmaker_add?: Record<string | number, unknown>, matchmaker_matched?: Record<string | number, unknown>, matchmaker_remove?: Record<string | number, unknown>, matchmaker_ticket?: Record<string | number, unknown>, notifications?: Record<string | number, unknown>, rpc?: Record<string | number, unknown>, status?: Record<string | number, unknown>, status_follow?: Record<string | number, unknown>, status_presence_event?: Record<string | number, unknown>, status_unfollow?: Record<string | number, unknown>, status_update?: Record<string | number, unknown>, stream_data?: Record<string | number, unknown>, stream_presence_event?: Record<string | number, unknown>, ping?: Record<string | number, unknown>, pong?: Record<string | number, unknown>, party?: Record<string | number, unknown>, party_create?: Record<string | number, unknown>, party_join?: Record<string | number, unknown>, party_leave?: Record<string | number, unknown>, party_promote?: Record<string | number, unknown>, party_leader?: Record<string | number, unknown>, party_accept?: Record<string | number, unknown>, party_remove?: Record<string | number, unknown>, party_close?: Record<string | number, unknown>, party_join_request_list?: Record<string | number, unknown>, party_join_request?: Record<string | number, unknown>, party_matchmaker_add?: Record<string | number, unknown>, party_matchmaker_remove?: Record<string | number, unknown>, party_matchmaker_ticket?: Record<string | number, unknown>, party_data?: Record<string | number, unknown>, party_data_send?: Record<string | number, unknown>, party_presence_event?: Record<string | number, unknown>): void;
|
|
341
|
+
function create_error_message(code: number, message: string, context: Record<string | number, unknown>): void;
|
|
342
|
+
/**
|
|
343
|
+
* Create a new group with the current user as the owner.
|
|
344
|
+
*
|
|
345
|
+
* @param body - Create a group with the current user as owner.
|
|
346
|
+
*/
|
|
347
|
+
function create_group(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
348
|
+
/**
|
|
349
|
+
* A single user-role pair.
|
|
350
|
+
*/
|
|
351
|
+
function create_group_user_list_group_user(user?: Record<string | number, unknown>, state?: number): Record<string | number, unknown>;
|
|
352
|
+
function create_match_create_message(name: string): void;
|
|
353
|
+
function create_match_data_message(match_id: string, presence: Record<string | number, unknown>, op_code: number, data: string, reliable: boolean): void;
|
|
354
|
+
function create_match_data_send_message(match_id: string, op_code: number, data: string, presences: Record<string | number, unknown>, reliable: boolean): void;
|
|
355
|
+
function create_match_join_message(match_id: string | undefined, token: string | undefined, metadata: Record<string | number, unknown>): void;
|
|
356
|
+
function create_match_leave_message(match_id: string): void;
|
|
357
|
+
function create_match_message(match_id: string, authoritative: boolean, label: Record<string | number, unknown>, size: number, presences: Record<string | number, unknown>, self: Record<string | number, unknown>): void;
|
|
358
|
+
function create_match_presence_event_message(match_id: string, joins: Record<string | number, unknown>, leaves: Record<string | number, unknown>): void;
|
|
359
|
+
function create_matchmaker_add_message(min_count: number, max_count: number, query: string, string_properties: Record<string | number, unknown>, numeric_properties: Record<string | number, unknown>, count_multiple: Record<string | number, unknown>): void;
|
|
360
|
+
function create_matchmaker_matched_message(ticket: string, match_id: string | undefined, token: string | undefined, users: Record<string | number, unknown>, self: Record<string | number, unknown>): void;
|
|
361
|
+
function create_matchmaker_remove_message(ticket: string): void;
|
|
362
|
+
function create_matchmaker_ticket_message(ticket: string): void;
|
|
363
|
+
function create_notifications_message(notifications: Record<string | number, unknown>): void;
|
|
364
|
+
function create_party_accept_message(party_id: string, presence: Record<string | number, unknown>): void;
|
|
365
|
+
function create_party_close_message(party_id: string): void;
|
|
366
|
+
function create_party_create_message(open: boolean, max_size: number): void;
|
|
367
|
+
function create_party_data_message(party_id: string, presence: Record<string | number, unknown>, op_code: number, data: string): void;
|
|
368
|
+
function create_party_data_send_message(party_id: string, op_code: number, data: string): void;
|
|
369
|
+
function create_party_join_message(party_id: string): void;
|
|
370
|
+
function create_party_join_request_list_message(party_id: string): void;
|
|
371
|
+
function create_party_join_request_message(party_id: string, presences: Record<string | number, unknown>): void;
|
|
372
|
+
function create_party_leader_message(party_id: string, presence: Record<string | number, unknown>): void;
|
|
373
|
+
function create_party_leave_message(party_id: string): void;
|
|
374
|
+
function create_party_matchmaker_add_message(party_id: string, min_count: number, max_count: number, query: string, string_properties: Record<string | number, unknown>, numeric_properties: Record<string | number, unknown>, count_multiple: Record<string | number, unknown>): void;
|
|
375
|
+
function create_party_matchmaker_remove_message(party_id: string, ticket: string): void;
|
|
376
|
+
function create_party_matchmaker_ticket_message(party_id: string, ticket: string): void;
|
|
377
|
+
function create_party_message(party_id: string, open: boolean, max_size: number, self: Record<string | number, unknown>, leader: Record<string | number, unknown>, presences: Record<string | number, unknown>): void;
|
|
378
|
+
function create_party_presence_event_message(party_id: string, joins: Record<string | number, unknown>, leaves: Record<string | number, unknown>): void;
|
|
379
|
+
function create_party_promote_message(party_id: string, presence: Record<string | number, unknown>): void;
|
|
380
|
+
function create_party_remove_message(party_id: string, presence: Record<string | number, unknown>): void;
|
|
381
|
+
function create_ping_message(): void;
|
|
382
|
+
function create_pong_message(): void;
|
|
383
|
+
function create_protobuf_any(arg0?: string): Record<string | number, unknown>;
|
|
384
|
+
function create_rpc_status(code?: number, message?: string, details?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
385
|
+
function create_status_follow_message(user_ids: Record<string | number, unknown>, usernames: Record<string | number, unknown>): void;
|
|
386
|
+
function create_status_message(presences: Record<string | number, unknown>): void;
|
|
387
|
+
function create_status_presence_event_message(joins: Record<string | number, unknown>, leaves: Record<string | number, unknown>): void;
|
|
388
|
+
function create_status_unfollow_message(user_ids: Record<string | number, unknown>): void;
|
|
389
|
+
function create_status_update_message(status: Record<string | number, unknown>): void;
|
|
390
|
+
function create_stream_data_message(stream: Record<string | number, unknown>, sender: Record<string | number, unknown>, data: string, reliable: boolean): void;
|
|
391
|
+
function create_stream_message(mode: number, subject: string, subcontext: string, label: string): void;
|
|
392
|
+
function create_stream_presence_event_message(stream: Record<string | number, unknown>, joins: Record<string | number, unknown>, leaves: Record<string | number, unknown>): void;
|
|
393
|
+
/**
|
|
394
|
+
* A single group-role pair.
|
|
395
|
+
*/
|
|
396
|
+
function create_user_group_list_user_group(group?: Record<string | number, unknown>, state?: number): Record<string | number, unknown>;
|
|
397
|
+
function create_user_presence_message(user_id: string, session_id: string, username: string, persistence: boolean, status: Record<string | number, unknown>): void;
|
|
398
|
+
/**
|
|
399
|
+
* Record values to write.
|
|
400
|
+
*/
|
|
401
|
+
function create_write_leaderboard_record_request_leaderboard_record_write(score?: string, subscore?: string, metadata?: string, operator?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
402
|
+
/**
|
|
403
|
+
* Record values to write.
|
|
404
|
+
*/
|
|
405
|
+
function create_write_tournament_record_request_tournament_record_write(score?: string, subscore?: string, metadata?: string, operator?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
406
|
+
/**
|
|
407
|
+
* Delete the current user's account.
|
|
408
|
+
*/
|
|
409
|
+
function delete_account(): Record<string | number, unknown>;
|
|
410
|
+
/**
|
|
411
|
+
* Delete one or more users by ID or username.
|
|
412
|
+
*
|
|
413
|
+
* @param ids - The account id of a user.
|
|
414
|
+
* @param usernames - The account username of a user.
|
|
415
|
+
*/
|
|
416
|
+
function delete_friends(ids?: Record<string | number, unknown>, usernames?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
417
|
+
/**
|
|
418
|
+
* Delete a group by ID.
|
|
419
|
+
*
|
|
420
|
+
* @param groupId - The id of a group.
|
|
421
|
+
*/
|
|
422
|
+
function delete_group(groupId: string): Record<string | number, unknown>;
|
|
423
|
+
/**
|
|
424
|
+
* Delete a leaderboard record.
|
|
425
|
+
*
|
|
426
|
+
* @param leaderboardId - The leaderboard ID to delete from.
|
|
427
|
+
*/
|
|
428
|
+
function delete_leaderboard_record(leaderboardId: string): Record<string | number, unknown>;
|
|
429
|
+
/**
|
|
430
|
+
* Delete one or more notifications for the current user.
|
|
431
|
+
*
|
|
432
|
+
* @param ids - The id of notifications.
|
|
433
|
+
*/
|
|
434
|
+
function delete_notifications(ids?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
435
|
+
/**
|
|
436
|
+
* Delete one or more objects by ID or username.
|
|
437
|
+
*
|
|
438
|
+
* @param body - Batch delete storage objects.
|
|
439
|
+
*/
|
|
440
|
+
function delete_storage_objects(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
441
|
+
/**
|
|
442
|
+
* Delete a tournament record.
|
|
443
|
+
*
|
|
444
|
+
* @param tournamentId - The tournament ID to delete from.
|
|
445
|
+
*/
|
|
446
|
+
function delete_tournament_record(tournamentId: string): Record<string | number, unknown>;
|
|
447
|
+
/**
|
|
448
|
+
* Demote a set of users in a group to the next role down.
|
|
449
|
+
*
|
|
450
|
+
* @param groupId - The group ID to demote in.
|
|
451
|
+
* @param userIds - The users to demote.
|
|
452
|
+
*/
|
|
453
|
+
function demote_group_users(groupId: string, userIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
454
|
+
/**
|
|
455
|
+
* Submit an event for processing in the server's registered runtime custom events handler.
|
|
456
|
+
*
|
|
457
|
+
* @param body - Represents an event to be passed through the server to registered event handlers.
|
|
458
|
+
*/
|
|
459
|
+
function event(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
460
|
+
/**
|
|
461
|
+
* Fetch the current user's account.
|
|
462
|
+
*/
|
|
463
|
+
function get_account(): Record<string | number, unknown>;
|
|
464
|
+
/**
|
|
465
|
+
* Get subscription by product id.
|
|
466
|
+
*
|
|
467
|
+
* @param productId - Product id of the subscription
|
|
468
|
+
*/
|
|
469
|
+
function get_subscription(productId: string): Record<string | number, unknown>;
|
|
470
|
+
/**
|
|
471
|
+
* Fetch zero or more users by ID and/or username.
|
|
472
|
+
*
|
|
473
|
+
* @param ids - The account id of a user.
|
|
474
|
+
* @param usernames - The account username of a user.
|
|
475
|
+
* @param facebookIds - The Facebook ID of a user.
|
|
476
|
+
*/
|
|
477
|
+
function get_users(ids?: Record<string | number, unknown>, usernames?: Record<string | number, unknown>, facebookIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
478
|
+
/**
|
|
479
|
+
* A healthcheck which load balancers can use to check the service.
|
|
480
|
+
*/
|
|
481
|
+
function healthcheck(): Record<string | number, unknown>;
|
|
482
|
+
/**
|
|
483
|
+
* Import Facebook friends and add them to a user's account.
|
|
484
|
+
*
|
|
485
|
+
* @param account - The Facebook account details.
|
|
486
|
+
* @param reset - Reset the current user's friends list.
|
|
487
|
+
*/
|
|
488
|
+
function import_facebook_friends(account: Record<string | number, unknown>, reset?: boolean): Record<string | number, unknown>;
|
|
489
|
+
/**
|
|
490
|
+
* Import Steam friends and add them to a user's account.
|
|
491
|
+
*
|
|
492
|
+
* @param account - The Facebook account details.
|
|
493
|
+
* @param reset - Reset the current user's friends list.
|
|
494
|
+
*/
|
|
495
|
+
function import_steam_friends(account: Record<string | number, unknown>, reset?: boolean): Record<string | number, unknown>;
|
|
496
|
+
/**
|
|
497
|
+
* Immediately join an open group, or request to join a closed one.
|
|
498
|
+
*
|
|
499
|
+
* @param groupId - The group ID to join. The group must already exist.
|
|
500
|
+
*/
|
|
501
|
+
function join_group(groupId: string): Record<string | number, unknown>;
|
|
502
|
+
/**
|
|
503
|
+
* Attempt to join an open and running tournament.
|
|
504
|
+
*
|
|
505
|
+
* @param tournamentId - The ID of the tournament to join. The tournament must already exist.
|
|
506
|
+
*/
|
|
507
|
+
function join_tournament(tournamentId: string): Record<string | number, unknown>;
|
|
508
|
+
/**
|
|
509
|
+
* Kick a set of users from a group.
|
|
510
|
+
*
|
|
511
|
+
* @param groupId - The group ID to kick from.
|
|
512
|
+
* @param userIds - The users to kick.
|
|
513
|
+
*/
|
|
514
|
+
function kick_group_users(groupId: string, userIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
515
|
+
/**
|
|
516
|
+
* Leave a group the user is a member of.
|
|
517
|
+
*
|
|
518
|
+
* @param groupId - The group ID to leave.
|
|
519
|
+
*/
|
|
520
|
+
function leave_group(groupId: string): Record<string | number, unknown>;
|
|
521
|
+
/**
|
|
522
|
+
* Add an Apple ID to the social profiles on the current user's account.
|
|
523
|
+
*
|
|
524
|
+
* @param body - Send a Apple Sign In token to the server. Used with authenticate/link/unlink.
|
|
525
|
+
*/
|
|
526
|
+
function link_apple(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
527
|
+
/**
|
|
528
|
+
* Add a custom ID to the social profiles on the current user's account.
|
|
529
|
+
*
|
|
530
|
+
* @param body - Send a custom ID to the server. Used with authenticate/link/unlink.
|
|
531
|
+
*/
|
|
532
|
+
function link_custom(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
533
|
+
/**
|
|
534
|
+
* Add a device ID to the social profiles on the current user's account.
|
|
535
|
+
*
|
|
536
|
+
* @param body - Send a device to the server. Used with authenticate/link/unlink and user.
|
|
537
|
+
*/
|
|
538
|
+
function link_device(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
539
|
+
/**
|
|
540
|
+
* Add an email+password to the social profiles on the current user's account.
|
|
541
|
+
*
|
|
542
|
+
* @param body - Send an email with password to the server. Used with authenticate/link/unlink.
|
|
543
|
+
*/
|
|
544
|
+
function link_email(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
545
|
+
/**
|
|
546
|
+
* Add Facebook to the social profiles on the current user's account.
|
|
547
|
+
*
|
|
548
|
+
* @param account - The Facebook account details.
|
|
549
|
+
* @param sync - Import Facebook friends for the user.
|
|
550
|
+
*/
|
|
551
|
+
function link_facebook(account: Record<string | number, unknown>, sync?: boolean): Record<string | number, unknown>;
|
|
552
|
+
/**
|
|
553
|
+
* Add Facebook Instant Game to the social profiles on the current user's account.
|
|
554
|
+
*
|
|
555
|
+
* @param body - Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink.
|
|
556
|
+
*/
|
|
557
|
+
function link_facebook_instant_game(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
558
|
+
/**
|
|
559
|
+
* Add Apple's GameCenter to the social profiles on the current user's account.
|
|
560
|
+
*
|
|
561
|
+
* @param body - Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
|
|
562
|
+
*
|
|
563
|
+
* https://developer.apple.com/documentation/gamekit/gklocalplayer/1515407-generateidentityverificationsign
|
|
564
|
+
*/
|
|
565
|
+
function link_game_center(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
566
|
+
/**
|
|
567
|
+
* Add Google to the social profiles on the current user's account.
|
|
568
|
+
*
|
|
569
|
+
* @param body - Send a Google token to the server. Used with authenticate/link/unlink.
|
|
570
|
+
*/
|
|
571
|
+
function link_google(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
572
|
+
/**
|
|
573
|
+
* Add Steam to the social profiles on the current user's account.
|
|
574
|
+
*
|
|
575
|
+
* @param body - Link Steam to the current user's account.
|
|
576
|
+
*/
|
|
577
|
+
function link_steam(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
578
|
+
/**
|
|
579
|
+
* List a channel's message history.
|
|
580
|
+
*
|
|
581
|
+
* @param channelId - The channel ID to list from.
|
|
582
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
583
|
+
* @param forward - True if listing should be older messages to newer, false if reverse.
|
|
584
|
+
* @param cursor - A pagination cursor, if any.
|
|
585
|
+
*/
|
|
586
|
+
function list_channel_messages(channelId: string, limit?: number, forward?: boolean, cursor?: string): Record<string | number, unknown>;
|
|
587
|
+
/**
|
|
588
|
+
* List all friends for the current user.
|
|
589
|
+
*
|
|
590
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
591
|
+
* @param state - The friend state to list.
|
|
592
|
+
* @param cursor - An optional next page cursor.
|
|
593
|
+
*/
|
|
594
|
+
function list_friends(limit?: number, state?: number, cursor?: string): Record<string | number, unknown>;
|
|
595
|
+
/**
|
|
596
|
+
* List all users that are part of a group.
|
|
597
|
+
*
|
|
598
|
+
* @param groupId - The group ID to list from.
|
|
599
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
600
|
+
* @param state - The group user state to list.
|
|
601
|
+
* @param cursor - An optional next page cursor.
|
|
602
|
+
*/
|
|
603
|
+
function list_group_users(groupId: string, limit?: number, state?: number, cursor?: string): Record<string | number, unknown>;
|
|
604
|
+
/**
|
|
605
|
+
* List groups based on given filters.
|
|
606
|
+
*
|
|
607
|
+
* @param name - List groups that contain this value in their names.
|
|
608
|
+
* @param cursor - Optional pagination cursor.
|
|
609
|
+
* @param limit - Max number of groups to return. Between 1 and 100.
|
|
610
|
+
* @param langTag - Language tag filter
|
|
611
|
+
* @param members - Number of group members
|
|
612
|
+
* @param open - Optional Open/Closed filter.
|
|
613
|
+
*/
|
|
614
|
+
function list_groups(name?: string, cursor?: string, limit?: number, langTag?: string, members?: number, open?: boolean): Record<string | number, unknown>;
|
|
615
|
+
/**
|
|
616
|
+
* List leaderboard records.
|
|
617
|
+
*
|
|
618
|
+
* @param leaderboardId - The ID of the leaderboard to list for.
|
|
619
|
+
* @param ownerIds - One or more owners to retrieve records for.
|
|
620
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
621
|
+
* @param cursor - A next or previous page cursor.
|
|
622
|
+
* @param expiry - Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
|
|
623
|
+
*/
|
|
624
|
+
function list_leaderboard_records(leaderboardId: string, ownerIds?: Record<string | number, unknown>, limit?: number, cursor?: string, expiry?: string): Record<string | number, unknown>;
|
|
625
|
+
/**
|
|
626
|
+
* List leaderboard records that belong to a user.
|
|
627
|
+
*
|
|
628
|
+
* @param leaderboardId - The ID of the tournament to list for.
|
|
629
|
+
* @param ownerId - The owner to retrieve records around.
|
|
630
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
631
|
+
* @param expiry - Expiry in seconds (since epoch) to begin fetching records from.
|
|
632
|
+
* @param cursor - A next or previous page cursor.
|
|
633
|
+
*/
|
|
634
|
+
function list_leaderboard_records_around_owner(leaderboardId: string, ownerId: string, limit?: number, expiry?: string, cursor?: string): Record<string | number, unknown>;
|
|
635
|
+
/**
|
|
636
|
+
* Fetch list of running matches.
|
|
637
|
+
*
|
|
638
|
+
* @param limit - Limit the number of returned matches.
|
|
639
|
+
* @param authoritative - Authoritative or relayed matches.
|
|
640
|
+
* @param label - Label filter.
|
|
641
|
+
* @param minSize - Minimum user count.
|
|
642
|
+
* @param maxSize - Maximum user count.
|
|
643
|
+
* @param query - Arbitrary label query.
|
|
644
|
+
*/
|
|
645
|
+
function list_matches(limit?: number, authoritative?: boolean, label?: string, minSize?: number, maxSize?: number, query?: string): Record<string | number, unknown>;
|
|
646
|
+
/**
|
|
647
|
+
* Fetch list of notifications.
|
|
648
|
+
*
|
|
649
|
+
* @param limit - The number of notifications to get. Between 1 and 100.
|
|
650
|
+
* @param cacheableCursor - A cursor to page through notifications. May be cached by clients to get from point in time forwards.
|
|
651
|
+
*
|
|
652
|
+
* value from NotificationList.cacheable_cursor.
|
|
653
|
+
*/
|
|
654
|
+
function list_notifications(limit?: number, cacheableCursor?: string): Record<string | number, unknown>;
|
|
655
|
+
/**
|
|
656
|
+
* List publicly readable storage objects in a given collection.
|
|
657
|
+
*
|
|
658
|
+
* @param collection - The collection which stores the object.
|
|
659
|
+
* @param userId - ID of the user.
|
|
660
|
+
* @param limit - The number of storage objects to list. Between 1 and 100.
|
|
661
|
+
* @param cursor - The cursor to page through results from.
|
|
662
|
+
*
|
|
663
|
+
* value from StorageObjectList.cursor.
|
|
664
|
+
*/
|
|
665
|
+
function list_storage_objects(collection: string, userId?: string, limit?: number, cursor?: string): Record<string | number, unknown>;
|
|
666
|
+
/**
|
|
667
|
+
* List publicly readable storage objects in a given collection.
|
|
668
|
+
*
|
|
669
|
+
* @param collection - The collection which stores the object.
|
|
670
|
+
* @param userId - ID of the user.
|
|
671
|
+
* @param limit - The number of storage objects to list. Between 1 and 100.
|
|
672
|
+
* @param cursor - The cursor to page through results from.
|
|
673
|
+
*
|
|
674
|
+
* value from StorageObjectList.cursor.
|
|
675
|
+
*/
|
|
676
|
+
function list_storage_objects2(collection: string, userId: string, limit?: number, cursor?: string): Record<string | number, unknown>;
|
|
677
|
+
/**
|
|
678
|
+
* List user's subscriptions.
|
|
679
|
+
*
|
|
680
|
+
* @param body - List user subscriptions.
|
|
681
|
+
*/
|
|
682
|
+
function list_subscriptions(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
683
|
+
/**
|
|
684
|
+
* List tournament records.
|
|
685
|
+
*
|
|
686
|
+
* @param tournamentId - The ID of the tournament to list for.
|
|
687
|
+
* @param ownerIds - One or more owners to retrieve records for.
|
|
688
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
689
|
+
* @param cursor - A next or previous page cursor.
|
|
690
|
+
* @param expiry - Expiry in seconds (since epoch) to begin fetching records from.
|
|
691
|
+
*/
|
|
692
|
+
function list_tournament_records(tournamentId: string, ownerIds?: Record<string | number, unknown>, limit?: number, cursor?: string, expiry?: string): Record<string | number, unknown>;
|
|
693
|
+
/**
|
|
694
|
+
* List tournament records for a given owner.
|
|
695
|
+
*
|
|
696
|
+
* @param tournamentId - The ID of the tournament to list for.
|
|
697
|
+
* @param ownerId - The owner to retrieve records around.
|
|
698
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
699
|
+
* @param expiry - Expiry in seconds (since epoch) to begin fetching records from.
|
|
700
|
+
* @param cursor - A next or previous page cursor.
|
|
701
|
+
*/
|
|
702
|
+
function list_tournament_records_around_owner(tournamentId: string, ownerId: string, limit?: number, expiry?: string, cursor?: string): Record<string | number, unknown>;
|
|
703
|
+
/**
|
|
704
|
+
* List current or upcoming tournaments.
|
|
705
|
+
*
|
|
706
|
+
* @param categoryStart - The start of the categories to include. Defaults to 0.
|
|
707
|
+
* @param categoryEnd - The end of the categories to include. Defaults to 128.
|
|
708
|
+
* @param startTime - The start time for tournaments. Defaults to epoch.
|
|
709
|
+
* @param endTime - The end time for tournaments. Defaults to +1 year from current Unix time.
|
|
710
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
711
|
+
* @param cursor - A next page cursor for listings (optional).
|
|
712
|
+
*/
|
|
713
|
+
function list_tournaments(categoryStart?: number, categoryEnd?: number, startTime?: number, endTime?: number, limit?: number, cursor?: string): Record<string | number, unknown>;
|
|
714
|
+
/**
|
|
715
|
+
* List groups the current user belongs to.
|
|
716
|
+
*
|
|
717
|
+
* @param userId - ID of the user.
|
|
718
|
+
* @param limit - Max number of records to return. Between 1 and 100.
|
|
719
|
+
* @param state - The user group state to list.
|
|
720
|
+
* @param cursor - An optional next page cursor.
|
|
721
|
+
*/
|
|
722
|
+
function list_user_groups(userId: string, limit?: number, state?: number, cursor?: string): Record<string | number, unknown>;
|
|
723
|
+
/**
|
|
724
|
+
* Promote a set of users in a group to the next role up.
|
|
725
|
+
*
|
|
726
|
+
* @param groupId - The group ID to promote in.
|
|
727
|
+
* @param userIds - The users to promote.
|
|
728
|
+
*/
|
|
729
|
+
function promote_group_users(groupId: string, userIds?: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
730
|
+
/**
|
|
731
|
+
* Get storage objects.
|
|
732
|
+
*
|
|
733
|
+
* @param body - Batch get storage objects.
|
|
734
|
+
*/
|
|
735
|
+
function read_storage_objects(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
736
|
+
/**
|
|
737
|
+
* Execute a Lua function on the server.
|
|
738
|
+
*
|
|
739
|
+
* @param id - The identifier of the function.
|
|
740
|
+
* @param payload - The payload of the function which must be a JSON object.
|
|
741
|
+
* @param httpKey - The authentication key used when executed as a non-client HTTP request.
|
|
742
|
+
*/
|
|
743
|
+
function rpc_func(id: string, payload: string, httpKey?: string): Record<string | number, unknown>;
|
|
744
|
+
/**
|
|
745
|
+
* Execute a Lua function on the server.
|
|
746
|
+
*
|
|
747
|
+
* @param id - The identifier of the function.
|
|
748
|
+
* @param payload - The payload of the function which must be a JSON object.
|
|
749
|
+
* @param httpKey - The authentication key used when executed as a non-client HTTP request.
|
|
750
|
+
*/
|
|
751
|
+
function rpc_func2(id: string, payload?: string, httpKey?: string): Record<string | number, unknown>;
|
|
752
|
+
/**
|
|
753
|
+
* Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
|
|
754
|
+
*
|
|
755
|
+
* @param body - Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.
|
|
756
|
+
*/
|
|
757
|
+
function session_logout(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
758
|
+
/**
|
|
759
|
+
* Refresh a user's session using a refresh token retrieved from a previous authentication request.
|
|
760
|
+
*
|
|
761
|
+
* @param body - Authenticate against the server with a refresh token.
|
|
762
|
+
*/
|
|
763
|
+
function session_refresh(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
764
|
+
/**
|
|
765
|
+
* Remove the Apple ID from the social profiles on the current user's account.
|
|
766
|
+
*
|
|
767
|
+
* @param body - Send a Apple Sign In token to the server. Used with authenticate/link/unlink.
|
|
768
|
+
*/
|
|
769
|
+
function unlink_apple(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
770
|
+
/**
|
|
771
|
+
* Remove the custom ID from the social profiles on the current user's account.
|
|
772
|
+
*
|
|
773
|
+
* @param body - Send a custom ID to the server. Used with authenticate/link/unlink.
|
|
774
|
+
*/
|
|
775
|
+
function unlink_custom(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
776
|
+
/**
|
|
777
|
+
* Remove the device ID from the social profiles on the current user's account.
|
|
778
|
+
*
|
|
779
|
+
* @param body - Send a device to the server. Used with authenticate/link/unlink and user.
|
|
780
|
+
*/
|
|
781
|
+
function unlink_device(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
782
|
+
/**
|
|
783
|
+
* Remove the email+password from the social profiles on the current user's account.
|
|
784
|
+
*
|
|
785
|
+
* @param body - Send an email with password to the server. Used with authenticate/link/unlink.
|
|
786
|
+
*/
|
|
787
|
+
function unlink_email(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
788
|
+
/**
|
|
789
|
+
* Remove Facebook from the social profiles on the current user's account.
|
|
790
|
+
*
|
|
791
|
+
* @param body - Send a Facebook token to the server. Used with authenticate/link/unlink.
|
|
792
|
+
*/
|
|
793
|
+
function unlink_facebook(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
794
|
+
/**
|
|
795
|
+
* Remove Facebook Instant Game profile from the social profiles on the current user's account.
|
|
796
|
+
*
|
|
797
|
+
* @param body - Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink.
|
|
798
|
+
*/
|
|
799
|
+
function unlink_facebook_instant_game(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
800
|
+
/**
|
|
801
|
+
* Remove Apple's GameCenter from the social profiles on the current user's account.
|
|
802
|
+
*
|
|
803
|
+
* @param body - Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
|
|
804
|
+
*
|
|
805
|
+
* https://developer.apple.com/documentation/gamekit/gklocalplayer/1515407-generateidentityverificationsign
|
|
806
|
+
*/
|
|
807
|
+
function unlink_game_center(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
808
|
+
/**
|
|
809
|
+
* Remove Google from the social profiles on the current user's account.
|
|
810
|
+
*
|
|
811
|
+
* @param body - Send a Google token to the server. Used with authenticate/link/unlink.
|
|
812
|
+
*/
|
|
813
|
+
function unlink_google(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
814
|
+
/**
|
|
815
|
+
* Remove Steam from the social profiles on the current user's account.
|
|
816
|
+
*
|
|
817
|
+
* @param body - Send a Steam token to the server. Used with authenticate/link/unlink.
|
|
818
|
+
*/
|
|
819
|
+
function unlink_steam(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
820
|
+
/**
|
|
821
|
+
* Update fields in the current user's account.
|
|
822
|
+
*
|
|
823
|
+
* @param body - Update a user's account details.
|
|
824
|
+
*/
|
|
825
|
+
function update_account(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
826
|
+
/**
|
|
827
|
+
* Update fields in a given group.
|
|
828
|
+
*
|
|
829
|
+
* @param groupId - The ID of the group to update.
|
|
830
|
+
*/
|
|
831
|
+
function update_group(groupId: string, body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
832
|
+
/**
|
|
833
|
+
* Validate Apple IAP Receipt
|
|
834
|
+
*/
|
|
835
|
+
function validate_purchase_apple(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
836
|
+
/**
|
|
837
|
+
* Validate FB Instant IAP Receipt
|
|
838
|
+
*/
|
|
839
|
+
function validate_purchase_facebook_instant(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
840
|
+
/**
|
|
841
|
+
* Validate Google IAP Receipt
|
|
842
|
+
*/
|
|
843
|
+
function validate_purchase_google(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
844
|
+
/**
|
|
845
|
+
* Validate Huawei IAP Receipt
|
|
846
|
+
*/
|
|
847
|
+
function validate_purchase_huawei(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
848
|
+
/**
|
|
849
|
+
* Validate Apple Subscription Receipt
|
|
850
|
+
*/
|
|
851
|
+
function validate_subscription_apple(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
852
|
+
/**
|
|
853
|
+
* Validate Google Subscription Receipt
|
|
854
|
+
*/
|
|
855
|
+
function validate_subscription_google(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
856
|
+
/**
|
|
857
|
+
* Write a record to a leaderboard.
|
|
858
|
+
*
|
|
859
|
+
* @param leaderboardId - The ID of the leaderboard to write to.
|
|
860
|
+
* @param record - Record input.
|
|
861
|
+
*/
|
|
862
|
+
function write_leaderboard_record(leaderboardId: string, record: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
863
|
+
/**
|
|
864
|
+
* Write objects into the storage engine.
|
|
865
|
+
*
|
|
866
|
+
* @param body - Write objects to the storage engine.
|
|
867
|
+
*/
|
|
868
|
+
function write_storage_objects(body: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
869
|
+
/**
|
|
870
|
+
* Write a record to a tournament.
|
|
871
|
+
*
|
|
872
|
+
* @param tournamentId - The tournament ID to write the record for.
|
|
873
|
+
* @param record - Record input.
|
|
874
|
+
*/
|
|
875
|
+
function write_tournament_record(tournamentId: string, record: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
876
|
+
/**
|
|
877
|
+
* Write a record to a tournament.
|
|
878
|
+
*
|
|
879
|
+
* @param tournamentId - The tournament ID to write the record for.
|
|
880
|
+
* @param record - Record input.
|
|
881
|
+
*/
|
|
882
|
+
function write_tournament_record2(tournamentId: string, record: Record<string | number, unknown>): Record<string | number, unknown>;
|
|
883
|
+
}
|
|
884
|
+
}
|