rozod 6.7.1 → 6.9.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 (87) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +75 -451
  3. package/lib/endpoints/accountinformationv1.d.ts +92 -95
  4. package/lib/endpoints/accountsettingsv1.d.ts +88 -110
  5. package/lib/endpoints/adconfigurationv2.d.ts +108 -215
  6. package/lib/endpoints/assetdeliveryv1.d.ts +267 -230
  7. package/lib/endpoints/assetdeliveryv1.js +38 -0
  8. package/lib/endpoints/assetdeliveryv2.d.ts +201 -176
  9. package/lib/endpoints/assetdeliveryv2.js +26 -0
  10. package/lib/endpoints/authv1.d.ts +480 -517
  11. package/lib/endpoints/authv1.js +3 -1
  12. package/lib/endpoints/authv2.d.ts +210 -222
  13. package/lib/endpoints/authv2.js +1 -1
  14. package/lib/endpoints/authv3.d.ts +32 -35
  15. package/lib/endpoints/avatarv1.d.ts +112 -117
  16. package/lib/endpoints/avatarv2.d.ts +71 -76
  17. package/lib/endpoints/avatarv3.d.ts +27 -33
  18. package/lib/endpoints/badgesv1.d.ts +96 -99
  19. package/lib/endpoints/badgesv1.js +4 -0
  20. package/lib/endpoints/catalogv1.d.ts +209 -234
  21. package/lib/endpoints/catalogv1.js +2 -1
  22. package/lib/endpoints/catalogv2.d.ts +106 -136
  23. package/lib/endpoints/catalogv2.js +21 -17
  24. package/lib/endpoints/chatv2.d.ts +778 -778
  25. package/lib/endpoints/clientsettingsv1.d.ts +33 -35
  26. package/lib/endpoints/clientsettingsv2.d.ts +62 -68
  27. package/lib/endpoints/contactsv1.d.ts +18 -20
  28. package/lib/endpoints/developv1.d.ts +233 -293
  29. package/lib/endpoints/developv1.js +3 -0
  30. package/lib/endpoints/developv2.d.ts +87 -138
  31. package/lib/endpoints/developv2.js +3 -1
  32. package/lib/endpoints/economycreatorstatsv1.d.ts +12 -12
  33. package/lib/endpoints/economyv1.d.ts +6 -6
  34. package/lib/endpoints/engagementpayoutsv1.d.ts +9 -9
  35. package/lib/endpoints/followingsv1.d.ts +33 -34
  36. package/lib/endpoints/followingsv2.d.ts +9 -9
  37. package/lib/endpoints/friendsv1.d.ts +416 -545
  38. package/lib/endpoints/friendsv1.js +213 -313
  39. package/lib/endpoints/gameinternationalizationv1.d.ts +1509 -1642
  40. package/lib/endpoints/gameinternationalizationv2.d.ts +62 -64
  41. package/lib/endpoints/gamejoinv1.d.ts +458 -458
  42. package/lib/endpoints/gamesv1.d.ts +183 -143
  43. package/lib/endpoints/gamesv1.js +2 -0
  44. package/lib/endpoints/gamesv2.d.ts +161 -158
  45. package/lib/endpoints/gamesv2.js +9 -0
  46. package/lib/endpoints/groupsv1.d.ts +967 -976
  47. package/lib/endpoints/groupsv1.js +48 -4
  48. package/lib/endpoints/groupsv2.d.ts +259 -277
  49. package/lib/endpoints/groupsv2.js +1 -0
  50. package/lib/endpoints/inventoryv1.d.ts +93 -122
  51. package/lib/endpoints/inventoryv1.js +3 -1
  52. package/lib/endpoints/inventoryv2.d.ts +163 -178
  53. package/lib/endpoints/inventoryv2.js +2 -0
  54. package/lib/endpoints/itemconfigurationv1.d.ts +33 -40
  55. package/lib/endpoints/localev1.d.ts +47 -48
  56. package/lib/endpoints/localizationtablesv1.d.ts +315 -353
  57. package/lib/endpoints/matchmakingv1.d.ts +184 -190
  58. package/lib/endpoints/metricsv1.d.ts +88 -88
  59. package/lib/endpoints/notificationsv2.d.ts +144 -158
  60. package/lib/endpoints/premiumfeaturesv1.d.ts +14 -14
  61. package/lib/endpoints/presencev1.d.ts +7 -12
  62. package/lib/endpoints/privatemessagesv1.d.ts +56 -64
  63. package/lib/endpoints/publishv1.d.ts +32 -32
  64. package/lib/endpoints/thumbnailsresizerv1.d.ts +52 -53
  65. package/lib/endpoints/thumbnailsv1.d.ts +317 -361
  66. package/lib/endpoints/thumbnailsv1.js +25 -0
  67. package/lib/endpoints/tradesv1.d.ts +92 -104
  68. package/lib/endpoints/tradesv2.d.ts +81 -84
  69. package/lib/endpoints/translationrolesv1.d.ts +46 -51
  70. package/lib/endpoints/twostepverificationv1.d.ts +233 -237
  71. package/lib/endpoints/usersv1.d.ts +110 -114
  72. package/lib/index.d.ts +152 -4
  73. package/lib/index.js +273 -4
  74. package/lib/opencloud/v1/asset-permissions.d.ts +1 -1
  75. package/lib/opencloud/v1/assets.d.ts +9 -9
  76. package/lib/opencloud/v1/datastores-ordered.d.ts +6 -6
  77. package/lib/opencloud/v1/datastores.d.ts +8 -8
  78. package/lib/opencloud/v1/developer-products.d.ts +4 -4
  79. package/lib/opencloud/v1/game-passes.d.ts +4 -4
  80. package/lib/opencloud/v1/messaging.d.ts +1 -1
  81. package/lib/opencloud/v1/open-eval.d.ts +2 -2
  82. package/lib/opencloud/v1/secrets-store.d.ts +5 -5
  83. package/lib/opencloud/v1/toolbox.d.ts +2 -2
  84. package/lib/opencloud/v1/universes.d.ts +1 -1
  85. package/lib/opencloud/v2/cloud.d.ts +172 -84
  86. package/lib/opencloud/v2/cloud.js +25 -9
  87. package/package.json +2 -2
@@ -1,21 +1,20 @@
1
- import { z } from "zod";
2
- import { endpoint } from "..";
1
+ import { z } from 'zod';
2
+ import { endpoint } from '..';
3
3
 
4
- const Roblox_LocalizationTables_Api_AutoLocalizationMetadataResponse = z.object(
5
- {
6
- isReactVersionEnabledForAutoLocalizationSettings: z.boolean(),
7
- isTabbedUIEnabledForConfigureLocalizationPage: z.boolean(),
8
- isAutomaticTranslationToggleUIEnabled: z.boolean(),
9
- isAutomaticTranslationQuotaUIEnabled: z.boolean(),
10
- }
11
- );
4
+ const Roblox_LocalizationTables_Api_AutoLocalizationMetadataResponse = z.object({
5
+ isReactVersionEnabledForAutoLocalizationSettings: z.boolean(),
6
+ isTabbedUIEnabledForConfigureLocalizationPage: z.boolean(),
7
+ isAutomaticTranslationToggleUIEnabled: z.boolean(),
8
+ isAutomaticTranslationQuotaUIEnabled: z.boolean(),
9
+ });
12
10
  const Roblox_LocalizationTables_Api_Language = z.object({
13
11
  name: z.string(),
14
12
  nativeName: z.string(),
15
13
  languageCode: z.string(),
16
14
  });
17
- const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_LocalizationTables_Api_Language_ =
18
- z.object({ data: z.array(Roblox_LocalizationTables_Api_Language) });
15
+ const Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_LocalizationTables_Api_Language_ = z.object({
16
+ data: z.array(Roblox_LocalizationTables_Api_Language),
17
+ });
19
18
  const Roblox_LocalizationTables_Api_EntryOperationLimits = z.object({
20
19
  maxContextLength: z.number().int(),
21
20
  maxKeyLength: z.number().int(),
@@ -30,19 +29,18 @@ const Roblox_LocalizationTables_Api_GetLimitsResponse = z.object({
30
29
  entryOperationLimits: Roblox_LocalizationTables_Api_EntryOperationLimits,
31
30
  tableOperationLimits: Roblox_LocalizationTables_Api_TableOperationLimits,
32
31
  });
33
- const Roblox_LocalizationTables_Api_LocalizationTablesMetadataResponse =
34
- z.object({
35
- isBulkUploadFeatureEnabled: z.boolean(),
36
- isCsvDownloadEnabled: z.boolean(),
37
- isAccessToTranslationMetaDataEnabled: z.boolean(),
38
- isTranslationManagementRedirectionEnabled: z.boolean(),
39
- isUntranslatedFilterEnabled: z.boolean(),
40
- isAutomaticTranslationFilterEnabled: z.boolean(),
41
- });
32
+ const Roblox_LocalizationTables_Api_LocalizationTablesMetadataResponse = z.object({
33
+ isBulkUploadFeatureEnabled: z.boolean(),
34
+ isCsvDownloadEnabled: z.boolean(),
35
+ isAccessToTranslationMetaDataEnabled: z.boolean(),
36
+ isTranslationManagementRedirectionEnabled: z.boolean(),
37
+ isUntranslatedFilterEnabled: z.boolean(),
38
+ isAutomaticTranslationFilterEnabled: z.boolean(),
39
+ });
42
40
  const Roblox_LocalizationTables_Api_GetTableResponse = z.object({
43
41
  id: z.string().uuid(),
44
42
  name: z.string(),
45
- ownerType: z.enum(["User", "Group"]),
43
+ ownerType: z.enum(['User', 'Group']),
46
44
  ownerId: z.number().int(),
47
45
  assetId: z.number().int(),
48
46
  });
@@ -50,7 +48,7 @@ const Roblox_LocalizationTables_Api_EntryIdentifier = z.object({
50
48
  key: z.string(),
51
49
  context: z.string(),
52
50
  source: z.string(),
53
- entryFormat: z.enum(["Invalid", "Legacy", "Icu"]),
51
+ entryFormat: z.enum(['Invalid', 'Legacy', 'Icu']),
54
52
  });
55
53
  const Roblox_InGameContentTables_Client_GameLocation = z.object({
56
54
  path: z.string(),
@@ -58,12 +56,12 @@ const Roblox_InGameContentTables_Client_GameLocation = z.object({
58
56
  const Roblox_LocalizationTables_Api_EntryMetadata = z.object({
59
57
  example: z.string(),
60
58
  gameLocations: z.array(Roblox_InGameContentTables_Client_GameLocation),
61
- entryFormat: z.enum(["Invalid", "Legacy", "Icu"]),
59
+ entryFormat: z.enum(['Invalid', 'Legacy', 'Icu']),
62
60
  });
63
61
  const Roblox_Localizationtables_Localizationtables_V1_ChangeAgent = z.object({
64
- ChangeAgentType: z.enum(["Invalid", "User", "Automation", "Default"]),
62
+ ChangeAgentType: z.enum(['Invalid', 'User', 'Automation', 'Default']),
65
63
  Id: z.string(),
66
- OptionalIdCase: z.enum(["None", "Id"]),
64
+ OptionalIdCase: z.enum(['None', 'Id']),
67
65
  });
68
66
  const Roblox_LocalizationTables_Api_PatchTranslation = z.object({
69
67
  locale: z.string(),
@@ -88,7 +86,7 @@ const Roblox_LocalizationTables_Api_Error = z.object({
88
86
  });
89
87
  const Roblox_LocalizationTables_Api_Translator = z.object({
90
88
  id: z.number().int(),
91
- agentType: z.enum(["User", "Automation"]),
89
+ agentType: z.enum(['User', 'Automation']),
92
90
  });
93
91
  const Roblox_LocalizationTables_Api_Translation = z.object({
94
92
  locale: z.string(),
@@ -109,12 +107,8 @@ const Roblox_LocalizationTables_Api_ModifiedEntry = z.object({
109
107
  translations: z.array(Roblox_LocalizationTables_Api_Translation),
110
108
  });
111
109
  const Roblox_LocalizationTables_Api_UpdateTableContentsResponse = z.object({
112
- failedEntriesAndTranslations: z.array(
113
- Roblox_LocalizationTables_Api_FailedEntry
114
- ),
115
- modifiedEntriesAndTranslations: z.array(
116
- Roblox_LocalizationTables_Api_ModifiedEntry
117
- ),
110
+ failedEntriesAndTranslations: z.array(Roblox_LocalizationTables_Api_FailedEntry),
111
+ modifiedEntriesAndTranslations: z.array(Roblox_LocalizationTables_Api_ModifiedEntry),
118
112
  });
119
113
  const Roblox_LocalizationTables_Api_Entry = z.object({
120
114
  identifier: Roblox_LocalizationTables_Api_EntryIdentifier,
@@ -132,23 +126,22 @@ const Roblox_LocalizationTables_Api_GetTableEntryCountResponse = z.object({
132
126
  entryCount: z.number().int(),
133
127
  });
134
128
  const Roblox_Web_WebAPI_ApiEmptyResponseModel = z.object({});
135
- const Roblox_LocalizationTables_Api_RaiseEventForAutoScrapedEntriesCleanupRequest =
136
- z.object({ maxAgeForFlush: z.string() });
137
- const Roblox_LocalizationTables_Api_GameAutolocalizationInformationResponse =
138
- z.object({
139
- isAutolocalizationEnabled: z.boolean(),
140
- isAutomaticEntriesSettingEnabled: z.boolean(),
141
- isAutomaticEntriesDeletionEnabled: z.boolean(),
142
- shouldUseLocalizationTable: z.boolean(),
143
- autoLocalizationTableId: z.string().uuid(),
144
- sourceLanguage: z.string(),
145
- assetId: z.number().int(),
146
- });
147
- const Roblox_LocalizationTables_Api_SetAutolocalizationTableForGameRequest =
148
- z.object({ tableId: z.string().uuid() });
129
+ const Roblox_LocalizationTables_Api_RaiseEventForAutoScrapedEntriesCleanupRequest = z.object({
130
+ maxAgeForFlush: z.string(),
131
+ });
132
+ const Roblox_LocalizationTables_Api_GameAutolocalizationInformationResponse = z.object({
133
+ isAutolocalizationEnabled: z.boolean(),
134
+ isAutomaticEntriesSettingEnabled: z.boolean(),
135
+ isAutomaticEntriesDeletionEnabled: z.boolean(),
136
+ shouldUseLocalizationTable: z.boolean(),
137
+ autoLocalizationTableId: z.string().uuid(),
138
+ sourceLanguage: z.string(),
139
+ assetId: z.number().int(),
140
+ });
141
+ const Roblox_LocalizationTables_Api_SetAutolocalizationTableForGameRequest = z.object({ tableId: z.string().uuid() });
149
142
  const Roblox_LocalizationTables_Api_CreateTableRequest = z.object({
150
143
  name: z.string(),
151
- ownerType: z.enum(["User", "Group"]),
144
+ ownerType: z.enum(['User', 'Group']),
152
145
  ownerId: z.number().int(),
153
146
  });
154
147
  const Roblox_LocalizationTables_Api_CreateTableResponse = z.object({
@@ -160,46 +153,33 @@ const Roblox_LocalizationTables_Api_EntryIdentifierWithTranslation = z.object({
160
153
  key: z.string(),
161
154
  context: z.string(),
162
155
  source: z.string(),
163
- entryFormat: z.enum(["Invalid", "Legacy", "Icu"]),
164
- });
165
- const Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackRequest =
166
- z.object({
167
- sourceLocale: z.string(),
168
- entries: z.array(
169
- Roblox_LocalizationTables_Api_EntryIdentifierWithTranslation
170
- ),
171
- });
156
+ entryFormat: z.enum(['Invalid', 'Legacy', 'Icu']),
157
+ });
158
+ const Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackRequest = z.object({
159
+ sourceLocale: z.string(),
160
+ entries: z.array(Roblox_LocalizationTables_Api_EntryIdentifierWithTranslation),
161
+ });
172
162
  const Roblox_LocalizationTables_Api_EntryTranslationFeedback = z.object({
173
163
  identifier: Roblox_LocalizationTables_Api_EntryIdentifierWithTranslation,
174
164
  feedbackCount: z.number().int(),
175
165
  playerSuggestionText: z.array(z.string()),
176
- reasons: z.array(
177
- z.enum([
178
- "None",
179
- "Untranslated",
180
- "Inaccurate",
181
- "SpellingOrGrammar",
182
- "Inappropriate",
183
- ])
184
- ),
166
+ reasons: z.array(z.enum(['None', 'Untranslated', 'Inaccurate', 'SpellingOrGrammar', 'Inappropriate'])),
185
167
  robloxSuggestionText: z.string(),
186
168
  });
187
- const Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackResponse =
188
- z.object({
189
- tableId: z.string().uuid(),
190
- entries: z.array(Roblox_LocalizationTables_Api_EntryTranslationFeedback),
191
- });
169
+ const Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackResponse = z.object({
170
+ tableId: z.string().uuid(),
171
+ entries: z.array(Roblox_LocalizationTables_Api_EntryTranslationFeedback),
172
+ });
192
173
  const Roblox_LocalizationTables_Api_CursorEntryIdentifier = z.object({
193
174
  cursor: z.string(),
194
175
  identifier: Roblox_LocalizationTables_Api_EntryIdentifier,
195
176
  count: z.number().int(),
196
- sortOrder: z.enum(["Asc", "Desc"]),
177
+ sortOrder: z.enum(['Asc', 'Desc']),
178
+ });
179
+ const Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryRequest = z.object({
180
+ locale: z.string(),
181
+ entries: z.array(Roblox_LocalizationTables_Api_CursorEntryIdentifier),
197
182
  });
198
- const Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryRequest =
199
- z.object({
200
- locale: z.string(),
201
- entries: z.array(Roblox_LocalizationTables_Api_CursorEntryIdentifier),
202
- });
203
183
  const Roblox_LocalizationTables_Api_TranslationHistory = z.object({
204
184
  translationText: z.string(),
205
185
  translator: Roblox_LocalizationTables_Api_Translator,
@@ -210,23 +190,17 @@ const Roblox_LocalizationTables_Api_EntryTranslationHistoryPaged = z.object({
210
190
  history: z.array(Roblox_LocalizationTables_Api_TranslationHistory),
211
191
  nextCursor: z.string(),
212
192
  });
213
- const Roblox_LocalizationTables_Api_FailedEntryTranslationHistoryPaged =
214
- z.object({
215
- identifier: Roblox_LocalizationTables_Api_EntryIdentifier,
216
- count: z.number().int(),
217
- error: Roblox_LocalizationTables_Api_Error,
218
- });
219
- const Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryResponse =
220
- z.object({
221
- tableId: z.string().uuid(),
222
- locale: z.string(),
223
- entries: z.array(
224
- Roblox_LocalizationTables_Api_EntryTranslationHistoryPaged
225
- ),
226
- failedEntries: z.array(
227
- Roblox_LocalizationTables_Api_FailedEntryTranslationHistoryPaged
228
- ),
229
- });
193
+ const Roblox_LocalizationTables_Api_FailedEntryTranslationHistoryPaged = z.object({
194
+ identifier: Roblox_LocalizationTables_Api_EntryIdentifier,
195
+ count: z.number().int(),
196
+ error: Roblox_LocalizationTables_Api_Error,
197
+ });
198
+ const Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryResponse = z.object({
199
+ tableId: z.string().uuid(),
200
+ locale: z.string(),
201
+ entries: z.array(Roblox_LocalizationTables_Api_EntryTranslationHistoryPaged),
202
+ failedEntries: z.array(Roblox_LocalizationTables_Api_FailedEntryTranslationHistoryPaged),
203
+ });
230
204
  const Roblox_LocalizationTables_Api_MatchedEntry = z.object({
231
205
  source: z.string(),
232
206
  matchedParamIndex: z.number().int(),
@@ -244,113 +218,110 @@ const Roblox_LocalizationTables_Api_AutoScrapeEntry = z.object({
244
218
  screenshot: z.string(),
245
219
  meta: Roblox_LocalizationTables_Api_AutoScrapeEntryMetadata,
246
220
  });
247
- const Roblox_LocalizationTables_Api_IngestContentMetadataPlaceInformation =
248
- z.object({ placeId: z.number().int(), placeVersionNumber: z.number().int() });
221
+ const Roblox_LocalizationTables_Api_IngestContentMetadataPlaceInformation = z.object({
222
+ placeId: z.number().int(),
223
+ placeVersionNumber: z.number().int(),
224
+ });
249
225
  const Roblox_LocalizationTables_Api_IngestContentMetadata = z.object({
250
- placeInformation:
251
- Roblox_LocalizationTables_Api_IngestContentMetadataPlaceInformation,
252
- });
253
- const Roblox_LocalizationTables_Api_IngestAutoScrapedContentForGameRequest =
254
- z.object({
255
- entries: z.array(Roblox_LocalizationTables_Api_AutoScrapeEntry),
256
- metadata: Roblox_LocalizationTables_Api_IngestContentMetadata,
257
- });
258
- const Roblox_LocalizationTables_Api_SetAutolocalizationSettingsForGameRequest =
259
- z.object({
260
- isAutolocalizationEnabled: z.boolean(),
261
- isAutomaticEntriesSettingEnabled: z.boolean(),
262
- isAutomaticEntriesDeletionsEnabled: z.boolean(),
263
- shouldUseLocalizationTable: z.boolean(),
264
- });
226
+ placeInformation: Roblox_LocalizationTables_Api_IngestContentMetadataPlaceInformation,
227
+ });
228
+ const Roblox_LocalizationTables_Api_IngestAutoScrapedContentForGameRequest = z.object({
229
+ entries: z.array(Roblox_LocalizationTables_Api_AutoScrapeEntry),
230
+ metadata: Roblox_LocalizationTables_Api_IngestContentMetadata,
231
+ });
232
+ const Roblox_LocalizationTables_Api_SetAutolocalizationSettingsForGameRequest = z.object({
233
+ isAutolocalizationEnabled: z.boolean(),
234
+ isAutomaticEntriesSettingEnabled: z.boolean(),
235
+ isAutomaticEntriesDeletionsEnabled: z.boolean(),
236
+ shouldUseLocalizationTable: z.boolean(),
237
+ });
265
238
 
266
239
  /**
267
240
  * @api POST https://localizationtables.roblox.com/v1/auto-localization-table/games/:gameId/assets-generation-request
268
241
  * @summary Generates localization asset of a game.
269
242
  * @param gameId The game id.
270
243
  */
271
- export const postAutoLocalizationTableGamesGameidAssetsGenerationRequest =
272
- endpoint({
273
- method: "POST",
274
- path: "/v1/auto-localization-table/games/:gameId/assets-generation-request",
275
- baseUrl: "https://localizationtables.roblox.com",
276
- requestFormat: "json",
277
- serializationMethod: {
278
- gameId: {
279
- style: "simple",
280
- },
281
- },
282
- parameters: {
283
- gameId: z.number().int(),
284
- },
285
- response: z.object({}),
286
- errors: [
287
- {
288
- status: 400,
289
- description: `3: Invalid table id.
244
+ export const postAutoLocalizationTableGamesGameidAssetsGenerationRequest = endpoint({
245
+ method: 'POST',
246
+ path: '/v1/auto-localization-table/games/:gameId/assets-generation-request',
247
+ baseUrl: 'https://localizationtables.roblox.com',
248
+ requestFormat: 'json',
249
+ serializationMethod: {
250
+ gameId: {
251
+ style: 'simple',
252
+ },
253
+ },
254
+ parameters: {
255
+ gameId: z.number().int(),
256
+ },
257
+ response: z.object({}),
258
+ errors: [
259
+ {
260
+ status: 400,
261
+ description: `3: Invalid table id.
290
262
  14: Invalid game id
291
263
  29: You do not have permission to generate asset for this table.
292
264
  32: LocalizationTable is not available for the game.
293
265
  34: Actor provided is invalid`,
294
- },
295
- {
296
- status: 401,
297
- description: `0: Authorization has been denied for this request.`,
298
- },
299
- {
300
- status: 403,
301
- description: `0: Token Validation Failed`,
302
- },
303
- {
304
- status: 429,
305
- description: `24: Too many attempts.Please try again later.`,
306
- },
307
- ],
308
- });
266
+ },
267
+ {
268
+ status: 401,
269
+ description: `0: Authorization has been denied for this request.`,
270
+ },
271
+ {
272
+ status: 403,
273
+ description: `0: Token Validation Failed`,
274
+ },
275
+ {
276
+ status: 429,
277
+ description: `24: Too many attempts.Please try again later.`,
278
+ },
279
+ ],
280
+ });
309
281
  /**
310
282
  * @api POST https://localizationtables.roblox.com/v1/auto-localization-table/games/:gameId/auto-scrape-cleanup-request
311
283
  * @summary Enqueues an event to flush the auto scraped entries which doesn't have translations.
312
284
  * @param body
313
285
  * @param gameId The id of the game.
314
286
  */
315
- export const postAutoLocalizationTableGamesGameidAutoScrapeCleanupRequest =
316
- endpoint({
317
- method: "POST",
318
- path: "/v1/auto-localization-table/games/:gameId/auto-scrape-cleanup-request",
319
- baseUrl: "https://localizationtables.roblox.com",
320
- requestFormat: "json",
321
- serializationMethod: {
322
- body: {},
323
- gameId: {
324
- style: "simple",
325
- },
326
- },
327
- parameters: {
328
- gameId: z.number().int(),
329
- },
330
- body: z.object({ maxAgeForFlush: z.string() }),
331
- response: z.object({}),
332
- errors: [
333
- {
334
- status: 400,
335
- description: `14: Invalid game id
287
+ export const postAutoLocalizationTableGamesGameidAutoScrapeCleanupRequest = endpoint({
288
+ method: 'POST',
289
+ path: '/v1/auto-localization-table/games/:gameId/auto-scrape-cleanup-request',
290
+ baseUrl: 'https://localizationtables.roblox.com',
291
+ requestFormat: 'json',
292
+ serializationMethod: {
293
+ body: {},
294
+ gameId: {
295
+ style: 'simple',
296
+ },
297
+ },
298
+ parameters: {
299
+ gameId: z.number().int(),
300
+ },
301
+ body: z.object({ maxAgeForFlush: z.string() }),
302
+ response: z.object({}),
303
+ errors: [
304
+ {
305
+ status: 400,
306
+ description: `14: Invalid game id
336
307
  31: You do not have permission to flush auto scraped entries asset for this game.
337
308
  32: LocalizationTable is not available for the game.
338
309
  34: Actor provided is invalid`,
339
- },
340
- {
341
- status: 401,
342
- description: `0: Authorization has been denied for this request.`,
343
- },
344
- {
345
- status: 403,
346
- description: `0: Token Validation Failed`,
347
- },
348
- {
349
- status: 429,
350
- description: `33: Too many attempts to flush the game.Please try again later.`,
351
- },
352
- ],
353
- });
310
+ },
311
+ {
312
+ status: 401,
313
+ description: `0: Authorization has been denied for this request.`,
314
+ },
315
+ {
316
+ status: 403,
317
+ description: `0: Token Validation Failed`,
318
+ },
319
+ {
320
+ status: 429,
321
+ description: `33: Too many attempts to flush the game.Please try again later.`,
322
+ },
323
+ ],
324
+ });
354
325
  /**
355
326
  * @api PATCH https://localizationtables.roblox.com/v1/auto-localization-table/games/:gameId/ingestion
356
327
  * @summary Ingests entries for auto localization. Needs to be an authorized user.
@@ -358,14 +329,14 @@ export const postAutoLocalizationTableGamesGameidAutoScrapeCleanupRequest =
358
329
  * @param gameId The game id.
359
330
  */
360
331
  export const patchAutoLocalizationTableGamesGameidIngestion = endpoint({
361
- method: "PATCH",
362
- path: "/v1/auto-localization-table/games/:gameId/ingestion",
363
- baseUrl: "https://localizationtables.roblox.com",
364
- requestFormat: "json",
332
+ method: 'PATCH',
333
+ path: '/v1/auto-localization-table/games/:gameId/ingestion',
334
+ baseUrl: 'https://localizationtables.roblox.com',
335
+ requestFormat: 'json',
365
336
  serializationMethod: {
366
337
  body: {},
367
338
  gameId: {
368
- style: "simple",
339
+ style: 'simple',
369
340
  },
370
341
  },
371
342
  parameters: {
@@ -400,20 +371,19 @@ export const patchAutoLocalizationTableGamesGameidIngestion = endpoint({
400
371
  * @param gameId
401
372
  */
402
373
  export const postAutolocalizationGamesGameidAutolocalizationtable = endpoint({
403
- method: "POST",
404
- path: "/v1/autolocalization/games/:gameId/autolocalizationtable",
405
- baseUrl: "https://localizationtables.roblox.com",
406
- requestFormat: "json",
374
+ method: 'POST',
375
+ path: '/v1/autolocalization/games/:gameId/autolocalizationtable',
376
+ baseUrl: 'https://localizationtables.roblox.com',
377
+ requestFormat: 'json',
407
378
  serializationMethod: {
408
379
  gameId: {
409
- style: "simple",
380
+ style: 'simple',
410
381
  },
411
382
  },
412
383
  parameters: {
413
384
  gameId: z.number().int(),
414
385
  },
415
- response:
416
- Roblox_LocalizationTables_Api_GameAutolocalizationInformationResponse,
386
+ response: Roblox_LocalizationTables_Api_GameAutolocalizationInformationResponse,
417
387
  errors: [
418
388
  {
419
389
  status: 401,
@@ -431,14 +401,14 @@ export const postAutolocalizationGamesGameidAutolocalizationtable = endpoint({
431
401
  * @param gameId
432
402
  */
433
403
  export const patchAutolocalizationGamesGameidAutolocalizationtable = endpoint({
434
- method: "PATCH",
435
- path: "/v1/autolocalization/games/:gameId/autolocalizationtable",
436
- baseUrl: "https://localizationtables.roblox.com",
437
- requestFormat: "json",
404
+ method: 'PATCH',
405
+ path: '/v1/autolocalization/games/:gameId/autolocalizationtable',
406
+ baseUrl: 'https://localizationtables.roblox.com',
407
+ requestFormat: 'json',
438
408
  serializationMethod: {
439
409
  body: {},
440
410
  gameId: {
441
- style: "simple",
411
+ style: 'simple',
442
412
  },
443
413
  },
444
414
  parameters: {
@@ -464,14 +434,14 @@ export const patchAutolocalizationGamesGameidAutolocalizationtable = endpoint({
464
434
  * @param gameId The id of the game.
465
435
  */
466
436
  export const patchAutolocalizationGamesGameidSettings = endpoint({
467
- method: "PATCH",
468
- path: "/v1/autolocalization/games/:gameId/settings",
469
- baseUrl: "https://localizationtables.roblox.com",
470
- requestFormat: "json",
437
+ method: 'PATCH',
438
+ path: '/v1/autolocalization/games/:gameId/settings',
439
+ baseUrl: 'https://localizationtables.roblox.com',
440
+ requestFormat: 'json',
471
441
  serializationMethod: {
472
442
  body: {},
473
443
  gameId: {
474
- style: "simple",
444
+ style: 'simple',
475
445
  },
476
446
  },
477
447
  parameters: {
@@ -505,10 +475,10 @@ export const patchAutolocalizationGamesGameidSettings = endpoint({
505
475
  * @summary Metadata for AutoLocalization Configuration
506
476
  */
507
477
  export const getAutolocalizationMetadata = endpoint({
508
- method: "GET",
509
- path: "/v1/autolocalization/metadata",
510
- baseUrl: "https://localizationtables.roblox.com",
511
- requestFormat: "json",
478
+ method: 'GET',
479
+ path: '/v1/autolocalization/metadata',
480
+ baseUrl: 'https://localizationtables.roblox.com',
481
+ requestFormat: 'json',
512
482
  response: Roblox_LocalizationTables_Api_AutoLocalizationMetadataResponse,
513
483
  errors: [
514
484
  {
@@ -522,12 +492,11 @@ export const getAutolocalizationMetadata = endpoint({
522
492
  * @summary Gets the supported language codes that can be used by localization tables.
523
493
  */
524
494
  export const getLocalizationTableAvailableLanguages = endpoint({
525
- method: "GET",
526
- path: "/v1/localization-table/available-languages",
527
- baseUrl: "https://localizationtables.roblox.com",
528
- requestFormat: "json",
529
- response:
530
- Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_LocalizationTables_Api_Language_,
495
+ method: 'GET',
496
+ path: '/v1/localization-table/available-languages',
497
+ baseUrl: 'https://localizationtables.roblox.com',
498
+ requestFormat: 'json',
499
+ response: Roblox_Web_WebAPI_Models_ApiArrayResponse_Roblox_LocalizationTables_Api_Language_,
531
500
  errors: [],
532
501
  });
533
502
  /**
@@ -535,10 +504,10 @@ export const getLocalizationTableAvailableLanguages = endpoint({
535
504
  * @summary Get limits for translation table entries operations
536
505
  */
537
506
  export const getLocalizationTableLimits = endpoint({
538
- method: "GET",
539
- path: "/v1/localization-table/limits",
540
- baseUrl: "https://localizationtables.roblox.com",
541
- requestFormat: "json",
507
+ method: 'GET',
508
+ path: '/v1/localization-table/limits',
509
+ baseUrl: 'https://localizationtables.roblox.com',
510
+ requestFormat: 'json',
542
511
  response: Roblox_LocalizationTables_Api_GetLimitsResponse,
543
512
  errors: [
544
513
  {
@@ -552,10 +521,10 @@ export const getLocalizationTableLimits = endpoint({
552
521
  * @summary Get metadata for localization UI
553
522
  */
554
523
  export const getLocalizationTableMetadata = endpoint({
555
- method: "GET",
556
- path: "/v1/localization-table/metadata",
557
- baseUrl: "https://localizationtables.roblox.com",
558
- requestFormat: "json",
524
+ method: 'GET',
525
+ path: '/v1/localization-table/metadata',
526
+ baseUrl: 'https://localizationtables.roblox.com',
527
+ requestFormat: 'json',
559
528
  response: Roblox_LocalizationTables_Api_LocalizationTablesMetadataResponse,
560
529
  errors: [],
561
530
  });
@@ -566,10 +535,10 @@ Note that this endpoint simply creates a table and does not associate it with an
566
535
  * @param body
567
536
  */
568
537
  export const postLocalizationTableTables = endpoint({
569
- method: "POST",
570
- path: "/v1/localization-table/tables",
571
- baseUrl: "https://localizationtables.roblox.com",
572
- requestFormat: "json",
538
+ method: 'POST',
539
+ path: '/v1/localization-table/tables',
540
+ baseUrl: 'https://localizationtables.roblox.com',
541
+ requestFormat: 'json',
573
542
  serializationMethod: {
574
543
  body: {},
575
544
  },
@@ -594,13 +563,13 @@ export const postLocalizationTableTables = endpoint({
594
563
  * @param assetId The asset id associated with the table.
595
564
  */
596
565
  export const getLocalizationTableTablesAssetid = endpoint({
597
- method: "GET",
598
- path: "/v1/localization-table/tables/:assetId",
599
- baseUrl: "https://localizationtables.roblox.com",
600
- requestFormat: "json",
566
+ method: 'GET',
567
+ path: '/v1/localization-table/tables/:assetId',
568
+ baseUrl: 'https://localizationtables.roblox.com',
569
+ requestFormat: 'json',
601
570
  serializationMethod: {
602
571
  assetId: {
603
- style: "simple",
572
+ style: 'simple',
604
573
  },
605
574
  },
606
575
  parameters: {
@@ -628,13 +597,13 @@ export const getLocalizationTableTablesAssetid = endpoint({
628
597
  * @param tableId
629
598
  */
630
599
  export const getLocalizationTableTablesTableid = endpoint({
631
- method: "GET",
632
- path: "/v1/localization-table/tables/:tableId",
633
- baseUrl: "https://localizationtables.roblox.com",
634
- requestFormat: "json",
600
+ method: 'GET',
601
+ path: '/v1/localization-table/tables/:tableId',
602
+ baseUrl: 'https://localizationtables.roblox.com',
603
+ requestFormat: 'json',
635
604
  serializationMethod: {
636
605
  tableId: {
637
- style: "simple",
606
+ style: 'simple',
638
607
  },
639
608
  },
640
609
  parameters: {
@@ -664,17 +633,17 @@ export const getLocalizationTableTablesTableid = endpoint({
664
633
  * @param gameId The game id.
665
634
  */
666
635
  export const patchLocalizationTableTablesTableid = endpoint({
667
- method: "PATCH",
668
- path: "/v1/localization-table/tables/:tableId",
669
- baseUrl: "https://localizationtables.roblox.com",
670
- requestFormat: "json",
636
+ method: 'PATCH',
637
+ path: '/v1/localization-table/tables/:tableId',
638
+ baseUrl: 'https://localizationtables.roblox.com',
639
+ requestFormat: 'json',
671
640
  serializationMethod: {
672
641
  body: {},
673
642
  tableId: {
674
- style: "simple",
643
+ style: 'simple',
675
644
  },
676
645
  gameId: {
677
- style: "form",
646
+ style: 'form',
678
647
  explode: true,
679
648
  },
680
649
  },
@@ -717,24 +686,24 @@ export const patchLocalizationTableTablesTableid = endpoint({
717
686
  * @param entryFormat
718
687
  */
719
688
  export const getLocalizationTableTablesTableidEntries = endpoint({
720
- method: "GET",
721
- path: "/v1/localization-table/tables/:tableId/entries",
722
- baseUrl: "https://localizationtables.roblox.com",
723
- requestFormat: "json",
689
+ method: 'GET',
690
+ path: '/v1/localization-table/tables/:tableId/entries',
691
+ baseUrl: 'https://localizationtables.roblox.com',
692
+ requestFormat: 'json',
724
693
  serializationMethod: {
725
694
  tableId: {
726
- style: "simple",
695
+ style: 'simple',
727
696
  },
728
697
  cursor: {
729
- style: "form",
698
+ style: 'form',
730
699
  explode: true,
731
700
  },
732
701
  gameId: {
733
- style: "form",
702
+ style: 'form',
734
703
  explode: true,
735
704
  },
736
705
  entryFormat: {
737
- style: "form",
706
+ style: 'form',
738
707
  explode: true,
739
708
  },
740
709
  },
@@ -742,10 +711,7 @@ export const getLocalizationTableTablesTableidEntries = endpoint({
742
711
  tableId: z.string().uuid(),
743
712
  cursor: z.string().optional(),
744
713
  gameId: z.number().int().optional(),
745
- entryFormat: z
746
- .enum(["Invalid", "Legacy", "Icu"])
747
- .optional()
748
- .default("Legacy"),
714
+ entryFormat: z.enum(['Invalid', 'Legacy', 'Icu']).optional().default('Legacy'),
749
715
  },
750
716
  response: Roblox_LocalizationTables_Api_GetTableEntriesPagedResponse,
751
717
  errors: [
@@ -771,59 +737,57 @@ export const getLocalizationTableTablesTableidEntries = endpoint({
771
737
  * @param tableId The entries' tableId.
772
738
  * @param gameId The game id.
773
739
  */
774
- export const postLocalizationTableTablesTableidEntriesTranslationFeedback =
775
- endpoint({
776
- method: "POST",
777
- path: "/v1/localization-table/tables/:tableId/entries/translation-feedback",
778
- baseUrl: "https://localizationtables.roblox.com",
779
- requestFormat: "json",
780
- serializationMethod: {
781
- body: {},
782
- tableId: {
783
- style: "simple",
784
- },
785
- gameId: {
786
- style: "form",
787
- explode: true,
788
- },
789
- },
790
- parameters: {
791
- tableId: z.string().uuid(),
792
- gameId: z.number().int().optional(),
793
- },
794
- body: Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackRequest,
795
- response:
796
- Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackResponse,
797
- errors: [
798
- {
799
- status: 400,
800
- description: `3: Invalid table id.
740
+ export const postLocalizationTableTablesTableidEntriesTranslationFeedback = endpoint({
741
+ method: 'POST',
742
+ path: '/v1/localization-table/tables/:tableId/entries/translation-feedback',
743
+ baseUrl: 'https://localizationtables.roblox.com',
744
+ requestFormat: 'json',
745
+ serializationMethod: {
746
+ body: {},
747
+ tableId: {
748
+ style: 'simple',
749
+ },
750
+ gameId: {
751
+ style: 'form',
752
+ explode: true,
753
+ },
754
+ },
755
+ parameters: {
756
+ tableId: z.string().uuid(),
757
+ gameId: z.number().int().optional(),
758
+ },
759
+ body: Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackRequest,
760
+ response: Roblox_LocalizationTables_Api_GetTableEntriesTranslationFeedbackResponse,
761
+ errors: [
762
+ {
763
+ status: 400,
764
+ description: `3: Invalid table id.
801
765
  13: Request body can't be null
802
766
  14: Invalid game id
803
767
  16: Entries can't be null or empty
804
768
  35: The entries provided are invalid
805
769
  37: Invalid locale code.
806
770
  38: Invalid entry identifier.`,
807
- },
808
- {
809
- status: 401,
810
- description: `0: Authorization has been denied for this request.`,
811
- },
812
- {
813
- status: 403,
814
- description: `0: Token Validation Failed
771
+ },
772
+ {
773
+ status: 401,
774
+ description: `0: Authorization has been denied for this request.`,
775
+ },
776
+ {
777
+ status: 403,
778
+ description: `0: Token Validation Failed
815
779
  2: You do not have permission to get this table.`,
816
- },
817
- {
818
- status: 429,
819
- description: `24: Too many attempts.Please try again later.`,
820
- },
821
- {
822
- status: 503,
823
- description: `17: Feature is disabled`,
824
- },
825
- ],
826
- });
780
+ },
781
+ {
782
+ status: 429,
783
+ description: `24: Too many attempts.Please try again later.`,
784
+ },
785
+ {
786
+ status: 503,
787
+ description: `17: Feature is disabled`,
788
+ },
789
+ ],
790
+ });
827
791
  /**
828
792
  * @api POST https://localizationtables.roblox.com/v1/localization-table/tables/:tableId/entries/translation-history
829
793
  * @summary Gets the translation history for each entry passed in.
@@ -831,33 +795,31 @@ export const postLocalizationTableTablesTableidEntriesTranslationFeedback =
831
795
  * @param tableId The entries' tableId.
832
796
  * @param gameId The game id.
833
797
  */
834
- export const postLocalizationTableTablesTableidEntriesTranslationHistory =
835
- endpoint({
836
- method: "POST",
837
- path: "/v1/localization-table/tables/:tableId/entries/translation-history",
838
- baseUrl: "https://localizationtables.roblox.com",
839
- requestFormat: "json",
840
- serializationMethod: {
841
- body: {},
842
- tableId: {
843
- style: "simple",
844
- },
845
- gameId: {
846
- style: "form",
847
- explode: true,
848
- },
849
- },
850
- parameters: {
851
- tableId: z.string().uuid(),
852
- gameId: z.number().int().optional(),
853
- },
854
- body: Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryRequest,
855
- response:
856
- Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryResponse,
857
- errors: [
858
- {
859
- status: 400,
860
- description: `3: Invalid table id.
798
+ export const postLocalizationTableTablesTableidEntriesTranslationHistory = endpoint({
799
+ method: 'POST',
800
+ path: '/v1/localization-table/tables/:tableId/entries/translation-history',
801
+ baseUrl: 'https://localizationtables.roblox.com',
802
+ requestFormat: 'json',
803
+ serializationMethod: {
804
+ body: {},
805
+ tableId: {
806
+ style: 'simple',
807
+ },
808
+ gameId: {
809
+ style: 'form',
810
+ explode: true,
811
+ },
812
+ },
813
+ parameters: {
814
+ tableId: z.string().uuid(),
815
+ gameId: z.number().int().optional(),
816
+ },
817
+ body: Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryRequest,
818
+ response: Roblox_LocalizationTables_Api_GetTableEntriesTranslationHistoryResponse,
819
+ errors: [
820
+ {
821
+ status: 400,
822
+ description: `3: Invalid table id.
861
823
  13: Request body can't be null
862
824
  14: Invalid game id
863
825
  16: Entries can't be null or empty
@@ -866,26 +828,26 @@ export const postLocalizationTableTablesTableidEntriesTranslationHistory =
866
828
  38: Invalid entry identifier.
867
829
  39: Count should be at least 1.
868
830
  45: Invalid exclusive start id.`,
869
- },
870
- {
871
- status: 401,
872
- description: `0: Authorization has been denied for this request.`,
873
- },
874
- {
875
- status: 403,
876
- description: `0: Token Validation Failed
831
+ },
832
+ {
833
+ status: 401,
834
+ description: `0: Authorization has been denied for this request.`,
835
+ },
836
+ {
837
+ status: 403,
838
+ description: `0: Token Validation Failed
877
839
  2: You do not have permission to get this table.`,
878
- },
879
- {
880
- status: 429,
881
- description: `24: Too many attempts.Please try again later.`,
882
- },
883
- {
884
- status: 503,
885
- description: `17: Feature is disabled`,
886
- },
887
- ],
888
- });
840
+ },
841
+ {
842
+ status: 429,
843
+ description: `24: Too many attempts.Please try again later.`,
844
+ },
845
+ {
846
+ status: 503,
847
+ description: `17: Feature is disabled`,
848
+ },
849
+ ],
850
+ });
889
851
  /**
890
852
  * @api GET https://localizationtables.roblox.com/v1/localization-table/tables/:tableId/entry-count
891
853
  * @summary Gets the number of entries in the specified table
@@ -894,27 +856,27 @@ export const postLocalizationTableTablesTableidEntriesTranslationHistory =
894
856
  * @param entryFormat
895
857
  */
896
858
  export const getLocalizationTableTablesTableidEntryCount = endpoint({
897
- method: "GET",
898
- path: "/v1/localization-table/tables/:tableId/entry-count",
899
- baseUrl: "https://localizationtables.roblox.com",
900
- requestFormat: "json",
859
+ method: 'GET',
860
+ path: '/v1/localization-table/tables/:tableId/entry-count',
861
+ baseUrl: 'https://localizationtables.roblox.com',
862
+ requestFormat: 'json',
901
863
  serializationMethod: {
902
864
  tableId: {
903
- style: "simple",
865
+ style: 'simple',
904
866
  },
905
867
  gameId: {
906
- style: "form",
868
+ style: 'form',
907
869
  explode: true,
908
870
  },
909
871
  entryFormat: {
910
- style: "form",
872
+ style: 'form',
911
873
  explode: true,
912
874
  },
913
875
  },
914
876
  parameters: {
915
877
  tableId: z.string().uuid(),
916
878
  gameId: z.number().int().optional(),
917
- entryFormat: z.enum(["Invalid", "Legacy", "Icu"]).optional().default("Invalid"),
879
+ entryFormat: z.enum(['Invalid', 'Legacy', 'Icu']).optional().default('Invalid'),
918
880
  },
919
881
  response: Roblox_LocalizationTables_Api_GetTableEntryCountResponse,
920
882
  errors: [