@steamsets/client-ts 0.17.0 → 0.17.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 +6 -0
- package/docs/sdks/account/README.md +73 -0
- package/docs/sdks/data/README.md +73 -0
- package/docs/sdks/internal/README.md +73 -0
- package/funcs/accountAccountV1GetMeta.d.ts +11 -0
- package/funcs/accountAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/accountAccountV1GetMeta.js +113 -0
- package/funcs/accountAccountV1GetMeta.js.map +1 -0
- package/funcs/dataAccountV1GetMeta.d.ts +11 -0
- package/funcs/dataAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/dataAccountV1GetMeta.js +113 -0
- package/funcs/dataAccountV1GetMeta.js.map +1 -0
- package/funcs/internalAccountV1GetMeta.d.ts +11 -0
- package/funcs/internalAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/internalAccountV1GetMeta.js +113 -0
- package/funcs/internalAccountV1GetMeta.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountmetaresponsebody.d.ts +36 -0
- package/models/components/v1accountmetaresponsebody.d.ts.map +1 -0
- package/models/components/v1accountmetaresponsebody.js +74 -0
- package/models/components/v1accountmetaresponsebody.js.map +1 -0
- package/models/operations/accountv1getmeta.d.ts +35 -0
- package/models/operations/accountv1getmeta.d.ts.map +1 -0
- package/models/operations/accountv1getmeta.js +75 -0
- package/models/operations/accountv1getmeta.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +1 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +4 -0
- package/sdk/data.js.map +1 -1
- package/sdk/internal.d.ts +1 -0
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +4 -0
- package/sdk/internal.js.map +1 -1
- package/src/funcs/accountAccountV1GetMeta.ts +149 -0
- package/src/funcs/dataAccountV1GetMeta.ts +149 -0
- package/src/funcs/internalAccountV1GetMeta.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1accountmetaresponsebody.ts +88 -0
- package/src/models/operations/accountv1getmeta.ts +89 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +12 -0
- package/src/sdk/data.ts +12 -0
- package/src/sdk/internal.ts +12 -0
package/sdk/internal.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Internal = void 0;
|
|
7
|
+
const internalAccountV1GetMeta_js_1 = require("../funcs/internalAccountV1GetMeta.js");
|
|
7
8
|
const internalCheck_js_1 = require("../funcs/internalCheck.js");
|
|
8
9
|
const internalCreateDeveloperApp_js_1 = require("../funcs/internalCreateDeveloperApp.js");
|
|
9
10
|
const internalDeleteDeveloperApp_js_1 = require("../funcs/internalDeleteDeveloperApp.js");
|
|
@@ -28,6 +29,9 @@ class Internal extends sdks_js_1.ClientSDK {
|
|
|
28
29
|
async updateApp(request, options) {
|
|
29
30
|
return (0, fp_js_1.unwrapAsync)((0, internalUpdateApp_js_1.internalUpdateApp)(this, request, options));
|
|
30
31
|
}
|
|
32
|
+
async accountV1GetMeta(request, options) {
|
|
33
|
+
return (0, fp_js_1.unwrapAsync)((0, internalAccountV1GetMeta_js_1.internalAccountV1GetMeta)(this, request, options));
|
|
34
|
+
}
|
|
31
35
|
async getStaff(options) {
|
|
32
36
|
return (0, fp_js_1.unwrapAsync)((0, internalGetStaff_js_1.internalGetStaff)(this, options));
|
|
33
37
|
}
|
package/sdk/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/sdk/internal.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAC1D,0FAAoF;AACpF,0FAAoF;AACpF,8EAAwE;AACxE,0EAAoE;AACpE,sEAAgE;AAChE,oEAA8D;AAC9D,wEAAkE;AAClE,8EAAwE;AACxE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC,KAAK,CAAC,kBAAkB,CACtB,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS,CACb,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAiC,EACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CACT,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/sdk/internal.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sFAAgF;AAChF,gEAA0D;AAC1D,0FAAoF;AACpF,0FAAoF;AACpF,8EAAwE;AACxE,0EAAoE;AACpE,sEAAgE;AAChE,oEAA8D;AAC9D,wEAAkE;AAClE,8EAAwE;AACxE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC,KAAK,CAAC,kBAAkB,CACtB,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS,CACb,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAiC,EACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAiC,EACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,KAAK,CACT,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA9GD,4BA8GC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function accountAccountV1GetMeta(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.AccountSearch,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1GetMetaResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) => components.AccountSearch$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
55
|
+
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/GetMeta")();
|
|
57
|
+
|
|
58
|
+
const headers = new Headers(compactMap({
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
64
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
|
|
67
|
+
const context = {
|
|
68
|
+
operationID: "account.v1.getMeta",
|
|
69
|
+
oAuth2Scopes: [],
|
|
70
|
+
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
|
|
73
|
+
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 5000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 60000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "POST",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return requestRes;
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return doResult;
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [result] = await M.match<
|
|
121
|
+
operations.AccountV1GetMetaResponse,
|
|
122
|
+
| errors.ErrorModel
|
|
123
|
+
| errors.ErrorModel
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
|
|
133
|
+
key: "V1AccountMetaResponseBody",
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
136
|
+
ctype: "application/problem+json",
|
|
137
|
+
}),
|
|
138
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
139
|
+
ctype: "application/problem+json",
|
|
140
|
+
}),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function dataAccountV1GetMeta(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.AccountSearch,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1GetMetaResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) => components.AccountSearch$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
55
|
+
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/GetMeta")();
|
|
57
|
+
|
|
58
|
+
const headers = new Headers(compactMap({
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
64
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
|
|
67
|
+
const context = {
|
|
68
|
+
operationID: "account.v1.getMeta",
|
|
69
|
+
oAuth2Scopes: [],
|
|
70
|
+
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
|
|
73
|
+
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 5000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 60000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "POST",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return requestRes;
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return doResult;
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [result] = await M.match<
|
|
121
|
+
operations.AccountV1GetMetaResponse,
|
|
122
|
+
| errors.ErrorModel
|
|
123
|
+
| errors.ErrorModel
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
|
|
133
|
+
key: "V1AccountMetaResponseBody",
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
136
|
+
ctype: "application/problem+json",
|
|
137
|
+
}),
|
|
138
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
139
|
+
ctype: "application/problem+json",
|
|
140
|
+
}),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
export async function internalAccountV1GetMeta(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.AccountSearch,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1GetMetaResponse,
|
|
34
|
+
| errors.ErrorModel
|
|
35
|
+
| errors.ErrorModel
|
|
36
|
+
| SDKError
|
|
37
|
+
| SDKValidationError
|
|
38
|
+
| UnexpectedClientError
|
|
39
|
+
| InvalidRequestError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
>
|
|
44
|
+
> {
|
|
45
|
+
const parsed = safeParse(
|
|
46
|
+
request,
|
|
47
|
+
(value) => components.AccountSearch$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
55
|
+
|
|
56
|
+
const path = pathToFunc("/account.v1.AccountService/GetMeta")();
|
|
57
|
+
|
|
58
|
+
const headers = new Headers(compactMap({
|
|
59
|
+
"Content-Type": "application/json",
|
|
60
|
+
Accept: "application/json",
|
|
61
|
+
}));
|
|
62
|
+
|
|
63
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
64
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
65
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
66
|
+
|
|
67
|
+
const context = {
|
|
68
|
+
operationID: "account.v1.getMeta",
|
|
69
|
+
oAuth2Scopes: [],
|
|
70
|
+
|
|
71
|
+
resolvedSecurity: requestSecurity,
|
|
72
|
+
|
|
73
|
+
securitySource: client._options.token,
|
|
74
|
+
retryConfig: options?.retries
|
|
75
|
+
|| client._options.retryConfig
|
|
76
|
+
|| {
|
|
77
|
+
strategy: "backoff",
|
|
78
|
+
backoff: {
|
|
79
|
+
initialInterval: 500,
|
|
80
|
+
maxInterval: 5000,
|
|
81
|
+
exponent: 1.5,
|
|
82
|
+
maxElapsedTime: 60000,
|
|
83
|
+
},
|
|
84
|
+
retryConnectionErrors: true,
|
|
85
|
+
}
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "POST",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return requestRes;
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return doResult;
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const [result] = await M.match<
|
|
121
|
+
operations.AccountV1GetMetaResponse,
|
|
122
|
+
| errors.ErrorModel
|
|
123
|
+
| errors.ErrorModel
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
|
|
133
|
+
key: "V1AccountMetaResponseBody",
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
136
|
+
ctype: "application/problem+json",
|
|
137
|
+
}),
|
|
138
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
139
|
+
ctype: "application/problem+json",
|
|
140
|
+
}),
|
|
141
|
+
M.fail("4XX"),
|
|
142
|
+
M.fail("5XX"),
|
|
143
|
+
)(response, req, { extraFields: responseFields });
|
|
144
|
+
if (!result.ok) {
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return result;
|
|
149
|
+
}
|
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.17.
|
|
59
|
-
genVersion: "2.
|
|
58
|
+
sdkVersion: "0.17.1",
|
|
59
|
+
genVersion: "2.506.0",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.17.
|
|
61
|
+
"speakeasy-sdk/typescript 0.17.1 2.506.0 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -58,6 +58,7 @@ export * from "./v1accountleaderboardhistoryresponsebody.js";
|
|
|
58
58
|
export * from "./v1accountleaderboardrequestbody.js";
|
|
59
59
|
export * from "./v1accountleaderboardresponsebody.js";
|
|
60
60
|
export * from "./v1accountlocationupdate.js";
|
|
61
|
+
export * from "./v1accountmetaresponsebody.js";
|
|
61
62
|
export * from "./v1accountnameupdate.js";
|
|
62
63
|
export * from "./v1accountplaytimedatapoint.js";
|
|
63
64
|
export * from "./v1accountqueuerequestbody.js";
|
|
@@ -0,0 +1,88 @@
|
|
|
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 V1AccountMetaResponseBody = {
|
|
12
|
+
/**
|
|
13
|
+
* A URL to the JSON Schema for this object.
|
|
14
|
+
*/
|
|
15
|
+
dollarSchema?: string | undefined;
|
|
16
|
+
description: string;
|
|
17
|
+
ogImage: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const V1AccountMetaResponseBody$inboundSchema: z.ZodType<
|
|
22
|
+
V1AccountMetaResponseBody,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
$schema: z.string().optional(),
|
|
27
|
+
description: z.string(),
|
|
28
|
+
og_image: z.string(),
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"$schema": "dollarSchema",
|
|
32
|
+
"og_image": "ogImage",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type V1AccountMetaResponseBody$Outbound = {
|
|
38
|
+
$schema?: string | undefined;
|
|
39
|
+
description: string;
|
|
40
|
+
og_image: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const V1AccountMetaResponseBody$outboundSchema: z.ZodType<
|
|
45
|
+
V1AccountMetaResponseBody$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
V1AccountMetaResponseBody
|
|
48
|
+
> = z.object({
|
|
49
|
+
dollarSchema: z.string().optional(),
|
|
50
|
+
description: z.string(),
|
|
51
|
+
ogImage: z.string(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
dollarSchema: "$schema",
|
|
55
|
+
ogImage: "og_image",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace V1AccountMetaResponseBody$ {
|
|
64
|
+
/** @deprecated use `V1AccountMetaResponseBody$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = V1AccountMetaResponseBody$inboundSchema;
|
|
66
|
+
/** @deprecated use `V1AccountMetaResponseBody$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = V1AccountMetaResponseBody$outboundSchema;
|
|
68
|
+
/** @deprecated use `V1AccountMetaResponseBody$Outbound` instead. */
|
|
69
|
+
export type Outbound = V1AccountMetaResponseBody$Outbound;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function v1AccountMetaResponseBodyToJSON(
|
|
73
|
+
v1AccountMetaResponseBody: V1AccountMetaResponseBody,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
V1AccountMetaResponseBody$outboundSchema.parse(v1AccountMetaResponseBody),
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function v1AccountMetaResponseBodyFromJSON(
|
|
81
|
+
jsonString: string,
|
|
82
|
+
): SafeParseResult<V1AccountMetaResponseBody, SDKValidationError> {
|
|
83
|
+
return safeParse(
|
|
84
|
+
jsonString,
|
|
85
|
+
(x) => V1AccountMetaResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
+
`Failed to parse 'V1AccountMetaResponseBody' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 AccountV1GetMetaResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
/**
|
|
15
|
+
* OK
|
|
16
|
+
*/
|
|
17
|
+
v1AccountMetaResponseBody?: components.V1AccountMetaResponseBody | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const AccountV1GetMetaResponse$inboundSchema: z.ZodType<
|
|
22
|
+
AccountV1GetMetaResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
27
|
+
V1AccountMetaResponseBody: components.V1AccountMetaResponseBody$inboundSchema
|
|
28
|
+
.optional(),
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"HttpMeta": "httpMeta",
|
|
32
|
+
"V1AccountMetaResponseBody": "v1AccountMetaResponseBody",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type AccountV1GetMetaResponse$Outbound = {
|
|
38
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
39
|
+
V1AccountMetaResponseBody?:
|
|
40
|
+
| components.V1AccountMetaResponseBody$Outbound
|
|
41
|
+
| undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const AccountV1GetMetaResponse$outboundSchema: z.ZodType<
|
|
46
|
+
AccountV1GetMetaResponse$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
AccountV1GetMetaResponse
|
|
49
|
+
> = z.object({
|
|
50
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
51
|
+
v1AccountMetaResponseBody: components.V1AccountMetaResponseBody$outboundSchema
|
|
52
|
+
.optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
httpMeta: "HttpMeta",
|
|
56
|
+
v1AccountMetaResponseBody: "V1AccountMetaResponseBody",
|
|
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 AccountV1GetMetaResponse$ {
|
|
65
|
+
/** @deprecated use `AccountV1GetMetaResponse$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = AccountV1GetMetaResponse$inboundSchema;
|
|
67
|
+
/** @deprecated use `AccountV1GetMetaResponse$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = AccountV1GetMetaResponse$outboundSchema;
|
|
69
|
+
/** @deprecated use `AccountV1GetMetaResponse$Outbound` instead. */
|
|
70
|
+
export type Outbound = AccountV1GetMetaResponse$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function accountV1GetMetaResponseToJSON(
|
|
74
|
+
accountV1GetMetaResponse: AccountV1GetMetaResponse,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
AccountV1GetMetaResponse$outboundSchema.parse(accountV1GetMetaResponse),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function accountV1GetMetaResponseFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<AccountV1GetMetaResponse, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => AccountV1GetMetaResponse$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'AccountV1GetMetaResponse' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from "./accountv1getdatapoints.js";
|
|
|
15
15
|
export * from "./accountv1getfriends.js";
|
|
16
16
|
export * from "./accountv1getinfo.js";
|
|
17
17
|
export * from "./accountv1getleaderboardhistory.js";
|
|
18
|
+
export * from "./accountv1getmeta.js";
|
|
18
19
|
export * from "./accountv1getownedbadges.js";
|
|
19
20
|
export * from "./accountv1getstaff.js";
|
|
20
21
|
export * from "./accountv1imagesdelete.js";
|