@steamsets/client-ts 0.3.1 → 0.4.0
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 +41 -0
- package/docs/sdks/account/README.md +133 -44
- package/docs/sdks/connection/README.md +7 -8
- package/docs/sdks/liveness/README.md +1 -2
- package/docs/sdks/session/README.md +14 -12
- package/docs/sdks/settings/README.md +102 -14
- package/docs/sdks/steamsets/README.md +1 -5
- package/funcs/accountAccountV1GetApps.d.ts +1 -1
- package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
- package/funcs/accountAccountV1GetApps.js +14 -3
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +14 -3
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionLogin.js +12 -5
- package/funcs/accountAccountV1SessionLogin.js.map +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.d.ts +13 -0
- package/funcs/accountAccountV1SettingsUploadImages.d.ts.map +1 -0
- package/funcs/accountAccountV1SettingsUploadImages.js +96 -0
- package/funcs/accountAccountV1SettingsUploadImages.js.map +1 -0
- package/funcs/sessionAccountV1SessionLogin.d.ts +1 -1
- package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +12 -5
- package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts +13 -0
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts.map +1 -0
- package/funcs/settingsAccountV1SettingsUploadImages.js +96 -0
- package/funcs/settingsAccountV1SettingsUploadImages.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/accountsearch.d.ts +29 -0
- package/models/components/accountsearch.d.ts.map +1 -0
- package/models/components/accountsearch.js +54 -0
- package/models/components/accountsearch.js.map +1 -0
- package/models/components/accountsearchidstruct.d.ts +33 -0
- package/models/components/accountsearchidstruct.d.ts.map +1 -0
- package/models/components/accountsearchidstruct.js +52 -0
- package/models/components/accountsearchidstruct.js.map +1 -0
- package/models/components/accountsearchvanitystruct.d.ts +65 -0
- package/models/components/accountsearchvanitystruct.d.ts.map +1 -0
- package/models/components/accountsearchvanitystruct.js +74 -0
- package/models/components/accountsearchvanitystruct.js.map +1 -0
- package/models/components/emailnotification.d.ts +8 -8
- package/models/components/emailnotification.d.ts.map +1 -1
- package/models/components/emailnotification.js +13 -13
- package/models/components/emailnotification.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/security.d.ts +2 -2
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -2
- package/models/components/security.js.map +1 -1
- package/models/components/v1uploadimagesrequestbody.d.ts +29 -0
- package/models/components/v1uploadimagesrequestbody.d.ts.map +1 -0
- package/models/components/v1uploadimagesrequestbody.js +51 -0
- package/models/components/v1uploadimagesrequestbody.js.map +1 -0
- package/models/components/v1uploaedimage.d.ts +74 -0
- package/models/components/v1uploaedimage.d.ts.map +1 -0
- package/models/components/v1uploaedimage.js +77 -0
- package/models/components/v1uploaedimage.js.map +1 -0
- package/models/operations/accountv1sessionlogin.d.ts +23 -0
- package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
- package/models/operations/accountv1sessionlogin.js +20 -1
- package/models/operations/accountv1sessionlogin.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +7 -3
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +13 -6
- package/sdk/account.js.map +1 -1
- package/sdk/session.d.ts +1 -1
- package/sdk/session.d.ts.map +1 -1
- package/sdk/session.js +2 -2
- package/sdk/session.js.map +1 -1
- package/sdk/settings.d.ts +4 -0
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +7 -0
- package/sdk/settings.js.map +1 -1
- package/src/funcs/accountAccountV1GetApps.ts +20 -2
- package/src/funcs/accountAccountV1GetBadges.ts +20 -2
- package/src/funcs/accountAccountV1SessionLogin.ts +13 -5
- package/src/funcs/accountAccountV1SettingsUploadImages.ts +130 -0
- package/src/funcs/sessionAccountV1SessionLogin.ts +13 -5
- package/src/funcs/settingsAccountV1SettingsUploadImages.ts +130 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountsearch.ts +58 -0
- package/src/models/components/accountsearchidstruct.ts +55 -0
- package/src/models/components/accountsearchvanitystruct.ts +85 -0
- package/src/models/components/emailnotification.ts +14 -12
- package/src/models/components/index.ts +5 -0
- package/src/models/components/security.ts +4 -4
- package/src/models/components/v1uploadimagesrequestbody.ts +54 -0
- package/src/models/components/v1uploaedimage.ts +87 -0
- package/src/models/operations/accountv1sessionlogin.ts +40 -0
- package/src/sdk/account.ts +20 -4
- package/src/sdk/session.ts +2 -1
- package/src/sdk/settings.ts +11 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
|
|
7
|
+
import * as m$ from "../lib/matchers.js";
|
|
8
|
+
import * as schemas$ from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
import * as z from "zod";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Multi Upload Endpoint for images
|
|
28
|
+
*/
|
|
29
|
+
export async function accountAccountV1SettingsUploadImages(
|
|
30
|
+
client$: SteamSetsCore,
|
|
31
|
+
request: components.V1UploadImagesRequestBody,
|
|
32
|
+
options?: RequestOptions
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
void,
|
|
36
|
+
| errors.ErrorModel
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
const input$ = request;
|
|
47
|
+
|
|
48
|
+
const parsed$ = schemas$.safeParse(
|
|
49
|
+
input$,
|
|
50
|
+
(value$) => components.V1UploadImagesRequestBody$outboundSchema.parse(value$),
|
|
51
|
+
"Input validation failed"
|
|
52
|
+
);
|
|
53
|
+
if (!parsed$.ok) {
|
|
54
|
+
return parsed$;
|
|
55
|
+
}
|
|
56
|
+
const payload$ = parsed$.value;
|
|
57
|
+
const body$ = encodeJSON$("body", payload$, { explode: true });
|
|
58
|
+
|
|
59
|
+
const path$ = pathToFunc("/account.v1.AccountService/UploadImages")();
|
|
60
|
+
|
|
61
|
+
const headers$ = new Headers({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/problem+json",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const session$ = await extractSecurity(client$.options$.session);
|
|
67
|
+
const security$ = session$ == null ? {} : { session: session$ };
|
|
68
|
+
const context = {
|
|
69
|
+
operationID: "account.v1.settings.upload-images",
|
|
70
|
+
oAuth2Scopes: [],
|
|
71
|
+
securitySource: client$.options$.session,
|
|
72
|
+
};
|
|
73
|
+
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
74
|
+
|
|
75
|
+
const requestRes = client$.createRequest$(
|
|
76
|
+
context,
|
|
77
|
+
{
|
|
78
|
+
security: securitySettings$,
|
|
79
|
+
method: "POST",
|
|
80
|
+
path: path$,
|
|
81
|
+
headers: headers$,
|
|
82
|
+
body: body$,
|
|
83
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
84
|
+
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
85
|
+
},
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
if (!requestRes.ok) {
|
|
89
|
+
return requestRes;
|
|
90
|
+
}
|
|
91
|
+
const request$ = requestRes.value;
|
|
92
|
+
|
|
93
|
+
const doResult = await client$.do$(request$, {
|
|
94
|
+
context,
|
|
95
|
+
errorCodes: ["422", "4XX", "500", "5XX"],
|
|
96
|
+
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
97
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return doResult;
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
|
|
104
|
+
const responseFields$ = {
|
|
105
|
+
HttpMeta: { Response: response, Request: request$ },
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const [result$] = await m$.match<
|
|
109
|
+
void,
|
|
110
|
+
| errors.ErrorModel
|
|
111
|
+
| SDKError
|
|
112
|
+
| SDKValidationError
|
|
113
|
+
| UnexpectedClientError
|
|
114
|
+
| InvalidRequestError
|
|
115
|
+
| RequestAbortedError
|
|
116
|
+
| RequestTimeoutError
|
|
117
|
+
| ConnectionError
|
|
118
|
+
>(
|
|
119
|
+
m$.nil(204, z.void()),
|
|
120
|
+
m$.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
|
|
121
|
+
ctype: "application/problem+json",
|
|
122
|
+
}),
|
|
123
|
+
m$.fail(["4XX", "5XX"])
|
|
124
|
+
)(response, { extraFields: responseFields$ });
|
|
125
|
+
if (!result$.ok) {
|
|
126
|
+
return result$;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return result$;
|
|
130
|
+
}
|
|
@@ -7,7 +7,7 @@ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib
|
|
|
7
7
|
import * as m$ from "../lib/matchers.js";
|
|
8
8
|
import * as schemas$ from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
-
import {
|
|
10
|
+
import { resolveSecurity, SecurityInput } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
12
|
import * as components from "../models/components/index.js";
|
|
13
13
|
import {
|
|
@@ -29,6 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
export async function sessionAccountV1SessionLogin(
|
|
30
30
|
client$: SteamSetsCore,
|
|
31
31
|
request: operations.AccountV1SessionLoginRequest,
|
|
32
|
+
security: operations.AccountV1SessionLoginSecurity,
|
|
32
33
|
options?: RequestOptions
|
|
33
34
|
): Promise<
|
|
34
35
|
Result<
|
|
@@ -71,14 +72,21 @@ export async function sessionAccountV1SessionLogin(
|
|
|
71
72
|
}),
|
|
72
73
|
});
|
|
73
74
|
|
|
74
|
-
const
|
|
75
|
-
|
|
75
|
+
const security$: SecurityInput[][] = [
|
|
76
|
+
[
|
|
77
|
+
{
|
|
78
|
+
fieldName: "Authorization",
|
|
79
|
+
type: "http:bearer",
|
|
80
|
+
value: security?.anonymous,
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
];
|
|
84
|
+
const securitySettings$ = resolveSecurity(...security$);
|
|
76
85
|
const context = {
|
|
77
86
|
operationID: "account.v1.session.login",
|
|
78
87
|
oAuth2Scopes: [],
|
|
79
|
-
securitySource:
|
|
88
|
+
securitySource: security$,
|
|
80
89
|
};
|
|
81
|
-
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
82
90
|
|
|
83
91
|
const requestRes = client$.createRequest$(
|
|
84
92
|
context,
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON as encodeJSON$ } from "../lib/encodings.js";
|
|
7
|
+
import * as m$ from "../lib/matchers.js";
|
|
8
|
+
import * as schemas$ from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import { Result } from "../types/fp.js";
|
|
24
|
+
import * as z from "zod";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Multi Upload Endpoint for images
|
|
28
|
+
*/
|
|
29
|
+
export async function settingsAccountV1SettingsUploadImages(
|
|
30
|
+
client$: SteamSetsCore,
|
|
31
|
+
request: components.V1UploadImagesRequestBody,
|
|
32
|
+
options?: RequestOptions
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
void,
|
|
36
|
+
| errors.ErrorModel
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
const input$ = request;
|
|
47
|
+
|
|
48
|
+
const parsed$ = schemas$.safeParse(
|
|
49
|
+
input$,
|
|
50
|
+
(value$) => components.V1UploadImagesRequestBody$outboundSchema.parse(value$),
|
|
51
|
+
"Input validation failed"
|
|
52
|
+
);
|
|
53
|
+
if (!parsed$.ok) {
|
|
54
|
+
return parsed$;
|
|
55
|
+
}
|
|
56
|
+
const payload$ = parsed$.value;
|
|
57
|
+
const body$ = encodeJSON$("body", payload$, { explode: true });
|
|
58
|
+
|
|
59
|
+
const path$ = pathToFunc("/account.v1.AccountService/UploadImages")();
|
|
60
|
+
|
|
61
|
+
const headers$ = new Headers({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/problem+json",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const session$ = await extractSecurity(client$.options$.session);
|
|
67
|
+
const security$ = session$ == null ? {} : { session: session$ };
|
|
68
|
+
const context = {
|
|
69
|
+
operationID: "account.v1.settings.upload-images",
|
|
70
|
+
oAuth2Scopes: [],
|
|
71
|
+
securitySource: client$.options$.session,
|
|
72
|
+
};
|
|
73
|
+
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
74
|
+
|
|
75
|
+
const requestRes = client$.createRequest$(
|
|
76
|
+
context,
|
|
77
|
+
{
|
|
78
|
+
security: securitySettings$,
|
|
79
|
+
method: "POST",
|
|
80
|
+
path: path$,
|
|
81
|
+
headers: headers$,
|
|
82
|
+
body: body$,
|
|
83
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
84
|
+
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
85
|
+
},
|
|
86
|
+
options
|
|
87
|
+
);
|
|
88
|
+
if (!requestRes.ok) {
|
|
89
|
+
return requestRes;
|
|
90
|
+
}
|
|
91
|
+
const request$ = requestRes.value;
|
|
92
|
+
|
|
93
|
+
const doResult = await client$.do$(request$, {
|
|
94
|
+
context,
|
|
95
|
+
errorCodes: ["422", "4XX", "500", "5XX"],
|
|
96
|
+
retryConfig: options?.retries || client$.options$.retryConfig,
|
|
97
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return doResult;
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
|
|
104
|
+
const responseFields$ = {
|
|
105
|
+
HttpMeta: { Response: response, Request: request$ },
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const [result$] = await m$.match<
|
|
109
|
+
void,
|
|
110
|
+
| errors.ErrorModel
|
|
111
|
+
| SDKError
|
|
112
|
+
| SDKValidationError
|
|
113
|
+
| UnexpectedClientError
|
|
114
|
+
| InvalidRequestError
|
|
115
|
+
| RequestAbortedError
|
|
116
|
+
| RequestTimeoutError
|
|
117
|
+
| ConnectionError
|
|
118
|
+
>(
|
|
119
|
+
m$.nil(204, z.void()),
|
|
120
|
+
m$.jsonErr([422, 500], errors.ErrorModel$inboundSchema, {
|
|
121
|
+
ctype: "application/problem+json",
|
|
122
|
+
}),
|
|
123
|
+
m$.fail(["4XX", "5XX"])
|
|
124
|
+
)(response, { extraFields: responseFields$ });
|
|
125
|
+
if (!result$.ok) {
|
|
126
|
+
return result$;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return result$;
|
|
130
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
52
52
|
export const SDK_METADATA = {
|
|
53
53
|
language: "typescript",
|
|
54
54
|
openapiDocVersion: "1.0.0",
|
|
55
|
-
sdkVersion: "0.
|
|
56
|
-
genVersion: "2.
|
|
57
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
55
|
+
sdkVersion: "0.4.0",
|
|
56
|
+
genVersion: "2.404.3",
|
|
57
|
+
userAgent: "speakeasy-sdk/typescript 0.4.0 2.404.3 1.0.0 @steamsets/client-ts",
|
|
58
58
|
} as const;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
AccountSearchIDStruct,
|
|
7
|
+
AccountSearchIDStruct$inboundSchema,
|
|
8
|
+
AccountSearchIDStruct$Outbound,
|
|
9
|
+
AccountSearchIDStruct$outboundSchema,
|
|
10
|
+
} from "./accountsearchidstruct.js";
|
|
11
|
+
import {
|
|
12
|
+
AccountSearchVanityStruct,
|
|
13
|
+
AccountSearchVanityStruct$inboundSchema,
|
|
14
|
+
AccountSearchVanityStruct$Outbound,
|
|
15
|
+
AccountSearchVanityStruct$outboundSchema,
|
|
16
|
+
} from "./accountsearchvanitystruct.js";
|
|
17
|
+
import * as z from "zod";
|
|
18
|
+
|
|
19
|
+
export type AccountSearch = {
|
|
20
|
+
id?: AccountSearchIDStruct | undefined;
|
|
21
|
+
vanity?: AccountSearchVanityStruct | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AccountSearch$inboundSchema: z.ZodType<AccountSearch, z.ZodTypeDef, unknown> =
|
|
26
|
+
z.object({
|
|
27
|
+
id: AccountSearchIDStruct$inboundSchema.optional(),
|
|
28
|
+
vanity: AccountSearchVanityStruct$inboundSchema.optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type AccountSearch$Outbound = {
|
|
33
|
+
id?: AccountSearchIDStruct$Outbound | undefined;
|
|
34
|
+
vanity?: AccountSearchVanityStruct$Outbound | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AccountSearch$outboundSchema: z.ZodType<
|
|
39
|
+
AccountSearch$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AccountSearch
|
|
42
|
+
> = z.object({
|
|
43
|
+
id: AccountSearchIDStruct$outboundSchema.optional(),
|
|
44
|
+
vanity: AccountSearchVanityStruct$outboundSchema.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 AccountSearch$ {
|
|
52
|
+
/** @deprecated use `AccountSearch$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = AccountSearch$inboundSchema;
|
|
54
|
+
/** @deprecated use `AccountSearch$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = AccountSearch$outboundSchema;
|
|
56
|
+
/** @deprecated use `AccountSearch$Outbound` instead. */
|
|
57
|
+
export type Outbound = AccountSearch$Outbound;
|
|
58
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AccountSearchIDStruct = {
|
|
8
|
+
/**
|
|
9
|
+
* Account ID to search for
|
|
10
|
+
*/
|
|
11
|
+
accountId?: number | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* SteamID64 to search for
|
|
14
|
+
*/
|
|
15
|
+
steamId64?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const AccountSearchIDStruct$inboundSchema: z.ZodType<
|
|
20
|
+
AccountSearchIDStruct,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
accountId: z.number().int().optional(),
|
|
25
|
+
steamId64: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type AccountSearchIDStruct$Outbound = {
|
|
30
|
+
accountId?: number | undefined;
|
|
31
|
+
steamId64?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const AccountSearchIDStruct$outboundSchema: z.ZodType<
|
|
36
|
+
AccountSearchIDStruct$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
AccountSearchIDStruct
|
|
39
|
+
> = z.object({
|
|
40
|
+
accountId: z.number().int().optional(),
|
|
41
|
+
steamId64: z.string().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace AccountSearchIDStruct$ {
|
|
49
|
+
/** @deprecated use `AccountSearchIDStruct$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = AccountSearchIDStruct$inboundSchema;
|
|
51
|
+
/** @deprecated use `AccountSearchIDStruct$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = AccountSearchIDStruct$outboundSchema;
|
|
53
|
+
/** @deprecated use `AccountSearchIDStruct$Outbound` instead. */
|
|
54
|
+
export type Outbound = AccountSearchIDStruct$Outbound;
|
|
55
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Which type of vanity to search for
|
|
10
|
+
*/
|
|
11
|
+
export const Type = {
|
|
12
|
+
Steam: "steam",
|
|
13
|
+
Internal: "internal",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Which type of vanity to search for
|
|
17
|
+
*/
|
|
18
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
19
|
+
|
|
20
|
+
export type AccountSearchVanityStruct = {
|
|
21
|
+
/**
|
|
22
|
+
* Which type of vanity to search for
|
|
23
|
+
*/
|
|
24
|
+
type?: Type | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Vanity to search for
|
|
27
|
+
*/
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(Type);
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> = Type$inboundSchema;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace Type$ {
|
|
42
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = Type$inboundSchema;
|
|
44
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = Type$outboundSchema;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const AccountSearchVanityStruct$inboundSchema: z.ZodType<
|
|
50
|
+
AccountSearchVanityStruct,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
unknown
|
|
53
|
+
> = z.object({
|
|
54
|
+
type: Type$inboundSchema.optional(),
|
|
55
|
+
value: z.string().optional(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type AccountSearchVanityStruct$Outbound = {
|
|
60
|
+
type?: string | undefined;
|
|
61
|
+
value?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const AccountSearchVanityStruct$outboundSchema: z.ZodType<
|
|
66
|
+
AccountSearchVanityStruct$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
AccountSearchVanityStruct
|
|
69
|
+
> = z.object({
|
|
70
|
+
type: Type$outboundSchema.optional(),
|
|
71
|
+
value: z.string().optional(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace AccountSearchVanityStruct$ {
|
|
79
|
+
/** @deprecated use `AccountSearchVanityStruct$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = AccountSearchVanityStruct$inboundSchema;
|
|
81
|
+
/** @deprecated use `AccountSearchVanityStruct$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = AccountSearchVanityStruct$outboundSchema;
|
|
83
|
+
/** @deprecated use `AccountSearchVanityStruct$Outbound` instead. */
|
|
84
|
+
export type Outbound = AccountSearchVanityStruct$Outbound;
|
|
85
|
+
}
|
|
@@ -8,13 +8,13 @@ import * as z from "zod";
|
|
|
8
8
|
/**
|
|
9
9
|
* The type of email notifications
|
|
10
10
|
*/
|
|
11
|
-
export const
|
|
11
|
+
export const EmailNotificationType = {
|
|
12
12
|
Login: "login",
|
|
13
13
|
} as const;
|
|
14
14
|
/**
|
|
15
15
|
* The type of email notifications
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
17
|
+
export type EmailNotificationType = ClosedEnum<typeof EmailNotificationType>;
|
|
18
18
|
|
|
19
19
|
export type EmailNotification = {
|
|
20
20
|
/**
|
|
@@ -24,31 +24,33 @@ export type EmailNotification = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The type of email notifications
|
|
26
26
|
*/
|
|
27
|
-
type:
|
|
27
|
+
type: EmailNotificationType;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
|
-
export const
|
|
31
|
+
export const EmailNotificationType$inboundSchema: z.ZodNativeEnum<typeof EmailNotificationType> =
|
|
32
|
+
z.nativeEnum(EmailNotificationType);
|
|
32
33
|
|
|
33
34
|
/** @internal */
|
|
34
|
-
export const
|
|
35
|
+
export const EmailNotificationType$outboundSchema: z.ZodNativeEnum<typeof EmailNotificationType> =
|
|
36
|
+
EmailNotificationType$inboundSchema;
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* @internal
|
|
38
40
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
41
|
*/
|
|
40
|
-
export namespace
|
|
41
|
-
/** @deprecated use `
|
|
42
|
-
export const inboundSchema =
|
|
43
|
-
/** @deprecated use `
|
|
44
|
-
export const outboundSchema =
|
|
42
|
+
export namespace EmailNotificationType$ {
|
|
43
|
+
/** @deprecated use `EmailNotificationType$inboundSchema` instead. */
|
|
44
|
+
export const inboundSchema = EmailNotificationType$inboundSchema;
|
|
45
|
+
/** @deprecated use `EmailNotificationType$outboundSchema` instead. */
|
|
46
|
+
export const outboundSchema = EmailNotificationType$outboundSchema;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
/** @internal */
|
|
48
50
|
export const EmailNotification$inboundSchema: z.ZodType<EmailNotification, z.ZodTypeDef, unknown> =
|
|
49
51
|
z.object({
|
|
50
52
|
enabled: z.boolean(),
|
|
51
|
-
type:
|
|
53
|
+
type: EmailNotificationType$inboundSchema,
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
/** @internal */
|
|
@@ -64,7 +66,7 @@ export const EmailNotification$outboundSchema: z.ZodType<
|
|
|
64
66
|
EmailNotification
|
|
65
67
|
> = z.object({
|
|
66
68
|
enabled: z.boolean(),
|
|
67
|
-
type:
|
|
69
|
+
type: EmailNotificationType$outboundSchema,
|
|
68
70
|
});
|
|
69
71
|
|
|
70
72
|
/**
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accountsearch.js";
|
|
6
|
+
export * from "./accountsearchidstruct.js";
|
|
7
|
+
export * from "./accountsearchvanitystruct.js";
|
|
5
8
|
export * from "./connection.js";
|
|
6
9
|
export * from "./emailnotification.js";
|
|
7
10
|
export * from "./errordetail.js";
|
|
@@ -35,6 +38,8 @@ export * from "./v1updateimagerequestbody.js";
|
|
|
35
38
|
export * from "./v1updateimageresponsebody.js";
|
|
36
39
|
export * from "./v1updatesettingsrequestbody.js";
|
|
37
40
|
export * from "./v1updatesettingsresponsebody.js";
|
|
41
|
+
export * from "./v1uploadimagesrequestbody.js";
|
|
42
|
+
export * from "./v1uploaedimage.js";
|
|
38
43
|
export * from "./v1verifyconnectionrequestbody.js";
|
|
39
44
|
export * from "./v1verifyconnectionresponsebody.js";
|
|
40
45
|
export * from "./v1verifyemailrequestbody.js";
|
|
@@ -5,23 +5,23 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
|
|
7
7
|
export type Security = {
|
|
8
|
-
session
|
|
8
|
+
session?: string | undefined;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
/** @internal */
|
|
12
12
|
export const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z.object({
|
|
13
|
-
session: z.string(),
|
|
13
|
+
session: z.string().optional(),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
/** @internal */
|
|
17
17
|
export type Security$Outbound = {
|
|
18
|
-
session
|
|
18
|
+
session?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
22
22
|
export const Security$outboundSchema: z.ZodType<Security$Outbound, z.ZodTypeDef, Security> =
|
|
23
23
|
z.object({
|
|
24
|
-
session: z.string(),
|
|
24
|
+
session: z.string().optional(),
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
V1UploaedImage,
|
|
7
|
+
V1UploaedImage$inboundSchema,
|
|
8
|
+
V1UploaedImage$Outbound,
|
|
9
|
+
V1UploaedImage$outboundSchema,
|
|
10
|
+
} from "./v1uploaedimage.js";
|
|
11
|
+
import * as z from "zod";
|
|
12
|
+
|
|
13
|
+
export type V1UploadImagesRequestBody = {
|
|
14
|
+
/**
|
|
15
|
+
* The images to upload
|
|
16
|
+
*/
|
|
17
|
+
images: Array<V1UploaedImage> | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const V1UploadImagesRequestBody$inboundSchema: z.ZodType<
|
|
22
|
+
V1UploadImagesRequestBody,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
images: z.nullable(z.array(V1UploaedImage$inboundSchema)),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type V1UploadImagesRequestBody$Outbound = {
|
|
31
|
+
images: Array<V1UploaedImage$Outbound> | null;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const V1UploadImagesRequestBody$outboundSchema: z.ZodType<
|
|
36
|
+
V1UploadImagesRequestBody$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
V1UploadImagesRequestBody
|
|
39
|
+
> = z.object({
|
|
40
|
+
images: z.nullable(z.array(V1UploaedImage$outboundSchema)),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace V1UploadImagesRequestBody$ {
|
|
48
|
+
/** @deprecated use `V1UploadImagesRequestBody$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = V1UploadImagesRequestBody$inboundSchema;
|
|
50
|
+
/** @deprecated use `V1UploadImagesRequestBody$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = V1UploadImagesRequestBody$outboundSchema;
|
|
52
|
+
/** @deprecated use `V1UploadImagesRequestBody$Outbound` instead. */
|
|
53
|
+
export type Outbound = V1UploadImagesRequestBody$Outbound;
|
|
54
|
+
}
|