@steamsets/client-ts 0.33.5 → 0.33.7

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 (154) hide show
  1. package/README.md +10 -8
  2. package/funcs/{leaderboardLeaderboardGetBucketLeaders.d.ts → accountCompareBadges.d.ts} +3 -3
  3. package/funcs/accountCompareBadges.d.ts.map +1 -0
  4. package/funcs/accountCompareBadges.js +134 -0
  5. package/funcs/accountCompareBadges.js.map +1 -0
  6. package/funcs/{accountAccountGetViewStats.d.ts → accountGetViewStats.d.ts} +2 -2
  7. package/funcs/accountGetViewStats.d.ts.map +1 -0
  8. package/funcs/{accountAccountGetViewStats.js → accountGetViewStats.js} +5 -5
  9. package/funcs/accountGetViewStats.js.map +1 -0
  10. package/funcs/{activityActivityListAccountFeed.d.ts → activityListAccountFeed.d.ts} +2 -2
  11. package/funcs/activityListAccountFeed.d.ts.map +1 -0
  12. package/funcs/{activityActivityListAccountFeed.js → activityListAccountFeed.js} +5 -5
  13. package/funcs/activityListAccountFeed.js.map +1 -0
  14. package/funcs/leaderboardGetBucketLeaders.d.ts +16 -0
  15. package/funcs/leaderboardGetBucketLeaders.d.ts.map +1 -0
  16. package/funcs/{leaderboardLeaderboardGetBucketLeaders.js → leaderboardGetBucketLeaders.js} +6 -6
  17. package/funcs/leaderboardGetBucketLeaders.js.map +1 -0
  18. package/funcs/{leaderboardLeaderboardGetChanges.d.ts → leaderboardGetChanges.d.ts} +2 -2
  19. package/funcs/leaderboardGetChanges.d.ts.map +1 -0
  20. package/funcs/{leaderboardLeaderboardGetChanges.js → leaderboardGetChanges.js} +5 -5
  21. package/funcs/leaderboardGetChanges.js.map +1 -0
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +2 -2
  24. package/lib/config.js +2 -2
  25. package/models/components/bucketleader.d.ts +4 -12
  26. package/models/components/bucketleader.d.ts.map +1 -1
  27. package/models/components/bucketleader.js +2 -4
  28. package/models/components/bucketleader.js.map +1 -1
  29. package/models/components/comparedtuple.d.ts +23 -0
  30. package/models/components/comparedtuple.d.ts.map +1 -0
  31. package/models/components/comparedtuple.js +63 -0
  32. package/models/components/comparedtuple.js.map +1 -0
  33. package/models/components/index.d.ts +7 -0
  34. package/models/components/index.d.ts.map +1 -1
  35. package/models/components/index.js +7 -0
  36. package/models/components/index.js.map +1 -1
  37. package/models/components/order.d.ts +32 -0
  38. package/models/components/order.d.ts.map +1 -0
  39. package/models/components/order.js +66 -0
  40. package/models/components/order.js.map +1 -0
  41. package/models/components/rangefilter.d.ts +23 -0
  42. package/models/components/rangefilter.d.ts.map +1 -0
  43. package/models/components/rangefilter.js +56 -0
  44. package/models/components/rangefilter.js.map +1 -0
  45. package/models/components/resolvedaccount.d.ts +13 -0
  46. package/models/components/resolvedaccount.d.ts.map +1 -0
  47. package/models/components/resolvedaccount.js +53 -0
  48. package/models/components/resolvedaccount.js.map +1 -0
  49. package/models/components/tupleaccount.d.ts +13 -0
  50. package/models/components/tupleaccount.d.ts.map +1 -0
  51. package/models/components/tupleaccount.js +54 -0
  52. package/models/components/tupleaccount.js.map +1 -0
  53. package/models/components/v1accountcomparebadgesrequestbody.d.ts +74 -0
  54. package/models/components/v1accountcomparebadgesrequestbody.d.ts.map +1 -0
  55. package/models/components/v1accountcomparebadgesrequestbody.js +94 -0
  56. package/models/components/v1accountcomparebadgesrequestbody.js.map +1 -0
  57. package/models/components/v1accountcomparebadgesresponsebody.d.ts +25 -0
  58. package/models/components/v1accountcomparebadgesresponsebody.d.ts.map +1 -0
  59. package/models/components/v1accountcomparebadgesresponsebody.js +61 -0
  60. package/models/components/v1accountcomparebadgesresponsebody.js.map +1 -0
  61. package/models/components/v1accountlistbadgesrequestbody.d.ts +4 -4
  62. package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
  63. package/models/components/v1accountlistbadgesrequestbody.js +4 -5
  64. package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
  65. package/models/components/v1apporder.d.ts +8 -8
  66. package/models/components/v1apporder.d.ts.map +1 -1
  67. package/models/components/v1apporder.js +7 -8
  68. package/models/components/v1apporder.js.map +1 -1
  69. package/models/components/v1leaderboardgetbucketleadersrequestbody.d.ts +5 -4
  70. package/models/components/v1leaderboardgetbucketleadersrequestbody.d.ts.map +1 -1
  71. package/models/components/v1leaderboardgetbucketleadersrequestbody.js +2 -1
  72. package/models/components/v1leaderboardgetbucketleadersrequestbody.js.map +1 -1
  73. package/models/operations/comparebadges.d.ts +15 -0
  74. package/models/operations/comparebadges.d.ts.map +1 -0
  75. package/models/operations/comparebadges.js +59 -0
  76. package/models/operations/comparebadges.js.map +1 -0
  77. package/models/operations/getbucketleaders.d.ts +15 -0
  78. package/models/operations/getbucketleaders.d.ts.map +1 -0
  79. package/models/operations/{leaderboardgetbucketleaders.js → getbucketleaders.js} +6 -6
  80. package/models/operations/getbucketleaders.js.map +1 -0
  81. package/models/operations/{leaderboardgetchanges.d.ts → getchanges.d.ts} +4 -4
  82. package/models/operations/getchanges.d.ts.map +1 -0
  83. package/models/operations/{leaderboardgetchanges.js → getchanges.js} +6 -6
  84. package/models/operations/getchanges.js.map +1 -0
  85. package/models/operations/getviewstats.d.ts +15 -0
  86. package/models/operations/getviewstats.d.ts.map +1 -0
  87. package/models/operations/{accountgetviewstats.js → getviewstats.js} +6 -6
  88. package/models/operations/getviewstats.js.map +1 -0
  89. package/models/operations/index.d.ts +5 -4
  90. package/models/operations/index.d.ts.map +1 -1
  91. package/models/operations/index.js +5 -4
  92. package/models/operations/index.js.map +1 -1
  93. package/models/operations/{activitylistaccountfeed.d.ts → listaccountfeed.d.ts} +4 -4
  94. package/models/operations/listaccountfeed.d.ts.map +1 -0
  95. package/models/operations/{activitylistaccountfeed.js → listaccountfeed.js} +6 -6
  96. package/models/operations/listaccountfeed.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/account.d.ts +5 -1
  99. package/sdk/account.d.ts.map +1 -1
  100. package/sdk/account.js +10 -3
  101. package/sdk/account.js.map +1 -1
  102. package/sdk/activity.d.ts +1 -1
  103. package/sdk/activity.d.ts.map +1 -1
  104. package/sdk/activity.js +3 -3
  105. package/sdk/activity.js.map +1 -1
  106. package/sdk/leaderboard.d.ts +3 -3
  107. package/sdk/leaderboard.d.ts.map +1 -1
  108. package/sdk/leaderboard.js +7 -7
  109. package/sdk/leaderboard.js.map +1 -1
  110. package/src/funcs/accountCompareBadges.ts +188 -0
  111. package/src/funcs/{accountAccountGetViewStats.ts → accountGetViewStats.ts} +6 -6
  112. package/src/funcs/{activityActivityListAccountFeed.ts → activityListAccountFeed.ts} +6 -6
  113. package/src/funcs/{leaderboardLeaderboardGetBucketLeaders.ts → leaderboardGetBucketLeaders.ts} +7 -7
  114. package/src/funcs/{leaderboardLeaderboardGetChanges.ts → leaderboardGetChanges.ts} +6 -6
  115. package/src/lib/config.ts +2 -2
  116. package/src/models/components/bucketleader.ts +6 -16
  117. package/src/models/components/comparedtuple.ts +56 -0
  118. package/src/models/components/index.ts +7 -0
  119. package/src/models/components/order.ts +53 -0
  120. package/src/models/components/rangefilter.ts +44 -0
  121. package/src/models/components/resolvedaccount.ts +37 -0
  122. package/src/models/components/tupleaccount.ts +38 -0
  123. package/src/models/components/v1accountcomparebadgesrequestbody.ts +128 -0
  124. package/src/models/components/v1accountcomparebadgesresponsebody.ts +59 -0
  125. package/src/models/components/v1accountlistbadgesrequestbody.ts +12 -6
  126. package/src/models/components/v1apporder.ts +13 -11
  127. package/src/models/components/v1leaderboardgetbucketleadersrequestbody.ts +5 -4
  128. package/src/models/operations/comparebadges.ts +46 -0
  129. package/src/models/operations/{leaderboardgetbucketleaders.ts → getbucketleaders.ts} +7 -8
  130. package/src/models/operations/{leaderboardgetchanges.ts → getchanges.ts} +7 -7
  131. package/src/models/operations/{accountgetviewstats.ts → getviewstats.ts} +7 -7
  132. package/src/models/operations/index.ts +5 -4
  133. package/src/models/operations/{activitylistaccountfeed.ts → listaccountfeed.ts} +7 -7
  134. package/src/sdk/account.ts +19 -4
  135. package/src/sdk/activity.ts +4 -4
  136. package/src/sdk/leaderboard.ts +9 -9
  137. package/funcs/accountAccountGetViewStats.d.ts.map +0 -1
  138. package/funcs/accountAccountGetViewStats.js.map +0 -1
  139. package/funcs/activityActivityListAccountFeed.d.ts.map +0 -1
  140. package/funcs/activityActivityListAccountFeed.js.map +0 -1
  141. package/funcs/leaderboardLeaderboardGetBucketLeaders.d.ts.map +0 -1
  142. package/funcs/leaderboardLeaderboardGetBucketLeaders.js.map +0 -1
  143. package/funcs/leaderboardLeaderboardGetChanges.d.ts.map +0 -1
  144. package/funcs/leaderboardLeaderboardGetChanges.js.map +0 -1
  145. package/models/operations/accountgetviewstats.d.ts +0 -15
  146. package/models/operations/accountgetviewstats.d.ts.map +0 -1
  147. package/models/operations/accountgetviewstats.js.map +0 -1
  148. package/models/operations/activitylistaccountfeed.d.ts.map +0 -1
  149. package/models/operations/activitylistaccountfeed.js.map +0 -1
  150. package/models/operations/leaderboardgetbucketleaders.d.ts +0 -15
  151. package/models/operations/leaderboardgetbucketleaders.d.ts.map +0 -1
  152. package/models/operations/leaderboardgetbucketleaders.js.map +0 -1
  153. package/models/operations/leaderboardgetchanges.d.ts.map +0 -1
  154. package/models/operations/leaderboardgetchanges.js.map +0 -1
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type TupleAccount = {
11
+ completedAt?: Date | undefined;
12
+ level: number;
13
+ steamId: string;
14
+ xp: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const TupleAccount$inboundSchema: z.ZodType<
19
+ TupleAccount,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ completedAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
24
+ .optional(),
25
+ level: z.number().int(),
26
+ steamId: z.string(),
27
+ xp: z.number().int(),
28
+ });
29
+
30
+ export function tupleAccountFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<TupleAccount, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => TupleAccount$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'TupleAccount' from JSON`,
37
+ );
38
+ }
@@ -0,0 +1,128 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ AccountSearch,
9
+ AccountSearch$Outbound,
10
+ AccountSearch$outboundSchema,
11
+ } from "./accountsearch.js";
12
+ import { Order, Order$Outbound, Order$outboundSchema } from "./order.js";
13
+ import {
14
+ RangeFilter,
15
+ RangeFilter$Outbound,
16
+ RangeFilter$outboundSchema,
17
+ } from "./rangefilter.js";
18
+
19
+ export const Filter = {
20
+ All: "all",
21
+ Normal: "normal",
22
+ Foil: "foil",
23
+ } as const;
24
+ export type Filter = ClosedEnum<typeof Filter>;
25
+
26
+ export const Ignore = {
27
+ Event: "event",
28
+ Sale: "sale",
29
+ Steam: "steam",
30
+ Infinite: "infinite",
31
+ } as const;
32
+ export type Ignore = ClosedEnum<typeof Ignore>;
33
+
34
+ export const Match = {
35
+ Tuple: "tuple",
36
+ TupleLevel: "tupleLevel",
37
+ TupleMinLevel: "tupleMinLevel",
38
+ } as const;
39
+ export type Match = ClosedEnum<typeof Match>;
40
+
41
+ export const Mode = {
42
+ Missing: "missing",
43
+ OwnedByAll: "ownedByAll",
44
+ Unique: "unique",
45
+ } as const;
46
+ export type Mode = ClosedEnum<typeof Mode>;
47
+
48
+ export type V1AccountCompareBadgesRequestBody = {
49
+ accounts: Array<AccountSearch> | null;
50
+ appIds?: Array<number> | null | undefined;
51
+ appTypes?: Array<string> | null | undefined;
52
+ excludeAppIds?: Array<number> | null | undefined;
53
+ filter?: Filter | undefined;
54
+ ignore?: Array<Ignore> | null | undefined;
55
+ match?: Match | undefined;
56
+ /**
57
+ * Only used when match=tupleMinLevel
58
+ */
59
+ minLevel?: number | undefined;
60
+ mode?: Mode | undefined;
61
+ order?: Order | undefined;
62
+ page?: number | undefined;
63
+ ranges?: Array<RangeFilter> | null | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const Filter$outboundSchema: z.ZodNativeEnum<typeof Filter> = z
68
+ .nativeEnum(Filter);
69
+
70
+ /** @internal */
71
+ export const Ignore$outboundSchema: z.ZodNativeEnum<typeof Ignore> = z
72
+ .nativeEnum(Ignore);
73
+
74
+ /** @internal */
75
+ export const Match$outboundSchema: z.ZodNativeEnum<typeof Match> = z.nativeEnum(
76
+ Match,
77
+ );
78
+
79
+ /** @internal */
80
+ export const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode> = z.nativeEnum(
81
+ Mode,
82
+ );
83
+
84
+ /** @internal */
85
+ export type V1AccountCompareBadgesRequestBody$Outbound = {
86
+ accounts: Array<AccountSearch$Outbound> | null;
87
+ appIds?: Array<number> | null | undefined;
88
+ appTypes?: Array<string> | null | undefined;
89
+ excludeAppIds?: Array<number> | null | undefined;
90
+ filter: string;
91
+ ignore?: Array<string> | null | undefined;
92
+ match: string;
93
+ minLevel?: number | undefined;
94
+ mode: string;
95
+ order?: Order$Outbound | undefined;
96
+ page: number;
97
+ ranges?: Array<RangeFilter$Outbound> | null | undefined;
98
+ };
99
+
100
+ /** @internal */
101
+ export const V1AccountCompareBadgesRequestBody$outboundSchema: z.ZodType<
102
+ V1AccountCompareBadgesRequestBody$Outbound,
103
+ z.ZodTypeDef,
104
+ V1AccountCompareBadgesRequestBody
105
+ > = z.object({
106
+ accounts: z.nullable(z.array(AccountSearch$outboundSchema)),
107
+ appIds: z.nullable(z.array(z.number().int())).optional(),
108
+ appTypes: z.nullable(z.array(z.string())).optional(),
109
+ excludeAppIds: z.nullable(z.array(z.number().int())).optional(),
110
+ filter: Filter$outboundSchema.default("all"),
111
+ ignore: z.nullable(z.array(Ignore$outboundSchema)).optional(),
112
+ match: Match$outboundSchema.default("tuple"),
113
+ minLevel: z.number().int().optional(),
114
+ mode: Mode$outboundSchema.default("missing"),
115
+ order: Order$outboundSchema.optional(),
116
+ page: z.number().int().default(1),
117
+ ranges: z.nullable(z.array(RangeFilter$outboundSchema)).optional(),
118
+ });
119
+
120
+ export function v1AccountCompareBadgesRequestBodyToJSON(
121
+ v1AccountCompareBadgesRequestBody: V1AccountCompareBadgesRequestBody,
122
+ ): string {
123
+ return JSON.stringify(
124
+ V1AccountCompareBadgesRequestBody$outboundSchema.parse(
125
+ v1AccountCompareBadgesRequestBody,
126
+ ),
127
+ );
128
+ }
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import { ComparedTuple, ComparedTuple$inboundSchema } from "./comparedtuple.js";
11
+ import {
12
+ ResolvedAccount,
13
+ ResolvedAccount$inboundSchema,
14
+ } from "./resolvedaccount.js";
15
+
16
+ export type V1AccountCompareBadgesResponseBody = {
17
+ /**
18
+ * A URL to the JSON Schema for this object.
19
+ */
20
+ dollarSchema?: string | undefined;
21
+ accounts: Array<ResolvedAccount> | null;
22
+ /**
23
+ * The number of pages
24
+ */
25
+ pages: number;
26
+ /**
27
+ * The total number of hits for all pages
28
+ */
29
+ totalHits: number;
30
+ tuples: Array<ComparedTuple> | null;
31
+ };
32
+
33
+ /** @internal */
34
+ export const V1AccountCompareBadgesResponseBody$inboundSchema: z.ZodType<
35
+ V1AccountCompareBadgesResponseBody,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ $schema: z.string().optional(),
40
+ accounts: z.nullable(z.array(ResolvedAccount$inboundSchema)),
41
+ pages: z.number().int(),
42
+ totalHits: z.number().int(),
43
+ tuples: z.nullable(z.array(ComparedTuple$inboundSchema)),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "$schema": "dollarSchema",
47
+ });
48
+ });
49
+
50
+ export function v1AccountCompareBadgesResponseBodyFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<V1AccountCompareBadgesResponseBody, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) =>
56
+ V1AccountCompareBadgesResponseBody$inboundSchema.parse(JSON.parse(x)),
57
+ `Failed to parse 'V1AccountCompareBadgesResponseBody' from JSON`,
58
+ );
59
+ }
@@ -30,18 +30,20 @@ import {
30
30
  VanitySearch$outboundSchema,
31
31
  } from "./vanitysearch.js";
32
32
 
33
- export const Filter = {
33
+ export const V1AccountListBadgesRequestBodyFilter = {
34
34
  Foil: "foil",
35
35
  Sale: "sale",
36
36
  Event: "event",
37
37
  } as const;
38
- export type Filter = ClosedEnum<typeof Filter>;
38
+ export type V1AccountListBadgesRequestBodyFilter = ClosedEnum<
39
+ typeof V1AccountListBadgesRequestBodyFilter
40
+ >;
39
41
 
40
42
  export type V1AccountListBadgesRequestBody = {
41
43
  /**
42
44
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
43
45
  */
44
- filter?: Array<Filter> | null | undefined;
46
+ filter?: Array<V1AccountListBadgesRequestBodyFilter> | null | undefined;
45
47
  filters?: V1BadgeFilters | undefined;
46
48
  id?: IDSearch | undefined;
47
49
  order?: V1BadgeOrder | null | undefined;
@@ -55,8 +57,10 @@ export type V1AccountListBadgesRequestBody = {
55
57
  };
56
58
 
57
59
  /** @internal */
58
- export const Filter$outboundSchema: z.ZodNativeEnum<typeof Filter> = z
59
- .nativeEnum(Filter);
60
+ export const V1AccountListBadgesRequestBodyFilter$outboundSchema:
61
+ z.ZodNativeEnum<typeof V1AccountListBadgesRequestBodyFilter> = z.nativeEnum(
62
+ V1AccountListBadgesRequestBodyFilter,
63
+ );
60
64
 
61
65
  /** @internal */
62
66
  export type V1AccountListBadgesRequestBody$Outbound = {
@@ -76,7 +80,9 @@ export const V1AccountListBadgesRequestBody$outboundSchema: z.ZodType<
76
80
  z.ZodTypeDef,
77
81
  V1AccountListBadgesRequestBody
78
82
  > = z.object({
79
- filter: z.nullable(z.array(Filter$outboundSchema)).optional(),
83
+ filter: z.nullable(
84
+ z.array(V1AccountListBadgesRequestBodyFilter$outboundSchema),
85
+ ).optional(),
80
86
  filters: V1BadgeFilters$outboundSchema.optional(),
81
87
  id: IDSearch$outboundSchema.optional(),
82
88
  order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
@@ -5,29 +5,31 @@
5
5
  import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
- export const By = {
8
+ export const V1AppOrderBy = {
9
9
  AppId: "appId",
10
10
  Playtime: "playtime",
11
11
  } as const;
12
- export type By = ClosedEnum<typeof By>;
12
+ export type V1AppOrderBy = ClosedEnum<typeof V1AppOrderBy>;
13
13
 
14
- export const Direction = {
14
+ export const V1AppOrderDirection = {
15
15
  Asc: "asc",
16
16
  Desc: "desc",
17
17
  } as const;
18
- export type Direction = ClosedEnum<typeof Direction>;
18
+ export type V1AppOrderDirection = ClosedEnum<typeof V1AppOrderDirection>;
19
19
 
20
20
  export type V1AppOrder = {
21
- by: By;
22
- direction?: Direction | undefined;
21
+ by: V1AppOrderBy;
22
+ direction?: V1AppOrderDirection | undefined;
23
23
  };
24
24
 
25
25
  /** @internal */
26
- export const By$outboundSchema: z.ZodNativeEnum<typeof By> = z.nativeEnum(By);
26
+ export const V1AppOrderBy$outboundSchema: z.ZodNativeEnum<typeof V1AppOrderBy> =
27
+ z.nativeEnum(V1AppOrderBy);
27
28
 
28
29
  /** @internal */
29
- export const Direction$outboundSchema: z.ZodNativeEnum<typeof Direction> = z
30
- .nativeEnum(Direction);
30
+ export const V1AppOrderDirection$outboundSchema: z.ZodNativeEnum<
31
+ typeof V1AppOrderDirection
32
+ > = z.nativeEnum(V1AppOrderDirection);
31
33
 
32
34
  /** @internal */
33
35
  export type V1AppOrder$Outbound = {
@@ -41,8 +43,8 @@ export const V1AppOrder$outboundSchema: z.ZodType<
41
43
  z.ZodTypeDef,
42
44
  V1AppOrder
43
45
  > = z.object({
44
- by: By$outboundSchema,
45
- direction: Direction$outboundSchema.default("desc"),
46
+ by: V1AppOrderBy$outboundSchema,
47
+ direction: V1AppOrderDirection$outboundSchema.default("desc"),
46
48
  });
47
49
 
48
50
  export function v1AppOrderToJSON(v1AppOrder: V1AppOrder): string {
@@ -6,13 +6,14 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  /**
9
- * Currently only XP is supported.
9
+ * xp buckets by level; apps buckets by the game-collector badge thresholds.
10
10
  */
11
11
  export const V1LeaderboardGetBucketLeadersRequestBodyLeaderboard = {
12
12
  Xp: "xp",
13
+ Apps: "apps",
13
14
  } as const;
14
15
  /**
15
- * Currently only XP is supported.
16
+ * xp buckets by level; apps buckets by the game-collector badge thresholds.
16
17
  */
17
18
  export type V1LeaderboardGetBucketLeadersRequestBodyLeaderboard = ClosedEnum<
18
19
  typeof V1LeaderboardGetBucketLeadersRequestBodyLeaderboard
@@ -20,11 +21,11 @@ export type V1LeaderboardGetBucketLeadersRequestBodyLeaderboard = ClosedEnum<
20
21
 
21
22
  export type V1LeaderboardGetBucketLeadersRequestBody = {
22
23
  /**
23
- * Levels per bucket. 0 defaults to 10.
24
+ * xp only: levels per bucket (default 10). Ignored for apps.
24
25
  */
25
26
  bucketSize?: number | undefined;
26
27
  /**
27
- * Currently only XP is supported.
28
+ * xp buckets by level; apps buckets by the game-collector badge thresholds.
28
29
  */
29
30
  leaderboard: V1LeaderboardGetBucketLeadersRequestBodyLeaderboard;
30
31
  };
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type CompareBadgesResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountCompareBadgesResponseBody?:
18
+ | components.V1AccountCompareBadgesResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const CompareBadgesResponse$inboundSchema: z.ZodType<
24
+ CompareBadgesResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountCompareBadgesResponseBody: components
30
+ .V1AccountCompareBadgesResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountCompareBadgesResponseBody": "v1AccountCompareBadgesResponseBody",
35
+ });
36
+ });
37
+
38
+ export function compareBadgesResponseFromJSON(
39
+ jsonString: string,
40
+ ): SafeParseResult<CompareBadgesResponse, SDKValidationError> {
41
+ return safeParse(
42
+ jsonString,
43
+ (x) => CompareBadgesResponse$inboundSchema.parse(JSON.parse(x)),
44
+ `Failed to parse 'CompareBadgesResponse' from JSON`,
45
+ );
46
+ }
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type LeaderboardGetBucketLeadersResponse = {
12
+ export type GetBucketLeadersResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -18,8 +18,8 @@ export type LeaderboardGetBucketLeadersResponse = {
18
18
  };
19
19
 
20
20
  /** @internal */
21
- export const LeaderboardGetBucketLeadersResponse$inboundSchema: z.ZodType<
22
- LeaderboardGetBucketLeadersResponse,
21
+ export const GetBucketLeadersResponse$inboundSchema: z.ZodType<
22
+ GetBucketLeadersResponse,
23
23
  z.ZodTypeDef,
24
24
  unknown
25
25
  > = z.object({
@@ -33,13 +33,12 @@ export const LeaderboardGetBucketLeadersResponse$inboundSchema: z.ZodType<
33
33
  });
34
34
  });
35
35
 
36
- export function leaderboardGetBucketLeadersResponseFromJSON(
36
+ export function getBucketLeadersResponseFromJSON(
37
37
  jsonString: string,
38
- ): SafeParseResult<LeaderboardGetBucketLeadersResponse, SDKValidationError> {
38
+ ): SafeParseResult<GetBucketLeadersResponse, SDKValidationError> {
39
39
  return safeParse(
40
40
  jsonString,
41
- (x) =>
42
- LeaderboardGetBucketLeadersResponse$inboundSchema.parse(JSON.parse(x)),
43
- `Failed to parse 'LeaderboardGetBucketLeadersResponse' from JSON`,
41
+ (x) => GetBucketLeadersResponse$inboundSchema.parse(JSON.parse(x)),
42
+ `Failed to parse 'GetBucketLeadersResponse' from JSON`,
44
43
  );
45
44
  }
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type LeaderboardGetChangesResponse = {
12
+ export type GetChangesResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -20,8 +20,8 @@ export type LeaderboardGetChangesResponse = {
20
20
  };
21
21
 
22
22
  /** @internal */
23
- export const LeaderboardGetChangesResponse$inboundSchema: z.ZodType<
24
- LeaderboardGetChangesResponse,
23
+ export const GetChangesResponse$inboundSchema: z.ZodType<
24
+ GetChangesResponse,
25
25
  z.ZodTypeDef,
26
26
  unknown
27
27
  > = z.object({
@@ -35,12 +35,12 @@ export const LeaderboardGetChangesResponse$inboundSchema: z.ZodType<
35
35
  });
36
36
  });
37
37
 
38
- export function leaderboardGetChangesResponseFromJSON(
38
+ export function getChangesResponseFromJSON(
39
39
  jsonString: string,
40
- ): SafeParseResult<LeaderboardGetChangesResponse, SDKValidationError> {
40
+ ): SafeParseResult<GetChangesResponse, SDKValidationError> {
41
41
  return safeParse(
42
42
  jsonString,
43
- (x) => LeaderboardGetChangesResponse$inboundSchema.parse(JSON.parse(x)),
44
- `Failed to parse 'LeaderboardGetChangesResponse' from JSON`,
43
+ (x) => GetChangesResponse$inboundSchema.parse(JSON.parse(x)),
44
+ `Failed to parse 'GetChangesResponse' from JSON`,
45
45
  );
46
46
  }
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type AccountGetViewStatsResponse = {
12
+ export type GetViewStatsResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -18,8 +18,8 @@ export type AccountGetViewStatsResponse = {
18
18
  };
19
19
 
20
20
  /** @internal */
21
- export const AccountGetViewStatsResponse$inboundSchema: z.ZodType<
22
- AccountGetViewStatsResponse,
21
+ export const GetViewStatsResponse$inboundSchema: z.ZodType<
22
+ GetViewStatsResponse,
23
23
  z.ZodTypeDef,
24
24
  unknown
25
25
  > = z.object({
@@ -32,12 +32,12 @@ export const AccountGetViewStatsResponse$inboundSchema: z.ZodType<
32
32
  });
33
33
  });
34
34
 
35
- export function accountGetViewStatsResponseFromJSON(
35
+ export function getViewStatsResponseFromJSON(
36
36
  jsonString: string,
37
- ): SafeParseResult<AccountGetViewStatsResponse, SDKValidationError> {
37
+ ): SafeParseResult<GetViewStatsResponse, SDKValidationError> {
38
38
  return safeParse(
39
39
  jsonString,
40
- (x) => AccountGetViewStatsResponse$inboundSchema.parse(JSON.parse(x)),
41
- `Failed to parse 'AccountGetViewStatsResponse' from JSON`,
40
+ (x) => GetViewStatsResponse$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'GetViewStatsResponse' from JSON`,
42
42
  );
43
43
  }
@@ -18,7 +18,6 @@ export * from "./accountgetmeta.js";
18
18
  export * from "./accountgetsession.js";
19
19
  export * from "./accountgetsettings.js";
20
20
  export * from "./accountgettrending.js";
21
- export * from "./accountgetviewstats.js";
22
21
  export * from "./accountlistapps.js";
23
22
  export * from "./accountlistbadgebookmarks.js";
24
23
  export * from "./accountlistbadges.js";
@@ -45,7 +44,6 @@ export * from "./accountupdatevanity.js";
45
44
  export * from "./accountuploadimages.js";
46
45
  export * from "./accountverifyconnection.js";
47
46
  export * from "./accountverifyemail.js";
48
- export * from "./activitylistaccountfeed.js";
49
47
  export * from "./admingetaccount.js";
50
48
  export * from "./adminremovevanity.js";
51
49
  export * from "./adminupdateresources.js";
@@ -67,16 +65,19 @@ export * from "./cmsreorder.js";
67
65
  export * from "./cmsupdatedraft.js";
68
66
  export * from "./cmsuploadimage.js";
69
67
  export * from "./cmsversions.js";
68
+ export * from "./comparebadges.js";
69
+ export * from "./getbucketleaders.js";
70
+ export * from "./getchanges.js";
71
+ export * from "./getviewstats.js";
70
72
  export * from "./leaderboardgetaccountleaderboard.js";
71
73
  export * from "./leaderboardgetaccountsmeta.js";
72
- export * from "./leaderboardgetbucketleaders.js";
73
- export * from "./leaderboardgetchanges.js";
74
74
  export * from "./leaderboardgetgroupleaderboard.js";
75
75
  export * from "./leaderboardgetgroupsmeta.js";
76
76
  export * from "./leaderboardgetlowestranks.js";
77
77
  export * from "./leaderboardlistbadges.js";
78
78
  export * from "./leaderboardpreviewaccountrank.js";
79
79
  export * from "./list.js";
80
+ export * from "./listaccountfeed.js";
80
81
  export * from "./listglobalfeed.js";
81
82
  export * from "./locationgetlocations.js";
82
83
  export * from "./searchgettrending.js";
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type ActivityListAccountFeedResponse = {
12
+ export type ListAccountFeedResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -20,8 +20,8 @@ export type ActivityListAccountFeedResponse = {
20
20
  };
21
21
 
22
22
  /** @internal */
23
- export const ActivityListAccountFeedResponse$inboundSchema: z.ZodType<
24
- ActivityListAccountFeedResponse,
23
+ export const ListAccountFeedResponse$inboundSchema: z.ZodType<
24
+ ListAccountFeedResponse,
25
25
  z.ZodTypeDef,
26
26
  unknown
27
27
  > = z.object({
@@ -36,12 +36,12 @@ export const ActivityListAccountFeedResponse$inboundSchema: z.ZodType<
36
36
  });
37
37
  });
38
38
 
39
- export function activityListAccountFeedResponseFromJSON(
39
+ export function listAccountFeedResponseFromJSON(
40
40
  jsonString: string,
41
- ): SafeParseResult<ActivityListAccountFeedResponse, SDKValidationError> {
41
+ ): SafeParseResult<ListAccountFeedResponse, SDKValidationError> {
42
42
  return safeParse(
43
43
  jsonString,
44
- (x) => ActivityListAccountFeedResponse$inboundSchema.parse(JSON.parse(x)),
45
- `Failed to parse 'ActivityListAccountFeedResponse' from JSON`,
44
+ (x) => ListAccountFeedResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'ListAccountFeedResponse' from JSON`,
46
46
  );
47
47
  }
@@ -5,9 +5,9 @@
5
5
  import { accountAccountFindFriendPath } from "../funcs/accountAccountFindFriendPath.js";
6
6
  import { accountAccountGetBadgeHeatmap } from "../funcs/accountAccountGetBadgeHeatmap.js";
7
7
  import { accountAccountGetTrending } from "../funcs/accountAccountGetTrending.js";
8
- import { accountAccountGetViewStats } from "../funcs/accountAccountGetViewStats.js";
9
8
  import { accountAccountListOwnedGroups } from "../funcs/accountAccountListOwnedGroups.js";
10
9
  import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
10
+ import { accountCompareBadges } from "../funcs/accountCompareBadges.js";
11
11
  import { accountCreateConnection } from "../funcs/accountCreateConnection.js";
12
12
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
13
13
  import { accountDeleteConnection } from "../funcs/accountDeleteConnection.js";
@@ -20,6 +20,7 @@ import { accountGetInfo } from "../funcs/accountGetInfo.js";
20
20
  import { accountGetMeta } from "../funcs/accountGetMeta.js";
21
21
  import { accountGetSession } from "../funcs/accountGetSession.js";
22
22
  import { accountGetSettings } from "../funcs/accountGetSettings.js";
23
+ import { accountGetViewStats } from "../funcs/accountGetViewStats.js";
23
24
  import { accountListApps } from "../funcs/accountListApps.js";
24
25
  import { accountListBadgeBookmarks } from "../funcs/accountListBadgeBookmarks.js";
25
26
  import { accountListBadges } from "../funcs/accountListBadges.js";
@@ -65,6 +66,20 @@ export class Account extends ClientSDK {
65
66
  ));
66
67
  }
67
68
 
69
+ /**
70
+ * Compare badge collections between accounts
71
+ */
72
+ async compareBadges(
73
+ request: components.V1AccountCompareBadgesRequestBody,
74
+ options?: RequestOptions,
75
+ ): Promise<operations.CompareBadgesResponse> {
76
+ return unwrapAsync(accountCompareBadges(
77
+ this,
78
+ request,
79
+ options,
80
+ ));
81
+ }
82
+
68
83
  /**
69
84
  * Create OAuth or domain connection
70
85
  */
@@ -274,11 +289,11 @@ export class Account extends ClientSDK {
274
289
  /**
275
290
  * Get profile view counts (24h/7d/30d × unique/total) for an account
276
291
  */
277
- async accountGetViewStats(
292
+ async getViewStats(
278
293
  request: components.AccountSearch,
279
294
  options?: RequestOptions,
280
- ): Promise<operations.AccountGetViewStatsResponse> {
281
- return unwrapAsync(accountAccountGetViewStats(
295
+ ): Promise<operations.GetViewStatsResponse> {
296
+ return unwrapAsync(accountGetViewStats(
282
297
  this,
283
298
  request,
284
299
  options,
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { activityActivityListAccountFeed } from "../funcs/activityActivityListAccountFeed.js";
5
+ import { activityListAccountFeed } from "../funcs/activityListAccountFeed.js";
6
6
  import { activityListGlobalFeed } from "../funcs/activityListGlobalFeed.js";
7
7
  import {
8
8
  activityStreamGlobalFeed,
@@ -19,11 +19,11 @@ export class Activity extends ClientSDK {
19
19
  /**
20
20
  * List the activity feed for a single account (profile timeline)
21
21
  */
22
- async activityListAccountFeed(
22
+ async listAccountFeed(
23
23
  request: components.V1ActivityListAccountFeedRequestBody,
24
24
  options?: RequestOptions,
25
- ): Promise<operations.ActivityListAccountFeedResponse> {
26
- return unwrapAsync(activityActivityListAccountFeed(
25
+ ): Promise<operations.ListAccountFeedResponse> {
26
+ return unwrapAsync(activityListAccountFeed(
27
27
  this,
28
28
  request,
29
29
  options,