@steamsets/client-ts 0.5.3 → 0.5.5
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/README.md +9 -3
- package/docs/sdks/account/README.md +83 -10
- package/docs/sdks/data/README.md +79 -0
- package/docs/sdks/public/README.md +79 -0
- package/docs/sdks/settings/README.md +4 -10
- package/funcs/accountAccountV1GetDataPoints.d.ts +13 -0
- package/funcs/accountAccountV1GetDataPoints.d.ts.map +1 -0
- package/funcs/accountAccountV1GetDataPoints.js +105 -0
- package/funcs/accountAccountV1GetDataPoints.js.map +1 -0
- package/funcs/dataAccountV1GetDataPoints.d.ts +13 -0
- package/funcs/dataAccountV1GetDataPoints.d.ts.map +1 -0
- package/funcs/dataAccountV1GetDataPoints.js +105 -0
- package/funcs/dataAccountV1GetDataPoints.js.map +1 -0
- package/funcs/publicAccountV1GetDataPoints.d.ts +13 -0
- package/funcs/publicAccountV1GetDataPoints.d.ts.map +1 -0
- package/funcs/publicAccountV1GetDataPoints.js +105 -0
- package/funcs/publicAccountV1GetDataPoints.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/accountbadgemostxpdatapoint.d.ts +83 -0
- package/models/components/accountbadgemostxpdatapoint.d.ts.map +1 -0
- package/models/components/accountbadgemostxpdatapoint.js +75 -0
- package/models/components/accountbadgemostxpdatapoint.js.map +1 -0
- package/models/components/accountbadgescarcitydatapoint.d.ts +68 -0
- package/models/components/accountbadgescarcitydatapoint.d.ts.map +1 -0
- package/models/components/accountbadgescarcitydatapoint.js +66 -0
- package/models/components/accountbadgescarcitydatapoint.js.map +1 -0
- package/models/components/accountplaytimedatapoint.d.ts +43 -0
- package/models/components/accountplaytimedatapoint.d.ts.map +1 -0
- package/models/components/{item.js → accountplaytimedatapoint.js} +19 -15
- package/models/components/accountplaytimedatapoint.js.map +1 -0
- package/models/components/image.d.ts +0 -10
- package/models/components/image.d.ts.map +1 -1
- package/models/components/image.js +0 -4
- package/models/components/image.js.map +1 -1
- package/models/components/index.d.ts +4 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -1
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountdatapointsresponsebody.d.ts +47 -0
- package/models/components/v1accountdatapointsresponsebody.d.ts.map +1 -0
- package/models/components/v1accountdatapointsresponsebody.js +74 -0
- package/models/components/v1accountdatapointsresponsebody.js.map +1 -0
- package/models/components/v1deleteimagesrequestbody.d.ts +3 -4
- package/models/components/v1deleteimagesrequestbody.d.ts.map +1 -1
- package/models/components/v1deleteimagesrequestbody.js +2 -3
- package/models/components/v1deleteimagesrequestbody.js.map +1 -1
- package/models/operations/accountv1getdatapoints.d.ts +58 -0
- package/models/operations/accountv1getdatapoints.d.ts.map +1 -0
- package/models/operations/accountv1getdatapoints.js +107 -0
- package/models/operations/accountv1getdatapoints.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +4 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +7 -0
- package/sdk/data.js.map +1 -1
- package/sdk/public.d.ts +4 -0
- package/sdk/public.d.ts.map +1 -1
- package/sdk/public.js +7 -0
- package/sdk/public.js.map +1 -1
- package/src/funcs/accountAccountV1GetDataPoints.ts +139 -0
- package/src/funcs/dataAccountV1GetDataPoints.ts +139 -0
- package/src/funcs/publicAccountV1GetDataPoints.ts +139 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountbadgemostxpdatapoint.ts +128 -0
- package/src/models/components/accountbadgescarcitydatapoint.ts +104 -0
- package/src/models/components/accountplaytimedatapoint.ts +69 -0
- package/src/models/components/image.ts +0 -14
- package/src/models/components/index.ts +4 -1
- package/src/models/components/v1accountdatapointsresponsebody.ts +95 -0
- package/src/models/components/v1deleteimagesrequestbody.ts +5 -6
- package/src/models/operations/accountv1getdatapoints.ts +136 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +11 -0
- package/src/sdk/data.ts +11 -0
- package/src/sdk/public.ts +11 -0
- package/models/components/item.d.ts +0 -33
- package/models/components/item.d.ts.map +0 -1
- package/models/components/item.js.map +0 -1
- package/src/models/components/item.ts +0 -47
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AccountBadgeMostXpDataPoint = {
|
|
8
|
+
/**
|
|
9
|
+
* The app id
|
|
10
|
+
*/
|
|
11
|
+
appId: number;
|
|
12
|
+
/**
|
|
13
|
+
* The badge completed at
|
|
14
|
+
*/
|
|
15
|
+
badgeCompletedAt: Date;
|
|
16
|
+
/**
|
|
17
|
+
* The badge id
|
|
18
|
+
*/
|
|
19
|
+
badgeId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The badge image
|
|
22
|
+
*/
|
|
23
|
+
badgeImage: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the badge is foil
|
|
26
|
+
*/
|
|
27
|
+
badgeIsFoil: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The badge level
|
|
30
|
+
*/
|
|
31
|
+
badgeLevel: number;
|
|
32
|
+
/**
|
|
33
|
+
* The badge name
|
|
34
|
+
*/
|
|
35
|
+
badgeName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The badge scarcity
|
|
38
|
+
*/
|
|
39
|
+
badgeScarcity: number;
|
|
40
|
+
/**
|
|
41
|
+
* The badge steam id
|
|
42
|
+
*/
|
|
43
|
+
badgeSteamID: number;
|
|
44
|
+
/**
|
|
45
|
+
* The badge xp
|
|
46
|
+
*/
|
|
47
|
+
badgeXP: number;
|
|
48
|
+
/**
|
|
49
|
+
* The image of the app
|
|
50
|
+
*/
|
|
51
|
+
image: string;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the app
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const AccountBadgeMostXpDataPoint$inboundSchema: z.ZodType<
|
|
60
|
+
AccountBadgeMostXpDataPoint,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
appId: z.number().int(),
|
|
65
|
+
badgeCompletedAt: z
|
|
66
|
+
.string()
|
|
67
|
+
.datetime({ offset: true })
|
|
68
|
+
.transform((v) => new Date(v)),
|
|
69
|
+
badgeId: z.string(),
|
|
70
|
+
badgeImage: z.string(),
|
|
71
|
+
badgeIsFoil: z.boolean(),
|
|
72
|
+
badgeLevel: z.number().int(),
|
|
73
|
+
badgeName: z.string(),
|
|
74
|
+
badgeScarcity: z.number().int(),
|
|
75
|
+
badgeSteamID: z.number().int(),
|
|
76
|
+
badgeXP: z.number().int(),
|
|
77
|
+
image: z.string(),
|
|
78
|
+
name: z.string(),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type AccountBadgeMostXpDataPoint$Outbound = {
|
|
83
|
+
appId: number;
|
|
84
|
+
badgeCompletedAt: string;
|
|
85
|
+
badgeId: string;
|
|
86
|
+
badgeImage: string;
|
|
87
|
+
badgeIsFoil: boolean;
|
|
88
|
+
badgeLevel: number;
|
|
89
|
+
badgeName: string;
|
|
90
|
+
badgeScarcity: number;
|
|
91
|
+
badgeSteamID: number;
|
|
92
|
+
badgeXP: number;
|
|
93
|
+
image: string;
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const AccountBadgeMostXpDataPoint$outboundSchema: z.ZodType<
|
|
99
|
+
AccountBadgeMostXpDataPoint$Outbound,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
AccountBadgeMostXpDataPoint
|
|
102
|
+
> = z.object({
|
|
103
|
+
appId: z.number().int(),
|
|
104
|
+
badgeCompletedAt: z.date().transform((v) => v.toISOString()),
|
|
105
|
+
badgeId: z.string(),
|
|
106
|
+
badgeImage: z.string(),
|
|
107
|
+
badgeIsFoil: z.boolean(),
|
|
108
|
+
badgeLevel: z.number().int(),
|
|
109
|
+
badgeName: z.string(),
|
|
110
|
+
badgeScarcity: z.number().int(),
|
|
111
|
+
badgeSteamID: z.number().int(),
|
|
112
|
+
badgeXP: z.number().int(),
|
|
113
|
+
image: z.string(),
|
|
114
|
+
name: z.string(),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
120
|
+
*/
|
|
121
|
+
export namespace AccountBadgeMostXpDataPoint$ {
|
|
122
|
+
/** @deprecated use `AccountBadgeMostXpDataPoint$inboundSchema` instead. */
|
|
123
|
+
export const inboundSchema = AccountBadgeMostXpDataPoint$inboundSchema;
|
|
124
|
+
/** @deprecated use `AccountBadgeMostXpDataPoint$outboundSchema` instead. */
|
|
125
|
+
export const outboundSchema = AccountBadgeMostXpDataPoint$outboundSchema;
|
|
126
|
+
/** @deprecated use `AccountBadgeMostXpDataPoint$Outbound` instead. */
|
|
127
|
+
export type Outbound = AccountBadgeMostXpDataPoint$Outbound;
|
|
128
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AccountBadgeScarcityDataPoint = {
|
|
8
|
+
/**
|
|
9
|
+
* The app id
|
|
10
|
+
*/
|
|
11
|
+
appId: number;
|
|
12
|
+
/**
|
|
13
|
+
* The badge id
|
|
14
|
+
*/
|
|
15
|
+
badgeId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The badge image
|
|
18
|
+
*/
|
|
19
|
+
badgeImage: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the badge is foil
|
|
22
|
+
*/
|
|
23
|
+
badgeIsFoil: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The badge level
|
|
26
|
+
*/
|
|
27
|
+
badgeLevel: number;
|
|
28
|
+
/**
|
|
29
|
+
* The badge name
|
|
30
|
+
*/
|
|
31
|
+
badgeName: string;
|
|
32
|
+
/**
|
|
33
|
+
* The badge scarcity
|
|
34
|
+
*/
|
|
35
|
+
badgeScarcity: number;
|
|
36
|
+
/**
|
|
37
|
+
* The image of the app
|
|
38
|
+
*/
|
|
39
|
+
image: string;
|
|
40
|
+
/**
|
|
41
|
+
* The name of the app
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountBadgeScarcityDataPoint$inboundSchema: z.ZodType<
|
|
48
|
+
AccountBadgeScarcityDataPoint,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
appId: z.number().int(),
|
|
53
|
+
badgeId: z.string(),
|
|
54
|
+
badgeImage: z.string(),
|
|
55
|
+
badgeIsFoil: z.boolean(),
|
|
56
|
+
badgeLevel: z.number().int(),
|
|
57
|
+
badgeName: z.string(),
|
|
58
|
+
badgeScarcity: z.number().int(),
|
|
59
|
+
image: z.string(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type AccountBadgeScarcityDataPoint$Outbound = {
|
|
65
|
+
appId: number;
|
|
66
|
+
badgeId: string;
|
|
67
|
+
badgeImage: string;
|
|
68
|
+
badgeIsFoil: boolean;
|
|
69
|
+
badgeLevel: number;
|
|
70
|
+
badgeName: string;
|
|
71
|
+
badgeScarcity: number;
|
|
72
|
+
image: string;
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const AccountBadgeScarcityDataPoint$outboundSchema: z.ZodType<
|
|
78
|
+
AccountBadgeScarcityDataPoint$Outbound,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
AccountBadgeScarcityDataPoint
|
|
81
|
+
> = z.object({
|
|
82
|
+
appId: z.number().int(),
|
|
83
|
+
badgeId: z.string(),
|
|
84
|
+
badgeImage: z.string(),
|
|
85
|
+
badgeIsFoil: z.boolean(),
|
|
86
|
+
badgeLevel: z.number().int(),
|
|
87
|
+
badgeName: z.string(),
|
|
88
|
+
badgeScarcity: z.number().int(),
|
|
89
|
+
image: z.string(),
|
|
90
|
+
name: z.string(),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
+
*/
|
|
97
|
+
export namespace AccountBadgeScarcityDataPoint$ {
|
|
98
|
+
/** @deprecated use `AccountBadgeScarcityDataPoint$inboundSchema` instead. */
|
|
99
|
+
export const inboundSchema = AccountBadgeScarcityDataPoint$inboundSchema;
|
|
100
|
+
/** @deprecated use `AccountBadgeScarcityDataPoint$outboundSchema` instead. */
|
|
101
|
+
export const outboundSchema = AccountBadgeScarcityDataPoint$outboundSchema;
|
|
102
|
+
/** @deprecated use `AccountBadgeScarcityDataPoint$Outbound` instead. */
|
|
103
|
+
export type Outbound = AccountBadgeScarcityDataPoint$Outbound;
|
|
104
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AccountPlaytimeDataPoint = {
|
|
8
|
+
/**
|
|
9
|
+
* The app id
|
|
10
|
+
*/
|
|
11
|
+
appId: number;
|
|
12
|
+
/**
|
|
13
|
+
* The image of the app
|
|
14
|
+
*/
|
|
15
|
+
image: string;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the app
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The playtime of the app
|
|
22
|
+
*/
|
|
23
|
+
playtime: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AccountPlaytimeDataPoint$inboundSchema: z.ZodType<
|
|
28
|
+
AccountPlaytimeDataPoint,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
appId: z.number().int(),
|
|
33
|
+
image: z.string(),
|
|
34
|
+
name: z.string(),
|
|
35
|
+
playtime: z.number().int(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AccountPlaytimeDataPoint$Outbound = {
|
|
40
|
+
appId: number;
|
|
41
|
+
image: string;
|
|
42
|
+
name: string;
|
|
43
|
+
playtime: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountPlaytimeDataPoint$outboundSchema: z.ZodType<
|
|
48
|
+
AccountPlaytimeDataPoint$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AccountPlaytimeDataPoint
|
|
51
|
+
> = z.object({
|
|
52
|
+
appId: z.number().int(),
|
|
53
|
+
image: z.string(),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
playtime: z.number().int(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace AccountPlaytimeDataPoint$ {
|
|
63
|
+
/** @deprecated use `AccountPlaytimeDataPoint$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = AccountPlaytimeDataPoint$inboundSchema;
|
|
65
|
+
/** @deprecated use `AccountPlaytimeDataPoint$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = AccountPlaytimeDataPoint$outboundSchema;
|
|
67
|
+
/** @deprecated use `AccountPlaytimeDataPoint$Outbound` instead. */
|
|
68
|
+
export type Outbound = AccountPlaytimeDataPoint$Outbound;
|
|
69
|
+
}
|
|
@@ -9,10 +9,6 @@ export type Image = {
|
|
|
9
9
|
* Whether the image is active or not
|
|
10
10
|
*/
|
|
11
11
|
active: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The id of the file
|
|
14
|
-
*/
|
|
15
|
-
fileId: string;
|
|
16
12
|
/**
|
|
17
13
|
* The name of the file
|
|
18
14
|
*/
|
|
@@ -25,40 +21,30 @@ export type Image = {
|
|
|
25
21
|
* The type of the image
|
|
26
22
|
*/
|
|
27
23
|
imageType: string;
|
|
28
|
-
/**
|
|
29
|
-
* The mime type of the file
|
|
30
|
-
*/
|
|
31
|
-
mimeType: string;
|
|
32
24
|
};
|
|
33
25
|
|
|
34
26
|
/** @internal */
|
|
35
27
|
export const Image$inboundSchema: z.ZodType<Image, z.ZodTypeDef, unknown> = z.object({
|
|
36
28
|
active: z.boolean(),
|
|
37
|
-
fileId: z.string(),
|
|
38
29
|
fileName: z.string(),
|
|
39
30
|
imageId: z.string(),
|
|
40
31
|
imageType: z.string(),
|
|
41
|
-
mimeType: z.string(),
|
|
42
32
|
});
|
|
43
33
|
|
|
44
34
|
/** @internal */
|
|
45
35
|
export type Image$Outbound = {
|
|
46
36
|
active: boolean;
|
|
47
|
-
fileId: string;
|
|
48
37
|
fileName: string;
|
|
49
38
|
imageId: string;
|
|
50
39
|
imageType: string;
|
|
51
|
-
mimeType: string;
|
|
52
40
|
};
|
|
53
41
|
|
|
54
42
|
/** @internal */
|
|
55
43
|
export const Image$outboundSchema: z.ZodType<Image$Outbound, z.ZodTypeDef, Image> = z.object({
|
|
56
44
|
active: z.boolean(),
|
|
57
|
-
fileId: z.string(),
|
|
58
45
|
fileName: z.string(),
|
|
59
46
|
imageId: z.string(),
|
|
60
47
|
imageType: z.string(),
|
|
61
|
-
mimeType: z.string(),
|
|
62
48
|
});
|
|
63
49
|
|
|
64
50
|
/**
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accountbadgemostxpdatapoint.js";
|
|
6
|
+
export * from "./accountbadgescarcitydatapoint.js";
|
|
5
7
|
export * from "./accountinfobody.js";
|
|
6
8
|
export * from "./accountleaderboardhistory.js";
|
|
9
|
+
export * from "./accountplaytimedatapoint.js";
|
|
7
10
|
export * from "./accountsearch.js";
|
|
8
11
|
export * from "./accountsearchidstruct.js";
|
|
9
12
|
export * from "./accountsearchvanitystruct.js";
|
|
@@ -15,7 +18,6 @@ export * from "./emailnotification.js";
|
|
|
15
18
|
export * from "./errordetail.js";
|
|
16
19
|
export * from "./httpmetadata.js";
|
|
17
20
|
export * from "./image.js";
|
|
18
|
-
export * from "./item.js";
|
|
19
21
|
export * from "./leaderboardaccount.js";
|
|
20
22
|
export * from "./leaderboardbadgeinfo.js";
|
|
21
23
|
export * from "./location.js";
|
|
@@ -27,6 +29,7 @@ export * from "./security.js";
|
|
|
27
29
|
export * from "./session.js";
|
|
28
30
|
export * from "./state.js";
|
|
29
31
|
export * from "./v1accountapp.js";
|
|
32
|
+
export * from "./v1accountdatapointsresponsebody.js";
|
|
30
33
|
export * from "./v1accountfriend.js";
|
|
31
34
|
export * from "./v1accountfriendsresponsebody.js";
|
|
32
35
|
export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import {
|
|
7
|
+
AccountBadgeMostXpDataPoint,
|
|
8
|
+
AccountBadgeMostXpDataPoint$inboundSchema,
|
|
9
|
+
AccountBadgeMostXpDataPoint$Outbound,
|
|
10
|
+
AccountBadgeMostXpDataPoint$outboundSchema,
|
|
11
|
+
} from "./accountbadgemostxpdatapoint.js";
|
|
12
|
+
import {
|
|
13
|
+
AccountBadgeScarcityDataPoint,
|
|
14
|
+
AccountBadgeScarcityDataPoint$inboundSchema,
|
|
15
|
+
AccountBadgeScarcityDataPoint$Outbound,
|
|
16
|
+
AccountBadgeScarcityDataPoint$outboundSchema,
|
|
17
|
+
} from "./accountbadgescarcitydatapoint.js";
|
|
18
|
+
import {
|
|
19
|
+
AccountPlaytimeDataPoint,
|
|
20
|
+
AccountPlaytimeDataPoint$inboundSchema,
|
|
21
|
+
AccountPlaytimeDataPoint$Outbound,
|
|
22
|
+
AccountPlaytimeDataPoint$outboundSchema,
|
|
23
|
+
} from "./accountplaytimedatapoint.js";
|
|
24
|
+
import * as z from "zod";
|
|
25
|
+
|
|
26
|
+
export type V1AccountDataPointsResponseBody = {
|
|
27
|
+
/**
|
|
28
|
+
* A URL to the JSON Schema for this object.
|
|
29
|
+
*/
|
|
30
|
+
dollarSchema?: string | undefined;
|
|
31
|
+
mostXp: Array<AccountBadgeMostXpDataPoint> | null;
|
|
32
|
+
playtime: Array<AccountPlaytimeDataPoint> | null;
|
|
33
|
+
scarcity: Array<AccountBadgeScarcityDataPoint> | null;
|
|
34
|
+
xp: { [k: string]: { [k: string]: number } };
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const V1AccountDataPointsResponseBody$inboundSchema: z.ZodType<
|
|
39
|
+
V1AccountDataPointsResponseBody,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z
|
|
43
|
+
.object({
|
|
44
|
+
$schema: z.string().optional(),
|
|
45
|
+
mostXp: z.nullable(z.array(AccountBadgeMostXpDataPoint$inboundSchema)),
|
|
46
|
+
playtime: z.nullable(z.array(AccountPlaytimeDataPoint$inboundSchema)),
|
|
47
|
+
scarcity: z.nullable(z.array(AccountBadgeScarcityDataPoint$inboundSchema)),
|
|
48
|
+
xp: z.record(z.record(z.number().int())),
|
|
49
|
+
})
|
|
50
|
+
.transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
$schema: "dollarSchema",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export type V1AccountDataPointsResponseBody$Outbound = {
|
|
58
|
+
$schema?: string | undefined;
|
|
59
|
+
mostXp: Array<AccountBadgeMostXpDataPoint$Outbound> | null;
|
|
60
|
+
playtime: Array<AccountPlaytimeDataPoint$Outbound> | null;
|
|
61
|
+
scarcity: Array<AccountBadgeScarcityDataPoint$Outbound> | null;
|
|
62
|
+
xp: { [k: string]: { [k: string]: number } };
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const V1AccountDataPointsResponseBody$outboundSchema: z.ZodType<
|
|
67
|
+
V1AccountDataPointsResponseBody$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
V1AccountDataPointsResponseBody
|
|
70
|
+
> = z
|
|
71
|
+
.object({
|
|
72
|
+
dollarSchema: z.string().optional(),
|
|
73
|
+
mostXp: z.nullable(z.array(AccountBadgeMostXpDataPoint$outboundSchema)),
|
|
74
|
+
playtime: z.nullable(z.array(AccountPlaytimeDataPoint$outboundSchema)),
|
|
75
|
+
scarcity: z.nullable(z.array(AccountBadgeScarcityDataPoint$outboundSchema)),
|
|
76
|
+
xp: z.record(z.record(z.number().int())),
|
|
77
|
+
})
|
|
78
|
+
.transform((v) => {
|
|
79
|
+
return remap$(v, {
|
|
80
|
+
dollarSchema: "$schema",
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace V1AccountDataPointsResponseBody$ {
|
|
89
|
+
/** @deprecated use `V1AccountDataPointsResponseBody$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = V1AccountDataPointsResponseBody$inboundSchema;
|
|
91
|
+
/** @deprecated use `V1AccountDataPointsResponseBody$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = V1AccountDataPointsResponseBody$outboundSchema;
|
|
93
|
+
/** @deprecated use `V1AccountDataPointsResponseBody$Outbound` instead. */
|
|
94
|
+
export type Outbound = V1AccountDataPointsResponseBody$Outbound;
|
|
95
|
+
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { Item, Item$inboundSchema, Item$Outbound, Item$outboundSchema } from "./item.js";
|
|
6
5
|
import * as z from "zod";
|
|
7
6
|
|
|
8
7
|
export type V1DeleteImagesRequestBody = {
|
|
9
8
|
/**
|
|
10
|
-
* The images to delete
|
|
9
|
+
* The images ids to delete
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
imageIds: Array<string> | null;
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
/** @internal */
|
|
@@ -18,12 +17,12 @@ export const V1DeleteImagesRequestBody$inboundSchema: z.ZodType<
|
|
|
18
17
|
z.ZodTypeDef,
|
|
19
18
|
unknown
|
|
20
19
|
> = z.object({
|
|
21
|
-
|
|
20
|
+
imageIds: z.nullable(z.array(z.string())),
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
/** @internal */
|
|
25
24
|
export type V1DeleteImagesRequestBody$Outbound = {
|
|
26
|
-
|
|
25
|
+
imageIds: Array<string> | null;
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
/** @internal */
|
|
@@ -32,7 +31,7 @@ export const V1DeleteImagesRequestBody$outboundSchema: z.ZodType<
|
|
|
32
31
|
z.ZodTypeDef,
|
|
33
32
|
V1DeleteImagesRequestBody
|
|
34
33
|
> = z.object({
|
|
35
|
-
|
|
34
|
+
imageIds: z.nullable(z.array(z.string())),
|
|
36
35
|
});
|
|
37
36
|
|
|
38
37
|
/**
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type AccountV1GetDataPointsRequest = {
|
|
10
|
+
xForwardedFor?: string | undefined;
|
|
11
|
+
userAgent?: string | undefined;
|
|
12
|
+
accountSearch: components.AccountSearch;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type AccountV1GetDataPointsResponse = {
|
|
16
|
+
httpMeta: components.HTTPMetadata;
|
|
17
|
+
/**
|
|
18
|
+
* OK
|
|
19
|
+
*/
|
|
20
|
+
v1AccountDataPointsResponseBody?: components.V1AccountDataPointsResponseBody | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AccountV1GetDataPointsRequest$inboundSchema: z.ZodType<
|
|
25
|
+
AccountV1GetDataPointsRequest,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z
|
|
29
|
+
.object({
|
|
30
|
+
"X-Forwarded-For": z.string().optional(),
|
|
31
|
+
"User-Agent": z.string().optional(),
|
|
32
|
+
AccountSearch: components.AccountSearch$inboundSchema,
|
|
33
|
+
})
|
|
34
|
+
.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"X-Forwarded-For": "xForwardedFor",
|
|
37
|
+
"User-Agent": "userAgent",
|
|
38
|
+
AccountSearch: "accountSearch",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type AccountV1GetDataPointsRequest$Outbound = {
|
|
44
|
+
"X-Forwarded-For"?: string | undefined;
|
|
45
|
+
"User-Agent"?: string | undefined;
|
|
46
|
+
AccountSearch: components.AccountSearch$Outbound;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const AccountV1GetDataPointsRequest$outboundSchema: z.ZodType<
|
|
51
|
+
AccountV1GetDataPointsRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
AccountV1GetDataPointsRequest
|
|
54
|
+
> = z
|
|
55
|
+
.object({
|
|
56
|
+
xForwardedFor: z.string().optional(),
|
|
57
|
+
userAgent: z.string().optional(),
|
|
58
|
+
accountSearch: components.AccountSearch$outboundSchema,
|
|
59
|
+
})
|
|
60
|
+
.transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
xForwardedFor: "X-Forwarded-For",
|
|
63
|
+
userAgent: "User-Agent",
|
|
64
|
+
accountSearch: "AccountSearch",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace AccountV1GetDataPointsRequest$ {
|
|
73
|
+
/** @deprecated use `AccountV1GetDataPointsRequest$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = AccountV1GetDataPointsRequest$inboundSchema;
|
|
75
|
+
/** @deprecated use `AccountV1GetDataPointsRequest$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = AccountV1GetDataPointsRequest$outboundSchema;
|
|
77
|
+
/** @deprecated use `AccountV1GetDataPointsRequest$Outbound` instead. */
|
|
78
|
+
export type Outbound = AccountV1GetDataPointsRequest$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const AccountV1GetDataPointsResponse$inboundSchema: z.ZodType<
|
|
83
|
+
AccountV1GetDataPointsResponse,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z
|
|
87
|
+
.object({
|
|
88
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
89
|
+
V1AccountDataPointsResponseBody:
|
|
90
|
+
components.V1AccountDataPointsResponseBody$inboundSchema.optional(),
|
|
91
|
+
})
|
|
92
|
+
.transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
HttpMeta: "httpMeta",
|
|
95
|
+
V1AccountDataPointsResponseBody: "v1AccountDataPointsResponseBody",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type AccountV1GetDataPointsResponse$Outbound = {
|
|
101
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
102
|
+
V1AccountDataPointsResponseBody?:
|
|
103
|
+
| components.V1AccountDataPointsResponseBody$Outbound
|
|
104
|
+
| undefined;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export const AccountV1GetDataPointsResponse$outboundSchema: z.ZodType<
|
|
109
|
+
AccountV1GetDataPointsResponse$Outbound,
|
|
110
|
+
z.ZodTypeDef,
|
|
111
|
+
AccountV1GetDataPointsResponse
|
|
112
|
+
> = z
|
|
113
|
+
.object({
|
|
114
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
115
|
+
v1AccountDataPointsResponseBody:
|
|
116
|
+
components.V1AccountDataPointsResponseBody$outboundSchema.optional(),
|
|
117
|
+
})
|
|
118
|
+
.transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
httpMeta: "HttpMeta",
|
|
121
|
+
v1AccountDataPointsResponseBody: "V1AccountDataPointsResponseBody",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace AccountV1GetDataPointsResponse$ {
|
|
130
|
+
/** @deprecated use `AccountV1GetDataPointsResponse$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = AccountV1GetDataPointsResponse$inboundSchema;
|
|
132
|
+
/** @deprecated use `AccountV1GetDataPointsResponse$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = AccountV1GetDataPointsResponse$outboundSchema;
|
|
134
|
+
/** @deprecated use `AccountV1GetDataPointsResponse$Outbound` instead. */
|
|
135
|
+
export type Outbound = AccountV1GetDataPointsResponse$Outbound;
|
|
136
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./accountv1connectionupdateconnection.js";
|
|
|
8
8
|
export * from "./accountv1connectionverifyconnection.js";
|
|
9
9
|
export * from "./accountv1getapps.js";
|
|
10
10
|
export * from "./accountv1getbadges.js";
|
|
11
|
+
export * from "./accountv1getdatapoints.js";
|
|
11
12
|
export * from "./accountv1getfriends.js";
|
|
12
13
|
export * from "./accountv1getinfo.js";
|
|
13
14
|
export * from "./accountv1getleaderboardhistory.js";
|
package/src/sdk/account.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { accountAccountV1ConnectionUpdateConnection } from "../funcs/accountAcco
|
|
|
8
8
|
import { accountAccountV1ConnectionVerifyConnection } from "../funcs/accountAccountV1ConnectionVerifyConnection.js";
|
|
9
9
|
import { accountAccountV1GetApps } from "../funcs/accountAccountV1GetApps.js";
|
|
10
10
|
import { accountAccountV1GetBadges } from "../funcs/accountAccountV1GetBadges.js";
|
|
11
|
+
import { accountAccountV1GetDataPoints } from "../funcs/accountAccountV1GetDataPoints.js";
|
|
11
12
|
import { accountAccountV1GetFriends } from "../funcs/accountAccountV1GetFriends.js";
|
|
12
13
|
import { accountAccountV1GetInfo } from "../funcs/accountAccountV1GetInfo.js";
|
|
13
14
|
import { accountAccountV1GetLeaderboardHistory } from "../funcs/accountAccountV1GetLeaderboardHistory.js";
|
|
@@ -109,6 +110,16 @@ export class Account extends ClientSDK {
|
|
|
109
110
|
return unwrapAsync(accountAccountV1GetBadges(this, request, options));
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Get Account DataPoints
|
|
115
|
+
*/
|
|
116
|
+
async accountV1GetDataPoints(
|
|
117
|
+
request: operations.AccountV1GetDataPointsRequest,
|
|
118
|
+
options?: RequestOptions
|
|
119
|
+
): Promise<operations.AccountV1GetDataPointsResponse> {
|
|
120
|
+
return unwrapAsync(accountAccountV1GetDataPoints(this, request, options));
|
|
121
|
+
}
|
|
122
|
+
|
|
112
123
|
/**
|
|
113
124
|
* Get Account Friends
|
|
114
125
|
*/
|