@steamsets/client-ts 0.4.1 → 0.5.0
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 +4 -37
- package/docs/sdks/account/README.md +95 -13
- package/docs/sdks/session/README.md +81 -7
- package/funcs/accountAccountV1GetApps.d.ts +1 -2
- package/funcs/accountAccountV1GetApps.d.ts.map +1 -1
- package/funcs/accountAccountV1GetApps.js +6 -3
- package/funcs/accountAccountV1GetApps.js.map +1 -1
- package/funcs/accountAccountV1GetBadges.d.ts +1 -2
- package/funcs/accountAccountV1GetBadges.d.ts.map +1 -1
- package/funcs/accountAccountV1GetBadges.js +6 -3
- package/funcs/accountAccountV1GetBadges.js.map +1 -1
- package/funcs/accountAccountV1SessionCreate.d.ts +13 -0
- package/funcs/accountAccountV1SessionCreate.d.ts.map +1 -0
- package/funcs/accountAccountV1SessionCreate.js +112 -0
- package/funcs/accountAccountV1SessionCreate.js.map +1 -0
- package/funcs/accountAccountV1SessionLogin.d.ts +1 -1
- package/funcs/accountAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionLogin.js +5 -12
- package/funcs/accountAccountV1SessionLogin.js.map +1 -1
- package/funcs/sessionAccountV1SessionCreate.d.ts +13 -0
- package/funcs/sessionAccountV1SessionCreate.d.ts.map +1 -0
- package/funcs/sessionAccountV1SessionCreate.js +112 -0
- package/funcs/sessionAccountV1SessionCreate.js.map +1 -0
- package/funcs/sessionAccountV1SessionLogin.d.ts +1 -1
- package/funcs/sessionAccountV1SessionLogin.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +5 -12
- package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accountsearchvanitystruct.d.ts +4 -4
- package/models/components/accountsearchvanitystruct.d.ts.map +1 -1
- package/models/components/accountsearchvanitystruct.js +4 -4
- package/models/components/accountsearchvanitystruct.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/security.d.ts +2 -2
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -2
- package/models/components/security.js.map +1 -1
- package/models/components/v1createsessionbody.d.ts +33 -0
- package/models/components/v1createsessionbody.d.ts.map +1 -0
- package/models/components/v1createsessionbody.js +65 -0
- package/models/components/v1createsessionbody.js.map +1 -0
- package/models/operations/accountv1getapps.d.ts +25 -0
- package/models/operations/accountv1getapps.d.ts.map +1 -1
- package/models/operations/accountv1getapps.js +36 -1
- package/models/operations/accountv1getapps.js.map +1 -1
- package/models/operations/accountv1getbadges.d.ts +25 -0
- package/models/operations/accountv1getbadges.d.ts.map +1 -1
- package/models/operations/accountv1getbadges.js +36 -1
- package/models/operations/accountv1getbadges.js.map +1 -1
- package/models/operations/accountv1sessioncreate.d.ts +60 -0
- package/models/operations/accountv1sessioncreate.d.ts.map +1 -0
- package/models/operations/accountv1sessioncreate.js +111 -0
- package/models/operations/accountv1sessioncreate.js.map +1 -0
- package/models/operations/accountv1sessionlogin.d.ts +0 -23
- package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
- package/models/operations/accountv1sessionlogin.js +1 -20
- package/models/operations/accountv1sessionlogin.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +7 -3
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +9 -2
- package/sdk/account.js.map +1 -1
- package/sdk/session.d.ts +5 -1
- package/sdk/session.d.ts.map +1 -1
- package/sdk/session.js +9 -2
- package/sdk/session.js.map +1 -1
- package/src/funcs/accountAccountV1GetApps.ts +8 -5
- package/src/funcs/accountAccountV1GetBadges.ts +8 -5
- package/src/funcs/accountAccountV1SessionCreate.ts +146 -0
- package/src/funcs/accountAccountV1SessionLogin.ts +5 -13
- package/src/funcs/sessionAccountV1SessionCreate.ts +146 -0
- package/src/funcs/sessionAccountV1SessionLogin.ts +5 -13
- package/src/lib/config.ts +2 -2
- package/src/models/components/accountsearchvanitystruct.ts +8 -8
- package/src/models/components/index.ts +1 -0
- package/src/models/components/security.ts +4 -4
- package/src/models/components/v1createsessionbody.ts +68 -0
- package/src/models/operations/accountv1getapps.ts +58 -0
- package/src/models/operations/accountv1getbadges.ts +58 -0
- package/src/models/operations/accountv1sessioncreate.ts +138 -0
- package/src/models/operations/accountv1sessionlogin.ts +0 -40
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +14 -4
- package/src/sdk/session.ts +12 -2
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ run();
|
|
|
96
96
|
* [accountV1SettingsUploadImages](docs/sdks/account/README.md#accountv1settingsuploadimages) - Multi Upload Endpoint for images
|
|
97
97
|
* [accountV1ConnectionVerifyConnection](docs/sdks/account/README.md#accountv1connectionverifyconnection) - Verify a domain connection only atm
|
|
98
98
|
* [accountV1SettingsVerfyEmail](docs/sdks/account/README.md#accountv1settingsverfyemail) - Verify the email by passing in the code the user should've gotten
|
|
99
|
+
* [accountV1SessionCreate](docs/sdks/account/README.md#accountv1sessioncreate) - Create a new session for non logged in users
|
|
99
100
|
|
|
100
101
|
### [connection](docs/sdks/connection/README.md)
|
|
101
102
|
|
|
@@ -120,6 +121,7 @@ run();
|
|
|
120
121
|
* [accountV1SessionDelete](docs/sdks/session/README.md#accountv1sessiondelete) - Deletes a session, can also be used to logout
|
|
121
122
|
* [accountV1SessionGet](docs/sdks/session/README.md#accountv1sessionget) - Gets all session data
|
|
122
123
|
* [accountV1SessionLogin](docs/sdks/session/README.md#accountv1sessionlogin) - Logs a user in and creates a new session
|
|
124
|
+
* [accountV1SessionCreate](docs/sdks/session/README.md#accountv1sessioncreate) - Create a new session for non logged in users
|
|
123
125
|
|
|
124
126
|
### [liveness](docs/sdks/liveness/README.md)
|
|
125
127
|
|
|
@@ -398,43 +400,6 @@ async function run() {
|
|
|
398
400
|
|
|
399
401
|
run();
|
|
400
402
|
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
### Per-Operation Security Schemes
|
|
404
|
-
|
|
405
|
-
Some operations in this SDK require the security scheme to be specified at the request level. For example:
|
|
406
|
-
```typescript
|
|
407
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
408
|
-
|
|
409
|
-
const steamSets = new SteamSets();
|
|
410
|
-
|
|
411
|
-
async function run() {
|
|
412
|
-
const result = await steamSets.account.accountV1SessionLogin(
|
|
413
|
-
{
|
|
414
|
-
loginRequestBody: {
|
|
415
|
-
openidAssocHandle: "123456",
|
|
416
|
-
openidClaimedId: "76561198842603734",
|
|
417
|
-
openidIdentity: "https://steamsets.com/api/v1/openid/login",
|
|
418
|
-
openidMode: "checkid_setup",
|
|
419
|
-
openidNs: "http://specs.openid.net/auth/2.0",
|
|
420
|
-
openidOpEndpoint: "https://steamsets.com/api/v1/openid/login",
|
|
421
|
-
openidResponseNonce: "123456",
|
|
422
|
-
openidReturnTo: "https://steamsets.com/api/v1/openid/login",
|
|
423
|
-
openidSig: "123456",
|
|
424
|
-
openidSigned: "123456",
|
|
425
|
-
},
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
anonymous: "<YOUR_BEARER_TOKEN_HERE>",
|
|
429
|
-
}
|
|
430
|
-
);
|
|
431
|
-
|
|
432
|
-
// Handle the result
|
|
433
|
-
console.log(result);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
run();
|
|
437
|
-
|
|
438
403
|
```
|
|
439
404
|
<!-- End Authentication [security] -->
|
|
440
405
|
|
|
@@ -471,6 +436,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
471
436
|
- [accountAccountV1ConnectionVerifyConnection](docs/sdks/account/README.md#accountv1connectionverifyconnection)
|
|
472
437
|
- [accountAccountV1GetApps](docs/sdks/account/README.md#accountv1getapps)
|
|
473
438
|
- [accountAccountV1GetBadges](docs/sdks/account/README.md#accountv1getbadges)
|
|
439
|
+
- [accountAccountV1SessionCreate](docs/sdks/account/README.md#accountv1sessioncreate)
|
|
474
440
|
- [accountAccountV1SessionDelete](docs/sdks/account/README.md#accountv1sessiondelete)
|
|
475
441
|
- [accountAccountV1SessionGet](docs/sdks/account/README.md#accountv1sessionget)
|
|
476
442
|
- [accountAccountV1SessionLogin](docs/sdks/account/README.md#accountv1sessionlogin)
|
|
@@ -487,6 +453,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
487
453
|
- [connectionAccountV1ConnectionUpdateConnection](docs/sdks/connection/README.md#accountv1connectionupdateconnection)
|
|
488
454
|
- [connectionAccountV1ConnectionVerifyConnection](docs/sdks/connection/README.md#accountv1connectionverifyconnection)
|
|
489
455
|
- [livenessLiveness](docs/sdks/liveness/README.md#liveness)
|
|
456
|
+
- [sessionAccountV1SessionCreate](docs/sdks/session/README.md#accountv1sessioncreate)
|
|
490
457
|
- [sessionAccountV1SessionDelete](docs/sdks/session/README.md#accountv1sessiondelete)
|
|
491
458
|
- [sessionAccountV1SessionGet](docs/sdks/session/README.md#accountv1sessionget)
|
|
492
459
|
- [sessionAccountV1SessionLogin](docs/sdks/session/README.md#accountv1sessionlogin)
|
|
@@ -24,6 +24,7 @@ Account related operations
|
|
|
24
24
|
* [accountV1SettingsUploadImages](#accountv1settingsuploadimages) - Multi Upload Endpoint for images
|
|
25
25
|
* [accountV1ConnectionVerifyConnection](#accountv1connectionverifyconnection) - Verify a domain connection only atm
|
|
26
26
|
* [accountV1SettingsVerfyEmail](#accountv1settingsverfyemail) - Verify the email by passing in the code the user should've gotten
|
|
27
|
+
* [accountV1SessionCreate](#accountv1sessioncreate) - Create a new session for non logged in users
|
|
27
28
|
|
|
28
29
|
## accountV1ConnectionConnect
|
|
29
30
|
|
|
@@ -436,7 +437,9 @@ const steamSets = new SteamSets({
|
|
|
436
437
|
});
|
|
437
438
|
|
|
438
439
|
async function run() {
|
|
439
|
-
const result = await steamSets.account.accountV1GetApps({
|
|
440
|
+
const result = await steamSets.account.accountV1GetApps({
|
|
441
|
+
accountSearch: {},
|
|
442
|
+
});
|
|
440
443
|
|
|
441
444
|
// Handle the result
|
|
442
445
|
console.log(result)
|
|
@@ -460,7 +463,9 @@ const steamSets = new SteamSetsCore({
|
|
|
460
463
|
});
|
|
461
464
|
|
|
462
465
|
async function run() {
|
|
463
|
-
const res = await accountAccountV1GetApps(steamSets, {
|
|
466
|
+
const res = await accountAccountV1GetApps(steamSets, {
|
|
467
|
+
accountSearch: {},
|
|
468
|
+
});
|
|
464
469
|
|
|
465
470
|
if (!res.ok) {
|
|
466
471
|
throw res.error;
|
|
@@ -479,7 +484,7 @@ run();
|
|
|
479
484
|
|
|
480
485
|
| Parameter | Type | Required | Description |
|
|
481
486
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
482
|
-
| `request` | [
|
|
487
|
+
| `request` | [operations.AccountV1GetAppsRequest](../../models/operations/accountv1getappsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
483
488
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
484
489
|
| `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. |
|
|
485
490
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -510,7 +515,9 @@ const steamSets = new SteamSets({
|
|
|
510
515
|
});
|
|
511
516
|
|
|
512
517
|
async function run() {
|
|
513
|
-
const result = await steamSets.account.accountV1GetBadges({
|
|
518
|
+
const result = await steamSets.account.accountV1GetBadges({
|
|
519
|
+
accountSearch: {},
|
|
520
|
+
});
|
|
514
521
|
|
|
515
522
|
// Handle the result
|
|
516
523
|
console.log(result)
|
|
@@ -534,7 +541,9 @@ const steamSets = new SteamSetsCore({
|
|
|
534
541
|
});
|
|
535
542
|
|
|
536
543
|
async function run() {
|
|
537
|
-
const res = await accountAccountV1GetBadges(steamSets, {
|
|
544
|
+
const res = await accountAccountV1GetBadges(steamSets, {
|
|
545
|
+
accountSearch: {},
|
|
546
|
+
});
|
|
538
547
|
|
|
539
548
|
if (!res.ok) {
|
|
540
549
|
throw res.error;
|
|
@@ -553,7 +562,7 @@ run();
|
|
|
553
562
|
|
|
554
563
|
| Parameter | Type | Required | Description |
|
|
555
564
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
556
|
-
| `request` | [
|
|
565
|
+
| `request` | [operations.AccountV1GetBadgesRequest](../../models/operations/accountv1getbadgesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
557
566
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
558
567
|
| `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. |
|
|
559
568
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -725,7 +734,9 @@ Logs a user in and creates a new session
|
|
|
725
734
|
```typescript
|
|
726
735
|
import { SteamSets } from "@steamsets/client-ts";
|
|
727
736
|
|
|
728
|
-
const steamSets = new SteamSets(
|
|
737
|
+
const steamSets = new SteamSets({
|
|
738
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
739
|
+
});
|
|
729
740
|
|
|
730
741
|
async function run() {
|
|
731
742
|
const result = await steamSets.account.accountV1SessionLogin({
|
|
@@ -741,8 +752,6 @@ async function run() {
|
|
|
741
752
|
openidSig: "123456",
|
|
742
753
|
openidSigned: "123456",
|
|
743
754
|
},
|
|
744
|
-
}, {
|
|
745
|
-
anonymous: "<YOUR_BEARER_TOKEN_HERE>",
|
|
746
755
|
});
|
|
747
756
|
|
|
748
757
|
// Handle the result
|
|
@@ -762,7 +771,9 @@ import { accountAccountV1SessionLogin } from "@steamsets/client-ts/funcs/account
|
|
|
762
771
|
|
|
763
772
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
764
773
|
// You can create one instance of it to use across an application.
|
|
765
|
-
const steamSets = new SteamSetsCore(
|
|
774
|
+
const steamSets = new SteamSetsCore({
|
|
775
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
776
|
+
});
|
|
766
777
|
|
|
767
778
|
async function run() {
|
|
768
779
|
const res = await accountAccountV1SessionLogin(steamSets, {
|
|
@@ -778,8 +789,6 @@ async function run() {
|
|
|
778
789
|
openidSig: "123456",
|
|
779
790
|
openidSigned: "123456",
|
|
780
791
|
},
|
|
781
|
-
}, {
|
|
782
|
-
anonymous: "<YOUR_BEARER_TOKEN_HERE>",
|
|
783
792
|
});
|
|
784
793
|
|
|
785
794
|
if (!res.ok) {
|
|
@@ -800,7 +809,6 @@ run();
|
|
|
800
809
|
| Parameter | Type | Required | Description |
|
|
801
810
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
802
811
|
| `request` | [operations.AccountV1SessionLoginRequest](../../models/operations/accountv1sessionloginrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
803
|
-
| `security` | [operations.AccountV1SessionLoginSecurity](../../models/operations/accountv1sessionloginsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
804
812
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
805
813
|
| `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. |
|
|
806
814
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1399,3 +1407,77 @@ run();
|
|
|
1399
1407
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
1400
1408
|
| errors.ErrorModel | 404,422,429,500 | application/problem+json |
|
|
1401
1409
|
| errors.SDKError | 4xx-5xx | */* |
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
## accountV1SessionCreate
|
|
1413
|
+
|
|
1414
|
+
Create a new session for non logged in users
|
|
1415
|
+
|
|
1416
|
+
### Example Usage
|
|
1417
|
+
|
|
1418
|
+
```typescript
|
|
1419
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
1420
|
+
|
|
1421
|
+
const steamSets = new SteamSets({
|
|
1422
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1423
|
+
});
|
|
1424
|
+
|
|
1425
|
+
async function run() {
|
|
1426
|
+
const result = await steamSets.account.accountV1SessionCreate({});
|
|
1427
|
+
|
|
1428
|
+
// Handle the result
|
|
1429
|
+
console.log(result)
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
run();
|
|
1433
|
+
```
|
|
1434
|
+
|
|
1435
|
+
### Standalone function
|
|
1436
|
+
|
|
1437
|
+
The standalone function version of this method:
|
|
1438
|
+
|
|
1439
|
+
```typescript
|
|
1440
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
1441
|
+
import { accountAccountV1SessionCreate } from "@steamsets/client-ts/funcs/accountAccountV1SessionCreate.js";
|
|
1442
|
+
|
|
1443
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1444
|
+
// You can create one instance of it to use across an application.
|
|
1445
|
+
const steamSets = new SteamSetsCore({
|
|
1446
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1447
|
+
});
|
|
1448
|
+
|
|
1449
|
+
async function run() {
|
|
1450
|
+
const res = await accountAccountV1SessionCreate(steamSets, {});
|
|
1451
|
+
|
|
1452
|
+
if (!res.ok) {
|
|
1453
|
+
throw res.error;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
const { value: result } = res;
|
|
1457
|
+
|
|
1458
|
+
// Handle the result
|
|
1459
|
+
console.log(result)
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
run();
|
|
1463
|
+
```
|
|
1464
|
+
|
|
1465
|
+
### Parameters
|
|
1466
|
+
|
|
1467
|
+
| Parameter | Type | Required | Description |
|
|
1468
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1469
|
+
| `request` | [operations.AccountV1SessionCreateRequest](../../models/operations/accountv1sessioncreaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1470
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1471
|
+
| `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. |
|
|
1472
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1473
|
+
|
|
1474
|
+
### Response
|
|
1475
|
+
|
|
1476
|
+
**Promise\<[operations.AccountV1SessionCreateResponse](../../models/operations/accountv1sessioncreateresponse.md)\>**
|
|
1477
|
+
|
|
1478
|
+
### Errors
|
|
1479
|
+
|
|
1480
|
+
| Error Object | Status Code | Content Type |
|
|
1481
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
1482
|
+
| errors.ErrorModel | 422,500 | application/problem+json |
|
|
1483
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* [accountV1SessionDelete](#accountv1sessiondelete) - Deletes a session, can also be used to logout
|
|
9
9
|
* [accountV1SessionGet](#accountv1sessionget) - Gets all session data
|
|
10
10
|
* [accountV1SessionLogin](#accountv1sessionlogin) - Logs a user in and creates a new session
|
|
11
|
+
* [accountV1SessionCreate](#accountv1sessioncreate) - Create a new session for non logged in users
|
|
11
12
|
|
|
12
13
|
## accountV1SessionDelete
|
|
13
14
|
|
|
@@ -169,7 +170,9 @@ Logs a user in and creates a new session
|
|
|
169
170
|
```typescript
|
|
170
171
|
import { SteamSets } from "@steamsets/client-ts";
|
|
171
172
|
|
|
172
|
-
const steamSets = new SteamSets(
|
|
173
|
+
const steamSets = new SteamSets({
|
|
174
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
175
|
+
});
|
|
173
176
|
|
|
174
177
|
async function run() {
|
|
175
178
|
const result = await steamSets.session.accountV1SessionLogin({
|
|
@@ -185,8 +188,6 @@ async function run() {
|
|
|
185
188
|
openidSig: "123456",
|
|
186
189
|
openidSigned: "123456",
|
|
187
190
|
},
|
|
188
|
-
}, {
|
|
189
|
-
anonymous: "<YOUR_BEARER_TOKEN_HERE>",
|
|
190
191
|
});
|
|
191
192
|
|
|
192
193
|
// Handle the result
|
|
@@ -206,7 +207,9 @@ import { sessionAccountV1SessionLogin } from "@steamsets/client-ts/funcs/session
|
|
|
206
207
|
|
|
207
208
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
208
209
|
// You can create one instance of it to use across an application.
|
|
209
|
-
const steamSets = new SteamSetsCore(
|
|
210
|
+
const steamSets = new SteamSetsCore({
|
|
211
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
212
|
+
});
|
|
210
213
|
|
|
211
214
|
async function run() {
|
|
212
215
|
const res = await sessionAccountV1SessionLogin(steamSets, {
|
|
@@ -222,8 +225,6 @@ async function run() {
|
|
|
222
225
|
openidSig: "123456",
|
|
223
226
|
openidSigned: "123456",
|
|
224
227
|
},
|
|
225
|
-
}, {
|
|
226
|
-
anonymous: "<YOUR_BEARER_TOKEN_HERE>",
|
|
227
228
|
});
|
|
228
229
|
|
|
229
230
|
if (!res.ok) {
|
|
@@ -244,7 +245,6 @@ run();
|
|
|
244
245
|
| Parameter | Type | Required | Description |
|
|
245
246
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
246
247
|
| `request` | [operations.AccountV1SessionLoginRequest](../../models/operations/accountv1sessionloginrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
247
|
-
| `security` | [operations.AccountV1SessionLoginSecurity](../../models/operations/accountv1sessionloginsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
248
248
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
249
249
|
| `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. |
|
|
250
250
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -259,3 +259,77 @@ run();
|
|
|
259
259
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
260
260
|
| errors.ErrorModel | 422,500 | application/problem+json |
|
|
261
261
|
| errors.SDKError | 4xx-5xx | */* |
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## accountV1SessionCreate
|
|
265
|
+
|
|
266
|
+
Create a new session for non logged in users
|
|
267
|
+
|
|
268
|
+
### Example Usage
|
|
269
|
+
|
|
270
|
+
```typescript
|
|
271
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
272
|
+
|
|
273
|
+
const steamSets = new SteamSets({
|
|
274
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
async function run() {
|
|
278
|
+
const result = await steamSets.session.accountV1SessionCreate({});
|
|
279
|
+
|
|
280
|
+
// Handle the result
|
|
281
|
+
console.log(result)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
run();
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Standalone function
|
|
288
|
+
|
|
289
|
+
The standalone function version of this method:
|
|
290
|
+
|
|
291
|
+
```typescript
|
|
292
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
293
|
+
import { sessionAccountV1SessionCreate } from "@steamsets/client-ts/funcs/sessionAccountV1SessionCreate.js";
|
|
294
|
+
|
|
295
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
296
|
+
// You can create one instance of it to use across an application.
|
|
297
|
+
const steamSets = new SteamSetsCore({
|
|
298
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
async function run() {
|
|
302
|
+
const res = await sessionAccountV1SessionCreate(steamSets, {});
|
|
303
|
+
|
|
304
|
+
if (!res.ok) {
|
|
305
|
+
throw res.error;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const { value: result } = res;
|
|
309
|
+
|
|
310
|
+
// Handle the result
|
|
311
|
+
console.log(result)
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
run();
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Parameters
|
|
318
|
+
|
|
319
|
+
| Parameter | Type | Required | Description |
|
|
320
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
321
|
+
| `request` | [operations.AccountV1SessionCreateRequest](../../models/operations/accountv1sessioncreaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
322
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
323
|
+
| `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. |
|
|
324
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
325
|
+
|
|
326
|
+
### Response
|
|
327
|
+
|
|
328
|
+
**Promise\<[operations.AccountV1SessionCreateResponse](../../models/operations/accountv1sessioncreateresponse.md)\>**
|
|
329
|
+
|
|
330
|
+
### Errors
|
|
331
|
+
|
|
332
|
+
| Error Object | Status Code | Content Type |
|
|
333
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
334
|
+
| errors.ErrorModel | 422,500 | application/problem+json |
|
|
335
|
+
| errors.SDKError | 4xx-5xx | */* |
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SteamSetsCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
3
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
4
|
import * as errors from "../models/errors/index.js";
|
|
6
5
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
@@ -10,5 +9,5 @@ import { Result } from "../types/fp.js";
|
|
|
10
9
|
/**
|
|
11
10
|
* Get Account Apps
|
|
12
11
|
*/
|
|
13
|
-
export declare function accountAccountV1GetApps(client$: SteamSetsCore, request:
|
|
12
|
+
export declare function accountAccountV1GetApps(client$: SteamSetsCore, request: operations.AccountV1GetAppsRequest, options?: RequestOptions): Promise<Result<operations.AccountV1GetAppsResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
13
|
//# sourceMappingURL=accountAccountV1GetApps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountAccountV1GetApps.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetApps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,
|
|
1
|
+
{"version":3,"file":"accountAccountV1GetApps.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetApps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,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,uBAAuB,CACzC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CACN,MAAM,CACF,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CACpB,CACJ,CA2FA"}
|
|
@@ -32,7 +32,6 @@ const m$ = __importStar(require("../lib/matchers.js"));
|
|
|
32
32
|
const schemas$ = __importStar(require("../lib/schemas.js"));
|
|
33
33
|
const security_js_1 = require("../lib/security.js");
|
|
34
34
|
const url_js_1 = require("../lib/url.js");
|
|
35
|
-
const components = __importStar(require("../models/components/index.js"));
|
|
36
35
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
36
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
37
|
/**
|
|
@@ -40,16 +39,20 @@ const operations = __importStar(require("../models/operations/index.js"));
|
|
|
40
39
|
*/
|
|
41
40
|
async function accountAccountV1GetApps(client$, request, options) {
|
|
42
41
|
const input$ = request;
|
|
43
|
-
const parsed$ = schemas$.safeParse(input$, (value$) =>
|
|
42
|
+
const parsed$ = schemas$.safeParse(input$, (value$) => operations.AccountV1GetAppsRequest$outboundSchema.parse(value$), "Input validation failed");
|
|
44
43
|
if (!parsed$.ok) {
|
|
45
44
|
return parsed$;
|
|
46
45
|
}
|
|
47
46
|
const payload$ = parsed$.value;
|
|
48
|
-
const body$ = (0, encodings_js_1.encodeJSON)("body", payload
|
|
47
|
+
const body$ = (0, encodings_js_1.encodeJSON)("body", payload$.AccountSearch, { explode: true });
|
|
49
48
|
const path$ = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetApps")();
|
|
50
49
|
const headers$ = new Headers({
|
|
51
50
|
"Content-Type": "application/json",
|
|
52
51
|
Accept: "application/json",
|
|
52
|
+
"X-Forwarded-For": (0, encodings_js_1.encodeSimple)("X-Forwarded-For", payload$["X-Forwarded-For"], {
|
|
53
|
+
explode: false,
|
|
54
|
+
charEncoding: "none",
|
|
55
|
+
}),
|
|
53
56
|
});
|
|
54
57
|
const session$ = await (0, security_js_1.extractSecurity)(client$.options$.session);
|
|
55
58
|
const security$ = session$ == null ? {} : { session: session$ };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountAccountV1GetApps.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetApps.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"accountAccountV1GetApps.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetApps.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,0DA2GC;AAjID,sDAA+F;AAC/F,uDAAyC;AACzC,4DAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,uBAAuB,CACzC,OAAsB,EACtB,OAA2C,EAC3C,OAAwB;IAcxB,MAAM,MAAM,GAAG,OAAO,CAAC;IAEvB,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAC9B,MAAM,EACN,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,sCAAsC,CAAC,KAAK,CAAC,MAAM,CAAC,EAC3E,yBAAyB,CAC5B,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QACd,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC;IAC/B,MAAM,KAAK,GAAG,IAAA,yBAAW,EAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAA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AED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SteamSetsCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
3
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
4
|
import * as errors from "../models/errors/index.js";
|
|
6
5
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
@@ -10,5 +9,5 @@ import { Result } from "../types/fp.js";
|
|
|
10
9
|
/**
|
|
11
10
|
* Get Account Badges
|
|
12
11
|
*/
|
|
13
|
-
export declare function accountAccountV1GetBadges(client$: SteamSetsCore, request:
|
|
12
|
+
export declare function accountAccountV1GetBadges(client$: SteamSetsCore, request: operations.AccountV1GetBadgesRequest, options?: RequestOptions): Promise<Result<operations.AccountV1GetBadgesResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
14
13
|
//# sourceMappingURL=accountAccountV1GetBadges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountAccountV1GetBadges.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetBadges.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,
|
|
1
|
+
{"version":3,"file":"accountAccountV1GetBadges.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetBadges.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,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,yBAAyB,CAC3C,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CACN,MAAM,CACF,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CACpB,CACJ,CA2FA"}
|
|
@@ -32,7 +32,6 @@ const m$ = __importStar(require("../lib/matchers.js"));
|
|
|
32
32
|
const schemas$ = __importStar(require("../lib/schemas.js"));
|
|
33
33
|
const security_js_1 = require("../lib/security.js");
|
|
34
34
|
const url_js_1 = require("../lib/url.js");
|
|
35
|
-
const components = __importStar(require("../models/components/index.js"));
|
|
36
35
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
37
36
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
38
37
|
/**
|
|
@@ -40,16 +39,20 @@ const operations = __importStar(require("../models/operations/index.js"));
|
|
|
40
39
|
*/
|
|
41
40
|
async function accountAccountV1GetBadges(client$, request, options) {
|
|
42
41
|
const input$ = request;
|
|
43
|
-
const parsed$ = schemas$.safeParse(input$, (value$) =>
|
|
42
|
+
const parsed$ = schemas$.safeParse(input$, (value$) => operations.AccountV1GetBadgesRequest$outboundSchema.parse(value$), "Input validation failed");
|
|
44
43
|
if (!parsed$.ok) {
|
|
45
44
|
return parsed$;
|
|
46
45
|
}
|
|
47
46
|
const payload$ = parsed$.value;
|
|
48
|
-
const body$ = (0, encodings_js_1.encodeJSON)("body", payload
|
|
47
|
+
const body$ = (0, encodings_js_1.encodeJSON)("body", payload$.AccountSearch, { explode: true });
|
|
49
48
|
const path$ = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetBadges")();
|
|
50
49
|
const headers$ = new Headers({
|
|
51
50
|
"Content-Type": "application/json",
|
|
52
51
|
Accept: "application/json",
|
|
52
|
+
"X-Forwarded-For": (0, encodings_js_1.encodeSimple)("X-Forwarded-For", payload$["X-Forwarded-For"], {
|
|
53
|
+
explode: false,
|
|
54
|
+
charEncoding: "none",
|
|
55
|
+
}),
|
|
53
56
|
});
|
|
54
57
|
const session$ = await (0, security_js_1.extractSecurity)(client$.options$.session);
|
|
55
58
|
const security$ = session$ == null ? {} : { session: session$ };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountAccountV1GetBadges.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetBadges.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"accountAccountV1GetBadges.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetBadges.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,8DA2GC;AAjID,sDAA+F;AAC/F,uDAAyC;AACzC,4DAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,yBAAyB,CAC3C,OAAsB,EACtB,OAA6C,EAC7C,OAAwB;IAcxB,MAAM,MAAM,GAAG,OAAO,CAAC;IAEvB,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAC9B,MAAM,EACN,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,wCAAwC,CAAC,KAAK,CAAC,MAAM,CAAC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BAAwB,EAAE;QACzD,KAAK,EAAE,0BAA0B;KACpC,CAAC,EACF,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAC1B,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC,CAAC;IACxD,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QACd,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,OAAO,OAAO,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create a new session for non logged in users
|
|
11
|
+
*/
|
|
12
|
+
export declare function accountAccountV1SessionCreate(client$: SteamSetsCore, request: operations.AccountV1SessionCreateRequest, options?: RequestOptions): Promise<Result<operations.AccountV1SessionCreateResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=accountAccountV1SessionCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountAccountV1SessionCreate.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1SessionCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACH,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACxB,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,6BAA6B,CAC/C,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CACN,MAAM,CACF,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CACpB,CACJ,CAsGA"}
|