@steamsets/client-ts 0.34.5 → 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 +10 -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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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 +17 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -0
- package/models/components/index.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 +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- 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/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/lib/config.ts +2 -2
- 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 +17 -0
- 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 +5 -0
- package/src/sdk/analytics.ts +74 -0
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
|
|
8
|
+
export type AnalyticsGetDistributionRequestBody = {
|
|
9
|
+
/**
|
|
10
|
+
* Analytics domain ID. See analytics.listMetrics.
|
|
11
|
+
*/
|
|
12
|
+
domain: string;
|
|
13
|
+
/**
|
|
14
|
+
* Metric ID within the domain.
|
|
15
|
+
*/
|
|
16
|
+
metric: string;
|
|
17
|
+
/**
|
|
18
|
+
* Scope ID within the domain (global, country, region, …).
|
|
19
|
+
*/
|
|
20
|
+
scope: string;
|
|
21
|
+
/**
|
|
22
|
+
* Scope value (e.g. country_id). Required for non-global scopes.
|
|
23
|
+
*/
|
|
24
|
+
scopeValue?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type AnalyticsGetDistributionRequestBody$Outbound = {
|
|
29
|
+
domain: string;
|
|
30
|
+
metric: string;
|
|
31
|
+
scope: string;
|
|
32
|
+
scope_value?: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const AnalyticsGetDistributionRequestBody$outboundSchema: z.ZodType<
|
|
37
|
+
AnalyticsGetDistributionRequestBody$Outbound,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
AnalyticsGetDistributionRequestBody
|
|
40
|
+
> = z.object({
|
|
41
|
+
domain: z.string(),
|
|
42
|
+
metric: z.string(),
|
|
43
|
+
scope: z.string(),
|
|
44
|
+
scopeValue: z.number().int().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
scopeValue: "scope_value",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export function analyticsGetDistributionRequestBodyToJSON(
|
|
52
|
+
analyticsGetDistributionRequestBody: AnalyticsGetDistributionRequestBody,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
AnalyticsGetDistributionRequestBody$outboundSchema.parse(
|
|
56
|
+
analyticsGetDistributionRequestBody,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -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
|
+
|
|
8
|
+
export type AnalyticsGetMyPercentilesRequestBody = {
|
|
9
|
+
domain: string;
|
|
10
|
+
scope: string;
|
|
11
|
+
scopeValue?: number | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type AnalyticsGetMyPercentilesRequestBody$Outbound = {
|
|
16
|
+
domain: string;
|
|
17
|
+
scope: string;
|
|
18
|
+
scope_value?: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const AnalyticsGetMyPercentilesRequestBody$outboundSchema: z.ZodType<
|
|
23
|
+
AnalyticsGetMyPercentilesRequestBody$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
AnalyticsGetMyPercentilesRequestBody
|
|
26
|
+
> = z.object({
|
|
27
|
+
domain: z.string(),
|
|
28
|
+
scope: z.string(),
|
|
29
|
+
scopeValue: z.number().int().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
scopeValue: "scope_value",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function analyticsGetMyPercentilesRequestBodyToJSON(
|
|
37
|
+
analyticsGetMyPercentilesRequestBody: AnalyticsGetMyPercentilesRequestBody,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
AnalyticsGetMyPercentilesRequestBody$outboundSchema.parse(
|
|
41
|
+
analyticsGetMyPercentilesRequestBody,
|
|
42
|
+
),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Lookback window.
|
|
11
|
+
*/
|
|
12
|
+
export const AnalyticsGetTrendRequestBodyWindow = {
|
|
13
|
+
Sevend: "7d",
|
|
14
|
+
Thirtyd: "30d",
|
|
15
|
+
Ninetyd: "90d",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Lookback window.
|
|
19
|
+
*/
|
|
20
|
+
export type AnalyticsGetTrendRequestBodyWindow = ClosedEnum<
|
|
21
|
+
typeof AnalyticsGetTrendRequestBodyWindow
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type AnalyticsGetTrendRequestBody = {
|
|
25
|
+
/**
|
|
26
|
+
* Analytics domain ID.
|
|
27
|
+
*/
|
|
28
|
+
domain: string;
|
|
29
|
+
/**
|
|
30
|
+
* Metric ID within the domain.
|
|
31
|
+
*/
|
|
32
|
+
metric: string;
|
|
33
|
+
/**
|
|
34
|
+
* Scope ID within the domain.
|
|
35
|
+
*/
|
|
36
|
+
scope: string;
|
|
37
|
+
scopeValue?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Lookback window.
|
|
40
|
+
*/
|
|
41
|
+
window: AnalyticsGetTrendRequestBodyWindow;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const AnalyticsGetTrendRequestBodyWindow$outboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof AnalyticsGetTrendRequestBodyWindow
|
|
47
|
+
> = z.nativeEnum(AnalyticsGetTrendRequestBodyWindow);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type AnalyticsGetTrendRequestBody$Outbound = {
|
|
51
|
+
domain: string;
|
|
52
|
+
metric: string;
|
|
53
|
+
scope: string;
|
|
54
|
+
scope_value?: number | undefined;
|
|
55
|
+
window: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const AnalyticsGetTrendRequestBody$outboundSchema: z.ZodType<
|
|
60
|
+
AnalyticsGetTrendRequestBody$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
AnalyticsGetTrendRequestBody
|
|
63
|
+
> = z.object({
|
|
64
|
+
domain: z.string(),
|
|
65
|
+
metric: z.string(),
|
|
66
|
+
scope: z.string(),
|
|
67
|
+
scopeValue: z.number().int().optional(),
|
|
68
|
+
window: AnalyticsGetTrendRequestBodyWindow$outboundSchema,
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
scopeValue: "scope_value",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function analyticsGetTrendRequestBodyToJSON(
|
|
76
|
+
analyticsGetTrendRequestBody: AnalyticsGetTrendRequestBody,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
AnalyticsGetTrendRequestBody$outboundSchema.parse(
|
|
80
|
+
analyticsGetTrendRequestBody,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -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
|
+
AnalyticsDomainEntry,
|
|
12
|
+
AnalyticsDomainEntry$inboundSchema,
|
|
13
|
+
} from "./analyticsdomainentry.js";
|
|
14
|
+
|
|
15
|
+
export type AnalyticsListMetricsResponseBody = {
|
|
16
|
+
/**
|
|
17
|
+
* A URL to the JSON Schema for this object.
|
|
18
|
+
*/
|
|
19
|
+
dollarSchema?: string | undefined;
|
|
20
|
+
domains: Array<AnalyticsDomainEntry> | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AnalyticsListMetricsResponseBody$inboundSchema: z.ZodType<
|
|
25
|
+
AnalyticsListMetricsResponseBody,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
$schema: z.string().optional(),
|
|
30
|
+
domains: z.nullable(z.array(AnalyticsDomainEntry$inboundSchema)),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"$schema": "dollarSchema",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function analyticsListMetricsResponseBodyFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<AnalyticsListMetricsResponseBody, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => AnalyticsListMetricsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'AnalyticsListMetricsResponseBody' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -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 AnalyticsMetricEntry = {
|
|
11
|
+
column: string;
|
|
12
|
+
id: string;
|
|
13
|
+
kind: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AnalyticsMetricEntry$inboundSchema: z.ZodType<
|
|
18
|
+
AnalyticsMetricEntry,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
column: z.string(),
|
|
23
|
+
id: z.string(),
|
|
24
|
+
kind: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function analyticsMetricEntryFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<AnalyticsMetricEntry, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => AnalyticsMetricEntry$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'AnalyticsMetricEntry' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
AnalyticsPercentile,
|
|
12
|
+
AnalyticsPercentile$inboundSchema,
|
|
13
|
+
} from "./analyticspercentile.js";
|
|
14
|
+
|
|
15
|
+
export type AnalyticsMyPercentiles = {
|
|
16
|
+
/**
|
|
17
|
+
* A URL to the JSON Schema for this object.
|
|
18
|
+
*/
|
|
19
|
+
dollarSchema?: string | undefined;
|
|
20
|
+
count: number;
|
|
21
|
+
percentiles: Array<AnalyticsPercentile> | null;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AnalyticsMyPercentiles$inboundSchema: z.ZodType<
|
|
26
|
+
AnalyticsMyPercentiles,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
$schema: z.string().optional(),
|
|
31
|
+
count: z.number().int(),
|
|
32
|
+
percentiles: z.nullable(z.array(AnalyticsPercentile$inboundSchema)),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"$schema": "dollarSchema",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function analyticsMyPercentilesFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<AnalyticsMyPercentiles, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => AnalyticsMyPercentiles$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'AnalyticsMyPercentiles' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -10,8 +10,25 @@ export * from "./accountsearch.js";
|
|
|
10
10
|
export * from "./accountsubscribeheartbeat.js";
|
|
11
11
|
export * from "./accountviewstats.js";
|
|
12
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";
|
|
13
28
|
export * from "./analyticstrackeventrequestbody.js";
|
|
14
29
|
export * from "./analyticstrackeventresponsebody.js";
|
|
30
|
+
export * from "./analyticstrend.js";
|
|
31
|
+
export * from "./analyticstrendpoint.js";
|
|
15
32
|
export * from "./assetitem.js";
|
|
16
33
|
export * from "./badge.js";
|
|
17
34
|
export * from "./badgesuggesttags.js";
|
|
@@ -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
|
+
}
|