@steamsets/client-ts 0.19.4 → 0.19.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -89
- package/docs/sdks/account/README.md +0 -204
- package/docs/sdks/images/README.md +0 -164
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/account.d.ts +0 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +0 -8
- package/sdk/account.js.map +1 -1
- package/sdk/images.d.ts +0 -2
- package/sdk/images.d.ts.map +1 -1
- package/sdk/images.js +0 -8
- package/sdk/images.js.map +1 -1
- package/sdk/sdk.d.ts +2 -17
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +2 -22
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/account.ts +0 -24
- package/src/sdk/images.ts +0 -24
- package/src/sdk/sdk.ts +3 -33
- package/docs/sdks/data/README.md +0 -520
- package/docs/sdks/developer/README.md +0 -252
- package/docs/sdks/event/README.md +0 -80
- package/docs/sdks/external/README.md +0 -596
- package/docs/sdks/internal/README.md +0 -1137
- package/funcs/accountGetAccount.d.ts +0 -12
- package/funcs/accountGetAccount.d.ts.map +0 -1
- package/funcs/accountGetAccount.js +0 -118
- package/funcs/accountGetAccount.js.map +0 -1
- package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts +0 -12
- package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +0 -1
- package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.js +0 -116
- package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.js.map +0 -1
- package/funcs/dataAccountV1GetMeta.d.ts +0 -12
- package/funcs/dataAccountV1GetMeta.d.ts.map +0 -1
- package/funcs/dataAccountV1GetMeta.js +0 -118
- package/funcs/dataAccountV1GetMeta.js.map +0 -1
- package/funcs/dataGetApps.d.ts +0 -12
- package/funcs/dataGetApps.d.ts.map +0 -1
- package/funcs/dataGetApps.js +0 -118
- package/funcs/dataGetApps.js.map +0 -1
- package/funcs/dataGetBadges.d.ts +0 -12
- package/funcs/dataGetBadges.d.ts.map +0 -1
- package/funcs/dataGetBadges.js +0 -118
- package/funcs/dataGetBadges.js.map +0 -1
- package/funcs/dataGetDataPoints.d.ts +0 -12
- package/funcs/dataGetDataPoints.d.ts.map +0 -1
- package/funcs/dataGetDataPoints.js +0 -118
- package/funcs/dataGetDataPoints.js.map +0 -1
- package/funcs/dataGetFriends.d.ts +0 -12
- package/funcs/dataGetFriends.d.ts.map +0 -1
- package/funcs/dataGetFriends.js +0 -118
- package/funcs/dataGetFriends.js.map +0 -1
- package/funcs/dataGetInfo.d.ts +0 -12
- package/funcs/dataGetInfo.d.ts.map +0 -1
- package/funcs/dataGetInfo.js +0 -118
- package/funcs/dataGetInfo.js.map +0 -1
- package/funcs/dataGetLeaderboardHistory.d.ts +0 -12
- package/funcs/dataGetLeaderboardHistory.d.ts.map +0 -1
- package/funcs/dataGetLeaderboardHistory.js +0 -116
- package/funcs/dataGetLeaderboardHistory.js.map +0 -1
- package/funcs/developerCreateDeveloperApp.d.ts +0 -12
- package/funcs/developerCreateDeveloperApp.d.ts.map +0 -1
- package/funcs/developerCreateDeveloperApp.js +0 -116
- package/funcs/developerCreateDeveloperApp.js.map +0 -1
- package/funcs/developerDeleteDeveloperApp.d.ts +0 -12
- package/funcs/developerDeleteDeveloperApp.d.ts.map +0 -1
- package/funcs/developerDeleteDeveloperApp.js +0 -116
- package/funcs/developerDeleteDeveloperApp.js.map +0 -1
- package/funcs/developerUpdateApp.d.ts +0 -12
- package/funcs/developerUpdateApp.d.ts.map +0 -1
- package/funcs/developerUpdateApp.js +0 -116
- package/funcs/developerUpdateApp.js.map +0 -1
- package/funcs/eventAdminV1RemoveVanity.d.ts +0 -12
- package/funcs/eventAdminV1RemoveVanity.d.ts.map +0 -1
- package/funcs/eventAdminV1RemoveVanity.js +0 -118
- package/funcs/eventAdminV1RemoveVanity.js.map +0 -1
- package/funcs/externalAppV1ListBadges.d.ts +0 -12
- package/funcs/externalAppV1ListBadges.d.ts.map +0 -1
- package/funcs/externalAppV1ListBadges.js +0 -118
- package/funcs/externalAppV1ListBadges.js.map +0 -1
- package/funcs/externalGet.d.ts +0 -11
- package/funcs/externalGet.d.ts.map +0 -1
- package/funcs/externalGet.js +0 -107
- package/funcs/externalGet.js.map +0 -1
- package/funcs/externalGetApps.d.ts +0 -12
- package/funcs/externalGetApps.d.ts.map +0 -1
- package/funcs/externalGetApps.js +0 -118
- package/funcs/externalGetApps.js.map +0 -1
- package/funcs/externalGetBadges.d.ts +0 -12
- package/funcs/externalGetBadges.d.ts.map +0 -1
- package/funcs/externalGetBadges.js +0 -118
- package/funcs/externalGetBadges.js.map +0 -1
- package/funcs/externalGetDataPoints.d.ts +0 -12
- package/funcs/externalGetDataPoints.d.ts.map +0 -1
- package/funcs/externalGetDataPoints.js +0 -118
- package/funcs/externalGetDataPoints.js.map +0 -1
- package/funcs/externalGetFriends.d.ts +0 -12
- package/funcs/externalGetFriends.d.ts.map +0 -1
- package/funcs/externalGetFriends.js +0 -118
- package/funcs/externalGetFriends.js.map +0 -1
- package/funcs/externalGetInfo.d.ts +0 -12
- package/funcs/externalGetInfo.d.ts.map +0 -1
- package/funcs/externalGetInfo.js +0 -118
- package/funcs/externalGetInfo.js.map +0 -1
- package/funcs/externalGetLeaderboardHistory.d.ts +0 -12
- package/funcs/externalGetLeaderboardHistory.d.ts.map +0 -1
- package/funcs/externalGetLeaderboardHistory.js +0 -116
- package/funcs/externalGetLeaderboardHistory.js.map +0 -1
- package/funcs/imagesDeleteImages.d.ts +0 -12
- package/funcs/imagesDeleteImages.d.ts.map +0 -1
- package/funcs/imagesDeleteImages.js +0 -118
- package/funcs/imagesDeleteImages.js.map +0 -1
- package/funcs/imagesUploadImages.d.ts +0 -12
- package/funcs/imagesUploadImages.d.ts.map +0 -1
- package/funcs/imagesUploadImages.js +0 -118
- package/funcs/imagesUploadImages.js.map +0 -1
- package/funcs/internalAccountV1GetMeta.d.ts +0 -12
- package/funcs/internalAccountV1GetMeta.d.ts.map +0 -1
- package/funcs/internalAccountV1GetMeta.js +0 -118
- package/funcs/internalAccountV1GetMeta.js.map +0 -1
- package/funcs/internalAdminV1RemoveVanity.d.ts +0 -12
- package/funcs/internalAdminV1RemoveVanity.d.ts.map +0 -1
- package/funcs/internalAdminV1RemoveVanity.js +0 -118
- package/funcs/internalAdminV1RemoveVanity.js.map +0 -1
- package/funcs/internalBadgeV1SearchSuggest.d.ts +0 -12
- package/funcs/internalBadgeV1SearchSuggest.d.ts.map +0 -1
- package/funcs/internalBadgeV1SearchSuggest.js +0 -118
- package/funcs/internalBadgeV1SearchSuggest.js.map +0 -1
- package/funcs/internalBadgeV1TagsSuggest.d.ts +0 -12
- package/funcs/internalBadgeV1TagsSuggest.d.ts.map +0 -1
- package/funcs/internalBadgeV1TagsSuggest.js +0 -118
- package/funcs/internalBadgeV1TagsSuggest.js.map +0 -1
- package/funcs/internalCheck.d.ts +0 -17
- package/funcs/internalCheck.d.ts.map +0 -1
- package/funcs/internalCheck.js +0 -111
- package/funcs/internalCheck.js.map +0 -1
- package/funcs/internalCreateDeveloperApp.d.ts +0 -12
- package/funcs/internalCreateDeveloperApp.d.ts.map +0 -1
- package/funcs/internalCreateDeveloperApp.js +0 -116
- package/funcs/internalCreateDeveloperApp.js.map +0 -1
- package/funcs/internalDeleteDeveloperApp.d.ts +0 -12
- package/funcs/internalDeleteDeveloperApp.d.ts.map +0 -1
- package/funcs/internalDeleteDeveloperApp.js +0 -116
- package/funcs/internalDeleteDeveloperApp.js.map +0 -1
- package/funcs/internalDeleteImages.d.ts +0 -12
- package/funcs/internalDeleteImages.d.ts.map +0 -1
- package/funcs/internalDeleteImages.js +0 -118
- package/funcs/internalDeleteImages.js.map +0 -1
- package/funcs/internalGetAccount.d.ts +0 -12
- package/funcs/internalGetAccount.d.ts.map +0 -1
- package/funcs/internalGetAccount.js +0 -118
- package/funcs/internalGetAccount.js.map +0 -1
- package/funcs/internalGetStaff.d.ts +0 -11
- package/funcs/internalGetStaff.d.ts.map +0 -1
- package/funcs/internalGetStaff.js +0 -107
- package/funcs/internalGetStaff.js.map +0 -1
- package/funcs/internalGetTags.d.ts +0 -11
- package/funcs/internalGetTags.d.ts.map +0 -1
- package/funcs/internalGetTags.js +0 -107
- package/funcs/internalGetTags.js.map +0 -1
- package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts +0 -12
- package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +0 -1
- package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.js +0 -116
- package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.js.map +0 -1
- package/funcs/internalUpdateApp.d.ts +0 -12
- package/funcs/internalUpdateApp.d.ts.map +0 -1
- package/funcs/internalUpdateApp.js +0 -116
- package/funcs/internalUpdateApp.js.map +0 -1
- package/funcs/internalUploadImages.d.ts +0 -12
- package/funcs/internalUploadImages.d.ts.map +0 -1
- package/funcs/internalUploadImages.js +0 -118
- package/funcs/internalUploadImages.js.map +0 -1
- package/sdk/data.d.ts +0 -13
- package/sdk/data.d.ts.map +0 -1
- package/sdk/data.js +0 -40
- package/sdk/data.js.map +0 -1
- package/sdk/developer.d.ts +0 -9
- package/sdk/developer.d.ts.map +0 -1
- package/sdk/developer.js +0 -24
- package/sdk/developer.js.map +0 -1
- package/sdk/event.d.ts +0 -7
- package/sdk/event.d.ts.map +0 -1
- package/sdk/event.js +0 -16
- package/sdk/event.js.map +0 -1
- package/sdk/external.d.ts +0 -14
- package/sdk/external.d.ts.map +0 -1
- package/sdk/external.js +0 -44
- package/sdk/external.js.map +0 -1
- package/sdk/internal.d.ts +0 -26
- package/sdk/internal.d.ts.map +0 -1
- package/sdk/internal.js +0 -74
- package/sdk/internal.js.map +0 -1
- package/src/funcs/accountGetAccount.ts +0 -179
- package/src/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.ts +0 -186
- package/src/funcs/dataAccountV1GetMeta.ts +0 -179
- package/src/funcs/dataGetApps.ts +0 -179
- package/src/funcs/dataGetBadges.ts +0 -179
- package/src/funcs/dataGetDataPoints.ts +0 -179
- package/src/funcs/dataGetFriends.ts +0 -179
- package/src/funcs/dataGetInfo.ts +0 -179
- package/src/funcs/dataGetLeaderboardHistory.ts +0 -181
- package/src/funcs/developerCreateDeveloperApp.ts +0 -182
- package/src/funcs/developerDeleteDeveloperApp.ts +0 -184
- package/src/funcs/developerUpdateApp.ts +0 -184
- package/src/funcs/eventAdminV1RemoveVanity.ts +0 -179
- package/src/funcs/externalAppV1ListBadges.ts +0 -179
- package/src/funcs/externalGet.ts +0 -160
- package/src/funcs/externalGetApps.ts +0 -179
- package/src/funcs/externalGetBadges.ts +0 -179
- package/src/funcs/externalGetDataPoints.ts +0 -179
- package/src/funcs/externalGetFriends.ts +0 -179
- package/src/funcs/externalGetInfo.ts +0 -179
- package/src/funcs/externalGetLeaderboardHistory.ts +0 -181
- package/src/funcs/imagesDeleteImages.ts +0 -179
- package/src/funcs/imagesUploadImages.ts +0 -179
- package/src/funcs/internalAccountV1GetMeta.ts +0 -179
- package/src/funcs/internalAdminV1RemoveVanity.ts +0 -179
- package/src/funcs/internalBadgeV1SearchSuggest.ts +0 -180
- package/src/funcs/internalBadgeV1TagsSuggest.ts +0 -180
- package/src/funcs/internalCheck.ts +0 -160
- package/src/funcs/internalCreateDeveloperApp.ts +0 -182
- package/src/funcs/internalDeleteDeveloperApp.ts +0 -184
- package/src/funcs/internalDeleteImages.ts +0 -179
- package/src/funcs/internalGetAccount.ts +0 -179
- package/src/funcs/internalGetStaff.ts +0 -160
- package/src/funcs/internalGetTags.ts +0 -160
- package/src/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.ts +0 -186
- package/src/funcs/internalUpdateApp.ts +0 -184
- package/src/funcs/internalUploadImages.ts +0 -179
- package/src/sdk/data.ts +0 -94
- package/src/sdk/developer.ts +0 -46
- package/src/sdk/event.ts +0 -22
- package/src/sdk/external.ts +0 -104
- package/src/sdk/internal.ts +0 -178
package/docs/sdks/data/README.md
DELETED
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
# Data
|
|
2
|
-
(*data*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
Data of a Steam Account that can be used to display the profile.
|
|
7
|
-
|
|
8
|
-
### Available Operations
|
|
9
|
-
|
|
10
|
-
* [getApps](#getapps)
|
|
11
|
-
* [getBadges](#getbadges)
|
|
12
|
-
* [getDataPoints](#getdatapoints)
|
|
13
|
-
* [getFriends](#getfriends)
|
|
14
|
-
* [getInfo](#getinfo)
|
|
15
|
-
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
16
|
-
* [accountV1GetMeta](#accountv1getmeta)
|
|
17
|
-
|
|
18
|
-
## getApps
|
|
19
|
-
|
|
20
|
-
### Example Usage
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
24
|
-
|
|
25
|
-
const steamSets = new SteamSets({
|
|
26
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
async function run() {
|
|
30
|
-
const result = await steamSets.data.getApps({});
|
|
31
|
-
|
|
32
|
-
// Handle the result
|
|
33
|
-
console.log(result);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
run();
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Standalone function
|
|
40
|
-
|
|
41
|
-
The standalone function version of this method:
|
|
42
|
-
|
|
43
|
-
```typescript
|
|
44
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
45
|
-
import { dataGetApps } from "@steamsets/client-ts/funcs/dataGetApps.js";
|
|
46
|
-
|
|
47
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
48
|
-
// You can create one instance of it to use across an application.
|
|
49
|
-
const steamSets = new SteamSetsCore({
|
|
50
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
async function run() {
|
|
54
|
-
const res = await dataGetApps(steamSets, {});
|
|
55
|
-
|
|
56
|
-
if (!res.ok) {
|
|
57
|
-
throw res.error;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const { value: result } = res;
|
|
61
|
-
|
|
62
|
-
// Handle the result
|
|
63
|
-
console.log(result);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
run();
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Parameters
|
|
70
|
-
|
|
71
|
-
| Parameter | Type | Required | Description |
|
|
72
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
73
|
-
| `request` | [components.V1AccountsAppsRequestBody](../../models/components/v1accountsappsrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
74
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
75
|
-
| `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. |
|
|
76
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
77
|
-
|
|
78
|
-
### Response
|
|
79
|
-
|
|
80
|
-
**Promise\<[operations.AccountV1GetAppsResponse](../../models/operations/accountv1getappsresponse.md)\>**
|
|
81
|
-
|
|
82
|
-
### Errors
|
|
83
|
-
|
|
84
|
-
| Error Type | Status Code | Content Type |
|
|
85
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
86
|
-
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
87
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
88
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
|
-
|
|
90
|
-
## getBadges
|
|
91
|
-
|
|
92
|
-
### Example Usage
|
|
93
|
-
|
|
94
|
-
```typescript
|
|
95
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
96
|
-
|
|
97
|
-
const steamSets = new SteamSets({
|
|
98
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
async function run() {
|
|
102
|
-
const result = await steamSets.data.getBadges({});
|
|
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 { dataGetBadges } from "@steamsets/client-ts/funcs/dataGetBadges.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 dataGetBadges(steamSets, {});
|
|
127
|
-
|
|
128
|
-
if (!res.ok) {
|
|
129
|
-
throw res.error;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const { value: result } = res;
|
|
133
|
-
|
|
134
|
-
// Handle the result
|
|
135
|
-
console.log(result);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
run();
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Parameters
|
|
142
|
-
|
|
143
|
-
| Parameter | Type | Required | Description |
|
|
144
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
145
|
-
| `request` | [components.V1BadgesRequestBody](../../models/components/v1badgesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
146
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
147
|
-
| `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. |
|
|
148
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
149
|
-
|
|
150
|
-
### Response
|
|
151
|
-
|
|
152
|
-
**Promise\<[operations.AccountV1GetBadgesResponse](../../models/operations/accountv1getbadgesresponse.md)\>**
|
|
153
|
-
|
|
154
|
-
### Errors
|
|
155
|
-
|
|
156
|
-
| Error Type | Status Code | Content Type |
|
|
157
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
158
|
-
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
159
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
160
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
161
|
-
|
|
162
|
-
## getDataPoints
|
|
163
|
-
|
|
164
|
-
### Example Usage
|
|
165
|
-
|
|
166
|
-
```typescript
|
|
167
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
168
|
-
|
|
169
|
-
const steamSets = new SteamSets({
|
|
170
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
async function run() {
|
|
174
|
-
const result = await steamSets.data.getDataPoints({});
|
|
175
|
-
|
|
176
|
-
// Handle the result
|
|
177
|
-
console.log(result);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
run();
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Standalone function
|
|
184
|
-
|
|
185
|
-
The standalone function version of this method:
|
|
186
|
-
|
|
187
|
-
```typescript
|
|
188
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
189
|
-
import { dataGetDataPoints } from "@steamsets/client-ts/funcs/dataGetDataPoints.js";
|
|
190
|
-
|
|
191
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
192
|
-
// You can create one instance of it to use across an application.
|
|
193
|
-
const steamSets = new SteamSetsCore({
|
|
194
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
async function run() {
|
|
198
|
-
const res = await dataGetDataPoints(steamSets, {});
|
|
199
|
-
|
|
200
|
-
if (!res.ok) {
|
|
201
|
-
throw res.error;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const { value: result } = res;
|
|
205
|
-
|
|
206
|
-
// Handle the result
|
|
207
|
-
console.log(result);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
run();
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Parameters
|
|
214
|
-
|
|
215
|
-
| Parameter | Type | Required | Description |
|
|
216
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
217
|
-
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
218
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
219
|
-
| `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. |
|
|
220
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
221
|
-
|
|
222
|
-
### Response
|
|
223
|
-
|
|
224
|
-
**Promise\<[operations.AccountV1GetDataPointsResponse](../../models/operations/accountv1getdatapointsresponse.md)\>**
|
|
225
|
-
|
|
226
|
-
### Errors
|
|
227
|
-
|
|
228
|
-
| Error Type | Status Code | Content Type |
|
|
229
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
230
|
-
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
231
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
232
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
233
|
-
|
|
234
|
-
## getFriends
|
|
235
|
-
|
|
236
|
-
### Example Usage
|
|
237
|
-
|
|
238
|
-
```typescript
|
|
239
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
240
|
-
|
|
241
|
-
const steamSets = new SteamSets({
|
|
242
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
async function run() {
|
|
246
|
-
const result = await steamSets.data.getFriends({});
|
|
247
|
-
|
|
248
|
-
// Handle the result
|
|
249
|
-
console.log(result);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
run();
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
### Standalone function
|
|
256
|
-
|
|
257
|
-
The standalone function version of this method:
|
|
258
|
-
|
|
259
|
-
```typescript
|
|
260
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
261
|
-
import { dataGetFriends } from "@steamsets/client-ts/funcs/dataGetFriends.js";
|
|
262
|
-
|
|
263
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
264
|
-
// You can create one instance of it to use across an application.
|
|
265
|
-
const steamSets = new SteamSetsCore({
|
|
266
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
async function run() {
|
|
270
|
-
const res = await dataGetFriends(steamSets, {});
|
|
271
|
-
|
|
272
|
-
if (!res.ok) {
|
|
273
|
-
throw res.error;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const { value: result } = res;
|
|
277
|
-
|
|
278
|
-
// Handle the result
|
|
279
|
-
console.log(result);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
run();
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### Parameters
|
|
286
|
-
|
|
287
|
-
| Parameter | Type | Required | Description |
|
|
288
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
289
|
-
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
290
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
291
|
-
| `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. |
|
|
292
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
293
|
-
|
|
294
|
-
### Response
|
|
295
|
-
|
|
296
|
-
**Promise\<[operations.AccountV1GetFriendsResponse](../../models/operations/accountv1getfriendsresponse.md)\>**
|
|
297
|
-
|
|
298
|
-
### Errors
|
|
299
|
-
|
|
300
|
-
| Error Type | Status Code | Content Type |
|
|
301
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
302
|
-
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
303
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
304
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
305
|
-
|
|
306
|
-
## getInfo
|
|
307
|
-
|
|
308
|
-
### Example Usage
|
|
309
|
-
|
|
310
|
-
```typescript
|
|
311
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
312
|
-
|
|
313
|
-
const steamSets = new SteamSets({
|
|
314
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
async function run() {
|
|
318
|
-
const result = await steamSets.data.getInfo({});
|
|
319
|
-
|
|
320
|
-
// Handle the result
|
|
321
|
-
console.log(result);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
run();
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Standalone function
|
|
328
|
-
|
|
329
|
-
The standalone function version of this method:
|
|
330
|
-
|
|
331
|
-
```typescript
|
|
332
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
333
|
-
import { dataGetInfo } from "@steamsets/client-ts/funcs/dataGetInfo.js";
|
|
334
|
-
|
|
335
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
336
|
-
// You can create one instance of it to use across an application.
|
|
337
|
-
const steamSets = new SteamSetsCore({
|
|
338
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
async function run() {
|
|
342
|
-
const res = await dataGetInfo(steamSets, {});
|
|
343
|
-
|
|
344
|
-
if (!res.ok) {
|
|
345
|
-
throw res.error;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
const { value: result } = res;
|
|
349
|
-
|
|
350
|
-
// Handle the result
|
|
351
|
-
console.log(result);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
run();
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
### Parameters
|
|
358
|
-
|
|
359
|
-
| Parameter | Type | Required | Description |
|
|
360
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
361
|
-
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
362
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
363
|
-
| `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. |
|
|
364
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
365
|
-
|
|
366
|
-
### Response
|
|
367
|
-
|
|
368
|
-
**Promise\<[operations.AccountV1GetInfoResponse](../../models/operations/accountv1getinforesponse.md)\>**
|
|
369
|
-
|
|
370
|
-
### Errors
|
|
371
|
-
|
|
372
|
-
| Error Type | Status Code | Content Type |
|
|
373
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
374
|
-
| errors.ErrorModel | 403, 404, 422, 429 | application/problem+json |
|
|
375
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
376
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
377
|
-
|
|
378
|
-
## getLeaderboardHistory
|
|
379
|
-
|
|
380
|
-
### Example Usage
|
|
381
|
-
|
|
382
|
-
```typescript
|
|
383
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
384
|
-
|
|
385
|
-
const steamSets = new SteamSets({
|
|
386
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
async function run() {
|
|
390
|
-
const result = await steamSets.data.getLeaderboardHistory({});
|
|
391
|
-
|
|
392
|
-
// Handle the result
|
|
393
|
-
console.log(result);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
run();
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
### Standalone function
|
|
400
|
-
|
|
401
|
-
The standalone function version of this method:
|
|
402
|
-
|
|
403
|
-
```typescript
|
|
404
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
405
|
-
import { dataGetLeaderboardHistory } from "@steamsets/client-ts/funcs/dataGetLeaderboardHistory.js";
|
|
406
|
-
|
|
407
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
408
|
-
// You can create one instance of it to use across an application.
|
|
409
|
-
const steamSets = new SteamSetsCore({
|
|
410
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
411
|
-
});
|
|
412
|
-
|
|
413
|
-
async function run() {
|
|
414
|
-
const res = await dataGetLeaderboardHistory(steamSets, {});
|
|
415
|
-
|
|
416
|
-
if (!res.ok) {
|
|
417
|
-
throw res.error;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
const { value: result } = res;
|
|
421
|
-
|
|
422
|
-
// Handle the result
|
|
423
|
-
console.log(result);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
run();
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
### Parameters
|
|
430
|
-
|
|
431
|
-
| Parameter | Type | Required | Description |
|
|
432
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
433
|
-
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
434
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
435
|
-
| `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. |
|
|
436
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
437
|
-
|
|
438
|
-
### Response
|
|
439
|
-
|
|
440
|
-
**Promise\<[operations.AccountV1GetLeaderboardHistoryResponse](../../models/operations/accountv1getleaderboardhistoryresponse.md)\>**
|
|
441
|
-
|
|
442
|
-
### Errors
|
|
443
|
-
|
|
444
|
-
| Error Type | Status Code | Content Type |
|
|
445
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
446
|
-
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
447
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
448
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
449
|
-
|
|
450
|
-
## accountV1GetMeta
|
|
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.data.accountV1GetMeta({});
|
|
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 { dataAccountV1GetMeta } from "@steamsets/client-ts/funcs/dataAccountV1GetMeta.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 dataAccountV1GetMeta(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
|
-
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
506
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
507
|
-
| `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. |
|
|
508
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
509
|
-
|
|
510
|
-
### Response
|
|
511
|
-
|
|
512
|
-
**Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
|
|
513
|
-
|
|
514
|
-
### Errors
|
|
515
|
-
|
|
516
|
-
| Error Type | Status Code | Content Type |
|
|
517
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
518
|
-
| errors.ErrorModel | 404, 422 | application/problem+json |
|
|
519
|
-
| errors.ErrorModel | 500 | application/problem+json |
|
|
520
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|