@valpro-labs/valorant-api 1.1.0 → 1.3.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.
- package/dist/ValorantApi.d.ts +45 -0
- package/dist/ValorantApi.js +48 -0
- package/dist/endpoints/AgentsEndpoints.d.ts +13 -0
- package/dist/endpoints/AgentsEndpoints.js +13 -0
- package/dist/endpoints/BaseEndpoint.d.ts +22 -0
- package/dist/endpoints/BaseEndpoint.js +14 -0
- package/dist/endpoints/BuddiesEndpoints.d.ts +17 -0
- package/dist/endpoints/BuddiesEndpoints.js +17 -0
- package/dist/endpoints/BundlesEndpoints.d.ts +12 -0
- package/dist/endpoints/BundlesEndpoints.js +12 -0
- package/dist/endpoints/CeremoniesEndpoints.d.ts +20 -0
- package/dist/endpoints/CeremoniesEndpoints.js +28 -0
- package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +12 -0
- package/dist/endpoints/CompetitiveTiersEndpoints.js +12 -0
- package/dist/endpoints/ContentTierEndpoints.d.ts +12 -0
- package/dist/endpoints/ContentTierEndpoints.js +12 -0
- package/dist/endpoints/ContractsEndpoints.d.ts +8 -5
- package/dist/endpoints/ContractsEndpoints.js +8 -5
- package/dist/endpoints/CurrenciesEndpoints.d.ts +12 -0
- package/dist/endpoints/CurrenciesEndpoints.js +12 -0
- package/dist/endpoints/EventsEndpoints.d.ts +8 -5
- package/dist/endpoints/EventsEndpoints.js +8 -5
- package/dist/endpoints/FlexEndpoints.d.ts +12 -0
- package/dist/endpoints/FlexEndpoints.js +12 -0
- package/dist/endpoints/GameModesEndpoints.d.ts +24 -1
- package/dist/endpoints/GameModesEndpoints.js +27 -0
- package/dist/endpoints/GearEndpoints.d.ts +20 -0
- package/dist/endpoints/GearEndpoints.js +28 -0
- package/dist/endpoints/LevelBordersEndpoints.d.ts +12 -0
- package/dist/endpoints/LevelBordersEndpoints.js +12 -0
- package/dist/endpoints/MapsEndpoints.d.ts +12 -0
- package/dist/endpoints/MapsEndpoints.js +12 -0
- package/dist/endpoints/MissionsEndpoints.d.ts +12 -0
- package/dist/endpoints/MissionsEndpoints.js +12 -0
- package/dist/endpoints/ObjectivesEndpoints.d.ts +12 -0
- package/dist/endpoints/ObjectivesEndpoints.js +12 -0
- package/dist/endpoints/PlayerCardsEndpoints.d.ts +12 -0
- package/dist/endpoints/PlayerCardsEndpoints.js +12 -0
- package/dist/endpoints/PlayerTitlesEndpoints.d.ts +12 -0
- package/dist/endpoints/PlayerTitlesEndpoints.js +12 -0
- package/dist/endpoints/SeasonsEndpoints.d.ts +20 -6
- package/dist/endpoints/SeasonsEndpoints.js +23 -5
- package/dist/endpoints/SpraysEndpoints.d.ts +19 -1
- package/dist/endpoints/SpraysEndpoints.js +20 -0
- package/dist/endpoints/ThemesEndpoints.d.ts +20 -0
- package/dist/endpoints/ThemesEndpoints.js +28 -0
- package/dist/endpoints/VersionEndpoint.d.ts +7 -0
- package/dist/endpoints/VersionEndpoint.js +7 -0
- package/dist/endpoints/WeaponsEndpoints.d.ts +36 -1
- package/dist/endpoints/WeaponsEndpoints.js +43 -0
- package/dist/endpoints/index.d.ts +3 -0
- package/dist/endpoints/index.js +3 -0
- package/dist/schemas/AgentSchemas.d.ts +14 -0
- package/dist/schemas/AgentSchemas.js +7 -0
- package/dist/schemas/BuddySchemas.d.ts +8 -0
- package/dist/schemas/BuddySchemas.js +4 -0
- package/dist/schemas/BundleSchemas.d.ts +6 -0
- package/dist/schemas/BundleSchemas.js +3 -0
- package/dist/schemas/CeremonySchemas.d.ts +17 -0
- package/dist/schemas/CeremonySchemas.js +12 -0
- package/dist/schemas/CompetitiveTierSchemas.d.ts +6 -0
- package/dist/schemas/CompetitiveTierSchemas.js +3 -0
- package/dist/schemas/ContentTierSchemas.d.ts +4 -0
- package/dist/schemas/ContentTierSchemas.js +2 -0
- package/dist/schemas/ContractSchemas.d.ts +12 -0
- package/dist/schemas/ContractSchemas.js +6 -0
- package/dist/schemas/CurrencySchemas.d.ts +4 -0
- package/dist/schemas/CurrencySchemas.js +2 -0
- package/dist/schemas/EventSchemas.d.ts +4 -0
- package/dist/schemas/EventSchemas.js +2 -0
- package/dist/schemas/FlexSchemas.d.ts +4 -0
- package/dist/schemas/FlexSchemas.js +2 -0
- package/dist/schemas/GameModeEquippableSchemas.d.ts +23 -0
- package/dist/schemas/GameModeEquippableSchemas.js +16 -0
- package/dist/schemas/GameModeSchemas.d.ts +8 -0
- package/dist/schemas/GameModeSchemas.js +4 -0
- package/dist/schemas/GearSchemas.d.ts +69 -0
- package/dist/schemas/GearSchemas.js +30 -0
- package/dist/schemas/LevelBorderSchemas.d.ts +4 -0
- package/dist/schemas/LevelBorderSchemas.js +2 -0
- package/dist/schemas/MapSchemas.d.ts +12 -0
- package/dist/schemas/MapSchemas.js +6 -0
- package/dist/schemas/MissionSchemas.d.ts +6 -0
- package/dist/schemas/MissionSchemas.js +3 -0
- package/dist/schemas/ObjectiveSchemas.d.ts +4 -0
- package/dist/schemas/ObjectiveSchemas.js +2 -0
- package/dist/schemas/PlayerCardSchemas.d.ts +4 -0
- package/dist/schemas/PlayerCardSchemas.js +2 -0
- package/dist/schemas/PlayerTitleSchemas.d.ts +4 -0
- package/dist/schemas/PlayerTitleSchemas.js +2 -0
- package/dist/schemas/SeasonSchemas.d.ts +53 -0
- package/dist/schemas/SeasonSchemas.js +24 -1
- package/dist/schemas/SharedSchemas.d.ts +2 -0
- package/dist/schemas/SharedSchemas.js +1 -0
- package/dist/schemas/SpraySchemas.d.ts +6 -0
- package/dist/schemas/SpraySchemas.js +3 -0
- package/dist/schemas/ThemeSchemas.d.ts +21 -0
- package/dist/schemas/ThemeSchemas.js +14 -0
- package/dist/schemas/VersionSchemas.d.ts +2 -0
- package/dist/schemas/VersionSchemas.js +1 -0
- package/dist/schemas/WeaponSchemas.d.ts +26 -0
- package/dist/schemas/WeaponSchemas.js +13 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemesEndpoints = void 0;
|
|
4
|
+
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API themes endpoints.
|
|
7
|
+
*/
|
|
8
|
+
class ThemesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
9
|
+
constructor(config) {
|
|
10
|
+
super(config);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all themes.
|
|
14
|
+
* @returns An array of {@link ThemeResponse} objects.
|
|
15
|
+
*/
|
|
16
|
+
async getThemesV1() {
|
|
17
|
+
return this.requestValorantApi('v1/themes');
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a theme by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the theme.
|
|
22
|
+
* @returns The {@link ThemeResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
24
|
+
async getThemeByUuidV1(uuid) {
|
|
25
|
+
return this.requestValorantApi(`v1/themes/${uuid}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.ThemesEndpoints = ThemesEndpoints;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { VersionResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API version endpoint.
|
|
5
|
+
*/
|
|
3
6
|
declare class VersionEndpoint extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get the current Valorant build version info.
|
|
10
|
+
* @returns The current {@link VersionResponse} information.
|
|
11
|
+
*/
|
|
5
12
|
getVersionV1(): Promise<VersionResponse>;
|
|
6
13
|
}
|
|
7
14
|
export { VersionEndpoint };
|
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VersionEndpoint = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API version endpoint.
|
|
7
|
+
*/
|
|
5
8
|
class VersionEndpoint extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the current Valorant build version info.
|
|
14
|
+
* @returns The current {@link VersionResponse} information.
|
|
15
|
+
*/
|
|
9
16
|
async getVersionV1() {
|
|
10
17
|
return this.requestValorantApi('v1/version');
|
|
11
18
|
}
|
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
|
-
import { WeaponResponse, WeaponsResponse } from '../schemas';
|
|
2
|
+
import { WeaponResponse, WeaponsResponse, SkinResponse, ChromaResponse, LevelResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API weapons endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class WeaponsEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all weapons.
|
|
10
|
+
* @returns An array of {@link WeaponResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getWeaponsV1(): Promise<WeaponsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a weapon by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the weapon.
|
|
16
|
+
* @returns The {@link WeaponResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getWeaponByUuidV1(uuid: string): Promise<WeaponResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get all weapon skins.
|
|
21
|
+
* @returns An array of {@link SkinResponse} objects.
|
|
22
|
+
*/
|
|
23
|
+
getWeaponSkinsV1(): Promise<SkinResponse[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Get a weapon skin by its UUID.
|
|
26
|
+
* @param uuid - The UUID of the weapon skin.
|
|
27
|
+
* @returns The {@link SkinResponse} matching the given UUID.
|
|
28
|
+
*/
|
|
29
|
+
getWeaponSkinByUuidV1(uuid: string): Promise<SkinResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get a weapon skin chroma by its UUID.
|
|
32
|
+
* @param uuid - The UUID of the weapon skin chroma.
|
|
33
|
+
* @returns The {@link ChromaResponse} matching the given UUID.
|
|
34
|
+
*/
|
|
35
|
+
getWeaponSkinChromaByUuidV1(uuid: string): Promise<ChromaResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get a weapon skin level by its UUID.
|
|
38
|
+
* @param uuid - The UUID of the weapon skin level.
|
|
39
|
+
* @returns The {@link LevelResponse} matching the given UUID.
|
|
40
|
+
*/
|
|
41
|
+
getWeaponSkinLevelByUuidV1(uuid: string): Promise<LevelResponse>;
|
|
7
42
|
}
|
|
8
43
|
export { WeaponsEndpoints };
|
|
@@ -2,15 +2,58 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WeaponsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API weapons endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class WeaponsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all weapons.
|
|
14
|
+
* @returns An array of {@link WeaponResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getWeaponsV1() {
|
|
10
17
|
return this.requestValorantApi('v1/weapons');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a weapon by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the weapon.
|
|
22
|
+
* @returns The {@link WeaponResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getWeaponByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/weapons/${uuid}`);
|
|
14
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all weapon skins.
|
|
29
|
+
* @returns An array of {@link SkinResponse} objects.
|
|
30
|
+
*/
|
|
31
|
+
async getWeaponSkinsV1() {
|
|
32
|
+
return this.requestValorantApi('v1/weapons/skins');
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a weapon skin by its UUID.
|
|
36
|
+
* @param uuid - The UUID of the weapon skin.
|
|
37
|
+
* @returns The {@link SkinResponse} matching the given UUID.
|
|
38
|
+
*/
|
|
39
|
+
async getWeaponSkinByUuidV1(uuid) {
|
|
40
|
+
return this.requestValorantApi(`v1/weapons/skins/${uuid}`);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a weapon skin chroma by its UUID.
|
|
44
|
+
* @param uuid - The UUID of the weapon skin chroma.
|
|
45
|
+
* @returns The {@link ChromaResponse} matching the given UUID.
|
|
46
|
+
*/
|
|
47
|
+
async getWeaponSkinChromaByUuidV1(uuid) {
|
|
48
|
+
return this.requestValorantApi(`v1/weapons/skinchromas/${uuid}`);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get a weapon skin level by its UUID.
|
|
52
|
+
* @param uuid - The UUID of the weapon skin level.
|
|
53
|
+
* @returns The {@link LevelResponse} matching the given UUID.
|
|
54
|
+
*/
|
|
55
|
+
async getWeaponSkinLevelByUuidV1(uuid) {
|
|
56
|
+
return this.requestValorantApi(`v1/weapons/skinlevels/${uuid}`);
|
|
57
|
+
}
|
|
15
58
|
}
|
|
16
59
|
exports.WeaponsEndpoints = WeaponsEndpoints;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AgentsEndpoints';
|
|
2
2
|
export * from './BaseEndpoint';
|
|
3
3
|
export * from './BuddiesEndpoints';
|
|
4
|
+
export * from './CeremoniesEndpoints';
|
|
4
5
|
export * from './BundlesEndpoints';
|
|
5
6
|
export * from './CompetitiveTiersEndpoints';
|
|
6
7
|
export * from './ContentTierEndpoints';
|
|
@@ -8,6 +9,7 @@ export * from './ContractsEndpoints';
|
|
|
8
9
|
export * from './CurrenciesEndpoints';
|
|
9
10
|
export * from './EventsEndpoints';
|
|
10
11
|
export * from './FlexEndpoints';
|
|
12
|
+
export * from './GearEndpoints';
|
|
11
13
|
export * from './GameModesEndpoints';
|
|
12
14
|
export * from './LevelBordersEndpoints';
|
|
13
15
|
export * from './MapsEndpoints';
|
|
@@ -17,5 +19,6 @@ export * from './PlayerCardsEndpoints';
|
|
|
17
19
|
export * from './PlayerTitlesEndpoints';
|
|
18
20
|
export * from './SeasonsEndpoints';
|
|
19
21
|
export * from './SpraysEndpoints';
|
|
22
|
+
export * from './ThemesEndpoints';
|
|
20
23
|
export * from './VersionEndpoint';
|
|
21
24
|
export * from './WeaponsEndpoints';
|
package/dist/endpoints/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AgentsEndpoints"), exports);
|
|
18
18
|
__exportStar(require("./BaseEndpoint"), exports);
|
|
19
19
|
__exportStar(require("./BuddiesEndpoints"), exports);
|
|
20
|
+
__exportStar(require("./CeremoniesEndpoints"), exports);
|
|
20
21
|
__exportStar(require("./BundlesEndpoints"), exports);
|
|
21
22
|
__exportStar(require("./CompetitiveTiersEndpoints"), exports);
|
|
22
23
|
__exportStar(require("./ContentTierEndpoints"), exports);
|
|
@@ -24,6 +25,7 @@ __exportStar(require("./ContractsEndpoints"), exports);
|
|
|
24
25
|
__exportStar(require("./CurrenciesEndpoints"), exports);
|
|
25
26
|
__exportStar(require("./EventsEndpoints"), exports);
|
|
26
27
|
__exportStar(require("./FlexEndpoints"), exports);
|
|
28
|
+
__exportStar(require("./GearEndpoints"), exports);
|
|
27
29
|
__exportStar(require("./GameModesEndpoints"), exports);
|
|
28
30
|
__exportStar(require("./LevelBordersEndpoints"), exports);
|
|
29
31
|
__exportStar(require("./MapsEndpoints"), exports);
|
|
@@ -33,5 +35,6 @@ __exportStar(require("./PlayerCardsEndpoints"), exports);
|
|
|
33
35
|
__exportStar(require("./PlayerTitlesEndpoints"), exports);
|
|
34
36
|
__exportStar(require("./SeasonsEndpoints"), exports);
|
|
35
37
|
__exportStar(require("./SpraysEndpoints"), exports);
|
|
38
|
+
__exportStar(require("./ThemesEndpoints"), exports);
|
|
36
39
|
__exportStar(require("./VersionEndpoint"), exports);
|
|
37
40
|
__exportStar(require("./WeaponsEndpoints"), exports);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single agent's voice line media data. */
|
|
2
3
|
export declare const VoiceLineMediaSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodNumber;
|
|
4
5
|
wwise: z.ZodString;
|
|
5
6
|
wave: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
8
|
+
/** A single agent's voice line media data. */
|
|
7
9
|
export type VoiceLineMediaResponse = z.infer<typeof VoiceLineMediaSchema>;
|
|
10
|
+
/** Schema for a single agent's voice line, containing {@link VoiceLineMediaResponse | media data}. */
|
|
8
11
|
export declare const VoiceLineSchema: z.ZodObject<{
|
|
9
12
|
minDuration: z.ZodNumber;
|
|
10
13
|
maxDuration: z.ZodNumber;
|
|
@@ -14,7 +17,9 @@ export declare const VoiceLineSchema: z.ZodObject<{
|
|
|
14
17
|
wave: z.ZodString;
|
|
15
18
|
}, z.core.$strip>>;
|
|
16
19
|
}, z.core.$strip>;
|
|
20
|
+
/** A single agent's voice line. */
|
|
17
21
|
export type VoiceLineResponse = z.infer<typeof VoiceLineSchema>;
|
|
22
|
+
/** Schema for a single agent ability. */
|
|
18
23
|
export declare const AbilitySchema: z.ZodObject<{
|
|
19
24
|
slot: z.ZodString;
|
|
20
25
|
displayName: z.ZodString;
|
|
@@ -30,7 +35,9 @@ export declare const AbilitySchema: z.ZodObject<{
|
|
|
30
35
|
}, z.core.$strip>>;
|
|
31
36
|
}, z.core.$strip>;
|
|
32
37
|
}, z.core.$strip>;
|
|
38
|
+
/** A single agent ability. */
|
|
33
39
|
export type AbilityResponse = z.infer<typeof AbilitySchema>;
|
|
40
|
+
/** Schema for a single agent role. */
|
|
34
41
|
export declare const RoleSchema: z.ZodObject<{
|
|
35
42
|
uuid: z.ZodString;
|
|
36
43
|
displayName: z.ZodString;
|
|
@@ -38,7 +45,9 @@ export declare const RoleSchema: z.ZodObject<{
|
|
|
38
45
|
displayIcon: z.ZodString;
|
|
39
46
|
assetPath: z.ZodString;
|
|
40
47
|
}, z.core.$strip>;
|
|
48
|
+
/** A single agent role. */
|
|
41
49
|
export type RoleResponse = z.infer<typeof RoleSchema>;
|
|
50
|
+
/** Schema for an agent's recruitment data. */
|
|
42
51
|
export declare const RecruitmentDataSchema: z.ZodObject<{
|
|
43
52
|
counterId: z.ZodString;
|
|
44
53
|
milestoneId: z.ZodString;
|
|
@@ -48,7 +57,9 @@ export declare const RecruitmentDataSchema: z.ZodObject<{
|
|
|
48
57
|
startDate: z.ZodString;
|
|
49
58
|
endDate: z.ZodString;
|
|
50
59
|
}, z.core.$strip>;
|
|
60
|
+
/** An agent's recruitment data. */
|
|
51
61
|
export type RecruitmentDataResponse = z.infer<typeof RecruitmentDataSchema>;
|
|
62
|
+
/** Schema for a single agent, including its {@link RoleResponse | role}, {@link AbilityResponse | abilities}, and {@link RecruitmentDataResponse | recruitment data}. */
|
|
52
63
|
export declare const AgentSchema: z.ZodObject<{
|
|
53
64
|
uuid: z.ZodString;
|
|
54
65
|
displayName: z.ZodString;
|
|
@@ -103,7 +114,9 @@ export declare const AgentSchema: z.ZodObject<{
|
|
|
103
114
|
}, z.core.$strip>;
|
|
104
115
|
}, z.core.$strip>>;
|
|
105
116
|
}, z.core.$strip>;
|
|
117
|
+
/** A single agent's data. */
|
|
106
118
|
export type AgentResponse = z.infer<typeof AgentSchema>;
|
|
119
|
+
/** Schema for a list of agents. */
|
|
107
120
|
export declare const AgentsSchema: z.ZodArray<z.ZodObject<{
|
|
108
121
|
uuid: z.ZodString;
|
|
109
122
|
displayName: z.ZodString;
|
|
@@ -158,4 +171,5 @@ export declare const AgentsSchema: z.ZodArray<z.ZodObject<{
|
|
|
158
171
|
}, z.core.$strip>;
|
|
159
172
|
}, z.core.$strip>>;
|
|
160
173
|
}, z.core.$strip>>;
|
|
174
|
+
/** A list of agents. */
|
|
161
175
|
export type AgentsResponse = z.infer<typeof AgentsSchema>;
|
|
@@ -3,16 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgentsSchema = exports.AgentSchema = exports.RecruitmentDataSchema = exports.RoleSchema = exports.AbilitySchema = exports.VoiceLineSchema = exports.VoiceLineMediaSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const SharedSchemas_1 = require("./SharedSchemas");
|
|
6
|
+
/** Schema for a single agent's voice line media data. */
|
|
6
7
|
exports.VoiceLineMediaSchema = zod_1.z.object({
|
|
7
8
|
id: zod_1.z.number().int(),
|
|
8
9
|
wwise: zod_1.z.string(),
|
|
9
10
|
wave: zod_1.z.string(),
|
|
10
11
|
});
|
|
12
|
+
/** Schema for a single agent's voice line, containing {@link VoiceLineMediaResponse | media data}. */
|
|
11
13
|
exports.VoiceLineSchema = zod_1.z.object({
|
|
12
14
|
minDuration: zod_1.z.number(),
|
|
13
15
|
maxDuration: zod_1.z.number(),
|
|
14
16
|
mediaList: zod_1.z.array(exports.VoiceLineMediaSchema),
|
|
15
17
|
});
|
|
18
|
+
/** Schema for a single agent ability. */
|
|
16
19
|
exports.AbilitySchema = zod_1.z.object({
|
|
17
20
|
slot: zod_1.z.string(),
|
|
18
21
|
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
@@ -20,6 +23,7 @@ exports.AbilitySchema = zod_1.z.object({
|
|
|
20
23
|
displayIcon: zod_1.z.string(),
|
|
21
24
|
voiceLine: exports.VoiceLineSchema,
|
|
22
25
|
});
|
|
26
|
+
/** Schema for a single agent role. */
|
|
23
27
|
exports.RoleSchema = zod_1.z.object({
|
|
24
28
|
uuid: zod_1.z.string().uuid(),
|
|
25
29
|
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
@@ -27,6 +31,7 @@ exports.RoleSchema = zod_1.z.object({
|
|
|
27
31
|
displayIcon: zod_1.z.string(),
|
|
28
32
|
assetPath: zod_1.z.string(),
|
|
29
33
|
});
|
|
34
|
+
/** Schema for an agent's recruitment data. */
|
|
30
35
|
exports.RecruitmentDataSchema = zod_1.z.object({
|
|
31
36
|
counterId: zod_1.z.string().uuid(),
|
|
32
37
|
milestoneId: zod_1.z.string().uuid(),
|
|
@@ -36,6 +41,7 @@ exports.RecruitmentDataSchema = zod_1.z.object({
|
|
|
36
41
|
startDate: zod_1.z.string().datetime(),
|
|
37
42
|
endDate: zod_1.z.string().datetime(),
|
|
38
43
|
});
|
|
44
|
+
/** Schema for a single agent, including its {@link RoleResponse | role}, {@link AbilityResponse | abilities}, and {@link RecruitmentDataResponse | recruitment data}. */
|
|
39
45
|
exports.AgentSchema = zod_1.z.object({
|
|
40
46
|
uuid: zod_1.z.string().uuid(),
|
|
41
47
|
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
@@ -62,4 +68,5 @@ exports.AgentSchema = zod_1.z.object({
|
|
|
62
68
|
recruitmentData: exports.RecruitmentDataSchema,
|
|
63
69
|
abilities: zod_1.z.array(exports.AbilitySchema),
|
|
64
70
|
});
|
|
71
|
+
/** Schema for a list of agents. */
|
|
65
72
|
exports.AgentsSchema = zod_1.z.array(exports.AgentSchema);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single buddy level. */
|
|
2
3
|
export declare const BuddyLevelSchema: z.ZodObject<{
|
|
3
4
|
uuid: z.ZodString;
|
|
4
5
|
displayName: z.ZodString;
|
|
5
6
|
displayIcon: z.ZodString;
|
|
6
7
|
assetPath: z.ZodString;
|
|
7
8
|
}, z.core.$strip>;
|
|
9
|
+
/** A single buddy level. */
|
|
8
10
|
export type BuddyLevelResponse = z.infer<typeof BuddyLevelSchema>;
|
|
11
|
+
/** Schema for a single buddy (gun charm), including its {@link BuddyLevelResponse | levels}. */
|
|
9
12
|
export declare const BuddySchema: z.ZodObject<{
|
|
10
13
|
uuid: z.ZodString;
|
|
11
14
|
displayName: z.ZodString;
|
|
@@ -20,7 +23,9 @@ export declare const BuddySchema: z.ZodObject<{
|
|
|
20
23
|
assetPath: z.ZodString;
|
|
21
24
|
}, z.core.$strip>>;
|
|
22
25
|
}, z.core.$strip>;
|
|
26
|
+
/** A single buddy (gun charm). */
|
|
23
27
|
export type BuddyResponse = z.infer<typeof BuddySchema>;
|
|
28
|
+
/** Schema for a list of buddies. */
|
|
24
29
|
export declare const BuddiesSchema: z.ZodArray<z.ZodObject<{
|
|
25
30
|
uuid: z.ZodString;
|
|
26
31
|
displayName: z.ZodString;
|
|
@@ -35,11 +40,14 @@ export declare const BuddiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
35
40
|
assetPath: z.ZodString;
|
|
36
41
|
}, z.core.$strip>>;
|
|
37
42
|
}, z.core.$strip>>;
|
|
43
|
+
/** A list of buddies. */
|
|
38
44
|
export type BuddiesResponse = z.infer<typeof BuddiesSchema>;
|
|
45
|
+
/** Schema for a list of buddy levels. */
|
|
39
46
|
export declare const BuddyLevelsSchema: z.ZodArray<z.ZodObject<{
|
|
40
47
|
uuid: z.ZodString;
|
|
41
48
|
displayName: z.ZodString;
|
|
42
49
|
displayIcon: z.ZodString;
|
|
43
50
|
assetPath: z.ZodString;
|
|
44
51
|
}, z.core.$strip>>;
|
|
52
|
+
/** A list of buddy levels. */
|
|
45
53
|
export type BuddyLevelsResponse = z.infer<typeof BuddyLevelsSchema>;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BuddyLevelsSchema = exports.BuddiesSchema = exports.BuddySchema = exports.BuddyLevelSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single buddy level. */
|
|
5
6
|
exports.BuddyLevelSchema = zod_1.z.object({
|
|
6
7
|
uuid: zod_1.z.string().uuid(),
|
|
7
8
|
displayName: zod_1.z.string(),
|
|
8
9
|
displayIcon: zod_1.z.string(),
|
|
9
10
|
assetPath: zod_1.z.string(),
|
|
10
11
|
});
|
|
12
|
+
/** Schema for a single buddy (gun charm), including its {@link BuddyLevelResponse | levels}. */
|
|
11
13
|
exports.BuddySchema = zod_1.z.object({
|
|
12
14
|
uuid: zod_1.z.string().uuid(),
|
|
13
15
|
displayName: zod_1.z.string(),
|
|
@@ -17,5 +19,7 @@ exports.BuddySchema = zod_1.z.object({
|
|
|
17
19
|
assetPath: zod_1.z.string(),
|
|
18
20
|
levels: zod_1.z.array(exports.BuddyLevelSchema),
|
|
19
21
|
});
|
|
22
|
+
/** Schema for a list of buddies. */
|
|
20
23
|
exports.BuddiesSchema = zod_1.z.array(exports.BuddySchema);
|
|
24
|
+
/** Schema for a list of buddy levels. */
|
|
21
25
|
exports.BuddyLevelsSchema = zod_1.z.array(exports.BuddyLevelSchema);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single store bundle. */
|
|
2
3
|
export declare const BundleSchema: z.ZodObject<{
|
|
3
4
|
uuid: z.ZodString;
|
|
4
5
|
displayName: z.ZodString;
|
|
@@ -9,10 +10,13 @@ export declare const BundleSchema: z.ZodObject<{
|
|
|
9
10
|
useBackgroundGradient: z.ZodBoolean;
|
|
10
11
|
displayIcon: z.ZodString;
|
|
11
12
|
displayIcon2: z.ZodString;
|
|
13
|
+
displayIcon3: z.ZodString;
|
|
12
14
|
verticalPromoImage: z.ZodString;
|
|
13
15
|
assetPath: z.ZodString;
|
|
14
16
|
}, z.core.$strip>;
|
|
17
|
+
/** A single store bundle. */
|
|
15
18
|
export type BundleResponse = z.infer<typeof BundleSchema>;
|
|
19
|
+
/** Schema for a list of store bundles. */
|
|
16
20
|
export declare const BundlesSchema: z.ZodArray<z.ZodObject<{
|
|
17
21
|
uuid: z.ZodString;
|
|
18
22
|
displayName: z.ZodString;
|
|
@@ -23,7 +27,9 @@ export declare const BundlesSchema: z.ZodArray<z.ZodObject<{
|
|
|
23
27
|
useBackgroundGradient: z.ZodBoolean;
|
|
24
28
|
displayIcon: z.ZodString;
|
|
25
29
|
displayIcon2: z.ZodString;
|
|
30
|
+
displayIcon3: z.ZodString;
|
|
26
31
|
verticalPromoImage: z.ZodString;
|
|
27
32
|
assetPath: z.ZodString;
|
|
28
33
|
}, z.core.$strip>>;
|
|
34
|
+
/** A list of store bundles. */
|
|
29
35
|
export type BundlesResponse = z.infer<typeof BundlesSchema>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BundlesSchema = exports.BundleSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single store bundle. */
|
|
5
6
|
exports.BundleSchema = zod_1.z.object({
|
|
6
7
|
uuid: zod_1.z.string().uuid(),
|
|
7
8
|
displayName: zod_1.z.string(),
|
|
@@ -12,7 +13,9 @@ exports.BundleSchema = zod_1.z.object({
|
|
|
12
13
|
useBackgroundGradient: zod_1.z.boolean(),
|
|
13
14
|
displayIcon: zod_1.z.string(),
|
|
14
15
|
displayIcon2: zod_1.z.string(),
|
|
16
|
+
displayIcon3: zod_1.z.string(),
|
|
15
17
|
verticalPromoImage: zod_1.z.string(),
|
|
16
18
|
assetPath: zod_1.z.string(),
|
|
17
19
|
});
|
|
20
|
+
/** Schema for a list of store bundles. */
|
|
18
21
|
exports.BundlesSchema = zod_1.z.array(exports.BundleSchema);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single ceremony. */
|
|
3
|
+
export declare const CeremonySchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodString;
|
|
5
|
+
displayName: z.ZodString;
|
|
6
|
+
assetPath: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
/** A single ceremony. */
|
|
9
|
+
export type CeremonyResponse = z.infer<typeof CeremonySchema>;
|
|
10
|
+
/** Schema for a list of ceremonies. */
|
|
11
|
+
export declare const CeremoniesSchema: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodString;
|
|
13
|
+
displayName: z.ZodString;
|
|
14
|
+
assetPath: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
/** A list of ceremonies. */
|
|
17
|
+
export type CeremoniesResponse = z.infer<typeof CeremoniesSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CeremoniesSchema = exports.CeremonySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single ceremony. */
|
|
6
|
+
exports.CeremonySchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
|
8
|
+
displayName: zod_1.z.string(),
|
|
9
|
+
assetPath: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
/** Schema for a list of ceremonies. */
|
|
12
|
+
exports.CeremoniesSchema = zod_1.z.array(exports.CeremonySchema);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single competitive tier (rank). */
|
|
2
3
|
export declare const TierSchema: z.ZodObject<{
|
|
3
4
|
tier: z.ZodNumber;
|
|
4
5
|
tierName: z.ZodString;
|
|
@@ -11,7 +12,9 @@ export declare const TierSchema: z.ZodObject<{
|
|
|
11
12
|
rankTriangleDownIcon: z.ZodNullable<z.ZodString>;
|
|
12
13
|
rankTriangleUpIcon: z.ZodNullable<z.ZodString>;
|
|
13
14
|
}, z.core.$strip>;
|
|
15
|
+
/** A single competitive tier (rank). */
|
|
14
16
|
export type TierResponse = z.infer<typeof TierSchema>;
|
|
17
|
+
/** Schema for a single competitive tier set, including its {@link TierResponse | tiers}. */
|
|
15
18
|
export declare const CompetitiveTierSetSchema: z.ZodObject<{
|
|
16
19
|
uuid: z.ZodString;
|
|
17
20
|
assetObjectName: z.ZodString;
|
|
@@ -29,7 +32,9 @@ export declare const CompetitiveTierSetSchema: z.ZodObject<{
|
|
|
29
32
|
}, z.core.$strip>>;
|
|
30
33
|
assetPath: z.ZodString;
|
|
31
34
|
}, z.core.$strip>;
|
|
35
|
+
/** A single competitive tier set. */
|
|
32
36
|
export type CompetitiveTierSetResponse = z.infer<typeof CompetitiveTierSetSchema>;
|
|
37
|
+
/** Schema for a list of competitive tier sets. */
|
|
33
38
|
export declare const CompetitiveTiersSchema: z.ZodArray<z.ZodObject<{
|
|
34
39
|
uuid: z.ZodString;
|
|
35
40
|
assetObjectName: z.ZodString;
|
|
@@ -47,4 +52,5 @@ export declare const CompetitiveTiersSchema: z.ZodArray<z.ZodObject<{
|
|
|
47
52
|
}, z.core.$strip>>;
|
|
48
53
|
assetPath: z.ZodString;
|
|
49
54
|
}, z.core.$strip>>;
|
|
55
|
+
/** A list of competitive tier sets. */
|
|
50
56
|
export type CompetitiveTiersResponse = z.infer<typeof CompetitiveTiersSchema>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompetitiveTiersSchema = exports.CompetitiveTierSetSchema = exports.TierSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single competitive tier (rank). */
|
|
5
6
|
exports.TierSchema = zod_1.z.object({
|
|
6
7
|
tier: zod_1.z.number().int(),
|
|
7
8
|
tierName: zod_1.z.string(),
|
|
@@ -14,10 +15,12 @@ exports.TierSchema = zod_1.z.object({
|
|
|
14
15
|
rankTriangleDownIcon: zod_1.z.string().nullable(),
|
|
15
16
|
rankTriangleUpIcon: zod_1.z.string().nullable(),
|
|
16
17
|
});
|
|
18
|
+
/** Schema for a single competitive tier set, including its {@link TierResponse | tiers}. */
|
|
17
19
|
exports.CompetitiveTierSetSchema = zod_1.z.object({
|
|
18
20
|
uuid: zod_1.z.string().uuid(),
|
|
19
21
|
assetObjectName: zod_1.z.string(),
|
|
20
22
|
tiers: zod_1.z.array(exports.TierSchema),
|
|
21
23
|
assetPath: zod_1.z.string(),
|
|
22
24
|
});
|
|
25
|
+
/** Schema for a list of competitive tier sets. */
|
|
23
26
|
exports.CompetitiveTiersSchema = zod_1.z.array(exports.CompetitiveTierSetSchema);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single content tier (rarity level). */
|
|
2
3
|
export declare const ContentTierSchema: z.ZodObject<{
|
|
3
4
|
uuid: z.ZodString;
|
|
4
5
|
displayName: z.ZodString;
|
|
@@ -10,7 +11,9 @@ export declare const ContentTierSchema: z.ZodObject<{
|
|
|
10
11
|
displayIcon: z.ZodString;
|
|
11
12
|
assetPath: z.ZodString;
|
|
12
13
|
}, z.core.$strip>;
|
|
14
|
+
/** A single content tier (rarity level). */
|
|
13
15
|
export type ContentTierResponse = z.infer<typeof ContentTierSchema>;
|
|
16
|
+
/** Schema for a list of content tiers. */
|
|
14
17
|
export declare const ContentTiersSchema: z.ZodArray<z.ZodObject<{
|
|
15
18
|
uuid: z.ZodString;
|
|
16
19
|
displayName: z.ZodString;
|
|
@@ -22,4 +25,5 @@ export declare const ContentTiersSchema: z.ZodArray<z.ZodObject<{
|
|
|
22
25
|
displayIcon: z.ZodString;
|
|
23
26
|
assetPath: z.ZodString;
|
|
24
27
|
}, z.core.$strip>>;
|
|
28
|
+
/** A list of content tiers. */
|
|
25
29
|
export type ContentTiersResponse = z.infer<typeof ContentTiersSchema>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContentTiersSchema = exports.ContentTierSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single content tier (rarity level). */
|
|
5
6
|
exports.ContentTierSchema = zod_1.z.object({
|
|
6
7
|
uuid: zod_1.z.string().uuid(),
|
|
7
8
|
displayName: zod_1.z.string(),
|
|
@@ -13,4 +14,5 @@ exports.ContentTierSchema = zod_1.z.object({
|
|
|
13
14
|
displayIcon: zod_1.z.string().url(),
|
|
14
15
|
assetPath: zod_1.z.string(),
|
|
15
16
|
});
|
|
17
|
+
/** Schema for a list of content tiers. */
|
|
16
18
|
exports.ContentTiersSchema = zod_1.z.array(exports.ContentTierSchema);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/** Schema for a single contract reward. */
|
|
2
3
|
export declare const RewardSchema: z.ZodObject<{
|
|
3
4
|
type: z.ZodString;
|
|
4
5
|
uuid: z.ZodString;
|
|
5
6
|
amount: z.ZodNumber;
|
|
6
7
|
isHighlighted: z.ZodBoolean;
|
|
7
8
|
}, z.core.$strip>;
|
|
9
|
+
/** A single contract reward. */
|
|
8
10
|
export type RewardResponse = z.infer<typeof RewardSchema>;
|
|
11
|
+
/** Schema for a single contract level, containing a {@link RewardResponse | reward}. */
|
|
9
12
|
export declare const ContractLevelSchema: z.ZodObject<{
|
|
10
13
|
reward: z.ZodObject<{
|
|
11
14
|
type: z.ZodString;
|
|
@@ -19,7 +22,9 @@ export declare const ContractLevelSchema: z.ZodObject<{
|
|
|
19
22
|
doughCost: z.ZodNumber;
|
|
20
23
|
isPurchasableWithDough: z.ZodBoolean;
|
|
21
24
|
}, z.core.$strip>;
|
|
25
|
+
/** A single contract level. */
|
|
22
26
|
export type ContractLevelResponse = z.infer<typeof ContractLevelSchema>;
|
|
27
|
+
/** Schema for a single contract chapter, containing {@link ContractLevelResponse | levels} and {@link RewardResponse | free rewards}. */
|
|
23
28
|
export declare const ChapterSchema: z.ZodObject<{
|
|
24
29
|
isEpilogue: z.ZodBoolean;
|
|
25
30
|
levels: z.ZodArray<z.ZodObject<{
|
|
@@ -42,7 +47,9 @@ export declare const ChapterSchema: z.ZodObject<{
|
|
|
42
47
|
isHighlighted: z.ZodBoolean;
|
|
43
48
|
}, z.core.$strip>>>;
|
|
44
49
|
}, z.core.$strip>;
|
|
50
|
+
/** A single contract chapter. */
|
|
45
51
|
export type ChapterResponse = z.infer<typeof ChapterSchema>;
|
|
52
|
+
/** Schema for a contract's content data, containing {@link ChapterResponse | chapters}. */
|
|
46
53
|
export declare const ContractContentSchema: z.ZodObject<{
|
|
47
54
|
relationType: z.ZodNullable<z.ZodString>;
|
|
48
55
|
relationUuid: z.ZodNullable<z.ZodString>;
|
|
@@ -71,7 +78,9 @@ export declare const ContractContentSchema: z.ZodObject<{
|
|
|
71
78
|
premiumRewardScheduleUuid: z.ZodNullable<z.ZodString>;
|
|
72
79
|
premiumVPCost: z.ZodNumber;
|
|
73
80
|
}, z.core.$strip>;
|
|
81
|
+
/** A contract's content data. */
|
|
74
82
|
export type ContractContentResponse = z.infer<typeof ContractContentSchema>;
|
|
83
|
+
/** Schema for a single contract, including its {@link ContractContentResponse | content}. */
|
|
75
84
|
export declare const ContractSchema: z.ZodObject<{
|
|
76
85
|
uuid: z.ZodString;
|
|
77
86
|
displayName: z.ZodString;
|
|
@@ -110,7 +119,9 @@ export declare const ContractSchema: z.ZodObject<{
|
|
|
110
119
|
}, z.core.$strip>;
|
|
111
120
|
assetPath: z.ZodString;
|
|
112
121
|
}, z.core.$strip>;
|
|
122
|
+
/** A single contract. */
|
|
113
123
|
export type ContractResponse = z.infer<typeof ContractSchema>;
|
|
124
|
+
/** Schema for a list of contracts. */
|
|
114
125
|
export declare const ContractsSchema: z.ZodArray<z.ZodObject<{
|
|
115
126
|
uuid: z.ZodString;
|
|
116
127
|
displayName: z.ZodString;
|
|
@@ -149,4 +160,5 @@ export declare const ContractsSchema: z.ZodArray<z.ZodObject<{
|
|
|
149
160
|
}, z.core.$strip>;
|
|
150
161
|
assetPath: z.ZodString;
|
|
151
162
|
}, z.core.$strip>>;
|
|
163
|
+
/** A list of contracts. */
|
|
152
164
|
export type ContractsResponse = z.infer<typeof ContractsSchema>;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContractsSchema = exports.ContractSchema = exports.ContractContentSchema = exports.ChapterSchema = exports.ContractLevelSchema = exports.RewardSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/** Schema for a single contract reward. */
|
|
5
6
|
exports.RewardSchema = zod_1.z.object({
|
|
6
7
|
type: zod_1.z.string(),
|
|
7
8
|
uuid: zod_1.z.string().uuid(),
|
|
8
9
|
amount: zod_1.z.number().int(),
|
|
9
10
|
isHighlighted: zod_1.z.boolean(),
|
|
10
11
|
});
|
|
12
|
+
/** Schema for a single contract level, containing a {@link RewardResponse | reward}. */
|
|
11
13
|
exports.ContractLevelSchema = zod_1.z.object({
|
|
12
14
|
reward: exports.RewardSchema,
|
|
13
15
|
xp: zod_1.z.number().int(),
|
|
@@ -16,11 +18,13 @@ exports.ContractLevelSchema = zod_1.z.object({
|
|
|
16
18
|
doughCost: zod_1.z.number().int(),
|
|
17
19
|
isPurchasableWithDough: zod_1.z.boolean(),
|
|
18
20
|
});
|
|
21
|
+
/** Schema for a single contract chapter, containing {@link ContractLevelResponse | levels} and {@link RewardResponse | free rewards}. */
|
|
19
22
|
exports.ChapterSchema = zod_1.z.object({
|
|
20
23
|
isEpilogue: zod_1.z.boolean(),
|
|
21
24
|
levels: zod_1.z.array(exports.ContractLevelSchema),
|
|
22
25
|
freeRewards: zod_1.z.array(exports.RewardSchema).nullable(),
|
|
23
26
|
});
|
|
27
|
+
/** Schema for a contract's content data, containing {@link ChapterResponse | chapters}. */
|
|
24
28
|
exports.ContractContentSchema = zod_1.z.object({
|
|
25
29
|
relationType: zod_1.z.string().nullable(),
|
|
26
30
|
relationUuid: zod_1.z.string().uuid().nullable(),
|
|
@@ -28,6 +32,7 @@ exports.ContractContentSchema = zod_1.z.object({
|
|
|
28
32
|
premiumRewardScheduleUuid: zod_1.z.string().uuid().nullable(),
|
|
29
33
|
premiumVPCost: zod_1.z.number().int(),
|
|
30
34
|
});
|
|
35
|
+
/** Schema for a single contract, including its {@link ContractContentResponse | content}. */
|
|
31
36
|
exports.ContractSchema = zod_1.z.object({
|
|
32
37
|
uuid: zod_1.z.string().uuid(),
|
|
33
38
|
displayName: zod_1.z.string(),
|
|
@@ -39,4 +44,5 @@ exports.ContractSchema = zod_1.z.object({
|
|
|
39
44
|
content: exports.ContractContentSchema,
|
|
40
45
|
assetPath: zod_1.z.string(),
|
|
41
46
|
});
|
|
47
|
+
/** Schema for a list of contracts. */
|
|
42
48
|
exports.ContractsSchema = zod_1.z.array(exports.ContractSchema);
|