@steamsets/client-ts 0.14.26 → 0.14.27
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 +83 -17
- package/docs/sdks/account/README.md +493 -1
- package/docs/sdks/admin/README.md +1 -1
- package/docs/sdks/badge/README.md +2 -0
- package/docs/sdks/data/README.md +1 -73
- package/docs/sdks/developer/README.md +1 -1
- package/docs/sdks/event/README.md +168 -0
- package/docs/sdks/{public → external}/README.md +93 -21
- package/docs/sdks/internal/README.md +1726 -0
- package/docs/sdks/leaderboard/README.md +2 -0
- package/docs/sdks/liveness/README.md +1 -1
- package/docs/sdks/stats/README.md +1 -1
- package/funcs/accountAdminV1UpdateResources.d.ts +11 -0
- package/funcs/accountAdminV1UpdateResources.d.ts.map +1 -0
- package/funcs/accountAdminV1UpdateResources.js +111 -0
- package/funcs/accountAdminV1UpdateResources.js.map +1 -0
- package/funcs/accountAdminV1UpdateRoles.d.ts +11 -0
- package/funcs/accountAdminV1UpdateRoles.d.ts.map +1 -0
- package/funcs/accountAdminV1UpdateRoles.js +111 -0
- package/funcs/accountAdminV1UpdateRoles.js.map +1 -0
- package/funcs/accountCreateDeveloperApp.d.ts +11 -0
- package/funcs/accountCreateDeveloperApp.d.ts.map +1 -0
- package/funcs/accountCreateDeveloperApp.js +111 -0
- package/funcs/accountCreateDeveloperApp.js.map +1 -0
- package/funcs/accountDeleteDeveloperApp.d.ts +11 -0
- package/funcs/accountDeleteDeveloperApp.d.ts.map +1 -0
- package/funcs/accountDeleteDeveloperApp.js +111 -0
- package/funcs/accountDeleteDeveloperApp.js.map +1 -0
- package/funcs/{publicGetBadges.d.ts → accountGetAccount.d.ts} +2 -2
- package/funcs/accountGetAccount.d.ts.map +1 -0
- package/funcs/accountGetAccount.js +113 -0
- package/funcs/accountGetAccount.js.map +1 -0
- package/funcs/accountUpdateApp.d.ts +11 -0
- package/funcs/{publicGetFriends.d.ts.map → accountUpdateApp.d.ts.map} +1 -1
- package/funcs/accountUpdateApp.js +111 -0
- package/funcs/{publicGetFriends.js.map → accountUpdateApp.js.map} +1 -1
- package/funcs/eventAdminV1GetEvents.d.ts +10 -0
- package/funcs/eventAdminV1GetEvents.d.ts.map +1 -0
- package/funcs/eventAdminV1GetEvents.js +102 -0
- package/funcs/eventAdminV1GetEvents.js.map +1 -0
- package/funcs/{publicGetLeaderboardHistory.d.ts → eventAdminV1UpdateEvent.d.ts} +2 -2
- package/funcs/eventAdminV1UpdateEvent.d.ts.map +1 -0
- package/funcs/eventAdminV1UpdateEvent.js +113 -0
- package/funcs/eventAdminV1UpdateEvent.js.map +1 -0
- package/funcs/externalGetApps.d.ts +11 -0
- package/funcs/{publicGetBadges.d.ts.map → externalGetApps.d.ts.map} +1 -1
- package/funcs/{publicGetApps.js → externalGetApps.js} +3 -3
- package/funcs/{publicGetBadges.js.map → externalGetApps.js.map} +1 -1
- package/funcs/{publicGetApps.d.ts → externalGetBadges.d.ts} +2 -2
- package/funcs/externalGetBadges.d.ts.map +1 -0
- package/funcs/{publicGetBadges.js → externalGetBadges.js} +3 -3
- package/funcs/externalGetBadges.js.map +1 -0
- package/funcs/{publicGetDataPoints.d.ts → externalGetDataPoints.d.ts} +2 -2
- package/funcs/externalGetDataPoints.d.ts.map +1 -0
- package/funcs/{publicGetDataPoints.js → externalGetDataPoints.js} +3 -3
- package/funcs/externalGetDataPoints.js.map +1 -0
- package/funcs/externalGetFriends.d.ts +11 -0
- package/funcs/externalGetFriends.d.ts.map +1 -0
- package/funcs/{publicGetFriends.js → externalGetFriends.js} +3 -3
- package/funcs/externalGetFriends.js.map +1 -0
- package/funcs/{publicGetInfo.d.ts → externalGetInfo.d.ts} +2 -2
- package/funcs/externalGetInfo.d.ts.map +1 -0
- package/funcs/{publicGetInfo.js → externalGetInfo.js} +3 -3
- package/funcs/externalGetInfo.js.map +1 -0
- package/funcs/externalGetLeaderboardHistory.d.ts +11 -0
- package/funcs/externalGetLeaderboardHistory.d.ts.map +1 -0
- package/funcs/{publicGetLeaderboardHistory.js → externalGetLeaderboardHistory.js} +3 -3
- package/funcs/externalGetLeaderboardHistory.js.map +1 -0
- package/funcs/externalStatsV1StatsGet.d.ts +10 -0
- package/funcs/externalStatsV1StatsGet.d.ts.map +1 -0
- package/funcs/externalStatsV1StatsGet.js +102 -0
- package/funcs/externalStatsV1StatsGet.js.map +1 -0
- package/funcs/internalAccountV1BookmarkBadge.d.ts +11 -0
- package/funcs/internalAccountV1BookmarkBadge.d.ts.map +1 -0
- package/funcs/internalAccountV1BookmarkBadge.js +113 -0
- package/funcs/internalAccountV1BookmarkBadge.js.map +1 -0
- package/funcs/internalAccountV1ConnectionReconnect.d.ts +11 -0
- package/funcs/internalAccountV1ConnectionReconnect.d.ts.map +1 -0
- package/funcs/internalAccountV1ConnectionReconnect.js +113 -0
- package/funcs/internalAccountV1ConnectionReconnect.js.map +1 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts +10 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.d.ts.map +1 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.js +102 -0
- package/funcs/internalAccountV1GetBadgeBookmarks.js.map +1 -0
- package/funcs/internalAccountV1GetOwnedBadges.d.ts +10 -0
- package/funcs/internalAccountV1GetOwnedBadges.d.ts.map +1 -0
- package/funcs/internalAccountV1GetOwnedBadges.js +102 -0
- package/funcs/internalAccountV1GetOwnedBadges.js.map +1 -0
- package/funcs/internalAccountV1ImagesGet.d.ts +10 -0
- package/funcs/internalAccountV1ImagesGet.d.ts.map +1 -0
- package/funcs/internalAccountV1ImagesGet.js +100 -0
- package/funcs/internalAccountV1ImagesGet.js.map +1 -0
- package/funcs/internalAccountV1ImagesUpdate.d.ts +11 -0
- package/funcs/internalAccountV1ImagesUpdate.d.ts.map +1 -0
- package/funcs/internalAccountV1ImagesUpdate.js +113 -0
- package/funcs/internalAccountV1ImagesUpdate.js.map +1 -0
- package/funcs/internalAdminV1GetEvents.d.ts +10 -0
- package/funcs/internalAdminV1GetEvents.d.ts.map +1 -0
- package/funcs/internalAdminV1GetEvents.js +102 -0
- package/funcs/internalAdminV1GetEvents.js.map +1 -0
- package/funcs/internalAdminV1UpdateEvent.d.ts +11 -0
- package/funcs/internalAdminV1UpdateEvent.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateEvent.js +113 -0
- package/funcs/internalAdminV1UpdateEvent.js.map +1 -0
- package/funcs/internalAdminV1UpdateResources.d.ts +11 -0
- package/funcs/internalAdminV1UpdateResources.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateResources.js +111 -0
- package/funcs/internalAdminV1UpdateResources.js.map +1 -0
- package/funcs/internalAdminV1UpdateRoles.d.ts +11 -0
- package/funcs/internalAdminV1UpdateRoles.d.ts.map +1 -0
- package/funcs/internalAdminV1UpdateRoles.js +111 -0
- package/funcs/internalAdminV1UpdateRoles.js.map +1 -0
- package/funcs/internalBadgeV1Search.d.ts +11 -0
- package/funcs/internalBadgeV1Search.d.ts.map +1 -0
- package/funcs/internalBadgeV1Search.js +113 -0
- package/funcs/internalBadgeV1Search.js.map +1 -0
- package/funcs/internalCheck.d.ts +16 -0
- package/funcs/internalCheck.d.ts.map +1 -0
- package/funcs/internalCheck.js +106 -0
- package/funcs/internalCheck.js.map +1 -0
- package/funcs/internalCreateDeveloperApp.d.ts +11 -0
- package/funcs/internalCreateDeveloperApp.d.ts.map +1 -0
- package/funcs/internalCreateDeveloperApp.js +111 -0
- package/funcs/internalCreateDeveloperApp.js.map +1 -0
- package/funcs/internalDeleteDeveloperApp.d.ts +11 -0
- package/funcs/internalDeleteDeveloperApp.d.ts.map +1 -0
- package/funcs/internalDeleteDeveloperApp.js +111 -0
- package/funcs/internalDeleteDeveloperApp.js.map +1 -0
- package/funcs/internalDeleteImages.d.ts +11 -0
- package/funcs/internalDeleteImages.d.ts.map +1 -0
- package/funcs/internalDeleteImages.js +113 -0
- package/funcs/internalDeleteImages.js.map +1 -0
- package/funcs/{publicGetFriends.d.ts → internalGetAccount.d.ts} +2 -2
- package/funcs/internalGetAccount.d.ts.map +1 -0
- package/funcs/internalGetAccount.js +113 -0
- package/funcs/internalGetAccount.js.map +1 -0
- package/funcs/internalGetStaff.d.ts +10 -0
- package/funcs/internalGetStaff.d.ts.map +1 -0
- package/funcs/{dataGetStaff.js → internalGetStaff.js} +3 -3
- package/funcs/internalGetStaff.js.map +1 -0
- package/funcs/{dataGetStaff.d.ts → internalGetTags.d.ts} +2 -2
- package/funcs/internalGetTags.d.ts.map +1 -0
- package/funcs/internalGetTags.js +102 -0
- package/funcs/internalGetTags.js.map +1 -0
- package/funcs/internalSendEmailVerification.d.ts +10 -0
- package/funcs/internalSendEmailVerification.d.ts.map +1 -0
- package/funcs/internalSendEmailVerification.js +111 -0
- package/funcs/internalSendEmailVerification.js.map +1 -0
- package/funcs/internalUpdateApp.d.ts +11 -0
- package/funcs/internalUpdateApp.d.ts.map +1 -0
- package/funcs/internalUpdateApp.js +111 -0
- package/funcs/internalUpdateApp.js.map +1 -0
- package/funcs/internalUploadImages.d.ts +11 -0
- package/funcs/internalUploadImages.d.ts.map +1 -0
- package/funcs/internalUploadImages.js +113 -0
- package/funcs/internalUploadImages.js.map +1 -0
- package/funcs/internalVerifyEmail.d.ts +11 -0
- package/funcs/{publicGetDataPoints.d.ts.map → internalVerifyEmail.d.ts.map} +1 -1
- package/funcs/internalVerifyEmail.js +113 -0
- package/funcs/{publicGetDataPoints.js.map → internalVerifyEmail.js.map} +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/models/components/v1stats.d.ts +0 -5
- package/models/components/v1stats.d.ts.map +1 -1
- package/models/components/v1stats.js +0 -2
- package/models/components/v1stats.js.map +1 -1
- package/package.json +6 -7
- package/sdk/account.d.ts +6 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +24 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +0 -1
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +0 -4
- package/sdk/data.js.map +1 -1
- package/sdk/event.d.ts +8 -0
- package/sdk/event.d.ts.map +1 -0
- package/sdk/event.js +20 -0
- package/sdk/event.js.map +1 -0
- package/sdk/{public.d.ts → external.d.ts} +3 -2
- package/sdk/external.d.ts.map +1 -0
- package/sdk/external.js +40 -0
- package/sdk/external.js.map +1 -0
- package/sdk/internal.d.ts +34 -0
- package/sdk/internal.d.ts.map +1 -0
- package/sdk/internal.js +106 -0
- package/sdk/internal.js.map +1 -0
- package/sdk/sdk.d.ts +11 -5
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -6
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountAdminV1UpdateResources.ts +148 -0
- package/src/funcs/accountAdminV1UpdateRoles.ts +148 -0
- package/src/funcs/accountCreateDeveloperApp.ts +152 -0
- package/src/funcs/accountDeleteDeveloperApp.ts +154 -0
- package/src/funcs/accountGetAccount.ts +149 -0
- package/src/funcs/accountUpdateApp.ts +154 -0
- package/src/funcs/eventAdminV1GetEvents.ts +132 -0
- package/src/funcs/eventAdminV1UpdateEvent.ts +150 -0
- package/src/funcs/{publicGetApps.ts → externalGetApps.ts} +1 -1
- package/src/funcs/{publicGetBadges.ts → externalGetBadges.ts} +1 -1
- package/src/funcs/{publicGetDataPoints.ts → externalGetDataPoints.ts} +1 -1
- package/src/funcs/{publicGetFriends.ts → externalGetFriends.ts} +1 -1
- package/src/funcs/{publicGetInfo.ts → externalGetInfo.ts} +1 -1
- package/src/funcs/{publicGetLeaderboardHistory.ts → externalGetLeaderboardHistory.ts} +1 -1
- package/src/funcs/externalStatsV1StatsGet.ts +132 -0
- package/src/funcs/internalAccountV1BookmarkBadge.ts +150 -0
- package/src/funcs/internalAccountV1ConnectionReconnect.ts +149 -0
- package/src/funcs/internalAccountV1GetBadgeBookmarks.ts +132 -0
- package/src/funcs/internalAccountV1GetOwnedBadges.ts +132 -0
- package/src/funcs/internalAccountV1ImagesGet.ts +127 -0
- package/src/funcs/internalAccountV1ImagesUpdate.ts +149 -0
- package/src/funcs/internalAdminV1GetEvents.ts +132 -0
- package/src/funcs/internalAdminV1UpdateEvent.ts +150 -0
- package/src/funcs/internalAdminV1UpdateResources.ts +148 -0
- package/src/funcs/internalAdminV1UpdateRoles.ts +148 -0
- package/src/funcs/internalBadgeV1Search.ts +149 -0
- package/src/funcs/internalCheck.ts +133 -0
- package/src/funcs/internalCreateDeveloperApp.ts +152 -0
- package/src/funcs/internalDeleteDeveloperApp.ts +154 -0
- package/src/funcs/internalDeleteImages.ts +149 -0
- package/src/funcs/internalGetAccount.ts +149 -0
- package/src/funcs/{dataGetStaff.ts → internalGetStaff.ts} +1 -1
- package/src/funcs/internalGetTags.ts +132 -0
- package/src/funcs/internalSendEmailVerification.ts +156 -0
- package/src/funcs/internalUpdateApp.ts +154 -0
- package/src/funcs/internalUploadImages.ts +149 -0
- package/src/funcs/internalVerifyEmail.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +0 -1
- package/src/models/components/v1stats.ts +0 -7
- package/src/sdk/account.ts +72 -0
- package/src/sdk/data.ts +0 -10
- package/src/sdk/event.ts +32 -0
- package/src/sdk/{public.ts → external.ts} +23 -13
- package/src/sdk/internal.ts +266 -0
- package/src/sdk/sdk.ts +21 -9
- package/funcs/dataGetStaff.d.ts.map +0 -1
- package/funcs/dataGetStaff.js.map +0 -1
- package/funcs/publicGetApps.d.ts.map +0 -1
- package/funcs/publicGetApps.js.map +0 -1
- package/funcs/publicGetInfo.d.ts.map +0 -1
- package/funcs/publicGetInfo.js.map +0 -1
- package/funcs/publicGetLeaderboardHistory.d.ts.map +0 -1
- package/funcs/publicGetLeaderboardHistory.js.map +0 -1
- package/sdk/public.d.ts.map +0 -1
- package/sdk/public.js +0 -36
- package/sdk/public.js.map +0 -1
|
@@ -0,0 +1,154 @@
|
|
|
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 internalDeleteDeveloperApp(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1AccountDeveloperAppDeleteRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse,
|
|
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) =>
|
|
48
|
+
components.V1AccountDeveloperAppDeleteRequestBody$outboundSchema.parse(
|
|
49
|
+
value,
|
|
50
|
+
),
|
|
51
|
+
"Input validation failed",
|
|
52
|
+
);
|
|
53
|
+
if (!parsed.ok) {
|
|
54
|
+
return parsed;
|
|
55
|
+
}
|
|
56
|
+
const payload = parsed.value;
|
|
57
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
58
|
+
|
|
59
|
+
const path = pathToFunc("/account.v1.AccountService/DeleteDeveloperApp")();
|
|
60
|
+
|
|
61
|
+
const headers = new Headers(compactMap({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/json",
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
67
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
68
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
69
|
+
|
|
70
|
+
const context = {
|
|
71
|
+
operationID: "account.v1.settings.developer-app-delete",
|
|
72
|
+
oAuth2Scopes: [],
|
|
73
|
+
|
|
74
|
+
resolvedSecurity: requestSecurity,
|
|
75
|
+
|
|
76
|
+
securitySource: client._options.token,
|
|
77
|
+
retryConfig: options?.retries
|
|
78
|
+
|| client._options.retryConfig
|
|
79
|
+
|| {
|
|
80
|
+
strategy: "backoff",
|
|
81
|
+
backoff: {
|
|
82
|
+
initialInterval: 500,
|
|
83
|
+
maxInterval: 5000,
|
|
84
|
+
exponent: 1.5,
|
|
85
|
+
maxElapsedTime: 60000,
|
|
86
|
+
},
|
|
87
|
+
retryConnectionErrors: true,
|
|
88
|
+
}
|
|
89
|
+
|| { strategy: "none" },
|
|
90
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const requestRes = client._createRequest(context, {
|
|
94
|
+
security: requestSecurity,
|
|
95
|
+
method: "POST",
|
|
96
|
+
baseURL: options?.serverURL,
|
|
97
|
+
path: path,
|
|
98
|
+
headers: headers,
|
|
99
|
+
body: body,
|
|
100
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return requestRes;
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return doResult;
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const [result] = await M.match<
|
|
124
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse,
|
|
125
|
+
| errors.ErrorModel
|
|
126
|
+
| errors.ErrorModel
|
|
127
|
+
| SDKError
|
|
128
|
+
| SDKValidationError
|
|
129
|
+
| UnexpectedClientError
|
|
130
|
+
| InvalidRequestError
|
|
131
|
+
| RequestAbortedError
|
|
132
|
+
| RequestTimeoutError
|
|
133
|
+
| ConnectionError
|
|
134
|
+
>(
|
|
135
|
+
M.json(
|
|
136
|
+
200,
|
|
137
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse$inboundSchema,
|
|
138
|
+
{ key: "V1AccountDeveloperAppDeleteResponseBody" },
|
|
139
|
+
),
|
|
140
|
+
M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
141
|
+
ctype: "application/problem+json",
|
|
142
|
+
}),
|
|
143
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
144
|
+
ctype: "application/problem+json",
|
|
145
|
+
}),
|
|
146
|
+
M.fail("4XX"),
|
|
147
|
+
M.fail("5XX"),
|
|
148
|
+
)(response, req, { extraFields: responseFields });
|
|
149
|
+
if (!result.ok) {
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
@@ -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 internalDeleteImages(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.V1DeleteImagesRequestBody,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AccountV1ImagesDeleteResponse,
|
|
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.V1DeleteImagesRequestBody$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/DeleteImages")();
|
|
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.images.delete",
|
|
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.AccountV1ImagesDeleteResponse,
|
|
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.AccountV1ImagesDeleteResponse$inboundSchema, {
|
|
133
|
+
key: "V1DeleteImagesResponseBody",
|
|
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 internalGetAccount(
|
|
28
|
+
client: SteamSetsCore,
|
|
29
|
+
request: components.AccountSearch,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.AdminV1GetAccountResponse,
|
|
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("/admin.v1.AdminService/GetAccount")();
|
|
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: "admin.v1.get-account",
|
|
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: ["403", "404", "422", "429", "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.AdminV1GetAccountResponse,
|
|
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.AdminV1GetAccountResponse$inboundSchema, {
|
|
133
|
+
key: "V1AdminGetAccountResponseBody",
|
|
134
|
+
}),
|
|
135
|
+
M.jsonErr([403, 404, 422, 429], 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
|
+
}
|
|
@@ -21,7 +21,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
21
21
|
import * as operations from "../models/operations/index.js";
|
|
22
22
|
import { Result } from "../types/fp.js";
|
|
23
23
|
|
|
24
|
-
export async function
|
|
24
|
+
export async function internalGetStaff(
|
|
25
25
|
client: SteamSetsCore,
|
|
26
26
|
options?: RequestOptions,
|
|
27
27
|
): Promise<
|
|
@@ -0,0 +1,132 @@
|
|
|
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 { compactMap } from "../lib/primitives.js";
|
|
8
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
+
import { pathToFunc } from "../lib/url.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
|
+
export async function internalGetTags(
|
|
25
|
+
client: SteamSetsCore,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): Promise<
|
|
28
|
+
Result<
|
|
29
|
+
operations.BadgeV1TagsResponse,
|
|
30
|
+
| errors.ErrorModel
|
|
31
|
+
| errors.ErrorModel
|
|
32
|
+
| SDKError
|
|
33
|
+
| SDKValidationError
|
|
34
|
+
| UnexpectedClientError
|
|
35
|
+
| InvalidRequestError
|
|
36
|
+
| RequestAbortedError
|
|
37
|
+
| RequestTimeoutError
|
|
38
|
+
| ConnectionError
|
|
39
|
+
>
|
|
40
|
+
> {
|
|
41
|
+
const path = pathToFunc("/badge.v1.BadgeService/GetTags")();
|
|
42
|
+
|
|
43
|
+
const headers = new Headers(compactMap({
|
|
44
|
+
Accept: "application/json",
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
48
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
49
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
50
|
+
|
|
51
|
+
const context = {
|
|
52
|
+
operationID: "badge.v1.tags",
|
|
53
|
+
oAuth2Scopes: [],
|
|
54
|
+
|
|
55
|
+
resolvedSecurity: requestSecurity,
|
|
56
|
+
|
|
57
|
+
securitySource: client._options.token,
|
|
58
|
+
retryConfig: options?.retries
|
|
59
|
+
|| client._options.retryConfig
|
|
60
|
+
|| {
|
|
61
|
+
strategy: "backoff",
|
|
62
|
+
backoff: {
|
|
63
|
+
initialInterval: 500,
|
|
64
|
+
maxInterval: 5000,
|
|
65
|
+
exponent: 1.5,
|
|
66
|
+
maxElapsedTime: 60000,
|
|
67
|
+
},
|
|
68
|
+
retryConnectionErrors: true,
|
|
69
|
+
}
|
|
70
|
+
|| { strategy: "none" },
|
|
71
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const requestRes = client._createRequest(context, {
|
|
75
|
+
security: requestSecurity,
|
|
76
|
+
method: "POST",
|
|
77
|
+
baseURL: options?.serverURL,
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
81
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
82
|
+
}, options);
|
|
83
|
+
if (!requestRes.ok) {
|
|
84
|
+
return requestRes;
|
|
85
|
+
}
|
|
86
|
+
const req = requestRes.value;
|
|
87
|
+
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["403", "404", "4XX", "500", "5XX"],
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return doResult;
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
|
|
99
|
+
const responseFields = {
|
|
100
|
+
HttpMeta: { Response: response, Request: req },
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const [result] = await M.match<
|
|
104
|
+
operations.BadgeV1TagsResponse,
|
|
105
|
+
| errors.ErrorModel
|
|
106
|
+
| errors.ErrorModel
|
|
107
|
+
| SDKError
|
|
108
|
+
| SDKValidationError
|
|
109
|
+
| UnexpectedClientError
|
|
110
|
+
| InvalidRequestError
|
|
111
|
+
| RequestAbortedError
|
|
112
|
+
| RequestTimeoutError
|
|
113
|
+
| ConnectionError
|
|
114
|
+
>(
|
|
115
|
+
M.json(200, operations.BadgeV1TagsResponse$inboundSchema, {
|
|
116
|
+
key: "V1BadgeTagsResponseBody",
|
|
117
|
+
}),
|
|
118
|
+
M.jsonErr([403, 404], errors.ErrorModel$inboundSchema, {
|
|
119
|
+
ctype: "application/problem+json",
|
|
120
|
+
}),
|
|
121
|
+
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
122
|
+
ctype: "application/problem+json",
|
|
123
|
+
}),
|
|
124
|
+
M.fail("4XX"),
|
|
125
|
+
M.fail("5XX"),
|
|
126
|
+
)(response, req, { extraFields: responseFields });
|
|
127
|
+
if (!result.ok) {
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return result;
|
|
132
|
+
}
|