@steamsets/client-ts 0.8.2 → 0.8.3

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 (145) hide show
  1. package/README.md +1 -3
  2. package/docs/sdks/account/README.md +15 -35
  3. package/docs/sdks/app/README.md +3 -7
  4. package/docs/sdks/data/README.md +18 -42
  5. package/docs/sdks/public/README.md +18 -42
  6. package/funcs/accountAccountV1GetApps.d.ts +2 -1
  7. package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
  8. package/funcs/accountAccountV1GetApps.js +3 -7
  9. package/funcs/accountAccountV1GetApps.js.map +1 -1
  10. package/funcs/accountAccountV1GetBadges.d.ts +2 -1
  11. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
  12. package/funcs/accountAccountV1GetBadges.js +3 -7
  13. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  14. package/funcs/accountAccountV1GetDataPoints.d.ts +2 -1
  15. package/funcs/accountAccountV1GetDataPoints.d.ts.map +1 -1
  16. package/funcs/accountAccountV1GetDataPoints.js +3 -7
  17. package/funcs/accountAccountV1GetDataPoints.js.map +1 -1
  18. package/funcs/accountAccountV1GetFriends.d.ts +2 -1
  19. package/funcs/accountAccountV1GetFriends.d.ts.map +1 -1
  20. package/funcs/accountAccountV1GetFriends.js +3 -7
  21. package/funcs/accountAccountV1GetFriends.js.map +1 -1
  22. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts +2 -1
  23. package/funcs/accountAccountV1GetLeaderboardHistory.d.ts.map +1 -1
  24. package/funcs/accountAccountV1GetLeaderboardHistory.js +3 -7
  25. package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -1
  26. package/funcs/appAccountV1Queue.d.ts +2 -1
  27. package/funcs/appAccountV1Queue.d.ts.map +1 -1
  28. package/funcs/appAccountV1Queue.js +3 -7
  29. package/funcs/appAccountV1Queue.js.map +1 -1
  30. package/funcs/dataAccountV1GetApps.d.ts +2 -1
  31. package/funcs/dataAccountV1GetApps.d.ts.map +1 -1
  32. package/funcs/dataAccountV1GetApps.js +3 -7
  33. package/funcs/dataAccountV1GetApps.js.map +1 -1
  34. package/funcs/dataAccountV1GetBadges.d.ts +2 -1
  35. package/funcs/dataAccountV1GetBadges.d.ts.map +1 -1
  36. package/funcs/dataAccountV1GetBadges.js +3 -7
  37. package/funcs/dataAccountV1GetBadges.js.map +1 -1
  38. package/funcs/dataAccountV1GetDataPoints.d.ts +2 -1
  39. package/funcs/dataAccountV1GetDataPoints.d.ts.map +1 -1
  40. package/funcs/dataAccountV1GetDataPoints.js +3 -7
  41. package/funcs/dataAccountV1GetDataPoints.js.map +1 -1
  42. package/funcs/dataAccountV1GetFriends.d.ts +2 -1
  43. package/funcs/dataAccountV1GetFriends.d.ts.map +1 -1
  44. package/funcs/dataAccountV1GetFriends.js +3 -7
  45. package/funcs/dataAccountV1GetFriends.js.map +1 -1
  46. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts +2 -1
  47. package/funcs/dataAccountV1GetLeaderboardHistory.d.ts.map +1 -1
  48. package/funcs/dataAccountV1GetLeaderboardHistory.js +3 -7
  49. package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -1
  50. package/funcs/dataAccountV1Queue.d.ts +2 -1
  51. package/funcs/dataAccountV1Queue.d.ts.map +1 -1
  52. package/funcs/dataAccountV1Queue.js +3 -7
  53. package/funcs/dataAccountV1Queue.js.map +1 -1
  54. package/funcs/publicAccountV1GetApps.d.ts +2 -1
  55. package/funcs/publicAccountV1GetApps.d.ts.map +1 -1
  56. package/funcs/publicAccountV1GetApps.js +3 -7
  57. package/funcs/publicAccountV1GetApps.js.map +1 -1
  58. package/funcs/publicAccountV1GetBadges.d.ts +2 -1
  59. package/funcs/publicAccountV1GetBadges.d.ts.map +1 -1
  60. package/funcs/publicAccountV1GetBadges.js +3 -7
  61. package/funcs/publicAccountV1GetBadges.js.map +1 -1
  62. package/funcs/publicAccountV1GetDataPoints.d.ts +2 -1
  63. package/funcs/publicAccountV1GetDataPoints.d.ts.map +1 -1
  64. package/funcs/publicAccountV1GetDataPoints.js +3 -7
  65. package/funcs/publicAccountV1GetDataPoints.js.map +1 -1
  66. package/funcs/publicAccountV1GetFriends.d.ts +2 -1
  67. package/funcs/publicAccountV1GetFriends.d.ts.map +1 -1
  68. package/funcs/publicAccountV1GetFriends.js +3 -7
  69. package/funcs/publicAccountV1GetFriends.js.map +1 -1
  70. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts +2 -1
  71. package/funcs/publicAccountV1GetLeaderboardHistory.d.ts.map +1 -1
  72. package/funcs/publicAccountV1GetLeaderboardHistory.js +3 -7
  73. package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -1
  74. package/funcs/publicAccountV1Queue.d.ts +2 -1
  75. package/funcs/publicAccountV1Queue.d.ts.map +1 -1
  76. package/funcs/publicAccountV1Queue.js +3 -7
  77. package/funcs/publicAccountV1Queue.js.map +1 -1
  78. package/lib/config.d.ts +2 -2
  79. package/lib/config.js +2 -2
  80. package/models/operations/accountv1getapps.d.ts +0 -27
  81. package/models/operations/accountv1getapps.d.ts.map +1 -1
  82. package/models/operations/accountv1getapps.js +1 -36
  83. package/models/operations/accountv1getapps.js.map +1 -1
  84. package/models/operations/accountv1getbadges.d.ts +0 -27
  85. package/models/operations/accountv1getbadges.d.ts.map +1 -1
  86. package/models/operations/accountv1getbadges.js +1 -36
  87. package/models/operations/accountv1getbadges.js.map +1 -1
  88. package/models/operations/accountv1getdatapoints.d.ts +0 -27
  89. package/models/operations/accountv1getdatapoints.d.ts.map +1 -1
  90. package/models/operations/accountv1getdatapoints.js +1 -36
  91. package/models/operations/accountv1getdatapoints.js.map +1 -1
  92. package/models/operations/accountv1getfriends.d.ts +0 -27
  93. package/models/operations/accountv1getfriends.d.ts.map +1 -1
  94. package/models/operations/accountv1getfriends.js +1 -36
  95. package/models/operations/accountv1getfriends.js.map +1 -1
  96. package/models/operations/accountv1getleaderboardhistory.d.ts +0 -27
  97. package/models/operations/accountv1getleaderboardhistory.d.ts.map +1 -1
  98. package/models/operations/accountv1getleaderboardhistory.js +1 -36
  99. package/models/operations/accountv1getleaderboardhistory.js.map +1 -1
  100. package/models/operations/accountv1queue.d.ts +0 -27
  101. package/models/operations/accountv1queue.d.ts.map +1 -1
  102. package/models/operations/accountv1queue.js +1 -36
  103. package/models/operations/accountv1queue.js.map +1 -1
  104. package/package.json +1 -1
  105. package/sdk/account.d.ts +5 -5
  106. package/sdk/account.d.ts.map +1 -1
  107. package/sdk/account.js.map +1 -1
  108. package/sdk/app.d.ts +1 -1
  109. package/sdk/app.d.ts.map +1 -1
  110. package/sdk/app.js.map +1 -1
  111. package/sdk/data.d.ts +6 -6
  112. package/sdk/data.d.ts.map +1 -1
  113. package/sdk/data.js.map +1 -1
  114. package/sdk/public.d.ts +6 -6
  115. package/sdk/public.d.ts.map +1 -1
  116. package/sdk/public.js.map +1 -1
  117. package/src/funcs/accountAccountV1GetApps.ts +5 -16
  118. package/src/funcs/accountAccountV1GetBadges.ts +5 -17
  119. package/src/funcs/accountAccountV1GetDataPoints.ts +5 -17
  120. package/src/funcs/accountAccountV1GetFriends.ts +5 -17
  121. package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +5 -19
  122. package/src/funcs/appAccountV1Queue.ts +5 -16
  123. package/src/funcs/dataAccountV1GetApps.ts +5 -16
  124. package/src/funcs/dataAccountV1GetBadges.ts +5 -17
  125. package/src/funcs/dataAccountV1GetDataPoints.ts +5 -17
  126. package/src/funcs/dataAccountV1GetFriends.ts +5 -17
  127. package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +5 -19
  128. package/src/funcs/dataAccountV1Queue.ts +5 -16
  129. package/src/funcs/publicAccountV1GetApps.ts +5 -16
  130. package/src/funcs/publicAccountV1GetBadges.ts +5 -17
  131. package/src/funcs/publicAccountV1GetDataPoints.ts +5 -17
  132. package/src/funcs/publicAccountV1GetFriends.ts +5 -17
  133. package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +5 -19
  134. package/src/funcs/publicAccountV1Queue.ts +5 -16
  135. package/src/lib/config.ts +2 -2
  136. package/src/models/operations/accountv1getapps.ts +0 -60
  137. package/src/models/operations/accountv1getbadges.ts +0 -60
  138. package/src/models/operations/accountv1getdatapoints.ts +0 -60
  139. package/src/models/operations/accountv1getfriends.ts +0 -60
  140. package/src/models/operations/accountv1getleaderboardhistory.ts +0 -62
  141. package/src/models/operations/accountv1queue.ts +0 -60
  142. package/src/sdk/account.ts +5 -5
  143. package/src/sdk/app.ts +1 -1
  144. package/src/sdk/data.ts +6 -6
  145. package/src/sdk/public.ts +6 -6
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function dataAccountV1GetDataPoints(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetDataPointsRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetDataPointsSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,30 +48,20 @@ export async function dataAccountV1GetDataPoints(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetDataPointsRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
55
52
  "Input validation failed",
56
53
  );
57
54
  if (!parsed$.ok) {
58
55
  return parsed$;
59
56
  }
60
57
  const payload$ = parsed$.value;
61
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
62
59
 
63
60
  const path$ = pathToFunc("/account.v1.AccountService/GetDataPoints")();
64
61
 
65
62
  const headers$ = new Headers({
66
63
  "Content-Type": "application/json",
67
64
  Accept: "application/json",
68
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
69
- explode: false,
70
- charEncoding: "none",
71
- }),
72
- "X-Forwarded-For": encodeSimple$(
73
- "X-Forwarded-For",
74
- payload$["X-Forwarded-For"],
75
- { explode: false, charEncoding: "none" },
76
- ),
77
65
  });
78
66
 
79
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function dataAccountV1GetFriends(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetFriendsRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetFriendsSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,30 +48,20 @@ export async function dataAccountV1GetFriends(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetFriendsRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
55
52
  "Input validation failed",
56
53
  );
57
54
  if (!parsed$.ok) {
58
55
  return parsed$;
59
56
  }
60
57
  const payload$ = parsed$.value;
61
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
62
59
 
63
60
  const path$ = pathToFunc("/account.v1.AccountService/GetFriends")();
64
61
 
65
62
  const headers$ = new Headers({
66
63
  "Content-Type": "application/json",
67
64
  Accept: "application/json",
68
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
69
- explode: false,
70
- charEncoding: "none",
71
- }),
72
- "X-Forwarded-For": encodeSimple$(
73
- "X-Forwarded-For",
74
- payload$["X-Forwarded-For"],
75
- { explode: false, charEncoding: "none" },
76
- ),
77
65
  });
78
66
 
79
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function dataAccountV1GetLeaderboardHistory(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetLeaderboardHistoryRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetLeaderboardHistorySecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,17 +48,14 @@ export async function dataAccountV1GetLeaderboardHistory(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetLeaderboardHistoryRequest$outboundSchema.parse(
55
- value$,
56
- ),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
57
52
  "Input validation failed",
58
53
  );
59
54
  if (!parsed$.ok) {
60
55
  return parsed$;
61
56
  }
62
57
  const payload$ = parsed$.value;
63
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
64
59
 
65
60
  const path$ = pathToFunc(
66
61
  "/account.v1.AccountService/GetLeaderboardHistory",
@@ -69,15 +64,6 @@ export async function dataAccountV1GetLeaderboardHistory(
69
64
  const headers$ = new Headers({
70
65
  "Content-Type": "application/json",
71
66
  Accept: "application/json",
72
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
73
- explode: false,
74
- charEncoding: "none",
75
- }),
76
- "X-Forwarded-For": encodeSimple$(
77
- "X-Forwarded-For",
78
- payload$["X-Forwarded-For"],
79
- { explode: false, charEncoding: "none" },
80
- ),
81
67
  });
82
68
 
83
69
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function dataAccountV1Queue(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1QueueRequest,
31
+ request: components.AppSearch,
34
32
  security: operations.AccountV1QueueSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,29 +48,20 @@ export async function dataAccountV1Queue(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) => operations.AccountV1QueueRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AppSearch$outboundSchema.parse(value$),
54
52
  "Input validation failed",
55
53
  );
56
54
  if (!parsed$.ok) {
57
55
  return parsed$;
58
56
  }
59
57
  const payload$ = parsed$.value;
60
- const body$ = encodeJSON$("body", payload$.AppSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
61
59
 
62
60
  const path$ = pathToFunc("/app.v1.AppService/Queue")();
63
61
 
64
62
  const headers$ = new Headers({
65
63
  "Content-Type": "application/json",
66
64
  Accept: "application/problem+json",
67
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
68
- explode: false,
69
- charEncoding: "none",
70
- }),
71
- "X-Forwarded-For": encodeSimple$(
72
- "X-Forwarded-For",
73
- payload$["X-Forwarded-For"],
74
- { explode: false, charEncoding: "none" },
75
- ),
76
65
  });
77
66
 
78
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1GetApps(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetAppsRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetAppsSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,29 +48,20 @@ export async function publicAccountV1GetApps(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) => operations.AccountV1GetAppsRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
54
52
  "Input validation failed",
55
53
  );
56
54
  if (!parsed$.ok) {
57
55
  return parsed$;
58
56
  }
59
57
  const payload$ = parsed$.value;
60
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
61
59
 
62
60
  const path$ = pathToFunc("/account.v1.AccountService/GetApps")();
63
61
 
64
62
  const headers$ = new Headers({
65
63
  "Content-Type": "application/json",
66
64
  Accept: "application/json",
67
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
68
- explode: false,
69
- charEncoding: "none",
70
- }),
71
- "X-Forwarded-For": encodeSimple$(
72
- "X-Forwarded-For",
73
- payload$["X-Forwarded-For"],
74
- { explode: false, charEncoding: "none" },
75
- ),
76
65
  });
77
66
 
78
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1GetBadges(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetBadgesRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetBadgesSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,30 +48,20 @@ export async function publicAccountV1GetBadges(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetBadgesRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
55
52
  "Input validation failed",
56
53
  );
57
54
  if (!parsed$.ok) {
58
55
  return parsed$;
59
56
  }
60
57
  const payload$ = parsed$.value;
61
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
62
59
 
63
60
  const path$ = pathToFunc("/account.v1.AccountService/GetBadges")();
64
61
 
65
62
  const headers$ = new Headers({
66
63
  "Content-Type": "application/json",
67
64
  Accept: "application/json",
68
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
69
- explode: false,
70
- charEncoding: "none",
71
- }),
72
- "X-Forwarded-For": encodeSimple$(
73
- "X-Forwarded-For",
74
- payload$["X-Forwarded-For"],
75
- { explode: false, charEncoding: "none" },
76
- ),
77
65
  });
78
66
 
79
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1GetDataPoints(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetDataPointsRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetDataPointsSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,30 +48,20 @@ export async function publicAccountV1GetDataPoints(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetDataPointsRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
55
52
  "Input validation failed",
56
53
  );
57
54
  if (!parsed$.ok) {
58
55
  return parsed$;
59
56
  }
60
57
  const payload$ = parsed$.value;
61
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
62
59
 
63
60
  const path$ = pathToFunc("/account.v1.AccountService/GetDataPoints")();
64
61
 
65
62
  const headers$ = new Headers({
66
63
  "Content-Type": "application/json",
67
64
  Accept: "application/json",
68
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
69
- explode: false,
70
- charEncoding: "none",
71
- }),
72
- "X-Forwarded-For": encodeSimple$(
73
- "X-Forwarded-For",
74
- payload$["X-Forwarded-For"],
75
- { explode: false, charEncoding: "none" },
76
- ),
77
65
  });
78
66
 
79
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1GetFriends(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetFriendsRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetFriendsSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,30 +48,20 @@ export async function publicAccountV1GetFriends(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetFriendsRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
55
52
  "Input validation failed",
56
53
  );
57
54
  if (!parsed$.ok) {
58
55
  return parsed$;
59
56
  }
60
57
  const payload$ = parsed$.value;
61
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
62
59
 
63
60
  const path$ = pathToFunc("/account.v1.AccountService/GetFriends")();
64
61
 
65
62
  const headers$ = new Headers({
66
63
  "Content-Type": "application/json",
67
64
  Accept: "application/json",
68
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
69
- explode: false,
70
- charEncoding: "none",
71
- }),
72
- "X-Forwarded-For": encodeSimple$(
73
- "X-Forwarded-For",
74
- payload$["X-Forwarded-For"],
75
- { explode: false, charEncoding: "none" },
76
- ),
77
65
  });
78
66
 
79
67
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1GetLeaderboardHistory(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1GetLeaderboardHistoryRequest,
31
+ request: components.AccountSearch,
34
32
  security: operations.AccountV1GetLeaderboardHistorySecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,17 +48,14 @@ export async function publicAccountV1GetLeaderboardHistory(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) =>
54
- operations.AccountV1GetLeaderboardHistoryRequest$outboundSchema.parse(
55
- value$,
56
- ),
51
+ (value$) => components.AccountSearch$outboundSchema.parse(value$),
57
52
  "Input validation failed",
58
53
  );
59
54
  if (!parsed$.ok) {
60
55
  return parsed$;
61
56
  }
62
57
  const payload$ = parsed$.value;
63
- const body$ = encodeJSON$("body", payload$.AccountSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
64
59
 
65
60
  const path$ = pathToFunc(
66
61
  "/account.v1.AccountService/GetLeaderboardHistory",
@@ -69,15 +64,6 @@ export async function publicAccountV1GetLeaderboardHistory(
69
64
  const headers$ = new Headers({
70
65
  "Content-Type": "application/json",
71
66
  Accept: "application/json",
72
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
73
- explode: false,
74
- charEncoding: "none",
75
- }),
76
- "X-Forwarded-For": encodeSimple$(
77
- "X-Forwarded-For",
78
- payload$["X-Forwarded-For"],
79
- { explode: false, charEncoding: "none" },
80
- ),
81
67
  });
82
68
 
83
69
  const security$: SecurityInput[][] = [
@@ -3,15 +3,13 @@
3
3
  */
4
4
 
5
5
  import { SteamSetsCore } from "../core.js";
6
- import {
7
- encodeJSON as encodeJSON$,
8
- encodeSimple as encodeSimple$,
9
- } from "../lib/encodings.js";
6
+ import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
10
7
  import * as m$ from "../lib/matchers.js";
11
8
  import * as schemas$ from "../lib/schemas.js";
12
9
  import { RequestOptions } from "../lib/sdks.js";
13
10
  import { resolveSecurity, SecurityInput } from "../lib/security.js";
14
11
  import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
15
13
  import {
16
14
  ConnectionError,
17
15
  InvalidRequestError,
@@ -30,7 +28,7 @@ import { Result } from "../types/fp.js";
30
28
  */
31
29
  export async function publicAccountV1Queue(
32
30
  client$: SteamSetsCore,
33
- request: operations.AccountV1QueueRequest,
31
+ request: components.AppSearch,
34
32
  security: operations.AccountV1QueueSecurity,
35
33
  options?: RequestOptions,
36
34
  ): Promise<
@@ -50,29 +48,20 @@ export async function publicAccountV1Queue(
50
48
 
51
49
  const parsed$ = schemas$.safeParse(
52
50
  input$,
53
- (value$) => operations.AccountV1QueueRequest$outboundSchema.parse(value$),
51
+ (value$) => components.AppSearch$outboundSchema.parse(value$),
54
52
  "Input validation failed",
55
53
  );
56
54
  if (!parsed$.ok) {
57
55
  return parsed$;
58
56
  }
59
57
  const payload$ = parsed$.value;
60
- const body$ = encodeJSON$("body", payload$.AppSearch, { explode: true });
58
+ const body$ = encodeJSON$("body", payload$, { explode: true });
61
59
 
62
60
  const path$ = pathToFunc("/app.v1.AppService/Queue")();
63
61
 
64
62
  const headers$ = new Headers({
65
63
  "Content-Type": "application/json",
66
64
  Accept: "application/problem+json",
67
- "User-Agent": encodeSimple$("User-Agent", payload$["User-Agent"], {
68
- explode: false,
69
- charEncoding: "none",
70
- }),
71
- "X-Forwarded-For": encodeSimple$(
72
- "X-Forwarded-For",
73
- payload$["X-Forwarded-For"],
74
- { explode: false, charEncoding: "none" },
75
- ),
76
65
  });
77
66
 
78
67
  const security$: SecurityInput[][] = [
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.8.2",
58
+ sdkVersion: "0.8.3",
59
59
  genVersion: "2.415.7",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.8.2 2.415.7 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.8.3 2.415.7 1.0.0 @steamsets/client-ts",
62
62
  } as const;