@steamsets/client-ts 0.32.3 → 0.32.4

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 (51) hide show
  1. package/README.md +2 -0
  2. package/funcs/accountAccountFindFriendPath.d.ts +16 -0
  3. package/funcs/accountAccountFindFriendPath.d.ts.map +1 -0
  4. package/funcs/accountAccountFindFriendPath.js +133 -0
  5. package/funcs/accountAccountFindFriendPath.js.map +1 -0
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/models/components/index.d.ts +2 -0
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +2 -0
  12. package/models/components/index.js.map +1 -1
  13. package/models/components/leaderboardaccount.d.ts +4 -4
  14. package/models/components/leaderboardaccount.d.ts.map +1 -1
  15. package/models/components/leaderboardaccount.js +4 -4
  16. package/models/components/leaderboardaccount.js.map +1 -1
  17. package/models/components/v1accountfindfriendpathrequestbody.d.ts +15 -0
  18. package/models/components/v1accountfindfriendpathrequestbody.d.ts.map +1 -0
  19. package/models/components/v1accountfindfriendpathrequestbody.js +51 -0
  20. package/models/components/v1accountfindfriendpathrequestbody.js.map +1 -0
  21. package/models/components/v1accountfindfriendpathresponsebody.d.ts +26 -0
  22. package/models/components/v1accountfindfriendpathresponsebody.d.ts.map +1 -0
  23. package/models/components/v1accountfindfriendpathresponsebody.js +59 -0
  24. package/models/components/v1accountfindfriendpathresponsebody.js.map +1 -0
  25. package/models/components/v1accountgetinforesponsebody.d.ts +4 -4
  26. package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
  27. package/models/components/v1accountgetinforesponsebody.js +4 -4
  28. package/models/components/v1accountgetinforesponsebody.js.map +1 -1
  29. package/models/operations/accountfindfriendpath.d.ts +15 -0
  30. package/models/operations/accountfindfriendpath.d.ts.map +1 -0
  31. package/models/operations/accountfindfriendpath.js +59 -0
  32. package/models/operations/accountfindfriendpath.js.map +1 -0
  33. package/models/operations/index.d.ts +1 -0
  34. package/models/operations/index.d.ts.map +1 -1
  35. package/models/operations/index.js +1 -0
  36. package/models/operations/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/sdk/account.d.ts +4 -0
  39. package/sdk/account.d.ts.map +1 -1
  40. package/sdk/account.js +7 -0
  41. package/sdk/account.js.map +1 -1
  42. package/src/funcs/accountAccountFindFriendPath.ts +186 -0
  43. package/src/lib/config.ts +3 -3
  44. package/src/models/components/index.ts +2 -0
  45. package/src/models/components/leaderboardaccount.ts +6 -11
  46. package/src/models/components/v1accountfindfriendpathrequestbody.ts +41 -0
  47. package/src/models/components/v1accountfindfriendpathresponsebody.ts +59 -0
  48. package/src/models/components/v1accountgetinforesponsebody.ts +11 -6
  49. package/src/models/operations/accountfindfriendpath.ts +47 -0
  50. package/src/models/operations/index.ts +1 -0
  51. package/src/sdk/account.ts +15 -0
@@ -70,7 +70,7 @@ export type LastQueueStatus = OpenEnum<typeof LastQueueStatus>;
70
70
  /**
71
71
  * The privacy of the account
72
72
  */
73
- export const Privacy = {
73
+ export const V1AccountGetInfoResponseBodyPrivacy = {
74
74
  Private: "private",
75
75
  Public: "public",
76
76
  FriendsOnly: "friends_only",
@@ -78,7 +78,9 @@ export const Privacy = {
78
78
  /**
79
79
  * The privacy of the account
80
80
  */
81
- export type Privacy = OpenEnum<typeof Privacy>;
81
+ export type V1AccountGetInfoResponseBodyPrivacy = OpenEnum<
82
+ typeof V1AccountGetInfoResponseBodyPrivacy
83
+ >;
82
84
 
83
85
  export type V1AccountGetInfoResponseBody = {
84
86
  /**
@@ -237,7 +239,7 @@ export type V1AccountGetInfoResponseBody = {
237
239
  /**
238
240
  * The privacy of the account
239
241
  */
240
- privacy: Privacy;
242
+ privacy: V1AccountGetInfoResponseBodyPrivacy;
241
243
  region?: LeaderboardRegion | null | undefined;
242
244
  /**
243
245
  * The roles of the account
@@ -304,8 +306,11 @@ export const LastQueueStatus$inboundSchema: z.ZodType<
304
306
  > = openEnums.inboundSchema(LastQueueStatus);
305
307
 
306
308
  /** @internal */
307
- export const Privacy$inboundSchema: z.ZodType<Privacy, z.ZodTypeDef, unknown> =
308
- openEnums.inboundSchema(Privacy);
309
+ export const V1AccountGetInfoResponseBodyPrivacy$inboundSchema: z.ZodType<
310
+ V1AccountGetInfoResponseBodyPrivacy,
311
+ z.ZodTypeDef,
312
+ unknown
313
+ > = openEnums.inboundSchema(V1AccountGetInfoResponseBodyPrivacy);
309
314
 
310
315
  /** @internal */
311
316
  export const V1AccountGetInfoResponseBody$inboundSchema: z.ZodType<
@@ -358,7 +363,7 @@ export const V1AccountGetInfoResponseBody$inboundSchema: z.ZodType<
358
363
  playtime: z.number().int(),
359
364
  pointsGiven: z.number().int(),
360
365
  pointsReceived: z.number().int(),
361
- privacy: Privacy$inboundSchema,
366
+ privacy: V1AccountGetInfoResponseBodyPrivacy$inboundSchema,
362
367
  region: z.nullable(LeaderboardRegion$inboundSchema).optional(),
363
368
  roles: z.nullable(z.array(Role$inboundSchema)),
364
369
  shortlinkDomain: z.nullable(z.string()),
@@ -0,0 +1,47 @@
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 AccountFindFriendPathResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountFindFriendPathResponseBody?:
18
+ | components.V1AccountFindFriendPathResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountFindFriendPathResponse$inboundSchema: z.ZodType<
24
+ AccountFindFriendPathResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountFindFriendPathResponseBody: components
30
+ .V1AccountFindFriendPathResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountFindFriendPathResponseBody":
35
+ "v1AccountFindFriendPathResponseBody",
36
+ });
37
+ });
38
+
39
+ export function accountFindFriendPathResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<AccountFindFriendPathResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => AccountFindFriendPathResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'AccountFindFriendPathResponse' from JSON`,
46
+ );
47
+ }
@@ -9,6 +9,7 @@ export * from "./accountdeleteconnection.js";
9
9
  export * from "./accountdeletedeveloperapp.js";
10
10
  export * from "./accountdeleteimages.js";
11
11
  export * from "./accountdeletesession.js";
12
+ export * from "./accountfindfriendpath.js";
12
13
  export * from "./accountgetbadgeheatmap.js";
13
14
  export * from "./accountgetbadgestats.js";
14
15
  export * from "./accountgetdatapoints.js";
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { accountAccountFindFriendPath } from "../funcs/accountAccountFindFriendPath.js";
5
6
  import { accountAccountGetBadgeHeatmap } from "../funcs/accountAccountGetBadgeHeatmap.js";
6
7
  import { accountAccountListOwnedGroups } from "../funcs/accountAccountListOwnedGroups.js";
7
8
  import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
@@ -146,6 +147,20 @@ export class Account extends ClientSDK {
146
147
  ));
147
148
  }
148
149
 
150
+ /**
151
+ * Find shortest friend path between two accounts
152
+ */
153
+ async accountFindFriendPath(
154
+ request: components.V1AccountFindFriendPathRequestBody,
155
+ options?: RequestOptions,
156
+ ): Promise<operations.AccountFindFriendPathResponse> {
157
+ return unwrapAsync(accountAccountFindFriendPath(
158
+ this,
159
+ request,
160
+ options,
161
+ ));
162
+ }
163
+
149
164
  /**
150
165
  * Get monthly badge crafting counts for an account
151
166
  */