@steamsets/client-ts 0.11.8 → 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 (151) hide show
  1. package/README.md +2 -2
  2. package/docs/sdks/account/README.md +19 -9
  3. package/docs/sdks/data/README.md +3 -1
  4. package/docs/sdks/leaderboard/README.md +16 -8
  5. package/docs/sdks/public/README.md +3 -1
  6. package/funcs/accountAccountV1Queue.d.ts +1 -1
  7. package/funcs/accountAccountV1Queue.d.ts.map +1 -1
  8. package/funcs/accountAccountV1Queue.js +1 -1
  9. package/funcs/accountAccountV1Queue.js.map +1 -1
  10. package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  11. package/funcs/accountAccountV1SettingsSendEmailVerification.js +1 -1
  12. package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
  13. package/funcs/accountLeaderboardV1GetAccount.d.ts +1 -1
  14. package/funcs/accountLeaderboardV1GetAccount.js +1 -1
  15. package/funcs/dataAccountV1Queue.d.ts +1 -1
  16. package/funcs/dataAccountV1Queue.d.ts.map +1 -1
  17. package/funcs/dataAccountV1Queue.js +1 -1
  18. package/funcs/dataAccountV1Queue.js.map +1 -1
  19. package/funcs/leaderboardLeaderboardV1GetAccount.d.ts +1 -1
  20. package/funcs/leaderboardLeaderboardV1GetAccount.js +1 -1
  21. package/funcs/publicAccountV1Queue.d.ts +1 -1
  22. package/funcs/publicAccountV1Queue.d.ts.map +1 -1
  23. package/funcs/publicAccountV1Queue.js +1 -1
  24. package/funcs/publicAccountV1Queue.js.map +1 -1
  25. package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
  26. package/funcs/settingsAccountV1SettingsSendEmailVerification.js +1 -1
  27. package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
  28. package/lib/config.d.ts +2 -2
  29. package/lib/config.js +2 -2
  30. package/models/components/idstruct.d.ts +33 -0
  31. package/models/components/idstruct.d.ts.map +1 -0
  32. package/models/components/{leaderboardapp.js → idstruct.js} +17 -11
  33. package/models/components/idstruct.js.map +1 -0
  34. package/models/components/index.d.ts +9 -3
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +9 -3
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/leaderboardaccount.d.ts +0 -8
  39. package/models/components/leaderboardaccount.d.ts.map +1 -1
  40. package/models/components/leaderboardaccount.js +0 -5
  41. package/models/components/leaderboardaccount.js.map +1 -1
  42. package/models/components/leaderboardaccountbadgeinfo.d.ts +38 -0
  43. package/models/components/leaderboardaccountbadgeinfo.d.ts.map +1 -0
  44. package/models/components/{leaderboardbadgeinfo.js → leaderboardaccountbadgeinfo.js} +13 -11
  45. package/models/components/leaderboardaccountbadgeinfo.js.map +1 -0
  46. package/models/components/v1accountfriend.d.ts +0 -8
  47. package/models/components/v1accountfriend.d.ts.map +1 -1
  48. package/models/components/v1accountfriend.js +0 -5
  49. package/models/components/v1accountfriend.js.map +1 -1
  50. package/models/components/v1accountleaderboardaccount.d.ts +3 -8
  51. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  52. package/models/components/v1accountleaderboardaccount.js +3 -5
  53. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  54. package/models/components/v1accountleaderboardappsearch.d.ts +28 -0
  55. package/models/components/v1accountleaderboardappsearch.d.ts.map +1 -0
  56. package/models/components/{v1accountleaderboardbadgeinfo.js → v1accountleaderboardappsearch.js} +15 -11
  57. package/models/components/v1accountleaderboardappsearch.js.map +1 -0
  58. package/models/components/v1accountleaderboardbadgesearch.d.ts +33 -0
  59. package/models/components/v1accountleaderboardbadgesearch.d.ts.map +1 -0
  60. package/models/components/v1accountleaderboardbadgesearch.js +52 -0
  61. package/models/components/v1accountleaderboardbadgesearch.js.map +1 -0
  62. package/models/components/v1accountleaderboardrequestbody.d.ts +6 -15
  63. package/models/components/v1accountleaderboardrequestbody.d.ts.map +1 -1
  64. package/models/components/v1accountleaderboardrequestbody.js +6 -6
  65. package/models/components/v1accountleaderboardrequestbody.js.map +1 -1
  66. package/models/components/v1accountleaderboardresponsebody.d.ts +9 -9
  67. package/models/components/v1accountleaderboardresponsebody.d.ts.map +1 -1
  68. package/models/components/v1accountleaderboardresponsebody.js +10 -9
  69. package/models/components/v1accountleaderboardresponsebody.js.map +1 -1
  70. package/models/components/v1accountqueuerequestbody.d.ts +34 -0
  71. package/models/components/v1accountqueuerequestbody.d.ts.map +1 -0
  72. package/models/components/v1accountqueuerequestbody.js +56 -0
  73. package/models/components/v1accountqueuerequestbody.js.map +1 -0
  74. package/models/components/v1getsettingsbody.d.ts +3 -3
  75. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  76. package/models/components/v1getsettingsbody.js +2 -2
  77. package/models/components/v1getsettingsbody.js.map +1 -1
  78. package/models/components/v1leaderboardappinfo.d.ts +43 -0
  79. package/models/components/v1leaderboardappinfo.d.ts.map +1 -0
  80. package/models/components/v1leaderboardappinfo.js +56 -0
  81. package/models/components/v1leaderboardappinfo.js.map +1 -0
  82. package/models/components/v1leaderboardbadgeinfo.d.ts +58 -0
  83. package/models/components/v1leaderboardbadgeinfo.d.ts.map +1 -0
  84. package/models/components/v1leaderboardbadgeinfo.js +62 -0
  85. package/models/components/v1leaderboardbadgeinfo.js.map +1 -0
  86. package/models/components/v1leaderboardlocationinfo.d.ts +48 -0
  87. package/models/components/v1leaderboardlocationinfo.d.ts.map +1 -0
  88. package/models/components/v1leaderboardlocationinfo.js +58 -0
  89. package/models/components/v1leaderboardlocationinfo.js.map +1 -0
  90. package/models/components/vanitystruct.d.ts +65 -0
  91. package/models/components/vanitystruct.d.ts.map +1 -0
  92. package/models/components/vanitystruct.js +74 -0
  93. package/models/components/vanitystruct.js.map +1 -0
  94. package/models/operations/accountv1settingssendemailverification.d.ts +6 -0
  95. package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -1
  96. package/models/operations/accountv1settingssendemailverification.js +4 -0
  97. package/models/operations/accountv1settingssendemailverification.js.map +1 -1
  98. package/package.json +1 -1
  99. package/sdk/account.d.ts +2 -2
  100. package/sdk/account.d.ts.map +1 -1
  101. package/sdk/account.js +1 -1
  102. package/sdk/account.js.map +1 -1
  103. package/sdk/data.d.ts +1 -1
  104. package/sdk/data.d.ts.map +1 -1
  105. package/sdk/data.js.map +1 -1
  106. package/sdk/leaderboard.d.ts +1 -1
  107. package/sdk/leaderboard.js +1 -1
  108. package/sdk/public.d.ts +1 -1
  109. package/sdk/public.d.ts.map +1 -1
  110. package/sdk/public.js.map +1 -1
  111. package/src/funcs/accountAccountV1Queue.ts +2 -2
  112. package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +1 -0
  113. package/src/funcs/accountLeaderboardV1GetAccount.ts +1 -1
  114. package/src/funcs/dataAccountV1Queue.ts +2 -2
  115. package/src/funcs/leaderboardLeaderboardV1GetAccount.ts +1 -1
  116. package/src/funcs/publicAccountV1Queue.ts +2 -2
  117. package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +1 -0
  118. package/src/lib/config.ts +2 -2
  119. package/src/models/components/idstruct.ts +55 -0
  120. package/src/models/components/index.ts +9 -3
  121. package/src/models/components/leaderboardaccount.ts +0 -17
  122. package/src/models/components/leaderboardaccountbadgeinfo.ts +64 -0
  123. package/src/models/components/v1accountfriend.ts +0 -17
  124. package/src/models/components/v1accountleaderboardaccount.ts +9 -16
  125. package/src/models/components/v1accountleaderboardappsearch.ts +48 -0
  126. package/src/models/components/v1accountleaderboardbadgesearch.ts +55 -0
  127. package/src/models/components/v1accountleaderboardrequestbody.ts +20 -21
  128. package/src/models/components/v1accountleaderboardresponsebody.ts +29 -28
  129. package/src/models/components/v1accountqueuerequestbody.ts +68 -0
  130. package/src/models/components/v1getsettingsbody.ts +7 -5
  131. package/src/models/components/v1leaderboardappinfo.ts +69 -0
  132. package/src/models/components/v1leaderboardbadgeinfo.ts +90 -0
  133. package/src/models/components/v1leaderboardlocationinfo.ts +76 -0
  134. package/src/models/components/vanitystruct.ts +89 -0
  135. package/src/models/operations/accountv1settingssendemailverification.ts +6 -0
  136. package/src/sdk/account.ts +2 -2
  137. package/src/sdk/data.ts +1 -1
  138. package/src/sdk/leaderboard.ts +1 -1
  139. package/src/sdk/public.ts +1 -1
  140. package/models/components/leaderboardapp.d.ts +0 -21
  141. package/models/components/leaderboardapp.d.ts.map +0 -1
  142. package/models/components/leaderboardapp.js.map +0 -1
  143. package/models/components/leaderboardbadgeinfo.d.ts +0 -33
  144. package/models/components/leaderboardbadgeinfo.d.ts.map +0 -1
  145. package/models/components/leaderboardbadgeinfo.js.map +0 -1
  146. package/models/components/v1accountleaderboardbadgeinfo.d.ts +0 -21
  147. package/models/components/v1accountleaderboardbadgeinfo.d.ts.map +0 -1
  148. package/models/components/v1accountleaderboardbadgeinfo.js.map +0 -1
  149. package/src/models/components/leaderboardapp.ts +0 -37
  150. package/src/models/components/leaderboardbadgeinfo.ts +0 -57
  151. package/src/models/components/v1accountleaderboardbadgeinfo.ts +0 -37
@@ -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
+ }
@@ -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
+ }
@@ -12,6 +12,7 @@ export type AccountV1SettingsSendEmailVerificationRequest = {
12
12
 
13
13
  export type AccountV1SettingsSendEmailVerificationResponse = {
14
14
  httpMeta: components.HTTPMetadata;
15
+ headers: { [k: string]: Array<string> };
15
16
  };
16
17
 
17
18
  /** @internal */
@@ -70,15 +71,18 @@ export const AccountV1SettingsSendEmailVerificationResponse$inboundSchema:
70
71
  unknown
71
72
  > = z.object({
72
73
  HttpMeta: components.HTTPMetadata$inboundSchema,
74
+ Headers: z.record(z.array(z.string())),
73
75
  }).transform((v) => {
74
76
  return remap$(v, {
75
77
  "HttpMeta": "httpMeta",
78
+ "Headers": "headers",
76
79
  });
77
80
  });
78
81
 
79
82
  /** @internal */
80
83
  export type AccountV1SettingsSendEmailVerificationResponse$Outbound = {
81
84
  HttpMeta: components.HTTPMetadata$Outbound;
85
+ Headers: { [k: string]: Array<string> };
82
86
  };
83
87
 
84
88
  /** @internal */
@@ -89,9 +93,11 @@ export const AccountV1SettingsSendEmailVerificationResponse$outboundSchema:
89
93
  AccountV1SettingsSendEmailVerificationResponse
90
94
  > = z.object({
91
95
  httpMeta: components.HTTPMetadata$outboundSchema,
96
+ headers: z.record(z.array(z.string())),
92
97
  }).transform((v) => {
93
98
  return remap$(v, {
94
99
  httpMeta: "HttpMeta",
100
+ headers: "Headers",
95
101
  });
96
102
  });
97
103
 
@@ -256,7 +256,7 @@ export class Account extends ClientSDK {
256
256
  * Queue an account for processing
257
257
  */
258
258
  async accountV1Queue(
259
- request: components.AccountSearch,
259
+ request: components.V1AccountQueueRequestBody,
260
260
  options?: RequestOptions,
261
261
  ): Promise<operations.AccountV1QueueResponse> {
262
262
  return unwrapAsync(accountAccountV1Queue(
@@ -365,7 +365,7 @@ export class Account extends ClientSDK {
365
365
  }
366
366
 
367
367
  /**
368
- * Get an leaderboard for accounts
368
+ * Get a leaderboard for accounts
369
369
  */
370
370
  async leaderboardV1GetAccount(
371
371
  request: components.V1AccountLeaderboardRequestBody,
package/src/sdk/data.ts CHANGED
@@ -117,7 +117,7 @@ export class Data extends ClientSDK {
117
117
  * Queue an account for processing
118
118
  */
119
119
  async accountV1Queue(
120
- request: components.AccountSearch,
120
+ request: components.V1AccountQueueRequestBody,
121
121
  options?: RequestOptions,
122
122
  ): Promise<operations.AccountV1QueueResponse> {
123
123
  return unwrapAsync(dataAccountV1Queue(
@@ -26,7 +26,7 @@ export class Leaderboard extends ClientSDK {
26
26
  }
27
27
 
28
28
  /**
29
- * Get an leaderboard for accounts
29
+ * Get a leaderboard for accounts
30
30
  */
31
31
  async leaderboardV1GetAccount(
32
32
  request: components.V1AccountLeaderboardRequestBody,
package/src/sdk/public.ts CHANGED
@@ -104,7 +104,7 @@ export class Public extends ClientSDK {
104
104
  * Queue an account for processing
105
105
  */
106
106
  async accountV1Queue(
107
- request: components.AccountSearch,
107
+ request: components.V1AccountQueueRequestBody,
108
108
  options?: RequestOptions,
109
109
  ): Promise<operations.AccountV1QueueResponse> {
110
110
  return unwrapAsync(publicAccountV1Queue(
@@ -1,21 +0,0 @@
1
- import * as z from "zod";
2
- export type LeaderboardApp = {};
3
- /** @internal */
4
- export declare const LeaderboardApp$inboundSchema: z.ZodType<LeaderboardApp, z.ZodTypeDef, unknown>;
5
- /** @internal */
6
- export type LeaderboardApp$Outbound = {};
7
- /** @internal */
8
- export declare const LeaderboardApp$outboundSchema: z.ZodType<LeaderboardApp$Outbound, z.ZodTypeDef, LeaderboardApp>;
9
- /**
10
- * @internal
11
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
12
- */
13
- export declare namespace LeaderboardApp$ {
14
- /** @deprecated use `LeaderboardApp$inboundSchema` instead. */
15
- const inboundSchema: z.ZodType<LeaderboardApp, z.ZodTypeDef, unknown>;
16
- /** @deprecated use `LeaderboardApp$outboundSchema` instead. */
17
- const outboundSchema: z.ZodType<LeaderboardApp$Outbound, z.ZodTypeDef, LeaderboardApp>;
18
- /** @deprecated use `LeaderboardApp$Outbound` instead. */
19
- type Outbound = LeaderboardApp$Outbound;
20
- }
21
- //# sourceMappingURL=leaderboardapp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardapp.d.ts","sourceRoot":"","sources":["../../src/models/components/leaderboardapp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG,EAAE,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CACA,CAAC;AAEjB;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardapp.js","sourceRoot":"","sources":["../../src/models/components/leaderboardapp.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAIzB,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B"}
@@ -1,33 +0,0 @@
1
- import * as z from "zod";
2
- export type LeaderboardBadgeInfo = {
3
- /**
4
- * The time the badge was completed
5
- */
6
- completionTime: Date;
7
- /**
8
- * The level of the badge
9
- */
10
- level: number;
11
- };
12
- /** @internal */
13
- export declare const LeaderboardBadgeInfo$inboundSchema: z.ZodType<LeaderboardBadgeInfo, z.ZodTypeDef, unknown>;
14
- /** @internal */
15
- export type LeaderboardBadgeInfo$Outbound = {
16
- completionTime: string;
17
- level: number;
18
- };
19
- /** @internal */
20
- export declare const LeaderboardBadgeInfo$outboundSchema: z.ZodType<LeaderboardBadgeInfo$Outbound, z.ZodTypeDef, LeaderboardBadgeInfo>;
21
- /**
22
- * @internal
23
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
- */
25
- export declare namespace LeaderboardBadgeInfo$ {
26
- /** @deprecated use `LeaderboardBadgeInfo$inboundSchema` instead. */
27
- const inboundSchema: z.ZodType<LeaderboardBadgeInfo, z.ZodTypeDef, unknown>;
28
- /** @deprecated use `LeaderboardBadgeInfo$outboundSchema` instead. */
29
- const outboundSchema: z.ZodType<LeaderboardBadgeInfo$Outbound, z.ZodTypeDef, LeaderboardBadgeInfo>;
30
- /** @deprecated use `LeaderboardBadgeInfo$Outbound` instead. */
31
- type Outbound = LeaderboardBadgeInfo$Outbound;
32
- }
33
- //# sourceMappingURL=leaderboardbadgeinfo.d.ts.map