@steamsets/client-ts 0.11.7 → 0.11.9

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 (160) hide show
  1. package/README.md +3 -3
  2. package/docs/sdks/account/README.md +19 -9
  3. package/docs/sdks/badge/README.md +2 -2
  4. package/docs/sdks/data/README.md +3 -1
  5. package/docs/sdks/leaderboard/README.md +16 -8
  6. package/docs/sdks/public/README.md +3 -1
  7. package/funcs/accountAccountV1Queue.d.ts +1 -1
  8. package/funcs/accountAccountV1Queue.d.ts.map +1 -1
  9. package/funcs/accountAccountV1Queue.js +1 -1
  10. package/funcs/accountAccountV1Queue.js.map +1 -1
  11. package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  12. package/funcs/accountAccountV1SettingsSendEmailVerification.js +1 -1
  13. package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
  14. package/funcs/accountLeaderboardV1GetAccount.d.ts +1 -1
  15. package/funcs/accountLeaderboardV1GetAccount.js +1 -1
  16. package/funcs/badgeBadgeV1Tags.d.ts +1 -1
  17. package/funcs/badgeBadgeV1Tags.js +1 -1
  18. package/funcs/dataAccountV1Queue.d.ts +1 -1
  19. package/funcs/dataAccountV1Queue.d.ts.map +1 -1
  20. package/funcs/dataAccountV1Queue.js +1 -1
  21. package/funcs/dataAccountV1Queue.js.map +1 -1
  22. package/funcs/leaderboardLeaderboardV1GetAccount.d.ts +1 -1
  23. package/funcs/leaderboardLeaderboardV1GetAccount.js +1 -1
  24. package/funcs/publicAccountV1Queue.d.ts +1 -1
  25. package/funcs/publicAccountV1Queue.d.ts.map +1 -1
  26. package/funcs/publicAccountV1Queue.js +1 -1
  27. package/funcs/publicAccountV1Queue.js.map +1 -1
  28. package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  29. package/funcs/settingsAccountV1SettingsSendEmailVerification.js +1 -1
  30. package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
  31. package/lib/config.d.ts +2 -2
  32. package/lib/config.js +2 -2
  33. package/models/components/idstruct.d.ts +33 -0
  34. package/models/components/idstruct.d.ts.map +1 -0
  35. package/models/components/{leaderboardapp.js → idstruct.js} +17 -11
  36. package/models/components/idstruct.js.map +1 -0
  37. package/models/components/index.d.ts +9 -3
  38. package/models/components/index.d.ts.map +1 -1
  39. package/models/components/index.js +9 -3
  40. package/models/components/index.js.map +1 -1
  41. package/models/components/leaderboardaccount.d.ts +0 -8
  42. package/models/components/leaderboardaccount.d.ts.map +1 -1
  43. package/models/components/leaderboardaccount.js +0 -5
  44. package/models/components/leaderboardaccount.js.map +1 -1
  45. package/models/components/leaderboardaccountbadgeinfo.d.ts +38 -0
  46. package/models/components/leaderboardaccountbadgeinfo.d.ts.map +1 -0
  47. package/models/components/{leaderboardbadgeinfo.js → leaderboardaccountbadgeinfo.js} +13 -11
  48. package/models/components/leaderboardaccountbadgeinfo.js.map +1 -0
  49. package/models/components/v1accountfriend.d.ts +0 -8
  50. package/models/components/v1accountfriend.d.ts.map +1 -1
  51. package/models/components/v1accountfriend.js +0 -5
  52. package/models/components/v1accountfriend.js.map +1 -1
  53. package/models/components/v1accountleaderboardaccount.d.ts +3 -8
  54. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  55. package/models/components/v1accountleaderboardaccount.js +3 -5
  56. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  57. package/models/components/v1accountleaderboardappsearch.d.ts +28 -0
  58. package/models/components/v1accountleaderboardappsearch.d.ts.map +1 -0
  59. package/models/components/{v1accountleaderboardbadgeinfo.js → v1accountleaderboardappsearch.js} +15 -11
  60. package/models/components/v1accountleaderboardappsearch.js.map +1 -0
  61. package/models/components/v1accountleaderboardbadgesearch.d.ts +33 -0
  62. package/models/components/v1accountleaderboardbadgesearch.d.ts.map +1 -0
  63. package/models/components/v1accountleaderboardbadgesearch.js +52 -0
  64. package/models/components/v1accountleaderboardbadgesearch.js.map +1 -0
  65. package/models/components/v1accountleaderboardrequestbody.d.ts +6 -15
  66. package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
  67. package/models/components/v1accountleaderboardrequestbody.js +6 -6
  68. package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
  69. package/models/components/v1accountleaderboardresponsebody.d.ts +9 -9
  70. package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
  71. package/models/components/v1accountleaderboardresponsebody.js +10 -9
  72. package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
  73. package/models/components/v1accountqueuerequestbody.d.ts +34 -0
  74. package/models/components/v1accountqueuerequestbody.d.ts.map +1 -0
  75. package/models/components/v1accountqueuerequestbody.js +56 -0
  76. package/models/components/v1accountqueuerequestbody.js.map +1 -0
  77. package/models/components/v1badgetagsresponsebody.d.ts +2 -2
  78. package/models/components/v1getsettingsbody.d.ts +3 -3
  79. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  80. package/models/components/v1getsettingsbody.js +2 -2
  81. package/models/components/v1getsettingsbody.js.map +1 -1
  82. package/models/components/v1leaderboardappinfo.d.ts +43 -0
  83. package/models/components/v1leaderboardappinfo.d.ts.map +1 -0
  84. package/models/components/v1leaderboardappinfo.js +56 -0
  85. package/models/components/v1leaderboardappinfo.js.map +1 -0
  86. package/models/components/v1leaderboardbadgeinfo.d.ts +58 -0
  87. package/models/components/v1leaderboardbadgeinfo.d.ts.map +1 -0
  88. package/models/components/v1leaderboardbadgeinfo.js +62 -0
  89. package/models/components/v1leaderboardbadgeinfo.js.map +1 -0
  90. package/models/components/v1leaderboardlocationinfo.d.ts +48 -0
  91. package/models/components/v1leaderboardlocationinfo.d.ts.map +1 -0
  92. package/models/components/v1leaderboardlocationinfo.js +58 -0
  93. package/models/components/v1leaderboardlocationinfo.js.map +1 -0
  94. package/models/components/vanitystruct.d.ts +65 -0
  95. package/models/components/vanitystruct.d.ts.map +1 -0
  96. package/models/components/vanitystruct.js +74 -0
  97. package/models/components/vanitystruct.js.map +1 -0
  98. package/models/operations/accountv1settingssendemailverification.d.ts +6 -0
  99. package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -1
  100. package/models/operations/accountv1settingssendemailverification.js +4 -0
  101. package/models/operations/accountv1settingssendemailverification.js.map +1 -1
  102. package/package.json +1 -1
  103. package/sdk/account.d.ts +2 -2
  104. package/sdk/account.d.ts.map +1 -1
  105. package/sdk/account.js +1 -1
  106. package/sdk/account.js.map +1 -1
  107. package/sdk/badge.d.ts +1 -1
  108. package/sdk/badge.js +1 -1
  109. package/sdk/data.d.ts +1 -1
  110. package/sdk/data.d.ts.map +1 -1
  111. package/sdk/data.js.map +1 -1
  112. package/sdk/leaderboard.d.ts +1 -1
  113. package/sdk/leaderboard.js +1 -1
  114. package/sdk/public.d.ts +1 -1
  115. package/sdk/public.d.ts.map +1 -1
  116. package/sdk/public.js.map +1 -1
  117. package/src/funcs/accountAccountV1Queue.ts +2 -2
  118. package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +1 -0
  119. package/src/funcs/accountLeaderboardV1GetAccount.ts +1 -1
  120. package/src/funcs/badgeBadgeV1Tags.ts +1 -1
  121. package/src/funcs/dataAccountV1Queue.ts +2 -2
  122. package/src/funcs/leaderboardLeaderboardV1GetAccount.ts +1 -1
  123. package/src/funcs/publicAccountV1Queue.ts +2 -2
  124. package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +1 -0
  125. package/src/lib/config.ts +2 -2
  126. package/src/models/components/idstruct.ts +55 -0
  127. package/src/models/components/index.ts +9 -3
  128. package/src/models/components/leaderboardaccount.ts +0 -17
  129. package/src/models/components/leaderboardaccountbadgeinfo.ts +64 -0
  130. package/src/models/components/v1accountfriend.ts +0 -17
  131. package/src/models/components/v1accountleaderboardaccount.ts +9 -16
  132. package/src/models/components/v1accountleaderboardappsearch.ts +48 -0
  133. package/src/models/components/v1accountleaderboardbadgesearch.ts +55 -0
  134. package/src/models/components/v1accountleaderboardrequestbody.ts +20 -21
  135. package/src/models/components/v1accountleaderboardresponsebody.ts +29 -28
  136. package/src/models/components/v1accountqueuerequestbody.ts +68 -0
  137. package/src/models/components/v1badgetagsresponsebody.ts +2 -2
  138. package/src/models/components/v1getsettingsbody.ts +7 -5
  139. package/src/models/components/v1leaderboardappinfo.ts +69 -0
  140. package/src/models/components/v1leaderboardbadgeinfo.ts +90 -0
  141. package/src/models/components/v1leaderboardlocationinfo.ts +76 -0
  142. package/src/models/components/vanitystruct.ts +89 -0
  143. package/src/models/operations/accountv1settingssendemailverification.ts +6 -0
  144. package/src/sdk/account.ts +2 -2
  145. package/src/sdk/badge.ts +1 -1
  146. package/src/sdk/data.ts +1 -1
  147. package/src/sdk/leaderboard.ts +1 -1
  148. package/src/sdk/public.ts +1 -1
  149. package/models/components/leaderboardapp.d.ts +0 -21
  150. package/models/components/leaderboardapp.d.ts.map +0 -1
  151. package/models/components/leaderboardapp.js.map +0 -1
  152. package/models/components/leaderboardbadgeinfo.d.ts +0 -33
  153. package/models/components/leaderboardbadgeinfo.d.ts.map +0 -1
  154. package/models/components/leaderboardbadgeinfo.js.map +0 -1
  155. package/models/components/v1accountleaderboardbadgeinfo.d.ts +0 -21
  156. package/models/components/v1accountleaderboardbadgeinfo.d.ts.map +0 -1
  157. package/models/components/v1accountleaderboardbadgeinfo.js.map +0 -1
  158. package/src/models/components/leaderboardapp.ts +0 -37
  159. package/src/models/components/leaderboardbadgeinfo.ts +0 -57
  160. package/src/models/components/v1accountleaderboardbadgeinfo.ts +0 -37
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountLeaderboardBadgeSearch = {
8
+ /**
9
+ * The badge id to get the leaderboard for
10
+ */
11
+ id?: number | undefined;
12
+ /**
13
+ * Whether the badge is foil or not
14
+ */
15
+ isFoil: boolean;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1AccountLeaderboardBadgeSearch$inboundSchema: z.ZodType<
20
+ V1AccountLeaderboardBadgeSearch,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int().optional(),
25
+ isFoil: z.boolean(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1AccountLeaderboardBadgeSearch$Outbound = {
30
+ id?: number | undefined;
31
+ isFoil: boolean;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1AccountLeaderboardBadgeSearch$outboundSchema: z.ZodType<
36
+ V1AccountLeaderboardBadgeSearch$Outbound,
37
+ z.ZodTypeDef,
38
+ V1AccountLeaderboardBadgeSearch
39
+ > = z.object({
40
+ id: z.number().int().optional(),
41
+ isFoil: z.boolean(),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace V1AccountLeaderboardBadgeSearch$ {
49
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$inboundSchema` instead. */
50
+ export const inboundSchema = V1AccountLeaderboardBadgeSearch$inboundSchema;
51
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$outboundSchema` instead. */
52
+ export const outboundSchema = V1AccountLeaderboardBadgeSearch$outboundSchema;
53
+ /** @deprecated use `V1AccountLeaderboardBadgeSearch$Outbound` instead. */
54
+ export type Outbound = V1AccountLeaderboardBadgeSearch$Outbound;
55
+ }
@@ -4,6 +4,18 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ V1AccountLeaderboardAppSearch,
9
+ V1AccountLeaderboardAppSearch$inboundSchema,
10
+ V1AccountLeaderboardAppSearch$Outbound,
11
+ V1AccountLeaderboardAppSearch$outboundSchema,
12
+ } from "./v1accountleaderboardappsearch.js";
13
+ import {
14
+ V1AccountLeaderboardBadgeSearch,
15
+ V1AccountLeaderboardBadgeSearch$inboundSchema,
16
+ V1AccountLeaderboardBadgeSearch$Outbound,
17
+ V1AccountLeaderboardBadgeSearch$outboundSchema,
18
+ } from "./v1accountleaderboardbadgesearch.js";
7
19
  import {
8
20
  V1LeaderboardLocation,
9
21
  V1LeaderboardLocation$inboundSchema,
@@ -43,18 +55,8 @@ export type V1AccountLeaderboardRequestBodyLeaderboard = ClosedEnum<
43
55
  >;
44
56
 
45
57
  export type V1AccountLeaderboardRequestBody = {
46
- /**
47
- * For a given app leaderboard, the app id
48
- */
49
- appId?: number | null | undefined;
50
- /**
51
- * For a given badge leaderboard, the steam badge id
52
- */
53
- badgeId?: string | null | undefined;
54
- /**
55
- * For a given badge leaderboard, whether the badge is foil or not
56
- */
57
- badgeIsFoil?: boolean | null | undefined;
58
+ app?: V1AccountLeaderboardAppSearch | null | undefined;
59
+ badge?: V1AccountLeaderboardBadgeSearch | null | undefined;
58
60
  /**
59
61
  * The end index
60
62
  */
@@ -102,9 +104,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
102
104
  z.ZodTypeDef,
103
105
  unknown
104
106
  > = z.object({
105
- appId: z.nullable(z.number().int()).optional(),
106
- badgeId: z.nullable(z.string()).optional(),
107
- badgeIsFoil: z.nullable(z.boolean()).optional(),
107
+ app: z.nullable(V1AccountLeaderboardAppSearch$inboundSchema).optional(),
108
+ badge: z.nullable(V1AccountLeaderboardBadgeSearch$inboundSchema).optional(),
108
109
  end: z.nullable(z.number().int()).optional(),
109
110
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$inboundSchema,
110
111
  location: z.nullable(z.array(V1LeaderboardLocation$inboundSchema)).optional(),
@@ -113,9 +114,8 @@ export const V1AccountLeaderboardRequestBody$inboundSchema: z.ZodType<
113
114
 
114
115
  /** @internal */
115
116
  export type V1AccountLeaderboardRequestBody$Outbound = {
116
- appId?: number | null | undefined;
117
- badgeId?: string | null | undefined;
118
- badgeIsFoil?: boolean | null | undefined;
117
+ app?: V1AccountLeaderboardAppSearch$Outbound | null | undefined;
118
+ badge?: V1AccountLeaderboardBadgeSearch$Outbound | null | undefined;
119
119
  end?: number | null | undefined;
120
120
  leaderboard: string;
121
121
  location?: Array<V1LeaderboardLocation$Outbound> | null | undefined;
@@ -128,9 +128,8 @@ export const V1AccountLeaderboardRequestBody$outboundSchema: z.ZodType<
128
128
  z.ZodTypeDef,
129
129
  V1AccountLeaderboardRequestBody
130
130
  > = z.object({
131
- appId: z.nullable(z.number().int()).optional(),
132
- badgeId: z.nullable(z.string()).optional(),
133
- badgeIsFoil: z.nullable(z.boolean()).optional(),
131
+ app: z.nullable(V1AccountLeaderboardAppSearch$outboundSchema).optional(),
132
+ badge: z.nullable(V1AccountLeaderboardBadgeSearch$outboundSchema).optional(),
134
133
  end: z.nullable(z.number().int()).optional(),
135
134
  leaderboard: V1AccountLeaderboardRequestBodyLeaderboard$outboundSchema,
136
135
  location: z.nullable(z.array(V1LeaderboardLocation$outboundSchema))
@@ -4,12 +4,6 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- LeaderboardApp,
9
- LeaderboardApp$inboundSchema,
10
- LeaderboardApp$Outbound,
11
- LeaderboardApp$outboundSchema,
12
- } from "./leaderboardapp.js";
13
7
  import {
14
8
  V1AccountLeaderboardAccount,
15
9
  V1AccountLeaderboardAccount$inboundSchema,
@@ -17,17 +11,23 @@ import {
17
11
  V1AccountLeaderboardAccount$outboundSchema,
18
12
  } from "./v1accountleaderboardaccount.js";
19
13
  import {
20
- V1AccountLeaderboardBadgeInfo,
21
- V1AccountLeaderboardBadgeInfo$inboundSchema,
22
- V1AccountLeaderboardBadgeInfo$Outbound,
23
- V1AccountLeaderboardBadgeInfo$outboundSchema,
24
- } from "./v1accountleaderboardbadgeinfo.js";
14
+ V1LeaderboardAppInfo,
15
+ V1LeaderboardAppInfo$inboundSchema,
16
+ V1LeaderboardAppInfo$Outbound,
17
+ V1LeaderboardAppInfo$outboundSchema,
18
+ } from "./v1leaderboardappinfo.js";
19
+ import {
20
+ V1LeaderboardBadgeInfo,
21
+ V1LeaderboardBadgeInfo$inboundSchema,
22
+ V1LeaderboardBadgeInfo$Outbound,
23
+ V1LeaderboardBadgeInfo$outboundSchema,
24
+ } from "./v1leaderboardbadgeinfo.js";
25
25
  import {
26
- V1LeaderboardLocation,
27
- V1LeaderboardLocation$inboundSchema,
28
- V1LeaderboardLocation$Outbound,
29
- V1LeaderboardLocation$outboundSchema,
30
- } from "./v1leaderboardlocation.js";
26
+ V1LeaderboardLocationInfo,
27
+ V1LeaderboardLocationInfo$inboundSchema,
28
+ V1LeaderboardLocationInfo$Outbound,
29
+ V1LeaderboardLocationInfo$outboundSchema,
30
+ } from "./v1leaderboardlocationinfo.js";
31
31
 
32
32
  export type V1AccountLeaderboardResponseBody = {
33
33
  /**
@@ -35,9 +35,9 @@ export type V1AccountLeaderboardResponseBody = {
35
35
  */
36
36
  dollarSchema?: string | undefined;
37
37
  accounts: Array<V1AccountLeaderboardAccount> | null;
38
- app?: LeaderboardApp | null | undefined;
39
- badgeInfo?: V1AccountLeaderboardBadgeInfo | null | undefined;
40
- location?: V1LeaderboardLocation | null | undefined;
38
+ app?: V1LeaderboardAppInfo | null | undefined;
39
+ badgeInfo?: V1LeaderboardBadgeInfo | null | undefined;
40
+ location?: Array<V1LeaderboardLocationInfo> | null | undefined;
41
41
  };
42
42
 
43
43
  /** @internal */
@@ -48,9 +48,10 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
48
48
  > = z.object({
49
49
  $schema: z.string().optional(),
50
50
  accounts: z.nullable(z.array(V1AccountLeaderboardAccount$inboundSchema)),
51
- app: z.nullable(LeaderboardApp$inboundSchema).optional(),
52
- badgeInfo: z.nullable(V1AccountLeaderboardBadgeInfo$inboundSchema).optional(),
53
- location: z.nullable(V1LeaderboardLocation$inboundSchema).optional(),
51
+ app: z.nullable(V1LeaderboardAppInfo$inboundSchema).optional(),
52
+ badgeInfo: z.nullable(V1LeaderboardBadgeInfo$inboundSchema).optional(),
53
+ location: z.nullable(z.array(V1LeaderboardLocationInfo$inboundSchema))
54
+ .optional(),
54
55
  }).transform((v) => {
55
56
  return remap$(v, {
56
57
  "$schema": "dollarSchema",
@@ -61,9 +62,9 @@ export const V1AccountLeaderboardResponseBody$inboundSchema: z.ZodType<
61
62
  export type V1AccountLeaderboardResponseBody$Outbound = {
62
63
  $schema?: string | undefined;
63
64
  accounts: Array<V1AccountLeaderboardAccount$Outbound> | null;
64
- app?: LeaderboardApp$Outbound | null | undefined;
65
- badgeInfo?: V1AccountLeaderboardBadgeInfo$Outbound | null | undefined;
66
- location?: V1LeaderboardLocation$Outbound | null | undefined;
65
+ app?: V1LeaderboardAppInfo$Outbound | null | undefined;
66
+ badgeInfo?: V1LeaderboardBadgeInfo$Outbound | null | undefined;
67
+ location?: Array<V1LeaderboardLocationInfo$Outbound> | null | undefined;
67
68
  };
68
69
 
69
70
  /** @internal */
@@ -74,10 +75,10 @@ export const V1AccountLeaderboardResponseBody$outboundSchema: z.ZodType<
74
75
  > = z.object({
75
76
  dollarSchema: z.string().optional(),
76
77
  accounts: z.nullable(z.array(V1AccountLeaderboardAccount$outboundSchema)),
77
- app: z.nullable(LeaderboardApp$outboundSchema).optional(),
78
- badgeInfo: z.nullable(V1AccountLeaderboardBadgeInfo$outboundSchema)
78
+ app: z.nullable(V1LeaderboardAppInfo$outboundSchema).optional(),
79
+ badgeInfo: z.nullable(V1LeaderboardBadgeInfo$outboundSchema).optional(),
80
+ location: z.nullable(z.array(V1LeaderboardLocationInfo$outboundSchema))
79
81
  .optional(),
80
- location: z.nullable(V1LeaderboardLocation$outboundSchema).optional(),
81
82
  }).transform((v) => {
82
83
  return remap$(v, {
83
84
  dollarSchema: "$schema",
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ IDStruct,
8
+ IDStruct$inboundSchema,
9
+ IDStruct$Outbound,
10
+ IDStruct$outboundSchema,
11
+ } from "./idstruct.js";
12
+ import {
13
+ VanityStruct,
14
+ VanityStruct$inboundSchema,
15
+ VanityStruct$Outbound,
16
+ VanityStruct$outboundSchema,
17
+ } from "./vanitystruct.js";
18
+
19
+ export type V1AccountQueueRequestBody = {
20
+ /**
21
+ * Force the queue to process this account, staff only
22
+ */
23
+ force: boolean;
24
+ id?: IDStruct | undefined;
25
+ vanity?: VanityStruct | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
30
+ V1AccountQueueRequestBody,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ force: z.boolean(),
35
+ id: IDStruct$inboundSchema.optional(),
36
+ vanity: VanityStruct$inboundSchema.optional(),
37
+ });
38
+
39
+ /** @internal */
40
+ export type V1AccountQueueRequestBody$Outbound = {
41
+ force: boolean;
42
+ id?: IDStruct$Outbound | undefined;
43
+ vanity?: VanityStruct$Outbound | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const V1AccountQueueRequestBody$outboundSchema: z.ZodType<
48
+ V1AccountQueueRequestBody$Outbound,
49
+ z.ZodTypeDef,
50
+ V1AccountQueueRequestBody
51
+ > = z.object({
52
+ force: z.boolean(),
53
+ id: IDStruct$outboundSchema.optional(),
54
+ vanity: VanityStruct$outboundSchema.optional(),
55
+ });
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace V1AccountQueueRequestBody$ {
62
+ /** @deprecated use `V1AccountQueueRequestBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1AccountQueueRequestBody$inboundSchema;
64
+ /** @deprecated use `V1AccountQueueRequestBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1AccountQueueRequestBody$outboundSchema;
66
+ /** @deprecated use `V1AccountQueueRequestBody$Outbound` instead. */
67
+ export type Outbound = V1AccountQueueRequestBody$Outbound;
68
+ }
@@ -23,11 +23,11 @@ export type V1BadgeTagsResponseBody = {
23
23
  */
24
24
  dollarSchema?: string | undefined;
25
25
  /**
26
- * The availiable color tags
26
+ * The available color tags
27
27
  */
28
28
  colorTags: Array<ColorTag> | null;
29
29
  /**
30
- * The availiable design tags
30
+ * The available design tags
31
31
  */
32
32
  designTags: Array<DesignTag> | null;
33
33
  };
@@ -78,9 +78,9 @@ export type V1GetSettingsBody = {
78
78
  */
79
79
  emailNotifications: Array<EmailNotification> | null;
80
80
  /**
81
- * Whether the account has verified their email
81
+ * The time the email was verified
82
82
  */
83
- emailVerified: boolean;
83
+ emailVerifiedAt: Date | null;
84
84
  /**
85
85
  * Whether the account is hidden in the leaderboards
86
86
  */
@@ -140,7 +140,9 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
140
140
  developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
141
141
  email: z.string(),
142
142
  emailNotifications: z.nullable(z.array(EmailNotification$inboundSchema)),
143
- emailVerified: z.boolean(),
143
+ emailVerifiedAt: z.nullable(
144
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
145
+ ),
144
146
  hidden: z.boolean(),
145
147
  images: z.nullable(z.array(Image$inboundSchema)),
146
148
  language: z.string(),
@@ -162,7 +164,7 @@ export type V1GetSettingsBody$Outbound = {
162
164
  developerApps: Array<DeveloperApp$Outbound> | null;
163
165
  email: string;
164
166
  emailNotifications: Array<EmailNotification$Outbound> | null;
165
- emailVerified: boolean;
167
+ emailVerifiedAt: string | null;
166
168
  hidden: boolean;
167
169
  images: Array<Image$Outbound> | null;
168
170
  language: string;
@@ -184,7 +186,7 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
184
186
  developerApps: z.nullable(z.array(DeveloperApp$outboundSchema)),
185
187
  email: z.string(),
186
188
  emailNotifications: z.nullable(z.array(EmailNotification$outboundSchema)),
187
- emailVerified: z.boolean(),
189
+ emailVerifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
188
190
  hidden: z.boolean(),
189
191
  images: z.nullable(z.array(Image$outboundSchema)),
190
192
  language: z.string(),
@@ -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 V1LeaderboardAppInfo = {
8
+ /**
9
+ * The id of the app
10
+ */
11
+ id: 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 type of the app
22
+ */
23
+ type: string;
24
+ };
25
+
26
+ /** @internal */
27
+ export const V1LeaderboardAppInfo$inboundSchema: z.ZodType<
28
+ V1LeaderboardAppInfo,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ id: z.number().int(),
33
+ image: z.string(),
34
+ name: z.string(),
35
+ type: z.string(),
36
+ });
37
+
38
+ /** @internal */
39
+ export type V1LeaderboardAppInfo$Outbound = {
40
+ id: number;
41
+ image: string;
42
+ name: string;
43
+ type: string;
44
+ };
45
+
46
+ /** @internal */
47
+ export const V1LeaderboardAppInfo$outboundSchema: z.ZodType<
48
+ V1LeaderboardAppInfo$Outbound,
49
+ z.ZodTypeDef,
50
+ V1LeaderboardAppInfo
51
+ > = z.object({
52
+ id: z.number().int(),
53
+ image: z.string(),
54
+ name: z.string(),
55
+ type: z.string(),
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 V1LeaderboardAppInfo$ {
63
+ /** @deprecated use `V1LeaderboardAppInfo$inboundSchema` instead. */
64
+ export const inboundSchema = V1LeaderboardAppInfo$inboundSchema;
65
+ /** @deprecated use `V1LeaderboardAppInfo$outboundSchema` instead. */
66
+ export const outboundSchema = V1LeaderboardAppInfo$outboundSchema;
67
+ /** @deprecated use `V1LeaderboardAppInfo$Outbound` instead. */
68
+ export type Outbound = V1LeaderboardAppInfo$Outbound;
69
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1LeaderboardBadgeInfo = {
8
+ /**
9
+ * The id of the app
10
+ */
11
+ appId: number;
12
+ /**
13
+ * The image of the app
14
+ */
15
+ appImage: string;
16
+ /**
17
+ * The name of the app
18
+ */
19
+ appName: string;
20
+ /**
21
+ * The image of the badge
22
+ */
23
+ image: string;
24
+ /**
25
+ * Whether the badge is foil or not
26
+ */
27
+ isFoil: boolean;
28
+ /**
29
+ * The level of the badge
30
+ */
31
+ level: number;
32
+ /**
33
+ * The name of the badge
34
+ */
35
+ name: string;
36
+ };
37
+
38
+ /** @internal */
39
+ export const V1LeaderboardBadgeInfo$inboundSchema: z.ZodType<
40
+ V1LeaderboardBadgeInfo,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ appId: z.number().int(),
45
+ appImage: z.string(),
46
+ appName: z.string(),
47
+ image: z.string(),
48
+ isFoil: z.boolean(),
49
+ level: z.number().int(),
50
+ name: z.string(),
51
+ });
52
+
53
+ /** @internal */
54
+ export type V1LeaderboardBadgeInfo$Outbound = {
55
+ appId: number;
56
+ appImage: string;
57
+ appName: string;
58
+ image: string;
59
+ isFoil: boolean;
60
+ level: number;
61
+ name: string;
62
+ };
63
+
64
+ /** @internal */
65
+ export const V1LeaderboardBadgeInfo$outboundSchema: z.ZodType<
66
+ V1LeaderboardBadgeInfo$Outbound,
67
+ z.ZodTypeDef,
68
+ V1LeaderboardBadgeInfo
69
+ > = z.object({
70
+ appId: z.number().int(),
71
+ appImage: z.string(),
72
+ appName: z.string(),
73
+ image: z.string(),
74
+ isFoil: z.boolean(),
75
+ level: z.number().int(),
76
+ name: z.string(),
77
+ });
78
+
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export namespace V1LeaderboardBadgeInfo$ {
84
+ /** @deprecated use `V1LeaderboardBadgeInfo$inboundSchema` instead. */
85
+ export const inboundSchema = V1LeaderboardBadgeInfo$inboundSchema;
86
+ /** @deprecated use `V1LeaderboardBadgeInfo$outboundSchema` instead. */
87
+ export const outboundSchema = V1LeaderboardBadgeInfo$outboundSchema;
88
+ /** @deprecated use `V1LeaderboardBadgeInfo$Outbound` instead. */
89
+ export type Outbound = V1LeaderboardBadgeInfo$Outbound;
90
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1LeaderboardLocationInfo = {
8
+ /**
9
+ * The city name of the location
10
+ */
11
+ cityName: string | null;
12
+ /**
13
+ * The country code of the location
14
+ */
15
+ countryCode: string | null;
16
+ /**
17
+ * The country name of the location
18
+ */
19
+ countryName: string | null;
20
+ /**
21
+ * The region of the location
22
+ */
23
+ region: string | null;
24
+ /**
25
+ * The state name of the location
26
+ */
27
+ stateName: string | null;
28
+ };
29
+
30
+ /** @internal */
31
+ export const V1LeaderboardLocationInfo$inboundSchema: z.ZodType<
32
+ V1LeaderboardLocationInfo,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ cityName: z.nullable(z.string()),
37
+ countryCode: z.nullable(z.string()),
38
+ countryName: z.nullable(z.string()),
39
+ region: z.nullable(z.string()),
40
+ stateName: z.nullable(z.string()),
41
+ });
42
+
43
+ /** @internal */
44
+ export type V1LeaderboardLocationInfo$Outbound = {
45
+ cityName: string | null;
46
+ countryCode: string | null;
47
+ countryName: string | null;
48
+ region: string | null;
49
+ stateName: string | null;
50
+ };
51
+
52
+ /** @internal */
53
+ export const V1LeaderboardLocationInfo$outboundSchema: z.ZodType<
54
+ V1LeaderboardLocationInfo$Outbound,
55
+ z.ZodTypeDef,
56
+ V1LeaderboardLocationInfo
57
+ > = z.object({
58
+ cityName: z.nullable(z.string()),
59
+ countryCode: z.nullable(z.string()),
60
+ countryName: z.nullable(z.string()),
61
+ region: z.nullable(z.string()),
62
+ stateName: z.nullable(z.string()),
63
+ });
64
+
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export namespace V1LeaderboardLocationInfo$ {
70
+ /** @deprecated use `V1LeaderboardLocationInfo$inboundSchema` instead. */
71
+ export const inboundSchema = V1LeaderboardLocationInfo$inboundSchema;
72
+ /** @deprecated use `V1LeaderboardLocationInfo$outboundSchema` instead. */
73
+ export const outboundSchema = V1LeaderboardLocationInfo$outboundSchema;
74
+ /** @deprecated use `V1LeaderboardLocationInfo$Outbound` instead. */
75
+ export type Outbound = V1LeaderboardLocationInfo$Outbound;
76
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Which type of vanity to search for
10
+ */
11
+ export const VanityStructType = {
12
+ Steam: "steam",
13
+ Internal: "internal",
14
+ } as const;
15
+ /**
16
+ * Which type of vanity to search for
17
+ */
18
+ export type VanityStructType = ClosedEnum<typeof VanityStructType>;
19
+
20
+ export type VanityStruct = {
21
+ /**
22
+ * Which type of vanity to search for
23
+ */
24
+ type: VanityStructType;
25
+ /**
26
+ * Vanity to search for
27
+ */
28
+ value: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const VanityStructType$inboundSchema: z.ZodNativeEnum<
33
+ typeof VanityStructType
34
+ > = z.nativeEnum(VanityStructType);
35
+
36
+ /** @internal */
37
+ export const VanityStructType$outboundSchema: z.ZodNativeEnum<
38
+ typeof VanityStructType
39
+ > = VanityStructType$inboundSchema;
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace VanityStructType$ {
46
+ /** @deprecated use `VanityStructType$inboundSchema` instead. */
47
+ export const inboundSchema = VanityStructType$inboundSchema;
48
+ /** @deprecated use `VanityStructType$outboundSchema` instead. */
49
+ export const outboundSchema = VanityStructType$outboundSchema;
50
+ }
51
+
52
+ /** @internal */
53
+ export const VanityStruct$inboundSchema: z.ZodType<
54
+ VanityStruct,
55
+ z.ZodTypeDef,
56
+ unknown
57
+ > = z.object({
58
+ type: VanityStructType$inboundSchema,
59
+ value: z.string(),
60
+ });
61
+
62
+ /** @internal */
63
+ export type VanityStruct$Outbound = {
64
+ type: string;
65
+ value: string;
66
+ };
67
+
68
+ /** @internal */
69
+ export const VanityStruct$outboundSchema: z.ZodType<
70
+ VanityStruct$Outbound,
71
+ z.ZodTypeDef,
72
+ VanityStruct
73
+ > = z.object({
74
+ type: VanityStructType$outboundSchema,
75
+ value: z.string(),
76
+ });
77
+
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export namespace VanityStruct$ {
83
+ /** @deprecated use `VanityStruct$inboundSchema` instead. */
84
+ export const inboundSchema = VanityStruct$inboundSchema;
85
+ /** @deprecated use `VanityStruct$outboundSchema` instead. */
86
+ export const outboundSchema = VanityStruct$outboundSchema;
87
+ /** @deprecated use `VanityStruct$Outbound` instead. */
88
+ export type Outbound = VanityStruct$Outbound;
89
+ }