@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,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import * as errors from "../models/errors/index.js";
20
+ import { SDKError } from "../models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Get Account DataPoints
27
+ */
28
+ export async function accountAccountV1GetDataPoints(
29
+ client$: SteamSetsCore,
30
+ request: operations.AccountV1GetDataPointsRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ operations.AccountV1GetDataPointsResponse,
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const input$ = request;
46
+
47
+ const parsed$ = schemas$.safeParse(
48
+ input$,
49
+ (value$) => operations.AccountV1GetDataPointsRequest$outboundSchema.parse(value$),
50
+ "Input validation failed"
51
+ );
52
+ if (!parsed$.ok) {
53
+ return parsed$;
54
+ }
55
+ const payload$ = parsed$.value;
56
+ const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
57
+
58
+ const path$ = pathToFunc("/account.v1.AccountService/GetDataPoints")();
59
+
60
+ const headers$ = new Headers({
61
+ "Content-Type": "application/json",
62
+ Accept: "application/json",
63
+ "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
64
+ explode: false,
65
+ charEncoding: "none",
66
+ }),
67
+ "X-Forwarded-For": encodeSimple$("X-Forwarded-For", payload$["X-Forwarded-For"], {
68
+ explode: false,
69
+ charEncoding: "none",
70
+ }),
71
+ });
72
+
73
+ const session$ = await extractSecurity(client$.options$.session);
74
+ const security$ = session$ == null ? {} : { session: session$ };
75
+ const context = {
76
+ operationID: "account.v1.getDataPoints",
77
+ oAuth2Scopes: [],
78
+ securitySource: client$.options$.session,
79
+ };
80
+ const securitySettings$ = resolveGlobalSecurity(security$);
81
+
82
+ const requestRes = client$.createRequest$(
83
+ context,
84
+ {
85
+ security: securitySettings$,
86
+ method: "POST",
87
+ path: path$,
88
+ headers: headers$,
89
+ body: body$,
90
+ uaHeader: "x-speakeasy-user-agent",
91
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
92
+ },
93
+ options
94
+ );
95
+ if (!requestRes.ok) {
96
+ return requestRes;
97
+ }
98
+ const request$ = requestRes.value;
99
+
100
+ const doResult = await client$.do$(request$, {
101
+ context,
102
+ errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
103
+ retryConfig: options?.retries || client$.options$.retryConfig,
104
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
+ });
106
+ if (!doResult.ok) {
107
+ return doResult;
108
+ }
109
+ const response = doResult.value;
110
+
111
+ const responseFields$ = {
112
+ HttpMeta: { Response: response, Request: request$ },
113
+ };
114
+
115
+ const [result$] = await m$.match<
116
+ operations.AccountV1GetDataPointsResponse,
117
+ | errors.ErrorModel
118
+ | SDKError
119
+ | SDKValidationError
120
+ | UnexpectedClientError
121
+ | InvalidRequestError
122
+ | RequestAbortedError
123
+ | RequestTimeoutError
124
+ | ConnectionError
125
+ >(
126
+ m$.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
127
+ key: "V1AccountDataPointsResponseBody",
128
+ }),
129
+ m$.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
130
+ ctype: "application/problem+json",
131
+ }),
132
+ m$.fail(["4XX", "5XX"])
133
+ )(response, request$, { extraFields: responseFields$ });
134
+ if (!result$.ok) {
135
+ return result$;
136
+ }
137
+
138
+ return result$;
139
+ }
@@ -0,0 +1,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import * as errors from "../models/errors/index.js";
20
+ import { SDKError } from "../models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Get Account DataPoints
27
+ */
28
+ export async function dataAccountV1GetDataPoints(
29
+ client$: SteamSetsCore,
30
+ request: operations.AccountV1GetDataPointsRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ operations.AccountV1GetDataPointsResponse,
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const input$ = request;
46
+
47
+ const parsed$ = schemas$.safeParse(
48
+ input$,
49
+ (value$) => operations.AccountV1GetDataPointsRequest$outboundSchema.parse(value$),
50
+ "Input validation failed"
51
+ );
52
+ if (!parsed$.ok) {
53
+ return parsed$;
54
+ }
55
+ const payload$ = parsed$.value;
56
+ const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
57
+
58
+ const path$ = pathToFunc("/account.v1.AccountService/GetDataPoints")();
59
+
60
+ const headers$ = new Headers({
61
+ "Content-Type": "application/json",
62
+ Accept: "application/json",
63
+ "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
64
+ explode: false,
65
+ charEncoding: "none",
66
+ }),
67
+ "X-Forwarded-For": encodeSimple$("X-Forwarded-For", payload$["X-Forwarded-For"], {
68
+ explode: false,
69
+ charEncoding: "none",
70
+ }),
71
+ });
72
+
73
+ const session$ = await extractSecurity(client$.options$.session);
74
+ const security$ = session$ == null ? {} : { session: session$ };
75
+ const context = {
76
+ operationID: "account.v1.getDataPoints",
77
+ oAuth2Scopes: [],
78
+ securitySource: client$.options$.session,
79
+ };
80
+ const securitySettings$ = resolveGlobalSecurity(security$);
81
+
82
+ const requestRes = client$.createRequest$(
83
+ context,
84
+ {
85
+ security: securitySettings$,
86
+ method: "POST",
87
+ path: path$,
88
+ headers: headers$,
89
+ body: body$,
90
+ uaHeader: "x-speakeasy-user-agent",
91
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
92
+ },
93
+ options
94
+ );
95
+ if (!requestRes.ok) {
96
+ return requestRes;
97
+ }
98
+ const request$ = requestRes.value;
99
+
100
+ const doResult = await client$.do$(request$, {
101
+ context,
102
+ errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
103
+ retryConfig: options?.retries || client$.options$.retryConfig,
104
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
+ });
106
+ if (!doResult.ok) {
107
+ return doResult;
108
+ }
109
+ const response = doResult.value;
110
+
111
+ const responseFields$ = {
112
+ HttpMeta: { Response: response, Request: request$ },
113
+ };
114
+
115
+ const [result$] = await m$.match<
116
+ operations.AccountV1GetDataPointsResponse,
117
+ | errors.ErrorModel
118
+ | SDKError
119
+ | SDKValidationError
120
+ | UnexpectedClientError
121
+ | InvalidRequestError
122
+ | RequestAbortedError
123
+ | RequestTimeoutError
124
+ | ConnectionError
125
+ >(
126
+ m$.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
127
+ key: "V1AccountDataPointsResponseBody",
128
+ }),
129
+ m$.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
130
+ ctype: "application/problem+json",
131
+ }),
132
+ m$.fail(["4XX", "5XX"])
133
+ )(response, request$, { extraFields: responseFields$ });
134
+ if (!result$.ok) {
135
+ return result$;
136
+ }
137
+
138
+ return result$;
139
+ }
@@ -0,0 +1,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import * as errors from "../models/errors/index.js";
20
+ import { SDKError } from "../models/errors/sdkerror.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { Result } from "../types/fp.js";
24
+
25
+ /**
26
+ * Get Account DataPoints
27
+ */
28
+ export async function publicAccountV1GetDataPoints(
29
+ client$: SteamSetsCore,
30
+ request: operations.AccountV1GetDataPointsRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ operations.AccountV1GetDataPointsResponse,
35
+ | errors.ErrorModel
36
+ | SDKError
37
+ | SDKValidationError
38
+ | UnexpectedClientError
39
+ | InvalidRequestError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | ConnectionError
43
+ >
44
+ > {
45
+ const input$ = request;
46
+
47
+ const parsed$ = schemas$.safeParse(
48
+ input$,
49
+ (value$) => operations.AccountV1GetDataPointsRequest$outboundSchema.parse(value$),
50
+ "Input validation failed"
51
+ );
52
+ if (!parsed$.ok) {
53
+ return parsed$;
54
+ }
55
+ const payload$ = parsed$.value;
56
+ const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
57
+
58
+ const path$ = pathToFunc("/account.v1.AccountService/GetDataPoints")();
59
+
60
+ const headers$ = new Headers({
61
+ "Content-Type": "application/json",
62
+ Accept: "application/json",
63
+ "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
64
+ explode: false,
65
+ charEncoding: "none",
66
+ }),
67
+ "X-Forwarded-For": encodeSimple$("X-Forwarded-For", payload$["X-Forwarded-For"], {
68
+ explode: false,
69
+ charEncoding: "none",
70
+ }),
71
+ });
72
+
73
+ const session$ = await extractSecurity(client$.options$.session);
74
+ const security$ = session$ == null ? {} : { session: session$ };
75
+ const context = {
76
+ operationID: "account.v1.getDataPoints",
77
+ oAuth2Scopes: [],
78
+ securitySource: client$.options$.session,
79
+ };
80
+ const securitySettings$ = resolveGlobalSecurity(security$);
81
+
82
+ const requestRes = client$.createRequest$(
83
+ context,
84
+ {
85
+ security: securitySettings$,
86
+ method: "POST",
87
+ path: path$,
88
+ headers: headers$,
89
+ body: body$,
90
+ uaHeader: "x-speakeasy-user-agent",
91
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
92
+ },
93
+ options
94
+ );
95
+ if (!requestRes.ok) {
96
+ return requestRes;
97
+ }
98
+ const request$ = requestRes.value;
99
+
100
+ const doResult = await client$.do$(request$, {
101
+ context,
102
+ errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
103
+ retryConfig: options?.retries || client$.options$.retryConfig,
104
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
105
+ });
106
+ if (!doResult.ok) {
107
+ return doResult;
108
+ }
109
+ const response = doResult.value;
110
+
111
+ const responseFields$ = {
112
+ HttpMeta: { Response: response, Request: request$ },
113
+ };
114
+
115
+ const [result$] = await m$.match<
116
+ operations.AccountV1GetDataPointsResponse,
117
+ | errors.ErrorModel
118
+ | SDKError
119
+ | SDKValidationError
120
+ | UnexpectedClientError
121
+ | InvalidRequestError
122
+ | RequestAbortedError
123
+ | RequestTimeoutError
124
+ | ConnectionError
125
+ >(
126
+ m$.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
127
+ key: "V1AccountDataPointsResponseBody",
128
+ }),
129
+ m$.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
130
+ ctype: "application/problem+json",
131
+ }),
132
+ m$.fail(["4XX", "5XX"])
133
+ )(response, request$, { extraFields: responseFields$ });
134
+ if (!result$.ok) {
135
+ return result$;
136
+ }
137
+
138
+ return result$;
139
+ }
package/src/lib/config.ts CHANGED
@@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
52
52
  export const SDK_METADATA = {
53
53
  language: "typescript",
54
54
  openapiDocVersion: "1.0.0",
55
- sdkVersion: "0.5.4",
55
+ sdkVersion: "0.5.5",
56
56
  genVersion: "2.407.2",
57
- userAgent: "speakeasy-sdk/typescript 0.5.4 2.407.2 1.0.0 @steamsets/client-ts",
57
+ userAgent: "speakeasy-sdk/typescript 0.5.5 2.407.2 1.0.0 @steamsets/client-ts",
58
58
  } as const;
@@ -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
+ }