@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.
Files changed (89) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +44 -44
  3. package/dist/endpoints/AgentsEndpoints.d.ts +1 -161
  4. package/dist/endpoints/AgentsEndpoints.js +6 -66
  5. package/dist/endpoints/BuddiesEndpoints.d.ts +1 -45
  6. package/dist/endpoints/BuddiesEndpoints.js +1 -19
  7. package/dist/endpoints/BundlesEndpoints.d.ts +1 -29
  8. package/dist/endpoints/BundlesEndpoints.js +1 -16
  9. package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +1 -50
  10. package/dist/endpoints/CompetitiveTiersEndpoints.js +1 -21
  11. package/dist/endpoints/ContentTierEndpoints.d.ts +1 -25
  12. package/dist/endpoints/ContentTierEndpoints.js +1 -14
  13. package/dist/endpoints/ContractsEndpoints.d.ts +1 -152
  14. package/dist/endpoints/ContractsEndpoints.js +1 -40
  15. package/dist/endpoints/CurrenciesEndpoints.d.ts +1 -21
  16. package/dist/endpoints/CurrenciesEndpoints.js +1 -12
  17. package/dist/endpoints/EventsEndpoints.d.ts +1 -19
  18. package/dist/endpoints/EventsEndpoints.js +1 -11
  19. package/dist/endpoints/FlexEndpoints.d.ts +1 -17
  20. package/dist/endpoints/FlexEndpoints.js +1 -11
  21. package/dist/endpoints/GameModesEndpoints.d.ts +1 -63
  22. package/dist/endpoints/GameModesEndpoints.js +1 -31
  23. package/dist/endpoints/LevelBordersEndpoints.d.ts +1 -21
  24. package/dist/endpoints/LevelBordersEndpoints.js +0 -11
  25. package/dist/endpoints/MapsEndpoints.d.ts +1 -120
  26. package/dist/endpoints/MapsEndpoints.js +1 -47
  27. package/dist/endpoints/MissionsEndpoints.d.ts +1 -38
  28. package/dist/endpoints/MissionsEndpoints.js +1 -20
  29. package/dist/endpoints/ObjectivesEndpoints.d.ts +1 -13
  30. package/dist/endpoints/ObjectivesEndpoints.js +1 -8
  31. package/dist/endpoints/PlayerCardsEndpoints.d.ts +1 -25
  32. package/dist/endpoints/PlayerCardsEndpoints.js +1 -14
  33. package/dist/endpoints/PlayerTitlesEndpoints.d.ts +1 -17
  34. package/dist/endpoints/PlayerTitlesEndpoints.js +1 -10
  35. package/dist/endpoints/SeasonsEndpoints.d.ts +1 -23
  36. package/dist/endpoints/SeasonsEndpoints.js +1 -13
  37. package/dist/endpoints/SpraysEndpoints.d.ts +1 -51
  38. package/dist/endpoints/SpraysEndpoints.js +1 -24
  39. package/dist/endpoints/VersionEndpoint.d.ts +1 -12
  40. package/dist/endpoints/VersionEndpoint.js +1 -12
  41. package/dist/endpoints/WeaponsEndpoints.d.ts +1 -302
  42. package/dist/endpoints/WeaponsEndpoints.js +1 -99
  43. package/dist/endpoints/index.d.ts +21 -0
  44. package/dist/endpoints/index.js +37 -0
  45. package/dist/index.d.ts +2 -22
  46. package/dist/index.js +2 -22
  47. package/dist/schemas/AgentSchemas.d.ts +161 -0
  48. package/dist/schemas/AgentSchemas.js +65 -0
  49. package/dist/schemas/BuddySchemas.d.ts +45 -0
  50. package/dist/schemas/BuddySchemas.js +21 -0
  51. package/dist/schemas/BundleSchemas.d.ts +29 -0
  52. package/dist/schemas/BundleSchemas.js +18 -0
  53. package/dist/schemas/CompetitiveTierSchemas.d.ts +50 -0
  54. package/dist/schemas/CompetitiveTierSchemas.js +23 -0
  55. package/dist/schemas/ContentTierSchemas.d.ts +25 -0
  56. package/dist/schemas/ContentTierSchemas.js +16 -0
  57. package/dist/schemas/ContractSchemas.d.ts +152 -0
  58. package/dist/schemas/ContractSchemas.js +42 -0
  59. package/dist/schemas/CurrencySchemas.d.ts +21 -0
  60. package/dist/schemas/CurrencySchemas.js +14 -0
  61. package/dist/schemas/EventSchemas.d.ts +19 -0
  62. package/dist/schemas/EventSchemas.js +13 -0
  63. package/dist/schemas/FlexSchemas.d.ts +17 -0
  64. package/dist/schemas/FlexSchemas.js +13 -0
  65. package/dist/schemas/GameModeSchemas.d.ts +63 -0
  66. package/dist/schemas/GameModeSchemas.js +33 -0
  67. package/dist/schemas/LevelBorderSchemas.d.ts +21 -0
  68. package/dist/schemas/LevelBorderSchemas.js +14 -0
  69. package/dist/schemas/MapSchemas.d.ts +120 -0
  70. package/dist/schemas/MapSchemas.js +49 -0
  71. package/dist/schemas/MissionSchemas.d.ts +38 -0
  72. package/dist/schemas/MissionSchemas.js +22 -0
  73. package/dist/schemas/ObjectiveSchemas.d.ts +13 -0
  74. package/dist/schemas/ObjectiveSchemas.js +10 -0
  75. package/dist/schemas/PlayerCardSchemas.d.ts +25 -0
  76. package/dist/schemas/PlayerCardSchemas.js +16 -0
  77. package/dist/schemas/PlayerTitleSchemas.d.ts +17 -0
  78. package/dist/schemas/PlayerTitleSchemas.js +12 -0
  79. package/dist/schemas/SeasonSchemas.d.ts +23 -0
  80. package/dist/schemas/SeasonSchemas.js +15 -0
  81. package/dist/schemas/SpraySchemas.d.ts +51 -0
  82. package/dist/schemas/SpraySchemas.js +26 -0
  83. package/dist/schemas/VersionSchemas.d.ts +12 -0
  84. package/dist/schemas/VersionSchemas.js +14 -0
  85. package/dist/schemas/WeaponSchemas.d.ts +302 -0
  86. package/dist/schemas/WeaponSchemas.js +101 -0
  87. package/dist/schemas/index.d.ts +21 -0
  88. package/dist/schemas/index.js +37 -0
  89. package/package.json +40 -40
@@ -1,156 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const RewardSchema: z.ZodObject<{
4
- type: z.ZodString;
5
- uuid: z.ZodString;
6
- amount: z.ZodNumber;
7
- isHighlighted: z.ZodBoolean;
8
- }, z.core.$strip>;
9
- export type RewardResponse = z.infer<typeof RewardSchema>;
10
- export declare const ContractLevelSchema: z.ZodObject<{
11
- reward: z.ZodObject<{
12
- type: z.ZodString;
13
- uuid: z.ZodString;
14
- amount: z.ZodNumber;
15
- isHighlighted: z.ZodBoolean;
16
- }, z.core.$strip>;
17
- xp: z.ZodNumber;
18
- vpCost: z.ZodNumber;
19
- isPurchasableWithVP: z.ZodBoolean;
20
- doughCost: z.ZodNumber;
21
- isPurchasableWithDough: z.ZodBoolean;
22
- }, z.core.$strip>;
23
- export type ContractLevelResponse = z.infer<typeof ContractLevelSchema>;
24
- export declare const ChapterSchema: z.ZodObject<{
25
- isEpilogue: z.ZodBoolean;
26
- levels: z.ZodArray<z.ZodObject<{
27
- reward: z.ZodObject<{
28
- type: z.ZodString;
29
- uuid: z.ZodString;
30
- amount: z.ZodNumber;
31
- isHighlighted: z.ZodBoolean;
32
- }, z.core.$strip>;
33
- xp: z.ZodNumber;
34
- vpCost: z.ZodNumber;
35
- isPurchasableWithVP: z.ZodBoolean;
36
- doughCost: z.ZodNumber;
37
- isPurchasableWithDough: z.ZodBoolean;
38
- }, z.core.$strip>>;
39
- freeRewards: z.ZodNullable<z.ZodArray<z.ZodObject<{
40
- type: z.ZodString;
41
- uuid: z.ZodString;
42
- amount: z.ZodNumber;
43
- isHighlighted: z.ZodBoolean;
44
- }, z.core.$strip>>>;
45
- }, z.core.$strip>;
46
- export type ChapterResponse = z.infer<typeof ChapterSchema>;
47
- export declare const ContractContentSchema: z.ZodObject<{
48
- relationType: z.ZodNullable<z.ZodString>;
49
- relationUuid: z.ZodNullable<z.ZodString>;
50
- chapters: z.ZodArray<z.ZodObject<{
51
- isEpilogue: z.ZodBoolean;
52
- levels: z.ZodArray<z.ZodObject<{
53
- reward: z.ZodObject<{
54
- type: z.ZodString;
55
- uuid: z.ZodString;
56
- amount: z.ZodNumber;
57
- isHighlighted: z.ZodBoolean;
58
- }, z.core.$strip>;
59
- xp: z.ZodNumber;
60
- vpCost: z.ZodNumber;
61
- isPurchasableWithVP: z.ZodBoolean;
62
- doughCost: z.ZodNumber;
63
- isPurchasableWithDough: z.ZodBoolean;
64
- }, z.core.$strip>>;
65
- freeRewards: z.ZodNullable<z.ZodArray<z.ZodObject<{
66
- type: z.ZodString;
67
- uuid: z.ZodString;
68
- amount: z.ZodNumber;
69
- isHighlighted: z.ZodBoolean;
70
- }, z.core.$strip>>>;
71
- }, z.core.$strip>>;
72
- premiumRewardScheduleUuid: z.ZodNullable<z.ZodString>;
73
- premiumVPCost: z.ZodNumber;
74
- }, z.core.$strip>;
75
- export type ContractContentResponse = z.infer<typeof ContractContentSchema>;
76
- export declare const ContractSchema: z.ZodObject<{
77
- uuid: z.ZodString;
78
- displayName: z.ZodString;
79
- displayIcon: z.ZodNullable<z.ZodString>;
80
- shipIt: z.ZodBoolean;
81
- useLevelVPCostOverride: z.ZodBoolean;
82
- levelVPCostOverride: z.ZodNumber;
83
- freeRewardScheduleUuid: z.ZodNullable<z.ZodString>;
84
- content: z.ZodObject<{
85
- relationType: z.ZodNullable<z.ZodString>;
86
- relationUuid: z.ZodNullable<z.ZodString>;
87
- chapters: z.ZodArray<z.ZodObject<{
88
- isEpilogue: z.ZodBoolean;
89
- levels: z.ZodArray<z.ZodObject<{
90
- reward: z.ZodObject<{
91
- type: z.ZodString;
92
- uuid: z.ZodString;
93
- amount: z.ZodNumber;
94
- isHighlighted: z.ZodBoolean;
95
- }, z.core.$strip>;
96
- xp: z.ZodNumber;
97
- vpCost: z.ZodNumber;
98
- isPurchasableWithVP: z.ZodBoolean;
99
- doughCost: z.ZodNumber;
100
- isPurchasableWithDough: z.ZodBoolean;
101
- }, z.core.$strip>>;
102
- freeRewards: z.ZodNullable<z.ZodArray<z.ZodObject<{
103
- type: z.ZodString;
104
- uuid: z.ZodString;
105
- amount: z.ZodNumber;
106
- isHighlighted: z.ZodBoolean;
107
- }, z.core.$strip>>>;
108
- }, z.core.$strip>>;
109
- premiumRewardScheduleUuid: z.ZodNullable<z.ZodString>;
110
- premiumVPCost: z.ZodNumber;
111
- }, z.core.$strip>;
112
- assetPath: z.ZodString;
113
- }, z.core.$strip>;
114
- export type ContractResponse = z.infer<typeof ContractSchema>;
115
- export declare const ContractsSchema: z.ZodArray<z.ZodObject<{
116
- uuid: z.ZodString;
117
- displayName: z.ZodString;
118
- displayIcon: z.ZodNullable<z.ZodString>;
119
- shipIt: z.ZodBoolean;
120
- useLevelVPCostOverride: z.ZodBoolean;
121
- levelVPCostOverride: z.ZodNumber;
122
- freeRewardScheduleUuid: z.ZodNullable<z.ZodString>;
123
- content: z.ZodObject<{
124
- relationType: z.ZodNullable<z.ZodString>;
125
- relationUuid: z.ZodNullable<z.ZodString>;
126
- chapters: z.ZodArray<z.ZodObject<{
127
- isEpilogue: z.ZodBoolean;
128
- levels: z.ZodArray<z.ZodObject<{
129
- reward: z.ZodObject<{
130
- type: z.ZodString;
131
- uuid: z.ZodString;
132
- amount: z.ZodNumber;
133
- isHighlighted: z.ZodBoolean;
134
- }, z.core.$strip>;
135
- xp: z.ZodNumber;
136
- vpCost: z.ZodNumber;
137
- isPurchasableWithVP: z.ZodBoolean;
138
- doughCost: z.ZodNumber;
139
- isPurchasableWithDough: z.ZodBoolean;
140
- }, z.core.$strip>>;
141
- freeRewards: z.ZodNullable<z.ZodArray<z.ZodObject<{
142
- type: z.ZodString;
143
- uuid: z.ZodString;
144
- amount: z.ZodNumber;
145
- isHighlighted: z.ZodBoolean;
146
- }, z.core.$strip>>>;
147
- }, z.core.$strip>>;
148
- premiumRewardScheduleUuid: z.ZodNullable<z.ZodString>;
149
- premiumVPCost: z.ZodNumber;
150
- }, z.core.$strip>;
151
- assetPath: z.ZodString;
152
- }, z.core.$strip>>;
153
- export type ContractsResponse = z.infer<typeof ContractsSchema>;
2
+ import { ContractResponse, ContractsResponse } from '../schemas';
154
3
  declare class ContractsEndpoints extends BaseEndpoint {
155
4
  constructor(config?: ValorantApiConfig);
156
5
  /**
@@ -1,46 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContractsEndpoints = exports.ContractsSchema = exports.ContractSchema = exports.ContractContentSchema = exports.ChapterSchema = exports.ContractLevelSchema = exports.RewardSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.ContractsEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- exports.RewardSchema = zod_1.z.object({
7
- type: zod_1.z.string(),
8
- uuid: zod_1.z.string().uuid(),
9
- amount: zod_1.z.number().int(),
10
- isHighlighted: zod_1.z.boolean(),
11
- });
12
- exports.ContractLevelSchema = zod_1.z.object({
13
- reward: exports.RewardSchema,
14
- xp: zod_1.z.number().int(),
15
- vpCost: zod_1.z.number().int(),
16
- isPurchasableWithVP: zod_1.z.boolean(),
17
- doughCost: zod_1.z.number().int(),
18
- isPurchasableWithDough: zod_1.z.boolean(),
19
- });
20
- exports.ChapterSchema = zod_1.z.object({
21
- isEpilogue: zod_1.z.boolean(),
22
- levels: zod_1.z.array(exports.ContractLevelSchema),
23
- freeRewards: zod_1.z.array(exports.RewardSchema).nullable(),
24
- });
25
- exports.ContractContentSchema = zod_1.z.object({
26
- relationType: zod_1.z.string().nullable(),
27
- relationUuid: zod_1.z.string().uuid().nullable(),
28
- chapters: zod_1.z.array(exports.ChapterSchema),
29
- premiumRewardScheduleUuid: zod_1.z.string().uuid().nullable(),
30
- premiumVPCost: zod_1.z.number().int(),
31
- });
32
- exports.ContractSchema = zod_1.z.object({
33
- uuid: zod_1.z.string().uuid(),
34
- displayName: zod_1.z.string(),
35
- displayIcon: zod_1.z.string().nullable(),
36
- shipIt: zod_1.z.boolean(),
37
- useLevelVPCostOverride: zod_1.z.boolean(),
38
- levelVPCostOverride: zod_1.z.number().int(),
39
- freeRewardScheduleUuid: zod_1.z.string().uuid().nullable(),
40
- content: exports.ContractContentSchema,
41
- assetPath: zod_1.z.string(),
42
- });
43
- exports.ContractsSchema = zod_1.z.array(exports.ContractSchema);
44
5
  // Types already defined above
45
6
  class ContractsEndpoints extends BaseEndpoint_1.BaseEndpoint {
46
7
  constructor(config) {
@@ -1,25 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const CurrencySchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- displayName: z.ZodString;
6
- displayNameSingular: z.ZodString;
7
- displayIcon: z.ZodString;
8
- largeIcon: z.ZodString;
9
- rewardPreviewIcon: z.ZodString;
10
- assetPath: z.ZodString;
11
- }, z.core.$strip>;
12
- export declare const CurrenciesSchema: z.ZodArray<z.ZodObject<{
13
- uuid: z.ZodString;
14
- displayName: z.ZodString;
15
- displayNameSingular: z.ZodString;
16
- displayIcon: z.ZodString;
17
- largeIcon: z.ZodString;
18
- rewardPreviewIcon: z.ZodString;
19
- assetPath: z.ZodString;
20
- }, z.core.$strip>>;
21
- export type CurrencyResponse = z.infer<typeof CurrencySchema>;
22
- export type CurrenciesResponse = z.infer<typeof CurrenciesSchema>;
2
+ import { CurrencyResponse, CurrenciesResponse } from '../schemas';
23
3
  declare class CurrenciesEndpoints extends BaseEndpoint {
24
4
  constructor(config?: ValorantApiConfig);
25
5
  getCurrenciesV1(): Promise<CurrenciesResponse>;
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurrenciesEndpoints = exports.CurrenciesSchema = exports.CurrencySchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.CurrenciesEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- exports.CurrencySchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
8
- displayName: zod_1.z.string(),
9
- displayNameSingular: zod_1.z.string(),
10
- displayIcon: zod_1.z.string().url(),
11
- largeIcon: zod_1.z.string().url(),
12
- rewardPreviewIcon: zod_1.z.string().url(),
13
- assetPath: zod_1.z.string(),
14
- });
15
- exports.CurrenciesSchema = zod_1.z.array(exports.CurrencySchema);
16
5
  class CurrenciesEndpoints extends BaseEndpoint_1.BaseEndpoint {
17
6
  constructor(config) {
18
7
  super(config);
@@ -1,23 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const EventSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- displayName: z.ZodString;
6
- shortDisplayName: z.ZodString;
7
- startTime: z.ZodString;
8
- endTime: z.ZodString;
9
- assetPath: z.ZodString;
10
- }, z.core.$strip>;
11
- export declare const EventsSchema: z.ZodArray<z.ZodObject<{
12
- uuid: z.ZodString;
13
- displayName: z.ZodString;
14
- shortDisplayName: z.ZodString;
15
- startTime: z.ZodString;
16
- endTime: z.ZodString;
17
- assetPath: z.ZodString;
18
- }, z.core.$strip>>;
19
- export type EventResponse = z.infer<typeof EventSchema>;
20
- export type EventsResponse = z.infer<typeof EventsSchema>;
2
+ import { EventResponse, EventsResponse } from '../schemas';
21
3
  declare class EventsEndpoints extends BaseEndpoint {
22
4
  constructor(config?: ValorantApiConfig);
23
5
  /**
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventsEndpoints = exports.EventsSchema = exports.EventSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.EventsEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- exports.EventSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
8
- displayName: zod_1.z.string(),
9
- shortDisplayName: zod_1.z.string(),
10
- startTime: zod_1.z.string(),
11
- endTime: zod_1.z.string(),
12
- assetPath: zod_1.z.string(),
13
- });
14
- exports.EventsSchema = zod_1.z.array(exports.EventSchema);
15
5
  class EventsEndpoints extends BaseEndpoint_1.BaseEndpoint {
16
6
  constructor(config) {
17
7
  super(config);
@@ -1,21 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const FlexSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- displayName: z.ZodString;
6
- displayNameAllCaps: z.ZodString;
7
- displayIcon: z.ZodString;
8
- assetPath: z.ZodString;
9
- }, z.core.$strip>;
10
- export declare const FlexsSchema: z.ZodArray<z.ZodObject<{
11
- uuid: z.ZodString;
12
- displayName: z.ZodString;
13
- displayNameAllCaps: z.ZodString;
14
- displayIcon: z.ZodString;
15
- assetPath: z.ZodString;
16
- }, z.core.$strip>>;
17
- export type FlexResponse = z.infer<typeof FlexSchema>;
18
- export type FlexsResponse = z.infer<typeof FlexsSchema>;
2
+ import { FlexResponse, FlexsResponse } from '../schemas';
19
3
  declare class FlexEndpoints extends BaseEndpoint {
20
4
  constructor(config?: ValorantApiConfig);
21
5
  getFlexV1(): Promise<FlexsResponse>;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FlexEndpoints = exports.FlexsSchema = exports.FlexSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.FlexEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- const SharedSchemas_1 = require("../schemas/SharedSchemas");
7
- exports.FlexSchema = zod_1.z.object({
8
- uuid: zod_1.z.string().uuid(),
9
- displayName: SharedSchemas_1.LocalizedStringSchema,
10
- displayNameAllCaps: SharedSchemas_1.LocalizedStringSchema,
11
- displayIcon: zod_1.z.string(),
12
- assetPath: zod_1.z.string(),
13
- });
14
- exports.FlexsSchema = zod_1.z.array(exports.FlexSchema);
15
5
  class FlexEndpoints extends BaseEndpoint_1.BaseEndpoint {
16
6
  constructor(config) {
17
7
  super(config);
@@ -1,67 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const GameFeatureOverrideSchema: z.ZodObject<{
4
- featureName: z.ZodString;
5
- state: z.ZodBoolean;
6
- }, z.core.$strip>;
7
- export type GameFeatureOverrideResponse = z.infer<typeof GameFeatureOverrideSchema>;
8
- export declare const GameRuleBoolOverrideSchema: z.ZodObject<{
9
- ruleName: z.ZodString;
10
- state: z.ZodBoolean;
11
- }, z.core.$strip>;
12
- export type GameRuleBoolOverrideResponse = z.infer<typeof GameRuleBoolOverrideSchema>;
13
- export declare const GameModeSchema: z.ZodObject<{
14
- uuid: z.ZodString;
15
- displayName: z.ZodString;
16
- description: z.ZodNullable<z.ZodString>;
17
- duration: z.ZodNullable<z.ZodString>;
18
- economyType: z.ZodNullable<z.ZodString>;
19
- allowsMatchTimeouts: z.ZodBoolean;
20
- allowsCustomGameReplays: z.ZodBoolean;
21
- isTeamVoiceAllowed: z.ZodBoolean;
22
- isMinimapHidden: z.ZodBoolean;
23
- orbCount: z.ZodNumber;
24
- roundsPerHalf: z.ZodNumber;
25
- teamRoles: z.ZodNullable<z.ZodArray<z.ZodString>>;
26
- gameFeatureOverrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
27
- featureName: z.ZodString;
28
- state: z.ZodBoolean;
29
- }, z.core.$strip>>>>;
30
- gameRuleBoolOverrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
31
- ruleName: z.ZodString;
32
- state: z.ZodBoolean;
33
- }, z.core.$strip>>>>;
34
- displayIcon: z.ZodNullable<z.ZodString>;
35
- listViewIconTall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- assetPath: z.ZodString;
37
- }, z.core.$strip>;
38
- export declare const GameModesSchema: z.ZodArray<z.ZodObject<{
39
- uuid: z.ZodString;
40
- displayName: z.ZodString;
41
- description: z.ZodNullable<z.ZodString>;
42
- duration: z.ZodNullable<z.ZodString>;
43
- economyType: z.ZodNullable<z.ZodString>;
44
- allowsMatchTimeouts: z.ZodBoolean;
45
- allowsCustomGameReplays: z.ZodBoolean;
46
- isTeamVoiceAllowed: z.ZodBoolean;
47
- isMinimapHidden: z.ZodBoolean;
48
- orbCount: z.ZodNumber;
49
- roundsPerHalf: z.ZodNumber;
50
- teamRoles: z.ZodNullable<z.ZodArray<z.ZodString>>;
51
- gameFeatureOverrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
52
- featureName: z.ZodString;
53
- state: z.ZodBoolean;
54
- }, z.core.$strip>>>>;
55
- gameRuleBoolOverrides: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
56
- ruleName: z.ZodString;
57
- state: z.ZodBoolean;
58
- }, z.core.$strip>>>>;
59
- displayIcon: z.ZodNullable<z.ZodString>;
60
- listViewIconTall: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
- assetPath: z.ZodString;
62
- }, z.core.$strip>>;
63
- export type GameModeResponse = z.infer<typeof GameModeSchema>;
64
- export type GameModesResponse = z.infer<typeof GameModesSchema>;
2
+ import { GameModeResponse, GameModesResponse } from '../schemas';
65
3
  declare class GameModesEndpoints extends BaseEndpoint {
66
4
  constructor(config?: ValorantApiConfig);
67
5
  getGameModesV1(): Promise<GameModesResponse>;
@@ -1,37 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GameModesEndpoints = exports.GameModesSchema = exports.GameModeSchema = exports.GameRuleBoolOverrideSchema = exports.GameFeatureOverrideSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.GameModesEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- const SharedSchemas_1 = require("../schemas/SharedSchemas");
7
- exports.GameFeatureOverrideSchema = zod_1.z.object({
8
- featureName: zod_1.z.string(),
9
- state: zod_1.z.boolean(),
10
- });
11
- exports.GameRuleBoolOverrideSchema = zod_1.z.object({
12
- ruleName: zod_1.z.string(),
13
- state: zod_1.z.boolean(),
14
- });
15
- exports.GameModeSchema = zod_1.z.object({
16
- uuid: zod_1.z.string().uuid(),
17
- displayName: SharedSchemas_1.LocalizedStringSchema,
18
- description: SharedSchemas_1.LocalizedStringSchema.nullable(),
19
- duration: zod_1.z.string().nullable(),
20
- economyType: zod_1.z.string().nullable(),
21
- allowsMatchTimeouts: zod_1.z.boolean(),
22
- allowsCustomGameReplays: zod_1.z.boolean(),
23
- isTeamVoiceAllowed: zod_1.z.boolean(),
24
- isMinimapHidden: zod_1.z.boolean(),
25
- orbCount: zod_1.z.number(),
26
- roundsPerHalf: zod_1.z.number(),
27
- teamRoles: zod_1.z.array(zod_1.z.string()).nullable(),
28
- gameFeatureOverrides: zod_1.z.array(exports.GameFeatureOverrideSchema).nullable().optional(),
29
- gameRuleBoolOverrides: zod_1.z.array(exports.GameRuleBoolOverrideSchema).nullable().optional(),
30
- displayIcon: zod_1.z.string().nullable(),
31
- listViewIconTall: zod_1.z.string().nullable().optional(),
32
- assetPath: zod_1.z.string(),
33
- });
34
- exports.GameModesSchema = zod_1.z.array(exports.GameModeSchema);
35
5
  class GameModesEndpoints extends BaseEndpoint_1.BaseEndpoint {
36
6
  constructor(config) {
37
7
  super(config);
@@ -1,25 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- declare const LevelBorderSchema: z.ZodObject<{
4
- uuid: z.ZodString;
5
- displayName: z.ZodString;
6
- startingLevel: z.ZodNumber;
7
- levelNumber: z.ZodNumber;
8
- levelNumberAppearance: z.ZodString;
9
- smallPlayerCardAppearance: z.ZodString;
10
- assetPath: z.ZodString;
11
- }, z.core.$strip>;
12
- 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 LevelBorderResponse = z.infer<typeof LevelBorderSchema>;
22
- export type LevelBordersResponse = z.infer<typeof LevelBordersSchema>;
2
+ import { LevelBorderResponse, LevelBordersResponse } from '../schemas';
23
3
  declare class LevelBordersEndpoints extends BaseEndpoint {
24
4
  constructor(config?: ValorantApiConfig);
25
5
  getLevelBordersV1(): Promise<LevelBordersResponse>;
@@ -1,18 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LevelBordersEndpoints = void 0;
4
- const zod_1 = require("zod");
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- const LevelBorderSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
8
- displayName: zod_1.z.string(),
9
- startingLevel: zod_1.z.number().int(),
10
- levelNumber: zod_1.z.number().int(),
11
- levelNumberAppearance: zod_1.z.string(),
12
- smallPlayerCardAppearance: zod_1.z.string(),
13
- assetPath: zod_1.z.string(),
14
- });
15
- const LevelBordersSchema = zod_1.z.array(LevelBorderSchema);
16
5
  class LevelBordersEndpoints extends BaseEndpoint_1.BaseEndpoint {
17
6
  constructor(config) {
18
7
  super(config);
@@ -1,124 +1,5 @@
1
- import { z } from 'zod';
2
1
  import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
3
- export declare const LocationSchema: z.ZodObject<{
4
- x: z.ZodNumber;
5
- y: z.ZodNumber;
6
- z: z.ZodNumber;
7
- }, z.core.$strip>;
8
- export type LocationResponse = z.infer<typeof LocationSchema>;
9
- export declare const Scale3DSchema: z.ZodObject<{
10
- x: z.ZodNumber;
11
- y: z.ZodNumber;
12
- z: z.ZodNumber;
13
- }, z.core.$strip>;
14
- export type Scale3DResponse = z.infer<typeof Scale3DSchema>;
15
- export declare const RotationSchema: z.ZodObject<{
16
- pitch: z.ZodNumber;
17
- yaw: z.ZodNumber;
18
- roll: z.ZodNumber;
19
- }, z.core.$strip>;
20
- export type RotationResponse = z.infer<typeof RotationSchema>;
21
- export declare const CalloutSchema: z.ZodObject<{
22
- regionName: z.ZodString;
23
- superRegion: z.ZodString;
24
- superRegionName: z.ZodString;
25
- location: z.ZodObject<{
26
- x: z.ZodNumber;
27
- y: z.ZodNumber;
28
- z: z.ZodNumber;
29
- }, z.core.$strip>;
30
- scale3D: z.ZodObject<{
31
- x: z.ZodNumber;
32
- y: z.ZodNumber;
33
- z: z.ZodNumber;
34
- }, z.core.$strip>;
35
- rotation: z.ZodObject<{
36
- pitch: z.ZodNumber;
37
- yaw: z.ZodNumber;
38
- roll: z.ZodNumber;
39
- }, z.core.$strip>;
40
- }, z.core.$strip>;
41
- export type CalloutResponse = z.infer<typeof CalloutSchema>;
42
- export declare const MapSchema: z.ZodObject<{
43
- uuid: z.ZodString;
44
- displayName: z.ZodString;
45
- narrativeDescription: z.ZodString;
46
- tacticalDescription: z.ZodString;
47
- coordinates: z.ZodString;
48
- displayIcon: z.ZodString;
49
- listViewIcon: z.ZodString;
50
- listViewIconTall: z.ZodString;
51
- splash: z.ZodString;
52
- stylizedBackgroundImage: z.ZodString;
53
- premierBackgroundImage: z.ZodString;
54
- assetPath: z.ZodString;
55
- mapUrl: z.ZodString;
56
- xMultiplier: z.ZodNumber;
57
- yMultiplier: z.ZodNumber;
58
- xScalarToAdd: z.ZodNumber;
59
- yScalarToAdd: z.ZodNumber;
60
- callouts: z.ZodArray<z.ZodObject<{
61
- regionName: z.ZodString;
62
- superRegion: z.ZodString;
63
- superRegionName: z.ZodString;
64
- location: z.ZodObject<{
65
- x: z.ZodNumber;
66
- y: z.ZodNumber;
67
- z: z.ZodNumber;
68
- }, z.core.$strip>;
69
- scale3D: z.ZodObject<{
70
- x: z.ZodNumber;
71
- y: z.ZodNumber;
72
- z: z.ZodNumber;
73
- }, z.core.$strip>;
74
- rotation: z.ZodObject<{
75
- pitch: z.ZodNumber;
76
- yaw: z.ZodNumber;
77
- roll: z.ZodNumber;
78
- }, z.core.$strip>;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
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 MapResponse = z.infer<typeof MapSchema>;
121
- export type MapsResponse = z.infer<typeof MapsSchema>;
2
+ import { MapResponse, MapsResponse } from '../schemas';
122
3
  declare class MapsEndpoints extends BaseEndpoint {
123
4
  constructor(config?: ValorantApiConfig);
124
5
  getMapsV1(): Promise<MapsResponse>;
@@ -1,53 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MapsEndpoints = exports.MapsSchema = exports.MapSchema = exports.CalloutSchema = exports.RotationSchema = exports.Scale3DSchema = exports.LocationSchema = void 0;
4
- const zod_1 = require("zod");
3
+ exports.MapsEndpoints = void 0;
5
4
  const BaseEndpoint_1 = require("./BaseEndpoint");
6
- const SharedSchemas_1 = require("../schemas/SharedSchemas");
7
- exports.LocationSchema = zod_1.z.object({
8
- x: zod_1.z.number(),
9
- y: zod_1.z.number(),
10
- z: zod_1.z.number(),
11
- });
12
- exports.Scale3DSchema = zod_1.z.object({
13
- x: zod_1.z.number(),
14
- y: zod_1.z.number(),
15
- z: zod_1.z.number(),
16
- });
17
- exports.RotationSchema = zod_1.z.object({
18
- pitch: zod_1.z.number(),
19
- yaw: zod_1.z.number(),
20
- roll: zod_1.z.number(),
21
- });
22
- exports.CalloutSchema = zod_1.z.object({
23
- regionName: SharedSchemas_1.LocalizedStringSchema,
24
- superRegion: zod_1.z.string(),
25
- superRegionName: SharedSchemas_1.LocalizedStringSchema,
26
- location: exports.LocationSchema,
27
- scale3D: exports.Scale3DSchema,
28
- rotation: exports.RotationSchema,
29
- });
30
- exports.MapSchema = zod_1.z.object({
31
- uuid: zod_1.z.string().uuid(),
32
- displayName: SharedSchemas_1.LocalizedStringSchema,
33
- narrativeDescription: SharedSchemas_1.LocalizedStringSchema,
34
- tacticalDescription: SharedSchemas_1.LocalizedStringSchema,
35
- coordinates: SharedSchemas_1.LocalizedStringSchema,
36
- displayIcon: zod_1.z.string(),
37
- listViewIcon: zod_1.z.string(),
38
- listViewIconTall: zod_1.z.string(),
39
- splash: zod_1.z.string(),
40
- stylizedBackgroundImage: zod_1.z.string(),
41
- premierBackgroundImage: zod_1.z.string(),
42
- assetPath: zod_1.z.string(),
43
- mapUrl: zod_1.z.string(),
44
- xMultiplier: zod_1.z.number(),
45
- yMultiplier: zod_1.z.number(),
46
- xScalarToAdd: zod_1.z.number(),
47
- yScalarToAdd: zod_1.z.number(),
48
- callouts: zod_1.z.array(exports.CalloutSchema),
49
- });
50
- exports.MapsSchema = zod_1.z.array(exports.MapSchema);
51
5
  class MapsEndpoints extends BaseEndpoint_1.BaseEndpoint {
52
6
  constructor(config) {
53
7
  super(config);