rozod 2.0.1 → 2.0.2

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.
@@ -0,0 +1,416 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.postTeamCreatePreemptive = exports.postTeamCreate = exports.postPlayWithUser = exports.postJoinReservedGame = exports.postJoinPrivateGame = exports.postJoinPlayTogetherGame = exports.postJoinGameInstance = exports.postJoinGame = void 0;
4
+ const zod_1 = require("zod");
5
+ const Roblox_GameJoin_Api_GameJoinRequest = zod_1.z.object({
6
+ gameJoinAttemptId: zod_1.z.string().uuid(),
7
+ placeId: zod_1.z.number().int(),
8
+ gamerTag: zod_1.z.string(),
9
+ isPartyLeader: zod_1.z.boolean(),
10
+ isPlayTogetherGame: zod_1.z.boolean(),
11
+ browserTrackerId: zod_1.z.number().int(),
12
+ isTeleport: zod_1.z.boolean(),
13
+ channelName: zod_1.z.string(),
14
+ });
15
+ const Roblox_Web_GameLaunch_ConnectionFlow_ServerConnection = zod_1.z.object({
16
+ Address: zod_1.z.string(),
17
+ Port: zod_1.z.number().int(),
18
+ });
19
+ const Roblox_Web_GameLaunch_ConnectionFlow_UdmuxEndpoint = zod_1.z.object({
20
+ Address: zod_1.z.string(),
21
+ Port: zod_1.z.number().int(),
22
+ });
23
+ const Roblox_Web_GameLaunch_ConnectionFlow_JoinInformation = zod_1.z.object({
24
+ ClientPort: zod_1.z.number().int(),
25
+ MachineAddress: zod_1.z.string(),
26
+ ServerPort: zod_1.z.number().int(),
27
+ ServerConnections: zod_1.z.array(Roblox_Web_GameLaunch_ConnectionFlow_ServerConnection),
28
+ UdmuxEndpoints: zod_1.z.array(Roblox_Web_GameLaunch_ConnectionFlow_UdmuxEndpoint),
29
+ DirectServerReturn: zod_1.z.boolean(),
30
+ TokenGenAlgorithm: zod_1.z.number().int(),
31
+ PepperId: zod_1.z.number().int(),
32
+ TokenValue: zod_1.z.string(),
33
+ PingUrl: zod_1.z.string(),
34
+ PingInterval: zod_1.z.number().int(),
35
+ UserName: zod_1.z.string(),
36
+ DisplayName: zod_1.z.string(),
37
+ HasVerifiedBadge: zod_1.z.boolean(),
38
+ SeleniumTestMode: zod_1.z.boolean(),
39
+ UserId: zod_1.z.number().int(),
40
+ RobloxLocale: zod_1.z.string(),
41
+ GameLocale: zod_1.z.string(),
42
+ SuperSafeChat: zod_1.z.boolean(),
43
+ FlexibleChatEnabled: zod_1.z.boolean(),
44
+ CharacterAppearance: zod_1.z.string(),
45
+ ClientTicket: zod_1.z.string(),
46
+ GameId: zod_1.z.string(),
47
+ PlaceId: zod_1.z.number().int(),
48
+ BaseUrl: zod_1.z.string(),
49
+ ChatStyle: zod_1.z.string(),
50
+ CreatorId: zod_1.z.number().int(),
51
+ CreatorTypeEnum: zod_1.z.string(),
52
+ MembershipType: zod_1.z.string(),
53
+ AccountAge: zod_1.z.number().int(),
54
+ CookieStoreFirstTimePlayKey: zod_1.z.string(),
55
+ CookieStoreFiveMinutePlayKey: zod_1.z.string(),
56
+ CookieStoreEnabled: zod_1.z.boolean(),
57
+ IsUnknownOrUnder13: zod_1.z.boolean(),
58
+ GameChatType: zod_1.z.string(),
59
+ SessionId: zod_1.z.string(),
60
+ AnalyticsSessionId: zod_1.z.string(),
61
+ DataCenterId: zod_1.z.number().int(),
62
+ UniverseId: zod_1.z.number().int(),
63
+ FollowUserId: zod_1.z.number().int(),
64
+ characterAppearanceId: zod_1.z.number().int(),
65
+ CountryCode: zod_1.z.string(),
66
+ AlternateName: zod_1.z.string(),
67
+ RandomSeed1: zod_1.z.string().regex(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/),
68
+ ClientPublicKeyData: zod_1.z.string(),
69
+ RccVersion: zod_1.z.string(),
70
+ ChannelName: zod_1.z.string(),
71
+ VerifiedAMP: zod_1.z.number().int(),
72
+ });
73
+ const Roblox_GameJoin_Api_GameJoinResponse = zod_1.z.object({
74
+ jobId: zod_1.z.string(),
75
+ status: zod_1.z.number().int(),
76
+ joinScriptUrl: zod_1.z.string(),
77
+ authenticationUrl: zod_1.z.string(),
78
+ authenticationTicket: zod_1.z.string(),
79
+ message: zod_1.z.string(),
80
+ joinScript: Roblox_Web_GameLaunch_ConnectionFlow_JoinInformation,
81
+ queuePosition: zod_1.z.number().int(),
82
+ });
83
+ const Roblox_GameJoin_Api_JoinGameInstanceRequest = zod_1.z.object({
84
+ gameId: zod_1.z.string().uuid(),
85
+ gameJoinAttemptId: zod_1.z.string().uuid(),
86
+ placeId: zod_1.z.number().int(),
87
+ gamerTag: zod_1.z.string(),
88
+ isPartyLeader: zod_1.z.boolean(),
89
+ isPlayTogetherGame: zod_1.z.boolean(),
90
+ browserTrackerId: zod_1.z.number().int(),
91
+ isTeleport: zod_1.z.boolean(),
92
+ channelName: zod_1.z.string(),
93
+ });
94
+ const Roblox_GameJoin_Api_JoinPlayTogetherGameRequest = zod_1.z.object({
95
+ conversationId: zod_1.z.number().int(),
96
+ gameJoinAttemptId: zod_1.z.string().uuid(),
97
+ placeId: zod_1.z.number().int(),
98
+ gamerTag: zod_1.z.string(),
99
+ isPartyLeader: zod_1.z.boolean(),
100
+ isPlayTogetherGame: zod_1.z.boolean(),
101
+ browserTrackerId: zod_1.z.number().int(),
102
+ isTeleport: zod_1.z.boolean(),
103
+ channelName: zod_1.z.string(),
104
+ });
105
+ const Roblox_GameJoin_Api_JoinPrivateGameRequest = zod_1.z.object({
106
+ accessCode: zod_1.z.string(),
107
+ linkCode: zod_1.z.string(),
108
+ gameJoinAttemptId: zod_1.z.string().uuid(),
109
+ placeId: zod_1.z.number().int(),
110
+ gamerTag: zod_1.z.string(),
111
+ isPartyLeader: zod_1.z.boolean(),
112
+ isPlayTogetherGame: zod_1.z.boolean(),
113
+ browserTrackerId: zod_1.z.number().int(),
114
+ isTeleport: zod_1.z.boolean(),
115
+ channelName: zod_1.z.string(),
116
+ });
117
+ const Roblox_GameJoin_Api_JoinReservedGameRequest = zod_1.z.object({
118
+ accessCode: zod_1.z.string(),
119
+ gameJoinAttemptId: zod_1.z.string().uuid(),
120
+ placeId: zod_1.z.number().int(),
121
+ gamerTag: zod_1.z.string(),
122
+ isPartyLeader: zod_1.z.boolean(),
123
+ isPlayTogetherGame: zod_1.z.boolean(),
124
+ browserTrackerId: zod_1.z.number().int(),
125
+ isTeleport: zod_1.z.boolean(),
126
+ channelName: zod_1.z.string(),
127
+ });
128
+ const Roblox_GameJoin_Api_PlayWithUserRequest = zod_1.z.object({
129
+ userIdToFollow: zod_1.z.number().int(),
130
+ gameJoinAttemptId: zod_1.z.string().uuid(),
131
+ placeId: zod_1.z.number().int(),
132
+ gamerTag: zod_1.z.string(),
133
+ isPartyLeader: zod_1.z.boolean(),
134
+ isPlayTogetherGame: zod_1.z.boolean(),
135
+ browserTrackerId: zod_1.z.number().int(),
136
+ isTeleport: zod_1.z.boolean(),
137
+ channelName: zod_1.z.string(),
138
+ });
139
+ const Roblox_GameJoin_Api_TeamCreateRequest = zod_1.z.object({
140
+ gameJoinAttemptId: zod_1.z.string().uuid(),
141
+ placeId: zod_1.z.number().int(),
142
+ gamerTag: zod_1.z.string(),
143
+ isPartyLeader: zod_1.z.boolean(),
144
+ isPlayTogetherGame: zod_1.z.boolean(),
145
+ browserTrackerId: zod_1.z.number().int(),
146
+ isTeleport: zod_1.z.boolean(),
147
+ channelName: zod_1.z.string(),
148
+ });
149
+ const Roblox_GameJoin_Api_TeamCreateResponse = zod_1.z.object({
150
+ status: zod_1.z.number().int(),
151
+ message: zod_1.z.string(),
152
+ settings: zod_1.z.object({}),
153
+ });
154
+ const schemas = {
155
+ Roblox_GameJoin_Api_GameJoinRequest,
156
+ Roblox_Web_GameLaunch_ConnectionFlow_ServerConnection,
157
+ Roblox_Web_GameLaunch_ConnectionFlow_UdmuxEndpoint,
158
+ Roblox_Web_GameLaunch_ConnectionFlow_JoinInformation,
159
+ Roblox_GameJoin_Api_GameJoinResponse,
160
+ Roblox_GameJoin_Api_JoinGameInstanceRequest,
161
+ Roblox_GameJoin_Api_JoinPlayTogetherGameRequest,
162
+ Roblox_GameJoin_Api_JoinPrivateGameRequest,
163
+ Roblox_GameJoin_Api_JoinReservedGameRequest,
164
+ Roblox_GameJoin_Api_PlayWithUserRequest,
165
+ Roblox_GameJoin_Api_TeamCreateRequest,
166
+ Roblox_GameJoin_Api_TeamCreateResponse,
167
+ };
168
+ /**
169
+ * @api post https://gamejoin.roblox.com/v1/join-game
170
+ * @param body The Roblox.GameJoin.Api.GameJoinRequest in JSON format
171
+ */
172
+ exports.postJoinGame = {
173
+ method: 'post',
174
+ path: '/v1/join-game',
175
+ baseUrl: 'https://gamejoin.roblox.com',
176
+ requestFormat: 'json',
177
+ serializationMethod: {
178
+ body: {},
179
+ },
180
+ parameters: {
181
+ body: Roblox_GameJoin_Api_GameJoinRequest,
182
+ },
183
+ response: Roblox_GameJoin_Api_GameJoinResponse,
184
+ errors: [
185
+ {
186
+ status: 400,
187
+ description: `-1: An unknown error occurred.`,
188
+ schema: zod_1.z.void(),
189
+ },
190
+ {
191
+ status: 429,
192
+ description: `3: Too many requests, please slow down.`,
193
+ schema: zod_1.z.void(),
194
+ },
195
+ ],
196
+ };
197
+ /**
198
+ * @api post https://gamejoin.roblox.com/v1/join-game-instance
199
+ * @param body The Roblox.GameJoin.Api.JoinGameInstanceRequest in JSON format
200
+ */
201
+ exports.postJoinGameInstance = {
202
+ method: 'post',
203
+ path: '/v1/join-game-instance',
204
+ baseUrl: 'https://gamejoin.roblox.com',
205
+ requestFormat: 'json',
206
+ serializationMethod: {
207
+ body: {},
208
+ },
209
+ parameters: {
210
+ body: Roblox_GameJoin_Api_JoinGameInstanceRequest,
211
+ },
212
+ response: Roblox_GameJoin_Api_GameJoinResponse,
213
+ errors: [
214
+ {
215
+ status: 400,
216
+ description: `-1: An unknown error occurred.`,
217
+ schema: zod_1.z.void(),
218
+ },
219
+ {
220
+ status: 429,
221
+ description: `3: Too many requests, please slow down.`,
222
+ schema: zod_1.z.void(),
223
+ },
224
+ ],
225
+ };
226
+ /**
227
+ * @api post https://gamejoin.roblox.com/v1/join-play-together-game
228
+ * @param body The Roblox.GameJoin.Api.JoinPlayTogetherGameRequest in JSON format
229
+ */
230
+ exports.postJoinPlayTogetherGame = {
231
+ method: 'post',
232
+ path: '/v1/join-play-together-game',
233
+ baseUrl: 'https://gamejoin.roblox.com',
234
+ requestFormat: 'json',
235
+ serializationMethod: {
236
+ body: {},
237
+ },
238
+ parameters: {
239
+ body: Roblox_GameJoin_Api_JoinPlayTogetherGameRequest,
240
+ },
241
+ response: Roblox_GameJoin_Api_GameJoinResponse,
242
+ errors: [
243
+ {
244
+ status: 400,
245
+ description: `-1: An unknown error occurred.`,
246
+ schema: zod_1.z.void(),
247
+ },
248
+ {
249
+ status: 429,
250
+ description: `3: Too many requests, please slow down.`,
251
+ schema: zod_1.z.void(),
252
+ },
253
+ ],
254
+ };
255
+ /**
256
+ * @api post https://gamejoin.roblox.com/v1/join-private-game
257
+ * @param body The Roblox.GameJoin.Api.JoinPrivateGameRequest in JSON format
258
+ */
259
+ exports.postJoinPrivateGame = {
260
+ method: 'post',
261
+ path: '/v1/join-private-game',
262
+ baseUrl: 'https://gamejoin.roblox.com',
263
+ requestFormat: 'json',
264
+ serializationMethod: {
265
+ body: {},
266
+ },
267
+ parameters: {
268
+ body: Roblox_GameJoin_Api_JoinPrivateGameRequest,
269
+ },
270
+ response: Roblox_GameJoin_Api_GameJoinResponse,
271
+ errors: [
272
+ {
273
+ status: 400,
274
+ description: `-1: An unknown error occurred.`,
275
+ schema: zod_1.z.void(),
276
+ },
277
+ {
278
+ status: 429,
279
+ description: `3: Too many requests, please slow down.`,
280
+ schema: zod_1.z.void(),
281
+ },
282
+ ],
283
+ };
284
+ /**
285
+ * @api post https://gamejoin.roblox.com/v1/join-reserved-game
286
+ * @param body The Roblox.GameJoin.Api.JoinReservedGameRequest in JSON format
287
+ */
288
+ exports.postJoinReservedGame = {
289
+ method: 'post',
290
+ path: '/v1/join-reserved-game',
291
+ baseUrl: 'https://gamejoin.roblox.com',
292
+ requestFormat: 'json',
293
+ serializationMethod: {
294
+ body: {},
295
+ },
296
+ parameters: {
297
+ body: Roblox_GameJoin_Api_JoinReservedGameRequest,
298
+ },
299
+ response: Roblox_GameJoin_Api_GameJoinResponse,
300
+ errors: [
301
+ {
302
+ status: 400,
303
+ description: `-1: An unknown error occurred.`,
304
+ schema: zod_1.z.void(),
305
+ },
306
+ {
307
+ status: 429,
308
+ description: `3: Too many requests, please slow down.`,
309
+ schema: zod_1.z.void(),
310
+ },
311
+ ],
312
+ };
313
+ /**
314
+ * @api post https://gamejoin.roblox.com/v1/play-with-user
315
+ * @param body The Roblox.GameJoin.Api.PlayWithUserRequest in JSON format
316
+ */
317
+ exports.postPlayWithUser = {
318
+ method: 'post',
319
+ path: '/v1/play-with-user',
320
+ baseUrl: 'https://gamejoin.roblox.com',
321
+ requestFormat: 'json',
322
+ serializationMethod: {
323
+ body: {},
324
+ },
325
+ parameters: {
326
+ body: Roblox_GameJoin_Api_PlayWithUserRequest,
327
+ },
328
+ response: Roblox_GameJoin_Api_GameJoinResponse,
329
+ errors: [
330
+ {
331
+ status: 400,
332
+ description: `-1: An unknown error occurred.`,
333
+ schema: zod_1.z.void(),
334
+ },
335
+ {
336
+ status: 429,
337
+ description: `3: Too many requests, please slow down.`,
338
+ schema: zod_1.z.void(),
339
+ },
340
+ ],
341
+ };
342
+ /**
343
+ * @api post https://gamejoin.roblox.com/v1/team-create
344
+ * @param body The Roblox.GameJoin.Api.TeamCreateRequest in JSON format
345
+ */
346
+ exports.postTeamCreate = {
347
+ method: 'post',
348
+ path: '/v1/team-create',
349
+ baseUrl: 'https://gamejoin.roblox.com',
350
+ description: `Xsrf protection disabled because it will only be used on Roblox clients. Adding an extra
351
+ round-trip would impact client performance.`,
352
+ requestFormat: 'json',
353
+ serializationMethod: {
354
+ body: {},
355
+ },
356
+ parameters: {
357
+ body: Roblox_GameJoin_Api_TeamCreateRequest,
358
+ },
359
+ response: Roblox_GameJoin_Api_TeamCreateResponse,
360
+ errors: [
361
+ {
362
+ status: 400,
363
+ description: `-1: An unknown error occurred.`,
364
+ schema: zod_1.z.void(),
365
+ },
366
+ {
367
+ status: 403,
368
+ description: `1: Request is not authorized from specified origin.
369
+ 2: User is invalid or does not exist.`,
370
+ schema: zod_1.z.void(),
371
+ },
372
+ {
373
+ status: 429,
374
+ description: `3: Too many requests, please slow down.`,
375
+ schema: zod_1.z.void(),
376
+ },
377
+ ],
378
+ };
379
+ /**
380
+ * @api post https://gamejoin.roblox.com/v1/team-create-preemptive
381
+ * @param body The Roblox.GameJoin.Api.TeamCreateRequest in JSON format
382
+ */
383
+ exports.postTeamCreatePreemptive = {
384
+ method: 'post',
385
+ path: '/v1/team-create-preemptive',
386
+ baseUrl: 'https://gamejoin.roblox.com',
387
+ description: `Since the request origin might not be Roblox software, this endpoint implements a different set of security rules.
388
+ More specifically, it requires Xsrf protection and disables user-agent check so that it can be called from browsers.`,
389
+ requestFormat: 'json',
390
+ serializationMethod: {
391
+ body: {},
392
+ },
393
+ parameters: {
394
+ body: Roblox_GameJoin_Api_TeamCreateRequest,
395
+ },
396
+ response: Roblox_GameJoin_Api_TeamCreateResponse,
397
+ errors: [
398
+ {
399
+ status: 400,
400
+ description: `-1: An unknown error occurred.`,
401
+ schema: zod_1.z.void(),
402
+ },
403
+ {
404
+ status: 403,
405
+ description: `0: Token Validation Failed
406
+ 1: Request is not authorized from specified origin.
407
+ 2: User is invalid or does not exist.`,
408
+ schema: zod_1.z.void(),
409
+ },
410
+ {
411
+ status: 429,
412
+ description: `3: Too many requests, please slow down.`,
413
+ schema: zod_1.z.void(),
414
+ },
415
+ ],
416
+ };
@@ -280,6 +280,7 @@ export declare const getGamesPlaceidPrivateServers: {
280
280
  id: string;
281
281
  name: string;
282
282
  playing: number;
283
+ accessCode: string;
283
284
  maxPlayers: number;
284
285
  playerTokens: string[];
285
286
  players: {
@@ -291,7 +292,6 @@ export declare const getGamesPlaceidPrivateServers: {
291
292
  fps: number;
292
293
  ping: number;
293
294
  vipServerId: number;
294
- accessCode: string;
295
295
  owner: {
296
296
  id: number;
297
297
  name: string;
@@ -302,6 +302,7 @@ export declare const getGamesPlaceidPrivateServers: {
302
302
  id: string;
303
303
  name: string;
304
304
  playing: number;
305
+ accessCode: string;
305
306
  maxPlayers: number;
306
307
  playerTokens: string[];
307
308
  players: {
@@ -313,7 +314,6 @@ export declare const getGamesPlaceidPrivateServers: {
313
314
  fps: number;
314
315
  ping: number;
315
316
  vipServerId: number;
316
- accessCode: string;
317
317
  owner: {
318
318
  id: number;
319
319
  name: string;
@@ -326,6 +326,7 @@ export declare const getGamesPlaceidPrivateServers: {
326
326
  id: string;
327
327
  name: string;
328
328
  playing: number;
329
+ accessCode: string;
329
330
  maxPlayers: number;
330
331
  playerTokens: string[];
331
332
  players: {
@@ -337,7 +338,6 @@ export declare const getGamesPlaceidPrivateServers: {
337
338
  fps: number;
338
339
  ping: number;
339
340
  vipServerId: number;
340
- accessCode: string;
341
341
  owner: {
342
342
  id: number;
343
343
  name: string;
@@ -352,6 +352,7 @@ export declare const getGamesPlaceidPrivateServers: {
352
352
  id: string;
353
353
  name: string;
354
354
  playing: number;
355
+ accessCode: string;
355
356
  maxPlayers: number;
356
357
  playerTokens: string[];
357
358
  players: {
@@ -363,7 +364,6 @@ export declare const getGamesPlaceidPrivateServers: {
363
364
  fps: number;
364
365
  ping: number;
365
366
  vipServerId: number;
366
- accessCode: string;
367
367
  owner: {
368
368
  id: number;
369
369
  name: string;
@@ -475,6 +475,7 @@ export declare const getGamesPlaceidServersServertype: {
475
475
  id: string;
476
476
  name: string;
477
477
  playing: number;
478
+ accessCode: string;
478
479
  maxPlayers: number;
479
480
  playerTokens: string[];
480
481
  players: {
@@ -486,7 +487,6 @@ export declare const getGamesPlaceidServersServertype: {
486
487
  fps: number;
487
488
  ping: number;
488
489
  vipServerId: number;
489
- accessCode: string;
490
490
  owner: {
491
491
  id: number;
492
492
  name: string;
@@ -497,6 +497,7 @@ export declare const getGamesPlaceidServersServertype: {
497
497
  id: string;
498
498
  name: string;
499
499
  playing: number;
500
+ accessCode: string;
500
501
  maxPlayers: number;
501
502
  playerTokens: string[];
502
503
  players: {
@@ -508,7 +509,6 @@ export declare const getGamesPlaceidServersServertype: {
508
509
  fps: number;
509
510
  ping: number;
510
511
  vipServerId: number;
511
- accessCode: string;
512
512
  owner: {
513
513
  id: number;
514
514
  name: string;
@@ -521,6 +521,7 @@ export declare const getGamesPlaceidServersServertype: {
521
521
  id: string;
522
522
  name: string;
523
523
  playing: number;
524
+ accessCode: string;
524
525
  maxPlayers: number;
525
526
  playerTokens: string[];
526
527
  players: {
@@ -532,7 +533,6 @@ export declare const getGamesPlaceidServersServertype: {
532
533
  fps: number;
533
534
  ping: number;
534
535
  vipServerId: number;
535
- accessCode: string;
536
536
  owner: {
537
537
  id: number;
538
538
  name: string;
@@ -547,6 +547,7 @@ export declare const getGamesPlaceidServersServertype: {
547
547
  id: string;
548
548
  name: string;
549
549
  playing: number;
550
+ accessCode: string;
550
551
  maxPlayers: number;
551
552
  playerTokens: string[];
552
553
  players: {
@@ -558,7 +559,6 @@ export declare const getGamesPlaceidServersServertype: {
558
559
  fps: number;
559
560
  ping: number;
560
561
  vipServerId: number;
561
- accessCode: string;
562
562
  owner: {
563
563
  id: number;
564
564
  name: string;
@@ -2304,6 +2304,7 @@ export declare const postGamesVipServersUniverseid: {
2304
2304
  id: string;
2305
2305
  name: string;
2306
2306
  playing: number;
2307
+ accessCode: string;
2307
2308
  maxPlayers: number;
2308
2309
  playerTokens: string[];
2309
2310
  players: {
@@ -2315,7 +2316,6 @@ export declare const postGamesVipServersUniverseid: {
2315
2316
  fps: number;
2316
2317
  ping: number;
2317
2318
  vipServerId: number;
2318
- accessCode: string;
2319
2319
  owner: {
2320
2320
  id: number;
2321
2321
  name: string;
@@ -2326,6 +2326,7 @@ export declare const postGamesVipServersUniverseid: {
2326
2326
  id: string;
2327
2327
  name: string;
2328
2328
  playing: number;
2329
+ accessCode: string;
2329
2330
  maxPlayers: number;
2330
2331
  playerTokens: string[];
2331
2332
  players: {
@@ -2337,7 +2338,6 @@ export declare const postGamesVipServersUniverseid: {
2337
2338
  fps: number;
2338
2339
  ping: number;
2339
2340
  vipServerId: number;
2340
- accessCode: string;
2341
2341
  owner: {
2342
2342
  id: number;
2343
2343
  name: string;
@@ -2465,6 +2465,7 @@ export declare const getPrivateServers: {
2465
2465
  id: string;
2466
2466
  name: string;
2467
2467
  playing: number;
2468
+ accessCode: string;
2468
2469
  maxPlayers: number;
2469
2470
  playerTokens: string[];
2470
2471
  players: {
@@ -2476,7 +2477,6 @@ export declare const getPrivateServers: {
2476
2477
  fps: number;
2477
2478
  ping: number;
2478
2479
  vipServerId: number;
2479
- accessCode: string;
2480
2480
  owner: {
2481
2481
  id: number;
2482
2482
  name: string;
@@ -2487,6 +2487,7 @@ export declare const getPrivateServers: {
2487
2487
  id: string;
2488
2488
  name: string;
2489
2489
  playing: number;
2490
+ accessCode: string;
2490
2491
  maxPlayers: number;
2491
2492
  playerTokens: string[];
2492
2493
  players: {
@@ -2498,7 +2499,6 @@ export declare const getPrivateServers: {
2498
2499
  fps: number;
2499
2500
  ping: number;
2500
2501
  vipServerId: number;
2501
- accessCode: string;
2502
2502
  owner: {
2503
2503
  id: number;
2504
2504
  name: string;
@@ -2511,6 +2511,7 @@ export declare const getPrivateServers: {
2511
2511
  id: string;
2512
2512
  name: string;
2513
2513
  playing: number;
2514
+ accessCode: string;
2514
2515
  maxPlayers: number;
2515
2516
  playerTokens: string[];
2516
2517
  players: {
@@ -2522,7 +2523,6 @@ export declare const getPrivateServers: {
2522
2523
  fps: number;
2523
2524
  ping: number;
2524
2525
  vipServerId: number;
2525
- accessCode: string;
2526
2526
  owner: {
2527
2527
  id: number;
2528
2528
  name: string;
@@ -2535,6 +2535,7 @@ export declare const getPrivateServers: {
2535
2535
  id: string;
2536
2536
  name: string;
2537
2537
  playing: number;
2538
+ accessCode: string;
2538
2539
  maxPlayers: number;
2539
2540
  playerTokens: string[];
2540
2541
  players: {
@@ -2546,7 +2547,6 @@ export declare const getPrivateServers: {
2546
2547
  fps: number;
2547
2548
  ping: number;
2548
2549
  vipServerId: number;
2549
- accessCode: string;
2550
2550
  owner: {
2551
2551
  id: number;
2552
2552
  name: string;
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export type EndpointSchema = {
6
6
  path: string;
7
7
  baseUrl: string;
8
8
  serializationMethod?: Record<string, {
9
- style: string;
9
+ style?: string;
10
10
  explode?: boolean;
11
11
  }>;
12
12
  requestFormat?: RequestFormat;
package/lib/index.js CHANGED
@@ -53,7 +53,7 @@ async function fetchApi(endpoint, params, requestOptions = { mode: 'cors', crede
53
53
  continue;
54
54
  }
55
55
  const { style, explode } = endpoint.serializationMethod[key];
56
- if (!Array.isArray(value)) {
56
+ if (!Array.isArray(value) || !style) {
57
57
  queryParams[key] = String(value);
58
58
  continue;
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rozod",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Wrapper for Roblox API using Zod and custom API Client using fetch",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -35,6 +35,7 @@
35
35
  "ts-jest": "^29.1.0",
36
36
  "tslint": "^6.1.3",
37
37
  "tslint-config-prettier": "^1.18.0",
38
+ "typedoc": "^0.24.6",
38
39
  "typescript": "^5.0.4"
39
40
  },
40
41
  "keywords": [],