rozod 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/endpoints/accountinformationv1.d.ts +551 -0
  2. package/lib/endpoints/accountinformationv1.js +652 -0
  3. package/lib/endpoints/accountsettingsv1.d.ts +548 -0
  4. package/lib/endpoints/accountsettingsv1.js +712 -0
  5. package/lib/endpoints/assetdeliveryv1.d.ts +599 -0
  6. package/lib/endpoints/assetdeliveryv1.js +268 -0
  7. package/lib/endpoints/assetdeliveryv2.d.ts +780 -0
  8. package/lib/endpoints/assetdeliveryv2.js +271 -0
  9. package/lib/endpoints/authv1.d.ts +1328 -0
  10. package/lib/endpoints/authv1.js +1168 -0
  11. package/lib/endpoints/authv2.d.ts +1239 -0
  12. package/lib/endpoints/authv2.js +1057 -0
  13. package/lib/endpoints/authv3.d.ts +35 -0
  14. package/lib/endpoints/authv3.js +41 -0
  15. package/lib/endpoints/avatarv1.d.ts +1841 -0
  16. package/lib/endpoints/avatarv1.js +726 -0
  17. package/lib/endpoints/avatarv2.d.ts +1077 -0
  18. package/lib/endpoints/avatarv2.js +316 -0
  19. package/lib/endpoints/avatarv3.d.ts +656 -0
  20. package/lib/endpoints/avatarv3.js +219 -0
  21. package/lib/endpoints/badgesv1.d.ts +641 -0
  22. package/lib/endpoints/badgesv1.js +345 -0
  23. package/lib/endpoints/catalogv1.d.ts +1715 -0
  24. package/lib/endpoints/catalogv1.js +792 -0
  25. package/lib/endpoints/chatv2.d.ts +2179 -0
  26. package/lib/endpoints/chatv2.js +721 -0
  27. package/lib/endpoints/developv1.d.ts +2097 -0
  28. package/lib/endpoints/developv1.js +1537 -0
  29. package/lib/endpoints/developv2.d.ts +619 -0
  30. package/lib/endpoints/developv2.js +316 -0
  31. package/lib/endpoints/economyv1.d.ts +20 -0
  32. package/lib/endpoints/economyv1.js +28 -0
  33. package/lib/endpoints/friendsv1.d.ts +1093 -0
  34. package/lib/endpoints/friendsv1.js +818 -0
  35. package/lib/endpoints/gamesv1.d.ts +2749 -0
  36. package/lib/endpoints/gamesv1.js +1294 -0
  37. package/lib/endpoints/gamesv2.d.ts +582 -0
  38. package/lib/endpoints/gamesv2.js +258 -0
  39. package/lib/endpoints/groupsv1.d.ts +5528 -0
  40. package/lib/endpoints/groupsv1.js +2434 -0
  41. package/lib/endpoints/groupsv2.d.ts +530 -0
  42. package/lib/endpoints/groupsv2.js +201 -0
  43. package/lib/endpoints/inventoryv1.d.ts +436 -0
  44. package/lib/endpoints/inventoryv1.js +434 -0
  45. package/lib/endpoints/inventoryv2.d.ts +256 -0
  46. package/lib/endpoints/inventoryv2.js +241 -0
  47. package/lib/endpoints/presencev1.d.ts +134 -0
  48. package/lib/endpoints/presencev1.js +93 -0
  49. package/lib/endpoints/privatemessagesv1.d.ts +620 -0
  50. package/lib/endpoints/privatemessagesv1.js +338 -0
  51. package/lib/endpoints/thumbnailsv1.d.ts +897 -0
  52. package/lib/endpoints/thumbnailsv1.js +560 -0
  53. package/lib/endpoints/tradesv1.d.ts +473 -0
  54. package/lib/endpoints/tradesv1.js +403 -0
  55. package/lib/endpoints/translationsv1.d.ts +80 -0
  56. package/lib/endpoints/translationsv1.js +122 -0
  57. package/lib/endpoints/usersv1.d.ts +391 -0
  58. package/lib/endpoints/usersv1.js +344 -0
  59. package/lib/index.d.ts +85 -0
  60. package/lib/index.js +293 -0
  61. package/package.json +39 -0
  62. package/readme.md +99 -0
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ export declare const postV3usersUserIdtwoStepVerificationlogin: {
3
+ method: "post";
4
+ path: string;
5
+ baseUrl: string;
6
+ requestFormat: "json";
7
+ parameters: {
8
+ body: z.ZodObject<{
9
+ challengeId: z.ZodOptional<z.ZodString>;
10
+ verificationToken: z.ZodOptional<z.ZodString>;
11
+ rememberDevice: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ challengeId?: string | undefined;
14
+ verificationToken?: string | undefined;
15
+ rememberDevice?: boolean | undefined;
16
+ }, {
17
+ challengeId?: string | undefined;
18
+ verificationToken?: string | undefined;
19
+ rememberDevice?: boolean | undefined;
20
+ }>;
21
+ userId: z.ZodNumber;
22
+ };
23
+ response: z.ZodObject<{
24
+ identityVerificationLoginTicket: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ identityVerificationLoginTicket?: string | undefined;
27
+ }, {
28
+ identityVerificationLoginTicket?: string | undefined;
29
+ }>;
30
+ errors: {
31
+ status: number;
32
+ description: string;
33
+ schema: z.ZodVoid;
34
+ }[];
35
+ };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.postV3usersUserIdtwoStepVerificationlogin = void 0;
4
+ var zod_1 = require("zod");
5
+ var Roblox_Authentication_Api_TwoStepVerificationLoginRequest = zod_1.z
6
+ .object({
7
+ challengeId: zod_1.z.string(),
8
+ verificationToken: zod_1.z.string(),
9
+ rememberDevice: zod_1.z.boolean(),
10
+ })
11
+ .partial();
12
+ var Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse = zod_1.z
13
+ .object({ identityVerificationLoginTicket: zod_1.z.string() })
14
+ .partial();
15
+ var schemas = {
16
+ Roblox_Authentication_Api_TwoStepVerificationLoginRequest: Roblox_Authentication_Api_TwoStepVerificationLoginRequest,
17
+ Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse: Roblox_Authentication_Api_Models_TwoStepVerificationV3LoginResponse,
18
+ };
19
+ exports.postV3usersUserIdtwoStepVerificationlogin = {
20
+ method: 'post',
21
+ path: '/v3/users/:userId/two-step-verification/login',
22
+ baseUrl: 'https://auth.roblox.com',
23
+ requestFormat: 'json',
24
+ parameters: {
25
+ body: Roblox_Authentication_Api_TwoStepVerificationLoginRequest,
26
+ userId: zod_1.z.number().int(),
27
+ },
28
+ response: zod_1.z.object({ identityVerificationLoginTicket: zod_1.z.string() }).partial(),
29
+ errors: [
30
+ {
31
+ status: 400,
32
+ description: "1: User is invalid.\n5: Invalid two step verification ticket.\n10: Invalid verification token.",
33
+ schema: zod_1.z.void(),
34
+ },
35
+ {
36
+ status: 403,
37
+ description: "0: Token Validation Failed",
38
+ schema: zod_1.z.void(),
39
+ },
40
+ ],
41
+ };