@steamsets/client-ts 0.34.4 → 0.34.6

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 (199) hide show
  1. package/README.md +15 -0
  2. package/funcs/analyticsGetBivariate.d.ts +16 -0
  3. package/funcs/analyticsGetBivariate.d.ts.map +1 -0
  4. package/funcs/analyticsGetBivariate.js +134 -0
  5. package/funcs/analyticsGetBivariate.js.map +1 -0
  6. package/funcs/analyticsGetDistribution.d.ts +16 -0
  7. package/funcs/analyticsGetDistribution.d.ts.map +1 -0
  8. package/funcs/analyticsGetDistribution.js +134 -0
  9. package/funcs/analyticsGetDistribution.js.map +1 -0
  10. package/funcs/analyticsGetMyPercentiles.d.ts +16 -0
  11. package/funcs/analyticsGetMyPercentiles.d.ts.map +1 -0
  12. package/funcs/analyticsGetMyPercentiles.js +134 -0
  13. package/funcs/analyticsGetMyPercentiles.js.map +1 -0
  14. package/funcs/analyticsGetTrend.d.ts +16 -0
  15. package/funcs/analyticsGetTrend.d.ts.map +1 -0
  16. package/funcs/analyticsGetTrend.js +134 -0
  17. package/funcs/analyticsGetTrend.js.map +1 -0
  18. package/funcs/analyticsListMetrics.d.ts +15 -0
  19. package/funcs/analyticsListMetrics.d.ts.map +1 -0
  20. package/funcs/analyticsListMetrics.js +121 -0
  21. package/funcs/analyticsListMetrics.js.map +1 -0
  22. package/funcs/siteSubscribe.d.ts +20 -0
  23. package/funcs/siteSubscribe.d.ts.map +1 -0
  24. package/funcs/siteSubscribe.js +128 -0
  25. package/funcs/siteSubscribe.js.map +1 -0
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +2 -2
  28. package/lib/config.js +2 -2
  29. package/models/components/accountsubscribeheartbeat.d.ts +10 -0
  30. package/models/components/accountsubscribeheartbeat.d.ts.map +1 -0
  31. package/models/components/accountsubscribeheartbeat.js +50 -0
  32. package/models/components/accountsubscribeheartbeat.js.map +1 -0
  33. package/models/components/analyticsbin.d.ts +12 -0
  34. package/models/components/analyticsbin.d.ts.map +1 -0
  35. package/models/components/analyticsbin.js +58 -0
  36. package/models/components/analyticsbin.js.map +1 -0
  37. package/models/components/analyticsbivariate.d.ts +15 -0
  38. package/models/components/analyticsbivariate.d.ts.map +1 -0
  39. package/models/components/analyticsbivariate.js +57 -0
  40. package/models/components/analyticsbivariate.js.map +1 -0
  41. package/models/components/analyticsbivariatebucket.d.ts +12 -0
  42. package/models/components/analyticsbivariatebucket.d.ts.map +1 -0
  43. package/models/components/analyticsbivariatebucket.js +58 -0
  44. package/models/components/analyticsbivariatebucket.js.map +1 -0
  45. package/models/components/analyticsdistribution.d.ts +17 -0
  46. package/models/components/analyticsdistribution.d.ts.map +1 -0
  47. package/models/components/analyticsdistribution.js +59 -0
  48. package/models/components/analyticsdistribution.js.map +1 -0
  49. package/models/components/analyticsdomainentry.d.ts +14 -0
  50. package/models/components/analyticsdomainentry.d.ts.map +1 -0
  51. package/models/components/analyticsdomainentry.js +54 -0
  52. package/models/components/analyticsdomainentry.js.map +1 -0
  53. package/models/components/analyticsgetbivariaterequestbody.d.ts +46 -0
  54. package/models/components/analyticsgetbivariaterequestbody.d.ts.map +1 -0
  55. package/models/components/analyticsgetbivariaterequestbody.js +69 -0
  56. package/models/components/analyticsgetbivariaterequestbody.js.map +1 -0
  57. package/models/components/analyticsgetdistributionrequestbody.d.ts +30 -0
  58. package/models/components/analyticsgetdistributionrequestbody.d.ts.map +1 -0
  59. package/models/components/analyticsgetdistributionrequestbody.js +57 -0
  60. package/models/components/analyticsgetdistributionrequestbody.js.map +1 -0
  61. package/models/components/analyticsgetmypercentilesrequestbody.d.ts +16 -0
  62. package/models/components/analyticsgetmypercentilesrequestbody.d.ts.map +1 -0
  63. package/models/components/analyticsgetmypercentilesrequestbody.js +56 -0
  64. package/models/components/analyticsgetmypercentilesrequestbody.js.map +1 -0
  65. package/models/components/analyticsgettrendrequestbody.d.ts +47 -0
  66. package/models/components/analyticsgettrendrequestbody.d.ts.map +1 -0
  67. package/models/components/analyticsgettrendrequestbody.js +68 -0
  68. package/models/components/analyticsgettrendrequestbody.js.map +1 -0
  69. package/models/components/analyticslistmetricsresponsebody.d.ts +15 -0
  70. package/models/components/analyticslistmetricsresponsebody.d.ts.map +1 -0
  71. package/models/components/analyticslistmetricsresponsebody.js +57 -0
  72. package/models/components/analyticslistmetricsresponsebody.js.map +1 -0
  73. package/models/components/analyticsmetricentry.d.ts +12 -0
  74. package/models/components/analyticsmetricentry.d.ts.map +1 -0
  75. package/models/components/analyticsmetricentry.js +52 -0
  76. package/models/components/analyticsmetricentry.js.map +1 -0
  77. package/models/components/analyticsmypercentiles.d.ts +16 -0
  78. package/models/components/analyticsmypercentiles.d.ts.map +1 -0
  79. package/models/components/analyticsmypercentiles.js +58 -0
  80. package/models/components/analyticsmypercentiles.js.map +1 -0
  81. package/models/components/analyticspercentile.d.ts +12 -0
  82. package/models/components/analyticspercentile.d.ts.map +1 -0
  83. package/models/components/analyticspercentile.js +52 -0
  84. package/models/components/analyticspercentile.js.map +1 -0
  85. package/models/components/analyticsscopeentry.d.ts +12 -0
  86. package/models/components/analyticsscopeentry.d.ts.map +1 -0
  87. package/models/components/analyticsscopeentry.js +57 -0
  88. package/models/components/analyticsscopeentry.js.map +1 -0
  89. package/models/components/analyticssummary.d.ts +16 -0
  90. package/models/components/analyticssummary.d.ts.map +1 -0
  91. package/models/components/analyticssummary.js +56 -0
  92. package/models/components/analyticssummary.js.map +1 -0
  93. package/models/components/analyticstrend.d.ts +15 -0
  94. package/models/components/analyticstrend.d.ts.map +1 -0
  95. package/models/components/analyticstrend.js +57 -0
  96. package/models/components/analyticstrend.js.map +1 -0
  97. package/models/components/analyticstrendpoint.d.ts +14 -0
  98. package/models/components/analyticstrendpoint.d.ts.map +1 -0
  99. package/models/components/analyticstrendpoint.js +54 -0
  100. package/models/components/analyticstrendpoint.js.map +1 -0
  101. package/models/components/index.d.ts +20 -1
  102. package/models/components/index.d.ts.map +1 -1
  103. package/models/components/index.js +20 -1
  104. package/models/components/index.js.map +1 -1
  105. package/models/components/maintenancechanged.d.ts +11 -0
  106. package/models/components/maintenancechanged.d.ts.map +1 -0
  107. package/models/components/maintenancechanged.js +51 -0
  108. package/models/components/maintenancechanged.js.map +1 -0
  109. package/models/components/sitesubscribeheartbeat.d.ts +10 -0
  110. package/models/components/sitesubscribeheartbeat.d.ts.map +1 -0
  111. package/models/components/{heartbeat.js → sitesubscribeheartbeat.js} +6 -6
  112. package/models/components/sitesubscribeheartbeat.js.map +1 -0
  113. package/models/operations/accountsubscribe.d.ts +1 -1
  114. package/models/operations/accountsubscribe.d.ts.map +1 -1
  115. package/models/operations/accountsubscribe.js +1 -1
  116. package/models/operations/accountsubscribe.js.map +1 -1
  117. package/models/operations/analyticsgetbivariate.d.ts +15 -0
  118. package/models/operations/analyticsgetbivariate.d.ts.map +1 -0
  119. package/models/operations/analyticsgetbivariate.js +58 -0
  120. package/models/operations/analyticsgetbivariate.js.map +1 -0
  121. package/models/operations/analyticsgetdistribution.d.ts +15 -0
  122. package/models/operations/analyticsgetdistribution.d.ts.map +1 -0
  123. package/models/operations/analyticsgetdistribution.js +59 -0
  124. package/models/operations/analyticsgetdistribution.js.map +1 -0
  125. package/models/operations/analyticsgetmypercentiles.d.ts +15 -0
  126. package/models/operations/analyticsgetmypercentiles.d.ts.map +1 -0
  127. package/models/operations/analyticsgetmypercentiles.js +59 -0
  128. package/models/operations/analyticsgetmypercentiles.js.map +1 -0
  129. package/models/operations/analyticsgettrend.d.ts +15 -0
  130. package/models/operations/analyticsgettrend.d.ts.map +1 -0
  131. package/models/operations/analyticsgettrend.js +58 -0
  132. package/models/operations/analyticsgettrend.js.map +1 -0
  133. package/models/operations/analyticslistmetrics.d.ts +15 -0
  134. package/models/operations/analyticslistmetrics.d.ts.map +1 -0
  135. package/models/operations/analyticslistmetrics.js +59 -0
  136. package/models/operations/analyticslistmetrics.js.map +1 -0
  137. package/models/operations/index.d.ts +6 -0
  138. package/models/operations/index.d.ts.map +1 -1
  139. package/models/operations/index.js +6 -0
  140. package/models/operations/index.js.map +1 -1
  141. package/models/operations/sitesubscribe.d.ts +63 -0
  142. package/models/operations/sitesubscribe.d.ts.map +1 -0
  143. package/models/operations/sitesubscribe.js +119 -0
  144. package/models/operations/sitesubscribe.js.map +1 -0
  145. package/package.json +1 -1
  146. package/sdk/analytics.d.ts +21 -0
  147. package/sdk/analytics.d.ts.map +1 -1
  148. package/sdk/analytics.js +35 -0
  149. package/sdk/analytics.js.map +1 -1
  150. package/sdk/sdk.d.ts +3 -0
  151. package/sdk/sdk.d.ts.map +1 -1
  152. package/sdk/sdk.js +4 -0
  153. package/sdk/sdk.js.map +1 -1
  154. package/sdk/site.d.ts +13 -0
  155. package/sdk/site.d.ts.map +1 -0
  156. package/sdk/site.js +21 -0
  157. package/sdk/site.js.map +1 -0
  158. package/src/funcs/analyticsGetBivariate.ts +188 -0
  159. package/src/funcs/analyticsGetDistribution.ts +190 -0
  160. package/src/funcs/analyticsGetMyPercentiles.ts +190 -0
  161. package/src/funcs/analyticsGetTrend.ts +188 -0
  162. package/src/funcs/analyticsListMetrics.ts +165 -0
  163. package/src/funcs/siteSubscribe.ts +168 -0
  164. package/src/lib/config.ts +2 -2
  165. package/src/models/components/accountsubscribeheartbeat.ts +31 -0
  166. package/src/models/components/analyticsbin.ts +41 -0
  167. package/src/models/components/analyticsbivariate.ts +45 -0
  168. package/src/models/components/analyticsbivariatebucket.ts +41 -0
  169. package/src/models/components/analyticsdistribution.ts +48 -0
  170. package/src/models/components/analyticsdomainentry.ts +43 -0
  171. package/src/models/components/analyticsgetbivariaterequestbody.ts +81 -0
  172. package/src/models/components/analyticsgetdistributionrequestbody.ts +59 -0
  173. package/src/models/components/analyticsgetmypercentilesrequestbody.ts +44 -0
  174. package/src/models/components/analyticsgettrendrequestbody.ts +83 -0
  175. package/src/models/components/analyticslistmetricsresponsebody.ts +45 -0
  176. package/src/models/components/analyticsmetricentry.ts +35 -0
  177. package/src/models/components/analyticsmypercentiles.ts +47 -0
  178. package/src/models/components/analyticspercentile.ts +35 -0
  179. package/src/models/components/analyticsscopeentry.ts +40 -0
  180. package/src/models/components/analyticssummary.ts +43 -0
  181. package/src/models/components/analyticstrend.ts +45 -0
  182. package/src/models/components/analyticstrendpoint.ts +39 -0
  183. package/src/models/components/index.ts +20 -1
  184. package/src/models/components/maintenancechanged.ts +35 -0
  185. package/src/models/components/{heartbeat.ts → sitesubscribeheartbeat.ts} +7 -7
  186. package/src/models/operations/accountsubscribe.ts +2 -2
  187. package/src/models/operations/analyticsgetbivariate.ts +43 -0
  188. package/src/models/operations/analyticsgetdistribution.ts +44 -0
  189. package/src/models/operations/analyticsgetmypercentiles.ts +44 -0
  190. package/src/models/operations/analyticsgettrend.ts +43 -0
  191. package/src/models/operations/analyticslistmetrics.ts +46 -0
  192. package/src/models/operations/index.ts +6 -0
  193. package/src/models/operations/sitesubscribe.ts +191 -0
  194. package/src/sdk/analytics.ts +74 -0
  195. package/src/sdk/sdk.ts +6 -0
  196. package/src/sdk/site.ts +24 -0
  197. package/models/components/heartbeat.d.ts +0 -10
  198. package/models/components/heartbeat.d.ts.map +0 -1
  199. package/models/components/heartbeat.js.map +0 -1
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsPercentile = {
11
+ metric: string;
12
+ percentile: number;
13
+ value: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const AnalyticsPercentile$inboundSchema: z.ZodType<
18
+ AnalyticsPercentile,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ metric: z.string(),
23
+ percentile: z.number(),
24
+ value: z.number(),
25
+ });
26
+
27
+ export function analyticsPercentileFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<AnalyticsPercentile, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => AnalyticsPercentile$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'AnalyticsPercentile' from JSON`,
34
+ );
35
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsScopeEntry = {
12
+ column: string;
13
+ id: string;
14
+ valueType: string;
15
+ };
16
+
17
+ /** @internal */
18
+ export const AnalyticsScopeEntry$inboundSchema: z.ZodType<
19
+ AnalyticsScopeEntry,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ column: z.string(),
24
+ id: z.string(),
25
+ value_type: z.string(),
26
+ }).transform((v) => {
27
+ return remap$(v, {
28
+ "value_type": "valueType",
29
+ });
30
+ });
31
+
32
+ export function analyticsScopeEntryFromJSON(
33
+ jsonString: string,
34
+ ): SafeParseResult<AnalyticsScopeEntry, SDKValidationError> {
35
+ return safeParse(
36
+ jsonString,
37
+ (x) => AnalyticsScopeEntry$inboundSchema.parse(JSON.parse(x)),
38
+ `Failed to parse 'AnalyticsScopeEntry' from JSON`,
39
+ );
40
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsSummary = {
11
+ count: number;
12
+ max: number;
13
+ mean: number;
14
+ min: number;
15
+ p50: number;
16
+ p90: number;
17
+ p99: number;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AnalyticsSummary$inboundSchema: z.ZodType<
22
+ AnalyticsSummary,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ count: z.number().int(),
27
+ max: z.number(),
28
+ mean: z.number(),
29
+ min: z.number(),
30
+ p50: z.number(),
31
+ p90: z.number(),
32
+ p99: z.number(),
33
+ });
34
+
35
+ export function analyticsSummaryFromJSON(
36
+ jsonString: string,
37
+ ): SafeParseResult<AnalyticsSummary, SDKValidationError> {
38
+ return safeParse(
39
+ jsonString,
40
+ (x) => AnalyticsSummary$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'AnalyticsSummary' from JSON`,
42
+ );
43
+ }
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ import {
11
+ AnalyticsTrendPoint,
12
+ AnalyticsTrendPoint$inboundSchema,
13
+ } from "./analyticstrendpoint.js";
14
+
15
+ export type AnalyticsTrend = {
16
+ /**
17
+ * A URL to the JSON Schema for this object.
18
+ */
19
+ dollarSchema?: string | undefined;
20
+ points: Array<AnalyticsTrendPoint> | null;
21
+ };
22
+
23
+ /** @internal */
24
+ export const AnalyticsTrend$inboundSchema: z.ZodType<
25
+ AnalyticsTrend,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ $schema: z.string().optional(),
30
+ points: z.nullable(z.array(AnalyticsTrendPoint$inboundSchema)),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "$schema": "dollarSchema",
34
+ });
35
+ });
36
+
37
+ export function analyticsTrendFromJSON(
38
+ jsonString: string,
39
+ ): SafeParseResult<AnalyticsTrend, SDKValidationError> {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) => AnalyticsTrend$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'AnalyticsTrend' from JSON`,
44
+ );
45
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsTrendPoint = {
11
+ count: number;
12
+ date: string;
13
+ p50: number;
14
+ p90: number;
15
+ p99: number;
16
+ };
17
+
18
+ /** @internal */
19
+ export const AnalyticsTrendPoint$inboundSchema: z.ZodType<
20
+ AnalyticsTrendPoint,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ count: z.number().int(),
25
+ date: z.string(),
26
+ p50: z.number(),
27
+ p90: z.number(),
28
+ p99: z.number(),
29
+ });
30
+
31
+ export function analyticsTrendPointFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<AnalyticsTrendPoint, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) => AnalyticsTrendPoint$inboundSchema.parse(JSON.parse(x)),
37
+ `Failed to parse 'AnalyticsTrendPoint' from JSON`,
38
+ );
39
+ }
@@ -7,10 +7,28 @@ export * from "./accountgettrendingrequestbody.js";
7
7
  export * from "./accountgettrendingresponsebody.js";
8
8
  export * from "./accountleaderboardhistory.js";
9
9
  export * from "./accountsearch.js";
10
+ export * from "./accountsubscribeheartbeat.js";
10
11
  export * from "./accountviewstats.js";
11
12
  export * from "./admincmsitem.js";
13
+ export * from "./analyticsbin.js";
14
+ export * from "./analyticsbivariate.js";
15
+ export * from "./analyticsbivariatebucket.js";
16
+ export * from "./analyticsdistribution.js";
17
+ export * from "./analyticsdomainentry.js";
18
+ export * from "./analyticsgetbivariaterequestbody.js";
19
+ export * from "./analyticsgetdistributionrequestbody.js";
20
+ export * from "./analyticsgetmypercentilesrequestbody.js";
21
+ export * from "./analyticsgettrendrequestbody.js";
22
+ export * from "./analyticslistmetricsresponsebody.js";
23
+ export * from "./analyticsmetricentry.js";
24
+ export * from "./analyticsmypercentiles.js";
25
+ export * from "./analyticspercentile.js";
26
+ export * from "./analyticsscopeentry.js";
27
+ export * from "./analyticssummary.js";
12
28
  export * from "./analyticstrackeventrequestbody.js";
13
29
  export * from "./analyticstrackeventresponsebody.js";
30
+ export * from "./analyticstrend.js";
31
+ export * from "./analyticstrendpoint.js";
14
32
  export * from "./assetitem.js";
15
33
  export * from "./badge.js";
16
34
  export * from "./badgesuggesttags.js";
@@ -49,7 +67,6 @@ export * from "./eventstatsupdateddata.js";
49
67
  export * from "./findownersrequestbody.js";
50
68
  export * from "./findownersresponsebody.js";
51
69
  export * from "./friendpath.js";
52
- export * from "./heartbeat.js";
53
70
  export * from "./historyvalue.js";
54
71
  export * from "./httpmetadata.js";
55
72
  export * from "./idsearch.js";
@@ -67,6 +84,7 @@ export * from "./leaderboardstate.js";
67
84
  export * from "./listallresponsebody.js";
68
85
  export * from "./listresponsebody.js";
69
86
  export * from "./loginrequestbody.js";
87
+ export * from "./maintenancechanged.js";
70
88
  export * from "./maintenanceevent.js";
71
89
  export * from "./order.js";
72
90
  export * from "./owner.js";
@@ -85,6 +103,7 @@ export * from "./security.js";
85
103
  export * from "./session.js";
86
104
  export * from "./setremovecolortag.js";
87
105
  export * from "./setremovedesigntag.js";
106
+ export * from "./sitesubscribeheartbeat.js";
88
107
  export * from "./state.js";
89
108
  export * from "./trendingaccount.js";
90
109
  export * from "./trendingsearch.js";
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ MaintenanceEvent,
11
+ MaintenanceEvent$inboundSchema,
12
+ } from "./maintenanceevent.js";
13
+
14
+ export type MaintenanceChanged = {
15
+ items: Array<MaintenanceEvent | null> | null;
16
+ };
17
+
18
+ /** @internal */
19
+ export const MaintenanceChanged$inboundSchema: z.ZodType<
20
+ MaintenanceChanged,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ items: z.nullable(z.array(z.nullable(MaintenanceEvent$inboundSchema))),
25
+ });
26
+
27
+ export function maintenanceChangedFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<MaintenanceChanged, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => MaintenanceChanged$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'MaintenanceChanged' from JSON`,
34
+ );
35
+ }
@@ -7,25 +7,25 @@ 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
9
 
10
- export type Heartbeat = {
10
+ export type SiteSubscribeHeartbeat = {
11
11
  heartbeat: number;
12
12
  };
13
13
 
14
14
  /** @internal */
15
- export const Heartbeat$inboundSchema: z.ZodType<
16
- Heartbeat,
15
+ export const SiteSubscribeHeartbeat$inboundSchema: z.ZodType<
16
+ SiteSubscribeHeartbeat,
17
17
  z.ZodTypeDef,
18
18
  unknown
19
19
  > = z.object({
20
20
  heartbeat: z.number().int(),
21
21
  });
22
22
 
23
- export function heartbeatFromJSON(
23
+ export function siteSubscribeHeartbeatFromJSON(
24
24
  jsonString: string,
25
- ): SafeParseResult<Heartbeat, SDKValidationError> {
25
+ ): SafeParseResult<SiteSubscribeHeartbeat, SDKValidationError> {
26
26
  return safeParse(
27
27
  jsonString,
28
- (x) => Heartbeat$inboundSchema.parse(JSON.parse(x)),
29
- `Failed to parse 'Heartbeat' from JSON`,
28
+ (x) => SiteSubscribeHeartbeat$inboundSchema.parse(JSON.parse(x)),
29
+ `Failed to parse 'SiteSubscribeHeartbeat' from JSON`,
30
30
  );
31
31
  }
@@ -18,7 +18,7 @@ export type AccountSubscribeRequest = {
18
18
  };
19
19
 
20
20
  export type EventHeartbeat = {
21
- data: components.Heartbeat;
21
+ data: components.AccountSubscribeHeartbeat;
22
22
  /**
23
23
  * The event name.
24
24
  */
@@ -118,7 +118,7 @@ export const EventHeartbeat$inboundSchema: z.ZodType<
118
118
  ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
119
119
  return z.NEVER;
120
120
  }
121
- }).pipe(components.Heartbeat$inboundSchema),
121
+ }).pipe(components.AccountSubscribeHeartbeat$inboundSchema),
122
122
  event: z.literal("heartbeat"),
123
123
  id: z.string().optional(),
124
124
  retry: z.number().int().optional(),
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsGetBivariateResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ analyticsBivariate?: components.AnalyticsBivariate | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AnalyticsGetBivariateResponse$inboundSchema: z.ZodType<
22
+ AnalyticsGetBivariateResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ AnalyticsBivariate: components.AnalyticsBivariate$inboundSchema.optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "HttpMeta": "httpMeta",
31
+ "AnalyticsBivariate": "analyticsBivariate",
32
+ });
33
+ });
34
+
35
+ export function analyticsGetBivariateResponseFromJSON(
36
+ jsonString: string,
37
+ ): SafeParseResult<AnalyticsGetBivariateResponse, SDKValidationError> {
38
+ return safeParse(
39
+ jsonString,
40
+ (x) => AnalyticsGetBivariateResponse$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'AnalyticsGetBivariateResponse' from JSON`,
42
+ );
43
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsGetDistributionResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ analyticsDistribution?: components.AnalyticsDistribution | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AnalyticsGetDistributionResponse$inboundSchema: z.ZodType<
22
+ AnalyticsGetDistributionResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ AnalyticsDistribution: components.AnalyticsDistribution$inboundSchema
28
+ .optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "HttpMeta": "httpMeta",
32
+ "AnalyticsDistribution": "analyticsDistribution",
33
+ });
34
+ });
35
+
36
+ export function analyticsGetDistributionResponseFromJSON(
37
+ jsonString: string,
38
+ ): SafeParseResult<AnalyticsGetDistributionResponse, SDKValidationError> {
39
+ return safeParse(
40
+ jsonString,
41
+ (x) => AnalyticsGetDistributionResponse$inboundSchema.parse(JSON.parse(x)),
42
+ `Failed to parse 'AnalyticsGetDistributionResponse' from JSON`,
43
+ );
44
+ }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsGetMyPercentilesResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ analyticsMyPercentiles?: components.AnalyticsMyPercentiles | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AnalyticsGetMyPercentilesResponse$inboundSchema: z.ZodType<
22
+ AnalyticsGetMyPercentilesResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ AnalyticsMyPercentiles: components.AnalyticsMyPercentiles$inboundSchema
28
+ .optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "HttpMeta": "httpMeta",
32
+ "AnalyticsMyPercentiles": "analyticsMyPercentiles",
33
+ });
34
+ });
35
+
36
+ export function analyticsGetMyPercentilesResponseFromJSON(
37
+ jsonString: string,
38
+ ): SafeParseResult<AnalyticsGetMyPercentilesResponse, SDKValidationError> {
39
+ return safeParse(
40
+ jsonString,
41
+ (x) => AnalyticsGetMyPercentilesResponse$inboundSchema.parse(JSON.parse(x)),
42
+ `Failed to parse 'AnalyticsGetMyPercentilesResponse' from JSON`,
43
+ );
44
+ }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsGetTrendResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ analyticsTrend?: components.AnalyticsTrend | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AnalyticsGetTrendResponse$inboundSchema: z.ZodType<
22
+ AnalyticsGetTrendResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ AnalyticsTrend: components.AnalyticsTrend$inboundSchema.optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "HttpMeta": "httpMeta",
31
+ "AnalyticsTrend": "analyticsTrend",
32
+ });
33
+ });
34
+
35
+ export function analyticsGetTrendResponseFromJSON(
36
+ jsonString: string,
37
+ ): SafeParseResult<AnalyticsGetTrendResponse, SDKValidationError> {
38
+ return safeParse(
39
+ jsonString,
40
+ (x) => AnalyticsGetTrendResponse$inboundSchema.parse(JSON.parse(x)),
41
+ `Failed to parse 'AnalyticsGetTrendResponse' from JSON`,
42
+ );
43
+ }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 AnalyticsListMetricsResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ analyticsListMetricsResponseBody?:
18
+ | components.AnalyticsListMetricsResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AnalyticsListMetricsResponse$inboundSchema: z.ZodType<
24
+ AnalyticsListMetricsResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ AnalyticsListMetricsResponseBody: components
30
+ .AnalyticsListMetricsResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "AnalyticsListMetricsResponseBody": "analyticsListMetricsResponseBody",
35
+ });
36
+ });
37
+
38
+ export function analyticsListMetricsResponseFromJSON(
39
+ jsonString: string,
40
+ ): SafeParseResult<AnalyticsListMetricsResponse, SDKValidationError> {
41
+ return safeParse(
42
+ jsonString,
43
+ (x) => AnalyticsListMetricsResponse$inboundSchema.parse(JSON.parse(x)),
44
+ `Failed to parse 'AnalyticsListMetricsResponse' from JSON`,
45
+ );
46
+ }
@@ -58,6 +58,11 @@ export * from "./adminremovevanity.js";
58
58
  export * from "./adminupdateresources.js";
59
59
  export * from "./adminupdateroleoverride.js";
60
60
  export * from "./adminupdateroles.js";
61
+ export * from "./analyticsgetbivariate.js";
62
+ export * from "./analyticsgetdistribution.js";
63
+ export * from "./analyticsgetmypercentiles.js";
64
+ export * from "./analyticsgettrend.js";
65
+ export * from "./analyticslistmetrics.js";
61
66
  export * from "./applistbadges.js";
62
67
  export * from "./badgelisttags.js";
63
68
  export * from "./badgepricingsubscribe.js";
@@ -96,6 +101,7 @@ export * from "./listglobalfeed.js";
96
101
  export * from "./locationgetlocations.js";
97
102
  export * from "./maintenancelist.js";
98
103
  export * from "./searchgettrending.js";
104
+ export * from "./sitesubscribe.js";
99
105
  export * from "./staffliststaff.js";
100
106
  export * from "./statsgetstats.js";
101
107
  export * from "./statssubscribe.js";