@steamsets/client-ts 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/docs/sdks/developer/README.md +253 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.js +97 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.js.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.js +97 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.js.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js +98 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/resource.d.ts +3 -0
- package/models/components/resource.d.ts.map +1 -1
- package/models/components/resource.js +1 -0
- package/models/components/resource.js.map +1 -1
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts +28 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.js +50 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.js.map +1 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts +28 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.js +59 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.js.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts +28 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js +50 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts +33 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js +61 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js.map +1 -0
- package/models/components/v1developerappcreaterequestbody.d.ts +83 -0
- package/models/components/v1developerappcreaterequestbody.d.ts.map +1 -0
- package/models/components/v1developerappcreaterequestbody.js +82 -0
- package/models/components/v1developerappcreaterequestbody.js.map +1 -0
- package/models/components/v1developerappcreateresponsebody.d.ts +33 -0
- package/models/components/v1developerappcreateresponsebody.d.ts.map +1 -0
- package/models/components/v1developerappcreateresponsebody.js +61 -0
- package/models/components/v1developerappcreateresponsebody.js.map +1 -0
- package/models/components/v1getsettingsbody.d.ts +0 -5
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +0 -2
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/operations/accountv1settingsdeveloperappcreate.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappcreate.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappcreate.js +66 -0
- package/models/operations/accountv1settingsdeveloperappcreate.js.map +1 -0
- package/models/operations/accountv1settingsdeveloperappdelete.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappdelete.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappdelete.js +66 -0
- package/models/operations/accountv1settingsdeveloperappdelete.js.map +1 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.js +66 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/developer.d.ts +18 -0
- package/sdk/developer.d.ts.map +1 -0
- package/sdk/developer.js +33 -0
- package/sdk/developer.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts +132 -0
- package/src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts +134 -0
- package/src/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.ts +135 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +6 -0
- package/src/models/components/resource.ts +1 -0
- package/src/models/components/v1accountdeveloperappdeleterequestbody.ts +50 -0
- package/src/models/components/v1accountdeveloperappdeleteresponsebody.ts +59 -0
- package/src/models/components/v1accountdeveloperappgeneratekeyrequestbody.ts +52 -0
- package/src/models/components/v1accountdeveloperappgeneratekeyresponsebody.ts +68 -0
- package/src/models/components/v1developerappcreaterequestbody.ts +109 -0
- package/src/models/components/v1developerappcreateresponsebody.ts +64 -0
- package/src/models/components/v1getsettingsbody.ts +0 -7
- package/src/models/operations/accountv1settingsdeveloperappcreate.ts +74 -0
- package/src/models/operations/accountv1settingsdeveloperappdelete.ts +76 -0
- package/src/models/operations/accountv1settingsdeveloperappgeneratekey.ts +77 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/developer.ts +55 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -127,6 +127,12 @@ run();
|
|
|
127
127
|
* [accountV1GetStaff](docs/sdks/data/README.md#accountv1getstaff) - Get Staff Members and their info
|
|
128
128
|
* [accountV1Queue](docs/sdks/data/README.md#accountv1queue) - Queue a app for processing
|
|
129
129
|
|
|
130
|
+
### [developer](docs/sdks/developer/README.md)
|
|
131
|
+
|
|
132
|
+
* [accountV1SettingsDeveloperAppCreate](docs/sdks/developer/README.md#accountv1settingsdeveloperappcreate) - Add a new Developer App to the account
|
|
133
|
+
* [accountV1SettingsDeveloperAppDelete](docs/sdks/developer/README.md#accountv1settingsdeveloperappdelete) - Delete a developer app from the account
|
|
134
|
+
* [accountV1SettingsDeveloperAppGenerateKey](docs/sdks/developer/README.md#accountv1settingsdeveloperappgeneratekey) - Generate a new API key for the developer app
|
|
135
|
+
|
|
130
136
|
### [leaderboard](docs/sdks/leaderboard/README.md)
|
|
131
137
|
|
|
132
138
|
* [leaderboardV1GetAccount](docs/sdks/leaderboard/README.md#leaderboardv1getaccount) - Get an leaderboard for accounts
|
|
@@ -545,6 +551,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
545
551
|
- [dataAccountV1GetLeaderboardHistory](docs/sdks/data/README.md#accountv1getleaderboardhistory)
|
|
546
552
|
- [dataAccountV1GetStaff](docs/sdks/data/README.md#accountv1getstaff)
|
|
547
553
|
- [dataAccountV1Queue](docs/sdks/data/README.md#accountv1queue)
|
|
554
|
+
- [developerAccountV1SettingsDeveloperAppCreate](docs/sdks/developer/README.md#accountv1settingsdeveloperappcreate)
|
|
555
|
+
- [developerAccountV1SettingsDeveloperAppDelete](docs/sdks/developer/README.md#accountv1settingsdeveloperappdelete)
|
|
556
|
+
- [developerAccountV1SettingsDeveloperAppGenerateKey](docs/sdks/developer/README.md#accountv1settingsdeveloperappgeneratekey)
|
|
548
557
|
- [leaderboardLeaderboardV1GetAccount](docs/sdks/leaderboard/README.md#leaderboardv1getaccount)
|
|
549
558
|
- [livenessLiveness](docs/sdks/liveness/README.md#liveness)
|
|
550
559
|
- [locationLocation](docs/sdks/location/README.md#location)
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Developer
|
|
2
|
+
(*developer*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Developer App related operations
|
|
7
|
+
|
|
8
|
+
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [accountV1SettingsDeveloperAppCreate](#accountv1settingsdeveloperappcreate) - Add a new Developer App to the account
|
|
11
|
+
* [accountV1SettingsDeveloperAppDelete](#accountv1settingsdeveloperappdelete) - Delete a developer app from the account
|
|
12
|
+
* [accountV1SettingsDeveloperAppGenerateKey](#accountv1settingsdeveloperappgeneratekey) - Generate a new API key for the developer app
|
|
13
|
+
|
|
14
|
+
## accountV1SettingsDeveloperAppCreate
|
|
15
|
+
|
|
16
|
+
Add a new Developer App to the account
|
|
17
|
+
|
|
18
|
+
### Example Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
22
|
+
|
|
23
|
+
const steamSets = new SteamSets({
|
|
24
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
async function run() {
|
|
28
|
+
const result = await steamSets.developer.accountV1SettingsDeveloperAppCreate({
|
|
29
|
+
description: "Your App Description",
|
|
30
|
+
environment: "production",
|
|
31
|
+
generateKey: true,
|
|
32
|
+
icon: "https://yoururl.com/icon.png",
|
|
33
|
+
name: "Your App",
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Handle the result
|
|
37
|
+
console.log(result);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
run();
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Standalone function
|
|
44
|
+
|
|
45
|
+
The standalone function version of this method:
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
49
|
+
import { developerAccountV1SettingsDeveloperAppCreate } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppCreate.js";
|
|
50
|
+
|
|
51
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
52
|
+
// You can create one instance of it to use across an application.
|
|
53
|
+
const steamSets = new SteamSetsCore({
|
|
54
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
async function run() {
|
|
58
|
+
const res = await developerAccountV1SettingsDeveloperAppCreate(steamSets, {
|
|
59
|
+
description: "Your App Description",
|
|
60
|
+
environment: "production",
|
|
61
|
+
generateKey: true,
|
|
62
|
+
icon: "https://yoururl.com/icon.png",
|
|
63
|
+
name: "Your App",
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
if (!res.ok) {
|
|
67
|
+
throw res.error;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const { value: result } = res;
|
|
71
|
+
|
|
72
|
+
// Handle the result
|
|
73
|
+
console.log(result);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
run();
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
| Parameter | Type | Required | Description |
|
|
82
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
83
|
+
| `request` | [components.V1DeveloperAppCreateRequestBody](../../models/components/v1developerappcreaterequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
84
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
85
|
+
| `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. |
|
|
86
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
87
|
+
|
|
88
|
+
### Response
|
|
89
|
+
|
|
90
|
+
**Promise\<[operations.AccountV1SettingsDeveloperAppCreateResponse](../../models/operations/accountv1settingsdeveloperappcreateresponse.md)\>**
|
|
91
|
+
|
|
92
|
+
### Errors
|
|
93
|
+
|
|
94
|
+
| Error Object | Status Code | Content Type |
|
|
95
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
96
|
+
| errors.ErrorModel | 404,422,429,500 | application/problem+json |
|
|
97
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## accountV1SettingsDeveloperAppDelete
|
|
101
|
+
|
|
102
|
+
Delete a developer app from the account
|
|
103
|
+
|
|
104
|
+
### Example Usage
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
108
|
+
|
|
109
|
+
const steamSets = new SteamSets({
|
|
110
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
async function run() {
|
|
114
|
+
const result = await steamSets.developer.accountV1SettingsDeveloperAppDelete({
|
|
115
|
+
publicId: "da_123456",
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// Handle the result
|
|
119
|
+
console.log(result);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
run();
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Standalone function
|
|
126
|
+
|
|
127
|
+
The standalone function version of this method:
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
131
|
+
import { developerAccountV1SettingsDeveloperAppDelete } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppDelete.js";
|
|
132
|
+
|
|
133
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
134
|
+
// You can create one instance of it to use across an application.
|
|
135
|
+
const steamSets = new SteamSetsCore({
|
|
136
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
async function run() {
|
|
140
|
+
const res = await developerAccountV1SettingsDeveloperAppDelete(steamSets, {
|
|
141
|
+
publicId: "da_123456",
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
if (!res.ok) {
|
|
145
|
+
throw res.error;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const { value: result } = res;
|
|
149
|
+
|
|
150
|
+
// Handle the result
|
|
151
|
+
console.log(result);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
run();
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
| Parameter | Type | Required | Description |
|
|
160
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
161
|
+
| `request` | [components.V1AccountDeveloperAppDeleteRequestBody](../../models/components/v1accountdeveloperappdeleterequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
162
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
163
|
+
| `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. |
|
|
164
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
165
|
+
|
|
166
|
+
### Response
|
|
167
|
+
|
|
168
|
+
**Promise\<[operations.AccountV1SettingsDeveloperAppDeleteResponse](../../models/operations/accountv1settingsdeveloperappdeleteresponse.md)\>**
|
|
169
|
+
|
|
170
|
+
### Errors
|
|
171
|
+
|
|
172
|
+
| Error Object | Status Code | Content Type |
|
|
173
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
174
|
+
| errors.ErrorModel | 404,422,429,500 | application/problem+json |
|
|
175
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
## accountV1SettingsDeveloperAppGenerateKey
|
|
179
|
+
|
|
180
|
+
Generate a new API key for the developer app
|
|
181
|
+
|
|
182
|
+
### Example Usage
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
186
|
+
|
|
187
|
+
const steamSets = new SteamSets({
|
|
188
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
async function run() {
|
|
192
|
+
const result = await steamSets.developer.accountV1SettingsDeveloperAppGenerateKey({
|
|
193
|
+
publicId: "da_123456",
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// Handle the result
|
|
197
|
+
console.log(result);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
run();
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Standalone function
|
|
204
|
+
|
|
205
|
+
The standalone function version of this method:
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
209
|
+
import { developerAccountV1SettingsDeveloperAppGenerateKey } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js";
|
|
210
|
+
|
|
211
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
212
|
+
// You can create one instance of it to use across an application.
|
|
213
|
+
const steamSets = new SteamSetsCore({
|
|
214
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
async function run() {
|
|
218
|
+
const res = await developerAccountV1SettingsDeveloperAppGenerateKey(steamSets, {
|
|
219
|
+
publicId: "da_123456",
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
if (!res.ok) {
|
|
223
|
+
throw res.error;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
const { value: result } = res;
|
|
227
|
+
|
|
228
|
+
// Handle the result
|
|
229
|
+
console.log(result);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
run();
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Parameters
|
|
236
|
+
|
|
237
|
+
| Parameter | Type | Required | Description |
|
|
238
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
239
|
+
| `request` | [components.V1AccountDeveloperAppGenerateKeyRequestBody](../../models/components/v1accountdeveloperappgeneratekeyrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
240
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
241
|
+
| `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. |
|
|
242
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
243
|
+
|
|
244
|
+
### Response
|
|
245
|
+
|
|
246
|
+
**Promise\<[operations.AccountV1SettingsDeveloperAppGenerateKeyResponse](../../models/operations/accountv1settingsdeveloperappgeneratekeyresponse.md)\>**
|
|
247
|
+
|
|
248
|
+
### Errors
|
|
249
|
+
|
|
250
|
+
| Error Object | Status Code | Content Type |
|
|
251
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
252
|
+
| errors.ErrorModel | 404,422,429,500 | application/problem+json |
|
|
253
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Add a new Developer App to the account
|
|
12
|
+
*/
|
|
13
|
+
export declare function developerAccountV1SettingsDeveloperAppCreate(client: SteamSetsCore, request: components.V1DeveloperAppCreateRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsDeveloperAppCreateResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=developerAccountV1SettingsDeveloperAppCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerAccountV1SettingsDeveloperAppCreate.d.ts","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,4CAA4C,CAChE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.developerAccountV1SettingsDeveloperAppCreate = developerAccountV1SettingsDeveloperAppCreate;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
36
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
+
/**
|
|
39
|
+
* Add a new Developer App to the account
|
|
40
|
+
*/
|
|
41
|
+
async function developerAccountV1SettingsDeveloperAppCreate(client, request, options) {
|
|
42
|
+
const input = request;
|
|
43
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => components.V1DeveloperAppCreateRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44
|
+
if (!parsed.ok) {
|
|
45
|
+
return parsed;
|
|
46
|
+
}
|
|
47
|
+
const payload = parsed.value;
|
|
48
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
49
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/CreateDeveloperApp")();
|
|
50
|
+
const headers = new Headers({
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
Accept: "application/json",
|
|
53
|
+
});
|
|
54
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.session);
|
|
55
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
56
|
+
const context = {
|
|
57
|
+
operationID: "account.v1.settings.developer-app-create",
|
|
58
|
+
oAuth2Scopes: [],
|
|
59
|
+
securitySource: client._options.session,
|
|
60
|
+
};
|
|
61
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
62
|
+
const requestRes = client._createRequest(context, {
|
|
63
|
+
security: requestSecurity,
|
|
64
|
+
method: "POST",
|
|
65
|
+
path: path,
|
|
66
|
+
headers: headers,
|
|
67
|
+
body: body,
|
|
68
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
69
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
70
|
+
}, options);
|
|
71
|
+
if (!requestRes.ok) {
|
|
72
|
+
return requestRes;
|
|
73
|
+
}
|
|
74
|
+
const req = requestRes.value;
|
|
75
|
+
const doResult = await client._do(req, {
|
|
76
|
+
context,
|
|
77
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
78
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
79
|
+
|| client._options.retryConfig,
|
|
80
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
81
|
+
});
|
|
82
|
+
if (!doResult.ok) {
|
|
83
|
+
return doResult;
|
|
84
|
+
}
|
|
85
|
+
const response = doResult.value;
|
|
86
|
+
const responseFields = {
|
|
87
|
+
HttpMeta: { Response: response, Request: req },
|
|
88
|
+
};
|
|
89
|
+
const [result] = await M.match(M.json(200, operations.AccountV1SettingsDeveloperAppCreateResponse$inboundSchema, { key: "V1DeveloperAppCreateResponseBody" }), M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
90
|
+
ctype: "application/problem+json",
|
|
91
|
+
}), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
|
|
92
|
+
if (!result.ok) {
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=developerAccountV1SettingsDeveloperAppCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerAccountV1SettingsDeveloperAppCreate.js","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,oGAuGC;AA9HD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,4CAA4C,CAChE,MAAqB,EACrB,OAAmD,EACnD,OAAwB;IAcxB,MAAM,KAAK,GAAG,OAAO,CAAC;IAEtB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,8CAA8C,CAAC,KAAK,CAAC,KAAK,CAAC,EACxE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,+CAA+C,CAAC,EAAE,CAAC;IAE3E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;QAC1B,cAAc,EAAE,kBAAkB;QAClC,MAAM,EAAE,kBAAkB;KAC3B,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAA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AC;KACvE,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,yDAAyD,EACpE,EAAE,GAAG,EAAE,kCAAkC,EAAE,CAC5C,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC/D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Delete a developer app from the account
|
|
12
|
+
*/
|
|
13
|
+
export declare function developerAccountV1SettingsDeveloperAppDelete(client: SteamSetsCore, request: components.V1AccountDeveloperAppDeleteRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsDeveloperAppDeleteResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=developerAccountV1SettingsDeveloperAppDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerAccountV1SettingsDeveloperAppDelete.d.ts","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,4CAA4C,CAChE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyFA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.developerAccountV1SettingsDeveloperAppDelete = developerAccountV1SettingsDeveloperAppDelete;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
36
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
|
+
/**
|
|
39
|
+
* Delete a developer app from the account
|
|
40
|
+
*/
|
|
41
|
+
async function developerAccountV1SettingsDeveloperAppDelete(client, request, options) {
|
|
42
|
+
const input = request;
|
|
43
|
+
const parsed = (0, schemas_js_1.safeParse)(input, (value) => components.V1AccountDeveloperAppDeleteRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
44
|
+
if (!parsed.ok) {
|
|
45
|
+
return parsed;
|
|
46
|
+
}
|
|
47
|
+
const payload = parsed.value;
|
|
48
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
49
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/DeleteDeveloperApp")();
|
|
50
|
+
const headers = new Headers({
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
Accept: "application/json",
|
|
53
|
+
});
|
|
54
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.session);
|
|
55
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
56
|
+
const context = {
|
|
57
|
+
operationID: "account.v1.settings.developer-app-delete",
|
|
58
|
+
oAuth2Scopes: [],
|
|
59
|
+
securitySource: client._options.session,
|
|
60
|
+
};
|
|
61
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
62
|
+
const requestRes = client._createRequest(context, {
|
|
63
|
+
security: requestSecurity,
|
|
64
|
+
method: "POST",
|
|
65
|
+
path: path,
|
|
66
|
+
headers: headers,
|
|
67
|
+
body: body,
|
|
68
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
69
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
70
|
+
}, options);
|
|
71
|
+
if (!requestRes.ok) {
|
|
72
|
+
return requestRes;
|
|
73
|
+
}
|
|
74
|
+
const req = requestRes.value;
|
|
75
|
+
const doResult = await client._do(req, {
|
|
76
|
+
context,
|
|
77
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
78
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
79
|
+
|| client._options.retryConfig,
|
|
80
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
81
|
+
});
|
|
82
|
+
if (!doResult.ok) {
|
|
83
|
+
return doResult;
|
|
84
|
+
}
|
|
85
|
+
const response = doResult.value;
|
|
86
|
+
const responseFields = {
|
|
87
|
+
HttpMeta: { Response: response, Request: req },
|
|
88
|
+
};
|
|
89
|
+
const [result] = await M.match(M.json(200, operations.AccountV1SettingsDeveloperAppDeleteResponse$inboundSchema, { key: "V1AccountDeveloperAppDeleteResponseBody" }), M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
90
|
+
ctype: "application/problem+json",
|
|
91
|
+
}), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
|
|
92
|
+
if (!result.ok) {
|
|
93
|
+
return result;
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=developerAccountV1SettingsDeveloperAppDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerAccountV1SettingsDeveloperAppDelete.js","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,oGAyGC;AAhID,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AA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AAE,yCAAyC,EAAE,CACnD,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC/D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Generate a new API key for the developer app
|
|
12
|
+
*/
|
|
13
|
+
export declare function developerAccountV1SettingsDeveloperAppGenerateKey(client: SteamSetsCore, request: components.V1AccountDeveloperAppGenerateKeyRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsDeveloperAppGenerateKeyResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
|
+
//# sourceMappingURL=developerAccountV1SettingsDeveloperAppGenerateKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developerAccountV1SettingsDeveloperAppGenerateKey.d.ts","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,iDAAiD,CACrE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,gDAAgD,EACzD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0FA"}
|