@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
@@ -0,0 +1,238 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import {
9
+ Connection,
10
+ Connection$inboundSchema,
11
+ Connection$Outbound,
12
+ Connection$outboundSchema,
13
+ } from "./connection.js";
14
+ import {
15
+ Resource,
16
+ Resource$inboundSchema,
17
+ Resource$Outbound,
18
+ Resource$outboundSchema,
19
+ } from "./resource.js";
20
+ import {
21
+ Role,
22
+ Role$inboundSchema,
23
+ Role$Outbound,
24
+ Role$outboundSchema,
25
+ } from "./role.js";
26
+ import {
27
+ Session,
28
+ Session$inboundSchema,
29
+ Session$Outbound,
30
+ Session$outboundSchema,
31
+ } from "./session.js";
32
+ import {
33
+ V1AccountLocationUpdate,
34
+ V1AccountLocationUpdate$inboundSchema,
35
+ V1AccountLocationUpdate$Outbound,
36
+ V1AccountLocationUpdate$outboundSchema,
37
+ } from "./v1accountlocationupdate.js";
38
+ import {
39
+ V1AccountNameUpdate,
40
+ V1AccountNameUpdate$inboundSchema,
41
+ V1AccountNameUpdate$Outbound,
42
+ V1AccountNameUpdate$outboundSchema,
43
+ } from "./v1accountnameupdate.js";
44
+
45
+ /**
46
+ * The privacy of the account
47
+ */
48
+ export const V1AdminGetAccountResponseBodyPrivacy = {
49
+ Private: "private",
50
+ Public: "public",
51
+ FriendsOnly: "friends_only",
52
+ } as const;
53
+ /**
54
+ * The privacy of the account
55
+ */
56
+ export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<
57
+ typeof V1AdminGetAccountResponseBodyPrivacy
58
+ >;
59
+
60
+ export type V1AdminGetAccountResponseBody = {
61
+ /**
62
+ * A URL to the JSON Schema for this object.
63
+ */
64
+ dollarSchema?: string | undefined;
65
+ /**
66
+ * The avatar of the account
67
+ */
68
+ avatar: string;
69
+ /**
70
+ * The city of the account
71
+ */
72
+ city: string | null;
73
+ /**
74
+ * The connections the user has
75
+ */
76
+ connections: Array<Connection> | null;
77
+ /**
78
+ * The country of the account
79
+ */
80
+ country: string | null;
81
+ /**
82
+ * The email of the account
83
+ */
84
+ email: string | null;
85
+ /**
86
+ * The location updates the user has
87
+ */
88
+ locationUpdates: Array<V1AccountLocationUpdate> | null;
89
+ /**
90
+ * The name of the account
91
+ */
92
+ name: string;
93
+ /**
94
+ * The name updates the user has
95
+ */
96
+ nameUpdates: Array<V1AccountNameUpdate> | null;
97
+ /**
98
+ * The privacy of the account
99
+ */
100
+ privacy: V1AdminGetAccountResponseBodyPrivacy;
101
+ /**
102
+ * The region of the account
103
+ */
104
+ region: string | null;
105
+ /**
106
+ * The resources the user has (permissions)
107
+ */
108
+ resources: Array<Resource> | null;
109
+ /**
110
+ * The roles the user has
111
+ */
112
+ roles: Array<Role> | null;
113
+ /**
114
+ * The sessions the user has
115
+ */
116
+ sessions: Array<Session> | null;
117
+ /**
118
+ * The state of the account
119
+ */
120
+ state: string | null;
121
+ /**
122
+ * The vanity of the account
123
+ */
124
+ vanity: string | null;
125
+ };
126
+
127
+ /** @internal */
128
+ export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema:
129
+ z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> = z.nativeEnum(
130
+ V1AdminGetAccountResponseBodyPrivacy,
131
+ );
132
+
133
+ /** @internal */
134
+ export const V1AdminGetAccountResponseBodyPrivacy$outboundSchema:
135
+ z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> =
136
+ V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
137
+
138
+ /**
139
+ * @internal
140
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
141
+ */
142
+ export namespace V1AdminGetAccountResponseBodyPrivacy$ {
143
+ /** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$inboundSchema` instead. */
144
+ export const inboundSchema =
145
+ V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
146
+ /** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$outboundSchema` instead. */
147
+ export const outboundSchema =
148
+ V1AdminGetAccountResponseBodyPrivacy$outboundSchema;
149
+ }
150
+
151
+ /** @internal */
152
+ export const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<
153
+ V1AdminGetAccountResponseBody,
154
+ z.ZodTypeDef,
155
+ unknown
156
+ > = z.object({
157
+ $schema: z.string().optional(),
158
+ avatar: z.string(),
159
+ city: z.nullable(z.string()),
160
+ connections: z.nullable(z.array(Connection$inboundSchema)),
161
+ country: z.nullable(z.string()),
162
+ email: z.nullable(z.string()),
163
+ locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$inboundSchema)),
164
+ name: z.string(),
165
+ nameUpdates: z.nullable(z.array(V1AccountNameUpdate$inboundSchema)),
166
+ privacy: V1AdminGetAccountResponseBodyPrivacy$inboundSchema,
167
+ region: z.nullable(z.string()),
168
+ resources: z.nullable(z.array(Resource$inboundSchema)),
169
+ roles: z.nullable(z.array(Role$inboundSchema)),
170
+ sessions: z.nullable(z.array(Session$inboundSchema)),
171
+ state: z.nullable(z.string()),
172
+ vanity: z.nullable(z.string()),
173
+ }).transform((v) => {
174
+ return remap$(v, {
175
+ "$schema": "dollarSchema",
176
+ });
177
+ });
178
+
179
+ /** @internal */
180
+ export type V1AdminGetAccountResponseBody$Outbound = {
181
+ $schema?: string | undefined;
182
+ avatar: string;
183
+ city: string | null;
184
+ connections: Array<Connection$Outbound> | null;
185
+ country: string | null;
186
+ email: string | null;
187
+ locationUpdates: Array<V1AccountLocationUpdate$Outbound> | null;
188
+ name: string;
189
+ nameUpdates: Array<V1AccountNameUpdate$Outbound> | null;
190
+ privacy: string;
191
+ region: string | null;
192
+ resources: Array<Resource$Outbound> | null;
193
+ roles: Array<Role$Outbound> | null;
194
+ sessions: Array<Session$Outbound> | null;
195
+ state: string | null;
196
+ vanity: string | null;
197
+ };
198
+
199
+ /** @internal */
200
+ export const V1AdminGetAccountResponseBody$outboundSchema: z.ZodType<
201
+ V1AdminGetAccountResponseBody$Outbound,
202
+ z.ZodTypeDef,
203
+ V1AdminGetAccountResponseBody
204
+ > = z.object({
205
+ dollarSchema: z.string().optional(),
206
+ avatar: z.string(),
207
+ city: z.nullable(z.string()),
208
+ connections: z.nullable(z.array(Connection$outboundSchema)),
209
+ country: z.nullable(z.string()),
210
+ email: z.nullable(z.string()),
211
+ locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$outboundSchema)),
212
+ name: z.string(),
213
+ nameUpdates: z.nullable(z.array(V1AccountNameUpdate$outboundSchema)),
214
+ privacy: V1AdminGetAccountResponseBodyPrivacy$outboundSchema,
215
+ region: z.nullable(z.string()),
216
+ resources: z.nullable(z.array(Resource$outboundSchema)),
217
+ roles: z.nullable(z.array(Role$outboundSchema)),
218
+ sessions: z.nullable(z.array(Session$outboundSchema)),
219
+ state: z.nullable(z.string()),
220
+ vanity: z.nullable(z.string()),
221
+ }).transform((v) => {
222
+ return remap$(v, {
223
+ dollarSchema: "$schema",
224
+ });
225
+ });
226
+
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ export namespace V1AdminGetAccountResponseBody$ {
232
+ /** @deprecated use `V1AdminGetAccountResponseBody$inboundSchema` instead. */
233
+ export const inboundSchema = V1AdminGetAccountResponseBody$inboundSchema;
234
+ /** @deprecated use `V1AdminGetAccountResponseBody$outboundSchema` instead. */
235
+ export const outboundSchema = V1AdminGetAccountResponseBody$outboundSchema;
236
+ /** @deprecated use `V1AdminGetAccountResponseBody$Outbound` instead. */
237
+ export type Outbound = V1AdminGetAccountResponseBody$Outbound;
238
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as components from "../components/index.js";
8
+
9
+ export type AdminV1GetAccountResponse = {
10
+ httpMeta: components.HTTPMetadata;
11
+ /**
12
+ * OK
13
+ */
14
+ v1AdminGetAccountResponseBody?:
15
+ | components.V1AdminGetAccountResponseBody
16
+ | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const AdminV1GetAccountResponse$inboundSchema: z.ZodType<
21
+ AdminV1GetAccountResponse,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ HttpMeta: components.HTTPMetadata$inboundSchema,
26
+ V1AdminGetAccountResponseBody: components
27
+ .V1AdminGetAccountResponseBody$inboundSchema.optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "HttpMeta": "httpMeta",
31
+ "V1AdminGetAccountResponseBody": "v1AdminGetAccountResponseBody",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type AdminV1GetAccountResponse$Outbound = {
37
+ HttpMeta: components.HTTPMetadata$Outbound;
38
+ V1AdminGetAccountResponseBody?:
39
+ | components.V1AdminGetAccountResponseBody$Outbound
40
+ | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const AdminV1GetAccountResponse$outboundSchema: z.ZodType<
45
+ AdminV1GetAccountResponse$Outbound,
46
+ z.ZodTypeDef,
47
+ AdminV1GetAccountResponse
48
+ > = z.object({
49
+ httpMeta: components.HTTPMetadata$outboundSchema,
50
+ v1AdminGetAccountResponseBody: components
51
+ .V1AdminGetAccountResponseBody$outboundSchema.optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ httpMeta: "HttpMeta",
55
+ v1AdminGetAccountResponseBody: "V1AdminGetAccountResponseBody",
56
+ });
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace AdminV1GetAccountResponse$ {
64
+ /** @deprecated use `AdminV1GetAccountResponse$inboundSchema` instead. */
65
+ export const inboundSchema = AdminV1GetAccountResponse$inboundSchema;
66
+ /** @deprecated use `AdminV1GetAccountResponse$outboundSchema` instead. */
67
+ export const outboundSchema = AdminV1GetAccountResponse$outboundSchema;
68
+ /** @deprecated use `AdminV1GetAccountResponse$Outbound` instead. */
69
+ export type Outbound = AdminV1GetAccountResponse$Outbound;
70
+ }
@@ -28,6 +28,7 @@ export * from "./accountv1settingsupdate.js";
28
28
  export * from "./accountv1settingsupdateimage.js";
29
29
  export * from "./accountv1settingsuploadimages.js";
30
30
  export * from "./accountv1settingsverfyemail.js";
31
+ export * from "./adminv1getaccount.js";
31
32
  export * from "./appv1get.js";
32
33
  export * from "./appv1queue.js";
33
34
  export * from "./badgev1tag.js";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { adminAdminV1GetAccount } from "../funcs/adminAdminV1GetAccount.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as components from "../models/components/index.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { unwrapAsync } from "../types/fp.js";
10
+
11
+ export class Admin extends ClientSDK {
12
+ async adminV1GetAccount(
13
+ request: components.AccountSearch,
14
+ options?: RequestOptions,
15
+ ): Promise<operations.AdminV1GetAccountResponse> {
16
+ return unwrapAsync(adminAdminV1GetAccount(
17
+ this,
18
+ request,
19
+ options,
20
+ ));
21
+ }
22
+ }
package/src/sdk/sdk.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { Account } from "./account.js";
7
+ import { Admin } from "./admin.js";
7
8
  import { App } from "./app.js";
8
9
  import { Badge } from "./badge.js";
9
10
  import { Connection } from "./connection.js";
@@ -53,6 +54,11 @@ export class SteamSets extends ClientSDK {
53
54
  return (this._public ??= new Public(this._options));
54
55
  }
55
56
 
57
+ private _admin?: Admin;
58
+ get admin(): Admin {
59
+ return (this._admin ??= new Admin(this._options));
60
+ }
61
+
56
62
  private _app?: App;
57
63
  get app(): App {
58
64
  return (this._app ??= new App(this._options));