rozod 1.0.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.
Files changed (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +551 -0
  2. package/lib/endpoints/accountinformationv1.js +652 -0
  3. package/lib/endpoints/accountsettingsv1.d.ts +548 -0
  4. package/lib/endpoints/accountsettingsv1.js +712 -0
  5. package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
  6. package/lib/endpoints/assetdeliveryv1.js +268 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
  8. package/lib/endpoints/assetdeliveryv2.js +271 -0
  9. package/lib/endpoints/authv1.d.ts +1328 -0
  10. package/lib/endpoints/authv1.js +1168 -0
  11. package/lib/endpoints/authv2.d.ts +1239 -0
  12. package/lib/endpoints/authv2.js +1057 -0
  13. package/lib/endpoints/authv3.d.ts +35 -0
  14. package/lib/endpoints/authv3.js +41 -0
  15. package/lib/endpoints/avatarv1.d.ts +1841 -0
  16. package/lib/endpoints/avatarv1.js +726 -0
  17. package/lib/endpoints/avatarv2.d.ts +1077 -0
  18. package/lib/endpoints/avatarv2.js +316 -0
  19. package/lib/endpoints/avatarv3.d.ts +656 -0
  20. package/lib/endpoints/avatarv3.js +219 -0
  21. package/lib/endpoints/badgesv1.d.ts +641 -0
  22. package/lib/endpoints/badgesv1.js +345 -0
  23. package/lib/endpoints/catalogv1.d.ts +1715 -0
  24. package/lib/endpoints/catalogv1.js +792 -0
  25. package/lib/endpoints/chatv2.d.ts +2179 -0
  26. package/lib/endpoints/chatv2.js +721 -0
  27. package/lib/endpoints/developv1.d.ts +2097 -0
  28. package/lib/endpoints/developv1.js +1537 -0
  29. package/lib/endpoints/developv2.d.ts +619 -0
  30. package/lib/endpoints/developv2.js +316 -0
  31. package/lib/endpoints/economyv1.d.ts +20 -0
  32. package/lib/endpoints/economyv1.js +28 -0
  33. package/lib/endpoints/friendsv1.d.ts +1093 -0
  34. package/lib/endpoints/friendsv1.js +818 -0
  35. package/lib/endpoints/gamesv1.d.ts +2749 -0
  36. package/lib/endpoints/gamesv1.js +1294 -0
  37. package/lib/endpoints/gamesv2.d.ts +582 -0
  38. package/lib/endpoints/gamesv2.js +258 -0
  39. package/lib/endpoints/groupsv1.d.ts +5528 -0
  40. package/lib/endpoints/groupsv1.js +2434 -0
  41. package/lib/endpoints/groupsv2.d.ts +530 -0
  42. package/lib/endpoints/groupsv2.js +201 -0
  43. package/lib/endpoints/inventoryv1.d.ts +436 -0
  44. package/lib/endpoints/inventoryv1.js +434 -0
  45. package/lib/endpoints/inventoryv2.d.ts +256 -0
  46. package/lib/endpoints/inventoryv2.js +241 -0
  47. package/lib/endpoints/presencev1.d.ts +134 -0
  48. package/lib/endpoints/presencev1.js +93 -0
  49. package/lib/endpoints/privatemessagesv1.d.ts +620 -0
  50. package/lib/endpoints/privatemessagesv1.js +338 -0
  51. package/lib/endpoints/thumbnailsv1.d.ts +897 -0
  52. package/lib/endpoints/thumbnailsv1.js +560 -0
  53. package/lib/endpoints/tradesv1.d.ts +473 -0
  54. package/lib/endpoints/tradesv1.js +403 -0
  55. package/lib/endpoints/translationsv1.d.ts +80 -0
  56. package/lib/endpoints/translationsv1.js +122 -0
  57. package/lib/endpoints/usersv1.d.ts +391 -0
  58. package/lib/endpoints/usersv1.js +344 -0
  59. package/lib/index.d.ts +85 -0
  60. package/lib/index.js +293 -0
  61. package/package.json +39 -0
  62. package/readme.md +99 -0
@@ -0,0 +1,403 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getV1usersUserIdcanTradeWith = exports.postV1tradessend = exports.getV1tradesmetadata = exports.postV1tradesexpireOutdated = exports.getV1tradesTradeStatusTypecount = exports.getV1tradesTradeStatusType = exports.postV1tradesTradeIddecline = exports.postV1tradesTradeIdcounter = exports.postV1tradesTradeIdaccept = exports.getV1tradesTradeId = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_Web_Responses_Users_SkinnyUserResponse = zod_1.z
6
+ .object({ id: zod_1.z.number().int(), name: zod_1.z.string(), displayName: zod_1.z.string() })
7
+ .partial();
8
+ var Roblox_Trades_Api_UserAssetResponse = zod_1.z
9
+ .object({
10
+ id: zod_1.z.number().int(),
11
+ serialNumber: zod_1.z.number().int(),
12
+ assetId: zod_1.z.number().int(),
13
+ name: zod_1.z.string(),
14
+ recentAveragePrice: zod_1.z.number().int(),
15
+ originalPrice: zod_1.z.number().int(),
16
+ assetStock: zod_1.z.number().int(),
17
+ membershipType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
18
+ })
19
+ .partial();
20
+ var Roblox_Trades_Api_TradeOfferResponse = zod_1.z
21
+ .object({
22
+ user: Roblox_Web_Responses_Users_SkinnyUserResponse,
23
+ userAssets: zod_1.z.array(Roblox_Trades_Api_UserAssetResponse),
24
+ robux: zod_1.z.number().int(),
25
+ })
26
+ .partial();
27
+ var Roblox_Trades_Api_TradeDetailResponse = zod_1.z
28
+ .object({
29
+ offers: zod_1.z.array(Roblox_Trades_Api_TradeOfferResponse),
30
+ id: zod_1.z.number().int(),
31
+ user: Roblox_Web_Responses_Users_SkinnyUserResponse,
32
+ created: zod_1.z.string().datetime(),
33
+ expiration: zod_1.z.string().datetime(),
34
+ isActive: zod_1.z.boolean(),
35
+ status: zod_1.z.union([
36
+ zod_1.z.literal(1),
37
+ zod_1.z.literal(2),
38
+ zod_1.z.literal(3),
39
+ zod_1.z.literal(4),
40
+ zod_1.z.literal(5),
41
+ zod_1.z.literal(6),
42
+ zod_1.z.literal(7),
43
+ zod_1.z.literal(8),
44
+ zod_1.z.literal(9),
45
+ zod_1.z.literal(10),
46
+ zod_1.z.literal(11),
47
+ ]),
48
+ })
49
+ .partial();
50
+ var Roblox_Trades_Api_TradeResponse = zod_1.z
51
+ .object({
52
+ id: zod_1.z.number().int(),
53
+ user: Roblox_Web_Responses_Users_SkinnyUserResponse,
54
+ created: zod_1.z.string().datetime(),
55
+ expiration: zod_1.z.string().datetime(),
56
+ isActive: zod_1.z.boolean(),
57
+ status: zod_1.z.union([
58
+ zod_1.z.literal(1),
59
+ zod_1.z.literal(2),
60
+ zod_1.z.literal(3),
61
+ zod_1.z.literal(4),
62
+ zod_1.z.literal(5),
63
+ zod_1.z.literal(6),
64
+ zod_1.z.literal(7),
65
+ zod_1.z.literal(8),
66
+ zod_1.z.literal(9),
67
+ zod_1.z.literal(10),
68
+ zod_1.z.literal(11),
69
+ ]),
70
+ })
71
+ .partial();
72
+ var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_ = zod_1.z
73
+ .object({
74
+ previousPageCursor: zod_1.z.string(),
75
+ nextPageCursor: zod_1.z.string(),
76
+ data: zod_1.z.array(Roblox_Trades_Api_TradeResponse),
77
+ })
78
+ .partial();
79
+ var Roblox_Trades_Api_TradeCountResponse = zod_1.z.object({ count: zod_1.z.number().int() }).partial();
80
+ var Roblox_Trades_Api_TradeMetadata = zod_1.z
81
+ .object({
82
+ maxItemsPerSide: zod_1.z.number().int(),
83
+ minValueRatio: zod_1.z.number(),
84
+ tradeSystemMaxRobuxPercent: zod_1.z.number(),
85
+ tradeSystemRobuxFee: zod_1.z.number(),
86
+ })
87
+ .partial();
88
+ var Roblox_Trades_Api_CanTradeResponse = zod_1.z
89
+ .object({
90
+ canTrade: zod_1.z.boolean(),
91
+ status: zod_1.z.union([
92
+ zod_1.z.literal(0),
93
+ zod_1.z.literal(1),
94
+ zod_1.z.literal(2),
95
+ zod_1.z.literal(3),
96
+ zod_1.z.literal(4),
97
+ zod_1.z.literal(5),
98
+ zod_1.z.literal(6),
99
+ zod_1.z.literal(7),
100
+ ]),
101
+ })
102
+ .partial();
103
+ var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
104
+ var Roblox_Trades_Api_TradeOfferRequest = zod_1.z
105
+ .object({
106
+ userId: zod_1.z.number().int(),
107
+ userAssetIds: zod_1.z.array(zod_1.z.number()),
108
+ robux: zod_1.z.number().int(),
109
+ })
110
+ .partial();
111
+ var Roblox_Trades_Api_TradeRequest = zod_1.z.object({ offers: zod_1.z.array(Roblox_Trades_Api_TradeOfferRequest) }).partial();
112
+ var Roblox_Trades_Api_NewTradeResponse = zod_1.z.object({ id: zod_1.z.number().int() }).partial();
113
+ var schemas = {
114
+ Roblox_Web_Responses_Users_SkinnyUserResponse: Roblox_Web_Responses_Users_SkinnyUserResponse,
115
+ Roblox_Trades_Api_UserAssetResponse: Roblox_Trades_Api_UserAssetResponse,
116
+ Roblox_Trades_Api_TradeOfferResponse: Roblox_Trades_Api_TradeOfferResponse,
117
+ Roblox_Trades_Api_TradeDetailResponse: Roblox_Trades_Api_TradeDetailResponse,
118
+ Roblox_Trades_Api_TradeResponse: Roblox_Trades_Api_TradeResponse,
119
+ Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_,
120
+ Roblox_Trades_Api_TradeCountResponse: Roblox_Trades_Api_TradeCountResponse,
121
+ Roblox_Trades_Api_TradeMetadata: Roblox_Trades_Api_TradeMetadata,
122
+ Roblox_Trades_Api_CanTradeResponse: Roblox_Trades_Api_CanTradeResponse,
123
+ Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
124
+ Roblox_Trades_Api_TradeOfferRequest: Roblox_Trades_Api_TradeOfferRequest,
125
+ Roblox_Trades_Api_TradeRequest: Roblox_Trades_Api_TradeRequest,
126
+ Roblox_Trades_Api_NewTradeResponse: Roblox_Trades_Api_NewTradeResponse,
127
+ };
128
+ exports.getV1tradesTradeId = {
129
+ method: 'get',
130
+ path: '/v1/trades/:tradeId',
131
+ baseUrl: 'https://trades.roblox.com',
132
+ requestFormat: 'json',
133
+ parameters: {
134
+ tradeId: zod_1.z.number().int(),
135
+ },
136
+ response: Roblox_Trades_Api_TradeDetailResponse,
137
+ errors: [
138
+ {
139
+ status: 400,
140
+ description: "2: The trade cannot be found or you are not authorized to view it.",
141
+ schema: zod_1.z.void(),
142
+ },
143
+ {
144
+ status: 401,
145
+ description: "0: Authorization has been denied for this request.",
146
+ schema: zod_1.z.void(),
147
+ },
148
+ ],
149
+ };
150
+ exports.postV1tradesTradeIdaccept = {
151
+ method: 'post',
152
+ path: '/v1/trades/:tradeId/accept',
153
+ baseUrl: 'https://trades.roblox.com',
154
+ requestFormat: 'json',
155
+ parameters: {
156
+ tradeId: zod_1.z.number().int(),
157
+ },
158
+ response: zod_1.z.object({}).partial(),
159
+ errors: [
160
+ {
161
+ status: 400,
162
+ description: "2: The trade cannot be found or you are not authorized to view it.\n3: The trade is inactive.\n4: You are not authorized to modify this trade.\n6: Trade needs to be confirmed by the other party.\n6: Trade needs to be confirmed by the other party.\n7: The user cannot trade. See field for whether the user who cannot trade is the sender or receiver.\n23: The trade reaches Two Step Verification thresholds and the user has not verified in the past time threshold.",
163
+ schema: zod_1.z.void(),
164
+ },
165
+ {
166
+ status: 401,
167
+ description: "0: Authorization has been denied for this request.",
168
+ schema: zod_1.z.void(),
169
+ },
170
+ {
171
+ status: 403,
172
+ description: "0: Token Validation Failed",
173
+ schema: zod_1.z.void(),
174
+ },
175
+ {
176
+ status: 503,
177
+ description: "5: Trading system is unavailable",
178
+ schema: zod_1.z.void(),
179
+ },
180
+ ],
181
+ };
182
+ exports.postV1tradesTradeIdcounter = {
183
+ method: 'post',
184
+ path: '/v1/trades/:tradeId/counter',
185
+ baseUrl: 'https://trades.roblox.com',
186
+ requestFormat: 'json',
187
+ parameters: {
188
+ body: Roblox_Trades_Api_TradeRequest,
189
+ tradeId: zod_1.z.number().int(),
190
+ },
191
+ response: zod_1.z.object({ id: zod_1.z.number().int() }).partial(),
192
+ errors: [
193
+ {
194
+ status: 400,
195
+ description: "2: The trade cannot be found or you are not authorized to view it.\n4: You are not authorized to modify this trade.\n7: The user cannot trade. See field for whether the user who cannot trade is the sender or receiver.\n8: The trade request should include offers.\n9: Invalid number of trade offers.\n10: Invalid trade partner. See field for whether the invalid partner is the sender or receiver.\n11: Cannot add negative Robux amounts to a trade.\n12: One or more userAssets are invalid. See fieldData for details.\n13: Invalid number of userAssets in one side of the trade.\n15: The trade is unbalanced.\n16: Trade value ratio is not sufficient.\n17: You have insufficient Robux to make this offer.\n18: Too many Robux in one side of the offer. See field for whether the side is the sender or receiver.\n19: Unknown error while processing the trade.\n21: Cannot trade with yourself.\n22: User's privacy settings are too strict to allow trading. See field for whether the user is the sender or receiver.",
196
+ schema: zod_1.z.void(),
197
+ },
198
+ {
199
+ status: 401,
200
+ description: "0: Authorization has been denied for this request.",
201
+ schema: zod_1.z.void(),
202
+ },
203
+ {
204
+ status: 403,
205
+ description: "0: Token Validation Failed",
206
+ schema: zod_1.z.void(),
207
+ },
208
+ {
209
+ status: 429,
210
+ description: "14: You are sending too many trade requests. Please slow down and try again later.",
211
+ schema: zod_1.z.void(),
212
+ },
213
+ {
214
+ status: 502,
215
+ description: "0: An unknown error occured.",
216
+ schema: zod_1.z.void(),
217
+ },
218
+ {
219
+ status: 503,
220
+ description: "5: Trading system is unavailable",
221
+ schema: zod_1.z.void(),
222
+ },
223
+ ],
224
+ };
225
+ exports.postV1tradesTradeIddecline = {
226
+ method: 'post',
227
+ path: '/v1/trades/:tradeId/decline',
228
+ baseUrl: 'https://trades.roblox.com',
229
+ requestFormat: 'json',
230
+ parameters: {
231
+ tradeId: zod_1.z.number().int(),
232
+ },
233
+ response: zod_1.z.object({}).partial(),
234
+ errors: [
235
+ {
236
+ status: 400,
237
+ description: "2: The trade cannot be found or you are not authorized to view it.\n3: The trade is inactive.\n4: You are not authorized to modify this trade.\n7: The user cannot trade. See field for whether the user who cannot trade is the sender or receiver.",
238
+ schema: zod_1.z.void(),
239
+ },
240
+ {
241
+ status: 401,
242
+ description: "0: Authorization has been denied for this request.",
243
+ schema: zod_1.z.void(),
244
+ },
245
+ {
246
+ status: 403,
247
+ description: "0: Token Validation Failed",
248
+ schema: zod_1.z.void(),
249
+ },
250
+ {
251
+ status: 503,
252
+ description: "5: Trading system is unavailable",
253
+ schema: zod_1.z.void(),
254
+ },
255
+ ],
256
+ };
257
+ exports.getV1tradesTradeStatusType = {
258
+ method: 'get',
259
+ path: '/v1/trades/:tradeStatusType',
260
+ baseUrl: 'https://trades.roblox.com',
261
+ requestFormat: 'json',
262
+ parameters: {
263
+ tradeStatusType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
264
+ limit: zod_1.z
265
+ .union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
266
+ .optional()
267
+ .default(10),
268
+ cursor: zod_1.z.string().optional(),
269
+ sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
270
+ },
271
+ response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Trades_Api_TradeResponse_,
272
+ errors: [
273
+ {
274
+ status: 400,
275
+ description: "1: Invalid trade status type.",
276
+ schema: zod_1.z.void(),
277
+ },
278
+ {
279
+ status: 401,
280
+ description: "0: Authorization has been denied for this request.",
281
+ schema: zod_1.z.void(),
282
+ },
283
+ ],
284
+ };
285
+ exports.getV1tradesTradeStatusTypecount = {
286
+ method: 'get',
287
+ path: '/v1/trades/:tradeStatusType/count',
288
+ baseUrl: 'https://trades.roblox.com',
289
+ requestFormat: 'json',
290
+ parameters: {
291
+ tradeStatusType: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3), zod_1.z.literal(4)]),
292
+ },
293
+ response: zod_1.z.object({ count: zod_1.z.number().int() }).partial(),
294
+ errors: [
295
+ {
296
+ status: 400,
297
+ description: "1: Invalid trade status type.",
298
+ schema: zod_1.z.void(),
299
+ },
300
+ {
301
+ status: 401,
302
+ description: "0: Authorization has been denied for this request.",
303
+ schema: zod_1.z.void(),
304
+ },
305
+ ],
306
+ };
307
+ exports.postV1tradesexpireOutdated = {
308
+ method: 'post',
309
+ path: '/v1/trades/expire-outdated',
310
+ baseUrl: 'https://trades.roblox.com',
311
+ requestFormat: 'json',
312
+ response: zod_1.z.object({}).partial(),
313
+ errors: [
314
+ {
315
+ status: 401,
316
+ description: "0: Authorization has been denied for this request.",
317
+ schema: zod_1.z.void(),
318
+ },
319
+ {
320
+ status: 403,
321
+ description: "0: Token Validation Failed",
322
+ schema: zod_1.z.void(),
323
+ },
324
+ ],
325
+ };
326
+ exports.getV1tradesmetadata = {
327
+ method: 'get',
328
+ path: '/v1/trades/metadata',
329
+ baseUrl: 'https://trades.roblox.com',
330
+ requestFormat: 'json',
331
+ response: Roblox_Trades_Api_TradeMetadata,
332
+ errors: [
333
+ {
334
+ status: 401,
335
+ description: "0: Authorization has been denied for this request.",
336
+ schema: zod_1.z.void(),
337
+ },
338
+ ],
339
+ };
340
+ exports.postV1tradessend = {
341
+ method: 'post',
342
+ path: '/v1/trades/send',
343
+ baseUrl: 'https://trades.roblox.com',
344
+ requestFormat: 'json',
345
+ parameters: {
346
+ body: Roblox_Trades_Api_TradeRequest,
347
+ },
348
+ response: zod_1.z.object({ id: zod_1.z.number().int() }).partial(),
349
+ errors: [
350
+ {
351
+ status: 400,
352
+ description: "7: The user cannot trade. See field for whether the user who cannot trade is the sender or receiver.\n8: The trade request should include offers.\n9: Invalid number of trade offers.\n10: Invalid trade partner. See field for whether the invalid partner is the sender or receiver.\n11: Cannot add negative Robux amounts to a trade.\n12: One or more userAssets are invalid. See fieldData for details.\n13: Invalid number of userAssets in one side of the trade.\n15: The trade is unbalanced.\n16: Trade value ratio is not sufficient.\n17: You have insufficient Robux to make this offer.\n18: Too many Robux in one side of the offer. See field for whether the side is the sender or receiver.\n19: Unknown error while processing the trade.\n21: Cannot trade with yourself.\n22: User's privacy settings are too strict to allow trading. See field for whether the user is the sender or receiver.\n23: The trade reaches Two Step Verification thresholds and the user has not verified in the past time threshold.",
353
+ schema: zod_1.z.void(),
354
+ },
355
+ {
356
+ status: 401,
357
+ description: "0: Authorization has been denied for this request.",
358
+ schema: zod_1.z.void(),
359
+ },
360
+ {
361
+ status: 403,
362
+ description: "0: Token Validation Failed",
363
+ schema: zod_1.z.void(),
364
+ },
365
+ {
366
+ status: 429,
367
+ description: "14: You are sending too many trade requests. Please slow down and try again later.",
368
+ schema: zod_1.z.void(),
369
+ },
370
+ {
371
+ status: 502,
372
+ description: "0: An unknown error occured.",
373
+ schema: zod_1.z.void(),
374
+ },
375
+ {
376
+ status: 503,
377
+ description: "5: Trading system is unavailable",
378
+ schema: zod_1.z.void(),
379
+ },
380
+ ],
381
+ };
382
+ exports.getV1usersUserIdcanTradeWith = {
383
+ method: 'get',
384
+ path: '/v1/users/:userId/can-trade-with',
385
+ baseUrl: 'https://trades.roblox.com',
386
+ requestFormat: 'json',
387
+ parameters: {
388
+ userId: zod_1.z.number().int(),
389
+ },
390
+ response: Roblox_Trades_Api_CanTradeResponse,
391
+ errors: [
392
+ {
393
+ status: 400,
394
+ description: "10: Invalid trade partner. See field for whether the invalid partner is the sender or receiver.",
395
+ schema: zod_1.z.void(),
396
+ },
397
+ {
398
+ status: 401,
399
+ description: "0: Authorization has been denied for this request.",
400
+ schema: zod_1.z.void(),
401
+ },
402
+ ],
403
+ };
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ export declare const getV1translations: {
3
+ method: "get";
4
+ path: string;
5
+ baseUrl: string;
6
+ requestFormat: "json";
7
+ parameters: {
8
+ consumerType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>, z.ZodLiteral<8>]>;
9
+ };
10
+ response: z.ZodObject<{
11
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ url: z.ZodOptional<z.ZodString>;
13
+ locale: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ url?: string | undefined;
16
+ locale?: string | undefined;
17
+ }, {
18
+ url?: string | undefined;
19
+ locale?: string | undefined;
20
+ }>, "many">>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ data?: {
23
+ url?: string | undefined;
24
+ locale?: string | undefined;
25
+ }[] | undefined;
26
+ }, {
27
+ data?: {
28
+ url?: string | undefined;
29
+ locale?: string | undefined;
30
+ }[] | undefined;
31
+ }>;
32
+ errors: {
33
+ status: number;
34
+ description: string;
35
+ schema: z.ZodVoid;
36
+ }[];
37
+ };
38
+ export declare const getV1translationsLocale: {
39
+ method: "get";
40
+ path: string;
41
+ baseUrl: string;
42
+ requestFormat: "json";
43
+ parameters: {
44
+ locale: z.ZodString;
45
+ consumerType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>, z.ZodLiteral<8>]>;
46
+ };
47
+ response: z.ZodObject<{
48
+ url: z.ZodOptional<z.ZodString>;
49
+ locale: z.ZodOptional<z.ZodString>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ url?: string | undefined;
52
+ locale?: string | undefined;
53
+ }, {
54
+ url?: string | undefined;
55
+ locale?: string | undefined;
56
+ }>;
57
+ errors: {
58
+ status: number;
59
+ description: string;
60
+ schema: z.ZodVoid;
61
+ }[];
62
+ };
63
+ export declare const getV1translationslanguageResources: {
64
+ method: "get";
65
+ path: string;
66
+ baseUrl: string;
67
+ requestFormat: "json";
68
+ parameters: {
69
+ consumerType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>, z.ZodLiteral<8>]>;
70
+ contentNamespace: z.ZodString;
71
+ keys: z.ZodArray<z.ZodString, "many">;
72
+ localeCode: z.ZodOptional<z.ZodString>;
73
+ };
74
+ response: z.ZodRecord<z.ZodString, z.ZodString>;
75
+ errors: {
76
+ status: number;
77
+ description: string;
78
+ schema: z.ZodVoid;
79
+ }[];
80
+ };
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getV1translationslanguageResources = exports.getV1translationsLocale = exports.getV1translations = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_Translations_Api_TranslationsResponse = zod_1.z.object({ url: zod_1.z.string(), locale: zod_1.z.string() }).partial();
6
+ var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Translations_Api_TranslationsResponse_ = zod_1.z
7
+ .object({ data: zod_1.z.array(Roblox_Translations_Api_TranslationsResponse) })
8
+ .partial();
9
+ var schemas = {
10
+ Roblox_Translations_Api_TranslationsResponse: Roblox_Translations_Api_TranslationsResponse,
11
+ Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Translations_Api_TranslationsResponse_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Translations_Api_TranslationsResponse_,
12
+ };
13
+ exports.getV1translations = {
14
+ method: 'get',
15
+ path: '/v1/translations',
16
+ baseUrl: 'https://translations.roblox.com',
17
+ requestFormat: 'json',
18
+ parameters: {
19
+ consumerType: zod_1.z.union([
20
+ zod_1.z.literal(0),
21
+ zod_1.z.literal(1),
22
+ zod_1.z.literal(2),
23
+ zod_1.z.literal(3),
24
+ zod_1.z.literal(4),
25
+ zod_1.z.literal(5),
26
+ zod_1.z.literal(6),
27
+ zod_1.z.literal(7),
28
+ zod_1.z.literal(8),
29
+ ]),
30
+ },
31
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Translations_Api_TranslationsResponse_,
32
+ errors: [
33
+ {
34
+ status: 400,
35
+ description: "2: Consumer type not supported",
36
+ schema: zod_1.z.void(),
37
+ },
38
+ {
39
+ status: 404,
40
+ description: "3: Translations do not exist",
41
+ schema: zod_1.z.void(),
42
+ },
43
+ {
44
+ status: 503,
45
+ description: "4: Feature disabled",
46
+ schema: zod_1.z.void(),
47
+ },
48
+ ],
49
+ };
50
+ exports.getV1translationsLocale = {
51
+ method: 'get',
52
+ path: '/v1/translations/:locale',
53
+ baseUrl: 'https://translations.roblox.com',
54
+ requestFormat: 'json',
55
+ parameters: {
56
+ locale: zod_1.z.string(),
57
+ consumerType: zod_1.z.union([
58
+ zod_1.z.literal(0),
59
+ zod_1.z.literal(1),
60
+ zod_1.z.literal(2),
61
+ zod_1.z.literal(3),
62
+ zod_1.z.literal(4),
63
+ zod_1.z.literal(5),
64
+ zod_1.z.literal(6),
65
+ zod_1.z.literal(7),
66
+ zod_1.z.literal(8),
67
+ ]),
68
+ },
69
+ response: Roblox_Translations_Api_TranslationsResponse,
70
+ errors: [
71
+ {
72
+ status: 400,
73
+ description: "1: Invalid locale\n2: Consumer type not supported",
74
+ schema: zod_1.z.void(),
75
+ },
76
+ {
77
+ status: 404,
78
+ description: "3: Translations do not exist",
79
+ schema: zod_1.z.void(),
80
+ },
81
+ {
82
+ status: 503,
83
+ description: "4: Feature disabled",
84
+ schema: zod_1.z.void(),
85
+ },
86
+ ],
87
+ };
88
+ exports.getV1translationslanguageResources = {
89
+ method: 'get',
90
+ path: '/v1/translations/language-resources',
91
+ baseUrl: 'https://translations.roblox.com',
92
+ requestFormat: 'json',
93
+ parameters: {
94
+ consumerType: zod_1.z.union([
95
+ zod_1.z.literal(0),
96
+ zod_1.z.literal(1),
97
+ zod_1.z.literal(2),
98
+ zod_1.z.literal(3),
99
+ zod_1.z.literal(4),
100
+ zod_1.z.literal(5),
101
+ zod_1.z.literal(6),
102
+ zod_1.z.literal(7),
103
+ zod_1.z.literal(8),
104
+ ]),
105
+ contentNamespace: zod_1.z.string(),
106
+ keys: zod_1.z.array(zod_1.z.string()),
107
+ localeCode: zod_1.z.string().optional(),
108
+ },
109
+ response: zod_1.z.record(zod_1.z.string()),
110
+ errors: [
111
+ {
112
+ status: 400,
113
+ description: "1: Invalid locale\n2: Consumer type not supported",
114
+ schema: zod_1.z.void(),
115
+ },
116
+ {
117
+ status: 404,
118
+ description: "3: Translations do not exist",
119
+ schema: zod_1.z.void(),
120
+ },
121
+ ],
122
+ };