@steamsets/client-ts 0.11.28 → 0.11.29

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 (108) hide show
  1. package/README.md +5 -0
  2. package/docs/sdks/account/README.md +6 -6
  3. package/docs/sdks/admin/README.md +81 -0
  4. package/docs/sdks/data/README.md +6 -6
  5. package/docs/sdks/public/README.md +6 -6
  6. package/funcs/accountAccountV1GetApps.js +2 -2
  7. package/funcs/accountAccountV1GetApps.js.map +1 -1
  8. package/funcs/accountAccountV1GetBadges.js +2 -2
  9. package/funcs/accountAccountV1GetBadges.js.map +1 -1
  10. package/funcs/accountAccountV1GetDataPoints.js +2 -2
  11. package/funcs/accountAccountV1GetDataPoints.js.map +1 -1
  12. package/funcs/accountAccountV1GetFriends.js +2 -2
  13. package/funcs/accountAccountV1GetFriends.js.map +1 -1
  14. package/funcs/accountAccountV1GetInfo.js +2 -2
  15. package/funcs/accountAccountV1GetInfo.js.map +1 -1
  16. package/funcs/accountAccountV1GetLeaderboardHistory.js +2 -2
  17. package/funcs/accountAccountV1GetLeaderboardHistory.js.map +1 -1
  18. package/funcs/adminAdminV1GetAccount.d.ts +11 -0
  19. package/funcs/adminAdminV1GetAccount.d.ts.map +1 -0
  20. package/funcs/adminAdminV1GetAccount.js +95 -0
  21. package/funcs/adminAdminV1GetAccount.js.map +1 -0
  22. package/funcs/dataAccountV1GetApps.js +2 -2
  23. package/funcs/dataAccountV1GetApps.js.map +1 -1
  24. package/funcs/dataAccountV1GetBadges.js +2 -2
  25. package/funcs/dataAccountV1GetBadges.js.map +1 -1
  26. package/funcs/dataAccountV1GetDataPoints.js +2 -2
  27. package/funcs/dataAccountV1GetDataPoints.js.map +1 -1
  28. package/funcs/dataAccountV1GetFriends.js +2 -2
  29. package/funcs/dataAccountV1GetFriends.js.map +1 -1
  30. package/funcs/dataAccountV1GetInfo.js +2 -2
  31. package/funcs/dataAccountV1GetInfo.js.map +1 -1
  32. package/funcs/dataAccountV1GetLeaderboardHistory.js +2 -2
  33. package/funcs/dataAccountV1GetLeaderboardHistory.js.map +1 -1
  34. package/funcs/publicAccountV1GetApps.js +2 -2
  35. package/funcs/publicAccountV1GetApps.js.map +1 -1
  36. package/funcs/publicAccountV1GetBadges.js +2 -2
  37. package/funcs/publicAccountV1GetBadges.js.map +1 -1
  38. package/funcs/publicAccountV1GetDataPoints.js +2 -2
  39. package/funcs/publicAccountV1GetDataPoints.js.map +1 -1
  40. package/funcs/publicAccountV1GetFriends.js +2 -2
  41. package/funcs/publicAccountV1GetFriends.js.map +1 -1
  42. package/funcs/publicAccountV1GetInfo.js +2 -2
  43. package/funcs/publicAccountV1GetInfo.js.map +1 -1
  44. package/funcs/publicAccountV1GetLeaderboardHistory.js +2 -2
  45. package/funcs/publicAccountV1GetLeaderboardHistory.js.map +1 -1
  46. package/lib/config.d.ts +2 -2
  47. package/lib/config.js +2 -2
  48. package/models/components/index.d.ts +3 -0
  49. package/models/components/index.d.ts.map +1 -1
  50. package/models/components/index.js +3 -0
  51. package/models/components/index.js.map +1 -1
  52. package/models/components/v1accountlocationupdate.d.ts +53 -0
  53. package/models/components/v1accountlocationupdate.d.ts.map +1 -0
  54. package/models/components/v1accountlocationupdate.js +60 -0
  55. package/models/components/v1accountlocationupdate.js.map +1 -0
  56. package/models/components/v1accountnameupdate.d.ts +33 -0
  57. package/models/components/v1accountnameupdate.d.ts.map +1 -0
  58. package/models/components/v1accountnameupdate.js +52 -0
  59. package/models/components/v1accountnameupdate.js.map +1 -0
  60. package/models/components/v1admingetaccountresponsebody.d.ts +144 -0
  61. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -0
  62. package/models/components/v1admingetaccountresponsebody.js +118 -0
  63. package/models/components/v1admingetaccountresponsebody.js.map +1 -0
  64. package/models/operations/adminv1getaccount.d.ts +31 -0
  65. package/models/operations/adminv1getaccount.d.ts.map +1 -0
  66. package/models/operations/adminv1getaccount.js +66 -0
  67. package/models/operations/adminv1getaccount.js.map +1 -0
  68. package/models/operations/index.d.ts +1 -0
  69. package/models/operations/index.d.ts.map +1 -1
  70. package/models/operations/index.js +1 -0
  71. package/models/operations/index.js.map +1 -1
  72. package/package.json +1 -1
  73. package/sdk/admin.d.ts +7 -0
  74. package/sdk/admin.d.ts.map +1 -0
  75. package/sdk/admin.js +16 -0
  76. package/sdk/admin.js.map +1 -0
  77. package/sdk/sdk.d.ts +3 -0
  78. package/sdk/sdk.d.ts.map +1 -1
  79. package/sdk/sdk.js +5 -0
  80. package/sdk/sdk.js.map +1 -1
  81. package/src/funcs/accountAccountV1GetApps.ts +2 -2
  82. package/src/funcs/accountAccountV1GetBadges.ts +2 -2
  83. package/src/funcs/accountAccountV1GetDataPoints.ts +2 -2
  84. package/src/funcs/accountAccountV1GetFriends.ts +2 -2
  85. package/src/funcs/accountAccountV1GetInfo.ts +2 -2
  86. package/src/funcs/accountAccountV1GetLeaderboardHistory.ts +2 -2
  87. package/src/funcs/adminAdminV1GetAccount.ts +124 -0
  88. package/src/funcs/dataAccountV1GetApps.ts +2 -2
  89. package/src/funcs/dataAccountV1GetBadges.ts +2 -2
  90. package/src/funcs/dataAccountV1GetDataPoints.ts +2 -2
  91. package/src/funcs/dataAccountV1GetFriends.ts +2 -2
  92. package/src/funcs/dataAccountV1GetInfo.ts +2 -2
  93. package/src/funcs/dataAccountV1GetLeaderboardHistory.ts +2 -2
  94. package/src/funcs/publicAccountV1GetApps.ts +2 -2
  95. package/src/funcs/publicAccountV1GetBadges.ts +2 -2
  96. package/src/funcs/publicAccountV1GetDataPoints.ts +2 -2
  97. package/src/funcs/publicAccountV1GetFriends.ts +2 -2
  98. package/src/funcs/publicAccountV1GetInfo.ts +2 -2
  99. package/src/funcs/publicAccountV1GetLeaderboardHistory.ts +2 -2
  100. package/src/lib/config.ts +2 -2
  101. package/src/models/components/index.ts +3 -0
  102. package/src/models/components/v1accountlocationupdate.ts +83 -0
  103. package/src/models/components/v1accountnameupdate.ts +55 -0
  104. package/src/models/components/v1admingetaccountresponsebody.ts +238 -0
  105. package/src/models/operations/adminv1getaccount.ts +70 -0
  106. package/src/models/operations/index.ts +1 -0
  107. package/src/sdk/admin.ts +22 -0
  108. package/src/sdk/sdk.ts +6 -0
@@ -83,7 +83,7 @@ export async function accountAccountV1GetApps(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function accountAccountV1GetApps(
111
111
  M.json(200, operations.AccountV1GetAppsResponse$inboundSchema, {
112
112
  key: "V1AccountsAppsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function accountAccountV1GetBadges(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function accountAccountV1GetBadges(
111
111
  M.json(200, operations.AccountV1GetBadgesResponse$inboundSchema, {
112
112
  key: "V1BadgesResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function accountAccountV1GetDataPoints(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function accountAccountV1GetDataPoints(
111
111
  M.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
112
112
  key: "V1AccountDataPointsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function accountAccountV1GetFriends(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function accountAccountV1GetFriends(
111
111
  M.json(200, operations.AccountV1GetFriendsResponse$inboundSchema, {
112
112
  key: "V1AccountFriendsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function accountAccountV1GetInfo(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function accountAccountV1GetInfo(
111
111
  M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
112
112
  key: "AccountInfoBody",
113
113
  }),
114
- M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function accountAccountV1GetLeaderboardHistory(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -113,7 +113,7 @@ export async function accountAccountV1GetLeaderboardHistory(
113
113
  operations.AccountV1GetLeaderboardHistoryResponse$inboundSchema,
114
114
  { key: "V1AccountLeaderboardHistoryResponseBody" },
115
115
  ),
116
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
116
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
117
117
  ctype: "application/problem+json",
118
118
  }),
119
119
  M.fail(["4XX", "5XX"]),
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ export async function adminAdminV1GetAccount(
27
+ client: SteamSetsCore,
28
+ request: components.AccountSearch,
29
+ options?: RequestOptions,
30
+ ): Promise<
31
+ Result<
32
+ operations.AdminV1GetAccountResponse,
33
+ | errors.ErrorModel
34
+ | SDKError
35
+ | SDKValidationError
36
+ | UnexpectedClientError
37
+ | InvalidRequestError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | ConnectionError
41
+ >
42
+ > {
43
+ const parsed = safeParse(
44
+ request,
45
+ (value) => components.AccountSearch$outboundSchema.parse(value),
46
+ "Input validation failed",
47
+ );
48
+ if (!parsed.ok) {
49
+ return parsed;
50
+ }
51
+ const payload = parsed.value;
52
+ const body = encodeJSON("body", payload, { explode: true });
53
+
54
+ const path = pathToFunc("/admin.v1.AdminService/GetAccount")();
55
+
56
+ const headers = new Headers({
57
+ "Content-Type": "application/json",
58
+ Accept: "application/json",
59
+ });
60
+
61
+ const secConfig = await extractSecurity(client._options.token);
62
+ const securityInput = secConfig == null ? {} : { token: secConfig };
63
+ const context = {
64
+ operationID: "admin.v1.get-account",
65
+ oAuth2Scopes: [],
66
+ securitySource: client._options.token,
67
+ };
68
+ const requestSecurity = resolveGlobalSecurity(securityInput);
69
+
70
+ const requestRes = client._createRequest(context, {
71
+ security: requestSecurity,
72
+ method: "POST",
73
+ path: path,
74
+ headers: headers,
75
+ body: body,
76
+ uaHeader: "x-speakeasy-user-agent",
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return requestRes;
81
+ }
82
+ const req = requestRes.value;
83
+
84
+ const doResult = await client._do(req, {
85
+ context,
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
+ retryConfig: options?.retries
88
+ || client._options.retryConfig,
89
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
90
+ });
91
+ if (!doResult.ok) {
92
+ return doResult;
93
+ }
94
+ const response = doResult.value;
95
+
96
+ const responseFields = {
97
+ HttpMeta: { Response: response, Request: req },
98
+ };
99
+
100
+ const [result] = await M.match<
101
+ operations.AdminV1GetAccountResponse,
102
+ | errors.ErrorModel
103
+ | SDKError
104
+ | SDKValidationError
105
+ | UnexpectedClientError
106
+ | InvalidRequestError
107
+ | RequestAbortedError
108
+ | RequestTimeoutError
109
+ | ConnectionError
110
+ >(
111
+ M.json(200, operations.AdminV1GetAccountResponse$inboundSchema, {
112
+ key: "V1AdminGetAccountResponseBody",
113
+ }),
114
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
115
+ ctype: "application/problem+json",
116
+ }),
117
+ M.fail(["4XX", "5XX"]),
118
+ )(response, req, { extraFields: responseFields });
119
+ if (!result.ok) {
120
+ return result;
121
+ }
122
+
123
+ return result;
124
+ }
@@ -83,7 +83,7 @@ export async function dataAccountV1GetApps(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function dataAccountV1GetApps(
111
111
  M.json(200, operations.AccountV1GetAppsResponse$inboundSchema, {
112
112
  key: "V1AccountsAppsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function dataAccountV1GetBadges(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function dataAccountV1GetBadges(
111
111
  M.json(200, operations.AccountV1GetBadgesResponse$inboundSchema, {
112
112
  key: "V1BadgesResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function dataAccountV1GetDataPoints(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function dataAccountV1GetDataPoints(
111
111
  M.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
112
112
  key: "V1AccountDataPointsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function dataAccountV1GetFriends(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function dataAccountV1GetFriends(
111
111
  M.json(200, operations.AccountV1GetFriendsResponse$inboundSchema, {
112
112
  key: "V1AccountFriendsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function dataAccountV1GetInfo(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function dataAccountV1GetInfo(
111
111
  M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
112
112
  key: "AccountInfoBody",
113
113
  }),
114
- M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function dataAccountV1GetLeaderboardHistory(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -113,7 +113,7 @@ export async function dataAccountV1GetLeaderboardHistory(
113
113
  operations.AccountV1GetLeaderboardHistoryResponse$inboundSchema,
114
114
  { key: "V1AccountLeaderboardHistoryResponseBody" },
115
115
  ),
116
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
116
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
117
117
  ctype: "application/problem+json",
118
118
  }),
119
119
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetApps(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function publicAccountV1GetApps(
111
111
  M.json(200, operations.AccountV1GetAppsResponse$inboundSchema, {
112
112
  key: "V1AccountsAppsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetBadges(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function publicAccountV1GetBadges(
111
111
  M.json(200, operations.AccountV1GetBadgesResponse$inboundSchema, {
112
112
  key: "V1BadgesResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetDataPoints(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function publicAccountV1GetDataPoints(
111
111
  M.json(200, operations.AccountV1GetDataPointsResponse$inboundSchema, {
112
112
  key: "V1AccountDataPointsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetFriends(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function publicAccountV1GetFriends(
111
111
  M.json(200, operations.AccountV1GetFriendsResponse$inboundSchema, {
112
112
  key: "V1AccountFriendsResponseBody",
113
113
  }),
114
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetInfo(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
86
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -111,7 +111,7 @@ export async function publicAccountV1GetInfo(
111
111
  M.json(200, operations.AccountV1GetInfoResponse$inboundSchema, {
112
112
  key: "AccountInfoBody",
113
113
  }),
114
- M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
114
+ M.jsonErr([403, 404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
115
115
  ctype: "application/problem+json",
116
116
  }),
117
117
  M.fail(["4XX", "5XX"]),
@@ -83,7 +83,7 @@ export async function publicAccountV1GetLeaderboardHistory(
83
83
 
84
84
  const doResult = await client._do(req, {
85
85
  context,
86
- errorCodes: ["400", "404", "422", "4XX", "500", "5XX"],
86
+ errorCodes: ["400", "403", "404", "422", "4XX", "500", "5XX"],
87
87
  retryConfig: options?.retries
88
88
  || client._options.retryConfig,
89
89
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
@@ -113,7 +113,7 @@ export async function publicAccountV1GetLeaderboardHistory(
113
113
  operations.AccountV1GetLeaderboardHistoryResponse$inboundSchema,
114
114
  { key: "V1AccountLeaderboardHistoryResponseBody" },
115
115
  ),
116
- M.jsonErr([400, 404, 422, 500], errors.ErrorModel$inboundSchema, {
116
+ M.jsonErr([400, 403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
117
117
  ctype: "application/problem+json",
118
118
  }),
119
119
  M.fail(["4XX", "5XX"]),
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.11.28",
58
+ sdkVersion: "0.11.29",
59
59
  genVersion: "2.438.15",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.11.28 2.438.15 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.11.29 2.438.15 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -48,9 +48,12 @@ export * from "./v1accountleaderboardbadgesearch.js";
48
48
  export * from "./v1accountleaderboardhistoryresponsebody.js";
49
49
  export * from "./v1accountleaderboardrequestbody.js";
50
50
  export * from "./v1accountleaderboardresponsebody.js";
51
+ export * from "./v1accountlocationupdate.js";
52
+ export * from "./v1accountnameupdate.js";
51
53
  export * from "./v1accountplaytimedatapoint.js";
52
54
  export * from "./v1accountqueuerequestbody.js";
53
55
  export * from "./v1accountsappsresponsebody.js";
56
+ export * from "./v1admingetaccountresponsebody.js";
54
57
  export * from "./v1appbadge.js";
55
58
  export * from "./v1appdetail.js";
56
59
  export * from "./v1appitem.js";
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountLocationUpdate = {
8
+ /**
9
+ * The city name of the location
10
+ */
11
+ city: 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 name of the location
22
+ */
23
+ region: string | null;
24
+ /**
25
+ * The state name of the location
26
+ */
27
+ state: string | null;
28
+ /**
29
+ * The time the location was updated
30
+ */
31
+ updatedAt: Date;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1AccountLocationUpdate$inboundSchema: z.ZodType<
36
+ V1AccountLocationUpdate,
37
+ z.ZodTypeDef,
38
+ unknown
39
+ > = z.object({
40
+ city: z.nullable(z.string()),
41
+ countryCode: z.nullable(z.string()),
42
+ countryName: z.nullable(z.string()),
43
+ region: z.nullable(z.string()),
44
+ state: z.nullable(z.string()),
45
+ updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
46
+ });
47
+
48
+ /** @internal */
49
+ export type V1AccountLocationUpdate$Outbound = {
50
+ city: string | null;
51
+ countryCode: string | null;
52
+ countryName: string | null;
53
+ region: string | null;
54
+ state: string | null;
55
+ updatedAt: string;
56
+ };
57
+
58
+ /** @internal */
59
+ export const V1AccountLocationUpdate$outboundSchema: z.ZodType<
60
+ V1AccountLocationUpdate$Outbound,
61
+ z.ZodTypeDef,
62
+ V1AccountLocationUpdate
63
+ > = z.object({
64
+ city: z.nullable(z.string()),
65
+ countryCode: z.nullable(z.string()),
66
+ countryName: z.nullable(z.string()),
67
+ region: z.nullable(z.string()),
68
+ state: z.nullable(z.string()),
69
+ updatedAt: z.date().transform(v => v.toISOString()),
70
+ });
71
+
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export namespace V1AccountLocationUpdate$ {
77
+ /** @deprecated use `V1AccountLocationUpdate$inboundSchema` instead. */
78
+ export const inboundSchema = V1AccountLocationUpdate$inboundSchema;
79
+ /** @deprecated use `V1AccountLocationUpdate$outboundSchema` instead. */
80
+ export const outboundSchema = V1AccountLocationUpdate$outboundSchema;
81
+ /** @deprecated use `V1AccountLocationUpdate$Outbound` instead. */
82
+ export type Outbound = V1AccountLocationUpdate$Outbound;
83
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountNameUpdate = {
8
+ /**
9
+ * The name of the account
10
+ */
11
+ name: string;
12
+ /**
13
+ * The time the name was updated
14
+ */
15
+ updatedAt: Date;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1AccountNameUpdate$inboundSchema: z.ZodType<
20
+ V1AccountNameUpdate,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ name: z.string(),
25
+ updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1AccountNameUpdate$Outbound = {
30
+ name: string;
31
+ updatedAt: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1AccountNameUpdate$outboundSchema: z.ZodType<
36
+ V1AccountNameUpdate$Outbound,
37
+ z.ZodTypeDef,
38
+ V1AccountNameUpdate
39
+ > = z.object({
40
+ name: z.string(),
41
+ updatedAt: z.date().transform(v => v.toISOString()),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace V1AccountNameUpdate$ {
49
+ /** @deprecated use `V1AccountNameUpdate$inboundSchema` instead. */
50
+ export const inboundSchema = V1AccountNameUpdate$inboundSchema;
51
+ /** @deprecated use `V1AccountNameUpdate$outboundSchema` instead. */
52
+ export const outboundSchema = V1AccountNameUpdate$outboundSchema;
53
+ /** @deprecated use `V1AccountNameUpdate$Outbound` instead. */
54
+ export type Outbound = V1AccountNameUpdate$Outbound;
55
+ }