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,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getV2usersUserIdinventoryAssetTypeId = exports.getV2usersUserIdinventory = exports.getV2assetsAssetIdowners = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_ = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
id: zod_1.z.number().int(),
|
|
8
|
+
type: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]),
|
|
9
|
+
name: zod_1.z.string(),
|
|
10
|
+
})
|
|
11
|
+
.partial();
|
|
12
|
+
var Roblox_Inventory_Api_V2_AssetOwnerResponse = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
id: zod_1.z.number().int(),
|
|
15
|
+
serialNumber: zod_1.z.number().int(),
|
|
16
|
+
owner: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
17
|
+
created: zod_1.z.string().datetime(),
|
|
18
|
+
updated: zod_1.z.string().datetime(),
|
|
19
|
+
})
|
|
20
|
+
.partial();
|
|
21
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_ = zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
previousPageCursor: zod_1.z.string(),
|
|
24
|
+
nextPageCursor: zod_1.z.string(),
|
|
25
|
+
data: zod_1.z.array(Roblox_Inventory_Api_V2_AssetOwnerResponse),
|
|
26
|
+
})
|
|
27
|
+
.partial();
|
|
28
|
+
var Roblox_Inventory_Api_V2_UserAssetItemModelV2 = zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
assetId: zod_1.z.number().int(),
|
|
31
|
+
name: zod_1.z.string(),
|
|
32
|
+
assetType: zod_1.z.union([
|
|
33
|
+
zod_1.z.literal(1),
|
|
34
|
+
zod_1.z.literal(2),
|
|
35
|
+
zod_1.z.literal(3),
|
|
36
|
+
zod_1.z.literal(4),
|
|
37
|
+
zod_1.z.literal(5),
|
|
38
|
+
zod_1.z.literal(6),
|
|
39
|
+
zod_1.z.literal(7),
|
|
40
|
+
zod_1.z.literal(8),
|
|
41
|
+
zod_1.z.literal(9),
|
|
42
|
+
zod_1.z.literal(10),
|
|
43
|
+
zod_1.z.literal(11),
|
|
44
|
+
zod_1.z.literal(12),
|
|
45
|
+
zod_1.z.literal(13),
|
|
46
|
+
zod_1.z.literal(16),
|
|
47
|
+
zod_1.z.literal(17),
|
|
48
|
+
zod_1.z.literal(18),
|
|
49
|
+
zod_1.z.literal(19),
|
|
50
|
+
zod_1.z.literal(21),
|
|
51
|
+
zod_1.z.literal(22),
|
|
52
|
+
zod_1.z.literal(24),
|
|
53
|
+
zod_1.z.literal(25),
|
|
54
|
+
zod_1.z.literal(26),
|
|
55
|
+
zod_1.z.literal(27),
|
|
56
|
+
zod_1.z.literal(28),
|
|
57
|
+
zod_1.z.literal(29),
|
|
58
|
+
zod_1.z.literal(30),
|
|
59
|
+
zod_1.z.literal(31),
|
|
60
|
+
zod_1.z.literal(32),
|
|
61
|
+
zod_1.z.literal(33),
|
|
62
|
+
zod_1.z.literal(34),
|
|
63
|
+
zod_1.z.literal(35),
|
|
64
|
+
zod_1.z.literal(37),
|
|
65
|
+
zod_1.z.literal(38),
|
|
66
|
+
zod_1.z.literal(39),
|
|
67
|
+
zod_1.z.literal(40),
|
|
68
|
+
zod_1.z.literal(41),
|
|
69
|
+
zod_1.z.literal(42),
|
|
70
|
+
zod_1.z.literal(43),
|
|
71
|
+
zod_1.z.literal(44),
|
|
72
|
+
zod_1.z.literal(45),
|
|
73
|
+
zod_1.z.literal(46),
|
|
74
|
+
zod_1.z.literal(47),
|
|
75
|
+
zod_1.z.literal(48),
|
|
76
|
+
zod_1.z.literal(49),
|
|
77
|
+
zod_1.z.literal(50),
|
|
78
|
+
zod_1.z.literal(51),
|
|
79
|
+
zod_1.z.literal(52),
|
|
80
|
+
zod_1.z.literal(53),
|
|
81
|
+
zod_1.z.literal(54),
|
|
82
|
+
zod_1.z.literal(55),
|
|
83
|
+
zod_1.z.literal(56),
|
|
84
|
+
zod_1.z.literal(59),
|
|
85
|
+
zod_1.z.literal(60),
|
|
86
|
+
zod_1.z.literal(61),
|
|
87
|
+
zod_1.z.literal(62),
|
|
88
|
+
zod_1.z.literal(63),
|
|
89
|
+
zod_1.z.literal(64),
|
|
90
|
+
zod_1.z.literal(65),
|
|
91
|
+
zod_1.z.literal(66),
|
|
92
|
+
zod_1.z.literal(67),
|
|
93
|
+
zod_1.z.literal(68),
|
|
94
|
+
zod_1.z.literal(69),
|
|
95
|
+
zod_1.z.literal(70),
|
|
96
|
+
zod_1.z.literal(71),
|
|
97
|
+
zod_1.z.literal(72),
|
|
98
|
+
zod_1.z.literal(73),
|
|
99
|
+
zod_1.z.literal(74),
|
|
100
|
+
zod_1.z.literal(75),
|
|
101
|
+
zod_1.z.literal(76),
|
|
102
|
+
zod_1.z.literal(77),
|
|
103
|
+
zod_1.z.literal(78),
|
|
104
|
+
zod_1.z.literal(79),
|
|
105
|
+
zod_1.z.literal(80),
|
|
106
|
+
]),
|
|
107
|
+
created: zod_1.z.string().datetime(),
|
|
108
|
+
})
|
|
109
|
+
.partial();
|
|
110
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_ = zod_1.z
|
|
111
|
+
.object({
|
|
112
|
+
previousPageCursor: zod_1.z.string(),
|
|
113
|
+
nextPageCursor: zod_1.z.string(),
|
|
114
|
+
data: zod_1.z.array(Roblox_Inventory_Api_V2_UserAssetItemModelV2),
|
|
115
|
+
})
|
|
116
|
+
.partial();
|
|
117
|
+
var Roblox_Inventory_Api_Models_UserModel = zod_1.z
|
|
118
|
+
.object({
|
|
119
|
+
userId: zod_1.z.number().int(),
|
|
120
|
+
username: zod_1.z.string(),
|
|
121
|
+
buildersClubMembershipType: 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)]),
|
|
122
|
+
})
|
|
123
|
+
.partial();
|
|
124
|
+
var Roblox_Inventory_Api_Models_InventoryItemModel = zod_1.z
|
|
125
|
+
.object({
|
|
126
|
+
userAssetId: zod_1.z.number().int(),
|
|
127
|
+
assetId: zod_1.z.number().int(),
|
|
128
|
+
assetName: zod_1.z.string(),
|
|
129
|
+
collectibleItemId: zod_1.z.string(),
|
|
130
|
+
collectibleItemInstanceId: zod_1.z.string(),
|
|
131
|
+
serialNumber: zod_1.z.number().int(),
|
|
132
|
+
owner: Roblox_Inventory_Api_Models_UserModel,
|
|
133
|
+
created: zod_1.z.string().datetime(),
|
|
134
|
+
updated: zod_1.z.string().datetime(),
|
|
135
|
+
})
|
|
136
|
+
.partial();
|
|
137
|
+
var Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_ = zod_1.z
|
|
138
|
+
.object({
|
|
139
|
+
previousPageCursor: zod_1.z.string(),
|
|
140
|
+
nextPageCursor: zod_1.z.string(),
|
|
141
|
+
data: zod_1.z.array(Roblox_Inventory_Api_Models_InventoryItemModel),
|
|
142
|
+
})
|
|
143
|
+
.partial();
|
|
144
|
+
var schemas = {
|
|
145
|
+
Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_: Roblox_Web_Responses_RelatedEntityTypeResponse_Roblox_Agents_AgentType_,
|
|
146
|
+
Roblox_Inventory_Api_V2_AssetOwnerResponse: Roblox_Inventory_Api_V2_AssetOwnerResponse,
|
|
147
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
148
|
+
Roblox_Inventory_Api_V2_UserAssetItemModelV2: Roblox_Inventory_Api_V2_UserAssetItemModelV2,
|
|
149
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
150
|
+
Roblox_Inventory_Api_Models_UserModel: Roblox_Inventory_Api_Models_UserModel,
|
|
151
|
+
Roblox_Inventory_Api_Models_InventoryItemModel: Roblox_Inventory_Api_Models_InventoryItemModel,
|
|
152
|
+
Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
153
|
+
};
|
|
154
|
+
exports.getV2assetsAssetIdowners = {
|
|
155
|
+
method: 'get',
|
|
156
|
+
path: '/v2/assets/:assetId/owners',
|
|
157
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
158
|
+
requestFormat: 'json',
|
|
159
|
+
parameters: {
|
|
160
|
+
assetId: zod_1.z.number().int(),
|
|
161
|
+
limit: zod_1.z
|
|
162
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
163
|
+
.optional()
|
|
164
|
+
.default(10),
|
|
165
|
+
cursor: zod_1.z.string().optional(),
|
|
166
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
167
|
+
},
|
|
168
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_AssetOwnerResponse_,
|
|
169
|
+
errors: [
|
|
170
|
+
{
|
|
171
|
+
status: 400,
|
|
172
|
+
description: "1: The asset id is invalid.",
|
|
173
|
+
schema: zod_1.z.void(),
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
status: 403,
|
|
177
|
+
description: "2: You do not have permission to view the owners of this asset.",
|
|
178
|
+
schema: zod_1.z.void(),
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
exports.getV2usersUserIdinventory = {
|
|
183
|
+
method: 'get',
|
|
184
|
+
path: '/v2/users/:userId/inventory',
|
|
185
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
186
|
+
description: "GamePass and Badges not allowed.",
|
|
187
|
+
requestFormat: 'json',
|
|
188
|
+
parameters: {
|
|
189
|
+
userId: zod_1.z.number().int(),
|
|
190
|
+
assetTypes: zod_1.z.array(zod_1.z.unknown()),
|
|
191
|
+
filterDisapprovedAssets: zod_1.z.boolean().optional(),
|
|
192
|
+
limit: zod_1.z
|
|
193
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
194
|
+
.optional()
|
|
195
|
+
.default(10),
|
|
196
|
+
cursor: zod_1.z.string().optional(),
|
|
197
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
198
|
+
},
|
|
199
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_V2_UserAssetItemModelV2_,
|
|
200
|
+
errors: [
|
|
201
|
+
{
|
|
202
|
+
status: 400,
|
|
203
|
+
description: "1: Invalid user Id.\n2: Invalid asset type Id.",
|
|
204
|
+
schema: zod_1.z.void(),
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
status: 403,
|
|
208
|
+
description: "3: Insufficient permission.\n4: You are not authorized to view this user's inventory.",
|
|
209
|
+
schema: zod_1.z.void(),
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
};
|
|
213
|
+
exports.getV2usersUserIdinventoryAssetTypeId = {
|
|
214
|
+
method: 'get',
|
|
215
|
+
path: '/v2/users/:userId/inventory/:assetTypeId',
|
|
216
|
+
baseUrl: 'https://inventory.roblox.com',
|
|
217
|
+
requestFormat: 'json',
|
|
218
|
+
parameters: {
|
|
219
|
+
userId: zod_1.z.number().int(),
|
|
220
|
+
assetTypeId: zod_1.z.number().int(),
|
|
221
|
+
limit: zod_1.z
|
|
222
|
+
.union([zod_1.z.literal(10), zod_1.z.literal(25), zod_1.z.literal(50), zod_1.z.literal(100)])
|
|
223
|
+
.optional()
|
|
224
|
+
.default(10),
|
|
225
|
+
cursor: zod_1.z.string().optional(),
|
|
226
|
+
sortOrder: zod_1.z.enum(['Asc', 'Desc']).optional().default('Asc'),
|
|
227
|
+
},
|
|
228
|
+
response: Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Inventory_Api_Models_InventoryItemModel_,
|
|
229
|
+
errors: [
|
|
230
|
+
{
|
|
231
|
+
status: 400,
|
|
232
|
+
description: "1: Invalid user Id.\n2: Invalid asset type Id.",
|
|
233
|
+
schema: zod_1.z.void(),
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
status: 403,
|
|
237
|
+
description: "3: Insufficient permission.\n4: You are not authorized to view this user's inventory.",
|
|
238
|
+
schema: zod_1.z.void(),
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const postV1presencelastOnline: {
|
|
3
|
+
method: "post";
|
|
4
|
+
path: string;
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
requestFormat: "json";
|
|
7
|
+
parameters: {
|
|
8
|
+
body: z.ZodObject<{
|
|
9
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
userIds?: number[] | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
userIds?: number[] | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
response: z.ZodObject<{
|
|
17
|
+
lastOnlineTimestamps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
userId: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
lastOnline: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
userId?: number | undefined;
|
|
22
|
+
lastOnline?: string | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
userId?: number | undefined;
|
|
25
|
+
lastOnline?: string | undefined;
|
|
26
|
+
}>, "many">>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
lastOnlineTimestamps?: {
|
|
29
|
+
userId?: number | undefined;
|
|
30
|
+
lastOnline?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
lastOnlineTimestamps?: {
|
|
34
|
+
userId?: number | undefined;
|
|
35
|
+
lastOnline?: string | undefined;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
errors: never[];
|
|
39
|
+
};
|
|
40
|
+
export declare const postV1presenceregisterAppPresence: {
|
|
41
|
+
method: "post";
|
|
42
|
+
path: string;
|
|
43
|
+
baseUrl: string;
|
|
44
|
+
requestFormat: "json";
|
|
45
|
+
parameters: {
|
|
46
|
+
body: z.ZodObject<{
|
|
47
|
+
location: z.ZodOptional<z.ZodString>;
|
|
48
|
+
placeId: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
disconnect: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
location?: string | undefined;
|
|
52
|
+
placeId?: number | undefined;
|
|
53
|
+
disconnect?: boolean | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
location?: string | undefined;
|
|
56
|
+
placeId?: number | undefined;
|
|
57
|
+
disconnect?: boolean | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
};
|
|
60
|
+
response: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
61
|
+
errors: {
|
|
62
|
+
status: number;
|
|
63
|
+
description: string;
|
|
64
|
+
schema: z.ZodVoid;
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
export declare const postV1presenceusers: {
|
|
68
|
+
method: "post";
|
|
69
|
+
path: string;
|
|
70
|
+
baseUrl: string;
|
|
71
|
+
requestFormat: "json";
|
|
72
|
+
parameters: {
|
|
73
|
+
body: z.ZodObject<{
|
|
74
|
+
userIds: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
userIds?: number[] | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
userIds?: number[] | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
response: z.ZodObject<{
|
|
82
|
+
userPresences: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
|
+
userPresenceType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
84
|
+
lastLocation: z.ZodOptional<z.ZodString>;
|
|
85
|
+
placeId: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
rootPlaceId: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
gameId: z.ZodOptional<z.ZodString>;
|
|
88
|
+
universeId: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
userId: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
lastOnline: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
userPresenceType?: 0 | 2 | 1 | 3 | undefined;
|
|
93
|
+
lastLocation?: string | undefined;
|
|
94
|
+
placeId?: number | undefined;
|
|
95
|
+
rootPlaceId?: number | undefined;
|
|
96
|
+
gameId?: string | undefined;
|
|
97
|
+
universeId?: number | undefined;
|
|
98
|
+
userId?: number | undefined;
|
|
99
|
+
lastOnline?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
userPresenceType?: 0 | 2 | 1 | 3 | undefined;
|
|
102
|
+
lastLocation?: string | undefined;
|
|
103
|
+
placeId?: number | undefined;
|
|
104
|
+
rootPlaceId?: number | undefined;
|
|
105
|
+
gameId?: string | undefined;
|
|
106
|
+
universeId?: number | undefined;
|
|
107
|
+
userId?: number | undefined;
|
|
108
|
+
lastOnline?: string | undefined;
|
|
109
|
+
}>, "many">>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
userPresences?: {
|
|
112
|
+
userPresenceType?: 0 | 2 | 1 | 3 | undefined;
|
|
113
|
+
lastLocation?: string | undefined;
|
|
114
|
+
placeId?: number | undefined;
|
|
115
|
+
rootPlaceId?: number | undefined;
|
|
116
|
+
gameId?: string | undefined;
|
|
117
|
+
universeId?: number | undefined;
|
|
118
|
+
userId?: number | undefined;
|
|
119
|
+
lastOnline?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
userPresences?: {
|
|
123
|
+
userPresenceType?: 0 | 2 | 1 | 3 | undefined;
|
|
124
|
+
lastLocation?: string | undefined;
|
|
125
|
+
placeId?: number | undefined;
|
|
126
|
+
rootPlaceId?: number | undefined;
|
|
127
|
+
gameId?: string | undefined;
|
|
128
|
+
universeId?: number | undefined;
|
|
129
|
+
userId?: number | undefined;
|
|
130
|
+
lastOnline?: string | undefined;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
errors: never[];
|
|
134
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postV1presenceusers = exports.postV1presenceregisterAppPresence = exports.postV1presencelastOnline = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
var Roblox_Presence_Api_Models_Request_LastOnlineRequest = zod_1.z.object({ userIds: zod_1.z.array(zod_1.z.number()) }).partial();
|
|
6
|
+
var Roblox_Presence_Api_Models_Response_LastOnline = zod_1.z
|
|
7
|
+
.object({ userId: zod_1.z.number().int(), lastOnline: zod_1.z.string().datetime() })
|
|
8
|
+
.partial();
|
|
9
|
+
var Roblox_Presence_Api_Models_Response_LastOnlineResponse = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
lastOnlineTimestamps: zod_1.z.array(Roblox_Presence_Api_Models_Response_LastOnline),
|
|
12
|
+
})
|
|
13
|
+
.partial();
|
|
14
|
+
var Roblox_Presence_Api_Models_Request_RegisterAppPresenceRequest = zod_1.z
|
|
15
|
+
.object({
|
|
16
|
+
location: zod_1.z.string(),
|
|
17
|
+
placeId: zod_1.z.number().int(),
|
|
18
|
+
disconnect: zod_1.z.boolean(),
|
|
19
|
+
})
|
|
20
|
+
.partial();
|
|
21
|
+
var Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({}).partial();
|
|
22
|
+
var Roblox_Presence_Api_Models_Request_UserPresenceRequest = zod_1.z.object({ userIds: zod_1.z.array(zod_1.z.number()) }).partial();
|
|
23
|
+
var Roblox_Presence_Api_Models_Response_UserPresence = zod_1.z
|
|
24
|
+
.object({
|
|
25
|
+
userPresenceType: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1), zod_1.z.literal(2), zod_1.z.literal(3)]),
|
|
26
|
+
lastLocation: zod_1.z.string(),
|
|
27
|
+
placeId: zod_1.z.number().int(),
|
|
28
|
+
rootPlaceId: zod_1.z.number().int(),
|
|
29
|
+
gameId: zod_1.z.string().uuid(),
|
|
30
|
+
universeId: zod_1.z.number().int(),
|
|
31
|
+
userId: zod_1.z.number().int(),
|
|
32
|
+
lastOnline: zod_1.z.string().datetime(),
|
|
33
|
+
})
|
|
34
|
+
.partial();
|
|
35
|
+
var Roblox_Presence_Api_Models_Response_UserPresencesResponse = zod_1.z
|
|
36
|
+
.object({
|
|
37
|
+
userPresences: zod_1.z.array(Roblox_Presence_Api_Models_Response_UserPresence),
|
|
38
|
+
})
|
|
39
|
+
.partial();
|
|
40
|
+
var schemas = {
|
|
41
|
+
Roblox_Presence_Api_Models_Request_LastOnlineRequest: Roblox_Presence_Api_Models_Request_LastOnlineRequest,
|
|
42
|
+
Roblox_Presence_Api_Models_Response_LastOnline: Roblox_Presence_Api_Models_Response_LastOnline,
|
|
43
|
+
Roblox_Presence_Api_Models_Response_LastOnlineResponse: Roblox_Presence_Api_Models_Response_LastOnlineResponse,
|
|
44
|
+
Roblox_Presence_Api_Models_Request_RegisterAppPresenceRequest: Roblox_Presence_Api_Models_Request_RegisterAppPresenceRequest,
|
|
45
|
+
Roblox_Web_WebAPI_ApiEmptyResponseModel: Roblox_Web_WebAPI_ApiEmptyResponseModel,
|
|
46
|
+
Roblox_Presence_Api_Models_Request_UserPresenceRequest: Roblox_Presence_Api_Models_Request_UserPresenceRequest,
|
|
47
|
+
Roblox_Presence_Api_Models_Response_UserPresence: Roblox_Presence_Api_Models_Response_UserPresence,
|
|
48
|
+
Roblox_Presence_Api_Models_Response_UserPresencesResponse: Roblox_Presence_Api_Models_Response_UserPresencesResponse,
|
|
49
|
+
};
|
|
50
|
+
exports.postV1presencelastOnline = {
|
|
51
|
+
method: 'post',
|
|
52
|
+
path: '/v1/presence/last-online',
|
|
53
|
+
baseUrl: 'https://presence.roblox.com',
|
|
54
|
+
requestFormat: 'json',
|
|
55
|
+
parameters: {
|
|
56
|
+
body: Roblox_Presence_Api_Models_Request_LastOnlineRequest,
|
|
57
|
+
},
|
|
58
|
+
response: Roblox_Presence_Api_Models_Response_LastOnlineResponse,
|
|
59
|
+
errors: [],
|
|
60
|
+
};
|
|
61
|
+
exports.postV1presenceregisterAppPresence = {
|
|
62
|
+
method: 'post',
|
|
63
|
+
path: '/v1/presence/register-app-presence',
|
|
64
|
+
baseUrl: 'https://presence.roblox.com',
|
|
65
|
+
requestFormat: 'json',
|
|
66
|
+
parameters: {
|
|
67
|
+
body: Roblox_Presence_Api_Models_Request_RegisterAppPresenceRequest,
|
|
68
|
+
},
|
|
69
|
+
response: zod_1.z.object({}).partial(),
|
|
70
|
+
errors: [
|
|
71
|
+
{
|
|
72
|
+
status: 401,
|
|
73
|
+
description: "0: Authorization has been denied for this request.",
|
|
74
|
+
schema: zod_1.z.void(),
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
status: 403,
|
|
78
|
+
description: "0: Token Validation Failed",
|
|
79
|
+
schema: zod_1.z.void(),
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
};
|
|
83
|
+
exports.postV1presenceusers = {
|
|
84
|
+
method: 'post',
|
|
85
|
+
path: '/v1/presence/users',
|
|
86
|
+
baseUrl: 'https://presence.roblox.com',
|
|
87
|
+
requestFormat: 'json',
|
|
88
|
+
parameters: {
|
|
89
|
+
body: Roblox_Presence_Api_Models_Request_UserPresenceRequest,
|
|
90
|
+
},
|
|
91
|
+
response: Roblox_Presence_Api_Models_Response_UserPresencesResponse,
|
|
92
|
+
errors: [],
|
|
93
|
+
};
|