@steamsets/client-ts 0.2.1 → 0.3.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 (202) hide show
  1. package/README.md +32 -9
  2. package/docs/sdks/account/README.md +432 -4
  3. package/docs/sdks/connection/README.md +2 -2
  4. package/docs/sdks/settings/README.md +430 -2
  5. package/funcs/accountAccountV1SettingsDeleteImages.d.ts +13 -0
  6. package/funcs/accountAccountV1SettingsDeleteImages.d.ts.map +1 -0
  7. package/funcs/accountAccountV1SettingsDeleteImages.js +95 -0
  8. package/funcs/accountAccountV1SettingsDeleteImages.js.map +1 -0
  9. package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts +13 -0
  10. package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts.map +1 -0
  11. package/funcs/accountAccountV1SettingsGenerateApiKey.js +84 -0
  12. package/funcs/accountAccountV1SettingsGenerateApiKey.js.map +1 -0
  13. package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts +13 -0
  14. package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -0
  15. package/funcs/accountAccountV1SettingsSendEmailVerification.js +99 -0
  16. package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -0
  17. package/funcs/accountAccountV1SettingsUpdate.d.ts.map +1 -1
  18. package/funcs/accountAccountV1SettingsUpdate.js +3 -2
  19. package/funcs/accountAccountV1SettingsUpdate.js.map +1 -1
  20. package/funcs/accountAccountV1SettingsUpdateImage.d.ts +13 -0
  21. package/funcs/accountAccountV1SettingsUpdateImage.d.ts.map +1 -0
  22. package/funcs/accountAccountV1SettingsUpdateImage.js +95 -0
  23. package/funcs/accountAccountV1SettingsUpdateImage.js.map +1 -0
  24. package/funcs/accountAccountV1SettingsVerfyEmail.d.ts +13 -0
  25. package/funcs/accountAccountV1SettingsVerfyEmail.d.ts.map +1 -0
  26. package/funcs/accountAccountV1SettingsVerfyEmail.js +95 -0
  27. package/funcs/accountAccountV1SettingsVerfyEmail.js.map +1 -0
  28. package/funcs/settingsAccountV1SettingsDeleteImages.d.ts +13 -0
  29. package/funcs/settingsAccountV1SettingsDeleteImages.d.ts.map +1 -0
  30. package/funcs/settingsAccountV1SettingsDeleteImages.js +95 -0
  31. package/funcs/settingsAccountV1SettingsDeleteImages.js.map +1 -0
  32. package/funcs/settingsAccountV1SettingsGenerateApiKey.d.ts +13 -0
  33. package/funcs/settingsAccountV1SettingsGenerateApiKey.d.ts.map +1 -0
  34. package/funcs/settingsAccountV1SettingsGenerateApiKey.js +84 -0
  35. package/funcs/settingsAccountV1SettingsGenerateApiKey.js.map +1 -0
  36. package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts +13 -0
  37. package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -0
  38. package/funcs/settingsAccountV1SettingsSendEmailVerification.js +99 -0
  39. package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -0
  40. package/funcs/settingsAccountV1SettingsUpdate.d.ts.map +1 -1
  41. package/funcs/settingsAccountV1SettingsUpdate.js +3 -2
  42. package/funcs/settingsAccountV1SettingsUpdate.js.map +1 -1
  43. package/funcs/settingsAccountV1SettingsUpdateImage.d.ts +13 -0
  44. package/funcs/settingsAccountV1SettingsUpdateImage.d.ts.map +1 -0
  45. package/funcs/settingsAccountV1SettingsUpdateImage.js +95 -0
  46. package/funcs/settingsAccountV1SettingsUpdateImage.js.map +1 -0
  47. package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts +13 -0
  48. package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts.map +1 -0
  49. package/funcs/settingsAccountV1SettingsVerfyEmail.js +95 -0
  50. package/funcs/settingsAccountV1SettingsVerfyEmail.js.map +1 -0
  51. package/lib/config.d.ts +4 -4
  52. package/lib/config.d.ts.map +1 -1
  53. package/lib/config.js +4 -4
  54. package/lib/config.js.map +1 -1
  55. package/models/components/index.d.ts +11 -2
  56. package/models/components/index.d.ts.map +1 -1
  57. package/models/components/index.js +11 -2
  58. package/models/components/index.js.map +1 -1
  59. package/models/components/item.d.ts +33 -0
  60. package/models/components/item.d.ts.map +1 -0
  61. package/models/components/item.js +52 -0
  62. package/models/components/item.js.map +1 -0
  63. package/models/components/resource.d.ts +30 -0
  64. package/models/components/resource.d.ts.map +1 -0
  65. package/models/components/{v1resource.js → resource.js} +11 -11
  66. package/models/components/resource.js.map +1 -0
  67. package/models/components/role.d.ts +40 -0
  68. package/models/components/role.d.ts.map +1 -0
  69. package/models/components/{v1role.js → role.js} +11 -11
  70. package/models/components/role.js.map +1 -0
  71. package/models/components/v1connectresponsebody.d.ts +0 -5
  72. package/models/components/v1connectresponsebody.d.ts.map +1 -1
  73. package/models/components/v1connectresponsebody.js +0 -2
  74. package/models/components/v1connectresponsebody.js.map +1 -1
  75. package/models/components/v1deleteconnectionresponsebody.d.ts +0 -5
  76. package/models/components/v1deleteconnectionresponsebody.d.ts.map +1 -1
  77. package/models/components/v1deleteconnectionresponsebody.js +0 -2
  78. package/models/components/v1deleteconnectionresponsebody.js.map +1 -1
  79. package/models/components/v1deleteimagesrequestbody.d.ts +29 -0
  80. package/models/components/v1deleteimagesrequestbody.d.ts.map +1 -0
  81. package/models/components/v1deleteimagesrequestbody.js +51 -0
  82. package/models/components/v1deleteimagesrequestbody.js.map +1 -0
  83. package/models/components/v1deleteimagesresponsebody.d.ts +28 -0
  84. package/models/components/v1deleteimagesresponsebody.d.ts.map +1 -0
  85. package/models/components/v1deleteimagesresponsebody.js +63 -0
  86. package/models/components/v1deleteimagesresponsebody.js.map +1 -0
  87. package/models/components/v1deletesessionresponsebody.d.ts +0 -5
  88. package/models/components/v1deletesessionresponsebody.d.ts.map +1 -1
  89. package/models/components/v1deletesessionresponsebody.js +0 -2
  90. package/models/components/v1deletesessionresponsebody.js.map +1 -1
  91. package/models/components/v1generateapikeyresponsebody.d.ts +33 -0
  92. package/models/components/v1generateapikeyresponsebody.d.ts.map +1 -0
  93. package/models/components/v1generateapikeyresponsebody.js +65 -0
  94. package/models/components/v1generateapikeyresponsebody.js.map +1 -0
  95. package/models/components/v1getsessionbody.d.ts +6 -6
  96. package/models/components/v1getsessionbody.d.ts.map +1 -1
  97. package/models/components/v1getsessionbody.js +6 -6
  98. package/models/components/v1getsessionbody.js.map +1 -1
  99. package/models/components/v1updateconnectionrequestbody.d.ts +2 -2
  100. package/models/components/v1updateconnectionrequestbody.js +2 -2
  101. package/models/components/v1updateconnectionresponsebody.d.ts +0 -5
  102. package/models/components/v1updateconnectionresponsebody.d.ts.map +1 -1
  103. package/models/components/v1updateconnectionresponsebody.js +0 -2
  104. package/models/components/v1updateconnectionresponsebody.js.map +1 -1
  105. package/models/components/v1updateimagerequestbody.d.ts +33 -0
  106. package/models/components/v1updateimagerequestbody.d.ts.map +1 -0
  107. package/models/components/v1updateimagerequestbody.js +52 -0
  108. package/models/components/v1updateimagerequestbody.js.map +1 -0
  109. package/models/components/v1updateimageresponsebody.d.ts +33 -0
  110. package/models/components/v1updateimageresponsebody.d.ts.map +1 -0
  111. package/models/components/v1updateimageresponsebody.js +65 -0
  112. package/models/components/v1updateimageresponsebody.js.map +1 -0
  113. package/models/components/v1updatesettingsrequestbody.d.ts +96 -0
  114. package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -0
  115. package/models/components/v1updatesettingsrequestbody.js +87 -0
  116. package/models/components/v1updatesettingsrequestbody.js.map +1 -0
  117. package/models/components/v1updatesettingsresponsebody.d.ts +0 -5
  118. package/models/components/v1updatesettingsresponsebody.d.ts.map +1 -1
  119. package/models/components/v1updatesettingsresponsebody.js +0 -2
  120. package/models/components/v1updatesettingsresponsebody.js.map +1 -1
  121. package/models/components/v1verifyconnectionresponsebody.d.ts +0 -5
  122. package/models/components/v1verifyconnectionresponsebody.d.ts.map +1 -1
  123. package/models/components/v1verifyconnectionresponsebody.js +0 -2
  124. package/models/components/v1verifyconnectionresponsebody.js.map +1 -1
  125. package/models/components/v1verifyemailrequestbody.d.ts +28 -0
  126. package/models/components/v1verifyemailrequestbody.d.ts.map +1 -0
  127. package/models/components/v1verifyemailrequestbody.js +50 -0
  128. package/models/components/v1verifyemailrequestbody.js.map +1 -0
  129. package/models/components/v1verifyemailresponsebody.d.ts +28 -0
  130. package/models/components/v1verifyemailresponsebody.d.ts.map +1 -0
  131. package/models/components/v1verifyemailresponsebody.js +63 -0
  132. package/models/components/v1verifyemailresponsebody.js.map +1 -0
  133. package/models/operations/accountv1settingssendemailverification.d.ts +25 -0
  134. package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -0
  135. package/models/operations/accountv1settingssendemailverification.js +63 -0
  136. package/models/operations/accountv1settingssendemailverification.js.map +1 -0
  137. package/models/operations/accountv1settingsupdate.d.ts +3 -0
  138. package/models/operations/accountv1settingsupdate.d.ts.map +1 -1
  139. package/models/operations/accountv1settingsupdate.js +5 -0
  140. package/models/operations/accountv1settingsupdate.js.map +1 -1
  141. package/models/operations/index.d.ts +1 -0
  142. package/models/operations/index.d.ts.map +1 -1
  143. package/models/operations/index.js +1 -0
  144. package/models/operations/index.js.map +1 -1
  145. package/package.json +1 -1
  146. package/sdk/account.d.ts +20 -0
  147. package/sdk/account.d.ts.map +1 -1
  148. package/sdk/account.js +35 -0
  149. package/sdk/account.js.map +1 -1
  150. package/sdk/sdk.d.ts +2 -2
  151. package/sdk/sdk.d.ts.map +1 -1
  152. package/sdk/sdk.js +4 -4
  153. package/sdk/sdk.js.map +1 -1
  154. package/sdk/settings.d.ts +20 -0
  155. package/sdk/settings.d.ts.map +1 -1
  156. package/sdk/settings.js +35 -0
  157. package/sdk/settings.js.map +1 -1
  158. package/src/funcs/accountAccountV1SettingsDeleteImages.ts +129 -0
  159. package/src/funcs/accountAccountV1SettingsGenerateApiKey.ts +111 -0
  160. package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +134 -0
  161. package/src/funcs/accountAccountV1SettingsUpdate.ts +4 -3
  162. package/src/funcs/accountAccountV1SettingsUpdateImage.ts +129 -0
  163. package/src/funcs/accountAccountV1SettingsVerfyEmail.ts +129 -0
  164. package/src/funcs/settingsAccountV1SettingsDeleteImages.ts +129 -0
  165. package/src/funcs/settingsAccountV1SettingsGenerateApiKey.ts +111 -0
  166. package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +134 -0
  167. package/src/funcs/settingsAccountV1SettingsUpdate.ts +4 -3
  168. package/src/funcs/settingsAccountV1SettingsUpdateImage.ts +129 -0
  169. package/src/funcs/settingsAccountV1SettingsVerfyEmail.ts +129 -0
  170. package/src/lib/config.ts +4 -4
  171. package/src/models/components/index.ts +11 -2
  172. package/src/models/components/item.ts +47 -0
  173. package/src/models/components/{v1resource.ts → resource.ts} +11 -11
  174. package/src/models/components/{v1role.ts → role.ts} +11 -11
  175. package/src/models/components/v1connectresponsebody.ts +0 -7
  176. package/src/models/components/v1deleteconnectionresponsebody.ts +0 -7
  177. package/src/models/components/v1deleteimagesrequestbody.ts +49 -0
  178. package/src/models/components/v1deleteimagesresponsebody.ts +61 -0
  179. package/src/models/components/v1deletesessionresponsebody.ts +0 -7
  180. package/src/models/components/v1generateapikeyresponsebody.ts +68 -0
  181. package/src/models/components/v1getsessionbody.ts +15 -15
  182. package/src/models/components/v1updateconnectionrequestbody.ts +4 -4
  183. package/src/models/components/v1updateconnectionresponsebody.ts +0 -7
  184. package/src/models/components/v1updateimagerequestbody.ts +55 -0
  185. package/src/models/components/v1updateimageresponsebody.ts +68 -0
  186. package/src/models/components/v1updatesettingsrequestbody.ts +137 -0
  187. package/src/models/components/v1updatesettingsresponsebody.ts +0 -7
  188. package/src/models/components/v1verifyconnectionresponsebody.ts +0 -7
  189. package/src/models/components/v1verifyemailrequestbody.ts +48 -0
  190. package/src/models/components/v1verifyemailresponsebody.ts +61 -0
  191. package/src/models/operations/accountv1settingssendemailverification.ts +58 -0
  192. package/src/models/operations/accountv1settingsupdate.ts +7 -0
  193. package/src/models/operations/index.ts +1 -0
  194. package/src/sdk/account.ts +54 -0
  195. package/src/sdk/sdk.ts +5 -5
  196. package/src/sdk/settings.ts +54 -0
  197. package/models/components/v1resource.d.ts +0 -30
  198. package/models/components/v1resource.d.ts.map +0 -1
  199. package/models/components/v1resource.js.map +0 -1
  200. package/models/components/v1role.d.ts +0 -40
  201. package/models/components/v1role.d.ts.map +0 -1
  202. package/models/components/v1role.js.map +0 -1
@@ -10,10 +10,6 @@ export type V1DeleteConnectionResponseBody = {
10
10
  * A URL to the JSON Schema for this object.
11
11
  */
12
12
  dollarSchema?: string | undefined;
13
- /**
14
- * Always true
15
- */
16
- success: boolean;
17
13
  };
18
14
 
19
15
  /** @internal */
@@ -24,7 +20,6 @@ export const V1DeleteConnectionResponseBody$inboundSchema: z.ZodType<
24
20
  > = z
25
21
  .object({
26
22
  $schema: z.string().optional(),
27
- success: z.boolean(),
28
23
  })
29
24
  .transform((v) => {
30
25
  return remap$(v, {
@@ -35,7 +30,6 @@ export const V1DeleteConnectionResponseBody$inboundSchema: z.ZodType<
35
30
  /** @internal */
36
31
  export type V1DeleteConnectionResponseBody$Outbound = {
37
32
  $schema?: string | undefined;
38
- success: boolean;
39
33
  };
40
34
 
41
35
  /** @internal */
@@ -46,7 +40,6 @@ export const V1DeleteConnectionResponseBody$outboundSchema: z.ZodType<
46
40
  > = z
47
41
  .object({
48
42
  dollarSchema: z.string().optional(),
49
- success: z.boolean(),
50
43
  })
51
44
  .transform((v) => {
52
45
  return remap$(v, {
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { Item, Item$inboundSchema, Item$Outbound, Item$outboundSchema } from "./item.js";
6
+ import * as z from "zod";
7
+
8
+ export type V1DeleteImagesRequestBody = {
9
+ /**
10
+ * The images to delete
11
+ */
12
+ images: Array<Item> | null;
13
+ };
14
+
15
+ /** @internal */
16
+ export const V1DeleteImagesRequestBody$inboundSchema: z.ZodType<
17
+ V1DeleteImagesRequestBody,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ images: z.nullable(z.array(Item$inboundSchema)),
22
+ });
23
+
24
+ /** @internal */
25
+ export type V1DeleteImagesRequestBody$Outbound = {
26
+ images: Array<Item$Outbound> | null;
27
+ };
28
+
29
+ /** @internal */
30
+ export const V1DeleteImagesRequestBody$outboundSchema: z.ZodType<
31
+ V1DeleteImagesRequestBody$Outbound,
32
+ z.ZodTypeDef,
33
+ V1DeleteImagesRequestBody
34
+ > = z.object({
35
+ images: z.nullable(z.array(Item$outboundSchema)),
36
+ });
37
+
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export namespace V1DeleteImagesRequestBody$ {
43
+ /** @deprecated use `V1DeleteImagesRequestBody$inboundSchema` instead. */
44
+ export const inboundSchema = V1DeleteImagesRequestBody$inboundSchema;
45
+ /** @deprecated use `V1DeleteImagesRequestBody$outboundSchema` instead. */
46
+ export const outboundSchema = V1DeleteImagesRequestBody$outboundSchema;
47
+ /** @deprecated use `V1DeleteImagesRequestBody$Outbound` instead. */
48
+ export type Outbound = V1DeleteImagesRequestBody$Outbound;
49
+ }
@@ -0,0 +1,61 @@
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 V1DeleteImagesResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const V1DeleteImagesResponseBody$inboundSchema: z.ZodType<
17
+ V1DeleteImagesResponseBody,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z
21
+ .object({
22
+ $schema: z.string().optional(),
23
+ })
24
+ .transform((v) => {
25
+ return remap$(v, {
26
+ $schema: "dollarSchema",
27
+ });
28
+ });
29
+
30
+ /** @internal */
31
+ export type V1DeleteImagesResponseBody$Outbound = {
32
+ $schema?: string | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const V1DeleteImagesResponseBody$outboundSchema: z.ZodType<
37
+ V1DeleteImagesResponseBody$Outbound,
38
+ z.ZodTypeDef,
39
+ V1DeleteImagesResponseBody
40
+ > = z
41
+ .object({
42
+ dollarSchema: z.string().optional(),
43
+ })
44
+ .transform((v) => {
45
+ return remap$(v, {
46
+ dollarSchema: "$schema",
47
+ });
48
+ });
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace V1DeleteImagesResponseBody$ {
55
+ /** @deprecated use `V1DeleteImagesResponseBody$inboundSchema` instead. */
56
+ export const inboundSchema = V1DeleteImagesResponseBody$inboundSchema;
57
+ /** @deprecated use `V1DeleteImagesResponseBody$outboundSchema` instead. */
58
+ export const outboundSchema = V1DeleteImagesResponseBody$outboundSchema;
59
+ /** @deprecated use `V1DeleteImagesResponseBody$Outbound` instead. */
60
+ export type Outbound = V1DeleteImagesResponseBody$Outbound;
61
+ }
@@ -10,10 +10,6 @@ export type V1DeleteSessionResponseBody = {
10
10
  * A URL to the JSON Schema for this object.
11
11
  */
12
12
  dollarSchema?: string | undefined;
13
- /**
14
- * Always true
15
- */
16
- success: boolean;
17
13
  };
18
14
 
19
15
  /** @internal */
@@ -24,7 +20,6 @@ export const V1DeleteSessionResponseBody$inboundSchema: z.ZodType<
24
20
  > = z
25
21
  .object({
26
22
  $schema: z.string().optional(),
27
- success: z.boolean(),
28
23
  })
29
24
  .transform((v) => {
30
25
  return remap$(v, {
@@ -35,7 +30,6 @@ export const V1DeleteSessionResponseBody$inboundSchema: z.ZodType<
35
30
  /** @internal */
36
31
  export type V1DeleteSessionResponseBody$Outbound = {
37
32
  $schema?: string | undefined;
38
- success: boolean;
39
33
  };
40
34
 
41
35
  /** @internal */
@@ -46,7 +40,6 @@ export const V1DeleteSessionResponseBody$outboundSchema: z.ZodType<
46
40
  > = z
47
41
  .object({
48
42
  dollarSchema: z.string().optional(),
49
- success: z.boolean(),
50
43
  })
51
44
  .transform((v) => {
52
45
  return remap$(v, {
@@ -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 V1GenerateApiKeyResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * The generated API Key
15
+ */
16
+ key: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1GenerateApiKeyResponseBody$inboundSchema: z.ZodType<
21
+ V1GenerateApiKeyResponseBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z
25
+ .object({
26
+ $schema: z.string().optional(),
27
+ key: z.string(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ $schema: "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1GenerateApiKeyResponseBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ key: string;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1GenerateApiKeyResponseBody$outboundSchema: z.ZodType<
43
+ V1GenerateApiKeyResponseBody$Outbound,
44
+ z.ZodTypeDef,
45
+ V1GenerateApiKeyResponseBody
46
+ > = z
47
+ .object({
48
+ dollarSchema: z.string().optional(),
49
+ key: z.string(),
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 V1GenerateApiKeyResponseBody$ {
62
+ /** @deprecated use `V1GenerateApiKeyResponseBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1GenerateApiKeyResponseBody$inboundSchema;
64
+ /** @deprecated use `V1GenerateApiKeyResponseBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1GenerateApiKeyResponseBody$outboundSchema;
66
+ /** @deprecated use `V1GenerateApiKeyResponseBody$Outbound` instead. */
67
+ export type Outbound = V1GenerateApiKeyResponseBody$Outbound;
68
+ }
@@ -3,19 +3,19 @@
3
3
  */
4
4
 
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
+ import {
7
+ Resource,
8
+ Resource$inboundSchema,
9
+ Resource$Outbound,
10
+ Resource$outboundSchema,
11
+ } from "./resource.js";
12
+ import { Role, Role$inboundSchema, Role$Outbound, Role$outboundSchema } from "./role.js";
6
13
  import {
7
14
  Session,
8
15
  Session$inboundSchema,
9
16
  Session$Outbound,
10
17
  Session$outboundSchema,
11
18
  } 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
19
  import * as z from "zod";
20
20
 
21
21
  export type V1GetSessionBody = {
@@ -30,11 +30,11 @@ export type V1GetSessionBody = {
30
30
  /**
31
31
  * The resources the user has (permissions)
32
32
  */
33
- resources: Array<V1Resource> | null;
33
+ resources: Array<Resource> | null;
34
34
  /**
35
35
  * The roles the user has
36
36
  */
37
- roles: Array<V1Role> | null;
37
+ roles: Array<Role> | null;
38
38
  sessionData: Session;
39
39
  /**
40
40
  * The steam id
@@ -47,8 +47,8 @@ export const V1GetSessionBody$inboundSchema: z.ZodType<V1GetSessionBody, z.ZodTy
47
47
  .object({
48
48
  $schema: z.string().optional(),
49
49
  accountId: z.number().int(),
50
- resources: z.nullable(z.array(V1Resource$inboundSchema)),
51
- roles: z.nullable(z.array(V1Role$inboundSchema)),
50
+ resources: z.nullable(z.array(Resource$inboundSchema)),
51
+ roles: z.nullable(z.array(Role$inboundSchema)),
52
52
  sessionData: Session$inboundSchema,
53
53
  steamId: z.string(),
54
54
  })
@@ -62,8 +62,8 @@ export const V1GetSessionBody$inboundSchema: z.ZodType<V1GetSessionBody, z.ZodTy
62
62
  export type V1GetSessionBody$Outbound = {
63
63
  $schema?: string | undefined;
64
64
  accountId: number;
65
- resources: Array<V1Resource$Outbound> | null;
66
- roles: Array<V1Role$Outbound> | null;
65
+ resources: Array<Resource$Outbound> | null;
66
+ roles: Array<Role$Outbound> | null;
67
67
  sessionData: Session$Outbound;
68
68
  steamId: string;
69
69
  };
@@ -77,8 +77,8 @@ export const V1GetSessionBody$outboundSchema: z.ZodType<
77
77
  .object({
78
78
  dollarSchema: z.string().optional(),
79
79
  accountId: z.number().int(),
80
- resources: z.nullable(z.array(V1Resource$outboundSchema)),
81
- roles: z.nullable(z.array(V1Role$outboundSchema)),
80
+ resources: z.nullable(z.array(Resource$outboundSchema)),
81
+ roles: z.nullable(z.array(Role$outboundSchema)),
82
82
  sessionData: Session$outboundSchema,
83
83
  steamId: z.string(),
84
84
  })
@@ -12,7 +12,7 @@ export type V1UpdateConnectionRequestBody = {
12
12
  /**
13
13
  * Whether the connection should be hidden or not
14
14
  */
15
- hiddem: boolean;
15
+ hidden: boolean;
16
16
  };
17
17
 
18
18
  /** @internal */
@@ -22,13 +22,13 @@ export const V1UpdateConnectionRequestBody$inboundSchema: z.ZodType<
22
22
  unknown
23
23
  > = z.object({
24
24
  connectionId: z.string(),
25
- hiddem: z.boolean(),
25
+ hidden: z.boolean(),
26
26
  });
27
27
 
28
28
  /** @internal */
29
29
  export type V1UpdateConnectionRequestBody$Outbound = {
30
30
  connectionId: string;
31
- hiddem: boolean;
31
+ hidden: boolean;
32
32
  };
33
33
 
34
34
  /** @internal */
@@ -38,7 +38,7 @@ export const V1UpdateConnectionRequestBody$outboundSchema: z.ZodType<
38
38
  V1UpdateConnectionRequestBody
39
39
  > = z.object({
40
40
  connectionId: z.string(),
41
- hiddem: z.boolean(),
41
+ hidden: z.boolean(),
42
42
  });
43
43
 
44
44
  /**
@@ -10,10 +10,6 @@ export type V1UpdateConnectionResponseBody = {
10
10
  * A URL to the JSON Schema for this object.
11
11
  */
12
12
  dollarSchema?: string | undefined;
13
- /**
14
- * Always true
15
- */
16
- success: boolean;
17
13
  };
18
14
 
19
15
  /** @internal */
@@ -24,7 +20,6 @@ export const V1UpdateConnectionResponseBody$inboundSchema: z.ZodType<
24
20
  > = z
25
21
  .object({
26
22
  $schema: z.string().optional(),
27
- success: z.boolean(),
28
23
  })
29
24
  .transform((v) => {
30
25
  return remap$(v, {
@@ -35,7 +30,6 @@ export const V1UpdateConnectionResponseBody$inboundSchema: z.ZodType<
35
30
  /** @internal */
36
31
  export type V1UpdateConnectionResponseBody$Outbound = {
37
32
  $schema?: string | undefined;
38
- success: boolean;
39
33
  };
40
34
 
41
35
  /** @internal */
@@ -46,7 +40,6 @@ export const V1UpdateConnectionResponseBody$outboundSchema: z.ZodType<
46
40
  > = z
47
41
  .object({
48
42
  dollarSchema: z.string().optional(),
49
- success: z.boolean(),
50
43
  })
51
44
  .transform((v) => {
52
45
  return remap$(v, {
@@ -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 V1UpdateImageRequestBody = {
8
+ /**
9
+ * Whether the image is active or not, only one of each type can be active
10
+ */
11
+ active: boolean;
12
+ /**
13
+ * The image id to update
14
+ */
15
+ imageId: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1UpdateImageRequestBody$inboundSchema: z.ZodType<
20
+ V1UpdateImageRequestBody,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ active: z.boolean(),
25
+ imageId: z.string(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1UpdateImageRequestBody$Outbound = {
30
+ active: boolean;
31
+ imageId: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const V1UpdateImageRequestBody$outboundSchema: z.ZodType<
36
+ V1UpdateImageRequestBody$Outbound,
37
+ z.ZodTypeDef,
38
+ V1UpdateImageRequestBody
39
+ > = z.object({
40
+ active: z.boolean(),
41
+ imageId: z.string(),
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 V1UpdateImageRequestBody$ {
49
+ /** @deprecated use `V1UpdateImageRequestBody$inboundSchema` instead. */
50
+ export const inboundSchema = V1UpdateImageRequestBody$inboundSchema;
51
+ /** @deprecated use `V1UpdateImageRequestBody$outboundSchema` instead. */
52
+ export const outboundSchema = V1UpdateImageRequestBody$outboundSchema;
53
+ /** @deprecated use `V1UpdateImageRequestBody$Outbound` instead. */
54
+ export type Outbound = V1UpdateImageRequestBody$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 V1UpdateImageResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * The generated API Key
15
+ */
16
+ key: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1UpdateImageResponseBody$inboundSchema: z.ZodType<
21
+ V1UpdateImageResponseBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z
25
+ .object({
26
+ $schema: z.string().optional(),
27
+ key: z.string(),
28
+ })
29
+ .transform((v) => {
30
+ return remap$(v, {
31
+ $schema: "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1UpdateImageResponseBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ key: string;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1UpdateImageResponseBody$outboundSchema: z.ZodType<
43
+ V1UpdateImageResponseBody$Outbound,
44
+ z.ZodTypeDef,
45
+ V1UpdateImageResponseBody
46
+ > = z
47
+ .object({
48
+ dollarSchema: z.string().optional(),
49
+ key: z.string(),
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 V1UpdateImageResponseBody$ {
62
+ /** @deprecated use `V1UpdateImageResponseBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1UpdateImageResponseBody$inboundSchema;
64
+ /** @deprecated use `V1UpdateImageResponseBody$outboundSchema` instead. */
65
+ export const outboundSchema = V1UpdateImageResponseBody$outboundSchema;
66
+ /** @deprecated use `V1UpdateImageResponseBody$Outbound` instead. */
67
+ export type Outbound = V1UpdateImageResponseBody$Outbound;
68
+ }
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClosedEnum } from "../../types/enums.js";
6
+ import {
7
+ EmailNotification,
8
+ EmailNotification$inboundSchema,
9
+ EmailNotification$Outbound,
10
+ EmailNotification$outboundSchema,
11
+ } from "./emailnotification.js";
12
+ import * as z from "zod";
13
+
14
+ /**
15
+ * The theme the account should use, only if the account is private
16
+ */
17
+ export const V1UpdateSettingsRequestBodyTheme = {
18
+ Dark: "dark",
19
+ Light: "light",
20
+ } as const;
21
+ /**
22
+ * The theme the account should use, only if the account is private
23
+ */
24
+ export type V1UpdateSettingsRequestBodyTheme = ClosedEnum<typeof V1UpdateSettingsRequestBodyTheme>;
25
+
26
+ export type V1UpdateSettingsRequestBody = {
27
+ /**
28
+ * The color the account should use, only if the account is private
29
+ */
30
+ color: string;
31
+ /**
32
+ * The colors the account should use, only if the account is private
33
+ */
34
+ colors: string;
35
+ /**
36
+ * The email the account should use, only if the account is private
37
+ */
38
+ email: string;
39
+ /**
40
+ * The email notifications the account wants
41
+ */
42
+ emailNotifications: Array<EmailNotification> | null;
43
+ /**
44
+ * Whether the account should be hidden in the leaderboards, only possible if the account is private
45
+ */
46
+ hidden: boolean;
47
+ /**
48
+ * The language the account should use, only if the account is private
49
+ */
50
+ language: string;
51
+ /**
52
+ * The theme the account should use, only if the account is private
53
+ */
54
+ theme: V1UpdateSettingsRequestBodyTheme;
55
+ /**
56
+ * The vanity the account should use, only if the account is private
57
+ */
58
+ vanity: string;
59
+ };
60
+
61
+ /** @internal */
62
+ export const V1UpdateSettingsRequestBodyTheme$inboundSchema: z.ZodNativeEnum<
63
+ typeof V1UpdateSettingsRequestBodyTheme
64
+ > = z.nativeEnum(V1UpdateSettingsRequestBodyTheme);
65
+
66
+ /** @internal */
67
+ export const V1UpdateSettingsRequestBodyTheme$outboundSchema: z.ZodNativeEnum<
68
+ typeof V1UpdateSettingsRequestBodyTheme
69
+ > = V1UpdateSettingsRequestBodyTheme$inboundSchema;
70
+
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ export namespace V1UpdateSettingsRequestBodyTheme$ {
76
+ /** @deprecated use `V1UpdateSettingsRequestBodyTheme$inboundSchema` instead. */
77
+ export const inboundSchema = V1UpdateSettingsRequestBodyTheme$inboundSchema;
78
+ /** @deprecated use `V1UpdateSettingsRequestBodyTheme$outboundSchema` instead. */
79
+ export const outboundSchema = V1UpdateSettingsRequestBodyTheme$outboundSchema;
80
+ }
81
+
82
+ /** @internal */
83
+ export const V1UpdateSettingsRequestBody$inboundSchema: z.ZodType<
84
+ V1UpdateSettingsRequestBody,
85
+ z.ZodTypeDef,
86
+ unknown
87
+ > = z.object({
88
+ color: z.string(),
89
+ colors: z.string(),
90
+ email: z.string(),
91
+ emailNotifications: z.nullable(z.array(EmailNotification$inboundSchema)),
92
+ hidden: z.boolean(),
93
+ language: z.string(),
94
+ theme: V1UpdateSettingsRequestBodyTheme$inboundSchema,
95
+ vanity: z.string(),
96
+ });
97
+
98
+ /** @internal */
99
+ export type V1UpdateSettingsRequestBody$Outbound = {
100
+ color: string;
101
+ colors: string;
102
+ email: string;
103
+ emailNotifications: Array<EmailNotification$Outbound> | null;
104
+ hidden: boolean;
105
+ language: string;
106
+ theme: string;
107
+ vanity: string;
108
+ };
109
+
110
+ /** @internal */
111
+ export const V1UpdateSettingsRequestBody$outboundSchema: z.ZodType<
112
+ V1UpdateSettingsRequestBody$Outbound,
113
+ z.ZodTypeDef,
114
+ V1UpdateSettingsRequestBody
115
+ > = z.object({
116
+ color: z.string(),
117
+ colors: z.string(),
118
+ email: z.string(),
119
+ emailNotifications: z.nullable(z.array(EmailNotification$outboundSchema)),
120
+ hidden: z.boolean(),
121
+ language: z.string(),
122
+ theme: V1UpdateSettingsRequestBodyTheme$outboundSchema,
123
+ vanity: z.string(),
124
+ });
125
+
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ export namespace V1UpdateSettingsRequestBody$ {
131
+ /** @deprecated use `V1UpdateSettingsRequestBody$inboundSchema` instead. */
132
+ export const inboundSchema = V1UpdateSettingsRequestBody$inboundSchema;
133
+ /** @deprecated use `V1UpdateSettingsRequestBody$outboundSchema` instead. */
134
+ export const outboundSchema = V1UpdateSettingsRequestBody$outboundSchema;
135
+ /** @deprecated use `V1UpdateSettingsRequestBody$Outbound` instead. */
136
+ export type Outbound = V1UpdateSettingsRequestBody$Outbound;
137
+ }
@@ -10,10 +10,6 @@ export type V1UpdateSettingsResponseBody = {
10
10
  * A URL to the JSON Schema for this object.
11
11
  */
12
12
  dollarSchema?: string | undefined;
13
- /**
14
- * Whether the settings were updated successfully
15
- */
16
- success: boolean;
17
13
  };
18
14
 
19
15
  /** @internal */
@@ -24,7 +20,6 @@ export const V1UpdateSettingsResponseBody$inboundSchema: z.ZodType<
24
20
  > = z
25
21
  .object({
26
22
  $schema: z.string().optional(),
27
- success: z.boolean(),
28
23
  })
29
24
  .transform((v) => {
30
25
  return remap$(v, {
@@ -35,7 +30,6 @@ export const V1UpdateSettingsResponseBody$inboundSchema: z.ZodType<
35
30
  /** @internal */
36
31
  export type V1UpdateSettingsResponseBody$Outbound = {
37
32
  $schema?: string | undefined;
38
- success: boolean;
39
33
  };
40
34
 
41
35
  /** @internal */
@@ -46,7 +40,6 @@ export const V1UpdateSettingsResponseBody$outboundSchema: z.ZodType<
46
40
  > = z
47
41
  .object({
48
42
  dollarSchema: z.string().optional(),
49
- success: z.boolean(),
50
43
  })
51
44
  .transform((v) => {
52
45
  return remap$(v, {