@steamsets/client-ts 0.27.1 → 0.27.3
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 +0 -2
- package/docs/sdks/badge/README.md +0 -73
- package/funcs/locationGet.js +1 -0
- package/funcs/locationGet.js.map +1 -1
- package/funcs/staffList.js +1 -0
- package/funcs/staffList.js.map +1 -1
- package/funcs/statsGet.js +1 -0
- package/funcs/statsGet.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/badge.js +6 -6
- package/models/components/badge.js.map +1 -1
- package/models/components/badgevaluefilter.d.ts +57 -0
- package/models/components/badgevaluefilter.d.ts.map +1 -0
- package/models/components/badgevaluefilter.js +80 -0
- package/models/components/badgevaluefilter.js.map +1 -0
- package/models/components/index.d.ts +4 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -2
- package/models/components/index.js.map +1 -1
- package/models/components/range.d.ts +37 -0
- package/models/components/range.d.ts.map +1 -0
- package/models/components/range.js +62 -0
- package/models/components/range.js.map +1 -0
- package/models/components/v1accountlistappsrequestbody.d.ts +3 -0
- package/models/components/v1accountlistappsrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistappsrequestbody.js +3 -0
- package/models/components/v1accountlistappsrequestbody.js.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.d.ts +12 -0
- package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.js +6 -0
- package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
- package/models/components/v1appfilters.d.ts +45 -0
- package/models/components/v1appfilters.d.ts.map +1 -0
- package/models/components/v1appfilters.js +66 -0
- package/models/components/v1appfilters.js.map +1 -0
- package/models/components/v1badgefilters.d.ts +47 -0
- package/models/components/v1badgefilters.d.ts.map +1 -0
- package/models/components/v1badgefilters.js +68 -0
- package/models/components/v1badgefilters.js.map +1 -0
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/locationgetlocations.d.ts +6 -0
- package/models/operations/locationgetlocations.d.ts.map +1 -1
- package/models/operations/locationgetlocations.js +4 -0
- package/models/operations/locationgetlocations.js.map +1 -1
- package/models/operations/staffliststaff.d.ts +6 -0
- package/models/operations/staffliststaff.d.ts.map +1 -1
- package/models/operations/staffliststaff.js +4 -0
- package/models/operations/staffliststaff.js.map +1 -1
- package/models/operations/statsgetstats.d.ts +6 -0
- package/models/operations/statsgetstats.d.ts.map +1 -1
- package/models/operations/statsgetstats.js +4 -0
- package/models/operations/statsgetstats.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +0 -1
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +0 -4
- package/sdk/badge.js.map +1 -1
- package/src/funcs/locationGet.ts +1 -0
- package/src/funcs/staffList.ts +1 -0
- package/src/funcs/statsGet.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/badge.ts +6 -6
- package/src/models/components/badgevaluefilter.ts +98 -0
- package/src/models/components/index.ts +4 -2
- package/src/models/components/range.ts +69 -0
- package/src/models/components/v1accountlistappsrequestbody.ts +10 -0
- package/src/models/components/v1accountlistbadgesrequestbody.ts +26 -0
- package/src/models/components/v1appfilters.ts +89 -0
- package/src/models/components/v1badgefilters.ts +93 -0
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/locationgetlocations.ts +6 -0
- package/src/models/operations/staffliststaff.ts +6 -0
- package/src/models/operations/statsgetstats.ts +6 -0
- package/src/sdk/badge.ts +0 -12
- package/funcs/badgeSuggestSearch.d.ts +0 -13
- package/funcs/badgeSuggestSearch.d.ts.map +0 -1
- package/funcs/badgeSuggestSearch.js +0 -120
- package/funcs/badgeSuggestSearch.js.map +0 -1
- package/models/components/v1badgesuggestsearchbody.d.ts +0 -37
- package/models/components/v1badgesuggestsearchbody.d.ts.map +0 -1
- package/models/components/v1badgesuggestsearchbody.js +0 -70
- package/models/components/v1badgesuggestsearchbody.js.map +0 -1
- package/models/components/v1badgesuggestsearchrequestbody.d.ts +0 -32
- package/models/components/v1badgesuggestsearchrequestbody.d.ts.map +0 -1
- package/models/components/v1badgesuggestsearchrequestbody.js +0 -59
- package/models/components/v1badgesuggestsearchrequestbody.js.map +0 -1
- package/models/operations/badgesuggestsearch.d.ts +0 -35
- package/models/operations/badgesuggestsearch.d.ts.map +0 -1
- package/models/operations/badgesuggestsearch.js +0 -75
- package/models/operations/badgesuggestsearch.js.map +0 -1
- package/src/funcs/badgeSuggestSearch.ts +0 -183
- package/src/models/components/v1badgesuggestsearchbody.ts +0 -85
- package/src/models/components/v1badgesuggestsearchrequestbody.ts +0 -71
- package/src/models/operations/badgesuggestsearch.ts +0 -89
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type BadgeSuggestSearchResponse = {
|
|
6
|
-
httpMeta: components.HTTPMetadata;
|
|
7
|
-
/**
|
|
8
|
-
* OK
|
|
9
|
-
*/
|
|
10
|
-
v1BadgeSuggestSearchBody?: components.V1BadgeSuggestSearchBody | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const BadgeSuggestSearchResponse$inboundSchema: z.ZodType<BadgeSuggestSearchResponse, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type BadgeSuggestSearchResponse$Outbound = {
|
|
16
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
17
|
-
V1BadgeSuggestSearchBody?: components.V1BadgeSuggestSearchBody$Outbound | undefined;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const BadgeSuggestSearchResponse$outboundSchema: z.ZodType<BadgeSuggestSearchResponse$Outbound, z.ZodTypeDef, BadgeSuggestSearchResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace BadgeSuggestSearchResponse$ {
|
|
26
|
-
/** @deprecated use `BadgeSuggestSearchResponse$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<BadgeSuggestSearchResponse, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `BadgeSuggestSearchResponse$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<BadgeSuggestSearchResponse$Outbound, z.ZodTypeDef, BadgeSuggestSearchResponse>;
|
|
30
|
-
/** @deprecated use `BadgeSuggestSearchResponse$Outbound` instead. */
|
|
31
|
-
type Outbound = BadgeSuggestSearchResponse$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function badgeSuggestSearchResponseToJSON(badgeSuggestSearchResponse: BadgeSuggestSearchResponse): string;
|
|
34
|
-
export declare function badgeSuggestSearchResponseFromJSON(jsonString: string): SafeParseResult<BadgeSuggestSearchResponse, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=badgesuggestsearch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badgesuggestsearch.d.ts","sourceRoot":"","sources":["../../src/models/operations/badgesuggestsearch.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,wBAAwB,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,CAAC;CAC5E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,wBAAwB,CAAC,EACrB,UAAU,CAAC,iCAAiC,GAC5C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAU1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BadgeSuggestSearchResponse$ = exports.BadgeSuggestSearchResponse$outboundSchema = exports.BadgeSuggestSearchResponse$inboundSchema = void 0;
|
|
30
|
-
exports.badgeSuggestSearchResponseToJSON = badgeSuggestSearchResponseToJSON;
|
|
31
|
-
exports.badgeSuggestSearchResponseFromJSON = badgeSuggestSearchResponseFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const components = __importStar(require("../components/index.js"));
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.BadgeSuggestSearchResponse$inboundSchema = z.object({
|
|
38
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
39
|
-
V1BadgeSuggestSearchBody: components.V1BadgeSuggestSearchBody$inboundSchema
|
|
40
|
-
.optional(),
|
|
41
|
-
}).transform((v) => {
|
|
42
|
-
return (0, primitives_js_1.remap)(v, {
|
|
43
|
-
"HttpMeta": "httpMeta",
|
|
44
|
-
"V1BadgeSuggestSearchBody": "v1BadgeSuggestSearchBody",
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.BadgeSuggestSearchResponse$outboundSchema = z.object({
|
|
49
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
50
|
-
v1BadgeSuggestSearchBody: components.V1BadgeSuggestSearchBody$outboundSchema
|
|
51
|
-
.optional(),
|
|
52
|
-
}).transform((v) => {
|
|
53
|
-
return (0, primitives_js_1.remap)(v, {
|
|
54
|
-
httpMeta: "HttpMeta",
|
|
55
|
-
v1BadgeSuggestSearchBody: "V1BadgeSuggestSearchBody",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
var BadgeSuggestSearchResponse$;
|
|
63
|
-
(function (BadgeSuggestSearchResponse$) {
|
|
64
|
-
/** @deprecated use `BadgeSuggestSearchResponse$inboundSchema` instead. */
|
|
65
|
-
BadgeSuggestSearchResponse$.inboundSchema = exports.BadgeSuggestSearchResponse$inboundSchema;
|
|
66
|
-
/** @deprecated use `BadgeSuggestSearchResponse$outboundSchema` instead. */
|
|
67
|
-
BadgeSuggestSearchResponse$.outboundSchema = exports.BadgeSuggestSearchResponse$outboundSchema;
|
|
68
|
-
})(BadgeSuggestSearchResponse$ || (exports.BadgeSuggestSearchResponse$ = BadgeSuggestSearchResponse$ = {}));
|
|
69
|
-
function badgeSuggestSearchResponseToJSON(badgeSuggestSearchResponse) {
|
|
70
|
-
return JSON.stringify(exports.BadgeSuggestSearchResponse$outboundSchema.parse(badgeSuggestSearchResponse));
|
|
71
|
-
}
|
|
72
|
-
function badgeSuggestSearchResponseFromJSON(jsonString) {
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BadgeSuggestSearchResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BadgeSuggestSearchResponse' from JSON`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=badgesuggestsearch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badgesuggestsearch.js","sourceRoot":"","sources":["../../src/models/operations/badgesuggestsearch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,4EAMC;AAED,gFAQC;AApFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAWrD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,wBAAwB,EAAE,UAAU,CAAC,sCAAsC;SACxE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,0BAA0B,EAAE,0BAA0B;KACvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,wBAAwB,EAAE,UAAU,CAAC,uCAAuC;SACzE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,wBAAwB,EAAE,0BAA0B;KACrD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,183 +0,0 @@
|
|
|
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 { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import * as components from "../models/components/index.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import * as errors from "../models/errors/index.js";
|
|
22
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import { SteamSetsError } from "../models/errors/steamsetserror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
export function badgeSuggestSearch(
|
|
30
|
-
client: SteamSetsCore,
|
|
31
|
-
request: components.V1BadgeSuggestSearchRequestBody,
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): APIPromise<
|
|
34
|
-
Result<
|
|
35
|
-
operations.BadgeSuggestSearchResponse,
|
|
36
|
-
| errors.ErrorModel
|
|
37
|
-
| SteamSetsError
|
|
38
|
-
| ResponseValidationError
|
|
39
|
-
| ConnectionError
|
|
40
|
-
| RequestAbortedError
|
|
41
|
-
| RequestTimeoutError
|
|
42
|
-
| InvalidRequestError
|
|
43
|
-
| UnexpectedClientError
|
|
44
|
-
| SDKValidationError
|
|
45
|
-
>
|
|
46
|
-
> {
|
|
47
|
-
return new APIPromise($do(
|
|
48
|
-
client,
|
|
49
|
-
request,
|
|
50
|
-
options,
|
|
51
|
-
));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async function $do(
|
|
55
|
-
client: SteamSetsCore,
|
|
56
|
-
request: components.V1BadgeSuggestSearchRequestBody,
|
|
57
|
-
options?: RequestOptions,
|
|
58
|
-
): Promise<
|
|
59
|
-
[
|
|
60
|
-
Result<
|
|
61
|
-
operations.BadgeSuggestSearchResponse,
|
|
62
|
-
| errors.ErrorModel
|
|
63
|
-
| SteamSetsError
|
|
64
|
-
| ResponseValidationError
|
|
65
|
-
| ConnectionError
|
|
66
|
-
| RequestAbortedError
|
|
67
|
-
| RequestTimeoutError
|
|
68
|
-
| InvalidRequestError
|
|
69
|
-
| UnexpectedClientError
|
|
70
|
-
| SDKValidationError
|
|
71
|
-
>,
|
|
72
|
-
APICall,
|
|
73
|
-
]
|
|
74
|
-
> {
|
|
75
|
-
const parsed = safeParse(
|
|
76
|
-
request,
|
|
77
|
-
(value) =>
|
|
78
|
-
components.V1BadgeSuggestSearchRequestBody$outboundSchema.parse(value),
|
|
79
|
-
"Input validation failed",
|
|
80
|
-
);
|
|
81
|
-
if (!parsed.ok) {
|
|
82
|
-
return [parsed, { status: "invalid" }];
|
|
83
|
-
}
|
|
84
|
-
const payload = parsed.value;
|
|
85
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
86
|
-
|
|
87
|
-
const path = pathToFunc("/v1/badge.suggestSearch")();
|
|
88
|
-
|
|
89
|
-
const headers = new Headers(compactMap({
|
|
90
|
-
"Content-Type": "application/json",
|
|
91
|
-
Accept: "application/json",
|
|
92
|
-
}));
|
|
93
|
-
|
|
94
|
-
const secConfig = await extractSecurity(client._options.token);
|
|
95
|
-
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
96
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
97
|
-
|
|
98
|
-
const context = {
|
|
99
|
-
options: client._options,
|
|
100
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
101
|
-
operationID: "badge.suggestSearch",
|
|
102
|
-
oAuth2Scopes: [],
|
|
103
|
-
|
|
104
|
-
resolvedSecurity: requestSecurity,
|
|
105
|
-
|
|
106
|
-
securitySource: client._options.token,
|
|
107
|
-
retryConfig: options?.retries
|
|
108
|
-
|| client._options.retryConfig
|
|
109
|
-
|| {
|
|
110
|
-
strategy: "backoff",
|
|
111
|
-
backoff: {
|
|
112
|
-
initialInterval: 500,
|
|
113
|
-
maxInterval: 5000,
|
|
114
|
-
exponent: 1.5,
|
|
115
|
-
maxElapsedTime: 60000,
|
|
116
|
-
},
|
|
117
|
-
retryConnectionErrors: true,
|
|
118
|
-
}
|
|
119
|
-
|| { strategy: "none" },
|
|
120
|
-
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const requestRes = client._createRequest(context, {
|
|
124
|
-
security: requestSecurity,
|
|
125
|
-
method: "POST",
|
|
126
|
-
baseURL: options?.serverURL,
|
|
127
|
-
path: path,
|
|
128
|
-
headers: headers,
|
|
129
|
-
body: body,
|
|
130
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
131
|
-
userAgent: client._options.userAgent,
|
|
132
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
|
-
}, options);
|
|
134
|
-
if (!requestRes.ok) {
|
|
135
|
-
return [requestRes, { status: "invalid" }];
|
|
136
|
-
}
|
|
137
|
-
const req = requestRes.value;
|
|
138
|
-
|
|
139
|
-
const doResult = await client._do(req, {
|
|
140
|
-
context,
|
|
141
|
-
errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
|
|
142
|
-
retryConfig: context.retryConfig,
|
|
143
|
-
retryCodes: context.retryCodes,
|
|
144
|
-
});
|
|
145
|
-
if (!doResult.ok) {
|
|
146
|
-
return [doResult, { status: "request-error", request: req }];
|
|
147
|
-
}
|
|
148
|
-
const response = doResult.value;
|
|
149
|
-
|
|
150
|
-
const responseFields = {
|
|
151
|
-
HttpMeta: { Response: response, Request: req },
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
const [result] = await M.match<
|
|
155
|
-
operations.BadgeSuggestSearchResponse,
|
|
156
|
-
| errors.ErrorModel
|
|
157
|
-
| SteamSetsError
|
|
158
|
-
| ResponseValidationError
|
|
159
|
-
| ConnectionError
|
|
160
|
-
| RequestAbortedError
|
|
161
|
-
| RequestTimeoutError
|
|
162
|
-
| InvalidRequestError
|
|
163
|
-
| UnexpectedClientError
|
|
164
|
-
| SDKValidationError
|
|
165
|
-
>(
|
|
166
|
-
M.json(200, operations.BadgeSuggestSearchResponse$inboundSchema, {
|
|
167
|
-
key: "V1BadgeSuggestSearchBody",
|
|
168
|
-
}),
|
|
169
|
-
M.jsonErr([403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
170
|
-
ctype: "application/problem+json",
|
|
171
|
-
}),
|
|
172
|
-
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
173
|
-
ctype: "application/problem+json",
|
|
174
|
-
}),
|
|
175
|
-
M.fail("4XX"),
|
|
176
|
-
M.fail("5XX"),
|
|
177
|
-
)(response, req, { extraFields: responseFields });
|
|
178
|
-
if (!result.ok) {
|
|
179
|
-
return [result, { status: "complete", request: req, response }];
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return [result, { status: "complete", request: req, response }];
|
|
183
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type V1BadgeSuggestSearchBody = {
|
|
12
|
-
/**
|
|
13
|
-
* A URL to the JSON Schema for this object.
|
|
14
|
-
*/
|
|
15
|
-
dollarSchema?: string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* The filter to apply to the search
|
|
18
|
-
*/
|
|
19
|
-
filter: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const V1BadgeSuggestSearchBody$inboundSchema: z.ZodType<
|
|
24
|
-
V1BadgeSuggestSearchBody,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
$schema: z.string().optional(),
|
|
29
|
-
filter: z.string(),
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
"$schema": "dollarSchema",
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type V1BadgeSuggestSearchBody$Outbound = {
|
|
38
|
-
$schema?: string | undefined;
|
|
39
|
-
filter: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const V1BadgeSuggestSearchBody$outboundSchema: z.ZodType<
|
|
44
|
-
V1BadgeSuggestSearchBody$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
V1BadgeSuggestSearchBody
|
|
47
|
-
> = z.object({
|
|
48
|
-
dollarSchema: z.string().optional(),
|
|
49
|
-
filter: z.string(),
|
|
50
|
-
}).transform((v) => {
|
|
51
|
-
return remap$(v, {
|
|
52
|
-
dollarSchema: "$schema",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace V1BadgeSuggestSearchBody$ {
|
|
61
|
-
/** @deprecated use `V1BadgeSuggestSearchBody$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = V1BadgeSuggestSearchBody$inboundSchema;
|
|
63
|
-
/** @deprecated use `V1BadgeSuggestSearchBody$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = V1BadgeSuggestSearchBody$outboundSchema;
|
|
65
|
-
/** @deprecated use `V1BadgeSuggestSearchBody$Outbound` instead. */
|
|
66
|
-
export type Outbound = V1BadgeSuggestSearchBody$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function v1BadgeSuggestSearchBodyToJSON(
|
|
70
|
-
v1BadgeSuggestSearchBody: V1BadgeSuggestSearchBody,
|
|
71
|
-
): string {
|
|
72
|
-
return JSON.stringify(
|
|
73
|
-
V1BadgeSuggestSearchBody$outboundSchema.parse(v1BadgeSuggestSearchBody),
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function v1BadgeSuggestSearchBodyFromJSON(
|
|
78
|
-
jsonString: string,
|
|
79
|
-
): SafeParseResult<V1BadgeSuggestSearchBody, SDKValidationError> {
|
|
80
|
-
return safeParse(
|
|
81
|
-
jsonString,
|
|
82
|
-
(x) => V1BadgeSuggestSearchBody$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
-
`Failed to parse 'V1BadgeSuggestSearchBody' from JSON`,
|
|
84
|
-
);
|
|
85
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type V1BadgeSuggestSearchRequestBody = {
|
|
11
|
-
/**
|
|
12
|
-
* The query to suggest a search for
|
|
13
|
-
*/
|
|
14
|
-
query: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const V1BadgeSuggestSearchRequestBody$inboundSchema: z.ZodType<
|
|
19
|
-
V1BadgeSuggestSearchRequestBody,
|
|
20
|
-
z.ZodTypeDef,
|
|
21
|
-
unknown
|
|
22
|
-
> = z.object({
|
|
23
|
-
query: z.string(),
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export type V1BadgeSuggestSearchRequestBody$Outbound = {
|
|
28
|
-
query: string;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const V1BadgeSuggestSearchRequestBody$outboundSchema: z.ZodType<
|
|
33
|
-
V1BadgeSuggestSearchRequestBody$Outbound,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
V1BadgeSuggestSearchRequestBody
|
|
36
|
-
> = z.object({
|
|
37
|
-
query: z.string(),
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export namespace V1BadgeSuggestSearchRequestBody$ {
|
|
45
|
-
/** @deprecated use `V1BadgeSuggestSearchRequestBody$inboundSchema` instead. */
|
|
46
|
-
export const inboundSchema = V1BadgeSuggestSearchRequestBody$inboundSchema;
|
|
47
|
-
/** @deprecated use `V1BadgeSuggestSearchRequestBody$outboundSchema` instead. */
|
|
48
|
-
export const outboundSchema = V1BadgeSuggestSearchRequestBody$outboundSchema;
|
|
49
|
-
/** @deprecated use `V1BadgeSuggestSearchRequestBody$Outbound` instead. */
|
|
50
|
-
export type Outbound = V1BadgeSuggestSearchRequestBody$Outbound;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function v1BadgeSuggestSearchRequestBodyToJSON(
|
|
54
|
-
v1BadgeSuggestSearchRequestBody: V1BadgeSuggestSearchRequestBody,
|
|
55
|
-
): string {
|
|
56
|
-
return JSON.stringify(
|
|
57
|
-
V1BadgeSuggestSearchRequestBody$outboundSchema.parse(
|
|
58
|
-
v1BadgeSuggestSearchRequestBody,
|
|
59
|
-
),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function v1BadgeSuggestSearchRequestBodyFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<V1BadgeSuggestSearchRequestBody, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) => V1BadgeSuggestSearchRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
-
`Failed to parse 'V1BadgeSuggestSearchRequestBody' from JSON`,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type BadgeSuggestSearchResponse = {
|
|
13
|
-
httpMeta: components.HTTPMetadata;
|
|
14
|
-
/**
|
|
15
|
-
* OK
|
|
16
|
-
*/
|
|
17
|
-
v1BadgeSuggestSearchBody?: components.V1BadgeSuggestSearchBody | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const BadgeSuggestSearchResponse$inboundSchema: z.ZodType<
|
|
22
|
-
BadgeSuggestSearchResponse,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
-
V1BadgeSuggestSearchBody: components.V1BadgeSuggestSearchBody$inboundSchema
|
|
28
|
-
.optional(),
|
|
29
|
-
}).transform((v) => {
|
|
30
|
-
return remap$(v, {
|
|
31
|
-
"HttpMeta": "httpMeta",
|
|
32
|
-
"V1BadgeSuggestSearchBody": "v1BadgeSuggestSearchBody",
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type BadgeSuggestSearchResponse$Outbound = {
|
|
38
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
39
|
-
V1BadgeSuggestSearchBody?:
|
|
40
|
-
| components.V1BadgeSuggestSearchBody$Outbound
|
|
41
|
-
| undefined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const BadgeSuggestSearchResponse$outboundSchema: z.ZodType<
|
|
46
|
-
BadgeSuggestSearchResponse$Outbound,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
BadgeSuggestSearchResponse
|
|
49
|
-
> = z.object({
|
|
50
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
51
|
-
v1BadgeSuggestSearchBody: components.V1BadgeSuggestSearchBody$outboundSchema
|
|
52
|
-
.optional(),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
httpMeta: "HttpMeta",
|
|
56
|
-
v1BadgeSuggestSearchBody: "V1BadgeSuggestSearchBody",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace BadgeSuggestSearchResponse$ {
|
|
65
|
-
/** @deprecated use `BadgeSuggestSearchResponse$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = BadgeSuggestSearchResponse$inboundSchema;
|
|
67
|
-
/** @deprecated use `BadgeSuggestSearchResponse$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = BadgeSuggestSearchResponse$outboundSchema;
|
|
69
|
-
/** @deprecated use `BadgeSuggestSearchResponse$Outbound` instead. */
|
|
70
|
-
export type Outbound = BadgeSuggestSearchResponse$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function badgeSuggestSearchResponseToJSON(
|
|
74
|
-
badgeSuggestSearchResponse: BadgeSuggestSearchResponse,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
BadgeSuggestSearchResponse$outboundSchema.parse(badgeSuggestSearchResponse),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function badgeSuggestSearchResponseFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<BadgeSuggestSearchResponse, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => BadgeSuggestSearchResponse$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'BadgeSuggestSearchResponse' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|