rozod 6.6.0 → 6.7.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/README.md +11 -11
- package/lib/endpoints/gamesv1.d.ts +0 -98
- package/lib/endpoints/gamesv2.d.ts +1 -0
- package/lib/endpoints/gamesv2.js +1 -0
- package/lib/opencloud/v2/cloud.d.ts +1 -26
- package/lib/opencloud/v2/cloud.js +3 -41
- package/package.json +48 -4
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ pnpm add rozod
|
|
|
57
57
|
|
|
58
58
|
```ts
|
|
59
59
|
import { fetchApi, isAnyErrorResponse } from 'rozod';
|
|
60
|
-
import { getUsersUserid } from 'rozod/
|
|
60
|
+
import { getUsersUserid } from 'rozod/endpoints/usersv1';
|
|
61
61
|
|
|
62
62
|
// Fetch user details with full type safety
|
|
63
63
|
const userInfo = await fetchApi(getUsersUserid, { userId: 1 });
|
|
@@ -73,7 +73,7 @@ console.log(userInfo.displayName); // Properly typed!
|
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
import { fetchApi, isAnyErrorResponse } from 'rozod';
|
|
76
|
-
import { getGamesIcons } from 'rozod/
|
|
76
|
+
import { getGamesIcons } from 'rozod/endpoints/thumbnailsv1';
|
|
77
77
|
|
|
78
78
|
const response = await fetchApi(getGamesIcons, { universeIds: [1534453623, 65241] });
|
|
79
79
|
if (!isAnyErrorResponse(response)) {
|
|
@@ -85,7 +85,7 @@ if (!isAnyErrorResponse(response)) {
|
|
|
85
85
|
|
|
86
86
|
```ts
|
|
87
87
|
import { fetchApiPages, isAnyErrorResponse } from 'rozod';
|
|
88
|
-
import { getGroupsGroupidWallPosts } from 'rozod/
|
|
88
|
+
import { getGroupsGroupidWallPosts } from 'rozod/endpoints/groupsv2';
|
|
89
89
|
|
|
90
90
|
// Automatically fetches all pages
|
|
91
91
|
const pages = await fetchApiPages(getGroupsGroupidWallPosts, { groupId: 11479637 });
|
|
@@ -98,7 +98,7 @@ if (!isAnyErrorResponse(pages)) {
|
|
|
98
98
|
|
|
99
99
|
```ts
|
|
100
100
|
import { fetchApiPagesGenerator, isAnyErrorResponse } from 'rozod';
|
|
101
|
-
import { getGroupsGroupidWallPosts } from 'rozod/
|
|
101
|
+
import { getGroupsGroupidWallPosts } from 'rozod/endpoints/groupsv2';
|
|
102
102
|
|
|
103
103
|
// Process pages as they arrive
|
|
104
104
|
const pages = fetchApiPagesGenerator(getGroupsGroupidWallPosts, { groupId: 11479637 });
|
|
@@ -113,7 +113,7 @@ for await (const page of pages) {
|
|
|
113
113
|
|
|
114
114
|
```ts
|
|
115
115
|
import { fetchApiSplit } from 'rozod';
|
|
116
|
-
import { getGamesIcons } from 'rozod/
|
|
116
|
+
import { getGamesIcons } from 'rozod/endpoints/thumbnailsv1';
|
|
117
117
|
|
|
118
118
|
// Will automatically split into smaller batches of 100 universeIds per request
|
|
119
119
|
const data = await fetchApiSplit(
|
|
@@ -130,7 +130,7 @@ By default, requests return either the success type or a simple `AnyError`. Use
|
|
|
130
130
|
|
|
131
131
|
```ts
|
|
132
132
|
import { fetchApi, isAnyErrorResponse } from 'rozod';
|
|
133
|
-
import { getGamesIcons } from 'rozod/
|
|
133
|
+
import { getGamesIcons } from 'rozod/endpoints/thumbnailsv1';
|
|
134
134
|
|
|
135
135
|
const res = await fetchApi(getGamesIcons, { universeIds: [1534453623] });
|
|
136
136
|
if (isAnyErrorResponse(res)) {
|
|
@@ -164,7 +164,7 @@ RoZod supports Roblox's newer OpenCloud APIs with the same easy interface:
|
|
|
164
164
|
|
|
165
165
|
```ts
|
|
166
166
|
import { fetchApi, isAnyErrorResponse } from 'rozod';
|
|
167
|
-
import { v2 } from 'rozod/
|
|
167
|
+
import { v2 } from 'rozod/opencloud';
|
|
168
168
|
|
|
169
169
|
// Get universe details through OpenCloud
|
|
170
170
|
const universeInfo = await fetchApi(v2.getCloudV2UniversesUniverseId, {
|
|
@@ -182,7 +182,7 @@ if (!isAnyErrorResponse(universeInfo)) {
|
|
|
182
182
|
|
|
183
183
|
```ts
|
|
184
184
|
import { fetchApi } from 'rozod';
|
|
185
|
-
import { getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries } from 'rozod/
|
|
185
|
+
import { getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries } from 'rozod/opencloud/v2/cloud';
|
|
186
186
|
|
|
187
187
|
// Get DataStore entries with type safety
|
|
188
188
|
const dataStoreEntries = await fetchApi(getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries, {
|
|
@@ -201,7 +201,7 @@ In browsers, authentication works automatically when users are logged into Roblo
|
|
|
201
201
|
|
|
202
202
|
```ts
|
|
203
203
|
import { fetchApi } from 'rozod';
|
|
204
|
-
import { getUsersUserid } from 'rozod/
|
|
204
|
+
import { getUsersUserid } from 'rozod/endpoints/usersv1';
|
|
205
205
|
|
|
206
206
|
// Cookies are sent automatically - no setup required!
|
|
207
207
|
const userInfo = await fetchApi(getUsersUserid, { userId: 123456 });
|
|
@@ -213,7 +213,7 @@ For server environments, use `configureServer()` to set up authentication once:
|
|
|
213
213
|
|
|
214
214
|
```ts
|
|
215
215
|
import { configureServer, fetchApi } from 'rozod';
|
|
216
|
-
import { getUsersUserid } from 'rozod/
|
|
216
|
+
import { getUsersUserid } from 'rozod/endpoints/usersv1';
|
|
217
217
|
|
|
218
218
|
// Configure once at startup
|
|
219
219
|
configureServer({ cookies: 'your_roblosecurity_cookie_here' });
|
|
@@ -283,7 +283,7 @@ For OpenCloud endpoints (`apis.roblox.com`), set your API key once:
|
|
|
283
283
|
|
|
284
284
|
```ts
|
|
285
285
|
import { configureServer, fetchApi } from 'rozod';
|
|
286
|
-
import { v2 } from 'rozod/
|
|
286
|
+
import { v2 } from 'rozod/opencloud';
|
|
287
287
|
|
|
288
288
|
// Configure OpenCloud API key
|
|
289
289
|
configureServer({ cloudKey: 'your_opencloud_api_key_here' });
|
|
@@ -76,12 +76,6 @@ const Roblox_Web_Responses_Games_GameServerResponse = z.object({
|
|
|
76
76
|
accessCode: z.string().uuid(),
|
|
77
77
|
owner: Roblox_Games_Api_Models_Response_VerifiedBadgeUserResponse,
|
|
78
78
|
});
|
|
79
|
-
const Roblox_Games_Api_Models_Response_GetPrivateServerListResponse = z.object({
|
|
80
|
-
gameJoinRestricted: z.boolean(),
|
|
81
|
-
previousPageCursor: z.string(),
|
|
82
|
-
nextPageCursor: z.string(),
|
|
83
|
-
data: z.array(Roblox_Web_Responses_Games_GameServerResponse),
|
|
84
|
-
});
|
|
85
79
|
const Roblox_Web_WebAPI_Models_ApiPageResponse_Roblox_Web_Responses_Games_GameServerResponse_ =
|
|
86
80
|
z.object({
|
|
87
81
|
previousPageCursor: z.string(),
|
|
@@ -215,14 +209,11 @@ const Roblox_Games_Api_Models_Response_GameRecommendationsResponse = z.object({
|
|
|
215
209
|
games: z.array(Roblox_Games_Api_Models_Response_GameResponseModel),
|
|
216
210
|
nextPaginationKey: z.string(),
|
|
217
211
|
});
|
|
218
|
-
const Roblox_Games_Api_Models_Response_PrivateServersEnabledInUniverseResponse =
|
|
219
|
-
z.object({ privateServersEnabled: z.boolean() });
|
|
220
212
|
|
|
221
213
|
/**
|
|
222
214
|
* @api GET https://games.roblox.com/v1/games
|
|
223
215
|
* @summary Gets a list of games' detail
|
|
224
216
|
* @param universeIds A list of universe Ids. Cannot exceed a maximum of 50 IDs.
|
|
225
|
-
* @param languageCode The HTML language code [optional].
|
|
226
217
|
*/
|
|
227
218
|
export const getGames = endpoint({
|
|
228
219
|
method: "GET",
|
|
@@ -233,14 +224,9 @@ export const getGames = endpoint({
|
|
|
233
224
|
universeIds: {
|
|
234
225
|
style: "form",
|
|
235
226
|
},
|
|
236
|
-
languageCode: {
|
|
237
|
-
style: "form",
|
|
238
|
-
explode: true,
|
|
239
|
-
},
|
|
240
227
|
},
|
|
241
228
|
parameters: {
|
|
242
229
|
universeIds: z.array(z.number()),
|
|
243
|
-
languageCode: z.string().optional(),
|
|
244
230
|
},
|
|
245
231
|
response:
|
|
246
232
|
Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Games_Api_Models_Response_GameDetailResponse_,
|
|
@@ -256,64 +242,6 @@ export const getGames = endpoint({
|
|
|
256
242
|
},
|
|
257
243
|
],
|
|
258
244
|
});
|
|
259
|
-
/**
|
|
260
|
-
* @api GET https://games.roblox.com/v1/games/:placeId/private-servers
|
|
261
|
-
* @summary Get list of private servers user can access for given game id.
|
|
262
|
-
* @param placeId The Id of the place we are geting the private server list for.
|
|
263
|
-
* @param excludeFriendServers
|
|
264
|
-
* @param limit The number of results per request.
|
|
265
|
-
* @param cursor The paging cursor for the previous or next page.
|
|
266
|
-
* @param sortOrder The order the results are sorted in.
|
|
267
|
-
*/
|
|
268
|
-
export const getGamesPlaceidPrivateServers = endpoint({
|
|
269
|
-
method: "GET",
|
|
270
|
-
path: "/v1/games/:placeId/private-servers",
|
|
271
|
-
baseUrl: "https://games.roblox.com",
|
|
272
|
-
requestFormat: "json",
|
|
273
|
-
serializationMethod: {
|
|
274
|
-
placeId: {
|
|
275
|
-
style: "simple",
|
|
276
|
-
},
|
|
277
|
-
excludeFriendServers: {
|
|
278
|
-
style: "form",
|
|
279
|
-
explode: true,
|
|
280
|
-
},
|
|
281
|
-
limit: {
|
|
282
|
-
style: "form",
|
|
283
|
-
explode: true,
|
|
284
|
-
},
|
|
285
|
-
cursor: {
|
|
286
|
-
style: "form",
|
|
287
|
-
explode: true,
|
|
288
|
-
},
|
|
289
|
-
sortOrder: {
|
|
290
|
-
style: "form",
|
|
291
|
-
explode: true,
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
parameters: {
|
|
295
|
-
placeId: z.number().int(),
|
|
296
|
-
excludeFriendServers: z.boolean().optional(),
|
|
297
|
-
limit: z
|
|
298
|
-
.union([z.literal(10), z.literal(25), z.literal(50), z.literal(100)])
|
|
299
|
-
.optional()
|
|
300
|
-
.default(10),
|
|
301
|
-
cursor: z.string().optional(),
|
|
302
|
-
sortOrder: z.enum(["Asc", "Desc"]).optional().default("Asc"),
|
|
303
|
-
},
|
|
304
|
-
response: Roblox_Games_Api_Models_Response_GetPrivateServerListResponse,
|
|
305
|
-
errors: [
|
|
306
|
-
{
|
|
307
|
-
status: 400,
|
|
308
|
-
description: `1: The place is invalid.
|
|
309
|
-
7: Guest users are not allowed.`,
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
status: 404,
|
|
313
|
-
description: `1: The place is invalid.`,
|
|
314
|
-
},
|
|
315
|
-
],
|
|
316
|
-
});
|
|
317
245
|
/**
|
|
318
246
|
* @api GET https://games.roblox.com/v1/games/:placeId/servers/:serverType
|
|
319
247
|
* @summary Get the game server list
|
|
@@ -654,32 +582,6 @@ export const getGamesRecommendationsGameUniverseid = endpoint({
|
|
|
654
582
|
},
|
|
655
583
|
],
|
|
656
584
|
});
|
|
657
|
-
/**
|
|
658
|
-
* @api GET https://games.roblox.com/v1/private-servers/enabled-in-universe/:universeId
|
|
659
|
-
* @summary Checks if the private servers are enabled in the specified universe.
|
|
660
|
-
* @param universeId
|
|
661
|
-
*/
|
|
662
|
-
export const getPrivateServersEnabledInUniverseUniverseid = endpoint({
|
|
663
|
-
method: "GET",
|
|
664
|
-
path: "/v1/private-servers/enabled-in-universe/:universeId",
|
|
665
|
-
baseUrl: "https://games.roblox.com",
|
|
666
|
-
requestFormat: "json",
|
|
667
|
-
serializationMethod: {
|
|
668
|
-
universeId: {
|
|
669
|
-
style: "simple",
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
parameters: {
|
|
673
|
-
universeId: z.number().int(),
|
|
674
|
-
},
|
|
675
|
-
response: z.object({ privateServersEnabled: z.boolean() }),
|
|
676
|
-
errors: [
|
|
677
|
-
{
|
|
678
|
-
status: 400,
|
|
679
|
-
description: `8: The universe IDs specified are invalid.`,
|
|
680
|
-
},
|
|
681
|
-
],
|
|
682
|
-
});
|
|
683
585
|
|
|
684
586
|
// Patched endpoints removed from Roblox API docs (v6.1.0 compat)
|
|
685
587
|
|
package/lib/endpoints/gamesv2.js
CHANGED
|
@@ -701,31 +701,6 @@ export declare const getCloudV2GroupsGroupIdRolesRoleId: import("../..").Endpoin
|
|
|
701
701
|
bypassSlowMode: boolean;
|
|
702
702
|
};
|
|
703
703
|
}, undefined>;
|
|
704
|
-
/**
|
|
705
|
-
* `BETA`
|
|
706
|
-
*
|
|
707
|
-
* Gets the group shout.
|
|
708
|
-
|
|
709
|
-
If a guest can view the group shout, this is always retrievable.
|
|
710
|
-
|
|
711
|
-
If a guest cannot, a member who has the permissions to view the group
|
|
712
|
-
shout, along with the `group:read` scope, will be able to read the group
|
|
713
|
-
shout.
|
|
714
|
-
*
|
|
715
|
-
* **Scopes:** `group:read`
|
|
716
|
-
* **Engine:** Usable with HttpService
|
|
717
|
-
*
|
|
718
|
-
* @param group_id The group ID.
|
|
719
|
-
*/
|
|
720
|
-
export declare const getCloudV2GroupsGroupIdShout: import("../..").EndpointGeneric<{
|
|
721
|
-
group_id: string;
|
|
722
|
-
}, {
|
|
723
|
-
path: string;
|
|
724
|
-
createTime: string;
|
|
725
|
-
updateTime: string;
|
|
726
|
-
content: string;
|
|
727
|
-
poster: string;
|
|
728
|
-
}, undefined>;
|
|
729
704
|
/**
|
|
730
705
|
* `STABLE`
|
|
731
706
|
*
|
|
@@ -3033,7 +3008,7 @@ export declare const getCloudV2UniversesUniverseIdSubscriptionProductsSubscripti
|
|
|
3033
3008
|
reason: "EXPIRATION_REASON_UNSPECIFIED" | "PRODUCT_INACTIVE" | "PRODUCT_DELETED" | "SUBSCRIBER_CANCELLED" | "SUBSCRIBER_REFUNDED" | "LAPSED";
|
|
3034
3009
|
};
|
|
3035
3010
|
purchasePlatform: "PURCHASE_PLATFORM_UNSPECIFIED" | "DESKTOP" | "MOBILE";
|
|
3036
|
-
paymentProvider: "PAYMENT_PROVIDER_UNSPECIFIED" | "STRIPE" | "APPLE" | "GOOGLE" | "ROBLOX_CREDIT";
|
|
3011
|
+
paymentProvider: "PAYMENT_PROVIDER_UNSPECIFIED" | "STRIPE" | "APPLE" | "GOOGLE" | "ROBLOX_CREDIT" | "ROBUX";
|
|
3037
3012
|
user: string;
|
|
3038
3013
|
}, undefined>;
|
|
3039
3014
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItemsItemId = exports.getCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItemsItemId = exports.postCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItems = exports.getCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItems = exports.getCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItemsRead = exports.postCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItemsDiscard = exports.postCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItems = exports.postCloudV2UniversesUniverseIdMemoryStoreFlush = exports.postCloudV2UniversesUniverseIdLuauExecutionSessionTaskBinaryInputs = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryIdListRevisions = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryIdListRevisions = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdUndelete = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreId = exports.postCloudV2UniversesUniverseIdDataStoresSnapshot = exports.getCloudV2UniversesUniverseIdDataStores = exports.postCloudV2UniversesUniverseIdTranslateText = exports.postCloudV2UniversesUniverseIdRestartServers = exports.postCloudV2UniversesUniverseIdPublishMessage = exports.postCloudV2UniversesUniverseIdGenerateSpeechAsset = exports.patchCloudV2UniversesUniverseId = exports.getCloudV2UniversesUniverseId = exports.
|
|
4
|
-
exports.postCloudV2UsersUserIdNotifications = exports.getCloudV2UsersUserIdInventoryItems = exports.getCloudV2UsersUserIdAssetQuotas = exports.getCloudV2UsersUserIdGenerateThumbnail = exports.getCloudV2UsersUserId = exports.patchCloudV2UniversesUniverseIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdUserRestrictionsListLogs = exports.getCloudV2UniversesUniverseIdUserRestrictions = exports.getCloudV2UniversesUniverseIdSubscriptionProductsSubscriptionProductIdSubscriptionsSubscriptionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionsLuauExecutionSessionIdTasksTaskIdLogs = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionsLuauExecutionSessionIdTasksTaskId = exports.postCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionTasks = exports.patchCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictions = exports.postCloudV2UniversesUniverseIdPlacesPlaceIdLuauExecutionSessionTasks = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceIdListChildren = exports.patchCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceId = exports.patchCloudV2UniversesUniverseIdPlacesPlaceId = exports.getCloudV2UniversesUniverseIdPlacesPlaceId = exports.postCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntries =
|
|
3
|
+
exports.patchCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItemsItemId = exports.deleteCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItemsItemId = exports.getCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItemsItemId = exports.postCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItems = exports.getCloudV2UniversesUniverseIdMemoryStoreSortedMapsSortedMapIdItems = exports.getCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItemsRead = exports.postCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItemsDiscard = exports.postCloudV2UniversesUniverseIdMemoryStoreQueuesQueueIdItems = exports.postCloudV2UniversesUniverseIdMemoryStoreFlush = exports.postCloudV2UniversesUniverseIdLuauExecutionSessionTaskBinaryInputs = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryIdListRevisions = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryIdListRevisions = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries = exports.getCloudV2UniversesUniverseIdDataStoresDataStoreIdEntries = exports.postCloudV2UniversesUniverseIdDataStoresDataStoreIdUndelete = exports.deleteCloudV2UniversesUniverseIdDataStoresDataStoreId = exports.postCloudV2UniversesUniverseIdDataStoresSnapshot = exports.getCloudV2UniversesUniverseIdDataStores = exports.postCloudV2UniversesUniverseIdTranslateText = exports.postCloudV2UniversesUniverseIdRestartServers = exports.postCloudV2UniversesUniverseIdPublishMessage = exports.postCloudV2UniversesUniverseIdGenerateSpeechAsset = exports.patchCloudV2UniversesUniverseId = exports.getCloudV2UniversesUniverseId = exports.getCloudV2GroupsGroupIdRolesRoleId = exports.getCloudV2GroupsGroupIdRoles = exports.postCloudV2GroupsGroupIdMembershipsMembershipIdUnassignRole = exports.postCloudV2GroupsGroupIdMembershipsMembershipIdAssignRole = exports.patchCloudV2GroupsGroupIdMembershipsMembershipId = exports.getCloudV2GroupsGroupIdMemberships = exports.postCloudV2GroupsGroupIdJoinRequestsJoinRequestIdDecline = exports.postCloudV2GroupsGroupIdJoinRequestsJoinRequestIdAccept = exports.getCloudV2GroupsGroupIdJoinRequests = exports.getCloudV2GroupsGroupIdForumCategoriesForumCategoryIdPostsPostIdComments = exports.getCloudV2GroupsGroupIdForumCategoriesForumCategoryIdPosts = exports.getCloudV2GroupsGroupIdForumCategories = exports.getCloudV2GroupsGroupId = exports.patchCloudV2CreatorStoreProductsCreatorStoreProductId = exports.getCloudV2CreatorStoreProductsCreatorStoreProductId = exports.postCloudV2CreatorStoreProducts = void 0;
|
|
4
|
+
exports.postCloudV2UsersUserIdNotifications = exports.getCloudV2UsersUserIdInventoryItems = exports.getCloudV2UsersUserIdAssetQuotas = exports.getCloudV2UsersUserIdGenerateThumbnail = exports.getCloudV2UsersUserId = exports.patchCloudV2UniversesUniverseIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdUserRestrictionsListLogs = exports.getCloudV2UniversesUniverseIdUserRestrictions = exports.getCloudV2UniversesUniverseIdSubscriptionProductsSubscriptionProductIdSubscriptionsSubscriptionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionsLuauExecutionSessionIdTasksTaskIdLogs = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionsLuauExecutionSessionIdTasksTaskId = exports.postCloudV2UniversesUniverseIdPlacesPlaceIdVersionsVersionIdLuauExecutionSessionTasks = exports.patchCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictionsUserRestrictionId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdUserRestrictions = exports.postCloudV2UniversesUniverseIdPlacesPlaceIdLuauExecutionSessionTasks = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceIdListChildren = exports.patchCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceId = exports.getCloudV2UniversesUniverseIdPlacesPlaceIdInstancesInstanceId = exports.patchCloudV2UniversesUniverseIdPlacesPlaceId = exports.getCloudV2UniversesUniverseIdPlacesPlaceId = exports.postCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryIdIncrement = exports.patchCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.deleteCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.getCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntriesEntryId = exports.postCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntries = exports.getCloudV2UniversesUniverseIdOrderedDataStoresOrderedDataStoreIdScopesScopeIdEntries = void 0;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const __1 = require("../..");
|
|
7
7
|
const Decimal = zod_1.z.object({
|
|
@@ -169,13 +169,6 @@ const ListGroupRolesResponse = zod_1.z.object({
|
|
|
169
169
|
groupRoles: zod_1.z.array(GroupRole),
|
|
170
170
|
nextPageToken: zod_1.z.string(),
|
|
171
171
|
});
|
|
172
|
-
const GroupShout = zod_1.z.object({
|
|
173
|
-
path: zod_1.z.string(),
|
|
174
|
-
createTime: zod_1.z.string().datetime({ offset: true }),
|
|
175
|
-
updateTime: zod_1.z.string().datetime({ offset: true }),
|
|
176
|
-
content: zod_1.z.string(),
|
|
177
|
-
poster: zod_1.z.string(),
|
|
178
|
-
});
|
|
179
172
|
const Universe_SocialLink = zod_1.z.object({ title: zod_1.z.string(), uri: zod_1.z.string() });
|
|
180
173
|
const Universe = zod_1.z.object({
|
|
181
174
|
path: zod_1.z.string().optional(),
|
|
@@ -437,7 +430,7 @@ const Subscription = zod_1.z.object({
|
|
|
437
430
|
]),
|
|
438
431
|
expirationDetails: Subscription_ExpirationDetails,
|
|
439
432
|
purchasePlatform: zod_1.z.enum(['PURCHASE_PLATFORM_UNSPECIFIED', 'DESKTOP', 'MOBILE']),
|
|
440
|
-
paymentProvider: zod_1.z.enum(['PAYMENT_PROVIDER_UNSPECIFIED', 'STRIPE', 'APPLE', 'GOOGLE', 'ROBLOX_CREDIT']),
|
|
433
|
+
paymentProvider: zod_1.z.enum(['PAYMENT_PROVIDER_UNSPECIFIED', 'STRIPE', 'APPLE', 'GOOGLE', 'ROBLOX_CREDIT', 'ROBUX']),
|
|
441
434
|
user: zod_1.z.string(),
|
|
442
435
|
});
|
|
443
436
|
const UserRestrictionLog_Moderator_GameServerScript = zod_1.z.object({});
|
|
@@ -1301,37 +1294,6 @@ exports.getCloudV2GroupsGroupIdRolesRoleId = (0, __1.endpoint)({
|
|
|
1301
1294
|
response: GroupRole,
|
|
1302
1295
|
errors: [],
|
|
1303
1296
|
});
|
|
1304
|
-
/**
|
|
1305
|
-
* `BETA`
|
|
1306
|
-
*
|
|
1307
|
-
* Gets the group shout.
|
|
1308
|
-
|
|
1309
|
-
If a guest can view the group shout, this is always retrievable.
|
|
1310
|
-
|
|
1311
|
-
If a guest cannot, a member who has the permissions to view the group
|
|
1312
|
-
shout, along with the `group:read` scope, will be able to read the group
|
|
1313
|
-
shout.
|
|
1314
|
-
*
|
|
1315
|
-
* **Scopes:** `group:read`
|
|
1316
|
-
* **Engine:** Usable with HttpService
|
|
1317
|
-
*
|
|
1318
|
-
* @param group_id The group ID.
|
|
1319
|
-
*/
|
|
1320
|
-
exports.getCloudV2GroupsGroupIdShout = (0, __1.endpoint)({
|
|
1321
|
-
method: 'GET',
|
|
1322
|
-
path: '/cloud/v2/groups/:group_id/shout',
|
|
1323
|
-
baseUrl: 'https://apis.roblox.com',
|
|
1324
|
-
scopes: ['group:read'],
|
|
1325
|
-
requestFormat: 'json',
|
|
1326
|
-
serializationMethod: {
|
|
1327
|
-
group_id: {},
|
|
1328
|
-
},
|
|
1329
|
-
parameters: {
|
|
1330
|
-
group_id: zod_1.z.string(),
|
|
1331
|
-
},
|
|
1332
|
-
response: GroupShout,
|
|
1333
|
-
errors: [],
|
|
1334
|
-
});
|
|
1335
1297
|
/**
|
|
1336
1298
|
* `STABLE`
|
|
1337
1299
|
*
|
package/package.json
CHANGED
|
@@ -1,15 +1,59 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rozod",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.7.0",
|
|
4
4
|
"description": "A TypeScript wrapper for the Roblox API",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./lib/index.d.ts",
|
|
10
|
+
"default": "./lib/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./endpoints/*": {
|
|
13
|
+
"types": "./lib/endpoints/*.d.ts",
|
|
14
|
+
"default": "./lib/endpoints/*.js"
|
|
15
|
+
},
|
|
16
|
+
"./endpoints/*.js": {
|
|
17
|
+
"types": "./lib/endpoints/*.d.ts",
|
|
18
|
+
"default": "./lib/endpoints/*.js"
|
|
19
|
+
},
|
|
20
|
+
"./opencloud": {
|
|
21
|
+
"types": "./lib/opencloud/index.d.ts",
|
|
22
|
+
"default": "./lib/opencloud/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./opencloud/*": {
|
|
25
|
+
"types": "./lib/opencloud/*.d.ts",
|
|
26
|
+
"default": "./lib/opencloud/*.js"
|
|
27
|
+
},
|
|
28
|
+
"./opencloud/*.js": {
|
|
29
|
+
"types": "./lib/opencloud/*.d.ts",
|
|
30
|
+
"default": "./lib/opencloud/*.js"
|
|
31
|
+
},
|
|
32
|
+
"./cache": {
|
|
33
|
+
"types": "./lib/cache.d.ts",
|
|
34
|
+
"default": "./lib/cache.js"
|
|
35
|
+
},
|
|
36
|
+
"./lib/opencloud": {
|
|
37
|
+
"types": "./lib/opencloud/index.d.ts",
|
|
38
|
+
"default": "./lib/opencloud/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./lib/*": {
|
|
41
|
+
"types": "./lib/*.d.ts",
|
|
42
|
+
"default": "./lib/*.js"
|
|
43
|
+
},
|
|
44
|
+
"./lib/*.js": {
|
|
45
|
+
"types": "./lib/*.d.ts",
|
|
46
|
+
"default": "./lib/*.js"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
7
50
|
"scripts": {
|
|
8
51
|
"test": "jest --config jestconfig.json",
|
|
52
|
+
"test:exports": "npm run build && node scripts/smoke-test-exports.mjs",
|
|
9
53
|
"build": "tsc && tsc --project tsconfig.declarations.json",
|
|
10
54
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
55
|
"prepare": "npm run build",
|
|
12
|
-
"prepublishOnly": "npm test",
|
|
56
|
+
"prepublishOnly": "npm test && npm run test:exports",
|
|
13
57
|
"version": "npm run format && git add -A src",
|
|
14
58
|
"generate": "node ./zodios_endpoints.js",
|
|
15
59
|
"docs": "cd docs && node scripts/generate-reference.mjs && bunx astro build",
|
|
@@ -19,8 +63,8 @@
|
|
|
19
63
|
"author": "AlroviOfficial",
|
|
20
64
|
"license": "ISC",
|
|
21
65
|
"dependencies": {
|
|
22
|
-
"parse-roblox-errors": "^1.
|
|
23
|
-
"roblox-bat": "^0.6.
|
|
66
|
+
"parse-roblox-errors": "^1.2.2",
|
|
67
|
+
"roblox-bat": "^0.6.5",
|
|
24
68
|
"zod": "^4.3.6"
|
|
25
69
|
},
|
|
26
70
|
"repository": {
|