@steamsets/client-ts 0.22.14 → 0.22.16
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 +2 -7
- package/docs/sdks/account/README.md +81 -2
- package/docs/sdks/admin/README.md +4 -91
- package/docs/sdks/app/README.md +2 -2
- package/funcs/{adminUpdateEvent.d.ts → accountAccountV1SettingsUpdateVanity.d.ts} +2 -2
- package/funcs/accountAccountV1SettingsUpdateVanity.d.ts.map +1 -0
- package/funcs/{adminUpdateEvent.js → accountAccountV1SettingsUpdateVanity.js} +9 -11
- package/funcs/accountAccountV1SettingsUpdateVanity.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -6
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -6
- package/models/components/index.js.map +1 -1
- package/models/components/v1leaderboardbadge.d.ts +0 -3
- package/models/components/v1leaderboardbadge.d.ts.map +1 -1
- package/models/components/v1leaderboardbadge.js +0 -3
- package/models/components/v1leaderboardbadge.js.map +1 -1
- package/models/components/v1updatevanityrequestbody.d.ts +32 -0
- package/models/components/v1updatevanityrequestbody.d.ts.map +1 -0
- package/models/components/{v1appeventmapping.js → v1updatevanityrequestbody.js} +19 -21
- package/models/components/v1updatevanityrequestbody.js.map +1 -0
- package/models/operations/accountv1settingsupdatevanity.d.ts +30 -0
- package/models/operations/accountv1settingsupdatevanity.d.ts.map +1 -0
- package/models/operations/{adminv1getevents.js → accountv1settingsupdatevanity.js} +17 -23
- package/models/operations/accountv1settingsupdatevanity.js.map +1 -0
- package/models/operations/index.d.ts +1 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -2
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.js.map +1 -1
- package/sdk/admin.d.ts +0 -4
- package/sdk/admin.d.ts.map +1 -1
- package/sdk/admin.js +0 -8
- package/sdk/admin.js.map +1 -1
- package/sdk/location.d.ts +6 -0
- package/sdk/location.d.ts.map +1 -1
- package/sdk/location.js +6 -0
- package/sdk/location.js.map +1 -1
- package/sdk/stats.d.ts +6 -0
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +6 -0
- package/sdk/stats.js.map +1 -1
- package/src/funcs/{adminUpdateEvent.ts → accountAccountV1SettingsUpdateVanity.ts} +13 -16
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -6
- package/src/models/components/v1leaderboardbadge.ts +0 -10
- package/src/models/components/v1updatevanityrequestbody.ts +69 -0
- package/src/models/operations/accountv1settingsupdatevanity.ts +81 -0
- package/src/models/operations/index.ts +1 -2
- package/src/sdk/account.ts +12 -0
- package/src/sdk/admin.ts +0 -18
- package/src/sdk/location.ts +6 -0
- package/src/sdk/stats.ts +6 -0
- package/docs/sdks/events/README.md +0 -79
- package/funcs/adminEventsGet.d.ts +0 -11
- package/funcs/adminEventsGet.d.ts.map +0 -1
- package/funcs/adminEventsGet.js +0 -107
- package/funcs/adminEventsGet.js.map +0 -1
- package/funcs/adminUpdateEvent.d.ts.map +0 -1
- package/funcs/adminUpdateEvent.js.map +0 -1
- package/models/components/v1admingeteventsresponsebody.d.ts +0 -35
- package/models/components/v1admingeteventsresponsebody.d.ts.map +0 -1
- package/models/components/v1admingeteventsresponsebody.js +0 -71
- package/models/components/v1admingeteventsresponsebody.js.map +0 -1
- package/models/components/v1adminupdateeventrequestbody.d.ts +0 -38
- package/models/components/v1adminupdateeventrequestbody.d.ts.map +0 -1
- package/models/components/v1adminupdateeventrequestbody.js +0 -62
- package/models/components/v1adminupdateeventrequestbody.js.map +0 -1
- package/models/components/v1adminupdateeventresponsebody.d.ts +0 -32
- package/models/components/v1adminupdateeventresponsebody.d.ts.map +0 -1
- package/models/components/v1adminupdateeventresponsebody.js +0 -68
- package/models/components/v1adminupdateeventresponsebody.js.map +0 -1
- package/models/components/v1appeventmapping.d.ts +0 -37
- package/models/components/v1appeventmapping.d.ts.map +0 -1
- package/models/components/v1appeventmapping.js.map +0 -1
- package/models/components/v1event.d.ts +0 -88
- package/models/components/v1event.d.ts.map +0 -1
- package/models/components/v1event.js +0 -82
- package/models/components/v1event.js.map +0 -1
- package/models/components/v1leaderboardbadgeevent.d.ts +0 -77
- package/models/components/v1leaderboardbadgeevent.d.ts.map +0 -1
- package/models/components/v1leaderboardbadgeevent.js +0 -77
- package/models/components/v1leaderboardbadgeevent.js.map +0 -1
- package/models/operations/adminv1getevents.d.ts +0 -35
- package/models/operations/adminv1getevents.d.ts.map +0 -1
- package/models/operations/adminv1getevents.js.map +0 -1
- package/models/operations/adminv1updateevent.d.ts +0 -35
- package/models/operations/adminv1updateevent.d.ts.map +0 -1
- package/models/operations/adminv1updateevent.js +0 -75
- package/models/operations/adminv1updateevent.js.map +0 -1
- package/sdk/events.d.ts +0 -6
- package/sdk/events.d.ts.map +0 -1
- package/sdk/events.js +0 -16
- package/sdk/events.js.map +0 -1
- package/src/funcs/adminEventsGet.ts +0 -160
- package/src/models/components/v1admingeteventsresponsebody.ts +0 -90
- package/src/models/components/v1adminupdateeventrequestbody.ts +0 -84
- package/src/models/components/v1adminupdateeventresponsebody.ts +0 -80
- package/src/models/components/v1appeventmapping.ts +0 -76
- package/src/models/components/v1event.ts +0 -145
- package/src/models/components/v1leaderboardbadgeevent.ts +0 -132
- package/src/models/operations/adminv1getevents.ts +0 -91
- package/src/models/operations/adminv1updateevent.ts +0 -91
- package/src/sdk/events.ts +0 -19
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type V1AdminUpdateEventResponseBody = {
|
|
12
|
-
/**
|
|
13
|
-
* A URL to the JSON Schema for this object.
|
|
14
|
-
*/
|
|
15
|
-
dollarSchema?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const V1AdminUpdateEventResponseBody$inboundSchema: z.ZodType<
|
|
20
|
-
V1AdminUpdateEventResponseBody,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
$schema: z.string().optional(),
|
|
25
|
-
}).transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
"$schema": "dollarSchema",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type V1AdminUpdateEventResponseBody$Outbound = {
|
|
33
|
-
$schema?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const V1AdminUpdateEventResponseBody$outboundSchema: z.ZodType<
|
|
38
|
-
V1AdminUpdateEventResponseBody$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
V1AdminUpdateEventResponseBody
|
|
41
|
-
> = z.object({
|
|
42
|
-
dollarSchema: z.string().optional(),
|
|
43
|
-
}).transform((v) => {
|
|
44
|
-
return remap$(v, {
|
|
45
|
-
dollarSchema: "$schema",
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace V1AdminUpdateEventResponseBody$ {
|
|
54
|
-
/** @deprecated use `V1AdminUpdateEventResponseBody$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = V1AdminUpdateEventResponseBody$inboundSchema;
|
|
56
|
-
/** @deprecated use `V1AdminUpdateEventResponseBody$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = V1AdminUpdateEventResponseBody$outboundSchema;
|
|
58
|
-
/** @deprecated use `V1AdminUpdateEventResponseBody$Outbound` instead. */
|
|
59
|
-
export type Outbound = V1AdminUpdateEventResponseBody$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function v1AdminUpdateEventResponseBodyToJSON(
|
|
63
|
-
v1AdminUpdateEventResponseBody: V1AdminUpdateEventResponseBody,
|
|
64
|
-
): string {
|
|
65
|
-
return JSON.stringify(
|
|
66
|
-
V1AdminUpdateEventResponseBody$outboundSchema.parse(
|
|
67
|
-
v1AdminUpdateEventResponseBody,
|
|
68
|
-
),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function v1AdminUpdateEventResponseBodyFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<V1AdminUpdateEventResponseBody, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => V1AdminUpdateEventResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'V1AdminUpdateEventResponseBody' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type V1AppEventMapping = {
|
|
11
|
-
/**
|
|
12
|
-
* The app id
|
|
13
|
-
*/
|
|
14
|
-
appId?: number | null | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* The steam id
|
|
17
|
-
*/
|
|
18
|
-
steamId?: number | null | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const V1AppEventMapping$inboundSchema: z.ZodType<
|
|
23
|
-
V1AppEventMapping,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.object({
|
|
27
|
-
appId: z.nullable(z.number().int()).optional(),
|
|
28
|
-
steamId: z.nullable(z.number().int()).optional(),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type V1AppEventMapping$Outbound = {
|
|
33
|
-
appId?: number | null | undefined;
|
|
34
|
-
steamId?: number | null | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const V1AppEventMapping$outboundSchema: z.ZodType<
|
|
39
|
-
V1AppEventMapping$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
V1AppEventMapping
|
|
42
|
-
> = z.object({
|
|
43
|
-
appId: z.nullable(z.number().int()).optional(),
|
|
44
|
-
steamId: z.nullable(z.number().int()).optional(),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace V1AppEventMapping$ {
|
|
52
|
-
/** @deprecated use `V1AppEventMapping$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = V1AppEventMapping$inboundSchema;
|
|
54
|
-
/** @deprecated use `V1AppEventMapping$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = V1AppEventMapping$outboundSchema;
|
|
56
|
-
/** @deprecated use `V1AppEventMapping$Outbound` instead. */
|
|
57
|
-
export type Outbound = V1AppEventMapping$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function v1AppEventMappingToJSON(
|
|
61
|
-
v1AppEventMapping: V1AppEventMapping,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
V1AppEventMapping$outboundSchema.parse(v1AppEventMapping),
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function v1AppEventMappingFromJSON(
|
|
69
|
-
jsonString: string,
|
|
70
|
-
): SafeParseResult<V1AppEventMapping, SDKValidationError> {
|
|
71
|
-
return safeParse(
|
|
72
|
-
jsonString,
|
|
73
|
-
(x) => V1AppEventMapping$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
-
`Failed to parse 'V1AppEventMapping' from JSON`,
|
|
75
|
-
);
|
|
76
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
V1AppEventMapping,
|
|
11
|
-
V1AppEventMapping$inboundSchema,
|
|
12
|
-
V1AppEventMapping$Outbound,
|
|
13
|
-
V1AppEventMapping$outboundSchema,
|
|
14
|
-
} from "./v1appeventmapping.js";
|
|
15
|
-
|
|
16
|
-
export type V1Event = {
|
|
17
|
-
/**
|
|
18
|
-
* The body image of the event
|
|
19
|
-
*/
|
|
20
|
-
bodyImage: string;
|
|
21
|
-
/**
|
|
22
|
-
* The number of downvotes the event has
|
|
23
|
-
*/
|
|
24
|
-
downvotes: number;
|
|
25
|
-
/**
|
|
26
|
-
* The end time of the event
|
|
27
|
-
*/
|
|
28
|
-
endsAt: Date;
|
|
29
|
-
/**
|
|
30
|
-
* Use this ID to make any changes to the event
|
|
31
|
-
*/
|
|
32
|
-
eventId: string;
|
|
33
|
-
/**
|
|
34
|
-
* The gid of the event
|
|
35
|
-
*/
|
|
36
|
-
gid: string;
|
|
37
|
-
/**
|
|
38
|
-
* The header image of the event
|
|
39
|
-
*/
|
|
40
|
-
headerImage: string;
|
|
41
|
-
/**
|
|
42
|
-
* The mappings of the event
|
|
43
|
-
*/
|
|
44
|
-
mappings: Array<V1AppEventMapping> | null;
|
|
45
|
-
/**
|
|
46
|
-
* The name of the event
|
|
47
|
-
*/
|
|
48
|
-
name: string;
|
|
49
|
-
/**
|
|
50
|
-
* The time the event was posted
|
|
51
|
-
*/
|
|
52
|
-
postedAt: Date;
|
|
53
|
-
/**
|
|
54
|
-
* The start time of the event
|
|
55
|
-
*/
|
|
56
|
-
startsAt: Date;
|
|
57
|
-
/**
|
|
58
|
-
* The title of the event
|
|
59
|
-
*/
|
|
60
|
-
title: string;
|
|
61
|
-
/**
|
|
62
|
-
* The number of upvotes the event has
|
|
63
|
-
*/
|
|
64
|
-
upvotes: number;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const V1Event$inboundSchema: z.ZodType<V1Event, z.ZodTypeDef, unknown> =
|
|
69
|
-
z.object({
|
|
70
|
-
bodyImage: z.string(),
|
|
71
|
-
downvotes: z.number().int(),
|
|
72
|
-
endsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
73
|
-
eventId: z.string(),
|
|
74
|
-
gid: z.string(),
|
|
75
|
-
headerImage: z.string(),
|
|
76
|
-
mappings: z.nullable(z.array(V1AppEventMapping$inboundSchema)),
|
|
77
|
-
name: z.string(),
|
|
78
|
-
postedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
79
|
-
startsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
80
|
-
title: z.string(),
|
|
81
|
-
upvotes: z.number().int(),
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
/** @internal */
|
|
85
|
-
export type V1Event$Outbound = {
|
|
86
|
-
bodyImage: string;
|
|
87
|
-
downvotes: number;
|
|
88
|
-
endsAt: string;
|
|
89
|
-
eventId: string;
|
|
90
|
-
gid: string;
|
|
91
|
-
headerImage: string;
|
|
92
|
-
mappings: Array<V1AppEventMapping$Outbound> | null;
|
|
93
|
-
name: string;
|
|
94
|
-
postedAt: string;
|
|
95
|
-
startsAt: string;
|
|
96
|
-
title: string;
|
|
97
|
-
upvotes: number;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const V1Event$outboundSchema: z.ZodType<
|
|
102
|
-
V1Event$Outbound,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
V1Event
|
|
105
|
-
> = z.object({
|
|
106
|
-
bodyImage: z.string(),
|
|
107
|
-
downvotes: z.number().int(),
|
|
108
|
-
endsAt: z.date().transform(v => v.toISOString()),
|
|
109
|
-
eventId: z.string(),
|
|
110
|
-
gid: z.string(),
|
|
111
|
-
headerImage: z.string(),
|
|
112
|
-
mappings: z.nullable(z.array(V1AppEventMapping$outboundSchema)),
|
|
113
|
-
name: z.string(),
|
|
114
|
-
postedAt: z.date().transform(v => v.toISOString()),
|
|
115
|
-
startsAt: z.date().transform(v => v.toISOString()),
|
|
116
|
-
title: z.string(),
|
|
117
|
-
upvotes: z.number().int(),
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export namespace V1Event$ {
|
|
125
|
-
/** @deprecated use `V1Event$inboundSchema` instead. */
|
|
126
|
-
export const inboundSchema = V1Event$inboundSchema;
|
|
127
|
-
/** @deprecated use `V1Event$outboundSchema` instead. */
|
|
128
|
-
export const outboundSchema = V1Event$outboundSchema;
|
|
129
|
-
/** @deprecated use `V1Event$Outbound` instead. */
|
|
130
|
-
export type Outbound = V1Event$Outbound;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export function v1EventToJSON(v1Event: V1Event): string {
|
|
134
|
-
return JSON.stringify(V1Event$outboundSchema.parse(v1Event));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export function v1EventFromJSON(
|
|
138
|
-
jsonString: string,
|
|
139
|
-
): SafeParseResult<V1Event, SDKValidationError> {
|
|
140
|
-
return safeParse(
|
|
141
|
-
jsonString,
|
|
142
|
-
(x) => V1Event$inboundSchema.parse(JSON.parse(x)),
|
|
143
|
-
`Failed to parse 'V1Event' from JSON`,
|
|
144
|
-
);
|
|
145
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type V1LeaderboardBadgeEvent = {
|
|
11
|
-
/**
|
|
12
|
-
* The body image of the event
|
|
13
|
-
*/
|
|
14
|
-
bodyImage: string;
|
|
15
|
-
/**
|
|
16
|
-
* The number of downvotes the event has
|
|
17
|
-
*/
|
|
18
|
-
downvotes: number;
|
|
19
|
-
/**
|
|
20
|
-
* The time the event ends
|
|
21
|
-
*/
|
|
22
|
-
endsAt: Date;
|
|
23
|
-
/**
|
|
24
|
-
* The gid of the event
|
|
25
|
-
*/
|
|
26
|
-
gid: string;
|
|
27
|
-
/**
|
|
28
|
-
* The header image of the event
|
|
29
|
-
*/
|
|
30
|
-
headerImage: string;
|
|
31
|
-
/**
|
|
32
|
-
* The name of the event
|
|
33
|
-
*/
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* The time the event was posted
|
|
37
|
-
*/
|
|
38
|
-
postedAt: Date;
|
|
39
|
-
/**
|
|
40
|
-
* The time the event starts
|
|
41
|
-
*/
|
|
42
|
-
startsAt: Date;
|
|
43
|
-
/**
|
|
44
|
-
* The title of the event
|
|
45
|
-
*/
|
|
46
|
-
title: string;
|
|
47
|
-
/**
|
|
48
|
-
* The number of upvotes the event has
|
|
49
|
-
*/
|
|
50
|
-
upvotes: number;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const V1LeaderboardBadgeEvent$inboundSchema: z.ZodType<
|
|
55
|
-
V1LeaderboardBadgeEvent,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
unknown
|
|
58
|
-
> = z.object({
|
|
59
|
-
bodyImage: z.string(),
|
|
60
|
-
downvotes: z.number().int(),
|
|
61
|
-
endsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
62
|
-
gid: z.string(),
|
|
63
|
-
headerImage: z.string(),
|
|
64
|
-
name: z.string(),
|
|
65
|
-
postedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
66
|
-
startsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
67
|
-
title: z.string(),
|
|
68
|
-
upvotes: z.number().int(),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export type V1LeaderboardBadgeEvent$Outbound = {
|
|
73
|
-
bodyImage: string;
|
|
74
|
-
downvotes: number;
|
|
75
|
-
endsAt: string;
|
|
76
|
-
gid: string;
|
|
77
|
-
headerImage: string;
|
|
78
|
-
name: string;
|
|
79
|
-
postedAt: string;
|
|
80
|
-
startsAt: string;
|
|
81
|
-
title: string;
|
|
82
|
-
upvotes: number;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const V1LeaderboardBadgeEvent$outboundSchema: z.ZodType<
|
|
87
|
-
V1LeaderboardBadgeEvent$Outbound,
|
|
88
|
-
z.ZodTypeDef,
|
|
89
|
-
V1LeaderboardBadgeEvent
|
|
90
|
-
> = z.object({
|
|
91
|
-
bodyImage: z.string(),
|
|
92
|
-
downvotes: z.number().int(),
|
|
93
|
-
endsAt: z.date().transform(v => v.toISOString()),
|
|
94
|
-
gid: z.string(),
|
|
95
|
-
headerImage: z.string(),
|
|
96
|
-
name: z.string(),
|
|
97
|
-
postedAt: z.date().transform(v => v.toISOString()),
|
|
98
|
-
startsAt: z.date().transform(v => v.toISOString()),
|
|
99
|
-
title: z.string(),
|
|
100
|
-
upvotes: z.number().int(),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
-
*/
|
|
107
|
-
export namespace V1LeaderboardBadgeEvent$ {
|
|
108
|
-
/** @deprecated use `V1LeaderboardBadgeEvent$inboundSchema` instead. */
|
|
109
|
-
export const inboundSchema = V1LeaderboardBadgeEvent$inboundSchema;
|
|
110
|
-
/** @deprecated use `V1LeaderboardBadgeEvent$outboundSchema` instead. */
|
|
111
|
-
export const outboundSchema = V1LeaderboardBadgeEvent$outboundSchema;
|
|
112
|
-
/** @deprecated use `V1LeaderboardBadgeEvent$Outbound` instead. */
|
|
113
|
-
export type Outbound = V1LeaderboardBadgeEvent$Outbound;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function v1LeaderboardBadgeEventToJSON(
|
|
117
|
-
v1LeaderboardBadgeEvent: V1LeaderboardBadgeEvent,
|
|
118
|
-
): string {
|
|
119
|
-
return JSON.stringify(
|
|
120
|
-
V1LeaderboardBadgeEvent$outboundSchema.parse(v1LeaderboardBadgeEvent),
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function v1LeaderboardBadgeEventFromJSON(
|
|
125
|
-
jsonString: string,
|
|
126
|
-
): SafeParseResult<V1LeaderboardBadgeEvent, SDKValidationError> {
|
|
127
|
-
return safeParse(
|
|
128
|
-
jsonString,
|
|
129
|
-
(x) => V1LeaderboardBadgeEvent$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
-
`Failed to parse 'V1LeaderboardBadgeEvent' from JSON`,
|
|
131
|
-
);
|
|
132
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type AdminV1GetEventsResponse = {
|
|
13
|
-
httpMeta: components.HTTPMetadata;
|
|
14
|
-
/**
|
|
15
|
-
* OK
|
|
16
|
-
*/
|
|
17
|
-
v1AdminGetEventsResponseBody?:
|
|
18
|
-
| components.V1AdminGetEventsResponseBody
|
|
19
|
-
| undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const AdminV1GetEventsResponse$inboundSchema: z.ZodType<
|
|
24
|
-
AdminV1GetEventsResponse,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
29
|
-
V1AdminGetEventsResponseBody: components
|
|
30
|
-
.V1AdminGetEventsResponseBody$inboundSchema.optional(),
|
|
31
|
-
}).transform((v) => {
|
|
32
|
-
return remap$(v, {
|
|
33
|
-
"HttpMeta": "httpMeta",
|
|
34
|
-
"V1AdminGetEventsResponseBody": "v1AdminGetEventsResponseBody",
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type AdminV1GetEventsResponse$Outbound = {
|
|
40
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
41
|
-
V1AdminGetEventsResponseBody?:
|
|
42
|
-
| components.V1AdminGetEventsResponseBody$Outbound
|
|
43
|
-
| undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const AdminV1GetEventsResponse$outboundSchema: z.ZodType<
|
|
48
|
-
AdminV1GetEventsResponse$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
AdminV1GetEventsResponse
|
|
51
|
-
> = z.object({
|
|
52
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
53
|
-
v1AdminGetEventsResponseBody: components
|
|
54
|
-
.V1AdminGetEventsResponseBody$outboundSchema.optional(),
|
|
55
|
-
}).transform((v) => {
|
|
56
|
-
return remap$(v, {
|
|
57
|
-
httpMeta: "HttpMeta",
|
|
58
|
-
v1AdminGetEventsResponseBody: "V1AdminGetEventsResponseBody",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
-
*/
|
|
66
|
-
export namespace AdminV1GetEventsResponse$ {
|
|
67
|
-
/** @deprecated use `AdminV1GetEventsResponse$inboundSchema` instead. */
|
|
68
|
-
export const inboundSchema = AdminV1GetEventsResponse$inboundSchema;
|
|
69
|
-
/** @deprecated use `AdminV1GetEventsResponse$outboundSchema` instead. */
|
|
70
|
-
export const outboundSchema = AdminV1GetEventsResponse$outboundSchema;
|
|
71
|
-
/** @deprecated use `AdminV1GetEventsResponse$Outbound` instead. */
|
|
72
|
-
export type Outbound = AdminV1GetEventsResponse$Outbound;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function adminV1GetEventsResponseToJSON(
|
|
76
|
-
adminV1GetEventsResponse: AdminV1GetEventsResponse,
|
|
77
|
-
): string {
|
|
78
|
-
return JSON.stringify(
|
|
79
|
-
AdminV1GetEventsResponse$outboundSchema.parse(adminV1GetEventsResponse),
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function adminV1GetEventsResponseFromJSON(
|
|
84
|
-
jsonString: string,
|
|
85
|
-
): SafeParseResult<AdminV1GetEventsResponse, SDKValidationError> {
|
|
86
|
-
return safeParse(
|
|
87
|
-
jsonString,
|
|
88
|
-
(x) => AdminV1GetEventsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
-
`Failed to parse 'AdminV1GetEventsResponse' from JSON`,
|
|
90
|
-
);
|
|
91
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type AdminV1UpdateEventResponse = {
|
|
13
|
-
httpMeta: components.HTTPMetadata;
|
|
14
|
-
/**
|
|
15
|
-
* OK
|
|
16
|
-
*/
|
|
17
|
-
v1AdminUpdateEventResponseBody?:
|
|
18
|
-
| components.V1AdminUpdateEventResponseBody
|
|
19
|
-
| undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const AdminV1UpdateEventResponse$inboundSchema: z.ZodType<
|
|
24
|
-
AdminV1UpdateEventResponse,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
29
|
-
V1AdminUpdateEventResponseBody: components
|
|
30
|
-
.V1AdminUpdateEventResponseBody$inboundSchema.optional(),
|
|
31
|
-
}).transform((v) => {
|
|
32
|
-
return remap$(v, {
|
|
33
|
-
"HttpMeta": "httpMeta",
|
|
34
|
-
"V1AdminUpdateEventResponseBody": "v1AdminUpdateEventResponseBody",
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export type AdminV1UpdateEventResponse$Outbound = {
|
|
40
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
41
|
-
V1AdminUpdateEventResponseBody?:
|
|
42
|
-
| components.V1AdminUpdateEventResponseBody$Outbound
|
|
43
|
-
| undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const AdminV1UpdateEventResponse$outboundSchema: z.ZodType<
|
|
48
|
-
AdminV1UpdateEventResponse$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
AdminV1UpdateEventResponse
|
|
51
|
-
> = z.object({
|
|
52
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
53
|
-
v1AdminUpdateEventResponseBody: components
|
|
54
|
-
.V1AdminUpdateEventResponseBody$outboundSchema.optional(),
|
|
55
|
-
}).transform((v) => {
|
|
56
|
-
return remap$(v, {
|
|
57
|
-
httpMeta: "HttpMeta",
|
|
58
|
-
v1AdminUpdateEventResponseBody: "V1AdminUpdateEventResponseBody",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
-
*/
|
|
66
|
-
export namespace AdminV1UpdateEventResponse$ {
|
|
67
|
-
/** @deprecated use `AdminV1UpdateEventResponse$inboundSchema` instead. */
|
|
68
|
-
export const inboundSchema = AdminV1UpdateEventResponse$inboundSchema;
|
|
69
|
-
/** @deprecated use `AdminV1UpdateEventResponse$outboundSchema` instead. */
|
|
70
|
-
export const outboundSchema = AdminV1UpdateEventResponse$outboundSchema;
|
|
71
|
-
/** @deprecated use `AdminV1UpdateEventResponse$Outbound` instead. */
|
|
72
|
-
export type Outbound = AdminV1UpdateEventResponse$Outbound;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function adminV1UpdateEventResponseToJSON(
|
|
76
|
-
adminV1UpdateEventResponse: AdminV1UpdateEventResponse,
|
|
77
|
-
): string {
|
|
78
|
-
return JSON.stringify(
|
|
79
|
-
AdminV1UpdateEventResponse$outboundSchema.parse(adminV1UpdateEventResponse),
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function adminV1UpdateEventResponseFromJSON(
|
|
84
|
-
jsonString: string,
|
|
85
|
-
): SafeParseResult<AdminV1UpdateEventResponse, SDKValidationError> {
|
|
86
|
-
return safeParse(
|
|
87
|
-
jsonString,
|
|
88
|
-
(x) => AdminV1UpdateEventResponse$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
-
`Failed to parse 'AdminV1UpdateEventResponse' from JSON`,
|
|
90
|
-
);
|
|
91
|
-
}
|
package/src/sdk/events.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { adminEventsGet } from "../funcs/adminEventsGet.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 class Events extends ClientSDK {
|
|
11
|
-
async get(
|
|
12
|
-
options?: RequestOptions,
|
|
13
|
-
): Promise<operations.AdminV1GetEventsResponse> {
|
|
14
|
-
return unwrapAsync(adminEventsGet(
|
|
15
|
-
this,
|
|
16
|
-
options,
|
|
17
|
-
));
|
|
18
|
-
}
|
|
19
|
-
}
|