@steamsets/client-ts 0.13.5 → 0.13.7

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 (171) hide show
  1. package/README.md +34 -30
  2. package/docs/sdks/account/README.md +72 -0
  3. package/docs/sdks/admin/README.md +94 -5
  4. package/docs/sdks/badge/README.md +14 -14
  5. package/funcs/accountAccountV1GetBadgeBookmarks.d.ts +11 -0
  6. package/funcs/accountAccountV1GetBadgeBookmarks.d.ts.map +1 -0
  7. package/funcs/accountAccountV1GetBadgeBookmarks.js +99 -0
  8. package/funcs/accountAccountV1GetBadgeBookmarks.js.map +1 -0
  9. package/funcs/adminAdminV1GetEvents.d.ts +10 -0
  10. package/funcs/adminAdminV1GetEvents.d.ts.map +1 -0
  11. package/funcs/adminAdminV1GetEvents.js +98 -0
  12. package/funcs/adminAdminV1GetEvents.js.map +1 -0
  13. package/funcs/adminAdminV1UpdateEvent.d.ts +2 -1
  14. package/funcs/adminAdminV1UpdateEvent.d.ts.map +1 -1
  15. package/funcs/adminAdminV1UpdateEvent.js +14 -3
  16. package/funcs/adminAdminV1UpdateEvent.js.map +1 -1
  17. package/funcs/adminGetAccount.d.ts +2 -1
  18. package/funcs/adminGetAccount.d.ts.map +1 -1
  19. package/funcs/adminGetAccount.js +17 -6
  20. package/funcs/adminGetAccount.js.map +1 -1
  21. package/funcs/{badgeBadgeV1Bookmark.d.ts → badgeAccountV1BookmarkBadge.d.ts} +2 -2
  22. package/funcs/badgeAccountV1BookmarkBadge.d.ts.map +1 -0
  23. package/funcs/{badgeBadgeV1Bookmark.js → badgeAccountV1BookmarkBadge.js} +8 -8
  24. package/funcs/badgeAccountV1BookmarkBadge.js.map +1 -0
  25. package/funcs/{badgeBadgeV1GetBookmarks.d.ts → badgeAccountV1GetBadgeBookmarks.d.ts} +2 -2
  26. package/funcs/badgeAccountV1GetBadgeBookmarks.d.ts.map +1 -0
  27. package/funcs/{badgeBadgeV1GetBookmarks.js → badgeAccountV1GetBadgeBookmarks.js} +7 -7
  28. package/funcs/badgeAccountV1GetBadgeBookmarks.js.map +1 -0
  29. package/lib/config.d.ts +3 -3
  30. package/lib/config.js +3 -3
  31. package/models/components/index.d.ts +10 -5
  32. package/models/components/index.d.ts.map +1 -1
  33. package/models/components/index.js +10 -5
  34. package/models/components/index.js.map +1 -1
  35. package/models/components/v1accountbadgebookmark.d.ts +37 -0
  36. package/models/components/v1accountbadgebookmark.d.ts.map +1 -0
  37. package/models/components/{v1badgebookmark.js → v1accountbadgebookmark.js} +17 -17
  38. package/models/components/v1accountbadgebookmark.js.map +1 -0
  39. package/models/components/v1accountbadgebookmarkrequestbody.d.ts +37 -0
  40. package/models/components/v1accountbadgebookmarkrequestbody.d.ts.map +1 -0
  41. package/models/components/{v1badgebookmarkrequestbody.js → v1accountbadgebookmarkrequestbody.js} +17 -17
  42. package/models/components/v1accountbadgebookmarkrequestbody.js.map +1 -0
  43. package/models/components/v1accountbadgebookmarkresponsebody.d.ts +32 -0
  44. package/models/components/v1accountbadgebookmarkresponsebody.d.ts.map +1 -0
  45. package/models/components/{v1badgebookmarkresponsebody.js → v1accountbadgebookmarkresponsebody.js} +17 -17
  46. package/models/components/v1accountbadgebookmarkresponsebody.js.map +1 -0
  47. package/models/components/v1accountbadgebookmarksrequestbody.d.ts +25 -0
  48. package/models/components/v1accountbadgebookmarksrequestbody.d.ts.map +1 -0
  49. package/models/components/v1accountbadgebookmarksrequestbody.js +55 -0
  50. package/models/components/v1accountbadgebookmarksrequestbody.js.map +1 -0
  51. package/models/components/v1accountbadgebookmarksresponsebody.d.ts +35 -0
  52. package/models/components/v1accountbadgebookmarksresponsebody.d.ts.map +1 -0
  53. package/models/components/v1accountbadgebookmarksresponsebody.js +71 -0
  54. package/models/components/v1accountbadgebookmarksresponsebody.js.map +1 -0
  55. package/models/components/v1accountlocationupdate.d.ts +57 -0
  56. package/models/components/v1accountlocationupdate.d.ts.map +1 -0
  57. package/models/components/v1accountlocationupdate.js +69 -0
  58. package/models/components/v1accountlocationupdate.js.map +1 -0
  59. package/models/components/v1accountnameupdate.d.ts +37 -0
  60. package/models/components/v1accountnameupdate.d.ts.map +1 -0
  61. package/models/components/{v1getbadgebookmarksrequestbody.js → v1accountnameupdate.js} +23 -17
  62. package/models/components/v1accountnameupdate.js.map +1 -0
  63. package/models/components/v1admingetaccountresponsebody.d.ts +148 -0
  64. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -0
  65. package/models/components/v1admingetaccountresponsebody.js +127 -0
  66. package/models/components/v1admingetaccountresponsebody.js.map +1 -0
  67. package/models/components/v1adminupdateeventrequestbody.d.ts +38 -0
  68. package/models/components/v1adminupdateeventrequestbody.d.ts.map +1 -0
  69. package/models/components/v1adminupdateeventrequestbody.js +62 -0
  70. package/models/components/v1adminupdateeventrequestbody.js.map +1 -0
  71. package/models/components/v1appeventmapping.d.ts +37 -0
  72. package/models/components/v1appeventmapping.d.ts.map +1 -0
  73. package/models/components/v1appeventmapping.js +61 -0
  74. package/models/components/v1appeventmapping.js.map +1 -0
  75. package/models/components/v1event.d.ts +6 -0
  76. package/models/components/v1event.d.ts.map +1 -1
  77. package/models/components/v1event.js +3 -0
  78. package/models/components/v1event.js.map +1 -1
  79. package/models/operations/accountv1bookmarkbadge.d.ts +35 -0
  80. package/models/operations/accountv1bookmarkbadge.d.ts.map +1 -0
  81. package/models/operations/{badgev1getbookmarks.js → accountv1bookmarkbadge.js} +23 -23
  82. package/models/operations/accountv1bookmarkbadge.js.map +1 -0
  83. package/models/operations/accountv1getbadgebookmarks.d.ts +35 -0
  84. package/models/operations/accountv1getbadgebookmarks.d.ts.map +1 -0
  85. package/models/operations/accountv1getbadgebookmarks.js +75 -0
  86. package/models/operations/accountv1getbadgebookmarks.js.map +1 -0
  87. package/models/operations/adminv1getaccount.d.ts +35 -0
  88. package/models/operations/adminv1getaccount.d.ts.map +1 -0
  89. package/models/operations/{badgev1bookmark.js → adminv1getaccount.js} +23 -23
  90. package/models/operations/adminv1getaccount.js.map +1 -0
  91. package/models/operations/index.d.ts +3 -2
  92. package/models/operations/index.d.ts.map +1 -1
  93. package/models/operations/index.js +3 -2
  94. package/models/operations/index.js.map +1 -1
  95. package/package.json +1 -1
  96. package/sdk/account.d.ts +1 -0
  97. package/sdk/account.d.ts.map +1 -1
  98. package/sdk/account.js +4 -0
  99. package/sdk/account.js.map +1 -1
  100. package/sdk/admin.d.ts +3 -2
  101. package/sdk/admin.d.ts.map +1 -1
  102. package/sdk/admin.js +8 -4
  103. package/sdk/admin.js.map +1 -1
  104. package/sdk/badge.d.ts +2 -2
  105. package/sdk/badge.d.ts.map +1 -1
  106. package/sdk/badge.js +6 -6
  107. package/sdk/badge.js.map +1 -1
  108. package/sdk/sdk.d.ts +2 -2
  109. package/sdk/sdk.d.ts.map +1 -1
  110. package/sdk/sdk.js +4 -4
  111. package/sdk/sdk.js.map +1 -1
  112. package/src/funcs/accountAccountV1GetBadgeBookmarks.ts +127 -0
  113. package/src/funcs/adminAdminV1GetEvents.ts +124 -0
  114. package/src/funcs/adminAdminV1UpdateEvent.ts +20 -2
  115. package/src/funcs/adminGetAccount.ts +24 -7
  116. package/src/funcs/{badgeBadgeV1Bookmark.ts → badgeAccountV1BookmarkBadge.ts} +9 -9
  117. package/src/funcs/{badgeBadgeV1GetBookmarks.ts → badgeAccountV1GetBadgeBookmarks.ts} +8 -8
  118. package/src/lib/config.ts +3 -3
  119. package/src/models/components/index.ts +10 -5
  120. package/src/models/components/v1accountbadgebookmark.ts +78 -0
  121. package/src/models/components/v1accountbadgebookmarkrequestbody.ts +79 -0
  122. package/src/models/components/v1accountbadgebookmarkresponsebody.ts +82 -0
  123. package/src/models/components/v1accountbadgebookmarksrequestbody.ts +62 -0
  124. package/src/models/components/v1accountbadgebookmarksresponsebody.ts +93 -0
  125. package/src/models/components/v1accountlocationupdate.ts +104 -0
  126. package/src/models/components/v1accountnameupdate.ts +76 -0
  127. package/src/models/components/v1admingetaccountresponsebody.ts +261 -0
  128. package/src/models/components/v1adminupdateeventrequestbody.ts +84 -0
  129. package/src/models/components/v1appeventmapping.ts +76 -0
  130. package/src/models/components/v1event.ts +13 -0
  131. package/src/models/operations/accountv1bookmarkbadge.ts +93 -0
  132. package/src/models/operations/accountv1getbadgebookmarks.ts +96 -0
  133. package/src/models/operations/adminv1getaccount.ts +91 -0
  134. package/src/models/operations/index.ts +3 -2
  135. package/src/sdk/account.ts +12 -0
  136. package/src/sdk/admin.ts +15 -1
  137. package/src/sdk/badge.ts +10 -10
  138. package/src/sdk/sdk.ts +5 -5
  139. package/funcs/badgeBadgeV1Bookmark.d.ts.map +0 -1
  140. package/funcs/badgeBadgeV1Bookmark.js.map +0 -1
  141. package/funcs/badgeBadgeV1GetBookmarks.d.ts.map +0 -1
  142. package/funcs/badgeBadgeV1GetBookmarks.js.map +0 -1
  143. package/models/components/v1badgebookmark.d.ts +0 -37
  144. package/models/components/v1badgebookmark.d.ts.map +0 -1
  145. package/models/components/v1badgebookmark.js.map +0 -1
  146. package/models/components/v1badgebookmarkrequestbody.d.ts +0 -37
  147. package/models/components/v1badgebookmarkrequestbody.d.ts.map +0 -1
  148. package/models/components/v1badgebookmarkrequestbody.js.map +0 -1
  149. package/models/components/v1badgebookmarkresponsebody.d.ts +0 -32
  150. package/models/components/v1badgebookmarkresponsebody.d.ts.map +0 -1
  151. package/models/components/v1badgebookmarkresponsebody.js.map +0 -1
  152. package/models/components/v1getbadgebookmarksrequestbody.d.ts +0 -25
  153. package/models/components/v1getbadgebookmarksrequestbody.d.ts.map +0 -1
  154. package/models/components/v1getbadgebookmarksrequestbody.js.map +0 -1
  155. package/models/components/v1getbadgebookmarksresponsebody.d.ts +0 -35
  156. package/models/components/v1getbadgebookmarksresponsebody.d.ts.map +0 -1
  157. package/models/components/v1getbadgebookmarksresponsebody.js +0 -71
  158. package/models/components/v1getbadgebookmarksresponsebody.js.map +0 -1
  159. package/models/operations/badgev1bookmark.d.ts +0 -35
  160. package/models/operations/badgev1bookmark.d.ts.map +0 -1
  161. package/models/operations/badgev1bookmark.js.map +0 -1
  162. package/models/operations/badgev1getbookmarks.d.ts +0 -35
  163. package/models/operations/badgev1getbookmarks.d.ts.map +0 -1
  164. package/models/operations/badgev1getbookmarks.js.map +0 -1
  165. package/src/models/components/v1badgebookmark.ts +0 -76
  166. package/src/models/components/v1badgebookmarkrequestbody.ts +0 -76
  167. package/src/models/components/v1badgebookmarkresponsebody.ts +0 -80
  168. package/src/models/components/v1getbadgebookmarksrequestbody.ts +0 -60
  169. package/src/models/components/v1getbadgebookmarksresponsebody.ts +0 -90
  170. package/src/models/operations/badgev1bookmark.ts +0 -91
  171. package/src/models/operations/badgev1getbookmarks.ts +0 -93
@@ -0,0 +1,76 @@
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 V1AccountNameUpdate = {
11
+ /**
12
+ * The name of the account
13
+ */
14
+ name: string;
15
+ /**
16
+ * The time the name was updated
17
+ */
18
+ updatedAt: Date;
19
+ };
20
+
21
+ /** @internal */
22
+ export const V1AccountNameUpdate$inboundSchema: z.ZodType<
23
+ V1AccountNameUpdate,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ name: z.string(),
28
+ updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
29
+ });
30
+
31
+ /** @internal */
32
+ export type V1AccountNameUpdate$Outbound = {
33
+ name: string;
34
+ updatedAt: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const V1AccountNameUpdate$outboundSchema: z.ZodType<
39
+ V1AccountNameUpdate$Outbound,
40
+ z.ZodTypeDef,
41
+ V1AccountNameUpdate
42
+ > = z.object({
43
+ name: z.string(),
44
+ updatedAt: z.date().transform(v => v.toISOString()),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace V1AccountNameUpdate$ {
52
+ /** @deprecated use `V1AccountNameUpdate$inboundSchema` instead. */
53
+ export const inboundSchema = V1AccountNameUpdate$inboundSchema;
54
+ /** @deprecated use `V1AccountNameUpdate$outboundSchema` instead. */
55
+ export const outboundSchema = V1AccountNameUpdate$outboundSchema;
56
+ /** @deprecated use `V1AccountNameUpdate$Outbound` instead. */
57
+ export type Outbound = V1AccountNameUpdate$Outbound;
58
+ }
59
+
60
+ export function v1AccountNameUpdateToJSON(
61
+ v1AccountNameUpdate: V1AccountNameUpdate,
62
+ ): string {
63
+ return JSON.stringify(
64
+ V1AccountNameUpdate$outboundSchema.parse(v1AccountNameUpdate),
65
+ );
66
+ }
67
+
68
+ export function v1AccountNameUpdateFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<V1AccountNameUpdate, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => V1AccountNameUpdate$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'V1AccountNameUpdate' from JSON`,
75
+ );
76
+ }
@@ -0,0 +1,261 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ Connection,
13
+ Connection$inboundSchema,
14
+ Connection$Outbound,
15
+ Connection$outboundSchema,
16
+ } from "./connection.js";
17
+ import {
18
+ Resource,
19
+ Resource$inboundSchema,
20
+ Resource$Outbound,
21
+ Resource$outboundSchema,
22
+ } from "./resource.js";
23
+ import {
24
+ Role,
25
+ Role$inboundSchema,
26
+ Role$Outbound,
27
+ Role$outboundSchema,
28
+ } from "./role.js";
29
+ import {
30
+ Session,
31
+ Session$inboundSchema,
32
+ Session$Outbound,
33
+ Session$outboundSchema,
34
+ } from "./session.js";
35
+ import {
36
+ V1AccountLocationUpdate,
37
+ V1AccountLocationUpdate$inboundSchema,
38
+ V1AccountLocationUpdate$Outbound,
39
+ V1AccountLocationUpdate$outboundSchema,
40
+ } from "./v1accountlocationupdate.js";
41
+ import {
42
+ V1AccountNameUpdate,
43
+ V1AccountNameUpdate$inboundSchema,
44
+ V1AccountNameUpdate$Outbound,
45
+ V1AccountNameUpdate$outboundSchema,
46
+ } from "./v1accountnameupdate.js";
47
+
48
+ /**
49
+ * The privacy of the account
50
+ */
51
+ export const V1AdminGetAccountResponseBodyPrivacy = {
52
+ Private: "private",
53
+ Public: "public",
54
+ FriendsOnly: "friends_only",
55
+ } as const;
56
+ /**
57
+ * The privacy of the account
58
+ */
59
+ export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<
60
+ typeof V1AdminGetAccountResponseBodyPrivacy
61
+ >;
62
+
63
+ export type V1AdminGetAccountResponseBody = {
64
+ /**
65
+ * A URL to the JSON Schema for this object.
66
+ */
67
+ dollarSchema?: string | undefined;
68
+ /**
69
+ * The avatar of the account
70
+ */
71
+ avatar: string;
72
+ /**
73
+ * The city of the account
74
+ */
75
+ city: string | null;
76
+ /**
77
+ * The connections the user has
78
+ */
79
+ connections: Array<Connection> | null;
80
+ /**
81
+ * The country code of the account
82
+ */
83
+ country: string | null;
84
+ /**
85
+ * The email of the account
86
+ */
87
+ email: string | null;
88
+ /**
89
+ * The location updates the user has
90
+ */
91
+ locationUpdates: Array<V1AccountLocationUpdate> | null;
92
+ /**
93
+ * The name of the account
94
+ */
95
+ name: string;
96
+ /**
97
+ * The name updates the user has
98
+ */
99
+ nameUpdates: Array<V1AccountNameUpdate> | null;
100
+ /**
101
+ * The privacy of the account
102
+ */
103
+ privacy: V1AdminGetAccountResponseBodyPrivacy;
104
+ /**
105
+ * The region of the account
106
+ */
107
+ region: string | null;
108
+ /**
109
+ * The resources the user has (permissions)
110
+ */
111
+ resources: Array<Resource> | null;
112
+ /**
113
+ * The roles the user has
114
+ */
115
+ roles: Array<Role> | null;
116
+ /**
117
+ * The sessions the user has
118
+ */
119
+ sessions: Array<Session> | null;
120
+ /**
121
+ * The state of the account
122
+ */
123
+ state: string | null;
124
+ /**
125
+ * The vanity of the account
126
+ */
127
+ vanity: string | null;
128
+ };
129
+
130
+ /** @internal */
131
+ export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema:
132
+ z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> = z.nativeEnum(
133
+ V1AdminGetAccountResponseBodyPrivacy,
134
+ );
135
+
136
+ /** @internal */
137
+ export const V1AdminGetAccountResponseBodyPrivacy$outboundSchema:
138
+ z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> =
139
+ V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
140
+
141
+ /**
142
+ * @internal
143
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
144
+ */
145
+ export namespace V1AdminGetAccountResponseBodyPrivacy$ {
146
+ /** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$inboundSchema` instead. */
147
+ export const inboundSchema =
148
+ V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
149
+ /** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$outboundSchema` instead. */
150
+ export const outboundSchema =
151
+ V1AdminGetAccountResponseBodyPrivacy$outboundSchema;
152
+ }
153
+
154
+ /** @internal */
155
+ export const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<
156
+ V1AdminGetAccountResponseBody,
157
+ z.ZodTypeDef,
158
+ unknown
159
+ > = z.object({
160
+ $schema: z.string().optional(),
161
+ avatar: z.string(),
162
+ city: z.nullable(z.string()),
163
+ connections: z.nullable(z.array(Connection$inboundSchema)),
164
+ country: z.nullable(z.string()),
165
+ email: z.nullable(z.string()),
166
+ locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$inboundSchema)),
167
+ name: z.string(),
168
+ nameUpdates: z.nullable(z.array(V1AccountNameUpdate$inboundSchema)),
169
+ privacy: V1AdminGetAccountResponseBodyPrivacy$inboundSchema,
170
+ region: z.nullable(z.string()),
171
+ resources: z.nullable(z.array(Resource$inboundSchema)),
172
+ roles: z.nullable(z.array(Role$inboundSchema)),
173
+ sessions: z.nullable(z.array(Session$inboundSchema)),
174
+ state: z.nullable(z.string()),
175
+ vanity: z.nullable(z.string()),
176
+ }).transform((v) => {
177
+ return remap$(v, {
178
+ "$schema": "dollarSchema",
179
+ });
180
+ });
181
+
182
+ /** @internal */
183
+ export type V1AdminGetAccountResponseBody$Outbound = {
184
+ $schema?: string | undefined;
185
+ avatar: string;
186
+ city: string | null;
187
+ connections: Array<Connection$Outbound> | null;
188
+ country: string | null;
189
+ email: string | null;
190
+ locationUpdates: Array<V1AccountLocationUpdate$Outbound> | null;
191
+ name: string;
192
+ nameUpdates: Array<V1AccountNameUpdate$Outbound> | null;
193
+ privacy: string;
194
+ region: string | null;
195
+ resources: Array<Resource$Outbound> | null;
196
+ roles: Array<Role$Outbound> | null;
197
+ sessions: Array<Session$Outbound> | null;
198
+ state: string | null;
199
+ vanity: string | null;
200
+ };
201
+
202
+ /** @internal */
203
+ export const V1AdminGetAccountResponseBody$outboundSchema: z.ZodType<
204
+ V1AdminGetAccountResponseBody$Outbound,
205
+ z.ZodTypeDef,
206
+ V1AdminGetAccountResponseBody
207
+ > = z.object({
208
+ dollarSchema: z.string().optional(),
209
+ avatar: z.string(),
210
+ city: z.nullable(z.string()),
211
+ connections: z.nullable(z.array(Connection$outboundSchema)),
212
+ country: z.nullable(z.string()),
213
+ email: z.nullable(z.string()),
214
+ locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$outboundSchema)),
215
+ name: z.string(),
216
+ nameUpdates: z.nullable(z.array(V1AccountNameUpdate$outboundSchema)),
217
+ privacy: V1AdminGetAccountResponseBodyPrivacy$outboundSchema,
218
+ region: z.nullable(z.string()),
219
+ resources: z.nullable(z.array(Resource$outboundSchema)),
220
+ roles: z.nullable(z.array(Role$outboundSchema)),
221
+ sessions: z.nullable(z.array(Session$outboundSchema)),
222
+ state: z.nullable(z.string()),
223
+ vanity: z.nullable(z.string()),
224
+ }).transform((v) => {
225
+ return remap$(v, {
226
+ dollarSchema: "$schema",
227
+ });
228
+ });
229
+
230
+ /**
231
+ * @internal
232
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
233
+ */
234
+ export namespace V1AdminGetAccountResponseBody$ {
235
+ /** @deprecated use `V1AdminGetAccountResponseBody$inboundSchema` instead. */
236
+ export const inboundSchema = V1AdminGetAccountResponseBody$inboundSchema;
237
+ /** @deprecated use `V1AdminGetAccountResponseBody$outboundSchema` instead. */
238
+ export const outboundSchema = V1AdminGetAccountResponseBody$outboundSchema;
239
+ /** @deprecated use `V1AdminGetAccountResponseBody$Outbound` instead. */
240
+ export type Outbound = V1AdminGetAccountResponseBody$Outbound;
241
+ }
242
+
243
+ export function v1AdminGetAccountResponseBodyToJSON(
244
+ v1AdminGetAccountResponseBody: V1AdminGetAccountResponseBody,
245
+ ): string {
246
+ return JSON.stringify(
247
+ V1AdminGetAccountResponseBody$outboundSchema.parse(
248
+ v1AdminGetAccountResponseBody,
249
+ ),
250
+ );
251
+ }
252
+
253
+ export function v1AdminGetAccountResponseBodyFromJSON(
254
+ jsonString: string,
255
+ ): SafeParseResult<V1AdminGetAccountResponseBody, SDKValidationError> {
256
+ return safeParse(
257
+ jsonString,
258
+ (x) => V1AdminGetAccountResponseBody$inboundSchema.parse(JSON.parse(x)),
259
+ `Failed to parse 'V1AdminGetAccountResponseBody' from JSON`,
260
+ );
261
+ }
@@ -0,0 +1,84 @@
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
+ import {
10
+ V1AppEventMapping,
11
+ V1AppEventMapping$inboundSchema,
12
+ V1AppEventMapping$Outbound,
13
+ V1AppEventMapping$outboundSchema,
14
+ } from "./v1appeventmapping.js";
15
+
16
+ export type V1AdminUpdateEventRequestBody = {
17
+ /**
18
+ * The event id
19
+ */
20
+ eventId: string;
21
+ /**
22
+ * The mappings to add
23
+ */
24
+ mappings: Array<V1AppEventMapping> | null;
25
+ };
26
+
27
+ /** @internal */
28
+ export const V1AdminUpdateEventRequestBody$inboundSchema: z.ZodType<
29
+ V1AdminUpdateEventRequestBody,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ eventId: z.string(),
34
+ mappings: z.nullable(z.array(V1AppEventMapping$inboundSchema)),
35
+ });
36
+
37
+ /** @internal */
38
+ export type V1AdminUpdateEventRequestBody$Outbound = {
39
+ eventId: string;
40
+ mappings: Array<V1AppEventMapping$Outbound> | null;
41
+ };
42
+
43
+ /** @internal */
44
+ export const V1AdminUpdateEventRequestBody$outboundSchema: z.ZodType<
45
+ V1AdminUpdateEventRequestBody$Outbound,
46
+ z.ZodTypeDef,
47
+ V1AdminUpdateEventRequestBody
48
+ > = z.object({
49
+ eventId: z.string(),
50
+ mappings: z.nullable(z.array(V1AppEventMapping$outboundSchema)),
51
+ });
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace V1AdminUpdateEventRequestBody$ {
58
+ /** @deprecated use `V1AdminUpdateEventRequestBody$inboundSchema` instead. */
59
+ export const inboundSchema = V1AdminUpdateEventRequestBody$inboundSchema;
60
+ /** @deprecated use `V1AdminUpdateEventRequestBody$outboundSchema` instead. */
61
+ export const outboundSchema = V1AdminUpdateEventRequestBody$outboundSchema;
62
+ /** @deprecated use `V1AdminUpdateEventRequestBody$Outbound` instead. */
63
+ export type Outbound = V1AdminUpdateEventRequestBody$Outbound;
64
+ }
65
+
66
+ export function v1AdminUpdateEventRequestBodyToJSON(
67
+ v1AdminUpdateEventRequestBody: V1AdminUpdateEventRequestBody,
68
+ ): string {
69
+ return JSON.stringify(
70
+ V1AdminUpdateEventRequestBody$outboundSchema.parse(
71
+ v1AdminUpdateEventRequestBody,
72
+ ),
73
+ );
74
+ }
75
+
76
+ export function v1AdminUpdateEventRequestBodyFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<V1AdminUpdateEventRequestBody, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => V1AdminUpdateEventRequestBody$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'V1AdminUpdateEventRequestBody' from JSON`,
83
+ );
84
+ }
@@ -0,0 +1,76 @@
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 V1AppEventMapping = {
11
+ /**
12
+ * The app id
13
+ */
14
+ appId?: number | null | undefined;
15
+ /**
16
+ * The steam id
17
+ */
18
+ steamId?: number | null | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const V1AppEventMapping$inboundSchema: z.ZodType<
23
+ V1AppEventMapping,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ appId: z.nullable(z.number().int()).optional(),
28
+ steamId: z.nullable(z.number().int()).optional(),
29
+ });
30
+
31
+ /** @internal */
32
+ export type V1AppEventMapping$Outbound = {
33
+ appId?: number | null | undefined;
34
+ steamId?: number | null | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const V1AppEventMapping$outboundSchema: z.ZodType<
39
+ V1AppEventMapping$Outbound,
40
+ z.ZodTypeDef,
41
+ V1AppEventMapping
42
+ > = z.object({
43
+ appId: z.nullable(z.number().int()).optional(),
44
+ steamId: z.nullable(z.number().int()).optional(),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace V1AppEventMapping$ {
52
+ /** @deprecated use `V1AppEventMapping$inboundSchema` instead. */
53
+ export const inboundSchema = V1AppEventMapping$inboundSchema;
54
+ /** @deprecated use `V1AppEventMapping$outboundSchema` instead. */
55
+ export const outboundSchema = V1AppEventMapping$outboundSchema;
56
+ /** @deprecated use `V1AppEventMapping$Outbound` instead. */
57
+ export type Outbound = V1AppEventMapping$Outbound;
58
+ }
59
+
60
+ export function v1AppEventMappingToJSON(
61
+ v1AppEventMapping: V1AppEventMapping,
62
+ ): string {
63
+ return JSON.stringify(
64
+ V1AppEventMapping$outboundSchema.parse(v1AppEventMapping),
65
+ );
66
+ }
67
+
68
+ export function v1AppEventMappingFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<V1AppEventMapping, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => V1AppEventMapping$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'V1AppEventMapping' from JSON`,
75
+ );
76
+ }
@@ -6,6 +6,12 @@ import * as z from "zod";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ V1AppEventMapping,
11
+ V1AppEventMapping$inboundSchema,
12
+ V1AppEventMapping$Outbound,
13
+ V1AppEventMapping$outboundSchema,
14
+ } from "./v1appeventmapping.js";
9
15
 
10
16
  export type V1Event = {
11
17
  /**
@@ -28,6 +34,10 @@ export type V1Event = {
28
34
  * The header image of the event
29
35
  */
30
36
  headerImage: string;
37
+ /**
38
+ * The mappings of the event
39
+ */
40
+ mappings: Array<V1AppEventMapping> | null;
31
41
  /**
32
42
  * The name of the event
33
43
  */
@@ -62,6 +72,7 @@ export const V1Event$inboundSchema: z.ZodType<V1Event, z.ZodTypeDef, unknown> =
62
72
  endsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
63
73
  gid: z.string(),
64
74
  headerImage: z.string(),
75
+ mappings: z.nullable(z.array(V1AppEventMapping$inboundSchema)),
65
76
  name: z.string(),
66
77
  postedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
67
78
  publicId: z.string(),
@@ -77,6 +88,7 @@ export type V1Event$Outbound = {
77
88
  endsAt: string;
78
89
  gid: string;
79
90
  headerImage: string;
91
+ mappings: Array<V1AppEventMapping$Outbound> | null;
80
92
  name: string;
81
93
  postedAt: string;
82
94
  publicId: string;
@@ -96,6 +108,7 @@ export const V1Event$outboundSchema: z.ZodType<
96
108
  endsAt: z.date().transform(v => v.toISOString()),
97
109
  gid: z.string(),
98
110
  headerImage: z.string(),
111
+ mappings: z.nullable(z.array(V1AppEventMapping$outboundSchema)),
99
112
  name: z.string(),
100
113
  postedAt: z.date().transform(v => v.toISOString()),
101
114
  publicId: z.string(),
@@ -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 AccountV1BookmarkBadgeResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountBadgeBookmarkResponseBody?:
18
+ | components.V1AccountBadgeBookmarkResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountV1BookmarkBadgeResponse$inboundSchema: z.ZodType<
24
+ AccountV1BookmarkBadgeResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountBadgeBookmarkResponseBody: components
30
+ .V1AccountBadgeBookmarkResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountBadgeBookmarkResponseBody": "v1AccountBadgeBookmarkResponseBody",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type AccountV1BookmarkBadgeResponse$Outbound = {
40
+ HttpMeta: components.HTTPMetadata$Outbound;
41
+ V1AccountBadgeBookmarkResponseBody?:
42
+ | components.V1AccountBadgeBookmarkResponseBody$Outbound
43
+ | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const AccountV1BookmarkBadgeResponse$outboundSchema: z.ZodType<
48
+ AccountV1BookmarkBadgeResponse$Outbound,
49
+ z.ZodTypeDef,
50
+ AccountV1BookmarkBadgeResponse
51
+ > = z.object({
52
+ httpMeta: components.HTTPMetadata$outboundSchema,
53
+ v1AccountBadgeBookmarkResponseBody: components
54
+ .V1AccountBadgeBookmarkResponseBody$outboundSchema.optional(),
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ httpMeta: "HttpMeta",
58
+ v1AccountBadgeBookmarkResponseBody: "V1AccountBadgeBookmarkResponseBody",
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 AccountV1BookmarkBadgeResponse$ {
67
+ /** @deprecated use `AccountV1BookmarkBadgeResponse$inboundSchema` instead. */
68
+ export const inboundSchema = AccountV1BookmarkBadgeResponse$inboundSchema;
69
+ /** @deprecated use `AccountV1BookmarkBadgeResponse$outboundSchema` instead. */
70
+ export const outboundSchema = AccountV1BookmarkBadgeResponse$outboundSchema;
71
+ /** @deprecated use `AccountV1BookmarkBadgeResponse$Outbound` instead. */
72
+ export type Outbound = AccountV1BookmarkBadgeResponse$Outbound;
73
+ }
74
+
75
+ export function accountV1BookmarkBadgeResponseToJSON(
76
+ accountV1BookmarkBadgeResponse: AccountV1BookmarkBadgeResponse,
77
+ ): string {
78
+ return JSON.stringify(
79
+ AccountV1BookmarkBadgeResponse$outboundSchema.parse(
80
+ accountV1BookmarkBadgeResponse,
81
+ ),
82
+ );
83
+ }
84
+
85
+ export function accountV1BookmarkBadgeResponseFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<AccountV1BookmarkBadgeResponse, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => AccountV1BookmarkBadgeResponse$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'AccountV1BookmarkBadgeResponse' from JSON`,
92
+ );
93
+ }