@valpro-labs/valorant-api 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/endpoints/AgentsEndpoints.d.ts +1 -161
- package/dist/endpoints/AgentsEndpoints.js +6 -66
- package/dist/endpoints/BuddiesEndpoints.d.ts +1 -45
- package/dist/endpoints/BuddiesEndpoints.js +1 -19
- package/dist/endpoints/BundlesEndpoints.d.ts +1 -29
- package/dist/endpoints/BundlesEndpoints.js +1 -16
- package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +1 -50
- package/dist/endpoints/CompetitiveTiersEndpoints.js +1 -21
- package/dist/endpoints/ContentTierEndpoints.d.ts +1 -25
- package/dist/endpoints/ContentTierEndpoints.js +1 -14
- package/dist/endpoints/ContractsEndpoints.d.ts +1 -152
- package/dist/endpoints/ContractsEndpoints.js +1 -40
- package/dist/endpoints/CurrenciesEndpoints.d.ts +1 -21
- package/dist/endpoints/CurrenciesEndpoints.js +1 -12
- package/dist/endpoints/EventsEndpoints.d.ts +1 -19
- package/dist/endpoints/EventsEndpoints.js +1 -11
- package/dist/endpoints/FlexEndpoints.d.ts +1 -17
- package/dist/endpoints/FlexEndpoints.js +1 -11
- package/dist/endpoints/GameModesEndpoints.d.ts +1 -63
- package/dist/endpoints/GameModesEndpoints.js +1 -31
- package/dist/endpoints/LevelBordersEndpoints.d.ts +1 -21
- package/dist/endpoints/LevelBordersEndpoints.js +0 -11
- package/dist/endpoints/MapsEndpoints.d.ts +1 -120
- package/dist/endpoints/MapsEndpoints.js +1 -47
- package/dist/endpoints/MissionsEndpoints.d.ts +1 -38
- package/dist/endpoints/MissionsEndpoints.js +1 -20
- package/dist/endpoints/ObjectivesEndpoints.d.ts +1 -13
- package/dist/endpoints/ObjectivesEndpoints.js +1 -8
- package/dist/endpoints/PlayerCardsEndpoints.d.ts +1 -25
- package/dist/endpoints/PlayerCardsEndpoints.js +1 -14
- package/dist/endpoints/PlayerTitlesEndpoints.d.ts +1 -17
- package/dist/endpoints/PlayerTitlesEndpoints.js +1 -10
- package/dist/endpoints/SeasonsEndpoints.d.ts +1 -23
- package/dist/endpoints/SeasonsEndpoints.js +1 -13
- package/dist/endpoints/SpraysEndpoints.d.ts +1 -51
- package/dist/endpoints/SpraysEndpoints.js +1 -24
- package/dist/endpoints/VersionEndpoint.d.ts +1 -12
- package/dist/endpoints/VersionEndpoint.js +1 -12
- package/dist/endpoints/WeaponsEndpoints.d.ts +1 -302
- package/dist/endpoints/WeaponsEndpoints.js +1 -99
- package/dist/endpoints/index.d.ts +21 -0
- package/dist/endpoints/index.js +37 -0
- package/dist/index.d.ts +2 -22
- package/dist/index.js +2 -22
- package/dist/schemas/AgentSchemas.d.ts +161 -0
- package/dist/schemas/AgentSchemas.js +65 -0
- package/dist/schemas/BuddySchemas.d.ts +45 -0
- package/dist/schemas/BuddySchemas.js +21 -0
- package/dist/schemas/BundleSchemas.d.ts +29 -0
- package/dist/schemas/BundleSchemas.js +18 -0
- package/dist/schemas/CompetitiveTierSchemas.d.ts +50 -0
- package/dist/schemas/CompetitiveTierSchemas.js +23 -0
- package/dist/schemas/ContentTierSchemas.d.ts +25 -0
- package/dist/schemas/ContentTierSchemas.js +16 -0
- package/dist/schemas/ContractSchemas.d.ts +152 -0
- package/dist/schemas/ContractSchemas.js +42 -0
- package/dist/schemas/CurrencySchemas.d.ts +21 -0
- package/dist/schemas/CurrencySchemas.js +14 -0
- package/dist/schemas/EventSchemas.d.ts +19 -0
- package/dist/schemas/EventSchemas.js +13 -0
- package/dist/schemas/FlexSchemas.d.ts +17 -0
- package/dist/schemas/FlexSchemas.js +13 -0
- package/dist/schemas/GameModeSchemas.d.ts +63 -0
- package/dist/schemas/GameModeSchemas.js +33 -0
- package/dist/schemas/LevelBorderSchemas.d.ts +21 -0
- package/dist/schemas/LevelBorderSchemas.js +14 -0
- package/dist/schemas/MapSchemas.d.ts +120 -0
- package/dist/schemas/MapSchemas.js +49 -0
- package/dist/schemas/MissionSchemas.d.ts +38 -0
- package/dist/schemas/MissionSchemas.js +22 -0
- package/dist/schemas/ObjectiveSchemas.d.ts +13 -0
- package/dist/schemas/ObjectiveSchemas.js +10 -0
- package/dist/schemas/PlayerCardSchemas.d.ts +25 -0
- package/dist/schemas/PlayerCardSchemas.js +16 -0
- package/dist/schemas/PlayerTitleSchemas.d.ts +17 -0
- package/dist/schemas/PlayerTitleSchemas.js +12 -0
- package/dist/schemas/SeasonSchemas.d.ts +23 -0
- package/dist/schemas/SeasonSchemas.js +15 -0
- package/dist/schemas/SpraySchemas.d.ts +51 -0
- package/dist/schemas/SpraySchemas.js +26 -0
- package/dist/schemas/VersionSchemas.d.ts +12 -0
- package/dist/schemas/VersionSchemas.js +14 -0
- package/dist/schemas/WeaponSchemas.d.ts +302 -0
- package/dist/schemas/WeaponSchemas.js +101 -0
- package/dist/schemas/index.d.ts +21 -0
- package/dist/schemas/index.js +37 -0
- package/package.json +40 -40
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameModesSchema = exports.GameModeSchema = exports.GameRuleBoolOverrideSchema = exports.GameFeatureOverrideSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const SharedSchemas_1 = require("./SharedSchemas");
|
|
6
|
+
exports.GameFeatureOverrideSchema = zod_1.z.object({
|
|
7
|
+
featureName: zod_1.z.string(),
|
|
8
|
+
state: zod_1.z.boolean(),
|
|
9
|
+
});
|
|
10
|
+
exports.GameRuleBoolOverrideSchema = zod_1.z.object({
|
|
11
|
+
ruleName: zod_1.z.string(),
|
|
12
|
+
state: zod_1.z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
exports.GameModeSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
17
|
+
description: SharedSchemas_1.LocalizedStringSchema.nullable(),
|
|
18
|
+
duration: zod_1.z.string().nullable(),
|
|
19
|
+
economyType: zod_1.z.string().nullable(),
|
|
20
|
+
allowsMatchTimeouts: zod_1.z.boolean(),
|
|
21
|
+
allowsCustomGameReplays: zod_1.z.boolean(),
|
|
22
|
+
isTeamVoiceAllowed: zod_1.z.boolean(),
|
|
23
|
+
isMinimapHidden: zod_1.z.boolean(),
|
|
24
|
+
orbCount: zod_1.z.number(),
|
|
25
|
+
roundsPerHalf: zod_1.z.number(),
|
|
26
|
+
teamRoles: zod_1.z.array(zod_1.z.string()).nullable(),
|
|
27
|
+
gameFeatureOverrides: zod_1.z.array(exports.GameFeatureOverrideSchema).nullable().optional(),
|
|
28
|
+
gameRuleBoolOverrides: zod_1.z.array(exports.GameRuleBoolOverrideSchema).nullable().optional(),
|
|
29
|
+
displayIcon: zod_1.z.string().nullable(),
|
|
30
|
+
listViewIconTall: zod_1.z.string().nullable().optional(),
|
|
31
|
+
assetPath: zod_1.z.string(),
|
|
32
|
+
});
|
|
33
|
+
exports.GameModesSchema = zod_1.z.array(exports.GameModeSchema);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LevelBorderSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
startingLevel: z.ZodNumber;
|
|
6
|
+
levelNumber: z.ZodNumber;
|
|
7
|
+
levelNumberAppearance: z.ZodString;
|
|
8
|
+
smallPlayerCardAppearance: z.ZodString;
|
|
9
|
+
assetPath: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type LevelBorderResponse = z.infer<typeof LevelBorderSchema>;
|
|
12
|
+
export declare const LevelBordersSchema: z.ZodArray<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodString;
|
|
14
|
+
displayName: z.ZodString;
|
|
15
|
+
startingLevel: z.ZodNumber;
|
|
16
|
+
levelNumber: z.ZodNumber;
|
|
17
|
+
levelNumberAppearance: z.ZodString;
|
|
18
|
+
smallPlayerCardAppearance: z.ZodString;
|
|
19
|
+
assetPath: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
export type LevelBordersResponse = z.infer<typeof LevelBordersSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LevelBordersSchema = exports.LevelBorderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.LevelBorderSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
displayName: zod_1.z.string(),
|
|
8
|
+
startingLevel: zod_1.z.number().int(),
|
|
9
|
+
levelNumber: zod_1.z.number().int(),
|
|
10
|
+
levelNumberAppearance: zod_1.z.string(),
|
|
11
|
+
smallPlayerCardAppearance: zod_1.z.string(),
|
|
12
|
+
assetPath: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.LevelBordersSchema = zod_1.z.array(exports.LevelBorderSchema);
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LocationSchema: z.ZodObject<{
|
|
3
|
+
x: z.ZodNumber;
|
|
4
|
+
y: z.ZodNumber;
|
|
5
|
+
z: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type LocationResponse = z.infer<typeof LocationSchema>;
|
|
8
|
+
export declare const Scale3DSchema: z.ZodObject<{
|
|
9
|
+
x: z.ZodNumber;
|
|
10
|
+
y: z.ZodNumber;
|
|
11
|
+
z: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type Scale3DResponse = z.infer<typeof Scale3DSchema>;
|
|
14
|
+
export declare const RotationSchema: z.ZodObject<{
|
|
15
|
+
pitch: z.ZodNumber;
|
|
16
|
+
yaw: z.ZodNumber;
|
|
17
|
+
roll: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type RotationResponse = z.infer<typeof RotationSchema>;
|
|
20
|
+
export declare const CalloutSchema: z.ZodObject<{
|
|
21
|
+
regionName: z.ZodString;
|
|
22
|
+
superRegion: z.ZodString;
|
|
23
|
+
superRegionName: z.ZodString;
|
|
24
|
+
location: z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
z: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
scale3D: z.ZodObject<{
|
|
30
|
+
x: z.ZodNumber;
|
|
31
|
+
y: z.ZodNumber;
|
|
32
|
+
z: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
rotation: z.ZodObject<{
|
|
35
|
+
pitch: z.ZodNumber;
|
|
36
|
+
yaw: z.ZodNumber;
|
|
37
|
+
roll: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type CalloutResponse = z.infer<typeof CalloutSchema>;
|
|
41
|
+
export declare const MapSchema: z.ZodObject<{
|
|
42
|
+
uuid: z.ZodString;
|
|
43
|
+
displayName: z.ZodString;
|
|
44
|
+
narrativeDescription: z.ZodString;
|
|
45
|
+
tacticalDescription: z.ZodString;
|
|
46
|
+
coordinates: z.ZodString;
|
|
47
|
+
displayIcon: z.ZodString;
|
|
48
|
+
listViewIcon: z.ZodString;
|
|
49
|
+
listViewIconTall: z.ZodString;
|
|
50
|
+
splash: z.ZodString;
|
|
51
|
+
stylizedBackgroundImage: z.ZodString;
|
|
52
|
+
premierBackgroundImage: z.ZodString;
|
|
53
|
+
assetPath: z.ZodString;
|
|
54
|
+
mapUrl: z.ZodString;
|
|
55
|
+
xMultiplier: z.ZodNumber;
|
|
56
|
+
yMultiplier: z.ZodNumber;
|
|
57
|
+
xScalarToAdd: z.ZodNumber;
|
|
58
|
+
yScalarToAdd: z.ZodNumber;
|
|
59
|
+
callouts: z.ZodArray<z.ZodObject<{
|
|
60
|
+
regionName: z.ZodString;
|
|
61
|
+
superRegion: z.ZodString;
|
|
62
|
+
superRegionName: z.ZodString;
|
|
63
|
+
location: z.ZodObject<{
|
|
64
|
+
x: z.ZodNumber;
|
|
65
|
+
y: z.ZodNumber;
|
|
66
|
+
z: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
scale3D: z.ZodObject<{
|
|
69
|
+
x: z.ZodNumber;
|
|
70
|
+
y: z.ZodNumber;
|
|
71
|
+
z: z.ZodNumber;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
rotation: z.ZodObject<{
|
|
74
|
+
pitch: z.ZodNumber;
|
|
75
|
+
yaw: z.ZodNumber;
|
|
76
|
+
roll: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type MapResponse = z.infer<typeof MapSchema>;
|
|
81
|
+
export declare const MapsSchema: z.ZodArray<z.ZodObject<{
|
|
82
|
+
uuid: z.ZodString;
|
|
83
|
+
displayName: z.ZodString;
|
|
84
|
+
narrativeDescription: z.ZodString;
|
|
85
|
+
tacticalDescription: z.ZodString;
|
|
86
|
+
coordinates: z.ZodString;
|
|
87
|
+
displayIcon: z.ZodString;
|
|
88
|
+
listViewIcon: z.ZodString;
|
|
89
|
+
listViewIconTall: z.ZodString;
|
|
90
|
+
splash: z.ZodString;
|
|
91
|
+
stylizedBackgroundImage: z.ZodString;
|
|
92
|
+
premierBackgroundImage: z.ZodString;
|
|
93
|
+
assetPath: z.ZodString;
|
|
94
|
+
mapUrl: z.ZodString;
|
|
95
|
+
xMultiplier: z.ZodNumber;
|
|
96
|
+
yMultiplier: z.ZodNumber;
|
|
97
|
+
xScalarToAdd: z.ZodNumber;
|
|
98
|
+
yScalarToAdd: z.ZodNumber;
|
|
99
|
+
callouts: z.ZodArray<z.ZodObject<{
|
|
100
|
+
regionName: z.ZodString;
|
|
101
|
+
superRegion: z.ZodString;
|
|
102
|
+
superRegionName: z.ZodString;
|
|
103
|
+
location: z.ZodObject<{
|
|
104
|
+
x: z.ZodNumber;
|
|
105
|
+
y: z.ZodNumber;
|
|
106
|
+
z: z.ZodNumber;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
scale3D: z.ZodObject<{
|
|
109
|
+
x: z.ZodNumber;
|
|
110
|
+
y: z.ZodNumber;
|
|
111
|
+
z: z.ZodNumber;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
rotation: z.ZodObject<{
|
|
114
|
+
pitch: z.ZodNumber;
|
|
115
|
+
yaw: z.ZodNumber;
|
|
116
|
+
roll: z.ZodNumber;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
export type MapsResponse = z.infer<typeof MapsSchema>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MapsSchema = exports.MapSchema = exports.CalloutSchema = exports.RotationSchema = exports.Scale3DSchema = exports.LocationSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const SharedSchemas_1 = require("./SharedSchemas");
|
|
6
|
+
exports.LocationSchema = zod_1.z.object({
|
|
7
|
+
x: zod_1.z.number(),
|
|
8
|
+
y: zod_1.z.number(),
|
|
9
|
+
z: zod_1.z.number(),
|
|
10
|
+
});
|
|
11
|
+
exports.Scale3DSchema = zod_1.z.object({
|
|
12
|
+
x: zod_1.z.number(),
|
|
13
|
+
y: zod_1.z.number(),
|
|
14
|
+
z: zod_1.z.number(),
|
|
15
|
+
});
|
|
16
|
+
exports.RotationSchema = zod_1.z.object({
|
|
17
|
+
pitch: zod_1.z.number(),
|
|
18
|
+
yaw: zod_1.z.number(),
|
|
19
|
+
roll: zod_1.z.number(),
|
|
20
|
+
});
|
|
21
|
+
exports.CalloutSchema = zod_1.z.object({
|
|
22
|
+
regionName: SharedSchemas_1.LocalizedStringSchema,
|
|
23
|
+
superRegion: zod_1.z.string(),
|
|
24
|
+
superRegionName: SharedSchemas_1.LocalizedStringSchema,
|
|
25
|
+
location: exports.LocationSchema,
|
|
26
|
+
scale3D: exports.Scale3DSchema,
|
|
27
|
+
rotation: exports.RotationSchema,
|
|
28
|
+
});
|
|
29
|
+
exports.MapSchema = zod_1.z.object({
|
|
30
|
+
uuid: zod_1.z.string().uuid(),
|
|
31
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
32
|
+
narrativeDescription: SharedSchemas_1.LocalizedStringSchema,
|
|
33
|
+
tacticalDescription: SharedSchemas_1.LocalizedStringSchema,
|
|
34
|
+
coordinates: SharedSchemas_1.LocalizedStringSchema,
|
|
35
|
+
displayIcon: zod_1.z.string(),
|
|
36
|
+
listViewIcon: zod_1.z.string(),
|
|
37
|
+
listViewIconTall: zod_1.z.string(),
|
|
38
|
+
splash: zod_1.z.string(),
|
|
39
|
+
stylizedBackgroundImage: zod_1.z.string(),
|
|
40
|
+
premierBackgroundImage: zod_1.z.string(),
|
|
41
|
+
assetPath: zod_1.z.string(),
|
|
42
|
+
mapUrl: zod_1.z.string(),
|
|
43
|
+
xMultiplier: zod_1.z.number(),
|
|
44
|
+
yMultiplier: zod_1.z.number(),
|
|
45
|
+
xScalarToAdd: zod_1.z.number(),
|
|
46
|
+
yScalarToAdd: zod_1.z.number(),
|
|
47
|
+
callouts: zod_1.z.array(exports.CalloutSchema),
|
|
48
|
+
});
|
|
49
|
+
exports.MapsSchema = zod_1.z.array(exports.MapSchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MissionObjectiveSchema: z.ZodObject<{
|
|
3
|
+
objectiveUuid: z.ZodString;
|
|
4
|
+
value: z.ZodNumber;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type MissionObjectiveResponse = z.infer<typeof MissionObjectiveSchema>;
|
|
7
|
+
export declare const MissionSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
displayName: z.ZodString;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
xpGrant: z.ZodNumber;
|
|
13
|
+
progressToComplete: z.ZodNumber;
|
|
14
|
+
activationDate: z.ZodString;
|
|
15
|
+
expirationDate: z.ZodString;
|
|
16
|
+
assetPath: z.ZodString;
|
|
17
|
+
objectives: z.ZodArray<z.ZodObject<{
|
|
18
|
+
objectiveUuid: z.ZodString;
|
|
19
|
+
value: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type MissionResponse = z.infer<typeof MissionSchema>;
|
|
23
|
+
export declare const MissionsSchema: z.ZodArray<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
displayName: z.ZodString;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
type: z.ZodString;
|
|
28
|
+
xpGrant: z.ZodNumber;
|
|
29
|
+
progressToComplete: z.ZodNumber;
|
|
30
|
+
activationDate: z.ZodString;
|
|
31
|
+
expirationDate: z.ZodString;
|
|
32
|
+
assetPath: z.ZodString;
|
|
33
|
+
objectives: z.ZodArray<z.ZodObject<{
|
|
34
|
+
objectiveUuid: z.ZodString;
|
|
35
|
+
value: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
export type MissionsResponse = z.infer<typeof MissionsSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MissionsSchema = exports.MissionSchema = exports.MissionObjectiveSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const SharedSchemas_1 = require("./SharedSchemas");
|
|
6
|
+
exports.MissionObjectiveSchema = zod_1.z.object({
|
|
7
|
+
objectiveUuid: zod_1.z.string().uuid(),
|
|
8
|
+
value: zod_1.z.number().int(),
|
|
9
|
+
});
|
|
10
|
+
exports.MissionSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
13
|
+
title: SharedSchemas_1.LocalizedStringSchema,
|
|
14
|
+
type: zod_1.z.string(),
|
|
15
|
+
xpGrant: zod_1.z.number().int(),
|
|
16
|
+
progressToComplete: zod_1.z.number().int(),
|
|
17
|
+
activationDate: zod_1.z.string().datetime(),
|
|
18
|
+
expirationDate: zod_1.z.string().datetime(),
|
|
19
|
+
assetPath: zod_1.z.string(),
|
|
20
|
+
objectives: zod_1.z.array(exports.MissionObjectiveSchema),
|
|
21
|
+
});
|
|
22
|
+
exports.MissionsSchema = zod_1.z.array(exports.MissionSchema);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ObjectiveSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
directive: z.ZodString;
|
|
5
|
+
assetPath: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ObjectiveResponse = z.infer<typeof ObjectiveSchema>;
|
|
8
|
+
export declare const ObjectivesSchema: z.ZodArray<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodString;
|
|
10
|
+
directive: z.ZodString;
|
|
11
|
+
assetPath: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
export type ObjectivesResponse = z.infer<typeof ObjectivesSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ObjectivesSchema = exports.ObjectiveSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ObjectiveSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
directive: zod_1.z.string(),
|
|
8
|
+
assetPath: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
exports.ObjectivesSchema = zod_1.z.array(exports.ObjectiveSchema);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PlayerCardSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
isHiddenIfNotOwned: z.ZodBoolean;
|
|
6
|
+
themeUuid: z.ZodString;
|
|
7
|
+
displayIcon: z.ZodString;
|
|
8
|
+
smallArt: z.ZodString;
|
|
9
|
+
wideArt: z.ZodString;
|
|
10
|
+
largeArt: z.ZodString;
|
|
11
|
+
assetPath: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type PlayerCardResponse = z.infer<typeof PlayerCardSchema>;
|
|
14
|
+
export declare const PlayerCardsSchema: z.ZodArray<z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
displayName: z.ZodString;
|
|
17
|
+
isHiddenIfNotOwned: z.ZodBoolean;
|
|
18
|
+
themeUuid: z.ZodString;
|
|
19
|
+
displayIcon: z.ZodString;
|
|
20
|
+
smallArt: z.ZodString;
|
|
21
|
+
wideArt: z.ZodString;
|
|
22
|
+
largeArt: z.ZodString;
|
|
23
|
+
assetPath: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
export type PlayerCardsResponse = z.infer<typeof PlayerCardsSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlayerCardsSchema = exports.PlayerCardSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PlayerCardSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
displayName: zod_1.z.string(),
|
|
8
|
+
isHiddenIfNotOwned: zod_1.z.boolean(),
|
|
9
|
+
themeUuid: zod_1.z.string().uuid(),
|
|
10
|
+
displayIcon: zod_1.z.string(),
|
|
11
|
+
smallArt: zod_1.z.string(),
|
|
12
|
+
wideArt: zod_1.z.string(),
|
|
13
|
+
largeArt: zod_1.z.string(),
|
|
14
|
+
assetPath: zod_1.z.string(),
|
|
15
|
+
});
|
|
16
|
+
exports.PlayerCardsSchema = zod_1.z.array(exports.PlayerCardSchema);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PlayerTitleSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
titleText: z.ZodString;
|
|
6
|
+
isHiddenIfNotOwned: z.ZodBoolean;
|
|
7
|
+
assetPath: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type PlayerTitleResponse = z.infer<typeof PlayerTitleSchema>;
|
|
10
|
+
export declare const PlayerTitlesSchema: z.ZodArray<z.ZodObject<{
|
|
11
|
+
uuid: z.ZodString;
|
|
12
|
+
displayName: z.ZodString;
|
|
13
|
+
titleText: z.ZodString;
|
|
14
|
+
isHiddenIfNotOwned: z.ZodBoolean;
|
|
15
|
+
assetPath: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
export type PlayerTitlesResponse = z.infer<typeof PlayerTitlesSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlayerTitlesSchema = exports.PlayerTitleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PlayerTitleSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
displayName: zod_1.z.string(),
|
|
8
|
+
titleText: zod_1.z.string(),
|
|
9
|
+
isHiddenIfNotOwned: zod_1.z.boolean(),
|
|
10
|
+
assetPath: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.PlayerTitlesSchema = zod_1.z.array(exports.PlayerTitleSchema);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SeasonSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
displayName: z.ZodString;
|
|
5
|
+
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
startTime: z.ZodString;
|
|
8
|
+
endTime: z.ZodString;
|
|
9
|
+
parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
assetPath: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type SeasonResponse = z.infer<typeof SeasonSchema>;
|
|
13
|
+
export declare const SeasonsSchema: z.ZodArray<z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
displayName: z.ZodString;
|
|
16
|
+
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
startTime: z.ZodString;
|
|
19
|
+
endTime: z.ZodString;
|
|
20
|
+
parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
assetPath: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
export type SeasonsResponse = z.infer<typeof SeasonsSchema>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SeasonsSchema = exports.SeasonSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SeasonSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
displayName: zod_1.z.string(),
|
|
8
|
+
title: zod_1.z.string().optional().nullable(),
|
|
9
|
+
type: zod_1.z.string().optional().nullable(),
|
|
10
|
+
startTime: zod_1.z.string(),
|
|
11
|
+
endTime: zod_1.z.string(),
|
|
12
|
+
parentUuid: zod_1.z.string().uuid().optional().nullable(),
|
|
13
|
+
assetPath: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
exports.SeasonsSchema = zod_1.z.array(exports.SeasonSchema);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SprayLevelSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
sprayUuid: z.ZodString;
|
|
5
|
+
displayName: z.ZodString;
|
|
6
|
+
displayIcon: z.ZodNullable<z.ZodString>;
|
|
7
|
+
assetPath: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type SprayLevelResponse = z.infer<typeof SprayLevelSchema>;
|
|
10
|
+
export declare const SpraySchema: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodString;
|
|
12
|
+
displayName: z.ZodString;
|
|
13
|
+
category: z.ZodNullable<z.ZodString>;
|
|
14
|
+
themeUuid: z.ZodNullable<z.ZodString>;
|
|
15
|
+
isNull: z.ZodBoolean;
|
|
16
|
+
displayIcon: z.ZodNullable<z.ZodString>;
|
|
17
|
+
fullIcon: z.ZodNullable<z.ZodString>;
|
|
18
|
+
fullTransparentIcon: z.ZodNullable<z.ZodString>;
|
|
19
|
+
animationPng: z.ZodNullable<z.ZodString>;
|
|
20
|
+
animationGif: z.ZodNullable<z.ZodString>;
|
|
21
|
+
assetPath: z.ZodString;
|
|
22
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
23
|
+
uuid: z.ZodString;
|
|
24
|
+
sprayUuid: z.ZodString;
|
|
25
|
+
displayName: z.ZodString;
|
|
26
|
+
displayIcon: z.ZodNullable<z.ZodString>;
|
|
27
|
+
assetPath: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type SprayResponse = z.infer<typeof SpraySchema>;
|
|
31
|
+
export declare const SpraysSchema: z.ZodArray<z.ZodObject<{
|
|
32
|
+
uuid: z.ZodString;
|
|
33
|
+
displayName: z.ZodString;
|
|
34
|
+
category: z.ZodNullable<z.ZodString>;
|
|
35
|
+
themeUuid: z.ZodNullable<z.ZodString>;
|
|
36
|
+
isNull: z.ZodBoolean;
|
|
37
|
+
displayIcon: z.ZodNullable<z.ZodString>;
|
|
38
|
+
fullIcon: z.ZodNullable<z.ZodString>;
|
|
39
|
+
fullTransparentIcon: z.ZodNullable<z.ZodString>;
|
|
40
|
+
animationPng: z.ZodNullable<z.ZodString>;
|
|
41
|
+
animationGif: z.ZodNullable<z.ZodString>;
|
|
42
|
+
assetPath: z.ZodString;
|
|
43
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
44
|
+
uuid: z.ZodString;
|
|
45
|
+
sprayUuid: z.ZodString;
|
|
46
|
+
displayName: z.ZodString;
|
|
47
|
+
displayIcon: z.ZodNullable<z.ZodString>;
|
|
48
|
+
assetPath: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
export type SpraysResponse = z.infer<typeof SpraysSchema>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpraysSchema = exports.SpraySchema = exports.SprayLevelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.SprayLevelSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
|
7
|
+
sprayUuid: zod_1.z.string().uuid(),
|
|
8
|
+
displayName: zod_1.z.string(),
|
|
9
|
+
displayIcon: zod_1.z.string().nullable(),
|
|
10
|
+
assetPath: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.SpraySchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
displayName: zod_1.z.string(),
|
|
15
|
+
category: zod_1.z.string().nullable(),
|
|
16
|
+
themeUuid: zod_1.z.string().uuid().nullable(),
|
|
17
|
+
isNull: zod_1.z.boolean(),
|
|
18
|
+
displayIcon: zod_1.z.string().nullable(),
|
|
19
|
+
fullIcon: zod_1.z.string().nullable(),
|
|
20
|
+
fullTransparentIcon: zod_1.z.string().nullable(),
|
|
21
|
+
animationPng: zod_1.z.string().nullable(),
|
|
22
|
+
animationGif: zod_1.z.string().nullable(),
|
|
23
|
+
assetPath: zod_1.z.string(),
|
|
24
|
+
levels: zod_1.z.array(exports.SprayLevelSchema),
|
|
25
|
+
});
|
|
26
|
+
exports.SpraysSchema = zod_1.z.array(exports.SpraySchema);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const VersionSchema: z.ZodObject<{
|
|
3
|
+
manifestId: z.ZodString;
|
|
4
|
+
branch: z.ZodString;
|
|
5
|
+
version: z.ZodString;
|
|
6
|
+
buildVersion: z.ZodString;
|
|
7
|
+
engineVersion: z.ZodString;
|
|
8
|
+
riotClientVersion: z.ZodString;
|
|
9
|
+
riotClientBuild: z.ZodString;
|
|
10
|
+
buildDate: z.ZodPipe<z.ZodString, z.ZodCoercedDate<string>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type VersionResponse = z.infer<typeof VersionSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VersionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.VersionSchema = zod_1.z.object({
|
|
6
|
+
manifestId: zod_1.z.string(),
|
|
7
|
+
branch: zod_1.z.string(),
|
|
8
|
+
version: zod_1.z.string(),
|
|
9
|
+
buildVersion: zod_1.z.string(),
|
|
10
|
+
engineVersion: zod_1.z.string(),
|
|
11
|
+
riotClientVersion: zod_1.z.string(),
|
|
12
|
+
riotClientBuild: zod_1.z.string(),
|
|
13
|
+
buildDate: zod_1.z.string().datetime().pipe(zod_1.z.coerce.date()),
|
|
14
|
+
});
|