rozod 4.8.0 → 4.8.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.
- package/lib/endpoints/accountinformationv1.d.ts +218 -203
- package/lib/endpoints/accountinformationv1.js +72 -75
- package/lib/endpoints/accountsettingsv1.d.ts +311 -271
- package/lib/endpoints/accountsettingsv1.js +89 -104
- package/lib/endpoints/assetdeliveryv1.d.ts +268 -267
- package/lib/endpoints/assetdeliveryv1.js +8 -16
- package/lib/endpoints/assetdeliveryv2.d.ts +283 -279
- package/lib/endpoints/assetdeliveryv2.js +14 -21
- package/lib/endpoints/authv1.d.ts +671 -653
- package/lib/endpoints/authv1.js +169 -209
- package/lib/endpoints/authv2.d.ts +383 -537
- package/lib/endpoints/authv2.js +97 -144
- package/lib/endpoints/authv3.d.ts +21 -24
- package/lib/endpoints/authv3.js +6 -12
- package/lib/endpoints/avatarv1.d.ts +417 -426
- package/lib/endpoints/avatarv1.js +100 -126
- package/lib/endpoints/avatarv2.d.ts +161 -169
- package/lib/endpoints/avatarv2.js +59 -69
- package/lib/endpoints/avatarv3.d.ts +104 -108
- package/lib/endpoints/avatarv3.js +41 -45
- package/lib/endpoints/badgesv1.d.ts +172 -153
- package/lib/endpoints/badgesv1.js +35 -49
- package/lib/endpoints/catalogv1.d.ts +417 -433
- package/lib/endpoints/catalogv1.js +57 -93
- package/lib/endpoints/chatv2.d.ts +337 -326
- package/lib/endpoints/chatv2.js +100 -120
- package/lib/endpoints/developv1.d.ts +394 -496
- package/lib/endpoints/developv1.js +90 -110
- package/lib/endpoints/developv2.d.ts +201 -190
- package/lib/endpoints/developv2.js +24 -41
- package/lib/endpoints/economyv1.d.ts +10 -8
- package/lib/endpoints/economyv1.js +4 -2
- package/lib/endpoints/friendsv1.d.ts +376 -350
- package/lib/endpoints/friendsv1.js +79 -107
- package/lib/endpoints/gamejoinv1.d.ts +208 -203
- package/lib/endpoints/gamejoinv1.js +31 -51
- package/lib/endpoints/gamesv1.d.ts +578 -609
- package/lib/endpoints/gamesv1.js +137 -182
- package/lib/endpoints/gamesv2.d.ts +91 -91
- package/lib/endpoints/gamesv2.js +12 -24
- package/lib/endpoints/groupsv1.d.ts +1134 -1182
- package/lib/endpoints/groupsv1.js +222 -296
- package/lib/endpoints/groupsv2.d.ts +107 -115
- package/lib/endpoints/groupsv2.js +34 -48
- package/lib/endpoints/inventoryv1.d.ts +128 -128
- package/lib/endpoints/inventoryv1.js +25 -35
- package/lib/endpoints/inventoryv2.d.ts +162 -164
- package/lib/endpoints/inventoryv2.js +17 -33
- package/lib/endpoints/itemconfigurationv1.d.ts +131 -133
- package/lib/endpoints/itemconfigurationv1.js +37 -48
- package/lib/endpoints/presencev1.d.ts +54 -54
- package/lib/endpoints/presencev1.js +18 -24
- package/lib/endpoints/privatemessagesv1.d.ts +124 -132
- package/lib/endpoints/privatemessagesv1.js +33 -50
- package/lib/endpoints/thumbnailsv1.d.ts +370 -321
- package/lib/endpoints/thumbnailsv1.js +15 -29
- package/lib/endpoints/tradesv1.d.ts +175 -167
- package/lib/endpoints/tradesv1.js +35 -45
- package/lib/endpoints/translationsv1.d.ts +29 -26
- package/lib/endpoints/translationsv1.js +7 -4
- package/lib/endpoints/usersv1.d.ts +196 -192
- package/lib/endpoints/usersv1.js +70 -70
- package/lib/index.d.ts +3 -12
- package/package.json +1 -1
|
@@ -1,121 +1,118 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { endpoint } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { endpoint } from "..";
|
|
3
3
|
|
|
4
|
-
const Roblox_AccountInformation_Api_Models_BirthdateResponse = z
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const Roblox_AccountInformation_Api_Models_PhoneRequest = z
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
.passthrough();
|
|
59
|
-
const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z
|
|
60
|
-
.object({
|
|
4
|
+
const Roblox_AccountInformation_Api_Models_BirthdateResponse = z.object({
|
|
5
|
+
birthMonth: z.number().int(),
|
|
6
|
+
birthDay: z.number().int(),
|
|
7
|
+
birthYear: z.number().int(),
|
|
8
|
+
});
|
|
9
|
+
const Roblox_AccountInformation_Api_Models_BirthdateRequest = z.object({
|
|
10
|
+
birthMonth: z.number().int(),
|
|
11
|
+
birthDay: z.number().int(),
|
|
12
|
+
birthYear: z.number().int(),
|
|
13
|
+
password: z.string(),
|
|
14
|
+
});
|
|
15
|
+
const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
|
|
16
|
+
const Roblox_AccountInformation_Api_Models_DescriptionResponse = z.object({
|
|
17
|
+
description: z.string(),
|
|
18
|
+
});
|
|
19
|
+
const Roblox_AccountInformation_Api_Models_DescriptionRequest = z.object({
|
|
20
|
+
description: z.string(),
|
|
21
|
+
});
|
|
22
|
+
const Roblox_AccountInformation_Api_Models_GenderResponse = z.object({
|
|
23
|
+
gender: z.number().int(),
|
|
24
|
+
});
|
|
25
|
+
const Roblox_AccountInformation_Api_Models_GenderRequest = z.object({
|
|
26
|
+
gender: z.string(),
|
|
27
|
+
});
|
|
28
|
+
const Roblox_AccountInformation_Api_Models_MetadataResponse = z.object({
|
|
29
|
+
isAllowedNotificationsEndpointDisabled: z.boolean(),
|
|
30
|
+
isAccountSettingsPolicyEnabled: z.boolean(),
|
|
31
|
+
isPhoneNumberEnabled: z.boolean(),
|
|
32
|
+
MaxUserDescriptionLength: z.number().int(),
|
|
33
|
+
isUserDescriptionEnabled: z.boolean(),
|
|
34
|
+
isUserBlockEndpointsUpdated: z.boolean(),
|
|
35
|
+
isPasswordRequiredForAgingDown: z.boolean(),
|
|
36
|
+
shouldUsePersonaForIdVerification: z.boolean(),
|
|
37
|
+
shouldDisplaySessionManagement: z.boolean(),
|
|
38
|
+
});
|
|
39
|
+
const Roblox_AccountInformation_Api_Models_PhoneResponse = z.object({
|
|
40
|
+
countryCode: z.string(),
|
|
41
|
+
prefix: z.string(),
|
|
42
|
+
phone: z.string(),
|
|
43
|
+
isVerified: z.boolean(),
|
|
44
|
+
verificationCodeLength: z.number().int(),
|
|
45
|
+
canBypassPasswordForPhoneUpdate: z.boolean(),
|
|
46
|
+
});
|
|
47
|
+
const Roblox_AccountInformation_Api_Models_PhoneRequest = z.object({
|
|
48
|
+
countryCode: z.string(),
|
|
49
|
+
prefix: z.string(),
|
|
50
|
+
phone: z.string(),
|
|
51
|
+
password: z.string(),
|
|
52
|
+
verificationChannel: z.string(),
|
|
53
|
+
});
|
|
54
|
+
const Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse =
|
|
55
|
+
z.object({ verificationChannel: z.string(), data: z.string() });
|
|
56
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsResponse = z.object(
|
|
57
|
+
{
|
|
61
58
|
promotionChannelsVisibilityPrivacy: z.string(),
|
|
62
59
|
facebook: z.string(),
|
|
63
60
|
twitter: z.string(),
|
|
64
61
|
youtube: z.string(),
|
|
65
62
|
twitch: z.string(),
|
|
66
63
|
guilded: z.string(),
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.
|
|
82
|
-
|
|
83
|
-
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
|
|
84
|
-
.object({
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsRequest = z.object({
|
|
67
|
+
facebook: z.string(),
|
|
68
|
+
twitter: z.string(),
|
|
69
|
+
youtube: z.string(),
|
|
70
|
+
twitch: z.string(),
|
|
71
|
+
guilded: z.string(),
|
|
72
|
+
promotionChannelsVisibilityPrivacy: z.string(),
|
|
73
|
+
});
|
|
74
|
+
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse = z.object(
|
|
75
|
+
{ userId: z.number().int(), name: z.string(), code: z.string() }
|
|
76
|
+
);
|
|
77
|
+
const Roblox_AccountInformation_Api_Models_StarCodeAffiliateRequest = z.object({
|
|
78
|
+
code: z.string(),
|
|
79
|
+
});
|
|
80
|
+
const Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse =
|
|
81
|
+
z.object({
|
|
85
82
|
facebook: z.string(),
|
|
86
83
|
twitter: z.string(),
|
|
87
84
|
youtube: z.string(),
|
|
88
85
|
twitch: z.string(),
|
|
89
86
|
guilded: z.string(),
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
87
|
+
});
|
|
88
|
+
const Roblox_AccountInformation_Api_RobloxBadgeResponse = z.object({
|
|
89
|
+
id: z.number().int(),
|
|
90
|
+
name: z.string(),
|
|
91
|
+
description: z.string(),
|
|
92
|
+
imageUrl: z.string(),
|
|
93
|
+
});
|
|
94
|
+
const Roblox_AccountInformation_Api_Models_ConsecutiveLoginDaysResponse =
|
|
95
|
+
z.object({ count: z.number().int() });
|
|
96
|
+
const Roblox_AccountInformation_Api_Models_VerifyEmailRequest = z.object({
|
|
97
|
+
ticket: z.string(),
|
|
98
|
+
});
|
|
99
|
+
const Roblox_AccountInformation_Api_Models_VerifyEmailResponse = z.object({
|
|
100
|
+
verifiedUserHatAssetId: z.number().int(),
|
|
101
|
+
});
|
|
102
|
+
const Roblox_AccountInformation_Api_Models_EmptyRequest = z.object({});
|
|
103
|
+
const Roblox_AccountInformation_Api_Models_VerifyPhoneRequest = z.object({
|
|
104
|
+
code: z.string(),
|
|
105
|
+
});
|
|
109
106
|
|
|
110
107
|
/**
|
|
111
108
|
* @api GET https://accountinformation.roblox.com/v1/birthdate
|
|
112
109
|
* @summary Get the user's birthdate
|
|
113
110
|
*/
|
|
114
111
|
export const getBirthdate = endpoint({
|
|
115
|
-
method:
|
|
116
|
-
path:
|
|
117
|
-
baseUrl:
|
|
118
|
-
requestFormat:
|
|
112
|
+
method: "get" as const,
|
|
113
|
+
path: "/v1/birthdate",
|
|
114
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
115
|
+
requestFormat: "json" as const,
|
|
119
116
|
response: Roblox_AccountInformation_Api_Models_BirthdateResponse,
|
|
120
117
|
errors: [
|
|
121
118
|
{
|
|
@@ -134,16 +131,16 @@ export const getBirthdate = endpoint({
|
|
|
134
131
|
* @param body The Roblox.AccountInformation.Api.Models.BirthdateRequest
|
|
135
132
|
*/
|
|
136
133
|
export const postBirthdate = endpoint({
|
|
137
|
-
method:
|
|
138
|
-
path:
|
|
139
|
-
baseUrl:
|
|
140
|
-
requestFormat:
|
|
134
|
+
method: "post" as const,
|
|
135
|
+
path: "/v1/birthdate",
|
|
136
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
137
|
+
requestFormat: "json" as const,
|
|
141
138
|
serializationMethod: {
|
|
142
139
|
body: {},
|
|
143
140
|
},
|
|
144
141
|
parameters: {},
|
|
145
142
|
body: Roblox_AccountInformation_Api_Models_BirthdateRequest,
|
|
146
|
-
response: z.object({})
|
|
143
|
+
response: z.object({}),
|
|
147
144
|
errors: [
|
|
148
145
|
{
|
|
149
146
|
status: 400,
|
|
@@ -173,11 +170,11 @@ export const postBirthdate = endpoint({
|
|
|
173
170
|
* @summary Get the user's description
|
|
174
171
|
*/
|
|
175
172
|
export const getDescription = endpoint({
|
|
176
|
-
method:
|
|
177
|
-
path:
|
|
178
|
-
baseUrl:
|
|
179
|
-
requestFormat:
|
|
180
|
-
response: z.object({ description: z.string() })
|
|
173
|
+
method: "get" as const,
|
|
174
|
+
path: "/v1/description",
|
|
175
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
176
|
+
requestFormat: "json" as const,
|
|
177
|
+
response: z.object({ description: z.string() }),
|
|
181
178
|
errors: [
|
|
182
179
|
{
|
|
183
180
|
status: 400,
|
|
@@ -195,16 +192,16 @@ export const getDescription = endpoint({
|
|
|
195
192
|
* @param body The Roblox.AccountInformation.Api.Models.DescriptionRequest
|
|
196
193
|
*/
|
|
197
194
|
export const postDescription = endpoint({
|
|
198
|
-
method:
|
|
199
|
-
path:
|
|
200
|
-
baseUrl:
|
|
201
|
-
requestFormat:
|
|
195
|
+
method: "post" as const,
|
|
196
|
+
path: "/v1/description",
|
|
197
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
198
|
+
requestFormat: "json" as const,
|
|
202
199
|
serializationMethod: {
|
|
203
200
|
body: {},
|
|
204
201
|
},
|
|
205
202
|
parameters: {},
|
|
206
|
-
body: z.object({ description: z.string() })
|
|
207
|
-
response: z.object({ description: z.string() })
|
|
203
|
+
body: z.object({ description: z.string() }),
|
|
204
|
+
response: z.object({ description: z.string() }),
|
|
208
205
|
errors: [
|
|
209
206
|
{
|
|
210
207
|
status: 400,
|
|
@@ -235,16 +232,16 @@ export const postDescription = endpoint({
|
|
|
235
232
|
* @param body Roblox.AccountInformation.Api.Models.VerifyEmailRequest
|
|
236
233
|
*/
|
|
237
234
|
export const postEmailVerify = endpoint({
|
|
238
|
-
method:
|
|
239
|
-
path:
|
|
240
|
-
baseUrl:
|
|
241
|
-
requestFormat:
|
|
235
|
+
method: "post" as const,
|
|
236
|
+
path: "/v1/email/verify",
|
|
237
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
238
|
+
requestFormat: "json" as const,
|
|
242
239
|
serializationMethod: {
|
|
243
240
|
body: {},
|
|
244
241
|
},
|
|
245
242
|
parameters: {},
|
|
246
|
-
body: z.object({ ticket: z.string() })
|
|
247
|
-
response: z.object({ verifiedUserHatAssetId: z.number().int() })
|
|
243
|
+
body: z.object({ ticket: z.string() }),
|
|
244
|
+
response: z.object({ verifiedUserHatAssetId: z.number().int() }),
|
|
248
245
|
errors: [
|
|
249
246
|
{
|
|
250
247
|
status: 403,
|
|
@@ -257,11 +254,11 @@ export const postEmailVerify = endpoint({
|
|
|
257
254
|
* @summary Get the user's gender
|
|
258
255
|
*/
|
|
259
256
|
export const getGender = endpoint({
|
|
260
|
-
method:
|
|
261
|
-
path:
|
|
262
|
-
baseUrl:
|
|
263
|
-
requestFormat:
|
|
264
|
-
response: z.object({ gender: z.number().int() })
|
|
257
|
+
method: "get" as const,
|
|
258
|
+
path: "/v1/gender",
|
|
259
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
260
|
+
requestFormat: "json" as const,
|
|
261
|
+
response: z.object({ gender: z.number().int() }),
|
|
265
262
|
errors: [
|
|
266
263
|
{
|
|
267
264
|
status: 400,
|
|
@@ -279,16 +276,16 @@ export const getGender = endpoint({
|
|
|
279
276
|
* @param body The Roblox.AccountInformation.Api.Models.GenderRequest
|
|
280
277
|
*/
|
|
281
278
|
export const postGender = endpoint({
|
|
282
|
-
method:
|
|
283
|
-
path:
|
|
284
|
-
baseUrl:
|
|
285
|
-
requestFormat:
|
|
279
|
+
method: "post" as const,
|
|
280
|
+
path: "/v1/gender",
|
|
281
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
282
|
+
requestFormat: "json" as const,
|
|
286
283
|
serializationMethod: {
|
|
287
284
|
body: {},
|
|
288
285
|
},
|
|
289
286
|
parameters: {},
|
|
290
|
-
body: z.object({ gender: z.string() })
|
|
291
|
-
response: z.object({})
|
|
287
|
+
body: z.object({ gender: z.string() }),
|
|
288
|
+
response: z.object({}),
|
|
292
289
|
errors: [
|
|
293
290
|
{
|
|
294
291
|
status: 400,
|
|
@@ -315,10 +312,10 @@ export const postGender = endpoint({
|
|
|
315
312
|
* @summary Get the metadata
|
|
316
313
|
*/
|
|
317
314
|
export const getMetadata = endpoint({
|
|
318
|
-
method:
|
|
319
|
-
path:
|
|
320
|
-
baseUrl:
|
|
321
|
-
requestFormat:
|
|
315
|
+
method: "get" as const,
|
|
316
|
+
path: "/v1/metadata",
|
|
317
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
318
|
+
requestFormat: "json" as const,
|
|
322
319
|
response: Roblox_AccountInformation_Api_Models_MetadataResponse,
|
|
323
320
|
errors: [],
|
|
324
321
|
});
|
|
@@ -327,10 +324,10 @@ export const getMetadata = endpoint({
|
|
|
327
324
|
* @summary Get Verified Phone Number
|
|
328
325
|
*/
|
|
329
326
|
export const getPhone = endpoint({
|
|
330
|
-
method:
|
|
331
|
-
path:
|
|
332
|
-
baseUrl:
|
|
333
|
-
requestFormat:
|
|
327
|
+
method: "get" as const,
|
|
328
|
+
path: "/v1/phone",
|
|
329
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
330
|
+
requestFormat: "json" as const,
|
|
334
331
|
response: Roblox_AccountInformation_Api_Models_PhoneResponse,
|
|
335
332
|
errors: [
|
|
336
333
|
{
|
|
@@ -349,16 +346,17 @@ export const getPhone = endpoint({
|
|
|
349
346
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
350
347
|
*/
|
|
351
348
|
export const postPhone = endpoint({
|
|
352
|
-
method:
|
|
353
|
-
path:
|
|
354
|
-
baseUrl:
|
|
355
|
-
requestFormat:
|
|
349
|
+
method: "post" as const,
|
|
350
|
+
path: "/v1/phone",
|
|
351
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
352
|
+
requestFormat: "json" as const,
|
|
356
353
|
serializationMethod: {
|
|
357
354
|
body: {},
|
|
358
355
|
},
|
|
359
356
|
parameters: {},
|
|
360
357
|
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
361
|
-
response:
|
|
358
|
+
response:
|
|
359
|
+
Roblox_Platform_UserPhoneNumberVerification_Models_PendingVerificationResponse,
|
|
362
360
|
errors: [
|
|
363
361
|
{
|
|
364
362
|
status: 400,
|
|
@@ -397,16 +395,16 @@ export const postPhone = endpoint({
|
|
|
397
395
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
398
396
|
*/
|
|
399
397
|
export const postPhoneDelete = endpoint({
|
|
400
|
-
method:
|
|
401
|
-
path:
|
|
402
|
-
baseUrl:
|
|
403
|
-
requestFormat:
|
|
398
|
+
method: "post" as const,
|
|
399
|
+
path: "/v1/phone/delete",
|
|
400
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
401
|
+
requestFormat: "json" as const,
|
|
404
402
|
serializationMethod: {
|
|
405
403
|
body: {},
|
|
406
404
|
},
|
|
407
405
|
parameters: {},
|
|
408
406
|
body: Roblox_AccountInformation_Api_Models_PhoneRequest,
|
|
409
|
-
response: z.object({})
|
|
407
|
+
response: z.object({}),
|
|
410
408
|
errors: [
|
|
411
409
|
{
|
|
412
410
|
status: 401,
|
|
@@ -438,16 +436,16 @@ export const postPhoneDelete = endpoint({
|
|
|
438
436
|
* @param body Roblox.AccountInformation.Api.Models.PhoneRequest
|
|
439
437
|
*/
|
|
440
438
|
export const postPhoneResend = endpoint({
|
|
441
|
-
method:
|
|
442
|
-
path:
|
|
443
|
-
baseUrl:
|
|
444
|
-
requestFormat:
|
|
439
|
+
method: "post" as const,
|
|
440
|
+
path: "/v1/phone/resend",
|
|
441
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
442
|
+
requestFormat: "json" as const,
|
|
445
443
|
serializationMethod: {
|
|
446
444
|
body: {},
|
|
447
445
|
},
|
|
448
446
|
parameters: {},
|
|
449
|
-
body: z.object({}).
|
|
450
|
-
response: z.object({})
|
|
447
|
+
body: z.object({}).optional(),
|
|
448
|
+
response: z.object({}),
|
|
451
449
|
errors: [
|
|
452
450
|
{
|
|
453
451
|
status: 401,
|
|
@@ -477,16 +475,16 @@ export const postPhoneResend = endpoint({
|
|
|
477
475
|
* @param body Roblox.AccountInformation.Api.Models.VerifyPhoneRequest
|
|
478
476
|
*/
|
|
479
477
|
export const postPhoneVerify = endpoint({
|
|
480
|
-
method:
|
|
481
|
-
path:
|
|
482
|
-
baseUrl:
|
|
483
|
-
requestFormat:
|
|
478
|
+
method: "post" as const,
|
|
479
|
+
path: "/v1/phone/verify",
|
|
480
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
481
|
+
requestFormat: "json" as const,
|
|
484
482
|
serializationMethod: {
|
|
485
483
|
body: {},
|
|
486
484
|
},
|
|
487
485
|
parameters: {},
|
|
488
|
-
body: z.object({ code: z.string() })
|
|
489
|
-
response: z.object({})
|
|
486
|
+
body: z.object({ code: z.string() }),
|
|
487
|
+
response: z.object({}),
|
|
490
488
|
errors: [
|
|
491
489
|
{
|
|
492
490
|
status: 400,
|
|
@@ -519,12 +517,22 @@ export const postPhoneVerify = endpoint({
|
|
|
519
517
|
/**
|
|
520
518
|
* @api GET https://accountinformation.roblox.com/v1/promotion-channels
|
|
521
519
|
* @summary Get the user's promotion channels
|
|
520
|
+
* @param alwaysReturnUrls Whether all promotion channel links should be returned as full URLs.
|
|
522
521
|
*/
|
|
523
522
|
export const getPromotionChannels = endpoint({
|
|
524
|
-
method:
|
|
525
|
-
path:
|
|
526
|
-
baseUrl:
|
|
527
|
-
requestFormat:
|
|
523
|
+
method: "get" as const,
|
|
524
|
+
path: "/v1/promotion-channels",
|
|
525
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
526
|
+
requestFormat: "json" as const,
|
|
527
|
+
serializationMethod: {
|
|
528
|
+
alwaysReturnUrls: {
|
|
529
|
+
style: "form",
|
|
530
|
+
explode: true,
|
|
531
|
+
},
|
|
532
|
+
},
|
|
533
|
+
parameters: {
|
|
534
|
+
alwaysReturnUrls: z.boolean().optional(),
|
|
535
|
+
},
|
|
528
536
|
response: Roblox_AccountInformation_Api_Models_PromotionChannelsResponse,
|
|
529
537
|
errors: [
|
|
530
538
|
{
|
|
@@ -543,16 +551,16 @@ export const getPromotionChannels = endpoint({
|
|
|
543
551
|
* @param body The Roblox.AccountInformation.Api.Models.PromotionChannelsRequest
|
|
544
552
|
*/
|
|
545
553
|
export const postPromotionChannels = endpoint({
|
|
546
|
-
method:
|
|
547
|
-
path:
|
|
548
|
-
baseUrl:
|
|
549
|
-
requestFormat:
|
|
554
|
+
method: "post" as const,
|
|
555
|
+
path: "/v1/promotion-channels",
|
|
556
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
557
|
+
requestFormat: "json" as const,
|
|
550
558
|
serializationMethod: {
|
|
551
559
|
body: {},
|
|
552
560
|
},
|
|
553
561
|
parameters: {},
|
|
554
562
|
body: Roblox_AccountInformation_Api_Models_PromotionChannelsRequest,
|
|
555
|
-
response: z.object({})
|
|
563
|
+
response: z.object({}),
|
|
556
564
|
errors: [
|
|
557
565
|
{
|
|
558
566
|
status: 400,
|
|
@@ -580,10 +588,10 @@ export const postPromotionChannels = endpoint({
|
|
|
580
588
|
* @summary Gets a star code affiliate supporter for the authenticated user
|
|
581
589
|
*/
|
|
582
590
|
export const getStarCodeAffiliates = endpoint({
|
|
583
|
-
method:
|
|
584
|
-
path:
|
|
585
|
-
baseUrl:
|
|
586
|
-
requestFormat:
|
|
591
|
+
method: "get" as const,
|
|
592
|
+
path: "/v1/star-code-affiliates",
|
|
593
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
594
|
+
requestFormat: "json" as const,
|
|
587
595
|
response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
588
596
|
errors: [
|
|
589
597
|
{
|
|
@@ -602,15 +610,15 @@ export const getStarCodeAffiliates = endpoint({
|
|
|
602
610
|
* @param body Roblox.AccountInformation.Api.Models.StarCodeAffiliateRequest
|
|
603
611
|
*/
|
|
604
612
|
export const postStarCodeAffiliates = endpoint({
|
|
605
|
-
method:
|
|
606
|
-
path:
|
|
607
|
-
baseUrl:
|
|
608
|
-
requestFormat:
|
|
613
|
+
method: "post" as const,
|
|
614
|
+
path: "/v1/star-code-affiliates",
|
|
615
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
616
|
+
requestFormat: "json" as const,
|
|
609
617
|
serializationMethod: {
|
|
610
618
|
body: {},
|
|
611
619
|
},
|
|
612
620
|
parameters: {},
|
|
613
|
-
body: z.object({ code: z.string() })
|
|
621
|
+
body: z.object({ code: z.string() }),
|
|
614
622
|
response: Roblox_AccountInformation_Api_Models_StarCodeAffiliateResponse,
|
|
615
623
|
errors: [
|
|
616
624
|
{
|
|
@@ -636,11 +644,11 @@ export const postStarCodeAffiliates = endpoint({
|
|
|
636
644
|
* @summary Removes the star code affiliate supporter for the authenticated user
|
|
637
645
|
*/
|
|
638
646
|
export const deleteStarCodeAffiliates = endpoint({
|
|
639
|
-
method:
|
|
640
|
-
path:
|
|
641
|
-
baseUrl:
|
|
642
|
-
requestFormat:
|
|
643
|
-
response: z.object({})
|
|
647
|
+
method: "delete" as const,
|
|
648
|
+
path: "/v1/star-code-affiliates",
|
|
649
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
650
|
+
requestFormat: "json" as const,
|
|
651
|
+
response: z.object({}),
|
|
644
652
|
errors: [
|
|
645
653
|
{
|
|
646
654
|
status: 401,
|
|
@@ -659,22 +667,29 @@ export const deleteStarCodeAffiliates = endpoint({
|
|
|
659
667
|
/**
|
|
660
668
|
* @api GET https://accountinformation.roblox.com/v1/users/:userId/promotion-channels
|
|
661
669
|
* @summary Get promotion channels for a given user ID
|
|
662
|
-
* @param userId
|
|
670
|
+
* @param userId The ID of the user to fetch the promotion channels for.
|
|
671
|
+
* @param alwaysReturnUrls Whether all promotion channel links should be returned as full URLs.
|
|
663
672
|
*/
|
|
664
673
|
export const getUsersUseridPromotionChannels = endpoint({
|
|
665
|
-
method:
|
|
666
|
-
path:
|
|
667
|
-
baseUrl:
|
|
668
|
-
requestFormat:
|
|
674
|
+
method: "get" as const,
|
|
675
|
+
path: "/v1/users/:userId/promotion-channels",
|
|
676
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
677
|
+
requestFormat: "json" as const,
|
|
669
678
|
serializationMethod: {
|
|
670
679
|
userId: {
|
|
671
|
-
style:
|
|
680
|
+
style: "simple",
|
|
681
|
+
},
|
|
682
|
+
alwaysReturnUrls: {
|
|
683
|
+
style: "form",
|
|
684
|
+
explode: true,
|
|
672
685
|
},
|
|
673
686
|
},
|
|
674
687
|
parameters: {
|
|
675
688
|
userId: z.number().int(),
|
|
689
|
+
alwaysReturnUrls: z.boolean().optional(),
|
|
676
690
|
},
|
|
677
|
-
response:
|
|
691
|
+
response:
|
|
692
|
+
Roblox_AccountInformation_Api_Models_PromotionChannelsByUserIdResponse,
|
|
678
693
|
errors: [
|
|
679
694
|
{
|
|
680
695
|
status: 400,
|
|
@@ -688,13 +703,13 @@ export const getUsersUseridPromotionChannels = endpoint({
|
|
|
688
703
|
* @param userId
|
|
689
704
|
*/
|
|
690
705
|
export const getUsersUseridRobloxBadges = endpoint({
|
|
691
|
-
method:
|
|
692
|
-
path:
|
|
693
|
-
baseUrl:
|
|
694
|
-
requestFormat:
|
|
706
|
+
method: "get" as const,
|
|
707
|
+
path: "/v1/users/:userId/roblox-badges",
|
|
708
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
709
|
+
requestFormat: "json" as const,
|
|
695
710
|
serializationMethod: {
|
|
696
711
|
userId: {
|
|
697
|
-
style:
|
|
712
|
+
style: "simple",
|
|
698
713
|
},
|
|
699
714
|
},
|
|
700
715
|
parameters: {
|
|
@@ -708,11 +723,11 @@ export const getUsersUseridRobloxBadges = endpoint({
|
|
|
708
723
|
* @summary Returns number of consecutive login days for xbox users
|
|
709
724
|
*/
|
|
710
725
|
export const getXboxLiveConsecutiveLoginDays = endpoint({
|
|
711
|
-
method:
|
|
712
|
-
path:
|
|
713
|
-
baseUrl:
|
|
714
|
-
requestFormat:
|
|
715
|
-
response: z.object({ count: z.number().int() })
|
|
726
|
+
method: "get" as const,
|
|
727
|
+
path: "/v1/xbox-live/consecutive-login-days",
|
|
728
|
+
baseUrl: "https://accountinformation.roblox.com",
|
|
729
|
+
requestFormat: "json" as const,
|
|
730
|
+
response: z.object({ count: z.number().int() }),
|
|
716
731
|
errors: [
|
|
717
732
|
{
|
|
718
733
|
status: 401,
|