@steamsets/client-ts 0.1.2 → 0.2.1

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 (319) hide show
  1. package/.devcontainer/README.md +1 -1
  2. package/README.md +136 -51
  3. package/docs/sdks/account/README.md +798 -15
  4. package/docs/sdks/connection/README.md +329 -0
  5. package/docs/sdks/liveness/README.md +36 -4
  6. package/docs/sdks/session/README.md +259 -0
  7. package/docs/sdks/settings/README.md +154 -0
  8. package/funcs/accountAccountV1ConnectionConnect.d.ts +13 -0
  9. package/funcs/accountAccountV1ConnectionConnect.d.ts.map +1 -0
  10. package/funcs/accountAccountV1ConnectionConnect.js +95 -0
  11. package/funcs/accountAccountV1ConnectionConnect.js.map +1 -0
  12. package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts +13 -0
  13. package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts.map +1 -0
  14. package/funcs/accountAccountV1ConnectionDeleteConnection.js +95 -0
  15. package/funcs/accountAccountV1ConnectionDeleteConnection.js.map +1 -0
  16. package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts +13 -0
  17. package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts.map +1 -0
  18. package/funcs/accountAccountV1ConnectionUpdateConnection.js +95 -0
  19. package/funcs/accountAccountV1ConnectionUpdateConnection.js.map +1 -0
  20. package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts +13 -0
  21. package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts.map +1 -0
  22. package/funcs/accountAccountV1ConnectionVerifyConnection.js +95 -0
  23. package/funcs/accountAccountV1ConnectionVerifyConnection.js.map +1 -0
  24. package/funcs/accountAccountV1GetApps.d.ts +13 -0
  25. package/funcs/accountAccountV1GetApps.d.ts.map +1 -0
  26. package/funcs/{accountAccountV1Apps.js → accountAccountV1GetApps.js} +8 -6
  27. package/funcs/accountAccountV1GetApps.js.map +1 -0
  28. package/funcs/{accountAccountV1Badge.d.ts → accountAccountV1GetBadges.d.ts} +2 -2
  29. package/funcs/accountAccountV1GetBadges.d.ts.map +1 -0
  30. package/funcs/{accountAccountV1Badge.js → accountAccountV1GetBadges.js} +9 -7
  31. package/funcs/accountAccountV1GetBadges.js.map +1 -0
  32. package/funcs/accountAccountV1SessionDelete.d.ts +13 -0
  33. package/funcs/accountAccountV1SessionDelete.d.ts.map +1 -0
  34. package/funcs/accountAccountV1SessionDelete.js +95 -0
  35. package/funcs/accountAccountV1SessionDelete.js.map +1 -0
  36. package/funcs/accountAccountV1SessionGet.d.ts +13 -0
  37. package/funcs/accountAccountV1SessionGet.d.ts.map +1 -0
  38. package/funcs/accountAccountV1SessionGet.js +82 -0
  39. package/funcs/accountAccountV1SessionGet.js.map +1 -0
  40. package/funcs/accountAccountV1SessionLogin.d.ts +14 -0
  41. package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -0
  42. package/funcs/accountAccountV1SessionLogin.js +104 -0
  43. package/funcs/accountAccountV1SessionLogin.js.map +1 -0
  44. package/funcs/accountAccountV1SettingsGet.d.ts +13 -0
  45. package/funcs/accountAccountV1SettingsGet.d.ts.map +1 -0
  46. package/funcs/accountAccountV1SettingsGet.js +82 -0
  47. package/funcs/accountAccountV1SettingsGet.js.map +1 -0
  48. package/funcs/{accountAccountV1Apps.d.ts → accountAccountV1SettingsUpdate.d.ts} +4 -3
  49. package/funcs/accountAccountV1SettingsUpdate.d.ts.map +1 -0
  50. package/funcs/accountAccountV1SettingsUpdate.js +99 -0
  51. package/funcs/accountAccountV1SettingsUpdate.js.map +1 -0
  52. package/funcs/connectionAccountV1ConnectionConnect.d.ts +13 -0
  53. package/funcs/connectionAccountV1ConnectionConnect.d.ts.map +1 -0
  54. package/funcs/connectionAccountV1ConnectionConnect.js +95 -0
  55. package/funcs/connectionAccountV1ConnectionConnect.js.map +1 -0
  56. package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts +13 -0
  57. package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts.map +1 -0
  58. package/funcs/connectionAccountV1ConnectionDeleteConnection.js +95 -0
  59. package/funcs/connectionAccountV1ConnectionDeleteConnection.js.map +1 -0
  60. package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts +13 -0
  61. package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts.map +1 -0
  62. package/funcs/connectionAccountV1ConnectionUpdateConnection.js +95 -0
  63. package/funcs/connectionAccountV1ConnectionUpdateConnection.js.map +1 -0
  64. package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts +13 -0
  65. package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts.map +1 -0
  66. package/funcs/connectionAccountV1ConnectionVerifyConnection.js +95 -0
  67. package/funcs/connectionAccountV1ConnectionVerifyConnection.js.map +1 -0
  68. package/funcs/livenessLiveness.d.ts.map +1 -1
  69. package/funcs/livenessLiveness.js +4 -2
  70. package/funcs/livenessLiveness.js.map +1 -1
  71. package/funcs/sessionAccountV1SessionDelete.d.ts +13 -0
  72. package/funcs/sessionAccountV1SessionDelete.d.ts.map +1 -0
  73. package/funcs/sessionAccountV1SessionDelete.js +95 -0
  74. package/funcs/sessionAccountV1SessionDelete.js.map +1 -0
  75. package/funcs/sessionAccountV1SessionGet.d.ts +13 -0
  76. package/funcs/sessionAccountV1SessionGet.d.ts.map +1 -0
  77. package/funcs/sessionAccountV1SessionGet.js +82 -0
  78. package/funcs/sessionAccountV1SessionGet.js.map +1 -0
  79. package/funcs/sessionAccountV1SessionLogin.d.ts +14 -0
  80. package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -0
  81. package/funcs/sessionAccountV1SessionLogin.js +104 -0
  82. package/funcs/sessionAccountV1SessionLogin.js.map +1 -0
  83. package/funcs/settingsAccountV1SettingsGet.d.ts +13 -0
  84. package/funcs/settingsAccountV1SettingsGet.d.ts.map +1 -0
  85. package/funcs/settingsAccountV1SettingsGet.js +82 -0
  86. package/funcs/settingsAccountV1SettingsGet.js.map +1 -0
  87. package/funcs/settingsAccountV1SettingsUpdate.d.ts +14 -0
  88. package/funcs/settingsAccountV1SettingsUpdate.d.ts.map +1 -0
  89. package/funcs/settingsAccountV1SettingsUpdate.js +99 -0
  90. package/funcs/settingsAccountV1SettingsUpdate.js.map +1 -0
  91. package/lib/config.d.ts +6 -8
  92. package/lib/config.d.ts.map +1 -1
  93. package/lib/config.js +3 -3
  94. package/lib/config.js.map +1 -1
  95. package/lib/http.d.ts +1 -0
  96. package/lib/http.d.ts.map +1 -1
  97. package/lib/http.js +1 -0
  98. package/lib/http.js.map +1 -1
  99. package/lib/logger.d.ts +6 -0
  100. package/lib/logger.d.ts.map +1 -0
  101. package/lib/logger.js +6 -0
  102. package/lib/logger.js.map +1 -0
  103. package/lib/sdks.d.ts +2 -0
  104. package/lib/sdks.d.ts.map +1 -1
  105. package/lib/sdks.js +80 -2
  106. package/lib/sdks.js.map +1 -1
  107. package/lib/security.d.ts +2 -4
  108. package/lib/security.d.ts.map +1 -1
  109. package/lib/security.js +0 -8
  110. package/lib/security.js.map +1 -1
  111. package/models/components/connection.d.ts +108 -0
  112. package/models/components/connection.d.ts.map +1 -0
  113. package/models/components/connection.js +90 -0
  114. package/models/components/connection.js.map +1 -0
  115. package/models/components/emailnotification.d.ts +62 -0
  116. package/models/components/emailnotification.d.ts.map +1 -0
  117. package/models/components/emailnotification.js +73 -0
  118. package/models/components/emailnotification.js.map +1 -0
  119. package/models/components/image.d.ts +53 -0
  120. package/models/components/image.d.ts.map +1 -0
  121. package/models/components/image.js +60 -0
  122. package/models/components/image.js.map +1 -0
  123. package/models/components/index.d.ts +22 -1
  124. package/models/components/index.d.ts.map +1 -1
  125. package/models/components/index.js +22 -1
  126. package/models/components/index.js.map +1 -1
  127. package/models/components/loginrequestbody.d.ts +73 -0
  128. package/models/components/loginrequestbody.d.ts.map +1 -0
  129. package/models/components/loginrequestbody.js +99 -0
  130. package/models/components/loginrequestbody.js.map +1 -0
  131. package/models/components/security.d.ts +0 -2
  132. package/models/components/security.d.ts.map +1 -1
  133. package/models/components/security.js +0 -2
  134. package/models/components/security.js.map +1 -1
  135. package/models/components/session.d.ts +53 -0
  136. package/models/components/session.d.ts.map +1 -0
  137. package/models/components/session.js +69 -0
  138. package/models/components/session.js.map +1 -0
  139. package/models/components/v1badgesresponsebody.d.ts +31 -0
  140. package/models/components/v1badgesresponsebody.d.ts.map +1 -0
  141. package/models/components/{v1badgesappsresponsebody.js → v1badgesresponsebody.js} +11 -11
  142. package/models/components/v1badgesresponsebody.js.map +1 -0
  143. package/models/components/v1connectrequestbody.d.ts +83 -0
  144. package/models/components/v1connectrequestbody.d.ts.map +1 -0
  145. package/models/components/v1connectrequestbody.js +80 -0
  146. package/models/components/v1connectrequestbody.js.map +1 -0
  147. package/models/components/v1connectresponsebody.d.ts +38 -0
  148. package/models/components/v1connectresponsebody.d.ts.map +1 -0
  149. package/models/components/v1connectresponsebody.js +67 -0
  150. package/models/components/v1connectresponsebody.js.map +1 -0
  151. package/models/components/v1deleteconnectionrequestbody.d.ts +28 -0
  152. package/models/components/v1deleteconnectionrequestbody.d.ts.map +1 -0
  153. package/models/components/v1deleteconnectionrequestbody.js +50 -0
  154. package/models/components/v1deleteconnectionrequestbody.js.map +1 -0
  155. package/models/components/v1deleteconnectionresponsebody.d.ts +33 -0
  156. package/models/components/v1deleteconnectionresponsebody.d.ts.map +1 -0
  157. package/models/components/v1deleteconnectionresponsebody.js +65 -0
  158. package/models/components/v1deleteconnectionresponsebody.js.map +1 -0
  159. package/models/components/v1deletesessionrequestbody.d.ts +28 -0
  160. package/models/components/v1deletesessionrequestbody.d.ts.map +1 -0
  161. package/models/components/v1deletesessionrequestbody.js +50 -0
  162. package/models/components/v1deletesessionrequestbody.js.map +1 -0
  163. package/models/components/v1deletesessionresponsebody.d.ts +33 -0
  164. package/models/components/v1deletesessionresponsebody.d.ts.map +1 -0
  165. package/models/components/v1deletesessionresponsebody.js +65 -0
  166. package/models/components/v1deletesessionresponsebody.js.map +1 -0
  167. package/models/components/v1getsessionbody.d.ts +53 -0
  168. package/models/components/v1getsessionbody.d.ts.map +1 -0
  169. package/models/components/v1getsessionbody.js +76 -0
  170. package/models/components/v1getsessionbody.js.map +1 -0
  171. package/models/components/v1getsettingsbody.d.ts +129 -0
  172. package/models/components/v1getsettingsbody.d.ts.map +1 -0
  173. package/models/components/v1getsettingsbody.js +115 -0
  174. package/models/components/v1getsettingsbody.js.map +1 -0
  175. package/models/components/v1loginresponsebody.d.ts +48 -0
  176. package/models/components/v1loginresponsebody.d.ts.map +1 -0
  177. package/models/components/v1loginresponsebody.js +71 -0
  178. package/models/components/v1loginresponsebody.js.map +1 -0
  179. package/models/components/v1resource.d.ts +30 -0
  180. package/models/components/v1resource.d.ts.map +1 -0
  181. package/models/components/v1resource.js +52 -0
  182. package/models/components/v1resource.js.map +1 -0
  183. package/models/components/v1role.d.ts +40 -0
  184. package/models/components/v1role.d.ts.map +1 -0
  185. package/models/components/v1role.js +69 -0
  186. package/models/components/v1role.js.map +1 -0
  187. package/models/components/v1updateconnectionrequestbody.d.ts +33 -0
  188. package/models/components/v1updateconnectionrequestbody.d.ts.map +1 -0
  189. package/models/components/v1updateconnectionrequestbody.js +52 -0
  190. package/models/components/v1updateconnectionrequestbody.js.map +1 -0
  191. package/models/components/v1updateconnectionresponsebody.d.ts +33 -0
  192. package/models/components/v1updateconnectionresponsebody.d.ts.map +1 -0
  193. package/models/components/v1updateconnectionresponsebody.js +65 -0
  194. package/models/components/v1updateconnectionresponsebody.js.map +1 -0
  195. package/models/components/v1updatesettingsresponsebody.d.ts +33 -0
  196. package/models/components/v1updatesettingsresponsebody.d.ts.map +1 -0
  197. package/models/components/v1updatesettingsresponsebody.js +65 -0
  198. package/models/components/v1updatesettingsresponsebody.js.map +1 -0
  199. package/models/components/v1verifyconnectionrequestbody.d.ts +28 -0
  200. package/models/components/v1verifyconnectionrequestbody.d.ts.map +1 -0
  201. package/models/components/v1verifyconnectionrequestbody.js +50 -0
  202. package/models/components/v1verifyconnectionrequestbody.js.map +1 -0
  203. package/models/components/v1verifyconnectionresponsebody.d.ts +33 -0
  204. package/models/components/v1verifyconnectionresponsebody.d.ts.map +1 -0
  205. package/models/components/v1verifyconnectionresponsebody.js +65 -0
  206. package/models/components/v1verifyconnectionresponsebody.js.map +1 -0
  207. package/models/errors/index.d.ts +1 -0
  208. package/models/errors/index.d.ts.map +1 -1
  209. package/models/errors/index.js +1 -0
  210. package/models/errors/index.js.map +1 -1
  211. package/models/errors/sdkvalidationerror.d.ts +4 -1
  212. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  213. package/models/errors/sdkvalidationerror.js +3 -5
  214. package/models/errors/sdkvalidationerror.js.map +1 -1
  215. package/models/operations/accountv1sessionlogin.d.ts +30 -0
  216. package/models/operations/accountv1sessionlogin.d.ts.map +1 -0
  217. package/models/operations/accountv1sessionlogin.js +72 -0
  218. package/models/operations/accountv1sessionlogin.js.map +1 -0
  219. package/models/operations/accountv1settingsupdate.d.ts +25 -0
  220. package/models/operations/accountv1settingsupdate.d.ts.map +1 -0
  221. package/models/operations/accountv1settingsupdate.js +63 -0
  222. package/models/operations/accountv1settingsupdate.js.map +1 -0
  223. package/models/operations/index.d.ts +3 -0
  224. package/models/operations/index.d.ts.map +1 -0
  225. package/models/operations/index.js +22 -0
  226. package/models/operations/index.js.map +1 -0
  227. package/package.json +2 -2
  228. package/sdk/account.d.ts +39 -2
  229. package/sdk/account.d.ts.map +1 -1
  230. package/sdk/account.js +69 -6
  231. package/sdk/account.js.map +1 -1
  232. package/sdk/connection.d.ts +21 -0
  233. package/sdk/connection.d.ts.map +1 -0
  234. package/sdk/connection.js +40 -0
  235. package/sdk/connection.js.map +1 -0
  236. package/sdk/sdk.d.ts +9 -0
  237. package/sdk/sdk.d.ts.map +1 -1
  238. package/sdk/sdk.js +15 -0
  239. package/sdk/sdk.js.map +1 -1
  240. package/sdk/session.d.ts +18 -0
  241. package/sdk/session.d.ts.map +1 -0
  242. package/sdk/session.js +33 -0
  243. package/sdk/session.js.map +1 -0
  244. package/sdk/settings.d.ts +14 -0
  245. package/sdk/settings.d.ts.map +1 -0
  246. package/sdk/settings.js +26 -0
  247. package/sdk/settings.js.map +1 -0
  248. package/src/funcs/accountAccountV1ConnectionConnect.ts +129 -0
  249. package/src/funcs/accountAccountV1ConnectionDeleteConnection.ts +129 -0
  250. package/src/funcs/accountAccountV1ConnectionUpdateConnection.ts +129 -0
  251. package/src/funcs/accountAccountV1ConnectionVerifyConnection.ts +129 -0
  252. package/src/funcs/{accountAccountV1Apps.ts → accountAccountV1GetApps.ts} +6 -4
  253. package/src/funcs/{accountAccountV1Badge.ts → accountAccountV1GetBadges.ts} +9 -7
  254. package/src/funcs/accountAccountV1SessionDelete.ts +129 -0
  255. package/src/funcs/accountAccountV1SessionGet.ts +109 -0
  256. package/src/funcs/accountAccountV1SessionLogin.ts +138 -0
  257. package/src/funcs/accountAccountV1SettingsGet.ts +109 -0
  258. package/src/funcs/accountAccountV1SettingsUpdate.ts +133 -0
  259. package/src/funcs/connectionAccountV1ConnectionConnect.ts +129 -0
  260. package/src/funcs/connectionAccountV1ConnectionDeleteConnection.ts +129 -0
  261. package/src/funcs/connectionAccountV1ConnectionUpdateConnection.ts +129 -0
  262. package/src/funcs/connectionAccountV1ConnectionVerifyConnection.ts +129 -0
  263. package/src/funcs/livenessLiveness.ts +4 -2
  264. package/src/funcs/sessionAccountV1SessionDelete.ts +129 -0
  265. package/src/funcs/sessionAccountV1SessionGet.ts +109 -0
  266. package/src/funcs/sessionAccountV1SessionLogin.ts +138 -0
  267. package/src/funcs/settingsAccountV1SettingsGet.ts +109 -0
  268. package/src/funcs/settingsAccountV1SettingsUpdate.ts +133 -0
  269. package/src/lib/config.ts +6 -8
  270. package/src/lib/http.ts +1 -1
  271. package/src/lib/logger.ts +9 -0
  272. package/src/lib/sdks.ts +100 -4
  273. package/src/lib/security.ts +2 -8
  274. package/src/models/components/connection.ts +121 -0
  275. package/src/models/components/emailnotification.ts +81 -0
  276. package/src/models/components/image.ts +75 -0
  277. package/src/models/components/index.ts +22 -1
  278. package/src/models/components/loginrequestbody.ts +138 -0
  279. package/src/models/components/security.ts +0 -4
  280. package/src/models/components/session.ts +84 -0
  281. package/src/models/components/{v1badgesappsresponsebody.ts → v1badgesresponsebody.ts} +14 -14
  282. package/src/models/components/v1connectrequestbody.ts +91 -0
  283. package/src/models/components/v1connectresponsebody.ts +75 -0
  284. package/src/models/components/v1deleteconnectionrequestbody.ts +48 -0
  285. package/src/models/components/v1deleteconnectionresponsebody.ts +68 -0
  286. package/src/models/components/v1deletesessionrequestbody.ts +48 -0
  287. package/src/models/components/v1deletesessionresponsebody.ts +68 -0
  288. package/src/models/components/v1getsessionbody.ts +102 -0
  289. package/src/models/components/v1getsettingsbody.ts +198 -0
  290. package/src/models/components/v1loginresponsebody.ts +89 -0
  291. package/src/models/components/v1resource.ts +45 -0
  292. package/src/models/components/v1role.ts +71 -0
  293. package/src/models/components/v1updateconnectionrequestbody.ts +55 -0
  294. package/src/models/components/v1updateconnectionresponsebody.ts +68 -0
  295. package/src/models/components/v1updatesettingsresponsebody.ts +68 -0
  296. package/src/models/components/v1verifyconnectionrequestbody.ts +48 -0
  297. package/src/models/components/v1verifyconnectionresponsebody.ts +68 -0
  298. package/src/models/errors/index.ts +1 -0
  299. package/src/models/errors/sdkvalidationerror.ts +8 -6
  300. package/src/models/operations/accountv1sessionlogin.ts +71 -0
  301. package/src/models/operations/accountv1settingsupdate.ts +58 -0
  302. package/src/models/operations/index.ts +6 -0
  303. package/src/sdk/account.ts +102 -6
  304. package/src/sdk/connection.ts +53 -0
  305. package/src/sdk/sdk.ts +18 -0
  306. package/src/sdk/session.ts +40 -0
  307. package/src/sdk/settings.ts +29 -0
  308. package/src/types/constdatetime.ts +15 -0
  309. package/types/constdatetime.d.ts +3 -0
  310. package/types/constdatetime.d.ts.map +1 -0
  311. package/types/constdatetime.js +36 -0
  312. package/types/constdatetime.js.map +1 -0
  313. package/funcs/accountAccountV1Apps.d.ts.map +0 -1
  314. package/funcs/accountAccountV1Apps.js.map +0 -1
  315. package/funcs/accountAccountV1Badge.d.ts.map +0 -1
  316. package/funcs/accountAccountV1Badge.js.map +0 -1
  317. package/models/components/v1badgesappsresponsebody.d.ts +0 -31
  318. package/models/components/v1badgesappsresponsebody.d.ts.map +0 -1
  319. package/models/components/v1badgesappsresponsebody.js.map +0 -1
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as z from "zod";
7
+
8
+ export type V1DeleteSessionResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * Always true
15
+ */
16
+ success: boolean;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1DeleteSessionResponseBody$inboundSchema: z.ZodType<
21
+ V1DeleteSessionResponseBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z
25
+ .object({
26
+ $schema: z.string().optional(),
27
+ success: z.boolean(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ $schema: "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1DeleteSessionResponseBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ success: boolean;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1DeleteSessionResponseBody$outboundSchema: z.ZodType<
43
+ V1DeleteSessionResponseBody$Outbound,
44
+ z.ZodTypeDef,
45
+ V1DeleteSessionResponseBody
46
+ > = z
47
+ .object({
48
+ dollarSchema: z.string().optional(),
49
+ success: z.boolean(),
50
+ })
51
+ .transform((v) => {
52
+ return remap$(v, {
53
+ dollarSchema: "$schema",
54
+ });
55
+ });
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace V1DeleteSessionResponseBody$ {
62
+ /** @deprecated use `V1DeleteSessionResponseBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1DeleteSessionResponseBody$inboundSchema;
64
+ /** @deprecated use `V1DeleteSessionResponseBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1DeleteSessionResponseBody$outboundSchema;
66
+ /** @deprecated use `V1DeleteSessionResponseBody$Outbound` instead. */
67
+ export type Outbound = V1DeleteSessionResponseBody$Outbound;
68
+ }
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import {
7
+ Session,
8
+ Session$inboundSchema,
9
+ Session$Outbound,
10
+ Session$outboundSchema,
11
+ } from "./session.js";
12
+ import {
13
+ V1Resource,
14
+ V1Resource$inboundSchema,
15
+ V1Resource$Outbound,
16
+ V1Resource$outboundSchema,
17
+ } from "./v1resource.js";
18
+ import { V1Role, V1Role$inboundSchema, V1Role$Outbound, V1Role$outboundSchema } from "./v1role.js";
19
+ import * as z from "zod";
20
+
21
+ export type V1GetSessionBody = {
22
+ /**
23
+ * A URL to the JSON Schema for this object.
24
+ */
25
+ dollarSchema?: string | undefined;
26
+ /**
27
+ * The account id
28
+ */
29
+ accountId: number;
30
+ /**
31
+ * The resources the user has (permissions)
32
+ */
33
+ resources: Array<V1Resource> | null;
34
+ /**
35
+ * The roles the user has
36
+ */
37
+ roles: Array<V1Role> | null;
38
+ sessionData: Session;
39
+ /**
40
+ * The steam id
41
+ */
42
+ steamId: string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const V1GetSessionBody$inboundSchema: z.ZodType<V1GetSessionBody, z.ZodTypeDef, unknown> = z
47
+ .object({
48
+ $schema: z.string().optional(),
49
+ accountId: z.number().int(),
50
+ resources: z.nullable(z.array(V1Resource$inboundSchema)),
51
+ roles: z.nullable(z.array(V1Role$inboundSchema)),
52
+ sessionData: Session$inboundSchema,
53
+ steamId: z.string(),
54
+ })
55
+ .transform((v) => {
56
+ return remap$(v, {
57
+ $schema: "dollarSchema",
58
+ });
59
+ });
60
+
61
+ /** @internal */
62
+ export type V1GetSessionBody$Outbound = {
63
+ $schema?: string | undefined;
64
+ accountId: number;
65
+ resources: Array<V1Resource$Outbound> | null;
66
+ roles: Array<V1Role$Outbound> | null;
67
+ sessionData: Session$Outbound;
68
+ steamId: string;
69
+ };
70
+
71
+ /** @internal */
72
+ export const V1GetSessionBody$outboundSchema: z.ZodType<
73
+ V1GetSessionBody$Outbound,
74
+ z.ZodTypeDef,
75
+ V1GetSessionBody
76
+ > = z
77
+ .object({
78
+ dollarSchema: z.string().optional(),
79
+ accountId: z.number().int(),
80
+ resources: z.nullable(z.array(V1Resource$outboundSchema)),
81
+ roles: z.nullable(z.array(V1Role$outboundSchema)),
82
+ sessionData: Session$outboundSchema,
83
+ steamId: z.string(),
84
+ })
85
+ .transform((v) => {
86
+ return remap$(v, {
87
+ dollarSchema: "$schema",
88
+ });
89
+ });
90
+
91
+ /**
92
+ * @internal
93
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
+ */
95
+ export namespace V1GetSessionBody$ {
96
+ /** @deprecated use `V1GetSessionBody$inboundSchema` instead. */
97
+ export const inboundSchema = V1GetSessionBody$inboundSchema;
98
+ /** @deprecated use `V1GetSessionBody$outboundSchema` instead. */
99
+ export const outboundSchema = V1GetSessionBody$outboundSchema;
100
+ /** @deprecated use `V1GetSessionBody$Outbound` instead. */
101
+ export type Outbound = V1GetSessionBody$Outbound;
102
+ }
@@ -0,0 +1,198 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+ import {
8
+ Connection,
9
+ Connection$inboundSchema,
10
+ Connection$Outbound,
11
+ Connection$outboundSchema,
12
+ } from "./connection.js";
13
+ import {
14
+ EmailNotification,
15
+ EmailNotification$inboundSchema,
16
+ EmailNotification$Outbound,
17
+ EmailNotification$outboundSchema,
18
+ } from "./emailnotification.js";
19
+ import { Image, Image$inboundSchema, Image$Outbound, Image$outboundSchema } from "./image.js";
20
+ import {
21
+ Session,
22
+ Session$inboundSchema,
23
+ Session$Outbound,
24
+ Session$outboundSchema,
25
+ } from "./session.js";
26
+ import * as z from "zod";
27
+
28
+ /**
29
+ * The theme the account is using
30
+ */
31
+ export const Theme = {
32
+ Dark: "dark",
33
+ Light: "light",
34
+ } as const;
35
+ /**
36
+ * The theme the account is using
37
+ */
38
+ export type Theme = ClosedEnum<typeof Theme>;
39
+
40
+ export type V1GetSettingsBody = {
41
+ /**
42
+ * A URL to the JSON Schema for this object.
43
+ */
44
+ dollarSchema?: string | undefined;
45
+ /**
46
+ * The Generated API Key for this account
47
+ */
48
+ apiKey: string;
49
+ /**
50
+ * The color the account is using
51
+ */
52
+ color: string;
53
+ /**
54
+ * The colors the account is using
55
+ */
56
+ colors: string;
57
+ /**
58
+ * The connections the account has
59
+ */
60
+ connections: Array<Connection> | null;
61
+ /**
62
+ * The email the account is using
63
+ */
64
+ email: string;
65
+ /**
66
+ * The email notifications the account has
67
+ */
68
+ emailNotifications: Array<EmailNotification> | null;
69
+ /**
70
+ * Whether the account has verified their email
71
+ */
72
+ emailVerified: boolean;
73
+ /**
74
+ * Whether the account is hidden in the leaderboards
75
+ */
76
+ hidden: boolean;
77
+ /**
78
+ * The images the account has
79
+ */
80
+ images: Array<Image> | null;
81
+ /**
82
+ * The language the account is using
83
+ */
84
+ language: string;
85
+ /**
86
+ * The sessions the account has
87
+ */
88
+ sessions: Array<Session> | null;
89
+ /**
90
+ * The theme the account is using
91
+ */
92
+ theme: Theme;
93
+ /**
94
+ * The vanity the account is using
95
+ */
96
+ vanity: string;
97
+ };
98
+
99
+ /** @internal */
100
+ export const Theme$inboundSchema: z.ZodNativeEnum<typeof Theme> = z.nativeEnum(Theme);
101
+
102
+ /** @internal */
103
+ export const Theme$outboundSchema: z.ZodNativeEnum<typeof Theme> = Theme$inboundSchema;
104
+
105
+ /**
106
+ * @internal
107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
+ */
109
+ export namespace Theme$ {
110
+ /** @deprecated use `Theme$inboundSchema` instead. */
111
+ export const inboundSchema = Theme$inboundSchema;
112
+ /** @deprecated use `Theme$outboundSchema` instead. */
113
+ export const outboundSchema = Theme$outboundSchema;
114
+ }
115
+
116
+ /** @internal */
117
+ export const V1GetSettingsBody$inboundSchema: z.ZodType<V1GetSettingsBody, z.ZodTypeDef, unknown> =
118
+ z
119
+ .object({
120
+ $schema: z.string().optional(),
121
+ apiKey: z.string(),
122
+ color: z.string(),
123
+ colors: z.string(),
124
+ connections: z.nullable(z.array(Connection$inboundSchema)),
125
+ email: z.string(),
126
+ emailNotifications: z.nullable(z.array(EmailNotification$inboundSchema)),
127
+ emailVerified: z.boolean(),
128
+ hidden: z.boolean(),
129
+ images: z.nullable(z.array(Image$inboundSchema)),
130
+ language: z.string(),
131
+ sessions: z.nullable(z.array(Session$inboundSchema)),
132
+ theme: Theme$inboundSchema,
133
+ vanity: z.string(),
134
+ })
135
+ .transform((v) => {
136
+ return remap$(v, {
137
+ $schema: "dollarSchema",
138
+ });
139
+ });
140
+
141
+ /** @internal */
142
+ export type V1GetSettingsBody$Outbound = {
143
+ $schema?: string | undefined;
144
+ apiKey: string;
145
+ color: string;
146
+ colors: string;
147
+ connections: Array<Connection$Outbound> | null;
148
+ email: string;
149
+ emailNotifications: Array<EmailNotification$Outbound> | null;
150
+ emailVerified: boolean;
151
+ hidden: boolean;
152
+ images: Array<Image$Outbound> | null;
153
+ language: string;
154
+ sessions: Array<Session$Outbound> | null;
155
+ theme: string;
156
+ vanity: string;
157
+ };
158
+
159
+ /** @internal */
160
+ export const V1GetSettingsBody$outboundSchema: z.ZodType<
161
+ V1GetSettingsBody$Outbound,
162
+ z.ZodTypeDef,
163
+ V1GetSettingsBody
164
+ > = z
165
+ .object({
166
+ dollarSchema: z.string().optional(),
167
+ apiKey: z.string(),
168
+ color: z.string(),
169
+ colors: z.string(),
170
+ connections: z.nullable(z.array(Connection$outboundSchema)),
171
+ email: z.string(),
172
+ emailNotifications: z.nullable(z.array(EmailNotification$outboundSchema)),
173
+ emailVerified: z.boolean(),
174
+ hidden: z.boolean(),
175
+ images: z.nullable(z.array(Image$outboundSchema)),
176
+ language: z.string(),
177
+ sessions: z.nullable(z.array(Session$outboundSchema)),
178
+ theme: Theme$outboundSchema,
179
+ vanity: z.string(),
180
+ })
181
+ .transform((v) => {
182
+ return remap$(v, {
183
+ dollarSchema: "$schema",
184
+ });
185
+ });
186
+
187
+ /**
188
+ * @internal
189
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
190
+ */
191
+ export namespace V1GetSettingsBody$ {
192
+ /** @deprecated use `V1GetSettingsBody$inboundSchema` instead. */
193
+ export const inboundSchema = V1GetSettingsBody$inboundSchema;
194
+ /** @deprecated use `V1GetSettingsBody$outboundSchema` instead. */
195
+ export const outboundSchema = V1GetSettingsBody$outboundSchema;
196
+ /** @deprecated use `V1GetSettingsBody$Outbound` instead. */
197
+ export type Outbound = V1GetSettingsBody$Outbound;
198
+ }
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as z from "zod";
7
+
8
+ export type V1LoginResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * The avatar of the user
15
+ */
16
+ avatar: string;
17
+ /**
18
+ * The name of the user
19
+ */
20
+ name: string;
21
+ /**
22
+ * The session token
23
+ */
24
+ sessionToken: string;
25
+ /**
26
+ * The steam id
27
+ */
28
+ steamId: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const V1LoginResponseBody$inboundSchema: z.ZodType<
33
+ V1LoginResponseBody,
34
+ z.ZodTypeDef,
35
+ unknown
36
+ > = z
37
+ .object({
38
+ $schema: z.string().optional(),
39
+ avatar: z.string(),
40
+ name: z.string(),
41
+ sessionToken: z.string(),
42
+ steamId: z.string(),
43
+ })
44
+ .transform((v) => {
45
+ return remap$(v, {
46
+ $schema: "dollarSchema",
47
+ });
48
+ });
49
+
50
+ /** @internal */
51
+ export type V1LoginResponseBody$Outbound = {
52
+ $schema?: string | undefined;
53
+ avatar: string;
54
+ name: string;
55
+ sessionToken: string;
56
+ steamId: string;
57
+ };
58
+
59
+ /** @internal */
60
+ export const V1LoginResponseBody$outboundSchema: z.ZodType<
61
+ V1LoginResponseBody$Outbound,
62
+ z.ZodTypeDef,
63
+ V1LoginResponseBody
64
+ > = z
65
+ .object({
66
+ dollarSchema: z.string().optional(),
67
+ avatar: z.string(),
68
+ name: z.string(),
69
+ sessionToken: z.string(),
70
+ steamId: z.string(),
71
+ })
72
+ .transform((v) => {
73
+ return remap$(v, {
74
+ dollarSchema: "$schema",
75
+ });
76
+ });
77
+
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export namespace V1LoginResponseBody$ {
83
+ /** @deprecated use `V1LoginResponseBody$inboundSchema` instead. */
84
+ export const inboundSchema = V1LoginResponseBody$inboundSchema;
85
+ /** @deprecated use `V1LoginResponseBody$outboundSchema` instead. */
86
+ export const outboundSchema = V1LoginResponseBody$outboundSchema;
87
+ /** @deprecated use `V1LoginResponseBody$Outbound` instead. */
88
+ export type Outbound = V1LoginResponseBody$Outbound;
89
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1Resource = {
8
+ resource: string;
9
+ /**
10
+ * The value of the resource, this can be a string, number, boolean or even a cron expression
11
+ */
12
+ value: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const V1Resource$inboundSchema: z.ZodType<V1Resource, z.ZodTypeDef, unknown> = z.object({
17
+ resource: z.string(),
18
+ value: z.string(),
19
+ });
20
+
21
+ /** @internal */
22
+ export type V1Resource$Outbound = {
23
+ resource: string;
24
+ value: string;
25
+ };
26
+
27
+ /** @internal */
28
+ export const V1Resource$outboundSchema: z.ZodType<V1Resource$Outbound, z.ZodTypeDef, V1Resource> =
29
+ z.object({
30
+ resource: z.string(),
31
+ value: z.string(),
32
+ });
33
+
34
+ /**
35
+ * @internal
36
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
37
+ */
38
+ export namespace V1Resource$ {
39
+ /** @deprecated use `V1Resource$inboundSchema` instead. */
40
+ export const inboundSchema = V1Resource$inboundSchema;
41
+ /** @deprecated use `V1Resource$outboundSchema` instead. */
42
+ export const outboundSchema = V1Resource$outboundSchema;
43
+ /** @deprecated use `V1Resource$Outbound` instead. */
44
+ export type Outbound = V1Resource$Outbound;
45
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as z from "zod";
7
+
8
+ export type V1Role = {
9
+ /**
10
+ * The role color
11
+ */
12
+ color: string;
13
+ /**
14
+ * The role icon
15
+ */
16
+ icon: string;
17
+ /**
18
+ * The Group name
19
+ */
20
+ name: string;
21
+ role: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const V1Role$inboundSchema: z.ZodType<V1Role, z.ZodTypeDef, unknown> = z
26
+ .object({
27
+ Color: z.string(),
28
+ icon: z.string(),
29
+ name: z.string(),
30
+ role: z.string(),
31
+ })
32
+ .transform((v) => {
33
+ return remap$(v, {
34
+ Color: "color",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type V1Role$Outbound = {
40
+ Color: string;
41
+ icon: string;
42
+ name: string;
43
+ role: string;
44
+ };
45
+
46
+ /** @internal */
47
+ export const V1Role$outboundSchema: z.ZodType<V1Role$Outbound, z.ZodTypeDef, V1Role> = z
48
+ .object({
49
+ color: z.string(),
50
+ icon: z.string(),
51
+ name: z.string(),
52
+ role: z.string(),
53
+ })
54
+ .transform((v) => {
55
+ return remap$(v, {
56
+ color: "Color",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace V1Role$ {
65
+ /** @deprecated use `V1Role$inboundSchema` instead. */
66
+ export const inboundSchema = V1Role$inboundSchema;
67
+ /** @deprecated use `V1Role$outboundSchema` instead. */
68
+ export const outboundSchema = V1Role$outboundSchema;
69
+ /** @deprecated use `V1Role$Outbound` instead. */
70
+ export type Outbound = V1Role$Outbound;
71
+ }
@@ -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 V1UpdateConnectionRequestBody = {
8
+ /**
9
+ * The connection id to update
10
+ */
11
+ connectionId: string;
12
+ /**
13
+ * Whether the connection should be hidden or not
14
+ */
15
+ hiddem: boolean;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1UpdateConnectionRequestBody$inboundSchema: z.ZodType<
20
+ V1UpdateConnectionRequestBody,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ connectionId: z.string(),
25
+ hiddem: z.boolean(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1UpdateConnectionRequestBody$Outbound = {
30
+ connectionId: string;
31
+ hiddem: boolean;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1UpdateConnectionRequestBody$outboundSchema: z.ZodType<
36
+ V1UpdateConnectionRequestBody$Outbound,
37
+ z.ZodTypeDef,
38
+ V1UpdateConnectionRequestBody
39
+ > = z.object({
40
+ connectionId: z.string(),
41
+ hiddem: z.boolean(),
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 V1UpdateConnectionRequestBody$ {
49
+ /** @deprecated use `V1UpdateConnectionRequestBody$inboundSchema` instead. */
50
+ export const inboundSchema = V1UpdateConnectionRequestBody$inboundSchema;
51
+ /** @deprecated use `V1UpdateConnectionRequestBody$outboundSchema` instead. */
52
+ export const outboundSchema = V1UpdateConnectionRequestBody$outboundSchema;
53
+ /** @deprecated use `V1UpdateConnectionRequestBody$Outbound` instead. */
54
+ export type Outbound = V1UpdateConnectionRequestBody$Outbound;
55
+ }
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import * as z from "zod";
7
+
8
+ export type V1UpdateConnectionResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * Always true
15
+ */
16
+ success: boolean;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1UpdateConnectionResponseBody$inboundSchema: z.ZodType<
21
+ V1UpdateConnectionResponseBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z
25
+ .object({
26
+ $schema: z.string().optional(),
27
+ success: z.boolean(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ $schema: "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1UpdateConnectionResponseBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ success: boolean;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1UpdateConnectionResponseBody$outboundSchema: z.ZodType<
43
+ V1UpdateConnectionResponseBody$Outbound,
44
+ z.ZodTypeDef,
45
+ V1UpdateConnectionResponseBody
46
+ > = z
47
+ .object({
48
+ dollarSchema: z.string().optional(),
49
+ success: z.boolean(),
50
+ })
51
+ .transform((v) => {
52
+ return remap$(v, {
53
+ dollarSchema: "$schema",
54
+ });
55
+ });
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace V1UpdateConnectionResponseBody$ {
62
+ /** @deprecated use `V1UpdateConnectionResponseBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1UpdateConnectionResponseBody$inboundSchema;
64
+ /** @deprecated use `V1UpdateConnectionResponseBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1UpdateConnectionResponseBody$outboundSchema;
66
+ /** @deprecated use `V1UpdateConnectionResponseBody$Outbound` instead. */
67
+ export type Outbound = V1UpdateConnectionResponseBody$Outbound;
68
+ }