@steamsets/client-ts 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/docs/sdks/account/README.md +22 -22
- package/docs/sdks/connection/README.md +8 -8
- package/docs/sdks/liveness/README.md +2 -2
- package/docs/sdks/session/README.md +6 -6
- package/docs/sdks/settings/README.md +4 -4
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.js +2 -2
- package/lib/security.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ yarn add @steamsets/client-ts zod
|
|
|
56
56
|
import { SteamSets } from "@steamsets/client-ts";
|
|
57
57
|
|
|
58
58
|
const steamSets = new SteamSets({
|
|
59
|
-
session: "<
|
|
59
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
async function run() {
|
|
@@ -124,7 +124,7 @@ To change the default retry strategy for a single API call, simply provide a ret
|
|
|
124
124
|
import { SteamSets } from "@steamsets/client-ts";
|
|
125
125
|
|
|
126
126
|
const steamSets = new SteamSets({
|
|
127
|
-
session: "<
|
|
127
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
async function run() {
|
|
@@ -170,7 +170,7 @@ const steamSets = new SteamSets({
|
|
|
170
170
|
},
|
|
171
171
|
retryConnectionErrors: false,
|
|
172
172
|
},
|
|
173
|
-
session: "<
|
|
173
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
174
174
|
});
|
|
175
175
|
|
|
176
176
|
async function run() {
|
|
@@ -206,7 +206,7 @@ import { SteamSets } from "@steamsets/client-ts";
|
|
|
206
206
|
import { SDKValidationError } from "@steamsets/client-ts/models/errors";
|
|
207
207
|
|
|
208
208
|
const steamSets = new SteamSets({
|
|
209
|
-
session: "<
|
|
209
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
async function run() {
|
|
@@ -260,7 +260,7 @@ import { SteamSets } from "@steamsets/client-ts";
|
|
|
260
260
|
|
|
261
261
|
const steamSets = new SteamSets({
|
|
262
262
|
serverIdx: 0,
|
|
263
|
-
session: "<
|
|
263
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
async function run() {
|
|
@@ -287,7 +287,7 @@ import { SteamSets } from "@steamsets/client-ts";
|
|
|
287
287
|
|
|
288
288
|
const steamSets = new SteamSets({
|
|
289
289
|
serverURL: "https://api.steamsets.com",
|
|
290
|
-
session: "<
|
|
290
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
async function run() {
|
|
@@ -361,16 +361,16 @@ const sdk = new SteamSets({ httpClient });
|
|
|
361
361
|
|
|
362
362
|
This SDK supports the following security scheme globally:
|
|
363
363
|
|
|
364
|
-
| Name
|
|
365
|
-
|
|
|
366
|
-
| `session`
|
|
364
|
+
| Name | Type | Scheme |
|
|
365
|
+
| ----------- | ----------- | ----------- |
|
|
366
|
+
| `session` | http | HTTP Bearer |
|
|
367
367
|
|
|
368
368
|
To authenticate with the API the `session` parameter must be set when initializing the SDK client instance. For example:
|
|
369
369
|
```typescript
|
|
370
370
|
import { SteamSets } from "@steamsets/client-ts";
|
|
371
371
|
|
|
372
372
|
const steamSets = new SteamSets({
|
|
373
|
-
session: "<
|
|
373
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
374
374
|
});
|
|
375
375
|
|
|
376
376
|
async function run() {
|
|
@@ -29,7 +29,7 @@ Connect a new Social Provider
|
|
|
29
29
|
import { SteamSets } from "@steamsets/client-ts";
|
|
30
30
|
|
|
31
31
|
const steamSets = new SteamSets({
|
|
32
|
-
session: "<
|
|
32
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
async function run() {
|
|
@@ -57,7 +57,7 @@ import { accountAccountV1ConnectionConnect } from "@steamsets/client-ts/funcs/ac
|
|
|
57
57
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
58
58
|
// You can create one instance of it to use across an application.
|
|
59
59
|
const steamSets = new SteamSetsCore({
|
|
60
|
-
session: "<
|
|
60
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
async function run() {
|
|
@@ -109,7 +109,7 @@ Remove a connection
|
|
|
109
109
|
import { SteamSets } from "@steamsets/client-ts";
|
|
110
110
|
|
|
111
111
|
const steamSets = new SteamSets({
|
|
112
|
-
session: "<
|
|
112
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
async function run() {
|
|
@@ -136,7 +136,7 @@ import { accountAccountV1ConnectionDeleteConnection } from "@steamsets/client-ts
|
|
|
136
136
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
137
137
|
// You can create one instance of it to use across an application.
|
|
138
138
|
const steamSets = new SteamSetsCore({
|
|
139
|
-
session: "<
|
|
139
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
140
140
|
});
|
|
141
141
|
|
|
142
142
|
async function run() {
|
|
@@ -187,7 +187,7 @@ Deletes a session, can also be used to logout
|
|
|
187
187
|
import { SteamSets } from "@steamsets/client-ts";
|
|
188
188
|
|
|
189
189
|
const steamSets = new SteamSets({
|
|
190
|
-
session: "<
|
|
190
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
191
191
|
});
|
|
192
192
|
|
|
193
193
|
async function run() {
|
|
@@ -214,7 +214,7 @@ import { accountAccountV1SessionDelete } from "@steamsets/client-ts/funcs/accoun
|
|
|
214
214
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
215
215
|
// You can create one instance of it to use across an application.
|
|
216
216
|
const steamSets = new SteamSetsCore({
|
|
217
|
-
session: "<
|
|
217
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
218
218
|
});
|
|
219
219
|
|
|
220
220
|
async function run() {
|
|
@@ -265,7 +265,7 @@ Get Account Apps
|
|
|
265
265
|
import { SteamSets } from "@steamsets/client-ts";
|
|
266
266
|
|
|
267
267
|
const steamSets = new SteamSets({
|
|
268
|
-
session: "<
|
|
268
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
269
269
|
});
|
|
270
270
|
|
|
271
271
|
async function run() {
|
|
@@ -290,7 +290,7 @@ import { accountAccountV1GetApps } from "@steamsets/client-ts/funcs/accountAccou
|
|
|
290
290
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
291
291
|
// You can create one instance of it to use across an application.
|
|
292
292
|
const steamSets = new SteamSetsCore({
|
|
293
|
-
session: "<
|
|
293
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
294
294
|
});
|
|
295
295
|
|
|
296
296
|
async function run() {
|
|
@@ -338,7 +338,7 @@ Get Account Badges
|
|
|
338
338
|
import { SteamSets } from "@steamsets/client-ts";
|
|
339
339
|
|
|
340
340
|
const steamSets = new SteamSets({
|
|
341
|
-
session: "<
|
|
341
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
342
342
|
});
|
|
343
343
|
|
|
344
344
|
async function run() {
|
|
@@ -363,7 +363,7 @@ import { accountAccountV1GetBadges } from "@steamsets/client-ts/funcs/accountAcc
|
|
|
363
363
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
364
364
|
// You can create one instance of it to use across an application.
|
|
365
365
|
const steamSets = new SteamSetsCore({
|
|
366
|
-
session: "<
|
|
366
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
367
367
|
});
|
|
368
368
|
|
|
369
369
|
async function run() {
|
|
@@ -411,7 +411,7 @@ Gets all session data
|
|
|
411
411
|
import { SteamSets } from "@steamsets/client-ts";
|
|
412
412
|
|
|
413
413
|
const steamSets = new SteamSets({
|
|
414
|
-
session: "<
|
|
414
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
415
415
|
});
|
|
416
416
|
|
|
417
417
|
async function run() {
|
|
@@ -436,7 +436,7 @@ import { accountAccountV1SessionGet } from "@steamsets/client-ts/funcs/accountAc
|
|
|
436
436
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
437
437
|
// You can create one instance of it to use across an application.
|
|
438
438
|
const steamSets = new SteamSetsCore({
|
|
439
|
-
session: "<
|
|
439
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
440
440
|
});
|
|
441
441
|
|
|
442
442
|
async function run() {
|
|
@@ -484,7 +484,7 @@ Gets all settings for the account
|
|
|
484
484
|
import { SteamSets } from "@steamsets/client-ts";
|
|
485
485
|
|
|
486
486
|
const steamSets = new SteamSets({
|
|
487
|
-
session: "<
|
|
487
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
488
488
|
});
|
|
489
489
|
|
|
490
490
|
async function run() {
|
|
@@ -509,7 +509,7 @@ import { accountAccountV1SettingsGet } from "@steamsets/client-ts/funcs/accountA
|
|
|
509
509
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
510
510
|
// You can create one instance of it to use across an application.
|
|
511
511
|
const steamSets = new SteamSetsCore({
|
|
512
|
-
session: "<
|
|
512
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
513
513
|
});
|
|
514
514
|
|
|
515
515
|
async function run() {
|
|
@@ -557,7 +557,7 @@ Logs a user in and creates a new session
|
|
|
557
557
|
import { SteamSets } from "@steamsets/client-ts";
|
|
558
558
|
|
|
559
559
|
const steamSets = new SteamSets({
|
|
560
|
-
session: "<
|
|
560
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
561
561
|
});
|
|
562
562
|
|
|
563
563
|
async function run() {
|
|
@@ -595,7 +595,7 @@ import { accountAccountV1SessionLogin } from "@steamsets/client-ts/funcs/account
|
|
|
595
595
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
596
596
|
// You can create one instance of it to use across an application.
|
|
597
597
|
const steamSets = new SteamSetsCore({
|
|
598
|
-
session: "<
|
|
598
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
599
599
|
});
|
|
600
600
|
|
|
601
601
|
async function run() {
|
|
@@ -657,7 +657,7 @@ Make a connection visible/invisible
|
|
|
657
657
|
import { SteamSets } from "@steamsets/client-ts";
|
|
658
658
|
|
|
659
659
|
const steamSets = new SteamSets({
|
|
660
|
-
session: "<
|
|
660
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
661
661
|
});
|
|
662
662
|
|
|
663
663
|
async function run() {
|
|
@@ -685,7 +685,7 @@ import { accountAccountV1ConnectionUpdateConnection } from "@steamsets/client-ts
|
|
|
685
685
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
686
686
|
// You can create one instance of it to use across an application.
|
|
687
687
|
const steamSets = new SteamSetsCore({
|
|
688
|
-
session: "<
|
|
688
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
689
689
|
});
|
|
690
690
|
|
|
691
691
|
async function run() {
|
|
@@ -737,7 +737,7 @@ Update settings for the logged in account
|
|
|
737
737
|
import { SteamSets } from "@steamsets/client-ts";
|
|
738
738
|
|
|
739
739
|
const steamSets = new SteamSets({
|
|
740
|
-
session: "<
|
|
740
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
741
741
|
});
|
|
742
742
|
|
|
743
743
|
async function run() {
|
|
@@ -762,7 +762,7 @@ import { accountAccountV1SettingsUpdate } from "@steamsets/client-ts/funcs/accou
|
|
|
762
762
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
763
763
|
// You can create one instance of it to use across an application.
|
|
764
764
|
const steamSets = new SteamSetsCore({
|
|
765
|
-
session: "<
|
|
765
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
766
766
|
});
|
|
767
767
|
|
|
768
768
|
async function run() {
|
|
@@ -811,7 +811,7 @@ Verify a domain connection only atm
|
|
|
811
811
|
import { SteamSets } from "@steamsets/client-ts";
|
|
812
812
|
|
|
813
813
|
const steamSets = new SteamSets({
|
|
814
|
-
session: "<
|
|
814
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
815
815
|
});
|
|
816
816
|
|
|
817
817
|
async function run() {
|
|
@@ -838,7 +838,7 @@ import { accountAccountV1ConnectionVerifyConnection } from "@steamsets/client-ts
|
|
|
838
838
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
839
839
|
// You can create one instance of it to use across an application.
|
|
840
840
|
const steamSets = new SteamSetsCore({
|
|
841
|
-
session: "<
|
|
841
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
842
842
|
});
|
|
843
843
|
|
|
844
844
|
async function run() {
|
|
@@ -22,7 +22,7 @@ Connect a new Social Provider
|
|
|
22
22
|
import { SteamSets } from "@steamsets/client-ts";
|
|
23
23
|
|
|
24
24
|
const steamSets = new SteamSets({
|
|
25
|
-
session: "<
|
|
25
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function run() {
|
|
@@ -50,7 +50,7 @@ import { connectionAccountV1ConnectionConnect } from "@steamsets/client-ts/funcs
|
|
|
50
50
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
51
51
|
// You can create one instance of it to use across an application.
|
|
52
52
|
const steamSets = new SteamSetsCore({
|
|
53
|
-
session: "<
|
|
53
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
async function run() {
|
|
@@ -102,7 +102,7 @@ Remove a connection
|
|
|
102
102
|
import { SteamSets } from "@steamsets/client-ts";
|
|
103
103
|
|
|
104
104
|
const steamSets = new SteamSets({
|
|
105
|
-
session: "<
|
|
105
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
async function run() {
|
|
@@ -129,7 +129,7 @@ import { connectionAccountV1ConnectionDeleteConnection } from "@steamsets/client
|
|
|
129
129
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
130
130
|
// You can create one instance of it to use across an application.
|
|
131
131
|
const steamSets = new SteamSetsCore({
|
|
132
|
-
session: "<
|
|
132
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
async function run() {
|
|
@@ -180,7 +180,7 @@ Make a connection visible/invisible
|
|
|
180
180
|
import { SteamSets } from "@steamsets/client-ts";
|
|
181
181
|
|
|
182
182
|
const steamSets = new SteamSets({
|
|
183
|
-
session: "<
|
|
183
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
async function run() {
|
|
@@ -208,7 +208,7 @@ import { connectionAccountV1ConnectionUpdateConnection } from "@steamsets/client
|
|
|
208
208
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
209
209
|
// You can create one instance of it to use across an application.
|
|
210
210
|
const steamSets = new SteamSetsCore({
|
|
211
|
-
session: "<
|
|
211
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
212
212
|
});
|
|
213
213
|
|
|
214
214
|
async function run() {
|
|
@@ -260,7 +260,7 @@ Verify a domain connection only atm
|
|
|
260
260
|
import { SteamSets } from "@steamsets/client-ts";
|
|
261
261
|
|
|
262
262
|
const steamSets = new SteamSets({
|
|
263
|
-
session: "<
|
|
263
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
async function run() {
|
|
@@ -287,7 +287,7 @@ import { connectionAccountV1ConnectionVerifyConnection } from "@steamsets/client
|
|
|
287
287
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
288
288
|
// You can create one instance of it to use across an application.
|
|
289
289
|
const steamSets = new SteamSetsCore({
|
|
290
|
-
session: "<
|
|
290
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
async function run() {
|
|
@@ -19,7 +19,7 @@ This endpoint checks if the service is alive.
|
|
|
19
19
|
import { SteamSets } from "@steamsets/client-ts";
|
|
20
20
|
|
|
21
21
|
const steamSets = new SteamSets({
|
|
22
|
-
session: "<
|
|
22
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
async function run() {
|
|
@@ -44,7 +44,7 @@ import { livenessLiveness } from "@steamsets/client-ts/funcs/livenessLiveness.js
|
|
|
44
44
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
45
45
|
// You can create one instance of it to use across an application.
|
|
46
46
|
const steamSets = new SteamSetsCore({
|
|
47
|
-
session: "<
|
|
47
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
async function run() {
|
|
@@ -17,7 +17,7 @@ Deletes a session, can also be used to logout
|
|
|
17
17
|
import { SteamSets } from "@steamsets/client-ts";
|
|
18
18
|
|
|
19
19
|
const steamSets = new SteamSets({
|
|
20
|
-
session: "<
|
|
20
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
async function run() {
|
|
@@ -44,7 +44,7 @@ import { sessionAccountV1SessionDelete } from "@steamsets/client-ts/funcs/sessio
|
|
|
44
44
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
45
45
|
// You can create one instance of it to use across an application.
|
|
46
46
|
const steamSets = new SteamSetsCore({
|
|
47
|
-
session: "<
|
|
47
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
async function run() {
|
|
@@ -95,7 +95,7 @@ Gets all session data
|
|
|
95
95
|
import { SteamSets } from "@steamsets/client-ts";
|
|
96
96
|
|
|
97
97
|
const steamSets = new SteamSets({
|
|
98
|
-
session: "<
|
|
98
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
async function run() {
|
|
@@ -120,7 +120,7 @@ import { sessionAccountV1SessionGet } from "@steamsets/client-ts/funcs/sessionAc
|
|
|
120
120
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
121
121
|
// You can create one instance of it to use across an application.
|
|
122
122
|
const steamSets = new SteamSetsCore({
|
|
123
|
-
session: "<
|
|
123
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
async function run() {
|
|
@@ -168,7 +168,7 @@ Logs a user in and creates a new session
|
|
|
168
168
|
import { SteamSets } from "@steamsets/client-ts";
|
|
169
169
|
|
|
170
170
|
const steamSets = new SteamSets({
|
|
171
|
-
session: "<
|
|
171
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
async function run() {
|
|
@@ -206,7 +206,7 @@ import { sessionAccountV1SessionLogin } from "@steamsets/client-ts/funcs/session
|
|
|
206
206
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
207
207
|
// You can create one instance of it to use across an application.
|
|
208
208
|
const steamSets = new SteamSetsCore({
|
|
209
|
-
session: "<
|
|
209
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
210
210
|
});
|
|
211
211
|
|
|
212
212
|
async function run() {
|
|
@@ -16,7 +16,7 @@ Gets all settings for the account
|
|
|
16
16
|
import { SteamSets } from "@steamsets/client-ts";
|
|
17
17
|
|
|
18
18
|
const steamSets = new SteamSets({
|
|
19
|
-
session: "<
|
|
19
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
async function run() {
|
|
@@ -41,7 +41,7 @@ import { settingsAccountV1SettingsGet } from "@steamsets/client-ts/funcs/setting
|
|
|
41
41
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
42
42
|
// You can create one instance of it to use across an application.
|
|
43
43
|
const steamSets = new SteamSetsCore({
|
|
44
|
-
session: "<
|
|
44
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
async function run() {
|
|
@@ -89,7 +89,7 @@ Update settings for the logged in account
|
|
|
89
89
|
import { SteamSets } from "@steamsets/client-ts";
|
|
90
90
|
|
|
91
91
|
const steamSets = new SteamSets({
|
|
92
|
-
session: "<
|
|
92
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
async function run() {
|
|
@@ -114,7 +114,7 @@ import { settingsAccountV1SettingsUpdate } from "@steamsets/client-ts/funcs/sett
|
|
|
114
114
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
115
115
|
// You can create one instance of it to use across an application.
|
|
116
116
|
const steamSets = new SteamSetsCore({
|
|
117
|
-
session: "<
|
|
117
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
118
118
|
});
|
|
119
119
|
|
|
120
120
|
async function run() {
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.0";
|
|
30
|
-
readonly sdkVersion: "0.2.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
30
|
+
readonly sdkVersion: "0.2.1";
|
|
31
|
+
readonly genVersion: "2.401.2";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.1 2.401.2 1.0.0 @steamsets/client-ts";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ function serverURLFromOptions(options) {
|
|
|
27
27
|
exports.SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "1.0.0",
|
|
30
|
-
sdkVersion: "0.2.
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
30
|
+
sdkVersion: "0.2.1",
|
|
31
|
+
genVersion: "2.401.2",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.2.1 2.401.2 1.0.0 @steamsets/client-ts",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
package/lib/security.js
CHANGED
|
@@ -107,8 +107,8 @@ function applyBearer(state, spec) {
|
|
|
107
107
|
function resolveGlobalSecurity(security) {
|
|
108
108
|
return resolveSecurity([
|
|
109
109
|
{
|
|
110
|
-
fieldName: "
|
|
111
|
-
type: "
|
|
110
|
+
fieldName: "Authorization",
|
|
111
|
+
type: "http:bearer",
|
|
112
112
|
value: security === null || security === void 0 ? void 0 : security.session,
|
|
113
113
|
},
|
|
114
114
|
]);
|
package/lib/security.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.js","sourceRoot":"","sources":["../src/lib/security.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA+EH,0CAiEC;AAyBD,sDAUC;AAED,0CAQC;AAzLD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,8CAAyB,CAAA;IACzB,4EAAuD,CAAA;AAC3D,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,MAAa,aAAc,SAAQ,KAAK;IACpC,YAAmB,IAAuB,EAAE,OAAe;QACvD,KAAK,CAAC,OAAO,CAAC,CAAC;QADA,SAAI,GAAJ,IAAI,CAAmB;QAEtC,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,UAAU;QACb,OAAO,IAAI,aAAa,CACpB,iBAAiB,CAAC,UAAU,EAC5B,iEAAiE,CACpE,CAAC;IACN,CAAC;IACD,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,UAAU,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;AAC1C,CAAC;AACD,SAAgB,qBAAqB,CACjC,QAAyD;IAEzD,OAAO,eAAe,CAAC;QACnB;YACI,SAAS,EAAE,eAAe;YAC1B,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO;SAC3B;KACJ,CAAC,CAAC;AACP,CAAC;AAEM,KAAK,UAAU,eAAe,CACjC,GAAuC;IAEvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACd,OAAO;IACX,CAAC;IAED,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AACnD,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
52
52
|
export const SDK_METADATA = {
|
|
53
53
|
language: "typescript",
|
|
54
54
|
openapiDocVersion: "1.0.0",
|
|
55
|
-
sdkVersion: "0.2.
|
|
56
|
-
genVersion: "2.
|
|
57
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
55
|
+
sdkVersion: "0.2.1",
|
|
56
|
+
genVersion: "2.401.2",
|
|
57
|
+
userAgent: "speakeasy-sdk/typescript 0.2.1 2.401.2 1.0.0 @steamsets/client-ts",
|
|
58
58
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -174,8 +174,8 @@ export function resolveGlobalSecurity(
|
|
|
174
174
|
): SecurityState | null {
|
|
175
175
|
return resolveSecurity([
|
|
176
176
|
{
|
|
177
|
-
fieldName: "
|
|
178
|
-
type: "
|
|
177
|
+
fieldName: "Authorization",
|
|
178
|
+
type: "http:bearer",
|
|
179
179
|
value: security?.session,
|
|
180
180
|
},
|
|
181
181
|
]);
|