@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,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { EventStream } from "../../lib/event-streams.js";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type EventMaintenanceChanged = {
|
|
14
|
+
data: components.MaintenanceChanged;
|
|
15
|
+
/**
|
|
16
|
+
* The event name.
|
|
17
|
+
*/
|
|
18
|
+
event: "maintenance-changed";
|
|
19
|
+
/**
|
|
20
|
+
* The event ID.
|
|
21
|
+
*/
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The retry time in milliseconds.
|
|
25
|
+
*/
|
|
26
|
+
retry?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type SiteSubscribeServerSentEventsEventHeartbeat = {
|
|
30
|
+
data: components.SiteSubscribeHeartbeat;
|
|
31
|
+
/**
|
|
32
|
+
* The event name.
|
|
33
|
+
*/
|
|
34
|
+
event: "heartbeat";
|
|
35
|
+
/**
|
|
36
|
+
* The event ID.
|
|
37
|
+
*/
|
|
38
|
+
id?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The retry time in milliseconds.
|
|
41
|
+
*/
|
|
42
|
+
retry?: number | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Each oneOf object in the array represents one possible Server Sent Events (SSE) message, serialized as UTF-8 text according to the SSE specification.
|
|
47
|
+
*/
|
|
48
|
+
export type SiteSubscribeServerSentEvents =
|
|
49
|
+
| SiteSubscribeServerSentEventsEventHeartbeat
|
|
50
|
+
| EventMaintenanceChanged;
|
|
51
|
+
|
|
52
|
+
export type SiteSubscribeResponse = {
|
|
53
|
+
httpMeta: components.HTTPMetadata;
|
|
54
|
+
/**
|
|
55
|
+
* OK
|
|
56
|
+
*/
|
|
57
|
+
serverSentEvents?:
|
|
58
|
+
| EventStream<
|
|
59
|
+
SiteSubscribeServerSentEventsEventHeartbeat | EventMaintenanceChanged
|
|
60
|
+
>
|
|
61
|
+
| undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Error
|
|
64
|
+
*/
|
|
65
|
+
errorModel?: components.ErrorModel | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const EventMaintenanceChanged$inboundSchema: z.ZodType<
|
|
70
|
+
EventMaintenanceChanged,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
unknown
|
|
73
|
+
> = z.object({
|
|
74
|
+
data: z.string().transform((v, ctx) => {
|
|
75
|
+
try {
|
|
76
|
+
return JSON.parse(v);
|
|
77
|
+
} catch (err) {
|
|
78
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
79
|
+
return z.NEVER;
|
|
80
|
+
}
|
|
81
|
+
}).pipe(components.MaintenanceChanged$inboundSchema),
|
|
82
|
+
event: z.literal("maintenance-changed"),
|
|
83
|
+
id: z.string().optional(),
|
|
84
|
+
retry: z.number().int().optional(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export function eventMaintenanceChangedFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<EventMaintenanceChanged, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => EventMaintenanceChanged$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'EventMaintenanceChanged' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const SiteSubscribeServerSentEventsEventHeartbeat$inboundSchema:
|
|
99
|
+
z.ZodType<
|
|
100
|
+
SiteSubscribeServerSentEventsEventHeartbeat,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
unknown
|
|
103
|
+
> = z.object({
|
|
104
|
+
data: z.string().transform((v, ctx) => {
|
|
105
|
+
try {
|
|
106
|
+
return JSON.parse(v);
|
|
107
|
+
} catch (err) {
|
|
108
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
109
|
+
return z.NEVER;
|
|
110
|
+
}
|
|
111
|
+
}).pipe(components.SiteSubscribeHeartbeat$inboundSchema),
|
|
112
|
+
event: z.literal("heartbeat"),
|
|
113
|
+
id: z.string().optional(),
|
|
114
|
+
retry: z.number().int().optional(),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export function siteSubscribeServerSentEventsEventHeartbeatFromJSON(
|
|
118
|
+
jsonString: string,
|
|
119
|
+
): SafeParseResult<
|
|
120
|
+
SiteSubscribeServerSentEventsEventHeartbeat,
|
|
121
|
+
SDKValidationError
|
|
122
|
+
> {
|
|
123
|
+
return safeParse(
|
|
124
|
+
jsonString,
|
|
125
|
+
(x) =>
|
|
126
|
+
SiteSubscribeServerSentEventsEventHeartbeat$inboundSchema.parse(
|
|
127
|
+
JSON.parse(x),
|
|
128
|
+
),
|
|
129
|
+
`Failed to parse 'SiteSubscribeServerSentEventsEventHeartbeat' from JSON`,
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const SiteSubscribeServerSentEvents$inboundSchema: z.ZodType<
|
|
135
|
+
SiteSubscribeServerSentEvents,
|
|
136
|
+
z.ZodTypeDef,
|
|
137
|
+
unknown
|
|
138
|
+
> = z.union([
|
|
139
|
+
z.lazy(() => SiteSubscribeServerSentEventsEventHeartbeat$inboundSchema),
|
|
140
|
+
z.lazy(() => EventMaintenanceChanged$inboundSchema),
|
|
141
|
+
]);
|
|
142
|
+
|
|
143
|
+
export function siteSubscribeServerSentEventsFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<SiteSubscribeServerSentEvents, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => SiteSubscribeServerSentEvents$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'SiteSubscribeServerSentEvents' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const SiteSubscribeResponse$inboundSchema: z.ZodType<
|
|
155
|
+
SiteSubscribeResponse,
|
|
156
|
+
z.ZodTypeDef,
|
|
157
|
+
unknown
|
|
158
|
+
> = z.object({
|
|
159
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
160
|
+
"Server Sent Events": z.instanceof(ReadableStream<Uint8Array>)
|
|
161
|
+
.transform(stream => {
|
|
162
|
+
return new EventStream(stream, rawEvent => {
|
|
163
|
+
return {
|
|
164
|
+
done: false,
|
|
165
|
+
value: z.union([
|
|
166
|
+
z.lazy(() =>
|
|
167
|
+
SiteSubscribeServerSentEventsEventHeartbeat$inboundSchema
|
|
168
|
+
),
|
|
169
|
+
z.lazy(() => EventMaintenanceChanged$inboundSchema),
|
|
170
|
+
]).parse(rawEvent),
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
}).optional(),
|
|
174
|
+
ErrorModel: components.ErrorModel$inboundSchema.optional(),
|
|
175
|
+
}).transform((v) => {
|
|
176
|
+
return remap$(v, {
|
|
177
|
+
"HttpMeta": "httpMeta",
|
|
178
|
+
"Server Sent Events": "serverSentEvents",
|
|
179
|
+
"ErrorModel": "errorModel",
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export function siteSubscribeResponseFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<SiteSubscribeResponse, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => SiteSubscribeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'SiteSubscribeResponse' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
package/src/sdk/analytics.ts
CHANGED
|
@@ -2,12 +2,86 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { analyticsGetBivariate } from "../funcs/analyticsGetBivariate.js";
|
|
6
|
+
import { analyticsGetDistribution } from "../funcs/analyticsGetDistribution.js";
|
|
7
|
+
import { analyticsGetMyPercentiles } from "../funcs/analyticsGetMyPercentiles.js";
|
|
8
|
+
import { analyticsGetTrend } from "../funcs/analyticsGetTrend.js";
|
|
9
|
+
import { analyticsListMetrics } from "../funcs/analyticsListMetrics.js";
|
|
5
10
|
import { analyticsTrackEvent } from "../funcs/analyticsTrackEvent.js";
|
|
6
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
7
13
|
import * as operations from "../models/operations/index.js";
|
|
8
14
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
15
|
|
|
10
16
|
export class Analytics extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* Bucket by X, aggregate Y, within a scope
|
|
19
|
+
*/
|
|
20
|
+
async getBivariate(
|
|
21
|
+
request: components.AnalyticsGetBivariateRequestBody,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.AnalyticsGetBivariateResponse> {
|
|
24
|
+
return unwrapAsync(analyticsGetBivariate(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Histogram + summary stats for a metric in a scope
|
|
33
|
+
*/
|
|
34
|
+
async getDistribution(
|
|
35
|
+
request: components.AnalyticsGetDistributionRequestBody,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<operations.AnalyticsGetDistributionResponse> {
|
|
38
|
+
return unwrapAsync(analyticsGetDistribution(
|
|
39
|
+
this,
|
|
40
|
+
request,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Per-metric percentile rank for the logged-in user in the chosen scope
|
|
47
|
+
*/
|
|
48
|
+
async getMyPercentiles(
|
|
49
|
+
request: components.AnalyticsGetMyPercentilesRequestBody,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<operations.AnalyticsGetMyPercentilesResponse> {
|
|
52
|
+
return unwrapAsync(analyticsGetMyPercentiles(
|
|
53
|
+
this,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Daily quantiles over a window for a metric in a scope
|
|
61
|
+
*/
|
|
62
|
+
async getTrend(
|
|
63
|
+
request: components.AnalyticsGetTrendRequestBody,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<operations.AnalyticsGetTrendResponse> {
|
|
66
|
+
return unwrapAsync(analyticsGetTrend(
|
|
67
|
+
this,
|
|
68
|
+
request,
|
|
69
|
+
options,
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* List every analytics domain, metric, and scope the data-library can serve
|
|
75
|
+
*/
|
|
76
|
+
async listMetrics(
|
|
77
|
+
options?: RequestOptions,
|
|
78
|
+
): Promise<operations.AnalyticsListMetricsResponse> {
|
|
79
|
+
return unwrapAsync(analyticsListMetrics(
|
|
80
|
+
this,
|
|
81
|
+
options,
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
|
|
11
85
|
/**
|
|
12
86
|
* Track a frontend-only analytics event (profile view, search). Frontend API key + logged-in users only.
|
|
13
87
|
*/
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { Leaderboards } from "./leaderboards.js";
|
|
|
18
18
|
import { Location } from "./location.js";
|
|
19
19
|
import { Maintenance } from "./maintenance.js";
|
|
20
20
|
import { Search } from "./search.js";
|
|
21
|
+
import { Site } from "./site.js";
|
|
21
22
|
import { Staff } from "./staff.js";
|
|
22
23
|
import { Stats } from "./stats.js";
|
|
23
24
|
|
|
@@ -97,6 +98,11 @@ export class SteamSets extends ClientSDK {
|
|
|
97
98
|
return (this._search ??= new Search(this._options));
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
private _site?: Site;
|
|
102
|
+
get site(): Site {
|
|
103
|
+
return (this._site ??= new Site(this._options));
|
|
104
|
+
}
|
|
105
|
+
|
|
100
106
|
private _staff?: Staff;
|
|
101
107
|
get staff(): Staff {
|
|
102
108
|
return (this._staff ??= new Staff(this._options));
|
package/src/sdk/site.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { siteSubscribe, SubscribeAcceptEnum } from "../funcs/siteSubscribe.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export { SubscribeAcceptEnum } from "../funcs/siteSubscribe.js";
|
|
11
|
+
|
|
12
|
+
export class Site extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Server-sent-events stream of site-wide broadcasts (maintenance, announcements, etc).
|
|
15
|
+
*/
|
|
16
|
+
async subscribe(
|
|
17
|
+
options?: RequestOptions & { acceptHeaderOverride?: SubscribeAcceptEnum },
|
|
18
|
+
): Promise<operations.SiteSubscribeResponse> {
|
|
19
|
+
return unwrapAsync(siteSubscribe(
|
|
20
|
+
this,
|
|
21
|
+
options,
|
|
22
|
+
));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type Heartbeat = {
|
|
5
|
-
heartbeat: number;
|
|
6
|
-
};
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const Heartbeat$inboundSchema: z.ZodType<Heartbeat, z.ZodTypeDef, unknown>;
|
|
9
|
-
export declare function heartbeatFromJSON(jsonString: string): SafeParseResult<Heartbeat, SDKValidationError>;
|
|
10
|
-
//# sourceMappingURL=heartbeat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heartbeat.d.ts","sourceRoot":"","sources":["../../src/models/components/heartbeat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heartbeat.js","sourceRoot":"","sources":["../../src/models/components/heartbeat.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBH,8CAQC;AA1BD,0CAA4B;AAC5B,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH,SAAgB,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC"}
|