@steamsets/client-ts 0.5.4 → 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.
Files changed (73) hide show
  1. package/README.md +6 -0
  2. package/docs/sdks/account/README.md +79 -0
  3. package/docs/sdks/data/README.md +79 -0
  4. package/docs/sdks/public/README.md +79 -0
  5. package/funcs/accountAccountV1GetDataPoints.d.ts +13 -0
  6. package/funcs/accountAccountV1GetDataPoints.d.ts.map +1 -0
  7. package/funcs/accountAccountV1GetDataPoints.js +105 -0
  8. package/funcs/accountAccountV1GetDataPoints.js.map +1 -0
  9. package/funcs/dataAccountV1GetDataPoints.d.ts +13 -0
  10. package/funcs/dataAccountV1GetDataPoints.d.ts.map +1 -0
  11. package/funcs/dataAccountV1GetDataPoints.js +105 -0
  12. package/funcs/dataAccountV1GetDataPoints.js.map +1 -0
  13. package/funcs/publicAccountV1GetDataPoints.d.ts +13 -0
  14. package/funcs/publicAccountV1GetDataPoints.d.ts.map +1 -0
  15. package/funcs/publicAccountV1GetDataPoints.js +105 -0
  16. package/funcs/publicAccountV1GetDataPoints.js.map +1 -0
  17. package/lib/config.d.ts +2 -2
  18. package/lib/config.js +2 -2
  19. package/models/components/accountbadgemostxpdatapoint.d.ts +83 -0
  20. package/models/components/accountbadgemostxpdatapoint.d.ts.map +1 -0
  21. package/models/components/accountbadgemostxpdatapoint.js +75 -0
  22. package/models/components/accountbadgemostxpdatapoint.js.map +1 -0
  23. package/models/components/accountbadgescarcitydatapoint.d.ts +68 -0
  24. package/models/components/accountbadgescarcitydatapoint.d.ts.map +1 -0
  25. package/models/components/accountbadgescarcitydatapoint.js +66 -0
  26. package/models/components/accountbadgescarcitydatapoint.js.map +1 -0
  27. package/models/components/accountplaytimedatapoint.d.ts +43 -0
  28. package/models/components/accountplaytimedatapoint.d.ts.map +1 -0
  29. package/models/components/accountplaytimedatapoint.js +56 -0
  30. package/models/components/accountplaytimedatapoint.js.map +1 -0
  31. package/models/components/index.d.ts +4 -0
  32. package/models/components/index.d.ts.map +1 -1
  33. package/models/components/index.js +4 -0
  34. package/models/components/index.js.map +1 -1
  35. package/models/components/v1accountdatapointsresponsebody.d.ts +47 -0
  36. package/models/components/v1accountdatapointsresponsebody.d.ts.map +1 -0
  37. package/models/components/v1accountdatapointsresponsebody.js +74 -0
  38. package/models/components/v1accountdatapointsresponsebody.js.map +1 -0
  39. package/models/operations/accountv1getdatapoints.d.ts +58 -0
  40. package/models/operations/accountv1getdatapoints.d.ts.map +1 -0
  41. package/models/operations/accountv1getdatapoints.js +107 -0
  42. package/models/operations/accountv1getdatapoints.js.map +1 -0
  43. package/models/operations/index.d.ts +1 -0
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +1 -0
  46. package/models/operations/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/sdk/account.d.ts +4 -0
  49. package/sdk/account.d.ts.map +1 -1
  50. package/sdk/account.js +7 -0
  51. package/sdk/account.js.map +1 -1
  52. package/sdk/data.d.ts +4 -0
  53. package/sdk/data.d.ts.map +1 -1
  54. package/sdk/data.js +7 -0
  55. package/sdk/data.js.map +1 -1
  56. package/sdk/public.d.ts +4 -0
  57. package/sdk/public.d.ts.map +1 -1
  58. package/sdk/public.js +7 -0
  59. package/sdk/public.js.map +1 -1
  60. package/src/funcs/accountAccountV1GetDataPoints.ts +139 -0
  61. package/src/funcs/dataAccountV1GetDataPoints.ts +139 -0
  62. package/src/funcs/publicAccountV1GetDataPoints.ts +139 -0
  63. package/src/lib/config.ts +2 -2
  64. package/src/models/components/accountbadgemostxpdatapoint.ts +128 -0
  65. package/src/models/components/accountbadgescarcitydatapoint.ts +104 -0
  66. package/src/models/components/accountplaytimedatapoint.ts +69 -0
  67. package/src/models/components/index.ts +4 -0
  68. package/src/models/components/v1accountdatapointsresponsebody.ts +95 -0
  69. package/src/models/operations/accountv1getdatapoints.ts +136 -0
  70. package/src/models/operations/index.ts +1 -0
  71. package/src/sdk/account.ts +11 -0
  72. package/src/sdk/data.ts +11 -0
  73. package/src/sdk/public.ts +11 -0
@@ -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
+ }
@@ -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";
@@ -26,6 +29,7 @@ export * from "./security.js";
26
29
  export * from "./session.js";
27
30
  export * from "./state.js";
28
31
  export * from "./v1accountapp.js";
32
+ export * from "./v1accountdatapointsresponsebody.js";
29
33
  export * from "./v1accountfriend.js";
30
34
  export * from "./v1accountfriendsresponsebody.js";
31
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
+ }
@@ -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";
@@ -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
  */
package/src/sdk/data.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { dataAccountV1GetApps } from "../funcs/dataAccountV1GetApps.js";
6
6
  import { dataAccountV1GetBadges } from "../funcs/dataAccountV1GetBadges.js";
7
+ import { dataAccountV1GetDataPoints } from "../funcs/dataAccountV1GetDataPoints.js";
7
8
  import { dataAccountV1GetFriends } from "../funcs/dataAccountV1GetFriends.js";
8
9
  import { dataAccountV1GetInfo } from "../funcs/dataAccountV1GetInfo.js";
9
10
  import { dataAccountV1GetLeaderboardHistory } from "../funcs/dataAccountV1GetLeaderboardHistory.js";
@@ -34,6 +35,16 @@ export class Data extends ClientSDK {
34
35
  return unwrapAsync(dataAccountV1GetBadges(this, request, options));
35
36
  }
36
37
 
38
+ /**
39
+ * Get Account DataPoints
40
+ */
41
+ async accountV1GetDataPoints(
42
+ request: operations.AccountV1GetDataPointsRequest,
43
+ options?: RequestOptions
44
+ ): Promise<operations.AccountV1GetDataPointsResponse> {
45
+ return unwrapAsync(dataAccountV1GetDataPoints(this, request, options));
46
+ }
47
+
37
48
  /**
38
49
  * Get Account Friends
39
50
  */
package/src/sdk/public.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { publicAccountV1GetApps } from "../funcs/publicAccountV1GetApps.js";
6
6
  import { publicAccountV1GetBadges } from "../funcs/publicAccountV1GetBadges.js";
7
+ import { publicAccountV1GetDataPoints } from "../funcs/publicAccountV1GetDataPoints.js";
7
8
  import { publicAccountV1GetFriends } from "../funcs/publicAccountV1GetFriends.js";
8
9
  import { publicAccountV1GetInfo } from "../funcs/publicAccountV1GetInfo.js";
9
10
  import { publicAccountV1GetLeaderboardHistory } from "../funcs/publicAccountV1GetLeaderboardHistory.js";
@@ -33,6 +34,16 @@ export class Public extends ClientSDK {
33
34
  return unwrapAsync(publicAccountV1GetBadges(this, request, options));
34
35
  }
35
36
 
37
+ /**
38
+ * Get Account DataPoints
39
+ */
40
+ async accountV1GetDataPoints(
41
+ request: operations.AccountV1GetDataPointsRequest,
42
+ options?: RequestOptions
43
+ ): Promise<operations.AccountV1GetDataPointsResponse> {
44
+ return unwrapAsync(publicAccountV1GetDataPoints(this, request, options));
45
+ }
46
+
36
47
  /**
37
48
  * Get Account Friends
38
49
  */