@steamsets/client-ts 0.14.26 → 0.14.28
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 +497 -13
- package/docs/sdks/admin/README.md +1 -1
- package/docs/sdks/badge/README.md +2 -0
- package/docs/sdks/data/README.md +5 -85
- package/docs/sdks/developer/README.md +1 -1
- package/docs/sdks/event/README.md +168 -0
- package/docs/sdks/{public → external}/README.md +93 -29
- 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/leaderboardaccount.d.ts +0 -5
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +0 -2
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +0 -5
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +0 -2
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +0 -5
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +0 -2
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +0 -5
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +0 -2
- package/models/components/v1accountleaderboardaccount.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/leaderboardaccount.ts +0 -7
- package/src/models/components/v1accountfriend.ts +0 -7
- package/src/models/components/v1accountinforesponsebody.ts +0 -7
- package/src/models/components/v1accountleaderboardaccount.ts +0 -7
- 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
package/docs/sdks/data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Data of a Steam Account that can be used to display the profile.
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -13,7 +13,6 @@ This is actual data seen by others then yourself
|
|
|
13
13
|
* [getFriends](#getfriends)
|
|
14
14
|
* [getInfo](#getinfo)
|
|
15
15
|
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
16
|
-
* [getStaff](#getstaff)
|
|
17
16
|
|
|
18
17
|
## getApps
|
|
19
18
|
|
|
@@ -27,9 +26,7 @@ const steamSets = new SteamSets({
|
|
|
27
26
|
});
|
|
28
27
|
|
|
29
28
|
async function run() {
|
|
30
|
-
const result = await steamSets.data.getApps({
|
|
31
|
-
page: 1,
|
|
32
|
-
});
|
|
29
|
+
const result = await steamSets.data.getApps({});
|
|
33
30
|
|
|
34
31
|
// Handle the result
|
|
35
32
|
console.log(result);
|
|
@@ -53,9 +50,7 @@ const steamSets = new SteamSetsCore({
|
|
|
53
50
|
});
|
|
54
51
|
|
|
55
52
|
async function run() {
|
|
56
|
-
const res = await dataGetApps(steamSets, {
|
|
57
|
-
page: 1,
|
|
58
|
-
});
|
|
53
|
+
const res = await dataGetApps(steamSets, {});
|
|
59
54
|
|
|
60
55
|
if (!res.ok) {
|
|
61
56
|
throw res.error;
|
|
@@ -103,9 +98,7 @@ const steamSets = new SteamSets({
|
|
|
103
98
|
});
|
|
104
99
|
|
|
105
100
|
async function run() {
|
|
106
|
-
const result = await steamSets.data.getBadges({
|
|
107
|
-
page: 1,
|
|
108
|
-
});
|
|
101
|
+
const result = await steamSets.data.getBadges({});
|
|
109
102
|
|
|
110
103
|
// Handle the result
|
|
111
104
|
console.log(result);
|
|
@@ -129,9 +122,7 @@ const steamSets = new SteamSetsCore({
|
|
|
129
122
|
});
|
|
130
123
|
|
|
131
124
|
async function run() {
|
|
132
|
-
const res = await dataGetBadges(steamSets, {
|
|
133
|
-
page: 1,
|
|
134
|
-
});
|
|
125
|
+
const res = await dataGetBadges(steamSets, {});
|
|
135
126
|
|
|
136
127
|
if (!res.ok) {
|
|
137
128
|
throw res.error;
|
|
@@ -453,75 +444,4 @@ run();
|
|
|
453
444
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
454
445
|
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
455
446
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
456
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
457
|
-
|
|
458
|
-
## getStaff
|
|
459
|
-
|
|
460
|
-
### Example Usage
|
|
461
|
-
|
|
462
|
-
```typescript
|
|
463
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
464
|
-
|
|
465
|
-
const steamSets = new SteamSets({
|
|
466
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
async function run() {
|
|
470
|
-
const result = await steamSets.data.getStaff();
|
|
471
|
-
|
|
472
|
-
// Handle the result
|
|
473
|
-
console.log(result);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
run();
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
### Standalone function
|
|
480
|
-
|
|
481
|
-
The standalone function version of this method:
|
|
482
|
-
|
|
483
|
-
```typescript
|
|
484
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
485
|
-
import { dataGetStaff } from "@steamsets/client-ts/funcs/dataGetStaff.js";
|
|
486
|
-
|
|
487
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
488
|
-
// You can create one instance of it to use across an application.
|
|
489
|
-
const steamSets = new SteamSetsCore({
|
|
490
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
491
|
-
});
|
|
492
|
-
|
|
493
|
-
async function run() {
|
|
494
|
-
const res = await dataGetStaff(steamSets);
|
|
495
|
-
|
|
496
|
-
if (!res.ok) {
|
|
497
|
-
throw res.error;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
const { value: result } = res;
|
|
501
|
-
|
|
502
|
-
// Handle the result
|
|
503
|
-
console.log(result);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
run();
|
|
507
|
-
```
|
|
508
|
-
|
|
509
|
-
### Parameters
|
|
510
|
-
|
|
511
|
-
| Parameter | Type | Required | Description |
|
|
512
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
513
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
514
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
515
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
516
|
-
|
|
517
|
-
### Response
|
|
518
|
-
|
|
519
|
-
**Promise\<[operations.AccountV1GetStaffResponse](../../models/operations/accountv1getstaffresponse.md)\>**
|
|
520
|
-
|
|
521
|
-
### Errors
|
|
522
|
-
|
|
523
|
-
| Error Type | Status Code | Content Type |
|
|
524
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
525
|
-
| errors.ErrorModel | 404, 429 | application/problem+json |
|
|
526
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
527
447
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Event
|
|
2
|
+
(*event*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [adminV1GetEvents](#adminv1getevents)
|
|
9
|
+
* [adminV1UpdateEvent](#adminv1updateevent)
|
|
10
|
+
|
|
11
|
+
## adminV1GetEvents
|
|
12
|
+
|
|
13
|
+
### Example Usage
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
17
|
+
|
|
18
|
+
const steamSets = new SteamSets({
|
|
19
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
async function run() {
|
|
23
|
+
const result = await steamSets.event.adminV1GetEvents();
|
|
24
|
+
|
|
25
|
+
// Handle the result
|
|
26
|
+
console.log(result);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
run();
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Standalone function
|
|
33
|
+
|
|
34
|
+
The standalone function version of this method:
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
38
|
+
import { eventAdminV1GetEvents } from "@steamsets/client-ts/funcs/eventAdminV1GetEvents.js";
|
|
39
|
+
|
|
40
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
41
|
+
// You can create one instance of it to use across an application.
|
|
42
|
+
const steamSets = new SteamSetsCore({
|
|
43
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
async function run() {
|
|
47
|
+
const res = await eventAdminV1GetEvents(steamSets);
|
|
48
|
+
|
|
49
|
+
if (!res.ok) {
|
|
50
|
+
throw res.error;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const { value: result } = res;
|
|
54
|
+
|
|
55
|
+
// Handle the result
|
|
56
|
+
console.log(result);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
run();
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
| Parameter | Type | Required | Description |
|
|
65
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
66
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
67
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
68
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
69
|
+
|
|
70
|
+
### Response
|
|
71
|
+
|
|
72
|
+
**Promise\<[operations.AdminV1GetEventsResponse](../../models/operations/adminv1geteventsresponse.md)\>**
|
|
73
|
+
|
|
74
|
+
### Errors
|
|
75
|
+
|
|
76
|
+
| Error Type | Status Code | Content Type |
|
|
77
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
78
|
+
| errors.ErrorModel | 403, 404, 429 | application/problem+json |
|
|
79
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
80
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
81
|
+
|
|
82
|
+
## adminV1UpdateEvent
|
|
83
|
+
|
|
84
|
+
### Example Usage
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
88
|
+
|
|
89
|
+
const steamSets = new SteamSets({
|
|
90
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
async function run() {
|
|
94
|
+
const result = await steamSets.event.adminV1UpdateEvent({
|
|
95
|
+
eventId: "evt_123456",
|
|
96
|
+
mappings: [
|
|
97
|
+
{
|
|
98
|
+
appId: 730,
|
|
99
|
+
steamId: 76561198842603730,
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// Handle the result
|
|
105
|
+
console.log(result);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
run();
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Standalone function
|
|
112
|
+
|
|
113
|
+
The standalone function version of this method:
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
117
|
+
import { eventAdminV1UpdateEvent } from "@steamsets/client-ts/funcs/eventAdminV1UpdateEvent.js";
|
|
118
|
+
|
|
119
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
120
|
+
// You can create one instance of it to use across an application.
|
|
121
|
+
const steamSets = new SteamSetsCore({
|
|
122
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
async function run() {
|
|
126
|
+
const res = await eventAdminV1UpdateEvent(steamSets, {
|
|
127
|
+
eventId: "evt_123456",
|
|
128
|
+
mappings: [
|
|
129
|
+
{
|
|
130
|
+
appId: 730,
|
|
131
|
+
steamId: 76561198842603730,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
if (!res.ok) {
|
|
137
|
+
throw res.error;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const { value: result } = res;
|
|
141
|
+
|
|
142
|
+
// Handle the result
|
|
143
|
+
console.log(result);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
run();
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
150
|
+
|
|
151
|
+
| Parameter | Type | Required | Description |
|
|
152
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
153
|
+
| `request` | [components.V1AdminUpdateEventRequestBody](../../models/components/v1adminupdateeventrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
154
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
155
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
156
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
157
|
+
|
|
158
|
+
### Response
|
|
159
|
+
|
|
160
|
+
**Promise\<[operations.AdminV1UpdateEventResponse](../../models/operations/adminv1updateeventresponse.md)\>**
|
|
161
|
+
|
|
162
|
+
### Errors
|
|
163
|
+
|
|
164
|
+
| Error Type | Status Code | Content Type |
|
|
165
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
166
|
+
| errors.ErrorModel | 403, 404, 422, 429 | application/problem+json |
|
|
167
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
168
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
2
|
-
(*
|
|
1
|
+
# External
|
|
2
|
+
(*external*)
|
|
3
3
|
|
|
4
4
|
## Overview
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Any requests here may be accessed by anyone with an API Key.
|
|
7
7
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
@@ -13,6 +13,7 @@ This API can be accessed by anyone with an API Key
|
|
|
13
13
|
* [getFriends](#getfriends)
|
|
14
14
|
* [getInfo](#getinfo)
|
|
15
15
|
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
16
|
+
* [statsV1StatsGet](#statsv1statsget)
|
|
16
17
|
|
|
17
18
|
## getApps
|
|
18
19
|
|
|
@@ -26,9 +27,7 @@ const steamSets = new SteamSets({
|
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
async function run() {
|
|
29
|
-
const result = await steamSets.
|
|
30
|
-
page: 1,
|
|
31
|
-
});
|
|
30
|
+
const result = await steamSets.external.getApps({});
|
|
32
31
|
|
|
33
32
|
// Handle the result
|
|
34
33
|
console.log(result);
|
|
@@ -43,7 +42,7 @@ The standalone function version of this method:
|
|
|
43
42
|
|
|
44
43
|
```typescript
|
|
45
44
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
46
|
-
import {
|
|
45
|
+
import { externalGetApps } from "@steamsets/client-ts/funcs/externalGetApps.js";
|
|
47
46
|
|
|
48
47
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
49
48
|
// You can create one instance of it to use across an application.
|
|
@@ -52,9 +51,7 @@ const steamSets = new SteamSetsCore({
|
|
|
52
51
|
});
|
|
53
52
|
|
|
54
53
|
async function run() {
|
|
55
|
-
const res = await
|
|
56
|
-
page: 1,
|
|
57
|
-
});
|
|
54
|
+
const res = await externalGetApps(steamSets, {});
|
|
58
55
|
|
|
59
56
|
if (!res.ok) {
|
|
60
57
|
throw res.error;
|
|
@@ -102,9 +99,7 @@ const steamSets = new SteamSets({
|
|
|
102
99
|
});
|
|
103
100
|
|
|
104
101
|
async function run() {
|
|
105
|
-
const result = await steamSets.
|
|
106
|
-
page: 1,
|
|
107
|
-
});
|
|
102
|
+
const result = await steamSets.external.getBadges({});
|
|
108
103
|
|
|
109
104
|
// Handle the result
|
|
110
105
|
console.log(result);
|
|
@@ -119,7 +114,7 @@ The standalone function version of this method:
|
|
|
119
114
|
|
|
120
115
|
```typescript
|
|
121
116
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
122
|
-
import {
|
|
117
|
+
import { externalGetBadges } from "@steamsets/client-ts/funcs/externalGetBadges.js";
|
|
123
118
|
|
|
124
119
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
125
120
|
// You can create one instance of it to use across an application.
|
|
@@ -128,9 +123,7 @@ const steamSets = new SteamSetsCore({
|
|
|
128
123
|
});
|
|
129
124
|
|
|
130
125
|
async function run() {
|
|
131
|
-
const res = await
|
|
132
|
-
page: 1,
|
|
133
|
-
});
|
|
126
|
+
const res = await externalGetBadges(steamSets, {});
|
|
134
127
|
|
|
135
128
|
if (!res.ok) {
|
|
136
129
|
throw res.error;
|
|
@@ -178,7 +171,7 @@ const steamSets = new SteamSets({
|
|
|
178
171
|
});
|
|
179
172
|
|
|
180
173
|
async function run() {
|
|
181
|
-
const result = await steamSets.
|
|
174
|
+
const result = await steamSets.external.getDataPoints({});
|
|
182
175
|
|
|
183
176
|
// Handle the result
|
|
184
177
|
console.log(result);
|
|
@@ -193,7 +186,7 @@ The standalone function version of this method:
|
|
|
193
186
|
|
|
194
187
|
```typescript
|
|
195
188
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
196
|
-
import {
|
|
189
|
+
import { externalGetDataPoints } from "@steamsets/client-ts/funcs/externalGetDataPoints.js";
|
|
197
190
|
|
|
198
191
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
199
192
|
// You can create one instance of it to use across an application.
|
|
@@ -202,7 +195,7 @@ const steamSets = new SteamSetsCore({
|
|
|
202
195
|
});
|
|
203
196
|
|
|
204
197
|
async function run() {
|
|
205
|
-
const res = await
|
|
198
|
+
const res = await externalGetDataPoints(steamSets, {});
|
|
206
199
|
|
|
207
200
|
if (!res.ok) {
|
|
208
201
|
throw res.error;
|
|
@@ -250,7 +243,7 @@ const steamSets = new SteamSets({
|
|
|
250
243
|
});
|
|
251
244
|
|
|
252
245
|
async function run() {
|
|
253
|
-
const result = await steamSets.
|
|
246
|
+
const result = await steamSets.external.getFriends({});
|
|
254
247
|
|
|
255
248
|
// Handle the result
|
|
256
249
|
console.log(result);
|
|
@@ -265,7 +258,7 @@ The standalone function version of this method:
|
|
|
265
258
|
|
|
266
259
|
```typescript
|
|
267
260
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
268
|
-
import {
|
|
261
|
+
import { externalGetFriends } from "@steamsets/client-ts/funcs/externalGetFriends.js";
|
|
269
262
|
|
|
270
263
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
271
264
|
// You can create one instance of it to use across an application.
|
|
@@ -274,7 +267,7 @@ const steamSets = new SteamSetsCore({
|
|
|
274
267
|
});
|
|
275
268
|
|
|
276
269
|
async function run() {
|
|
277
|
-
const res = await
|
|
270
|
+
const res = await externalGetFriends(steamSets, {});
|
|
278
271
|
|
|
279
272
|
if (!res.ok) {
|
|
280
273
|
throw res.error;
|
|
@@ -322,7 +315,7 @@ const steamSets = new SteamSets({
|
|
|
322
315
|
});
|
|
323
316
|
|
|
324
317
|
async function run() {
|
|
325
|
-
const result = await steamSets.
|
|
318
|
+
const result = await steamSets.external.getInfo({});
|
|
326
319
|
|
|
327
320
|
// Handle the result
|
|
328
321
|
console.log(result);
|
|
@@ -337,7 +330,7 @@ The standalone function version of this method:
|
|
|
337
330
|
|
|
338
331
|
```typescript
|
|
339
332
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
340
|
-
import {
|
|
333
|
+
import { externalGetInfo } from "@steamsets/client-ts/funcs/externalGetInfo.js";
|
|
341
334
|
|
|
342
335
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
343
336
|
// You can create one instance of it to use across an application.
|
|
@@ -346,7 +339,7 @@ const steamSets = new SteamSetsCore({
|
|
|
346
339
|
});
|
|
347
340
|
|
|
348
341
|
async function run() {
|
|
349
|
-
const res = await
|
|
342
|
+
const res = await externalGetInfo(steamSets, {});
|
|
350
343
|
|
|
351
344
|
if (!res.ok) {
|
|
352
345
|
throw res.error;
|
|
@@ -394,7 +387,7 @@ const steamSets = new SteamSets({
|
|
|
394
387
|
});
|
|
395
388
|
|
|
396
389
|
async function run() {
|
|
397
|
-
const result = await steamSets.
|
|
390
|
+
const result = await steamSets.external.getLeaderboardHistory({});
|
|
398
391
|
|
|
399
392
|
// Handle the result
|
|
400
393
|
console.log(result);
|
|
@@ -409,7 +402,7 @@ The standalone function version of this method:
|
|
|
409
402
|
|
|
410
403
|
```typescript
|
|
411
404
|
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
412
|
-
import {
|
|
405
|
+
import { externalGetLeaderboardHistory } from "@steamsets/client-ts/funcs/externalGetLeaderboardHistory.js";
|
|
413
406
|
|
|
414
407
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
415
408
|
// You can create one instance of it to use across an application.
|
|
@@ -418,7 +411,7 @@ const steamSets = new SteamSetsCore({
|
|
|
418
411
|
});
|
|
419
412
|
|
|
420
413
|
async function run() {
|
|
421
|
-
const res = await
|
|
414
|
+
const res = await externalGetLeaderboardHistory(steamSets, {});
|
|
422
415
|
|
|
423
416
|
if (!res.ok) {
|
|
424
417
|
throw res.error;
|
|
@@ -452,4 +445,75 @@ run();
|
|
|
452
445
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
453
446
|
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
454
447
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
448
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
449
|
+
|
|
450
|
+
## statsV1StatsGet
|
|
451
|
+
|
|
452
|
+
### Example Usage
|
|
453
|
+
|
|
454
|
+
```typescript
|
|
455
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
456
|
+
|
|
457
|
+
const steamSets = new SteamSets({
|
|
458
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
async function run() {
|
|
462
|
+
const result = await steamSets.external.statsV1StatsGet();
|
|
463
|
+
|
|
464
|
+
// Handle the result
|
|
465
|
+
console.log(result);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
run();
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
### Standalone function
|
|
472
|
+
|
|
473
|
+
The standalone function version of this method:
|
|
474
|
+
|
|
475
|
+
```typescript
|
|
476
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
477
|
+
import { externalStatsV1StatsGet } from "@steamsets/client-ts/funcs/externalStatsV1StatsGet.js";
|
|
478
|
+
|
|
479
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
480
|
+
// You can create one instance of it to use across an application.
|
|
481
|
+
const steamSets = new SteamSetsCore({
|
|
482
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
async function run() {
|
|
486
|
+
const res = await externalStatsV1StatsGet(steamSets);
|
|
487
|
+
|
|
488
|
+
if (!res.ok) {
|
|
489
|
+
throw res.error;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
const { value: result } = res;
|
|
493
|
+
|
|
494
|
+
// Handle the result
|
|
495
|
+
console.log(result);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
run();
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Parameters
|
|
502
|
+
|
|
503
|
+
| Parameter | Type | Required | Description |
|
|
504
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
505
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
506
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
507
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
508
|
+
|
|
509
|
+
### Response
|
|
510
|
+
|
|
511
|
+
**Promise\<[operations.StatsV1StatsGetResponse](../../models/operations/statsv1statsgetresponse.md)\>**
|
|
512
|
+
|
|
513
|
+
### Errors
|
|
514
|
+
|
|
515
|
+
| Error Type | Status Code | Content Type |
|
|
516
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
517
|
+
| errors.ErrorModel | 404, 429 | application/problem+json |
|
|
518
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
455
519
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|