rozod 6.7.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +75 -451
  3. package/lib/endpoints/accountinformationv1.d.ts +50 -87
  4. package/lib/endpoints/accountinformationv1.js +46 -90
  5. package/lib/endpoints/assetdeliveryv1.d.ts +39 -0
  6. package/lib/endpoints/assetdeliveryv1.js +39 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +27 -0
  8. package/lib/endpoints/assetdeliveryv2.js +27 -0
  9. package/lib/endpoints/authv1.d.ts +71 -3
  10. package/lib/endpoints/authv1.js +70 -4
  11. package/lib/endpoints/authv2.d.ts +22 -1
  12. package/lib/endpoints/authv2.js +23 -2
  13. package/lib/endpoints/avatarv1.d.ts +9 -6
  14. package/lib/endpoints/avatarv1.js +9 -6
  15. package/lib/endpoints/avatarv2.d.ts +11 -5
  16. package/lib/endpoints/avatarv2.js +11 -5
  17. package/lib/endpoints/avatarv3.d.ts +16 -7
  18. package/lib/endpoints/avatarv3.js +16 -7
  19. package/lib/endpoints/badgesv1.d.ts +4 -0
  20. package/lib/endpoints/badgesv1.js +4 -0
  21. package/lib/endpoints/catalogv1.d.ts +25 -3
  22. package/lib/endpoints/catalogv1.js +21 -3
  23. package/lib/endpoints/catalogv2.d.ts +294 -50
  24. package/lib/endpoints/catalogv2.js +256 -24
  25. package/lib/endpoints/clientsettingsv2.d.ts +6 -0
  26. package/lib/endpoints/clientsettingsv2.js +6 -0
  27. package/lib/endpoints/contactsv1.d.ts +18 -22
  28. package/lib/endpoints/contactsv1.js +14 -22
  29. package/lib/endpoints/developv1.d.ts +36 -1
  30. package/lib/endpoints/developv1.js +12 -3
  31. package/lib/endpoints/developv2.d.ts +32 -3
  32. package/lib/endpoints/developv2.js +16 -5
  33. package/lib/endpoints/friendsv1.d.ts +222 -314
  34. package/lib/endpoints/friendsv1.js +213 -313
  35. package/lib/endpoints/gameinternationalizationv1.d.ts +59 -0
  36. package/lib/endpoints/gameinternationalizationv1.js +57 -1
  37. package/lib/endpoints/gamesv1.d.ts +79 -0
  38. package/lib/endpoints/gamesv1.js +70 -97
  39. package/lib/endpoints/gamesv2.d.ts +12 -0
  40. package/lib/endpoints/gamesv2.js +10 -0
  41. package/lib/endpoints/groupsv1.d.ts +49 -4
  42. package/lib/endpoints/groupsv1.js +55 -7
  43. package/lib/endpoints/groupsv2.d.ts +2 -0
  44. package/lib/endpoints/groupsv2.js +2 -0
  45. package/lib/endpoints/inventoryv1.d.ts +3 -1
  46. package/lib/endpoints/inventoryv1.js +3 -1
  47. package/lib/endpoints/inventoryv2.d.ts +70 -0
  48. package/lib/endpoints/inventoryv2.js +68 -1
  49. package/lib/endpoints/localev1.d.ts +27 -0
  50. package/lib/endpoints/localev1.js +28 -1
  51. package/lib/endpoints/publishv1.d.ts +3 -6
  52. package/lib/endpoints/publishv1.js +3 -6
  53. package/lib/endpoints/thumbnailsv1.d.ts +44 -87
  54. package/lib/endpoints/thumbnailsv1.js +25 -0
  55. package/lib/index.d.ts +96 -3
  56. package/lib/index.js +114 -1
  57. package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
  58. package/lib/opencloud/v1/assets.d.ts +9 -9
  59. package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
  60. package/lib/opencloud/v1/datastores.d.ts +8 -8
  61. package/lib/opencloud/v1/developer-products.d.ts +4 -4
  62. package/lib/opencloud/v1/game-passes.d.ts +4 -4
  63. package/lib/opencloud/v1/messaging.d.ts +1 -1
  64. package/lib/opencloud/v1/open-eval.d.ts +2 -2
  65. package/lib/opencloud/v1/secrets-store.d.ts +5 -5
  66. package/lib/opencloud/v1/toolbox.d.ts +2 -2
  67. package/lib/opencloud/v1/universes.d.ts +1 -1
  68. package/lib/opencloud/v2/cloud.d.ts +197 -87
  69. package/lib/opencloud/v2/cloud.js +68 -15
  70. package/package.json +108 -108
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUserUseridMultigetAreTrustedFriends = exports.getMyTrustedFriendsUseridStatus = exports.getUsersUseridTrustedFriendsCount = exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridUnfollow = exports.postUsersTargetuseridRequestFriendship = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyTrustedFriendsCount = exports.getMyNewFriendRequestsCount = exports.deleteMyNewFriendRequests = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = exports.postContactsTargetcontactidRequestFriendship = void 0;
3
+ exports.postUsersTargetuseridUnfriend = exports.postUsersTargetuseridRequestFriendship = exports.postUsersSenderuseridAcceptFriendRequestWithToken = exports.postUsersRequesteruseridDeclineFriendRequest = exports.postUsersRequesteruseridAcceptFriendRequest = exports.postUserFriendRequestsDeclineAll = exports.deleteMyNewFriendRequests = exports.postContactsTargetcontactidRequestFriendship = exports.getUserUseridMultigetAreTrustedFriends = exports.getMyTrustedFriendsUseridStatus = exports.getUsersUseridTrustedFriendsCount = exports.getUsersUseridFriendsStatuses = exports.getUsersUseridFriendsSearch = exports.getUsersUseridFriendsOnline = exports.getUsersUseridFriendsInactive = exports.getUsersUseridFriendsFind = exports.getUsersUseridFriendsCount = exports.getUsersUseridFriends = exports.postUsersTargetuseridUnfollow = exports.getUsersTargetuseridFollowingsCount = exports.getUsersTargetuseridFollowings = exports.getUsersTargetuseridFollowersCount = exports.getUsersTargetuseridFollowers = exports.postUsersTargetuseridFollow = exports.getUserFriendRequestsCount = exports.postUserFollowingExists = exports.postUserUseridMultigetAreFriends = exports.getMyTrustedFriendsCount = exports.getMyNewFriendRequestsCount = exports.getMyFriendsRequests = exports.postMyFriendsRefreshQrSession = exports.getMyFriendsCount = exports.getMyFriendsUseridCheckQrSession = exports.getMetadata = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const __1 = require("..");
6
6
  const Roblox_Friends_Api_Models_Response_FriendsPageMetadataResponse = zod_1.z.object({
@@ -30,6 +30,7 @@ const Roblox_Friends_Api_FriendRequest = zod_1.z.object({
30
30
  'PhoneContactImporter',
31
31
  'FriendRecommendations',
32
32
  'UserCommunities',
33
+ 'TrustedFriend',
33
34
  ]),
34
35
  contactName: zod_1.z.string(),
35
36
  senderNickname: zod_1.z.string(),
@@ -118,10 +119,6 @@ const Roblox_Friends_Api_FriendStatusResponse = zod_1.z.object({
118
119
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_Friends_Api_FriendStatusResponse_ = zod_1.z.object({
119
120
  data: zod_1.z.array(Roblox_Friends_Api_FriendStatusResponse),
120
121
  });
121
- const Roblox_Friends_Api_CaptchaStatusResponseModel = zod_1.z.object({
122
- success: zod_1.z.boolean(),
123
- isCaptchaRequired: zod_1.z.boolean(),
124
- });
125
122
  const Roblox_Friends_Api_Models_Response_RefreshQrSessionResponse = zod_1.z.object({
126
123
  Success: zod_1.z.boolean(),
127
124
  });
@@ -142,79 +139,17 @@ const Roblox_Friends_Api_Models_Response_FollowingExistsResponse = zod_1.z.objec
142
139
  const Roblox_Friends_Api_Models_Response_FollowingExistsResponseModel = zod_1.z.object({
143
140
  followings: zod_1.z.array(Roblox_Friends_Api_Models_Response_FollowingExistsResponse),
144
141
  });
145
- const Roblox_Friends_Api_Models_Response_DeclineAllFriendRequestsResponse = zod_1.z.object({ backgrounded: zod_1.z.boolean() });
146
- const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
147
- const Roblox_Friends_Api_Models_Request_FriendingTokenRequestModel = zod_1.z.object({
148
- friendingToken: zod_1.z.string(),
149
- });
150
142
  const Roblox_Web_Captcha_Models_Request_CaptchaTokenRequest = zod_1.z.object({
151
143
  captchaId: zod_1.z.string(),
152
144
  captchaToken: zod_1.z.string(),
153
145
  captchaProvider: zod_1.z.string(),
154
146
  challengeId: zod_1.z.string(),
155
147
  });
156
- const Roblox_Friends_Api_FriendshipRequestModel = zod_1.z.object({
157
- friendshipOriginSourceType: zod_1.z.enum([
158
- 'Unknown',
159
- 'PlayerSearch',
160
- 'QrCode',
161
- 'InGame',
162
- 'UserProfile',
163
- 'QqContactImporter',
164
- 'WeChatContactImporter',
165
- 'ProfileShare',
166
- 'PhoneContactImporter',
167
- 'FriendRecommendations',
168
- 'UserCommunities',
169
- ]),
170
- senderNickname: zod_1.z.string(),
171
- });
172
- const Roblox_Friends_Api_Models_Response_ClearNewFriendRequestResponse = zod_1.z.object({ status: zod_1.z.boolean() });
173
- /**
174
- * @api POST https://friends.roblox.com/v1/contacts/:targetContactId/request-friendship
175
- * @summary Send a contact friend request to target user
176
- * @param targetContactId The target contact Id for friend request
177
- */
178
- exports.postContactsTargetcontactidRequestFriendship = (0, __1.endpoint)({
179
- method: 'POST',
180
- path: '/v1/contacts/:targetContactId/request-friendship',
181
- baseUrl: 'https://friends.roblox.com',
182
- requestFormat: 'json',
183
- serializationMethod: {
184
- targetContactId: {
185
- style: 'simple',
186
- },
187
- },
188
- parameters: {
189
- targetContactId: zod_1.z.string(),
190
- },
191
- response: Roblox_Friends_Api_CaptchaStatusResponseModel,
192
- errors: [
193
- {
194
- status: 400,
195
- description: `1: The target user is invalid or does not exist.
196
- 5: The target user is already a friend.
197
- 6: Invalid parameters.
198
- 7: The user cannot be friends with itself.
199
- 31: User with max friends sent friend request.`,
200
- },
201
- {
202
- status: 401,
203
- description: `0: Authorization has been denied for this request.`,
204
- },
205
- {
206
- status: 403,
207
- description: `0: Token Validation Failed
208
- 2: The user is banned from performing operation.
209
- 3: The user is blocked from performing this action.
210
- 14: The user has not passed the captcha.`,
211
- },
212
- {
213
- status: 429,
214
- description: `9: The flood limit has been exceeded.`,
215
- },
216
- ],
148
+ const Roblox_Friends_Api_CaptchaStatusResponseModel = zod_1.z.object({
149
+ success: zod_1.z.boolean(),
150
+ isCaptchaRequired: zod_1.z.boolean(),
217
151
  });
152
+ const Roblox_Web_WebAPI_ApiEmptyResponseModel = zod_1.z.object({});
218
153
  /**
219
154
  * @api GET https://friends.roblox.com/v1/metadata
220
155
  * @param targetUserId
@@ -360,26 +295,6 @@ exports.getMyFriendsRequests = (0, __1.endpoint)({
360
295
  },
361
296
  ],
362
297
  });
363
- /**
364
- * @api DELETE https://friends.roblox.com/v1/my/new-friend-requests
365
- */
366
- exports.deleteMyNewFriendRequests = (0, __1.endpoint)({
367
- method: 'DELETE',
368
- path: '/v1/my/new-friend-requests',
369
- baseUrl: 'https://friends.roblox.com',
370
- requestFormat: 'json',
371
- response: zod_1.z.object({ status: zod_1.z.boolean() }),
372
- errors: [
373
- {
374
- status: 401,
375
- description: `0: Authorization has been denied for this request.`,
376
- },
377
- {
378
- status: 403,
379
- description: `0: Token Validation Failed`,
380
- },
381
- ],
382
- });
383
298
  /**
384
299
  * @api GET https://friends.roblox.com/v1/my/new-friend-requests/count
385
300
  */
@@ -498,143 +413,6 @@ exports.getUserFriendRequestsCount = (0, __1.endpoint)({
498
413
  },
499
414
  ],
500
415
  });
501
- /**
502
- * @api POST https://friends.roblox.com/v1/user/friend-requests/decline-all
503
- * @summary Decline all pending friend requests for the authenticated user.
504
- */
505
- exports.postUserFriendRequestsDeclineAll = (0, __1.endpoint)({
506
- method: 'POST',
507
- path: '/v1/user/friend-requests/decline-all',
508
- baseUrl: 'https://friends.roblox.com',
509
- requestFormat: 'json',
510
- response: zod_1.z.object({ backgrounded: zod_1.z.boolean() }),
511
- errors: [
512
- {
513
- status: 401,
514
- description: `0: Authorization has been denied for this request.`,
515
- },
516
- {
517
- status: 403,
518
- description: `0: Token Validation Failed`,
519
- },
520
- ],
521
- });
522
- /**
523
- * @api POST https://friends.roblox.com/v1/users/:requesterUserId/accept-friend-request
524
- * @summary Accept a friend request.
525
- * @param requesterUserId The user Id of the requester
526
- */
527
- exports.postUsersRequesteruseridAcceptFriendRequest = (0, __1.endpoint)({
528
- method: 'POST',
529
- path: '/v1/users/:requesterUserId/accept-friend-request',
530
- baseUrl: 'https://friends.roblox.com',
531
- requestFormat: 'json',
532
- serializationMethod: {
533
- requesterUserId: {
534
- style: 'simple',
535
- },
536
- },
537
- parameters: {
538
- requesterUserId: zod_1.z.number().int(),
539
- },
540
- response: zod_1.z.object({}),
541
- errors: [
542
- {
543
- status: 400,
544
- description: `1: The target user is invalid or does not exist.
545
- 10: The friend request does not exist.
546
- 11: The current users friends limit has been exceeded.
547
- 12: The target users friends limit has been exceeded.`,
548
- },
549
- {
550
- status: 401,
551
- description: `0: Authorization has been denied for this request.`,
552
- },
553
- {
554
- status: 403,
555
- description: `0: Token Validation Failed
556
- 3: The user is blocked from performing this action.`,
557
- },
558
- ],
559
- });
560
- /**
561
- * @api POST https://friends.roblox.com/v1/users/:requesterUserId/decline-friend-request
562
- * @summary Decline a friend request.
563
- * @param requesterUserId The user Id of the requester
564
- */
565
- exports.postUsersRequesteruseridDeclineFriendRequest = (0, __1.endpoint)({
566
- method: 'POST',
567
- path: '/v1/users/:requesterUserId/decline-friend-request',
568
- baseUrl: 'https://friends.roblox.com',
569
- requestFormat: 'json',
570
- serializationMethod: {
571
- requesterUserId: {
572
- style: 'simple',
573
- },
574
- },
575
- parameters: {
576
- requesterUserId: zod_1.z.number().int(),
577
- },
578
- response: zod_1.z.object({}),
579
- errors: [
580
- {
581
- status: 400,
582
- description: `1: The target user is invalid or does not exist.
583
- 10: The friend request does not exist.`,
584
- },
585
- {
586
- status: 401,
587
- description: `0: Authorization has been denied for this request.`,
588
- },
589
- {
590
- status: 403,
591
- description: `0: Token Validation Failed`,
592
- },
593
- ],
594
- });
595
- /**
596
- * @api POST https://friends.roblox.com/v1/users/:senderUserId/accept-friend-request-with-token
597
- * @summary Accept a friend request with an Off Network Friending token.
598
- * @param body
599
- * @param senderUserId The user id of the sender of the off network friend request
600
- */
601
- exports.postUsersSenderuseridAcceptFriendRequestWithToken = (0, __1.endpoint)({
602
- method: 'POST',
603
- path: '/v1/users/:senderUserId/accept-friend-request-with-token',
604
- baseUrl: 'https://friends.roblox.com',
605
- requestFormat: 'json',
606
- serializationMethod: {
607
- body: {},
608
- senderUserId: {
609
- style: 'simple',
610
- },
611
- },
612
- parameters: {
613
- senderUserId: zod_1.z.number().int(),
614
- },
615
- body: zod_1.z.object({ friendingToken: zod_1.z.string() }),
616
- response: zod_1.z.object({}),
617
- errors: [
618
- {
619
- status: 400,
620
- description: `1: The target user is invalid or does not exist.
621
- 3: The user is blocked from performing this action.
622
- 5: The target user is already a friend.
623
- 6: Invalid parameters.
624
- 7: The user cannot be friends with itself.
625
- 11: The current users friends limit has been exceeded.
626
- 12: The target users friends limit has been exceeded.`,
627
- },
628
- {
629
- status: 401,
630
- description: `0: Authorization has been denied for this request.`,
631
- },
632
- {
633
- status: 403,
634
- description: `0: Token Validation Failed`,
635
- },
636
- ],
637
- });
638
416
  /**
639
417
  * @api POST https://friends.roblox.com/v1/users/:targetUserId/follow
640
418
  * @summary Creates the following between a user and user with targetUserId
@@ -847,57 +625,6 @@ exports.getUsersTargetuseridFollowingsCount = (0, __1.endpoint)({
847
625
  },
848
626
  ],
849
627
  });
850
- /**
851
- * @api POST https://friends.roblox.com/v1/users/:targetUserId/request-friendship
852
- * @summary Send a friend request to target user
853
- * @param body The source which the friend request originated from
854
- * @param targetUserId The target user Id for friend request
855
- */
856
- exports.postUsersTargetuseridRequestFriendship = (0, __1.endpoint)({
857
- method: 'POST',
858
- path: '/v1/users/:targetUserId/request-friendship',
859
- baseUrl: 'https://friends.roblox.com',
860
- requestFormat: 'json',
861
- serializationMethod: {
862
- body: {},
863
- targetUserId: {
864
- style: 'simple',
865
- },
866
- },
867
- parameters: {
868
- targetUserId: zod_1.z.number().int(),
869
- },
870
- body: Roblox_Friends_Api_FriendshipRequestModel,
871
- response: Roblox_Friends_Api_CaptchaStatusResponseModel,
872
- errors: [
873
- {
874
- status: 400,
875
- description: `1: The target user is invalid or does not exist.
876
- 5: The target user is already a friend.
877
- 6: Invalid parameters.
878
- 7: The user cannot be friends with itself.
879
- 10: The friend request does not exist.
880
- 13: The users are not in the same game.
881
- 31: User with max friends sent friend request.
882
- 35: Invalid nickname.`,
883
- },
884
- {
885
- status: 401,
886
- description: `0: Authorization has been denied for this request.`,
887
- },
888
- {
889
- status: 403,
890
- description: `0: Token Validation Failed
891
- 2: The user is banned from performing operation.
892
- 3: The user is blocked from performing this action.
893
- 14: The user has not passed the captcha.`,
894
- },
895
- {
896
- status: 429,
897
- description: `9: The flood limit has been exceeded.`,
898
- },
899
- ],
900
- });
901
628
  /**
902
629
  * @api POST https://friends.roblox.com/v1/users/:targetUserId/unfollow
903
630
  * @summary Deletes the following between a user and user with targetUserId
@@ -941,40 +668,6 @@ exports.postUsersTargetuseridUnfollow = (0, __1.endpoint)({
941
668
  },
942
669
  ],
943
670
  });
944
- /**
945
- * @api POST https://friends.roblox.com/v1/users/:targetUserId/unfriend
946
- * @summary Unfriend a user
947
- * @param targetUserId The target user id to unfriend
948
- */
949
- exports.postUsersTargetuseridUnfriend = (0, __1.endpoint)({
950
- method: 'POST',
951
- path: '/v1/users/:targetUserId/unfriend',
952
- baseUrl: 'https://friends.roblox.com',
953
- requestFormat: 'json',
954
- serializationMethod: {
955
- targetUserId: {
956
- style: 'simple',
957
- },
958
- },
959
- parameters: {
960
- targetUserId: zod_1.z.number().int(),
961
- },
962
- response: zod_1.z.object({}),
963
- errors: [
964
- {
965
- status: 400,
966
- description: `1: The target user is invalid or does not exist.`,
967
- },
968
- {
969
- status: 401,
970
- description: `0: Authorization has been denied for this request.`,
971
- },
972
- {
973
- status: 403,
974
- description: `0: Token Validation Failed`,
975
- },
976
- ],
977
- });
978
671
  /**
979
672
  * @api GET https://friends.roblox.com/v1/users/:userId/friends
980
673
  * @summary Get list of all friends for the specified user.
@@ -1299,3 +992,210 @@ exports.getUserUseridMultigetAreTrustedFriends = (0, __1.endpoint)({
1299
992
  response: Patch_MultigetAreTrustedFriendsResponse,
1300
993
  errors: [{ status: 400, description: `1: The target user is invalid or does not exist.` }],
1301
994
  });
995
+ // Friend-management write endpoints Roblox removed from its published API docs but
996
+ // which remain functional. Not on the official deprecated-endpoints list; the docs
997
+ // only list the older /api/friends/* and api.roblox.com/user/* variants as removed.
998
+ const Patch_FriendshipRequestModel = zod_1.z.object({
999
+ friendshipOriginSourceType: zod_1.z.enum([
1000
+ 'Unknown',
1001
+ 'PlayerSearch',
1002
+ 'QrCode',
1003
+ 'InGame',
1004
+ 'UserProfile',
1005
+ 'QqContactImporter',
1006
+ 'WeChatContactImporter',
1007
+ 'ProfileShare',
1008
+ 'PhoneContactImporter',
1009
+ 'FriendRecommendations',
1010
+ 'UserCommunities',
1011
+ ]),
1012
+ senderNickname: zod_1.z.string(),
1013
+ });
1014
+ exports.postContactsTargetcontactidRequestFriendship = (0, __1.endpoint)({
1015
+ method: 'POST',
1016
+ path: '/v1/contacts/:targetContactId/request-friendship',
1017
+ baseUrl: 'https://friends.roblox.com',
1018
+ requestFormat: 'json',
1019
+ serializationMethod: {
1020
+ targetContactId: { style: 'simple' },
1021
+ },
1022
+ parameters: {
1023
+ targetContactId: zod_1.z.string(),
1024
+ },
1025
+ response: Roblox_Friends_Api_CaptchaStatusResponseModel,
1026
+ errors: [
1027
+ {
1028
+ status: 400,
1029
+ description: `1: The target user is invalid or does not exist.
1030
+ 5: The target user is already a friend.
1031
+ 6: Invalid parameters.
1032
+ 7: The user cannot be friends with itself.
1033
+ 31: User with max friends sent friend request.`,
1034
+ },
1035
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1036
+ {
1037
+ status: 403,
1038
+ description: `0: Token Validation Failed
1039
+ 2: The user is banned from performing operation.
1040
+ 3: The user is blocked from performing this action.
1041
+ 14: The user has not passed the captcha.`,
1042
+ },
1043
+ { status: 429, description: `9: The flood limit has been exceeded.` },
1044
+ ],
1045
+ });
1046
+ exports.deleteMyNewFriendRequests = (0, __1.endpoint)({
1047
+ method: 'DELETE',
1048
+ path: '/v1/my/new-friend-requests',
1049
+ baseUrl: 'https://friends.roblox.com',
1050
+ requestFormat: 'json',
1051
+ response: zod_1.z.object({ status: zod_1.z.boolean() }),
1052
+ errors: [
1053
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1054
+ { status: 403, description: `0: Token Validation Failed` },
1055
+ ],
1056
+ });
1057
+ exports.postUserFriendRequestsDeclineAll = (0, __1.endpoint)({
1058
+ method: 'POST',
1059
+ path: '/v1/user/friend-requests/decline-all',
1060
+ baseUrl: 'https://friends.roblox.com',
1061
+ requestFormat: 'json',
1062
+ response: zod_1.z.object({ backgrounded: zod_1.z.boolean() }),
1063
+ errors: [
1064
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1065
+ { status: 403, description: `0: Token Validation Failed` },
1066
+ ],
1067
+ });
1068
+ exports.postUsersRequesteruseridAcceptFriendRequest = (0, __1.endpoint)({
1069
+ method: 'POST',
1070
+ path: '/v1/users/:requesterUserId/accept-friend-request',
1071
+ baseUrl: 'https://friends.roblox.com',
1072
+ requestFormat: 'json',
1073
+ serializationMethod: {
1074
+ requesterUserId: { style: 'simple' },
1075
+ },
1076
+ parameters: {
1077
+ requesterUserId: zod_1.z.number().int(),
1078
+ },
1079
+ response: zod_1.z.object({}),
1080
+ errors: [
1081
+ {
1082
+ status: 400,
1083
+ description: `1: The target user is invalid or does not exist.
1084
+ 10: The friend request does not exist.
1085
+ 11: The current users friends limit has been exceeded.
1086
+ 12: The target users friends limit has been exceeded.`,
1087
+ },
1088
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1089
+ {
1090
+ status: 403,
1091
+ description: `0: Token Validation Failed
1092
+ 3: The user is blocked from performing this action.`,
1093
+ },
1094
+ ],
1095
+ });
1096
+ exports.postUsersRequesteruseridDeclineFriendRequest = (0, __1.endpoint)({
1097
+ method: 'POST',
1098
+ path: '/v1/users/:requesterUserId/decline-friend-request',
1099
+ baseUrl: 'https://friends.roblox.com',
1100
+ requestFormat: 'json',
1101
+ serializationMethod: {
1102
+ requesterUserId: { style: 'simple' },
1103
+ },
1104
+ parameters: {
1105
+ requesterUserId: zod_1.z.number().int(),
1106
+ },
1107
+ response: zod_1.z.object({}),
1108
+ errors: [
1109
+ {
1110
+ status: 400,
1111
+ description: `1: The target user is invalid or does not exist.
1112
+ 10: The friend request does not exist.`,
1113
+ },
1114
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1115
+ { status: 403, description: `0: Token Validation Failed` },
1116
+ ],
1117
+ });
1118
+ exports.postUsersSenderuseridAcceptFriendRequestWithToken = (0, __1.endpoint)({
1119
+ method: 'POST',
1120
+ path: '/v1/users/:senderUserId/accept-friend-request-with-token',
1121
+ baseUrl: 'https://friends.roblox.com',
1122
+ requestFormat: 'json',
1123
+ serializationMethod: {
1124
+ body: {},
1125
+ senderUserId: { style: 'simple' },
1126
+ },
1127
+ parameters: {
1128
+ senderUserId: zod_1.z.number().int(),
1129
+ },
1130
+ body: zod_1.z.object({ friendingToken: zod_1.z.string() }),
1131
+ response: zod_1.z.object({}),
1132
+ errors: [
1133
+ {
1134
+ status: 400,
1135
+ description: `1: The target user is invalid or does not exist.
1136
+ 3: The user is blocked from performing this action.
1137
+ 5: The target user is already a friend.
1138
+ 6: Invalid parameters.
1139
+ 7: The user cannot be friends with itself.
1140
+ 11: The current users friends limit has been exceeded.
1141
+ 12: The target users friends limit has been exceeded.`,
1142
+ },
1143
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1144
+ { status: 403, description: `0: Token Validation Failed` },
1145
+ ],
1146
+ });
1147
+ exports.postUsersTargetuseridRequestFriendship = (0, __1.endpoint)({
1148
+ method: 'POST',
1149
+ path: '/v1/users/:targetUserId/request-friendship',
1150
+ baseUrl: 'https://friends.roblox.com',
1151
+ requestFormat: 'json',
1152
+ serializationMethod: {
1153
+ body: {},
1154
+ targetUserId: { style: 'simple' },
1155
+ },
1156
+ parameters: {
1157
+ targetUserId: zod_1.z.number().int(),
1158
+ },
1159
+ body: Patch_FriendshipRequestModel,
1160
+ response: Roblox_Friends_Api_CaptchaStatusResponseModel,
1161
+ errors: [
1162
+ {
1163
+ status: 400,
1164
+ description: `1: The target user is invalid or does not exist.
1165
+ 5: The target user is already a friend.
1166
+ 6: Invalid parameters.
1167
+ 7: The user cannot be friends with itself.
1168
+ 10: The friend request does not exist.
1169
+ 13: The users are not in the same game.
1170
+ 31: User with max friends sent friend request.
1171
+ 35: Invalid nickname.`,
1172
+ },
1173
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1174
+ {
1175
+ status: 403,
1176
+ description: `0: Token Validation Failed
1177
+ 2: The user is banned from performing operation.
1178
+ 3: The user is blocked from performing this action.
1179
+ 14: The user has not passed the captcha.`,
1180
+ },
1181
+ { status: 429, description: `9: The flood limit has been exceeded.` },
1182
+ ],
1183
+ });
1184
+ exports.postUsersTargetuseridUnfriend = (0, __1.endpoint)({
1185
+ method: 'POST',
1186
+ path: '/v1/users/:targetUserId/unfriend',
1187
+ baseUrl: 'https://friends.roblox.com',
1188
+ requestFormat: 'json',
1189
+ serializationMethod: {
1190
+ targetUserId: { style: 'simple' },
1191
+ },
1192
+ parameters: {
1193
+ targetUserId: zod_1.z.number().int(),
1194
+ },
1195
+ response: zod_1.z.object({}),
1196
+ errors: [
1197
+ { status: 400, description: `1: The target user is invalid or does not exist.` },
1198
+ { status: 401, description: `0: Authorization has been denied for this request.` },
1199
+ { status: 403, description: `0: Token Validation Failed` },
1200
+ ],
1201
+ });
@@ -309,6 +309,7 @@ const Roblox_GameInternationalization_Api_LanguageOrLocaleSettings = z.object({
309
309
  languageCodeType: z.enum(["Language", "Locale"]),
310
310
  languageCode: z.string(),
311
311
  isAutomaticTranslationEnabled: z.boolean(),
312
+ isImageTranslationEnabled: z.boolean(),
312
313
  });
313
314
  const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_GameInternationalization_Api_LanguageOrLocaleSettings_ =
314
315
  z.object({
@@ -507,6 +508,12 @@ const Roblox_GameInternationalization_Api_EditAutomaticTranslationStatusForGameA
507
508
  languageCode: z.string(),
508
509
  isAutomaticTranslationEnabled: z.boolean(),
509
510
  });
511
+ const Roblox_GameInternationalization_Api_EditImageTranslationStatusForGameAndLanguageResponse =
512
+ z.object({
513
+ gameId: z.number().int(),
514
+ languageCode: z.string(),
515
+ isImageTranslationEnabled: z.boolean(),
516
+ });
510
517
  const Roblox_GameInternationalization_Api_UpdateUniverseDisplayInfoAutomaticTranslationSettingsResponse =
511
518
  z.object({
512
519
  gameId: z.number().int(),
@@ -3022,6 +3029,58 @@ export const patchSupportedLanguagesGamesGameidLanguagesLanguagecodeAutomaticTra
3022
3029
  },
3023
3030
  ],
3024
3031
  });
3032
+ /**
3033
+ * @api PATCH https://gameinternationalization.roblox.com/v1/supported-languages/games/:gameId/languages/:languageCode/image-translation-status
3034
+ * @summary Enable or disable image translation for a game and language.
3035
+ * @param body Flag to indicate if image translation should be enabled or disabled.
3036
+ * @param gameId The id of the game.
3037
+ * @param languageCode The language to enable or disable for image translation.
3038
+ */
3039
+ export const patchSupportedLanguagesGamesGameidLanguagesLanguagecodeImageTranslationStatus =
3040
+ endpoint({
3041
+ method: "PATCH",
3042
+ path: "/v1/supported-languages/games/:gameId/languages/:languageCode/image-translation-status",
3043
+ baseUrl: "https://gameinternationalization.roblox.com",
3044
+ requestFormat: "json",
3045
+ serializationMethod: {
3046
+ body: {},
3047
+ gameId: {
3048
+ style: "simple",
3049
+ },
3050
+ languageCode: {
3051
+ style: "simple",
3052
+ },
3053
+ },
3054
+ parameters: {
3055
+ gameId: z.number().int(),
3056
+ languageCode: z.string(),
3057
+ },
3058
+ body: z.boolean(),
3059
+ response:
3060
+ Roblox_GameInternationalization_Api_EditImageTranslationStatusForGameAndLanguageResponse,
3061
+ errors: [
3062
+ {
3063
+ status: 400,
3064
+ description: `14: Invalid game id
3065
+ 22: Invalid language code
3066
+ 53: Language is not supported for the game.
3067
+ 93: Image translation cannot be enabled for language.`,
3068
+ },
3069
+ {
3070
+ status: 401,
3071
+ description: `0: Authorization has been denied for this request.`,
3072
+ },
3073
+ {
3074
+ status: 403,
3075
+ description: `0: Token Validation Failed
3076
+ 18: You do not have permission to manage this game`,
3077
+ },
3078
+ {
3079
+ status: 503,
3080
+ description: `17: Feature is disabled`,
3081
+ },
3082
+ ],
3083
+ });
3025
3084
  /**
3026
3085
  * @api PATCH https://gameinternationalization.roblox.com/v1/supported-languages/games/:gameId/languages/:languageCode/universe-display-info-automatic-translation-settings
3027
3086
  * @summary Update the switch which controls if the UniverseDisplayInformation should be automatically translated.