@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.
- package/README.md +15 -0
- package/funcs/analyticsGetBivariate.d.ts +16 -0
- package/funcs/analyticsGetBivariate.d.ts.map +1 -0
- package/funcs/analyticsGetBivariate.js +134 -0
- package/funcs/analyticsGetBivariate.js.map +1 -0
- package/funcs/analyticsGetDistribution.d.ts +16 -0
- package/funcs/analyticsGetDistribution.d.ts.map +1 -0
- package/funcs/analyticsGetDistribution.js +134 -0
- package/funcs/analyticsGetDistribution.js.map +1 -0
- package/funcs/analyticsGetMyPercentiles.d.ts +16 -0
- package/funcs/analyticsGetMyPercentiles.d.ts.map +1 -0
- package/funcs/analyticsGetMyPercentiles.js +134 -0
- package/funcs/analyticsGetMyPercentiles.js.map +1 -0
- package/funcs/analyticsGetTrend.d.ts +16 -0
- package/funcs/analyticsGetTrend.d.ts.map +1 -0
- package/funcs/analyticsGetTrend.js +134 -0
- package/funcs/analyticsGetTrend.js.map +1 -0
- package/funcs/analyticsListMetrics.d.ts +15 -0
- package/funcs/analyticsListMetrics.d.ts.map +1 -0
- package/funcs/analyticsListMetrics.js +121 -0
- package/funcs/analyticsListMetrics.js.map +1 -0
- package/funcs/siteSubscribe.d.ts +20 -0
- package/funcs/siteSubscribe.d.ts.map +1 -0
- package/funcs/siteSubscribe.js +128 -0
- package/funcs/siteSubscribe.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountsubscribeheartbeat.d.ts +10 -0
- package/models/components/accountsubscribeheartbeat.d.ts.map +1 -0
- package/models/components/accountsubscribeheartbeat.js +50 -0
- package/models/components/accountsubscribeheartbeat.js.map +1 -0
- package/models/components/analyticsbin.d.ts +12 -0
- package/models/components/analyticsbin.d.ts.map +1 -0
- package/models/components/analyticsbin.js +58 -0
- package/models/components/analyticsbin.js.map +1 -0
- package/models/components/analyticsbivariate.d.ts +15 -0
- package/models/components/analyticsbivariate.d.ts.map +1 -0
- package/models/components/analyticsbivariate.js +57 -0
- package/models/components/analyticsbivariate.js.map +1 -0
- package/models/components/analyticsbivariatebucket.d.ts +12 -0
- package/models/components/analyticsbivariatebucket.d.ts.map +1 -0
- package/models/components/analyticsbivariatebucket.js +58 -0
- package/models/components/analyticsbivariatebucket.js.map +1 -0
- package/models/components/analyticsdistribution.d.ts +17 -0
- package/models/components/analyticsdistribution.d.ts.map +1 -0
- package/models/components/analyticsdistribution.js +59 -0
- package/models/components/analyticsdistribution.js.map +1 -0
- package/models/components/analyticsdomainentry.d.ts +14 -0
- package/models/components/analyticsdomainentry.d.ts.map +1 -0
- package/models/components/analyticsdomainentry.js +54 -0
- package/models/components/analyticsdomainentry.js.map +1 -0
- package/models/components/analyticsgetbivariaterequestbody.d.ts +46 -0
- package/models/components/analyticsgetbivariaterequestbody.d.ts.map +1 -0
- package/models/components/analyticsgetbivariaterequestbody.js +69 -0
- package/models/components/analyticsgetbivariaterequestbody.js.map +1 -0
- package/models/components/analyticsgetdistributionrequestbody.d.ts +30 -0
- package/models/components/analyticsgetdistributionrequestbody.d.ts.map +1 -0
- package/models/components/analyticsgetdistributionrequestbody.js +57 -0
- package/models/components/analyticsgetdistributionrequestbody.js.map +1 -0
- package/models/components/analyticsgetmypercentilesrequestbody.d.ts +16 -0
- package/models/components/analyticsgetmypercentilesrequestbody.d.ts.map +1 -0
- package/models/components/analyticsgetmypercentilesrequestbody.js +56 -0
- package/models/components/analyticsgetmypercentilesrequestbody.js.map +1 -0
- package/models/components/analyticsgettrendrequestbody.d.ts +47 -0
- package/models/components/analyticsgettrendrequestbody.d.ts.map +1 -0
- package/models/components/analyticsgettrendrequestbody.js +68 -0
- package/models/components/analyticsgettrendrequestbody.js.map +1 -0
- package/models/components/analyticslistmetricsresponsebody.d.ts +15 -0
- package/models/components/analyticslistmetricsresponsebody.d.ts.map +1 -0
- package/models/components/analyticslistmetricsresponsebody.js +57 -0
- package/models/components/analyticslistmetricsresponsebody.js.map +1 -0
- package/models/components/analyticsmetricentry.d.ts +12 -0
- package/models/components/analyticsmetricentry.d.ts.map +1 -0
- package/models/components/analyticsmetricentry.js +52 -0
- package/models/components/analyticsmetricentry.js.map +1 -0
- package/models/components/analyticsmypercentiles.d.ts +16 -0
- package/models/components/analyticsmypercentiles.d.ts.map +1 -0
- package/models/components/analyticsmypercentiles.js +58 -0
- package/models/components/analyticsmypercentiles.js.map +1 -0
- package/models/components/analyticspercentile.d.ts +12 -0
- package/models/components/analyticspercentile.d.ts.map +1 -0
- package/models/components/analyticspercentile.js +52 -0
- package/models/components/analyticspercentile.js.map +1 -0
- package/models/components/analyticsscopeentry.d.ts +12 -0
- package/models/components/analyticsscopeentry.d.ts.map +1 -0
- package/models/components/analyticsscopeentry.js +57 -0
- package/models/components/analyticsscopeentry.js.map +1 -0
- package/models/components/analyticssummary.d.ts +16 -0
- package/models/components/analyticssummary.d.ts.map +1 -0
- package/models/components/analyticssummary.js +56 -0
- package/models/components/analyticssummary.js.map +1 -0
- package/models/components/analyticstrend.d.ts +15 -0
- package/models/components/analyticstrend.d.ts.map +1 -0
- package/models/components/analyticstrend.js +57 -0
- package/models/components/analyticstrend.js.map +1 -0
- package/models/components/analyticstrendpoint.d.ts +14 -0
- package/models/components/analyticstrendpoint.d.ts.map +1 -0
- package/models/components/analyticstrendpoint.js +54 -0
- package/models/components/analyticstrendpoint.js.map +1 -0
- package/models/components/index.d.ts +20 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +20 -1
- package/models/components/index.js.map +1 -1
- package/models/components/maintenancechanged.d.ts +11 -0
- package/models/components/maintenancechanged.d.ts.map +1 -0
- package/models/components/maintenancechanged.js +51 -0
- package/models/components/maintenancechanged.js.map +1 -0
- package/models/components/sitesubscribeheartbeat.d.ts +10 -0
- package/models/components/sitesubscribeheartbeat.d.ts.map +1 -0
- package/models/components/{heartbeat.js → sitesubscribeheartbeat.js} +6 -6
- package/models/components/sitesubscribeheartbeat.js.map +1 -0
- package/models/operations/accountsubscribe.d.ts +1 -1
- package/models/operations/accountsubscribe.d.ts.map +1 -1
- package/models/operations/accountsubscribe.js +1 -1
- package/models/operations/accountsubscribe.js.map +1 -1
- package/models/operations/analyticsgetbivariate.d.ts +15 -0
- package/models/operations/analyticsgetbivariate.d.ts.map +1 -0
- package/models/operations/analyticsgetbivariate.js +58 -0
- package/models/operations/analyticsgetbivariate.js.map +1 -0
- package/models/operations/analyticsgetdistribution.d.ts +15 -0
- package/models/operations/analyticsgetdistribution.d.ts.map +1 -0
- package/models/operations/analyticsgetdistribution.js +59 -0
- package/models/operations/analyticsgetdistribution.js.map +1 -0
- package/models/operations/analyticsgetmypercentiles.d.ts +15 -0
- package/models/operations/analyticsgetmypercentiles.d.ts.map +1 -0
- package/models/operations/analyticsgetmypercentiles.js +59 -0
- package/models/operations/analyticsgetmypercentiles.js.map +1 -0
- package/models/operations/analyticsgettrend.d.ts +15 -0
- package/models/operations/analyticsgettrend.d.ts.map +1 -0
- package/models/operations/analyticsgettrend.js +58 -0
- package/models/operations/analyticsgettrend.js.map +1 -0
- package/models/operations/analyticslistmetrics.d.ts +15 -0
- package/models/operations/analyticslistmetrics.d.ts.map +1 -0
- package/models/operations/analyticslistmetrics.js +59 -0
- package/models/operations/analyticslistmetrics.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/sitesubscribe.d.ts +63 -0
- package/models/operations/sitesubscribe.d.ts.map +1 -0
- package/models/operations/sitesubscribe.js +119 -0
- package/models/operations/sitesubscribe.js.map +1 -0
- package/package.json +1 -1
- package/sdk/analytics.d.ts +21 -0
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +35 -0
- package/sdk/analytics.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/site.d.ts +13 -0
- package/sdk/site.d.ts.map +1 -0
- package/sdk/site.js +21 -0
- package/sdk/site.js.map +1 -0
- package/src/funcs/analyticsGetBivariate.ts +188 -0
- package/src/funcs/analyticsGetDistribution.ts +190 -0
- package/src/funcs/analyticsGetMyPercentiles.ts +190 -0
- package/src/funcs/analyticsGetTrend.ts +188 -0
- package/src/funcs/analyticsListMetrics.ts +165 -0
- package/src/funcs/siteSubscribe.ts +168 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountsubscribeheartbeat.ts +31 -0
- package/src/models/components/analyticsbin.ts +41 -0
- package/src/models/components/analyticsbivariate.ts +45 -0
- package/src/models/components/analyticsbivariatebucket.ts +41 -0
- package/src/models/components/analyticsdistribution.ts +48 -0
- package/src/models/components/analyticsdomainentry.ts +43 -0
- package/src/models/components/analyticsgetbivariaterequestbody.ts +81 -0
- package/src/models/components/analyticsgetdistributionrequestbody.ts +59 -0
- package/src/models/components/analyticsgetmypercentilesrequestbody.ts +44 -0
- package/src/models/components/analyticsgettrendrequestbody.ts +83 -0
- package/src/models/components/analyticslistmetricsresponsebody.ts +45 -0
- package/src/models/components/analyticsmetricentry.ts +35 -0
- package/src/models/components/analyticsmypercentiles.ts +47 -0
- package/src/models/components/analyticspercentile.ts +35 -0
- package/src/models/components/analyticsscopeentry.ts +40 -0
- package/src/models/components/analyticssummary.ts +43 -0
- package/src/models/components/analyticstrend.ts +45 -0
- package/src/models/components/analyticstrendpoint.ts +39 -0
- package/src/models/components/index.ts +20 -1
- package/src/models/components/maintenancechanged.ts +35 -0
- package/src/models/components/{heartbeat.ts → sitesubscribeheartbeat.ts} +7 -7
- package/src/models/operations/accountsubscribe.ts +2 -2
- package/src/models/operations/analyticsgetbivariate.ts +43 -0
- package/src/models/operations/analyticsgetdistribution.ts +44 -0
- package/src/models/operations/analyticsgetmypercentiles.ts +44 -0
- package/src/models/operations/analyticsgettrend.ts +43 -0
- package/src/models/operations/analyticslistmetrics.ts +46 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/sitesubscribe.ts +191 -0
- package/src/sdk/analytics.ts +74 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/site.ts +24 -0
- package/models/components/heartbeat.d.ts +0 -10
- package/models/components/heartbeat.d.ts.map +0 -1
- 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
|
|
10
|
+
export type SiteSubscribeHeartbeat = {
|
|
11
11
|
heartbeat: number;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
/** @internal */
|
|
15
|
-
export const
|
|
16
|
-
|
|
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
|
|
23
|
+
export function siteSubscribeHeartbeatFromJSON(
|
|
24
24
|
jsonString: string,
|
|
25
|
-
): SafeParseResult<
|
|
25
|
+
): SafeParseResult<SiteSubscribeHeartbeat, SDKValidationError> {
|
|
26
26
|
return safeParse(
|
|
27
27
|
jsonString,
|
|
28
|
-
(x) =>
|
|
29
|
-
`Failed to parse '
|
|
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.
|
|
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.
|
|
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";
|