@steamsets/client-ts 0.22.2 → 0.22.4
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 +4 -0
- package/docs/sdks/account/README.md +153 -0
- package/docs/sdks/leaderboard/README.md +4 -28
- package/funcs/accountAccountV1SessionLogout.d.ts +11 -0
- package/funcs/accountAccountV1SessionLogout.d.ts.map +1 -0
- package/funcs/accountAccountV1SessionLogout.js +105 -0
- package/funcs/accountAccountV1SessionLogout.js.map +1 -0
- package/funcs/accountAccountV1SessionRefresh.d.ts +11 -0
- package/funcs/accountAccountV1SessionRefresh.d.ts.map +1 -0
- package/funcs/accountAccountV1SessionRefresh.js +124 -0
- package/funcs/accountAccountV1SessionRefresh.js.map +1 -0
- package/funcs/leaderboardGetAccount.d.ts +1 -1
- package/funcs/leaderboardGetAccount.d.ts.map +1 -1
- package/funcs/leaderboardGetAccount.js +2 -4
- package/funcs/leaderboardGetAccount.js.map +1 -1
- package/funcs/leaderboardGetAccountMeta.d.ts +1 -1
- package/funcs/leaderboardGetAccountMeta.js +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/session.d.ts +5 -0
- package/models/components/session.d.ts.map +1 -1
- package/models/components/session.js +2 -0
- package/models/components/session.js.map +1 -1
- package/models/components/v1getsessionbody.d.ts +11 -1
- package/models/components/v1getsessionbody.d.ts.map +1 -1
- package/models/components/v1getsessionbody.js +4 -0
- package/models/components/v1getsessionbody.js.map +1 -1
- package/models/components/v1loginresponsebody.d.ts +15 -0
- package/models/components/v1loginresponsebody.d.ts.map +1 -1
- package/models/components/v1loginresponsebody.js +6 -0
- package/models/components/v1loginresponsebody.js.map +1 -1
- package/models/components/v1refreshsessionbody.d.ts +52 -0
- package/models/components/v1refreshsessionbody.d.ts.map +1 -0
- package/models/components/v1refreshsessionbody.js +76 -0
- package/models/components/v1refreshsessionbody.js.map +1 -0
- package/models/components/v1refreshsessionrequestbody.d.ts +32 -0
- package/models/components/v1refreshsessionrequestbody.d.ts.map +1 -0
- package/models/components/v1refreshsessionrequestbody.js +59 -0
- package/models/components/v1refreshsessionrequestbody.js.map +1 -0
- package/models/components/v1uploadedimage.d.ts +8 -8
- package/models/components/v1uploadedimage.d.ts.map +1 -1
- package/models/components/v1uploadedimage.js +13 -13
- package/models/components/v1uploadedimage.js.map +1 -1
- package/models/components/vanitystruct.d.ts +8 -8
- package/models/components/vanitystruct.d.ts.map +1 -1
- package/models/components/vanitystruct.js +13 -13
- package/models/components/vanitystruct.js.map +1 -1
- package/models/operations/accountv1sessionlogout.d.ts +30 -0
- package/models/operations/accountv1sessionlogout.d.ts.map +1 -0
- package/models/operations/accountv1sessionlogout.js +69 -0
- package/models/operations/accountv1sessionlogout.js.map +1 -0
- package/models/operations/accountv1sessionrefresh.d.ts +64 -0
- package/models/operations/accountv1sessionrefresh.d.ts.map +1 -0
- package/models/operations/accountv1sessionrefresh.js +118 -0
- package/models/operations/accountv1sessionrefresh.js.map +1 -0
- package/models/operations/index.d.ts +4 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/leaderboardv1getaccountleaderboard.d.ts +35 -0
- package/models/operations/leaderboardv1getaccountleaderboard.d.ts.map +1 -0
- package/models/operations/{leaderboardv1getaccount.js → leaderboardv1getaccountleaderboard.js} +17 -17
- package/models/operations/leaderboardv1getaccountleaderboard.js.map +1 -0
- package/models/operations/leaderboardv1getaccountleaderboardmeta.d.ts +35 -0
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.d.ts.map → leaderboardv1getaccountleaderboardmeta.d.ts.map} +1 -1
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.js → leaderboardv1getaccountleaderboardmeta.js} +17 -17
- package/models/operations/{leaderboardv1getleaderboardaccountmeta.js.map → leaderboardv1getaccountleaderboardmeta.js.map} +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +2 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +8 -0
- package/sdk/account.js.map +1 -1
- package/sdk/leaderboard.d.ts +2 -2
- package/sdk/leaderboard.d.ts.map +1 -1
- package/src/funcs/accountAccountV1SessionLogout.ts +158 -0
- package/src/funcs/accountAccountV1SessionRefresh.ts +190 -0
- package/src/funcs/leaderboardGetAccount.ts +9 -7
- package/src/funcs/leaderboardGetAccountMeta.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/models/components/index.ts +2 -0
- package/src/models/components/session.ts +7 -0
- package/src/models/components/v1getsessionbody.ts +15 -1
- package/src/models/components/v1loginresponsebody.ts +25 -0
- package/src/models/components/v1refreshsessionbody.ts +110 -0
- package/src/models/components/v1refreshsessionrequestbody.ts +71 -0
- package/src/models/components/v1uploadedimage.ts +16 -15
- package/src/models/components/vanitystruct.ts +15 -16
- package/src/models/operations/accountv1sessionlogout.ts +78 -0
- package/src/models/operations/accountv1sessionrefresh.ts +171 -0
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/leaderboardv1getaccountleaderboard.ts +101 -0
- package/src/models/operations/{leaderboardv1getleaderboardaccountmeta.ts → leaderboardv1getaccountleaderboardmeta.ts} +23 -23
- package/src/sdk/account.ts +22 -0
- package/src/sdk/leaderboard.ts +2 -2
- package/models/operations/leaderboardv1getaccount.d.ts +0 -35
- package/models/operations/leaderboardv1getaccount.d.ts.map +0 -1
- package/models/operations/leaderboardv1getaccount.js.map +0 -1
- package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +0 -35
- package/src/models/operations/leaderboardv1getaccount.ts +0 -93
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* The Image Type
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const V1UploadedImageType = {
|
|
15
15
|
Avatar: "avatar",
|
|
16
16
|
Background: "background",
|
|
17
17
|
MiniBackground: "mini_background",
|
|
@@ -21,7 +21,7 @@ export const Type = {
|
|
|
21
21
|
/**
|
|
22
22
|
* The Image Type
|
|
23
23
|
*/
|
|
24
|
-
export type
|
|
24
|
+
export type V1UploadedImageType = ClosedEnum<typeof V1UploadedImageType>;
|
|
25
25
|
|
|
26
26
|
export type V1UploadedImage = {
|
|
27
27
|
/**
|
|
@@ -31,27 +31,28 @@ export type V1UploadedImage = {
|
|
|
31
31
|
/**
|
|
32
32
|
* The Image Type
|
|
33
33
|
*/
|
|
34
|
-
type:
|
|
34
|
+
type: V1UploadedImageType;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
);
|
|
38
|
+
export const V1UploadedImageType$inboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof V1UploadedImageType
|
|
40
|
+
> = z.nativeEnum(V1UploadedImageType);
|
|
41
41
|
|
|
42
42
|
/** @internal */
|
|
43
|
-
export const
|
|
44
|
-
|
|
43
|
+
export const V1UploadedImageType$outboundSchema: z.ZodNativeEnum<
|
|
44
|
+
typeof V1UploadedImageType
|
|
45
|
+
> = V1UploadedImageType$inboundSchema;
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* @internal
|
|
48
49
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
50
|
*/
|
|
50
|
-
export namespace
|
|
51
|
-
/** @deprecated use `
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
/** @deprecated use `
|
|
54
|
-
export const outboundSchema =
|
|
51
|
+
export namespace V1UploadedImageType$ {
|
|
52
|
+
/** @deprecated use `V1UploadedImageType$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = V1UploadedImageType$inboundSchema;
|
|
54
|
+
/** @deprecated use `V1UploadedImageType$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = V1UploadedImageType$outboundSchema;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
/** @internal */
|
|
@@ -61,7 +62,7 @@ export const V1UploadedImage$inboundSchema: z.ZodType<
|
|
|
61
62
|
unknown
|
|
62
63
|
> = z.object({
|
|
63
64
|
data: z.string(),
|
|
64
|
-
type:
|
|
65
|
+
type: V1UploadedImageType$inboundSchema,
|
|
65
66
|
});
|
|
66
67
|
|
|
67
68
|
/** @internal */
|
|
@@ -77,7 +78,7 @@ export const V1UploadedImage$outboundSchema: z.ZodType<
|
|
|
77
78
|
V1UploadedImage
|
|
78
79
|
> = z.object({
|
|
79
80
|
data: z.string(),
|
|
80
|
-
type:
|
|
81
|
+
type: V1UploadedImageType$outboundSchema,
|
|
81
82
|
});
|
|
82
83
|
|
|
83
84
|
/**
|
|
@@ -11,20 +11,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
/**
|
|
12
12
|
* Which type of vanity to search for
|
|
13
13
|
*/
|
|
14
|
-
export const
|
|
14
|
+
export const Type = {
|
|
15
15
|
Steam: "steam",
|
|
16
16
|
Internal: "internal",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Which type of vanity to search for
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
22
22
|
|
|
23
23
|
export type VanityStruct = {
|
|
24
24
|
/**
|
|
25
25
|
* Which type of vanity to search for
|
|
26
26
|
*/
|
|
27
|
-
type:
|
|
27
|
+
type: Type;
|
|
28
28
|
/**
|
|
29
29
|
* Vanity to search for
|
|
30
30
|
*/
|
|
@@ -32,24 +32,23 @@ export type VanityStruct = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
36
|
+
Type,
|
|
37
|
+
);
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
> = VanityStructType$inboundSchema;
|
|
40
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
41
|
+
Type$inboundSchema;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
44
|
* @internal
|
|
46
45
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
46
|
*/
|
|
48
|
-
export namespace
|
|
49
|
-
/** @deprecated use `
|
|
50
|
-
export const inboundSchema =
|
|
51
|
-
/** @deprecated use `
|
|
52
|
-
export const outboundSchema =
|
|
47
|
+
export namespace Type$ {
|
|
48
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = Type$inboundSchema;
|
|
50
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = Type$outboundSchema;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
/** @internal */
|
|
@@ -58,7 +57,7 @@ export const VanityStruct$inboundSchema: z.ZodType<
|
|
|
58
57
|
z.ZodTypeDef,
|
|
59
58
|
unknown
|
|
60
59
|
> = z.object({
|
|
61
|
-
type:
|
|
60
|
+
type: Type$inboundSchema,
|
|
62
61
|
value: z.string(),
|
|
63
62
|
});
|
|
64
63
|
|
|
@@ -74,7 +73,7 @@ export const VanityStruct$outboundSchema: z.ZodType<
|
|
|
74
73
|
z.ZodTypeDef,
|
|
75
74
|
VanityStruct
|
|
76
75
|
> = z.object({
|
|
77
|
-
type:
|
|
76
|
+
type: Type$outboundSchema,
|
|
78
77
|
value: z.string(),
|
|
79
78
|
});
|
|
80
79
|
|
|
@@ -0,0 +1,78 @@
|
|
|
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 AccountV1SessionLogoutResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const AccountV1SessionLogoutResponse$inboundSchema: z.ZodType<
|
|
18
|
+
AccountV1SessionLogoutResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"HttpMeta": "httpMeta",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type AccountV1SessionLogoutResponse$Outbound = {
|
|
31
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const AccountV1SessionLogoutResponse$outboundSchema: z.ZodType<
|
|
36
|
+
AccountV1SessionLogoutResponse$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
AccountV1SessionLogoutResponse
|
|
39
|
+
> = z.object({
|
|
40
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
httpMeta: "HttpMeta",
|
|
44
|
+
});
|
|
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 AccountV1SessionLogoutResponse$ {
|
|
52
|
+
/** @deprecated use `AccountV1SessionLogoutResponse$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = AccountV1SessionLogoutResponse$inboundSchema;
|
|
54
|
+
/** @deprecated use `AccountV1SessionLogoutResponse$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = AccountV1SessionLogoutResponse$outboundSchema;
|
|
56
|
+
/** @deprecated use `AccountV1SessionLogoutResponse$Outbound` instead. */
|
|
57
|
+
export type Outbound = AccountV1SessionLogoutResponse$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function accountV1SessionLogoutResponseToJSON(
|
|
61
|
+
accountV1SessionLogoutResponse: AccountV1SessionLogoutResponse,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
AccountV1SessionLogoutResponse$outboundSchema.parse(
|
|
65
|
+
accountV1SessionLogoutResponse,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function accountV1SessionLogoutResponseFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<AccountV1SessionLogoutResponse, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => AccountV1SessionLogoutResponse$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'AccountV1SessionLogoutResponse' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 AccountV1SessionRefreshRequest = {
|
|
13
|
+
userAgent?: string | undefined;
|
|
14
|
+
xForwardedFor?: string | undefined;
|
|
15
|
+
v1RefreshSessionRequestBody: components.V1RefreshSessionRequestBody;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type AccountV1SessionRefreshResponse = {
|
|
19
|
+
httpMeta: components.HTTPMetadata;
|
|
20
|
+
/**
|
|
21
|
+
* OK
|
|
22
|
+
*/
|
|
23
|
+
v1RefreshSessionBody?: components.V1RefreshSessionBody | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AccountV1SessionRefreshRequest$inboundSchema: z.ZodType<
|
|
28
|
+
AccountV1SessionRefreshRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
"User-Agent": z.string().optional(),
|
|
33
|
+
"X-Forwarded-For": z.string().optional(),
|
|
34
|
+
V1RefreshSessionRequestBody:
|
|
35
|
+
components.V1RefreshSessionRequestBody$inboundSchema,
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"User-Agent": "userAgent",
|
|
39
|
+
"X-Forwarded-For": "xForwardedFor",
|
|
40
|
+
"V1RefreshSessionRequestBody": "v1RefreshSessionRequestBody",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type AccountV1SessionRefreshRequest$Outbound = {
|
|
46
|
+
"User-Agent"?: string | undefined;
|
|
47
|
+
"X-Forwarded-For"?: string | undefined;
|
|
48
|
+
V1RefreshSessionRequestBody: components.V1RefreshSessionRequestBody$Outbound;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AccountV1SessionRefreshRequest$outboundSchema: z.ZodType<
|
|
53
|
+
AccountV1SessionRefreshRequest$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
AccountV1SessionRefreshRequest
|
|
56
|
+
> = z.object({
|
|
57
|
+
userAgent: z.string().optional(),
|
|
58
|
+
xForwardedFor: z.string().optional(),
|
|
59
|
+
v1RefreshSessionRequestBody:
|
|
60
|
+
components.V1RefreshSessionRequestBody$outboundSchema,
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
userAgent: "User-Agent",
|
|
64
|
+
xForwardedFor: "X-Forwarded-For",
|
|
65
|
+
v1RefreshSessionRequestBody: "V1RefreshSessionRequestBody",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace AccountV1SessionRefreshRequest$ {
|
|
74
|
+
/** @deprecated use `AccountV1SessionRefreshRequest$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = AccountV1SessionRefreshRequest$inboundSchema;
|
|
76
|
+
/** @deprecated use `AccountV1SessionRefreshRequest$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = AccountV1SessionRefreshRequest$outboundSchema;
|
|
78
|
+
/** @deprecated use `AccountV1SessionRefreshRequest$Outbound` instead. */
|
|
79
|
+
export type Outbound = AccountV1SessionRefreshRequest$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function accountV1SessionRefreshRequestToJSON(
|
|
83
|
+
accountV1SessionRefreshRequest: AccountV1SessionRefreshRequest,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
AccountV1SessionRefreshRequest$outboundSchema.parse(
|
|
87
|
+
accountV1SessionRefreshRequest,
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function accountV1SessionRefreshRequestFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<AccountV1SessionRefreshRequest, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => AccountV1SessionRefreshRequest$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'AccountV1SessionRefreshRequest' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const AccountV1SessionRefreshResponse$inboundSchema: z.ZodType<
|
|
104
|
+
AccountV1SessionRefreshResponse,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
unknown
|
|
107
|
+
> = z.object({
|
|
108
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
109
|
+
V1RefreshSessionBody: components.V1RefreshSessionBody$inboundSchema
|
|
110
|
+
.optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
"HttpMeta": "httpMeta",
|
|
114
|
+
"V1RefreshSessionBody": "v1RefreshSessionBody",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export type AccountV1SessionRefreshResponse$Outbound = {
|
|
120
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
121
|
+
V1RefreshSessionBody?: components.V1RefreshSessionBody$Outbound | undefined;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const AccountV1SessionRefreshResponse$outboundSchema: z.ZodType<
|
|
126
|
+
AccountV1SessionRefreshResponse$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
AccountV1SessionRefreshResponse
|
|
129
|
+
> = z.object({
|
|
130
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
131
|
+
v1RefreshSessionBody: components.V1RefreshSessionBody$outboundSchema
|
|
132
|
+
.optional(),
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
httpMeta: "HttpMeta",
|
|
136
|
+
v1RefreshSessionBody: "V1RefreshSessionBody",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
export namespace AccountV1SessionRefreshResponse$ {
|
|
145
|
+
/** @deprecated use `AccountV1SessionRefreshResponse$inboundSchema` instead. */
|
|
146
|
+
export const inboundSchema = AccountV1SessionRefreshResponse$inboundSchema;
|
|
147
|
+
/** @deprecated use `AccountV1SessionRefreshResponse$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema = AccountV1SessionRefreshResponse$outboundSchema;
|
|
149
|
+
/** @deprecated use `AccountV1SessionRefreshResponse$Outbound` instead. */
|
|
150
|
+
export type Outbound = AccountV1SessionRefreshResponse$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function accountV1SessionRefreshResponseToJSON(
|
|
154
|
+
accountV1SessionRefreshResponse: AccountV1SessionRefreshResponse,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
AccountV1SessionRefreshResponse$outboundSchema.parse(
|
|
158
|
+
accountV1SessionRefreshResponse,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function accountV1SessionRefreshResponseFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<AccountV1SessionRefreshResponse, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) => AccountV1SessionRefreshResponse$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
+
`Failed to parse 'AccountV1SessionRefreshResponse' from JSON`,
|
|
170
|
+
);
|
|
171
|
+
}
|
|
@@ -27,6 +27,8 @@ export * from "./accountv1sessioncreate.js";
|
|
|
27
27
|
export * from "./accountv1sessiondelete.js";
|
|
28
28
|
export * from "./accountv1sessionget.js";
|
|
29
29
|
export * from "./accountv1sessionlogin.js";
|
|
30
|
+
export * from "./accountv1sessionlogout.js";
|
|
31
|
+
export * from "./accountv1sessionrefresh.js";
|
|
30
32
|
export * from "./accountv1settingsdeveloperappcreate.js";
|
|
31
33
|
export * from "./accountv1settingsdeveloperappdelete.js";
|
|
32
34
|
export * from "./accountv1settingsdeveloperappupdate.js";
|
|
@@ -48,10 +50,10 @@ export * from "./badgev1searchsuggest.js";
|
|
|
48
50
|
export * from "./badgev1tag.js";
|
|
49
51
|
export * from "./badgev1tags.js";
|
|
50
52
|
export * from "./badgev1tagssuggest.js";
|
|
51
|
-
export * from "./
|
|
53
|
+
export * from "./leaderboardv1getaccountleaderboard.js";
|
|
54
|
+
export * from "./leaderboardv1getaccountleaderboardmeta.js";
|
|
52
55
|
export * from "./leaderboardv1getbadges.js";
|
|
53
56
|
export * from "./leaderboardv1getgroup.js";
|
|
54
|
-
export * from "./leaderboardv1getleaderboardaccountmeta.js";
|
|
55
57
|
export * from "./liveness.js";
|
|
56
58
|
export * from "./locationv1locationget.js";
|
|
57
59
|
export * from "./statsv1statsget.js";
|
|
@@ -0,0 +1,101 @@
|
|
|
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 LeaderboardV1GetAccountLeaderboardResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1AccountLeaderboardResponseBody?:
|
|
18
|
+
| components.V1AccountLeaderboardResponseBody
|
|
19
|
+
| undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const LeaderboardV1GetAccountLeaderboardResponse$inboundSchema:
|
|
24
|
+
z.ZodType<LeaderboardV1GetAccountLeaderboardResponse, z.ZodTypeDef, unknown> =
|
|
25
|
+
z.object({
|
|
26
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
+
V1AccountLeaderboardResponseBody: components
|
|
28
|
+
.V1AccountLeaderboardResponseBody$inboundSchema.optional(),
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"HttpMeta": "httpMeta",
|
|
32
|
+
"V1AccountLeaderboardResponseBody": "v1AccountLeaderboardResponseBody",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type LeaderboardV1GetAccountLeaderboardResponse$Outbound = {
|
|
38
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
39
|
+
V1AccountLeaderboardResponseBody?:
|
|
40
|
+
| components.V1AccountLeaderboardResponseBody$Outbound
|
|
41
|
+
| undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const LeaderboardV1GetAccountLeaderboardResponse$outboundSchema:
|
|
46
|
+
z.ZodType<
|
|
47
|
+
LeaderboardV1GetAccountLeaderboardResponse$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
LeaderboardV1GetAccountLeaderboardResponse
|
|
50
|
+
> = z.object({
|
|
51
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
52
|
+
v1AccountLeaderboardResponseBody: components
|
|
53
|
+
.V1AccountLeaderboardResponseBody$outboundSchema.optional(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
httpMeta: "HttpMeta",
|
|
57
|
+
v1AccountLeaderboardResponseBody: "V1AccountLeaderboardResponseBody",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace LeaderboardV1GetAccountLeaderboardResponse$ {
|
|
66
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema =
|
|
68
|
+
LeaderboardV1GetAccountLeaderboardResponse$inboundSchema;
|
|
69
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema =
|
|
71
|
+
LeaderboardV1GetAccountLeaderboardResponse$outboundSchema;
|
|
72
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$Outbound` instead. */
|
|
73
|
+
export type Outbound = LeaderboardV1GetAccountLeaderboardResponse$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function leaderboardV1GetAccountLeaderboardResponseToJSON(
|
|
77
|
+
leaderboardV1GetAccountLeaderboardResponse:
|
|
78
|
+
LeaderboardV1GetAccountLeaderboardResponse,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
LeaderboardV1GetAccountLeaderboardResponse$outboundSchema.parse(
|
|
82
|
+
leaderboardV1GetAccountLeaderboardResponse,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function leaderboardV1GetAccountLeaderboardResponseFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<
|
|
90
|
+
LeaderboardV1GetAccountLeaderboardResponse,
|
|
91
|
+
SDKValidationError
|
|
92
|
+
> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) =>
|
|
96
|
+
LeaderboardV1GetAccountLeaderboardResponse$inboundSchema.parse(
|
|
97
|
+
JSON.parse(x),
|
|
98
|
+
),
|
|
99
|
+
`Failed to parse 'LeaderboardV1GetAccountLeaderboardResponse' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type LeaderboardV1GetAccountLeaderboardMetaResponse = {
|
|
13
13
|
httpMeta: components.HTTPMetadata;
|
|
14
14
|
/**
|
|
15
15
|
* OK
|
|
@@ -20,9 +20,9 @@ export type LeaderboardV1GetLeaderboardAccountMetaResponse = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
23
|
-
export const
|
|
23
|
+
export const LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema:
|
|
24
24
|
z.ZodType<
|
|
25
|
-
|
|
25
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
26
26
|
z.ZodTypeDef,
|
|
27
27
|
unknown
|
|
28
28
|
> = z.object({
|
|
@@ -38,7 +38,7 @@ export const LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema:
|
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
41
|
-
export type
|
|
41
|
+
export type LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound = {
|
|
42
42
|
HttpMeta: components.HTTPMetadata$Outbound;
|
|
43
43
|
V1LeaderboardAccountMetaResponseBody?:
|
|
44
44
|
| components.V1LeaderboardAccountMetaResponseBody$Outbound
|
|
@@ -46,11 +46,11 @@ export type LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound = {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** @internal */
|
|
49
|
-
export const
|
|
49
|
+
export const LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema:
|
|
50
50
|
z.ZodType<
|
|
51
|
-
|
|
51
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound,
|
|
52
52
|
z.ZodTypeDef,
|
|
53
|
-
|
|
53
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse
|
|
54
54
|
> = z.object({
|
|
55
55
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
56
56
|
v1LeaderboardAccountMetaResponseBody: components
|
|
@@ -67,41 +67,41 @@ export const LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema:
|
|
|
67
67
|
* @internal
|
|
68
68
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
69
|
*/
|
|
70
|
-
export namespace
|
|
71
|
-
/** @deprecated use `
|
|
70
|
+
export namespace LeaderboardV1GetAccountLeaderboardMetaResponse$ {
|
|
71
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema` instead. */
|
|
72
72
|
export const inboundSchema =
|
|
73
|
-
|
|
74
|
-
/** @deprecated use `
|
|
73
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema;
|
|
74
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema` instead. */
|
|
75
75
|
export const outboundSchema =
|
|
76
|
-
|
|
77
|
-
/** @deprecated use `
|
|
76
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema;
|
|
77
|
+
/** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound` instead. */
|
|
78
78
|
export type Outbound =
|
|
79
|
-
|
|
79
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export function
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
export function leaderboardV1GetAccountLeaderboardMetaResponseToJSON(
|
|
83
|
+
leaderboardV1GetAccountLeaderboardMetaResponse:
|
|
84
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
85
85
|
): string {
|
|
86
86
|
return JSON.stringify(
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema.parse(
|
|
88
|
+
leaderboardV1GetAccountLeaderboardMetaResponse,
|
|
89
89
|
),
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function
|
|
93
|
+
export function leaderboardV1GetAccountLeaderboardMetaResponseFromJSON(
|
|
94
94
|
jsonString: string,
|
|
95
95
|
): SafeParseResult<
|
|
96
|
-
|
|
96
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse,
|
|
97
97
|
SDKValidationError
|
|
98
98
|
> {
|
|
99
99
|
return safeParse(
|
|
100
100
|
jsonString,
|
|
101
101
|
(x) =>
|
|
102
|
-
|
|
102
|
+
LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema.parse(
|
|
103
103
|
JSON.parse(x),
|
|
104
104
|
),
|
|
105
|
-
`Failed to parse '
|
|
105
|
+
`Failed to parse 'LeaderboardV1GetAccountLeaderboardMetaResponse' from JSON`,
|
|
106
106
|
);
|
|
107
107
|
}
|
package/src/sdk/account.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { accountAccountV1SessionLogout } from "../funcs/accountAccountV1SessionLogout.js";
|
|
6
|
+
import { accountAccountV1SessionRefresh } from "../funcs/accountAccountV1SessionRefresh.js";
|
|
5
7
|
import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
|
|
6
8
|
import { accountConnect } from "../funcs/accountConnect.js";
|
|
7
9
|
import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
|
|
@@ -302,6 +304,15 @@ export class Account extends ClientSDK {
|
|
|
302
304
|
));
|
|
303
305
|
}
|
|
304
306
|
|
|
307
|
+
async accountV1SessionLogout(
|
|
308
|
+
options?: RequestOptions,
|
|
309
|
+
): Promise<operations.AccountV1SessionLogoutResponse> {
|
|
310
|
+
return unwrapAsync(accountAccountV1SessionLogout(
|
|
311
|
+
this,
|
|
312
|
+
options,
|
|
313
|
+
));
|
|
314
|
+
}
|
|
315
|
+
|
|
305
316
|
async queue(
|
|
306
317
|
request: components.V1AccountQueueRequestBody,
|
|
307
318
|
options?: RequestOptions,
|
|
@@ -324,6 +335,17 @@ export class Account extends ClientSDK {
|
|
|
324
335
|
));
|
|
325
336
|
}
|
|
326
337
|
|
|
338
|
+
async accountV1SessionRefresh(
|
|
339
|
+
request: operations.AccountV1SessionRefreshRequest,
|
|
340
|
+
options?: RequestOptions,
|
|
341
|
+
): Promise<operations.AccountV1SessionRefreshResponse> {
|
|
342
|
+
return unwrapAsync(accountAccountV1SessionRefresh(
|
|
343
|
+
this,
|
|
344
|
+
request,
|
|
345
|
+
options,
|
|
346
|
+
));
|
|
347
|
+
}
|
|
348
|
+
|
|
327
349
|
async updateImages(
|
|
328
350
|
request: components.V1UpdateImageRequestBody,
|
|
329
351
|
options?: RequestOptions,
|