@steamsets/client-ts 0.19.2 → 0.19.4

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 (212) hide show
  1. package/README.md +19 -6
  2. package/docs/sdks/account/README.md +32 -8
  3. package/docs/sdks/admin/README.md +73 -0
  4. package/docs/sdks/badge/README.md +77 -0
  5. package/docs/sdks/event/README.md +80 -0
  6. package/docs/sdks/internal/README.md +182 -8
  7. package/docs/sdks/leaderboard/README.md +32 -8
  8. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  9. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  10. package/funcs/{internalLeaderboardV1GetAccountMeta.js → accountLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  11. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  12. package/funcs/accountsQueue.js +1 -1
  13. package/funcs/accountsQueue.js.map +1 -1
  14. package/funcs/{accountLeaderboardV1GetAccountMeta.d.ts → adminAdminV1RemoveVanity.d.ts} +2 -2
  15. package/funcs/adminAdminV1RemoveVanity.d.ts.map +1 -0
  16. package/funcs/adminAdminV1RemoveVanity.js +118 -0
  17. package/funcs/adminAdminV1RemoveVanity.js.map +1 -0
  18. package/funcs/{internalLeaderboardV1GetAccountMeta.d.ts → badgeBadgeV1SearchSuggest.d.ts} +2 -2
  19. package/funcs/badgeBadgeV1SearchSuggest.d.ts.map +1 -0
  20. package/funcs/badgeBadgeV1SearchSuggest.js +118 -0
  21. package/funcs/badgeBadgeV1SearchSuggest.js.map +1 -0
  22. package/funcs/badgeBadgeV1TagsSuggest.js +0 -1
  23. package/funcs/badgeBadgeV1TagsSuggest.js.map +1 -1
  24. package/funcs/{leaderboardLeaderboardV1GetAccountMeta.d.ts → eventAdminV1RemoveVanity.d.ts} +2 -2
  25. package/funcs/eventAdminV1RemoveVanity.d.ts.map +1 -0
  26. package/funcs/eventAdminV1RemoveVanity.js +118 -0
  27. package/funcs/eventAdminV1RemoveVanity.js.map +1 -0
  28. package/funcs/internalAdminV1RemoveVanity.d.ts +12 -0
  29. package/funcs/internalAdminV1RemoveVanity.d.ts.map +1 -0
  30. package/funcs/internalAdminV1RemoveVanity.js +118 -0
  31. package/funcs/internalAdminV1RemoveVanity.js.map +1 -0
  32. package/funcs/internalBadgeV1SearchSuggest.d.ts +12 -0
  33. package/funcs/internalBadgeV1SearchSuggest.d.ts.map +1 -0
  34. package/funcs/internalBadgeV1SearchSuggest.js +118 -0
  35. package/funcs/internalBadgeV1SearchSuggest.js.map +1 -0
  36. package/funcs/internalBadgeV1TagsSuggest.js +0 -1
  37. package/funcs/internalBadgeV1TagsSuggest.js.map +1 -1
  38. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  39. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  40. package/funcs/{leaderboardLeaderboardV1GetAccountMeta.js → internalLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  41. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  42. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  43. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  44. package/funcs/{accountLeaderboardV1GetAccountMeta.js → leaderboardLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  45. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  46. package/funcs/sessionCreate.js +0 -1
  47. package/funcs/sessionCreate.js.map +1 -1
  48. package/funcs/sessionLogin.js +0 -1
  49. package/funcs/sessionLogin.js.map +1 -1
  50. package/funcs/settingsSendVerification.js +1 -1
  51. package/funcs/settingsSendVerification.js.map +1 -1
  52. package/funcs/settingsSubscribeEmail.js +1 -1
  53. package/funcs/settingsSubscribeEmail.js.map +1 -1
  54. package/funcs/settingsUpdate.js +1 -3
  55. package/funcs/settingsUpdate.js.map +1 -1
  56. package/funcs/settingsUpdateRole.js +1 -3
  57. package/funcs/settingsUpdateRole.js.map +1 -1
  58. package/funcs/settingsVerifyEmail.js +1 -3
  59. package/funcs/settingsVerifyEmail.js.map +1 -1
  60. package/jsr.json +1 -1
  61. package/lib/config.d.ts +2 -2
  62. package/lib/config.js +2 -2
  63. package/models/components/index.d.ts +3 -0
  64. package/models/components/index.d.ts.map +1 -1
  65. package/models/components/index.js +3 -0
  66. package/models/components/index.js.map +1 -1
  67. package/models/components/v1adminremovevanityresponsebody.d.ts +32 -0
  68. package/models/components/v1adminremovevanityresponsebody.d.ts.map +1 -0
  69. package/models/components/v1adminremovevanityresponsebody.js +68 -0
  70. package/models/components/v1adminremovevanityresponsebody.js.map +1 -0
  71. package/models/components/v1badgesearchsuggestbody.d.ts +37 -0
  72. package/models/components/v1badgesearchsuggestbody.d.ts.map +1 -0
  73. package/models/components/v1badgesearchsuggestbody.js +70 -0
  74. package/models/components/v1badgesearchsuggestbody.js.map +1 -0
  75. package/models/components/v1badgesearchsuggesttrequestbody.d.ts +32 -0
  76. package/models/components/v1badgesearchsuggesttrequestbody.d.ts.map +1 -0
  77. package/models/components/v1badgesearchsuggesttrequestbody.js +59 -0
  78. package/models/components/v1badgesearchsuggesttrequestbody.js.map +1 -0
  79. package/models/operations/accountv1queue.d.ts +0 -6
  80. package/models/operations/accountv1queue.d.ts.map +1 -1
  81. package/models/operations/accountv1queue.js +0 -4
  82. package/models/operations/accountv1queue.js.map +1 -1
  83. package/models/operations/accountv1sessioncreate.d.ts +0 -6
  84. package/models/operations/accountv1sessioncreate.d.ts.map +1 -1
  85. package/models/operations/accountv1sessioncreate.js +0 -4
  86. package/models/operations/accountv1sessioncreate.js.map +1 -1
  87. package/models/operations/accountv1sessionlogin.d.ts +0 -6
  88. package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
  89. package/models/operations/accountv1sessionlogin.js +0 -4
  90. package/models/operations/accountv1sessionlogin.js.map +1 -1
  91. package/models/operations/accountv1settingsemailsendverification.d.ts +0 -6
  92. package/models/operations/accountv1settingsemailsendverification.d.ts.map +1 -1
  93. package/models/operations/accountv1settingsemailsendverification.js +0 -4
  94. package/models/operations/accountv1settingsemailsendverification.js.map +1 -1
  95. package/models/operations/accountv1settingsemailsubscribe.d.ts +0 -6
  96. package/models/operations/accountv1settingsemailsubscribe.d.ts.map +1 -1
  97. package/models/operations/accountv1settingsemailsubscribe.js +0 -4
  98. package/models/operations/accountv1settingsemailsubscribe.js.map +1 -1
  99. package/models/operations/accountv1settingsemailverify.d.ts +0 -6
  100. package/models/operations/accountv1settingsemailverify.d.ts.map +1 -1
  101. package/models/operations/accountv1settingsemailverify.js +0 -4
  102. package/models/operations/accountv1settingsemailverify.js.map +1 -1
  103. package/models/operations/accountv1settingsupdate.d.ts +0 -6
  104. package/models/operations/accountv1settingsupdate.d.ts.map +1 -1
  105. package/models/operations/accountv1settingsupdate.js +0 -4
  106. package/models/operations/accountv1settingsupdate.js.map +1 -1
  107. package/models/operations/accountv1settingsupdaterole.d.ts +0 -6
  108. package/models/operations/accountv1settingsupdaterole.d.ts.map +1 -1
  109. package/models/operations/accountv1settingsupdaterole.js +0 -4
  110. package/models/operations/accountv1settingsupdaterole.js.map +1 -1
  111. package/models/operations/adminv1removevanity.d.ts +35 -0
  112. package/models/operations/adminv1removevanity.d.ts.map +1 -0
  113. package/models/operations/adminv1removevanity.js +75 -0
  114. package/models/operations/adminv1removevanity.js.map +1 -0
  115. package/models/operations/badgev1searchsuggest.d.ts +35 -0
  116. package/models/operations/badgev1searchsuggest.d.ts.map +1 -0
  117. package/models/operations/badgev1searchsuggest.js +75 -0
  118. package/models/operations/badgev1searchsuggest.js.map +1 -0
  119. package/models/operations/badgev1tagssuggest.d.ts +0 -6
  120. package/models/operations/badgev1tagssuggest.d.ts.map +1 -1
  121. package/models/operations/badgev1tagssuggest.js +0 -4
  122. package/models/operations/badgev1tagssuggest.js.map +1 -1
  123. package/models/operations/index.d.ts +3 -1
  124. package/models/operations/index.d.ts.map +1 -1
  125. package/models/operations/index.js +3 -1
  126. package/models/operations/index.js.map +1 -1
  127. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +35 -0
  128. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts.map +1 -0
  129. package/models/operations/{leaderboardv1getaccountmeta.js → leaderboardv1getleaderboardaccountmeta.js} +17 -17
  130. package/models/operations/leaderboardv1getleaderboardaccountmeta.js.map +1 -0
  131. package/package.json +1 -1
  132. package/sdk/account.d.ts +1 -1
  133. package/sdk/account.d.ts.map +1 -1
  134. package/sdk/account.js +3 -3
  135. package/sdk/account.js.map +1 -1
  136. package/sdk/admin.d.ts +1 -0
  137. package/sdk/admin.d.ts.map +1 -1
  138. package/sdk/admin.js +4 -0
  139. package/sdk/admin.js.map +1 -1
  140. package/sdk/badge.d.ts +1 -0
  141. package/sdk/badge.d.ts.map +1 -1
  142. package/sdk/badge.js +4 -0
  143. package/sdk/badge.js.map +1 -1
  144. package/sdk/event.d.ts +7 -0
  145. package/sdk/event.d.ts.map +1 -0
  146. package/sdk/event.js +16 -0
  147. package/sdk/event.js.map +1 -0
  148. package/sdk/internal.d.ts +3 -1
  149. package/sdk/internal.d.ts.map +1 -1
  150. package/sdk/internal.js +11 -3
  151. package/sdk/internal.js.map +1 -1
  152. package/sdk/leaderboard.d.ts +1 -1
  153. package/sdk/leaderboard.d.ts.map +1 -1
  154. package/sdk/leaderboard.js +3 -3
  155. package/sdk/leaderboard.js.map +1 -1
  156. package/sdk/sdk.d.ts +3 -0
  157. package/sdk/sdk.d.ts.map +1 -1
  158. package/sdk/sdk.js +4 -0
  159. package/sdk/sdk.js.map +1 -1
  160. package/src/funcs/{internalLeaderboardV1GetAccountMeta.ts → accountLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  161. package/src/funcs/accountsQueue.ts +1 -1
  162. package/src/funcs/adminAdminV1RemoveVanity.ts +179 -0
  163. package/src/funcs/badgeBadgeV1SearchSuggest.ts +180 -0
  164. package/src/funcs/badgeBadgeV1TagsSuggest.ts +0 -1
  165. package/src/funcs/eventAdminV1RemoveVanity.ts +179 -0
  166. package/src/funcs/internalAdminV1RemoveVanity.ts +179 -0
  167. package/src/funcs/internalBadgeV1SearchSuggest.ts +180 -0
  168. package/src/funcs/internalBadgeV1TagsSuggest.ts +0 -1
  169. package/src/funcs/{leaderboardLeaderboardV1GetAccountMeta.ts → internalLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  170. package/src/funcs/{accountLeaderboardV1GetAccountMeta.ts → leaderboardLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  171. package/src/funcs/sessionCreate.ts +0 -1
  172. package/src/funcs/sessionLogin.ts +0 -1
  173. package/src/funcs/settingsSendVerification.ts +0 -1
  174. package/src/funcs/settingsSubscribeEmail.ts +0 -1
  175. package/src/funcs/settingsUpdate.ts +1 -3
  176. package/src/funcs/settingsUpdateRole.ts +1 -3
  177. package/src/funcs/settingsVerifyEmail.ts +1 -3
  178. package/src/lib/config.ts +2 -2
  179. package/src/models/components/index.ts +3 -0
  180. package/src/models/components/v1adminremovevanityresponsebody.ts +80 -0
  181. package/src/models/components/v1badgesearchsuggestbody.ts +85 -0
  182. package/src/models/components/v1badgesearchsuggesttrequestbody.ts +71 -0
  183. package/src/models/operations/accountv1queue.ts +0 -6
  184. package/src/models/operations/accountv1sessioncreate.ts +0 -6
  185. package/src/models/operations/accountv1sessionlogin.ts +0 -6
  186. package/src/models/operations/accountv1settingsemailsendverification.ts +0 -6
  187. package/src/models/operations/accountv1settingsemailsubscribe.ts +0 -6
  188. package/src/models/operations/accountv1settingsemailverify.ts +0 -6
  189. package/src/models/operations/accountv1settingsupdate.ts +0 -6
  190. package/src/models/operations/accountv1settingsupdaterole.ts +0 -6
  191. package/src/models/operations/adminv1removevanity.ts +93 -0
  192. package/src/models/operations/badgev1searchsuggest.ts +91 -0
  193. package/src/models/operations/badgev1tagssuggest.ts +0 -6
  194. package/src/models/operations/index.ts +3 -1
  195. package/src/models/operations/leaderboardv1getleaderboardaccountmeta.ts +107 -0
  196. package/src/sdk/account.ts +4 -4
  197. package/src/sdk/admin.ts +12 -0
  198. package/src/sdk/badge.ts +12 -0
  199. package/src/sdk/event.ts +22 -0
  200. package/src/sdk/internal.ts +28 -4
  201. package/src/sdk/leaderboard.ts +4 -4
  202. package/src/sdk/sdk.ts +6 -0
  203. package/funcs/accountLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  204. package/funcs/accountLeaderboardV1GetAccountMeta.js.map +0 -1
  205. package/funcs/internalLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  206. package/funcs/internalLeaderboardV1GetAccountMeta.js.map +0 -1
  207. package/funcs/leaderboardLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  208. package/funcs/leaderboardLeaderboardV1GetAccountMeta.js.map +0 -1
  209. package/models/operations/leaderboardv1getaccountmeta.d.ts +0 -35
  210. package/models/operations/leaderboardv1getaccountmeta.d.ts.map +0 -1
  211. package/models/operations/leaderboardv1getaccountmeta.js.map +0 -1
  212. package/src/models/operations/leaderboardv1getaccountmeta.ts +0 -98
@@ -0,0 +1,85 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type V1BadgeSearchSuggestBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ /**
17
+ * The filter to apply to the search
18
+ */
19
+ filter: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const V1BadgeSearchSuggestBody$inboundSchema: z.ZodType<
24
+ V1BadgeSearchSuggestBody,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ $schema: z.string().optional(),
29
+ filter: z.string(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "$schema": "dollarSchema",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type V1BadgeSearchSuggestBody$Outbound = {
38
+ $schema?: string | undefined;
39
+ filter: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const V1BadgeSearchSuggestBody$outboundSchema: z.ZodType<
44
+ V1BadgeSearchSuggestBody$Outbound,
45
+ z.ZodTypeDef,
46
+ V1BadgeSearchSuggestBody
47
+ > = z.object({
48
+ dollarSchema: z.string().optional(),
49
+ filter: z.string(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ dollarSchema: "$schema",
53
+ });
54
+ });
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace V1BadgeSearchSuggestBody$ {
61
+ /** @deprecated use `V1BadgeSearchSuggestBody$inboundSchema` instead. */
62
+ export const inboundSchema = V1BadgeSearchSuggestBody$inboundSchema;
63
+ /** @deprecated use `V1BadgeSearchSuggestBody$outboundSchema` instead. */
64
+ export const outboundSchema = V1BadgeSearchSuggestBody$outboundSchema;
65
+ /** @deprecated use `V1BadgeSearchSuggestBody$Outbound` instead. */
66
+ export type Outbound = V1BadgeSearchSuggestBody$Outbound;
67
+ }
68
+
69
+ export function v1BadgeSearchSuggestBodyToJSON(
70
+ v1BadgeSearchSuggestBody: V1BadgeSearchSuggestBody,
71
+ ): string {
72
+ return JSON.stringify(
73
+ V1BadgeSearchSuggestBody$outboundSchema.parse(v1BadgeSearchSuggestBody),
74
+ );
75
+ }
76
+
77
+ export function v1BadgeSearchSuggestBodyFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<V1BadgeSearchSuggestBody, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => V1BadgeSearchSuggestBody$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'V1BadgeSearchSuggestBody' from JSON`,
84
+ );
85
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type V1BadgeSearchSuggesttRequestBody = {
11
+ /**
12
+ * The query to suggest a search for
13
+ */
14
+ query: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const V1BadgeSearchSuggesttRequestBody$inboundSchema: z.ZodType<
19
+ V1BadgeSearchSuggesttRequestBody,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ query: z.string(),
24
+ });
25
+
26
+ /** @internal */
27
+ export type V1BadgeSearchSuggesttRequestBody$Outbound = {
28
+ query: string;
29
+ };
30
+
31
+ /** @internal */
32
+ export const V1BadgeSearchSuggesttRequestBody$outboundSchema: z.ZodType<
33
+ V1BadgeSearchSuggesttRequestBody$Outbound,
34
+ z.ZodTypeDef,
35
+ V1BadgeSearchSuggesttRequestBody
36
+ > = z.object({
37
+ query: z.string(),
38
+ });
39
+
40
+ /**
41
+ * @internal
42
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
+ */
44
+ export namespace V1BadgeSearchSuggesttRequestBody$ {
45
+ /** @deprecated use `V1BadgeSearchSuggesttRequestBody$inboundSchema` instead. */
46
+ export const inboundSchema = V1BadgeSearchSuggesttRequestBody$inboundSchema;
47
+ /** @deprecated use `V1BadgeSearchSuggesttRequestBody$outboundSchema` instead. */
48
+ export const outboundSchema = V1BadgeSearchSuggesttRequestBody$outboundSchema;
49
+ /** @deprecated use `V1BadgeSearchSuggesttRequestBody$Outbound` instead. */
50
+ export type Outbound = V1BadgeSearchSuggesttRequestBody$Outbound;
51
+ }
52
+
53
+ export function v1BadgeSearchSuggesttRequestBodyToJSON(
54
+ v1BadgeSearchSuggesttRequestBody: V1BadgeSearchSuggesttRequestBody,
55
+ ): string {
56
+ return JSON.stringify(
57
+ V1BadgeSearchSuggesttRequestBody$outboundSchema.parse(
58
+ v1BadgeSearchSuggesttRequestBody,
59
+ ),
60
+ );
61
+ }
62
+
63
+ export function v1BadgeSearchSuggesttRequestBodyFromJSON(
64
+ jsonString: string,
65
+ ): SafeParseResult<V1BadgeSearchSuggesttRequestBody, SDKValidationError> {
66
+ return safeParse(
67
+ jsonString,
68
+ (x) => V1BadgeSearchSuggesttRequestBody$inboundSchema.parse(JSON.parse(x)),
69
+ `Failed to parse 'V1BadgeSearchSuggesttRequestBody' from JSON`,
70
+ );
71
+ }
@@ -11,7 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type AccountV1QueueResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
- headers: { [k: string]: Array<string> };
15
14
  };
16
15
 
17
16
  /** @internal */
@@ -21,18 +20,15 @@ export const AccountV1QueueResponse$inboundSchema: z.ZodType<
21
20
  unknown
22
21
  > = z.object({
23
22
  HttpMeta: components.HTTPMetadata$inboundSchema,
24
- Headers: z.record(z.array(z.string())),
25
23
  }).transform((v) => {
26
24
  return remap$(v, {
27
25
  "HttpMeta": "httpMeta",
28
- "Headers": "headers",
29
26
  });
30
27
  });
31
28
 
32
29
  /** @internal */
33
30
  export type AccountV1QueueResponse$Outbound = {
34
31
  HttpMeta: components.HTTPMetadata$Outbound;
35
- Headers: { [k: string]: Array<string> };
36
32
  };
37
33
 
38
34
  /** @internal */
@@ -42,11 +38,9 @@ export const AccountV1QueueResponse$outboundSchema: z.ZodType<
42
38
  AccountV1QueueResponse
43
39
  > = z.object({
44
40
  httpMeta: components.HTTPMetadata$outboundSchema,
45
- headers: z.record(z.array(z.string())),
46
41
  }).transform((v) => {
47
42
  return remap$(v, {
48
43
  httpMeta: "HttpMeta",
49
- headers: "Headers",
50
44
  });
51
45
  });
52
46
 
@@ -23,7 +23,6 @@ export type AccountV1SessionCreateResponse = {
23
23
  * OK
24
24
  */
25
25
  v1CreateSessionBody?: components.V1CreateSessionBody | undefined;
26
- headers: { [k: string]: Array<string> };
27
26
  };
28
27
 
29
28
  /** @internal */
@@ -118,12 +117,10 @@ export const AccountV1SessionCreateResponse$inboundSchema: z.ZodType<
118
117
  > = z.object({
119
118
  HttpMeta: components.HTTPMetadata$inboundSchema,
120
119
  V1CreateSessionBody: components.V1CreateSessionBody$inboundSchema.optional(),
121
- Headers: z.record(z.array(z.string())),
122
120
  }).transform((v) => {
123
121
  return remap$(v, {
124
122
  "HttpMeta": "httpMeta",
125
123
  "V1CreateSessionBody": "v1CreateSessionBody",
126
- "Headers": "headers",
127
124
  });
128
125
  });
129
126
 
@@ -131,7 +128,6 @@ export const AccountV1SessionCreateResponse$inboundSchema: z.ZodType<
131
128
  export type AccountV1SessionCreateResponse$Outbound = {
132
129
  HttpMeta: components.HTTPMetadata$Outbound;
133
130
  V1CreateSessionBody?: components.V1CreateSessionBody$Outbound | undefined;
134
- Headers: { [k: string]: Array<string> };
135
131
  };
136
132
 
137
133
  /** @internal */
@@ -142,12 +138,10 @@ export const AccountV1SessionCreateResponse$outboundSchema: z.ZodType<
142
138
  > = z.object({
143
139
  httpMeta: components.HTTPMetadata$outboundSchema,
144
140
  v1CreateSessionBody: components.V1CreateSessionBody$outboundSchema.optional(),
145
- headers: z.record(z.array(z.string())),
146
141
  }).transform((v) => {
147
142
  return remap$(v, {
148
143
  httpMeta: "HttpMeta",
149
144
  v1CreateSessionBody: "V1CreateSessionBody",
150
- headers: "Headers",
151
145
  });
152
146
  });
153
147
 
@@ -21,7 +21,6 @@ export type AccountV1SessionLoginResponse = {
21
21
  * OK
22
22
  */
23
23
  v1LoginResponseBody?: components.V1LoginResponseBody | undefined;
24
- headers: { [k: string]: Array<string> };
25
24
  };
26
25
 
27
26
  /** @internal */
@@ -106,12 +105,10 @@ export const AccountV1SessionLoginResponse$inboundSchema: z.ZodType<
106
105
  > = z.object({
107
106
  HttpMeta: components.HTTPMetadata$inboundSchema,
108
107
  V1LoginResponseBody: components.V1LoginResponseBody$inboundSchema.optional(),
109
- Headers: z.record(z.array(z.string())),
110
108
  }).transform((v) => {
111
109
  return remap$(v, {
112
110
  "HttpMeta": "httpMeta",
113
111
  "V1LoginResponseBody": "v1LoginResponseBody",
114
- "Headers": "headers",
115
112
  });
116
113
  });
117
114
 
@@ -119,7 +116,6 @@ export const AccountV1SessionLoginResponse$inboundSchema: z.ZodType<
119
116
  export type AccountV1SessionLoginResponse$Outbound = {
120
117
  HttpMeta: components.HTTPMetadata$Outbound;
121
118
  V1LoginResponseBody?: components.V1LoginResponseBody$Outbound | undefined;
122
- Headers: { [k: string]: Array<string> };
123
119
  };
124
120
 
125
121
  /** @internal */
@@ -130,12 +126,10 @@ export const AccountV1SessionLoginResponse$outboundSchema: z.ZodType<
130
126
  > = z.object({
131
127
  httpMeta: components.HTTPMetadata$outboundSchema,
132
128
  v1LoginResponseBody: components.V1LoginResponseBody$outboundSchema.optional(),
133
- headers: z.record(z.array(z.string())),
134
129
  }).transform((v) => {
135
130
  return remap$(v, {
136
131
  httpMeta: "HttpMeta",
137
132
  v1LoginResponseBody: "V1LoginResponseBody",
138
- headers: "Headers",
139
133
  });
140
134
  });
141
135
 
@@ -15,7 +15,6 @@ export type AccountV1SettingsEmailSendVerificationRequest = {
15
15
 
16
16
  export type AccountV1SettingsEmailSendVerificationResponse = {
17
17
  httpMeta: components.HTTPMetadata;
18
- headers: { [k: string]: Array<string> };
19
18
  };
20
19
 
21
20
  /** @internal */
@@ -101,18 +100,15 @@ export const AccountV1SettingsEmailSendVerificationResponse$inboundSchema:
101
100
  unknown
102
101
  > = z.object({
103
102
  HttpMeta: components.HTTPMetadata$inboundSchema,
104
- Headers: z.record(z.array(z.string())),
105
103
  }).transform((v) => {
106
104
  return remap$(v, {
107
105
  "HttpMeta": "httpMeta",
108
- "Headers": "headers",
109
106
  });
110
107
  });
111
108
 
112
109
  /** @internal */
113
110
  export type AccountV1SettingsEmailSendVerificationResponse$Outbound = {
114
111
  HttpMeta: components.HTTPMetadata$Outbound;
115
- Headers: { [k: string]: Array<string> };
116
112
  };
117
113
 
118
114
  /** @internal */
@@ -123,11 +119,9 @@ export const AccountV1SettingsEmailSendVerificationResponse$outboundSchema:
123
119
  AccountV1SettingsEmailSendVerificationResponse
124
120
  > = z.object({
125
121
  httpMeta: components.HTTPMetadata$outboundSchema,
126
- headers: z.record(z.array(z.string())),
127
122
  }).transform((v) => {
128
123
  return remap$(v, {
129
124
  httpMeta: "HttpMeta",
130
- headers: "Headers",
131
125
  });
132
126
  });
133
127
 
@@ -16,7 +16,6 @@ export type AccountV1SettingsEmailSubscribeRequest = {
16
16
 
17
17
  export type AccountV1SettingsEmailSubscribeResponse = {
18
18
  httpMeta: components.HTTPMetadata;
19
- headers: { [k: string]: Array<string> };
20
19
  };
21
20
 
22
21
  /** @internal */
@@ -102,18 +101,15 @@ export const AccountV1SettingsEmailSubscribeResponse$inboundSchema: z.ZodType<
102
101
  unknown
103
102
  > = z.object({
104
103
  HttpMeta: components.HTTPMetadata$inboundSchema,
105
- Headers: z.record(z.array(z.string())),
106
104
  }).transform((v) => {
107
105
  return remap$(v, {
108
106
  "HttpMeta": "httpMeta",
109
- "Headers": "headers",
110
107
  });
111
108
  });
112
109
 
113
110
  /** @internal */
114
111
  export type AccountV1SettingsEmailSubscribeResponse$Outbound = {
115
112
  HttpMeta: components.HTTPMetadata$Outbound;
116
- Headers: { [k: string]: Array<string> };
117
113
  };
118
114
 
119
115
  /** @internal */
@@ -123,11 +119,9 @@ export const AccountV1SettingsEmailSubscribeResponse$outboundSchema: z.ZodType<
123
119
  AccountV1SettingsEmailSubscribeResponse
124
120
  > = z.object({
125
121
  httpMeta: components.HTTPMetadata$outboundSchema,
126
- headers: z.record(z.array(z.string())),
127
122
  }).transform((v) => {
128
123
  return remap$(v, {
129
124
  httpMeta: "HttpMeta",
130
- headers: "Headers",
131
125
  });
132
126
  });
133
127
 
@@ -11,7 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type AccountV1SettingsEmailVerifyResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
- headers: { [k: string]: Array<string> };
15
14
  };
16
15
 
17
16
  /** @internal */
@@ -21,18 +20,15 @@ export const AccountV1SettingsEmailVerifyResponse$inboundSchema: z.ZodType<
21
20
  unknown
22
21
  > = z.object({
23
22
  HttpMeta: components.HTTPMetadata$inboundSchema,
24
- Headers: z.record(z.array(z.string())),
25
23
  }).transform((v) => {
26
24
  return remap$(v, {
27
25
  "HttpMeta": "httpMeta",
28
- "Headers": "headers",
29
26
  });
30
27
  });
31
28
 
32
29
  /** @internal */
33
30
  export type AccountV1SettingsEmailVerifyResponse$Outbound = {
34
31
  HttpMeta: components.HTTPMetadata$Outbound;
35
- Headers: { [k: string]: Array<string> };
36
32
  };
37
33
 
38
34
  /** @internal */
@@ -42,11 +38,9 @@ export const AccountV1SettingsEmailVerifyResponse$outboundSchema: z.ZodType<
42
38
  AccountV1SettingsEmailVerifyResponse
43
39
  > = z.object({
44
40
  httpMeta: components.HTTPMetadata$outboundSchema,
45
- headers: z.record(z.array(z.string())),
46
41
  }).transform((v) => {
47
42
  return remap$(v, {
48
43
  httpMeta: "HttpMeta",
49
- headers: "Headers",
50
44
  });
51
45
  });
52
46
 
@@ -16,7 +16,6 @@ export type AccountV1SettingsUpdateRequest = {
16
16
 
17
17
  export type AccountV1SettingsUpdateResponse = {
18
18
  httpMeta: components.HTTPMetadata;
19
- headers: { [k: string]: Array<string> };
20
19
  };
21
20
 
22
21
  /** @internal */
@@ -97,18 +96,15 @@ export const AccountV1SettingsUpdateResponse$inboundSchema: z.ZodType<
97
96
  unknown
98
97
  > = z.object({
99
98
  HttpMeta: components.HTTPMetadata$inboundSchema,
100
- Headers: z.record(z.array(z.string())),
101
99
  }).transform((v) => {
102
100
  return remap$(v, {
103
101
  "HttpMeta": "httpMeta",
104
- "Headers": "headers",
105
102
  });
106
103
  });
107
104
 
108
105
  /** @internal */
109
106
  export type AccountV1SettingsUpdateResponse$Outbound = {
110
107
  HttpMeta: components.HTTPMetadata$Outbound;
111
- Headers: { [k: string]: Array<string> };
112
108
  };
113
109
 
114
110
  /** @internal */
@@ -118,11 +114,9 @@ export const AccountV1SettingsUpdateResponse$outboundSchema: z.ZodType<
118
114
  AccountV1SettingsUpdateResponse
119
115
  > = z.object({
120
116
  httpMeta: components.HTTPMetadata$outboundSchema,
121
- headers: z.record(z.array(z.string())),
122
117
  }).transform((v) => {
123
118
  return remap$(v, {
124
119
  httpMeta: "HttpMeta",
125
- headers: "Headers",
126
120
  });
127
121
  });
128
122
 
@@ -11,7 +11,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type AccountV1SettingsUpdateRoleResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
- headers: { [k: string]: Array<string> };
15
14
  };
16
15
 
17
16
  /** @internal */
@@ -21,18 +20,15 @@ export const AccountV1SettingsUpdateRoleResponse$inboundSchema: z.ZodType<
21
20
  unknown
22
21
  > = z.object({
23
22
  HttpMeta: components.HTTPMetadata$inboundSchema,
24
- Headers: z.record(z.array(z.string())),
25
23
  }).transform((v) => {
26
24
  return remap$(v, {
27
25
  "HttpMeta": "httpMeta",
28
- "Headers": "headers",
29
26
  });
30
27
  });
31
28
 
32
29
  /** @internal */
33
30
  export type AccountV1SettingsUpdateRoleResponse$Outbound = {
34
31
  HttpMeta: components.HTTPMetadata$Outbound;
35
- Headers: { [k: string]: Array<string> };
36
32
  };
37
33
 
38
34
  /** @internal */
@@ -42,11 +38,9 @@ export const AccountV1SettingsUpdateRoleResponse$outboundSchema: z.ZodType<
42
38
  AccountV1SettingsUpdateRoleResponse
43
39
  > = z.object({
44
40
  httpMeta: components.HTTPMetadata$outboundSchema,
45
- headers: z.record(z.array(z.string())),
46
41
  }).transform((v) => {
47
42
  return remap$(v, {
48
43
  httpMeta: "HttpMeta",
49
- headers: "Headers",
50
44
  });
51
45
  });
52
46
 
@@ -0,0 +1,93 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AdminV1RemoveVanityResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AdminRemoveVanityResponseBody?:
18
+ | components.V1AdminRemoveVanityResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AdminV1RemoveVanityResponse$inboundSchema: z.ZodType<
24
+ AdminV1RemoveVanityResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AdminRemoveVanityResponseBody: components
30
+ .V1AdminRemoveVanityResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AdminRemoveVanityResponseBody": "v1AdminRemoveVanityResponseBody",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type AdminV1RemoveVanityResponse$Outbound = {
40
+ HttpMeta: components.HTTPMetadata$Outbound;
41
+ V1AdminRemoveVanityResponseBody?:
42
+ | components.V1AdminRemoveVanityResponseBody$Outbound
43
+ | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const AdminV1RemoveVanityResponse$outboundSchema: z.ZodType<
48
+ AdminV1RemoveVanityResponse$Outbound,
49
+ z.ZodTypeDef,
50
+ AdminV1RemoveVanityResponse
51
+ > = z.object({
52
+ httpMeta: components.HTTPMetadata$outboundSchema,
53
+ v1AdminRemoveVanityResponseBody: components
54
+ .V1AdminRemoveVanityResponseBody$outboundSchema.optional(),
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ httpMeta: "HttpMeta",
58
+ v1AdminRemoveVanityResponseBody: "V1AdminRemoveVanityResponseBody",
59
+ });
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace AdminV1RemoveVanityResponse$ {
67
+ /** @deprecated use `AdminV1RemoveVanityResponse$inboundSchema` instead. */
68
+ export const inboundSchema = AdminV1RemoveVanityResponse$inboundSchema;
69
+ /** @deprecated use `AdminV1RemoveVanityResponse$outboundSchema` instead. */
70
+ export const outboundSchema = AdminV1RemoveVanityResponse$outboundSchema;
71
+ /** @deprecated use `AdminV1RemoveVanityResponse$Outbound` instead. */
72
+ export type Outbound = AdminV1RemoveVanityResponse$Outbound;
73
+ }
74
+
75
+ export function adminV1RemoveVanityResponseToJSON(
76
+ adminV1RemoveVanityResponse: AdminV1RemoveVanityResponse,
77
+ ): string {
78
+ return JSON.stringify(
79
+ AdminV1RemoveVanityResponse$outboundSchema.parse(
80
+ adminV1RemoveVanityResponse,
81
+ ),
82
+ );
83
+ }
84
+
85
+ export function adminV1RemoveVanityResponseFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<AdminV1RemoveVanityResponse, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => AdminV1RemoveVanityResponse$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'AdminV1RemoveVanityResponse' from JSON`,
92
+ );
93
+ }
@@ -0,0 +1,91 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type BadgeV1SearchSuggestResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1BadgeSearchSuggestBody?: components.V1BadgeSearchSuggestBody | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const BadgeV1SearchSuggestResponse$inboundSchema: z.ZodType<
22
+ BadgeV1SearchSuggestResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ V1BadgeSearchSuggestBody: components.V1BadgeSearchSuggestBody$inboundSchema
28
+ .optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "HttpMeta": "httpMeta",
32
+ "V1BadgeSearchSuggestBody": "v1BadgeSearchSuggestBody",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type BadgeV1SearchSuggestResponse$Outbound = {
38
+ HttpMeta: components.HTTPMetadata$Outbound;
39
+ V1BadgeSearchSuggestBody?:
40
+ | components.V1BadgeSearchSuggestBody$Outbound
41
+ | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const BadgeV1SearchSuggestResponse$outboundSchema: z.ZodType<
46
+ BadgeV1SearchSuggestResponse$Outbound,
47
+ z.ZodTypeDef,
48
+ BadgeV1SearchSuggestResponse
49
+ > = z.object({
50
+ httpMeta: components.HTTPMetadata$outboundSchema,
51
+ v1BadgeSearchSuggestBody: components.V1BadgeSearchSuggestBody$outboundSchema
52
+ .optional(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ httpMeta: "HttpMeta",
56
+ v1BadgeSearchSuggestBody: "V1BadgeSearchSuggestBody",
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 BadgeV1SearchSuggestResponse$ {
65
+ /** @deprecated use `BadgeV1SearchSuggestResponse$inboundSchema` instead. */
66
+ export const inboundSchema = BadgeV1SearchSuggestResponse$inboundSchema;
67
+ /** @deprecated use `BadgeV1SearchSuggestResponse$outboundSchema` instead. */
68
+ export const outboundSchema = BadgeV1SearchSuggestResponse$outboundSchema;
69
+ /** @deprecated use `BadgeV1SearchSuggestResponse$Outbound` instead. */
70
+ export type Outbound = BadgeV1SearchSuggestResponse$Outbound;
71
+ }
72
+
73
+ export function badgeV1SearchSuggestResponseToJSON(
74
+ badgeV1SearchSuggestResponse: BadgeV1SearchSuggestResponse,
75
+ ): string {
76
+ return JSON.stringify(
77
+ BadgeV1SearchSuggestResponse$outboundSchema.parse(
78
+ badgeV1SearchSuggestResponse,
79
+ ),
80
+ );
81
+ }
82
+
83
+ export function badgeV1SearchSuggestResponseFromJSON(
84
+ jsonString: string,
85
+ ): SafeParseResult<BadgeV1SearchSuggestResponse, SDKValidationError> {
86
+ return safeParse(
87
+ jsonString,
88
+ (x) => BadgeV1SearchSuggestResponse$inboundSchema.parse(JSON.parse(x)),
89
+ `Failed to parse 'BadgeV1SearchSuggestResponse' from JSON`,
90
+ );
91
+ }