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.
- package/lib/endpoints/accountinformationv1.d.ts +551 -0
- package/lib/endpoints/accountinformationv1.js +652 -0
- package/lib/endpoints/accountsettingsv1.d.ts +548 -0
- package/lib/endpoints/accountsettingsv1.js +712 -0
- package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
- package/lib/endpoints/assetdeliveryv1.js +268 -0
- package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
- package/lib/endpoints/assetdeliveryv2.js +271 -0
- package/lib/endpoints/authv1.d.ts +1328 -0
- package/lib/endpoints/authv1.js +1168 -0
- package/lib/endpoints/authv2.d.ts +1239 -0
- package/lib/endpoints/authv2.js +1057 -0
- package/lib/endpoints/authv3.d.ts +35 -0
- package/lib/endpoints/authv3.js +41 -0
- package/lib/endpoints/avatarv1.d.ts +1841 -0
- package/lib/endpoints/avatarv1.js +726 -0
- package/lib/endpoints/avatarv2.d.ts +1077 -0
- package/lib/endpoints/avatarv2.js +316 -0
- package/lib/endpoints/avatarv3.d.ts +656 -0
- package/lib/endpoints/avatarv3.js +219 -0
- package/lib/endpoints/badgesv1.d.ts +641 -0
- package/lib/endpoints/badgesv1.js +345 -0
- package/lib/endpoints/catalogv1.d.ts +1715 -0
- package/lib/endpoints/catalogv1.js +792 -0
- package/lib/endpoints/chatv2.d.ts +2179 -0
- package/lib/endpoints/chatv2.js +721 -0
- package/lib/endpoints/developv1.d.ts +2097 -0
- package/lib/endpoints/developv1.js +1537 -0
- package/lib/endpoints/developv2.d.ts +619 -0
- package/lib/endpoints/developv2.js +316 -0
- package/lib/endpoints/economyv1.d.ts +20 -0
- package/lib/endpoints/economyv1.js +28 -0
- package/lib/endpoints/friendsv1.d.ts +1093 -0
- package/lib/endpoints/friendsv1.js +818 -0
- package/lib/endpoints/gamesv1.d.ts +2749 -0
- package/lib/endpoints/gamesv1.js +1294 -0
- package/lib/endpoints/gamesv2.d.ts +582 -0
- package/lib/endpoints/gamesv2.js +258 -0
- package/lib/endpoints/groupsv1.d.ts +5528 -0
- package/lib/endpoints/groupsv1.js +2434 -0
- package/lib/endpoints/groupsv2.d.ts +530 -0
- package/lib/endpoints/groupsv2.js +201 -0
- package/lib/endpoints/inventoryv1.d.ts +436 -0
- package/lib/endpoints/inventoryv1.js +434 -0
- package/lib/endpoints/inventoryv2.d.ts +256 -0
- package/lib/endpoints/inventoryv2.js +241 -0
- package/lib/endpoints/presencev1.d.ts +134 -0
- package/lib/endpoints/presencev1.js +93 -0
- package/lib/endpoints/privatemessagesv1.d.ts +620 -0
- package/lib/endpoints/privatemessagesv1.js +338 -0
- package/lib/endpoints/thumbnailsv1.d.ts +897 -0
- package/lib/endpoints/thumbnailsv1.js +560 -0
- package/lib/endpoints/tradesv1.d.ts +473 -0
- package/lib/endpoints/tradesv1.js +403 -0
- package/lib/endpoints/translationsv1.d.ts +80 -0
- package/lib/endpoints/translationsv1.js +122 -0
- package/lib/endpoints/usersv1.d.ts +391 -0
- package/lib/endpoints/usersv1.js +344 -0
- package/lib/index.d.ts +85 -0
- package/lib/index.js +293 -0
- package/package.json +39 -0
- package/readme.md +99 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getV2usersUserIdgames = exports.getV2usersUserIdfavoritegames = exports.getV2groupsGroupIdgamesV2 = exports.getV2groupsGroupIdgames = exports.getV2gamesUniverseIdmedia = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Web_Responses_Games_GameMediaItemResponseV2 = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
assetTypeId: zod_1.z.number().int(),
|
|
8
|
+
assetType: zod_1.z.string(),
|
|
9
|
+
imageId: zod_1.z.number().int(),
|
|
10
|
+
videoHash: zod_1.z.string(),
|
|
11
|
+
videoTitle: zod_1.z.string(),
|
|
12
|
+
approved: zod_1.z.boolean(),
|
|
13
|
+
altText: zod_1.z.string(),
|
|
14
|
+
})
|
|
15
|
+
.partial();
|
|
16
|
+
var Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_ = zod_1.z
|
|
17
|
+
.object({
|
|
18
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameMediaItemResponseV2),
|
|
19
|
+
})
|
|
20
|
+
.partial();
|
|
21
|
+
var Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_ = zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
id: zod_1.z.number().int(),
|
|
24
|
+
type: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
|
|
25
|
+
name: zod_1.z.string(),
|
|
26
|
+
})
|
|
27
|
+
.partial();
|
|
28
|
+
var Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_ = zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
id: zod_1.z.number().int(),
|
|
31
|
+
type: zod_1.z.union([
|
|
32
|
+
zod_1.z.literal(1),
|
|
33
|
+
zod_1.z.literal(2),
|
|
34
|
+
zod_1.z.literal(3),
|
|
35
|
+
zod_1.z.literal(4),
|
|
36
|
+
zod_1.z.literal(5),
|
|
37
|
+
zod_1.z.literal(6),
|
|
38
|
+
zod_1.z.literal(7),
|
|
39
|
+
zod_1.z.literal(8),
|
|
40
|
+
zod_1.z.literal(9),
|
|
41
|
+
zod_1.z.literal(10),
|
|
42
|
+
zod_1.z.literal(11),
|
|
43
|
+
zod_1.z.literal(12),
|
|
44
|
+
zod_1.z.literal(13),
|
|
45
|
+
zod_1.z.literal(16),
|
|
46
|
+
zod_1.z.literal(17),
|
|
47
|
+
zod_1.z.literal(18),
|
|
48
|
+
zod_1.z.literal(19),
|
|
49
|
+
zod_1.z.literal(21),
|
|
50
|
+
zod_1.z.literal(22),
|
|
51
|
+
zod_1.z.literal(24),
|
|
52
|
+
zod_1.z.literal(25),
|
|
53
|
+
zod_1.z.literal(26),
|
|
54
|
+
zod_1.z.literal(27),
|
|
55
|
+
zod_1.z.literal(28),
|
|
56
|
+
zod_1.z.literal(29),
|
|
57
|
+
zod_1.z.literal(30),
|
|
58
|
+
zod_1.z.literal(31),
|
|
59
|
+
zod_1.z.literal(32),
|
|
60
|
+
zod_1.z.literal(33),
|
|
61
|
+
zod_1.z.literal(34),
|
|
62
|
+
zod_1.z.literal(35),
|
|
63
|
+
zod_1.z.literal(37),
|
|
64
|
+
zod_1.z.literal(38),
|
|
65
|
+
zod_1.z.literal(39),
|
|
66
|
+
zod_1.z.literal(40),
|
|
67
|
+
zod_1.z.literal(41),
|
|
68
|
+
zod_1.z.literal(42),
|
|
69
|
+
zod_1.z.literal(43),
|
|
70
|
+
zod_1.z.literal(44),
|
|
71
|
+
zod_1.z.literal(45),
|
|
72
|
+
zod_1.z.literal(46),
|
|
73
|
+
zod_1.z.literal(47),
|
|
74
|
+
zod_1.z.literal(48),
|
|
75
|
+
zod_1.z.literal(49),
|
|
76
|
+
zod_1.z.literal(50),
|
|
77
|
+
zod_1.z.literal(51),
|
|
78
|
+
zod_1.z.literal(52),
|
|
79
|
+
zod_1.z.literal(53),
|
|
80
|
+
zod_1.z.literal(54),
|
|
81
|
+
zod_1.z.literal(55),
|
|
82
|
+
zod_1.z.literal(56),
|
|
83
|
+
zod_1.z.literal(59),
|
|
84
|
+
zod_1.z.literal(60),
|
|
85
|
+
zod_1.z.literal(61),
|
|
86
|
+
zod_1.z.literal(62),
|
|
87
|
+
zod_1.z.literal(63),
|
|
88
|
+
zod_1.z.literal(64),
|
|
89
|
+
zod_1.z.literal(65),
|
|
90
|
+
zod_1.z.literal(66),
|
|
91
|
+
zod_1.z.literal(67),
|
|
92
|
+
zod_1.z.literal(68),
|
|
93
|
+
zod_1.z.literal(69),
|
|
94
|
+
zod_1.z.literal(70),
|
|
95
|
+
zod_1.z.literal(71),
|
|
96
|
+
zod_1.z.literal(72),
|
|
97
|
+
zod_1.z.literal(73),
|
|
98
|
+
zod_1.z.literal(74),
|
|
99
|
+
zod_1.z.literal(75),
|
|
100
|
+
zod_1.z.literal(76),
|
|
101
|
+
zod_1.z.literal(77),
|
|
102
|
+
zod_1.z.literal(78),
|
|
103
|
+
zod_1.z.literal(79),
|
|
104
|
+
zod_1.z.literal(80),
|
|
105
|
+
]),
|
|
106
|
+
name: zod_1.z.string(),
|
|
107
|
+
})
|
|
108
|
+
.partial();
|
|
109
|
+
var Roblox_Web_Responses_Games_GameResponseV2 = zod_1.z
|
|
110
|
+
.object({
|
|
111
|
+
id: zod_1.z.number().int(),
|
|
112
|
+
name: zod_1.z.string(),
|
|
113
|
+
description: zod_1.z.string(),
|
|
114
|
+
creator: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
|
|
115
|
+
rootPlace: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
116
|
+
created: zod_1.z.string().datetime(),
|
|
117
|
+
updated: zod_1.z.string().datetime(),
|
|
118
|
+
placeVisits: zod_1.z.number().int(),
|
|
119
|
+
})
|
|
120
|
+
.partial();
|
|
121
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_ = zod_1.z
|
|
122
|
+
.object({
|
|
123
|
+
previousPageCursor: zod_1.z.string(),
|
|
124
|
+
nextPageCursor: zod_1.z.string(),
|
|
125
|
+
data: zod_1.z.array(Roblox_Web_Responses_Games_GameResponseV2),
|
|
126
|
+
})
|
|
127
|
+
.partial();
|
|
128
|
+
var schemas = {
|
|
129
|
+
Roblox_Web_Responses_Games_GameMediaItemResponseV2: Roblox_Web_Responses_Games_GameMediaItemResponseV2,
|
|
130
|
+
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
|
|
131
|
+
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Core_CreatorType_,
|
|
132
|
+
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Platform_Assets_AssetType_,
|
|
133
|
+
Roblox_Web_Responses_Games_GameResponseV2: Roblox_Web_Responses_Games_GameResponseV2,
|
|
134
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
135
|
+
};
|
|
136
|
+
exports.getV2gamesUniverseIdmedia = {
|
|
137
|
+
method: 'get',
|
|
138
|
+
path: '/v2/games/:universeId/media',
|
|
139
|
+
baseUrl: 'https://games.roblox.com',
|
|
140
|
+
requestFormat: 'json',
|
|
141
|
+
parameters: {
|
|
142
|
+
universeId: zod_1.z.number().int(),
|
|
143
|
+
},
|
|
144
|
+
response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Web_Responses_Games_GameMediaItemResponseV2_,
|
|
145
|
+
errors: [
|
|
146
|
+
{
|
|
147
|
+
status: 400,
|
|
148
|
+
description: "3: The universe's root place is invalid.",
|
|
149
|
+
schema: zod_1.z.void(),
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
status: 404,
|
|
153
|
+
description: "2: The requested universe does not exist.",
|
|
154
|
+
schema: zod_1.z.void(),
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
};
|
|
158
|
+
exports.getV2groupsGroupIdgames = {
|
|
159
|
+
method: 'get',
|
|
160
|
+
path: '/v2/groups/:groupId/games',
|
|
161
|
+
baseUrl: 'https://games.roblox.com',
|
|
162
|
+
requestFormat: 'json',
|
|
163
|
+
parameters: {
|
|
164
|
+
groupId: zod_1.z.number().int(),
|
|
165
|
+
accessFilter: zod_1.z
|
|
166
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
167
|
+
.optional()
|
|
168
|
+
.default(1),
|
|
169
|
+
limit: zod_1.z
|
|
170
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
171
|
+
.optional()
|
|
172
|
+
.default(10),
|
|
173
|
+
cursor: zod_1.z.string().optional(),
|
|
174
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
175
|
+
},
|
|
176
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
177
|
+
errors: [
|
|
178
|
+
{
|
|
179
|
+
status: 500,
|
|
180
|
+
description: "0: Compliance Context service is unavailable.",
|
|
181
|
+
schema: zod_1.z.void(),
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
};
|
|
185
|
+
exports.getV2groupsGroupIdgamesV2 = {
|
|
186
|
+
method: 'get',
|
|
187
|
+
path: '/v2/groups/:groupId/gamesV2',
|
|
188
|
+
baseUrl: 'https://games.roblox.com',
|
|
189
|
+
requestFormat: 'json',
|
|
190
|
+
parameters: {
|
|
191
|
+
groupId: zod_1.z.number().int(),
|
|
192
|
+
accessFilter: zod_1.z
|
|
193
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
194
|
+
.optional()
|
|
195
|
+
.default(1),
|
|
196
|
+
limit: zod_1.z
|
|
197
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
198
|
+
.optional()
|
|
199
|
+
.default(10),
|
|
200
|
+
cursor: zod_1.z.string().optional(),
|
|
201
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
202
|
+
},
|
|
203
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
204
|
+
errors: [
|
|
205
|
+
{
|
|
206
|
+
status: 500,
|
|
207
|
+
description: "0: Compliance Context service is unavailable.",
|
|
208
|
+
schema: zod_1.z.void(),
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
status: 501,
|
|
212
|
+
description: "1: Code path is not Implemented.",
|
|
213
|
+
schema: zod_1.z.void(),
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
};
|
|
217
|
+
exports.getV2usersUserIdfavoritegames = {
|
|
218
|
+
method: 'get',
|
|
219
|
+
path: '/v2/users/:userId/favorite/games',
|
|
220
|
+
baseUrl: 'https://games.roblox.com',
|
|
221
|
+
requestFormat: 'json',
|
|
222
|
+
parameters: {
|
|
223
|
+
userId: zod_1.z.number().int(),
|
|
224
|
+
accessFilter: zod_1.z
|
|
225
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
226
|
+
.optional()
|
|
227
|
+
.default(2),
|
|
228
|
+
limit: zod_1.z
|
|
229
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50)])
|
|
230
|
+
.optional()
|
|
231
|
+
.default(10),
|
|
232
|
+
cursor: zod_1.z.string().optional(),
|
|
233
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
234
|
+
},
|
|
235
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
236
|
+
errors: [],
|
|
237
|
+
};
|
|
238
|
+
exports.getV2usersUserIdgames = {
|
|
239
|
+
method: 'get',
|
|
240
|
+
path: '/v2/users/:userId/games',
|
|
241
|
+
baseUrl: 'https://games.roblox.com',
|
|
242
|
+
requestFormat: 'json',
|
|
243
|
+
parameters: {
|
|
244
|
+
userId: zod_1.z.number().int(),
|
|
245
|
+
accessFilter: zod_1.z
|
|
246
|
+
.union([zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(4)])
|
|
247
|
+
.optional()
|
|
248
|
+
.default(2),
|
|
249
|
+
limit: zod_1.z
|
|
250
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50)])
|
|
251
|
+
.optional()
|
|
252
|
+
.default(10),
|
|
253
|
+
cursor: zod_1.z.string().optional(),
|
|
254
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
255
|
+
},
|
|
256
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameResponseV2_,
|
|
257
|
+
errors: [],
|
|
258
|
+
};
|