@steamsets/client-ts 0.10.4 → 0.11.1
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 +9 -0
- package/docs/sdks/account/README.md +69 -69
- package/docs/sdks/app/README.md +6 -6
- package/docs/sdks/badge/README.md +371 -0
- package/docs/sdks/connection/README.md +12 -12
- package/docs/sdks/data/README.md +24 -24
- package/docs/sdks/leaderboard/README.md +3 -3
- package/docs/sdks/liveness/README.md +3 -3
- package/docs/sdks/location/README.md +3 -3
- package/docs/sdks/public/README.md +21 -21
- package/docs/sdks/session/README.md +12 -12
- package/docs/sdks/settings/README.md +21 -21
- package/funcs/badgeBadgeV1Search.d.ts +14 -0
- package/funcs/badgeBadgeV1Search.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Search.js +97 -0
- package/funcs/badgeBadgeV1Search.js.map +1 -0
- package/funcs/badgeBadgeV1Tag.d.ts +14 -0
- package/funcs/badgeBadgeV1Tag.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Tag.js +99 -0
- package/funcs/badgeBadgeV1Tag.js.map +1 -0
- package/funcs/badgeBadgeV1Tags.d.ts +14 -0
- package/funcs/badgeBadgeV1Tags.d.ts.map +1 -0
- package/funcs/badgeBadgeV1Tags.js +90 -0
- package/funcs/badgeBadgeV1Tags.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/accountinfobody.d.ts +10 -0
- package/models/components/accountinfobody.d.ts.map +1 -1
- package/models/components/accountinfobody.js +4 -0
- package/models/components/accountinfobody.js.map +1 -1
- package/models/components/badgesearch.d.ts +86 -0
- package/models/components/badgesearch.d.ts.map +1 -0
- package/models/components/badgesearch.js +70 -0
- package/models/components/badgesearch.js.map +1 -0
- package/models/components/colortag.d.ts +37 -0
- package/models/components/colortag.d.ts.map +1 -0
- package/models/components/colortag.js +83 -0
- package/models/components/colortag.js.map +1 -0
- package/models/components/designtag.d.ts +27 -0
- package/models/components/designtag.d.ts.map +1 -0
- package/models/components/designtag.js +63 -0
- package/models/components/designtag.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/role.d.ts +11 -0
- package/models/components/role.d.ts.map +1 -1
- package/models/components/role.js +4 -0
- package/models/components/role.js.map +1 -1
- package/models/components/setdesigntag.d.ts +33 -0
- package/models/components/setdesigntag.d.ts.map +1 -0
- package/models/components/setdesigntag.js +52 -0
- package/models/components/setdesigntag.js.map +1 -0
- package/models/components/v1badgetagrequestbody.d.ts +39 -0
- package/models/components/v1badgetagrequestbody.d.ts.map +1 -0
- package/models/components/v1badgetagrequestbody.js +55 -0
- package/models/components/v1badgetagrequestbody.js.map +1 -0
- package/models/components/v1badgetagresponsebody.d.ts +28 -0
- package/models/components/v1badgetagresponsebody.d.ts.map +1 -0
- package/models/components/v1badgetagresponsebody.js +59 -0
- package/models/components/v1badgetagresponsebody.js.map +1 -0
- package/models/components/v1badgetagsrequestbody.d.ts +21 -0
- package/models/components/v1badgetagsrequestbody.d.ts.map +1 -0
- package/models/components/v1badgetagsrequestbody.js +46 -0
- package/models/components/v1badgetagsrequestbody.js.map +1 -0
- package/models/components/v1badgetagsresponsebody.d.ts +40 -0
- package/models/components/v1badgetagsresponsebody.d.ts.map +1 -0
- package/models/components/v1badgetagsresponsebody.js +65 -0
- package/models/components/v1badgetagsresponsebody.js.map +1 -0
- package/models/errors/errormodel.d.ts +0 -6
- package/models/errors/errormodel.d.ts.map +1 -1
- package/models/errors/errormodel.js +0 -3
- package/models/errors/errormodel.js.map +1 -1
- package/models/operations/badgev1search.d.ts +26 -0
- package/models/operations/badgev1search.d.ts.map +1 -0
- package/models/operations/badgev1search.js +60 -0
- package/models/operations/badgev1search.js.map +1 -0
- package/models/operations/badgev1tag.d.ts +31 -0
- package/models/operations/badgev1tag.d.ts.map +1 -0
- package/models/operations/badgev1tag.js +66 -0
- package/models/operations/badgev1tag.js.map +1 -0
- package/models/operations/badgev1tags.d.ts +31 -0
- package/models/operations/badgev1tags.d.ts.map +1 -0
- package/models/operations/badgev1tags.js +66 -0
- package/models/operations/badgev1tags.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +18 -0
- package/sdk/badge.d.ts.map +1 -0
- package/sdk/badge.js +33 -0
- package/sdk/badge.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/badgeBadgeV1Search.ts +127 -0
- package/src/funcs/badgeBadgeV1Tag.ts +129 -0
- package/src/funcs/badgeBadgeV1Tags.ts +116 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountinfobody.ts +16 -0
- package/src/models/components/badgesearch.ts +118 -0
- package/src/models/components/colortag.ts +90 -0
- package/src/models/components/designtag.ts +60 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/role.ts +9 -0
- package/src/models/components/setdesigntag.ts +55 -0
- package/src/models/components/v1badgetagrequestbody.ts +68 -0
- package/src/models/components/v1badgetagresponsebody.ts +57 -0
- package/src/models/components/v1badgetagsrequestbody.ts +37 -0
- package/src/models/components/v1badgetagsresponsebody.ts +83 -0
- package/src/models/errors/errormodel.ts +0 -6
- package/src/models/operations/badgev1search.ts +55 -0
- package/src/models/operations/badgev1tag.ts +68 -0
- package/src/models/operations/badgev1tags.ts +68 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/badge.ts +55 -0
- package/src/sdk/sdk.ts +6 -0
package/sdk/sdk.js
CHANGED
|
@@ -7,6 +7,7 @@ exports.SteamSets = void 0;
|
|
|
7
7
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
8
8
|
const account_js_1 = require("./account.js");
|
|
9
9
|
const app_js_1 = require("./app.js");
|
|
10
|
+
const badge_js_1 = require("./badge.js");
|
|
10
11
|
const connection_js_1 = require("./connection.js");
|
|
11
12
|
const data_js_1 = require("./data.js");
|
|
12
13
|
const leaderboard_js_1 = require("./leaderboard.js");
|
|
@@ -44,6 +45,10 @@ class SteamSets extends sdks_js_1.ClientSDK {
|
|
|
44
45
|
var _a;
|
|
45
46
|
return ((_a = this._app) !== null && _a !== void 0 ? _a : (this._app = new app_js_1.App(this._options)));
|
|
46
47
|
}
|
|
48
|
+
get badge() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._badge) !== null && _a !== void 0 ? _a : (this._badge = new badge_js_1.Badge(this._options)));
|
|
51
|
+
}
|
|
47
52
|
get leaderboard() {
|
|
48
53
|
var _a;
|
|
49
54
|
return ((_a = this._leaderboard) !== null && _a !== void 0 ? _a : (this._leaderboard = new leaderboard_js_1.Leaderboard(this._options)));
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6CAAuC;AACvC,qCAA+B;AAC/B,mDAA6C;AAC7C,uCAAiC;AACjC,qDAA+C;AAC/C,+CAAyC;AACzC,+CAAyC;AACzC,2CAAqC;AACrC,6CAAuC;AACvC,+CAAyC;AAEzC,MAAa,SAAU,SAAQ,mBAAS;IAEtC,IAAI,OAAO;;QACT,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,UAAU;;QACZ,OAAO,OAAC,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,OAAO;;QACT,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,IAAI;;QACN,OAAO,OAAC,IAAI,CAAC,KAAK,oCAAV,IAAI,CAAC,KAAK,GAAK,IAAI,cAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClD,CAAC;IAGD,IAAI,MAAM;;QACR,OAAO,OAAC,IAAI,CAAC,OAAO,oCAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,GAAG;;QACL,OAAO,OAAC,IAAI,CAAC,IAAI,oCAAT,IAAI,CAAC,IAAI,GAAK,IAAI,YAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChD,CAAC;IAGD,IAAI,WAAW;;QACb,OAAO,OAAC,IAAI,CAAC,YAAY,oCAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,4BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6CAAuC;AACvC,qCAA+B;AAC/B,yCAAmC;AACnC,mDAA6C;AAC7C,uCAAiC;AACjC,qDAA+C;AAC/C,+CAAyC;AACzC,+CAAyC;AACzC,2CAAqC;AACrC,6CAAuC;AACvC,+CAAyC;AAEzC,MAAa,SAAU,SAAQ,mBAAS;IAEtC,IAAI,OAAO;;QACT,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,UAAU;;QACZ,OAAO,OAAC,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,OAAO;;QACT,OAAO,OAAC,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,IAAI;;QACN,OAAO,OAAC,IAAI,CAAC,KAAK,oCAAV,IAAI,CAAC,KAAK,GAAK,IAAI,cAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClD,CAAC;IAGD,IAAI,MAAM;;QACR,OAAO,OAAC,IAAI,CAAC,OAAO,oCAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,GAAG;;QACL,OAAO,OAAC,IAAI,CAAC,IAAI,oCAAT,IAAI,CAAC,IAAI,GAAK,IAAI,YAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChD,CAAC;IAGD,IAAI,KAAK;;QACP,OAAO,OAAC,IAAI,CAAC,MAAM,oCAAX,IAAI,CAAC,MAAM,GAAK,IAAI,gBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,WAAW;;QACb,OAAO,OAAC,IAAI,CAAC,YAAY,oCAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,4BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;CACF;AAvDD,8BAuDC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } 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 * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Search for badges
|
|
28
|
+
*/
|
|
29
|
+
export async function badgeBadgeV1Search(
|
|
30
|
+
client: SteamSetsCore,
|
|
31
|
+
request: components.BadgeSearch,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.BadgeV1SearchResponse,
|
|
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 = safeParse(
|
|
49
|
+
input,
|
|
50
|
+
(value) => components.BadgeSearch$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("/badge.v1.BadgeService/Search")();
|
|
60
|
+
|
|
61
|
+
const headers = new Headers({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/problem+json",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
67
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
68
|
+
const context = {
|
|
69
|
+
operationID: "badge.v1.search",
|
|
70
|
+
oAuth2Scopes: [],
|
|
71
|
+
securitySource: client._options.session,
|
|
72
|
+
};
|
|
73
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74
|
+
|
|
75
|
+
const requestRes = client._createRequest(context, {
|
|
76
|
+
security: requestSecurity,
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
|
|
89
|
+
const doResult = await client._do(req, {
|
|
90
|
+
context,
|
|
91
|
+
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig,
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
});
|
|
96
|
+
if (!doResult.ok) {
|
|
97
|
+
return doResult;
|
|
98
|
+
}
|
|
99
|
+
const response = doResult.value;
|
|
100
|
+
|
|
101
|
+
const responseFields = {
|
|
102
|
+
HttpMeta: { Response: response, Request: req },
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const [result] = await M.match<
|
|
106
|
+
operations.BadgeV1SearchResponse,
|
|
107
|
+
| errors.ErrorModel
|
|
108
|
+
| SDKError
|
|
109
|
+
| SDKValidationError
|
|
110
|
+
| UnexpectedClientError
|
|
111
|
+
| InvalidRequestError
|
|
112
|
+
| RequestAbortedError
|
|
113
|
+
| RequestTimeoutError
|
|
114
|
+
| ConnectionError
|
|
115
|
+
>(
|
|
116
|
+
M.nil(204, operations.BadgeV1SearchResponse$inboundSchema),
|
|
117
|
+
M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
118
|
+
ctype: "application/problem+json",
|
|
119
|
+
}),
|
|
120
|
+
M.fail(["4XX", "5XX"]),
|
|
121
|
+
)(response, req, { extraFields: responseFields });
|
|
122
|
+
if (!result.ok) {
|
|
123
|
+
return result;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return result;
|
|
127
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } 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 * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Tag a badge
|
|
28
|
+
*/
|
|
29
|
+
export async function badgeBadgeV1Tag(
|
|
30
|
+
client: SteamSetsCore,
|
|
31
|
+
request: components.V1BadgeTagRequestBody,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.BadgeV1TagResponse,
|
|
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 = safeParse(
|
|
49
|
+
input,
|
|
50
|
+
(value) => components.V1BadgeTagRequestBody$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("/badge.v1.BadgeService/Tag")();
|
|
60
|
+
|
|
61
|
+
const headers = new Headers({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/json",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
67
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
68
|
+
const context = {
|
|
69
|
+
operationID: "badge.v1.tag",
|
|
70
|
+
oAuth2Scopes: [],
|
|
71
|
+
securitySource: client._options.session,
|
|
72
|
+
};
|
|
73
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
74
|
+
|
|
75
|
+
const requestRes = client._createRequest(context, {
|
|
76
|
+
security: requestSecurity,
|
|
77
|
+
method: "POST",
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
|
|
89
|
+
const doResult = await client._do(req, {
|
|
90
|
+
context,
|
|
91
|
+
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig,
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
});
|
|
96
|
+
if (!doResult.ok) {
|
|
97
|
+
return doResult;
|
|
98
|
+
}
|
|
99
|
+
const response = doResult.value;
|
|
100
|
+
|
|
101
|
+
const responseFields = {
|
|
102
|
+
HttpMeta: { Response: response, Request: req },
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const [result] = await M.match<
|
|
106
|
+
operations.BadgeV1TagResponse,
|
|
107
|
+
| errors.ErrorModel
|
|
108
|
+
| SDKError
|
|
109
|
+
| SDKValidationError
|
|
110
|
+
| UnexpectedClientError
|
|
111
|
+
| InvalidRequestError
|
|
112
|
+
| RequestAbortedError
|
|
113
|
+
| RequestTimeoutError
|
|
114
|
+
| ConnectionError
|
|
115
|
+
>(
|
|
116
|
+
M.json(200, operations.BadgeV1TagResponse$inboundSchema, {
|
|
117
|
+
key: "V1BadgeTagResponseBody",
|
|
118
|
+
}),
|
|
119
|
+
M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
120
|
+
ctype: "application/problem+json",
|
|
121
|
+
}),
|
|
122
|
+
M.fail(["4XX", "5XX"]),
|
|
123
|
+
)(response, req, { extraFields: responseFields });
|
|
124
|
+
if (!result.ok) {
|
|
125
|
+
return result;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import * as M from "../lib/matchers.js";
|
|
7
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
|
+
import { pathToFunc } from "../lib/url.js";
|
|
10
|
+
import * as components from "../models/components/index.js";
|
|
11
|
+
import {
|
|
12
|
+
ConnectionError,
|
|
13
|
+
InvalidRequestError,
|
|
14
|
+
RequestAbortedError,
|
|
15
|
+
RequestTimeoutError,
|
|
16
|
+
UnexpectedClientError,
|
|
17
|
+
} from "../models/errors/httpclienterrors.js";
|
|
18
|
+
import * as errors from "../models/errors/index.js";
|
|
19
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
20
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
+
import * as operations from "../models/operations/index.js";
|
|
22
|
+
import { Result } from "../types/fp.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Get all availiable badge tags
|
|
26
|
+
*/
|
|
27
|
+
export async function badgeBadgeV1Tags(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1BadgeTagsRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.BadgeV1TagsResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| SDKError
|
|
36
|
+
| SDKValidationError
|
|
37
|
+
| UnexpectedClientError
|
|
38
|
+
| InvalidRequestError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
>
|
|
43
|
+
> {
|
|
44
|
+
const input = request;
|
|
45
|
+
void input; // request input is unused
|
|
46
|
+
|
|
47
|
+
const path = pathToFunc("/badge.v1.BadgeService/GetTags")();
|
|
48
|
+
|
|
49
|
+
const headers = new Headers({
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
Accept: "application/json",
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
55
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
56
|
+
const context = {
|
|
57
|
+
operationID: "badge.v1.tags",
|
|
58
|
+
oAuth2Scopes: [],
|
|
59
|
+
securitySource: client._options.session,
|
|
60
|
+
};
|
|
61
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62
|
+
|
|
63
|
+
const requestRes = client._createRequest(context, {
|
|
64
|
+
security: requestSecurity,
|
|
65
|
+
method: "POST",
|
|
66
|
+
path: path,
|
|
67
|
+
headers: headers,
|
|
68
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
69
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
70
|
+
}, options);
|
|
71
|
+
if (!requestRes.ok) {
|
|
72
|
+
return requestRes;
|
|
73
|
+
}
|
|
74
|
+
const req = requestRes.value;
|
|
75
|
+
|
|
76
|
+
const doResult = await client._do(req, {
|
|
77
|
+
context,
|
|
78
|
+
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
79
|
+
retryConfig: options?.retries
|
|
80
|
+
|| client._options.retryConfig,
|
|
81
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
82
|
+
});
|
|
83
|
+
if (!doResult.ok) {
|
|
84
|
+
return doResult;
|
|
85
|
+
}
|
|
86
|
+
const response = doResult.value;
|
|
87
|
+
|
|
88
|
+
const responseFields = {
|
|
89
|
+
HttpMeta: { Response: response, Request: req },
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const [result] = await M.match<
|
|
93
|
+
operations.BadgeV1TagsResponse,
|
|
94
|
+
| errors.ErrorModel
|
|
95
|
+
| SDKError
|
|
96
|
+
| SDKValidationError
|
|
97
|
+
| UnexpectedClientError
|
|
98
|
+
| InvalidRequestError
|
|
99
|
+
| RequestAbortedError
|
|
100
|
+
| RequestTimeoutError
|
|
101
|
+
| ConnectionError
|
|
102
|
+
>(
|
|
103
|
+
M.json(200, operations.BadgeV1TagsResponse$inboundSchema, {
|
|
104
|
+
key: "V1BadgeTagsResponseBody",
|
|
105
|
+
}),
|
|
106
|
+
M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
|
|
107
|
+
ctype: "application/problem+json",
|
|
108
|
+
}),
|
|
109
|
+
M.fail(["4XX", "5XX"]),
|
|
110
|
+
)(response, req, { extraFields: responseFields });
|
|
111
|
+
if (!result.ok) {
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return result;
|
|
116
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.
|
|
59
|
-
genVersion: "2.
|
|
58
|
+
sdkVersion: "0.11.1",
|
|
59
|
+
genVersion: "2.426.2",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.1 2.426.2 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -141,6 +141,10 @@ export type AccountInfoBody = {
|
|
|
141
141
|
*/
|
|
142
142
|
bans: number;
|
|
143
143
|
city?: Location | null | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* If the account is community banned or not
|
|
146
|
+
*/
|
|
147
|
+
communityBan: boolean;
|
|
144
148
|
/**
|
|
145
149
|
* The connections of the account
|
|
146
150
|
*/
|
|
@@ -194,6 +198,10 @@ export type AccountInfoBody = {
|
|
|
194
198
|
* The images of the account
|
|
195
199
|
*/
|
|
196
200
|
images: Array<Image> | null;
|
|
201
|
+
/**
|
|
202
|
+
* The Last date the account got a ban on
|
|
203
|
+
*/
|
|
204
|
+
lastBanDate: Date | null;
|
|
197
205
|
/**
|
|
198
206
|
* The level of the account
|
|
199
207
|
*/
|
|
@@ -360,6 +368,7 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
|
|
|
360
368
|
),
|
|
361
369
|
bans: z.number().int(),
|
|
362
370
|
city: z.nullable(Location$inboundSchema).optional(),
|
|
371
|
+
communityBan: z.boolean(),
|
|
363
372
|
connections: z.nullable(z.array(Connection$inboundSchema)),
|
|
364
373
|
country: z.nullable(Location$inboundSchema).optional(),
|
|
365
374
|
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -376,6 +385,9 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
|
|
|
376
385
|
gameBans: z.number().int(),
|
|
377
386
|
hidden: z.boolean(),
|
|
378
387
|
images: z.nullable(z.array(Image$inboundSchema)),
|
|
388
|
+
lastBanDate: z.nullable(
|
|
389
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
390
|
+
),
|
|
379
391
|
level: z.number().int(),
|
|
380
392
|
limitedApps: z.number().int(),
|
|
381
393
|
miniBackground: z.string(),
|
|
@@ -422,6 +434,7 @@ export type AccountInfoBody$Outbound = {
|
|
|
422
434
|
badgesUpdatedAt: string;
|
|
423
435
|
bans: number;
|
|
424
436
|
city?: Location$Outbound | null | undefined;
|
|
437
|
+
communityBan: boolean;
|
|
425
438
|
connections: Array<Connection$Outbound> | null;
|
|
426
439
|
country?: Location$Outbound | null | undefined;
|
|
427
440
|
createdAt: string;
|
|
@@ -436,6 +449,7 @@ export type AccountInfoBody$Outbound = {
|
|
|
436
449
|
gameBans: number;
|
|
437
450
|
hidden: boolean;
|
|
438
451
|
images: Array<Image$Outbound> | null;
|
|
452
|
+
lastBanDate: string | null;
|
|
439
453
|
level: number;
|
|
440
454
|
limitedApps: number;
|
|
441
455
|
miniBackground: string;
|
|
@@ -482,6 +496,7 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
|
482
496
|
badgesUpdatedAt: z.date().transform(v => v.toISOString()),
|
|
483
497
|
bans: z.number().int(),
|
|
484
498
|
city: z.nullable(Location$outboundSchema).optional(),
|
|
499
|
+
communityBan: z.boolean(),
|
|
485
500
|
connections: z.nullable(z.array(Connection$outboundSchema)),
|
|
486
501
|
country: z.nullable(Location$outboundSchema).optional(),
|
|
487
502
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
@@ -496,6 +511,7 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
|
|
|
496
511
|
gameBans: z.number().int(),
|
|
497
512
|
hidden: z.boolean(),
|
|
498
513
|
images: z.nullable(z.array(Image$outboundSchema)),
|
|
514
|
+
lastBanDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
499
515
|
level: z.number().int(),
|
|
500
516
|
limitedApps: z.number().int(),
|
|
501
517
|
miniBackground: z.string(),
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type BadgeSearch = {
|
|
8
|
+
/**
|
|
9
|
+
* The app id
|
|
10
|
+
*/
|
|
11
|
+
appId: number | null;
|
|
12
|
+
/**
|
|
13
|
+
* The app ids
|
|
14
|
+
*/
|
|
15
|
+
appIds: Array<number> | null;
|
|
16
|
+
/**
|
|
17
|
+
* The badge id
|
|
18
|
+
*/
|
|
19
|
+
badgeId: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* The badge ids
|
|
22
|
+
*/
|
|
23
|
+
badgeIds: Array<string> | null;
|
|
24
|
+
/**
|
|
25
|
+
* The color tags you want to search for
|
|
26
|
+
*/
|
|
27
|
+
colorSearch: Array<{ [k: string]: Array<string> }> | null;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to include/exclude event badges
|
|
30
|
+
*/
|
|
31
|
+
isEvent: boolean | null;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to include/exclude foil badges
|
|
34
|
+
*/
|
|
35
|
+
isFoil: boolean | null;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to include/exclude sale badges
|
|
38
|
+
*/
|
|
39
|
+
isSale: boolean | null;
|
|
40
|
+
/**
|
|
41
|
+
* The limit of results
|
|
42
|
+
*/
|
|
43
|
+
limit: number | null;
|
|
44
|
+
/**
|
|
45
|
+
* The offset of results
|
|
46
|
+
*/
|
|
47
|
+
offset: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* The tags you want to search for
|
|
50
|
+
*/
|
|
51
|
+
typeSearch: Array<{ [k: string]: Array<string> }> | null;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const BadgeSearch$inboundSchema: z.ZodType<
|
|
56
|
+
BadgeSearch,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
appId: z.nullable(z.number().int()),
|
|
61
|
+
appIds: z.nullable(z.array(z.number().int())),
|
|
62
|
+
badgeId: z.nullable(z.string()),
|
|
63
|
+
badgeIds: z.nullable(z.array(z.string())),
|
|
64
|
+
colorSearch: z.nullable(z.array(z.record(z.array(z.string())))),
|
|
65
|
+
isEvent: z.nullable(z.boolean()),
|
|
66
|
+
isFoil: z.nullable(z.boolean()),
|
|
67
|
+
isSale: z.nullable(z.boolean()),
|
|
68
|
+
limit: z.nullable(z.number().int()),
|
|
69
|
+
offset: z.nullable(z.number().int()),
|
|
70
|
+
typeSearch: z.nullable(z.array(z.record(z.array(z.string())))),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type BadgeSearch$Outbound = {
|
|
75
|
+
appId: number | null;
|
|
76
|
+
appIds: Array<number> | null;
|
|
77
|
+
badgeId: string | null;
|
|
78
|
+
badgeIds: Array<string> | null;
|
|
79
|
+
colorSearch: Array<{ [k: string]: Array<string> }> | null;
|
|
80
|
+
isEvent: boolean | null;
|
|
81
|
+
isFoil: boolean | null;
|
|
82
|
+
isSale: boolean | null;
|
|
83
|
+
limit: number | null;
|
|
84
|
+
offset: number | null;
|
|
85
|
+
typeSearch: Array<{ [k: string]: Array<string> }> | null;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const BadgeSearch$outboundSchema: z.ZodType<
|
|
90
|
+
BadgeSearch$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
BadgeSearch
|
|
93
|
+
> = z.object({
|
|
94
|
+
appId: z.nullable(z.number().int()),
|
|
95
|
+
appIds: z.nullable(z.array(z.number().int())),
|
|
96
|
+
badgeId: z.nullable(z.string()),
|
|
97
|
+
badgeIds: z.nullable(z.array(z.string())),
|
|
98
|
+
colorSearch: z.nullable(z.array(z.record(z.array(z.string())))),
|
|
99
|
+
isEvent: z.nullable(z.boolean()),
|
|
100
|
+
isFoil: z.nullable(z.boolean()),
|
|
101
|
+
isSale: z.nullable(z.boolean()),
|
|
102
|
+
limit: z.nullable(z.number().int()),
|
|
103
|
+
offset: z.nullable(z.number().int()),
|
|
104
|
+
typeSearch: z.nullable(z.array(z.record(z.array(z.string())))),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
+
*/
|
|
111
|
+
export namespace BadgeSearch$ {
|
|
112
|
+
/** @deprecated use `BadgeSearch$inboundSchema` instead. */
|
|
113
|
+
export const inboundSchema = BadgeSearch$inboundSchema;
|
|
114
|
+
/** @deprecated use `BadgeSearch$outboundSchema` instead. */
|
|
115
|
+
export const outboundSchema = BadgeSearch$outboundSchema;
|
|
116
|
+
/** @deprecated use `BadgeSearch$Outbound` instead. */
|
|
117
|
+
export type Outbound = BadgeSearch$Outbound;
|
|
118
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
|
|
8
|
+
export type ColorTag = {
|
|
9
|
+
gradient: string | null;
|
|
10
|
+
group: string;
|
|
11
|
+
groupOwner: boolean;
|
|
12
|
+
hex: string | null;
|
|
13
|
+
hsl: string;
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ColorTag$inboundSchema: z.ZodType<
|
|
20
|
+
ColorTag,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
Gradient: z.nullable(z.string()),
|
|
25
|
+
Group: z.string(),
|
|
26
|
+
GroupOwner: z.boolean(),
|
|
27
|
+
Hex: z.nullable(z.string()),
|
|
28
|
+
Hsl: z.string(),
|
|
29
|
+
ID: z.number().int(),
|
|
30
|
+
Name: z.string(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"Gradient": "gradient",
|
|
34
|
+
"Group": "group",
|
|
35
|
+
"GroupOwner": "groupOwner",
|
|
36
|
+
"Hex": "hex",
|
|
37
|
+
"Hsl": "hsl",
|
|
38
|
+
"ID": "id",
|
|
39
|
+
"Name": "name",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type ColorTag$Outbound = {
|
|
45
|
+
Gradient: string | null;
|
|
46
|
+
Group: string;
|
|
47
|
+
GroupOwner: boolean;
|
|
48
|
+
Hex: string | null;
|
|
49
|
+
Hsl: string;
|
|
50
|
+
ID: number;
|
|
51
|
+
Name: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ColorTag$outboundSchema: z.ZodType<
|
|
56
|
+
ColorTag$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
ColorTag
|
|
59
|
+
> = z.object({
|
|
60
|
+
gradient: z.nullable(z.string()),
|
|
61
|
+
group: z.string(),
|
|
62
|
+
groupOwner: z.boolean(),
|
|
63
|
+
hex: z.nullable(z.string()),
|
|
64
|
+
hsl: z.string(),
|
|
65
|
+
id: z.number().int(),
|
|
66
|
+
name: z.string(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
gradient: "Gradient",
|
|
70
|
+
group: "Group",
|
|
71
|
+
groupOwner: "GroupOwner",
|
|
72
|
+
hex: "Hex",
|
|
73
|
+
hsl: "Hsl",
|
|
74
|
+
id: "ID",
|
|
75
|
+
name: "Name",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace ColorTag$ {
|
|
84
|
+
/** @deprecated use `ColorTag$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = ColorTag$inboundSchema;
|
|
86
|
+
/** @deprecated use `ColorTag$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = ColorTag$outboundSchema;
|
|
88
|
+
/** @deprecated use `ColorTag$Outbound` instead. */
|
|
89
|
+
export type Outbound = ColorTag$Outbound;
|
|
90
|
+
}
|