@steamsets/client-ts 0.14.24 → 0.14.26
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 -0
- package/docs/sdks/account/README.md +79 -0
- package/docs/sdks/connection/README.md +79 -0
- package/docs/sdks/connections/README.md +3 -3
- package/funcs/accountAccountV1ConnectionReconnect.d.ts +11 -0
- package/funcs/accountAccountV1ConnectionReconnect.d.ts.map +1 -0
- package/funcs/accountAccountV1ConnectionReconnect.js +113 -0
- package/funcs/accountAccountV1ConnectionReconnect.js.map +1 -0
- package/funcs/accountVerifyEmail.js +3 -3
- package/funcs/accountVerifyEmail.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionReconnect.d.ts +11 -0
- package/funcs/connectionAccountV1ConnectionReconnect.d.ts.map +1 -0
- package/funcs/connectionAccountV1ConnectionReconnect.js +113 -0
- package/funcs/connectionAccountV1ConnectionReconnect.js.map +1 -0
- package/funcs/connectionsConnect.d.ts +1 -1
- package/funcs/connectionsConnect.d.ts.map +1 -1
- package/funcs/connectionsConnect.js +2 -2
- package/funcs/connectionsConnect.js.map +1 -1
- package/funcs/sessionLogin.d.ts.map +1 -1
- package/funcs/sessionLogin.js +1 -0
- package/funcs/sessionLogin.js.map +1 -1
- package/funcs/settingsUpdate.js +3 -3
- package/funcs/settingsUpdate.js.map +1 -1
- package/funcs/settingsVerifyEmail.js +3 -3
- package/funcs/settingsVerifyEmail.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/connection.d.ts +8 -8
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +13 -14
- package/models/components/connection.js.map +1 -1
- package/models/components/index.d.ts +2 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -2
- package/models/components/index.js.map +1 -1
- package/models/components/leaderboardaccount.d.ts +36 -1
- package/models/components/leaderboardaccount.d.ts.map +1 -1
- package/models/components/leaderboardaccount.js +26 -3
- package/models/components/leaderboardaccount.js.map +1 -1
- package/models/components/v1accountfriend.d.ts +36 -1
- package/models/components/v1accountfriend.d.ts.map +1 -1
- package/models/components/v1accountfriend.js +27 -3
- package/models/components/v1accountfriend.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +8 -8
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +13 -14
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1accountleaderboardaccount.d.ts +36 -1
- package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
- package/models/components/v1accountleaderboardaccount.js +26 -3
- package/models/components/v1accountleaderboardaccount.js.map +1 -1
- package/models/components/v1connectrequestbody.d.ts +87 -0
- package/models/components/v1connectrequestbody.d.ts.map +1 -0
- package/models/components/v1connectrequestbody.js +90 -0
- package/models/components/v1connectrequestbody.js.map +1 -0
- package/models/components/v1connectresponsebody.d.ts +42 -0
- package/models/components/v1connectresponsebody.d.ts.map +1 -0
- package/models/components/{v1verifyemailresponsebody.js → v1connectresponsebody.js} +21 -17
- package/models/components/v1connectresponsebody.js.map +1 -0
- package/models/components/v1createsessionbody.d.ts +15 -0
- package/models/components/v1createsessionbody.d.ts.map +1 -1
- package/models/components/v1createsessionbody.js +6 -0
- package/models/components/v1createsessionbody.js.map +1 -1
- package/models/components/v1getsettingsbody.d.ts +40 -0
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +26 -1
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/operations/accountv1connectionconnect.d.ts +2 -2
- package/models/operations/accountv1connectionconnect.d.ts.map +1 -1
- package/models/operations/accountv1connectionconnect.js +4 -4
- package/models/operations/accountv1connectionconnect.js.map +1 -1
- package/models/operations/accountv1connectionreconnect.d.ts +35 -0
- package/models/operations/accountv1connectionreconnect.d.ts.map +1 -0
- package/models/operations/accountv1connectionreconnect.js +75 -0
- package/models/operations/accountv1connectionreconnect.js.map +1 -0
- package/models/operations/accountv1sessionlogin.d.ts +6 -0
- package/models/operations/accountv1sessionlogin.d.ts.map +1 -1
- package/models/operations/accountv1sessionlogin.js +4 -0
- package/models/operations/accountv1sessionlogin.js.map +1 -1
- package/models/operations/accountv1settingsupdate.d.ts +6 -5
- package/models/operations/accountv1settingsupdate.d.ts.map +1 -1
- package/models/operations/accountv1settingsupdate.js +4 -6
- package/models/operations/accountv1settingsupdate.js.map +1 -1
- package/models/operations/accountv1settingsverfyemail.d.ts +6 -5
- package/models/operations/accountv1settingsverfyemail.d.ts.map +1 -1
- package/models/operations/accountv1settingsverfyemail.js +4 -6
- package/models/operations/accountv1settingsverfyemail.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 +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.js.map +1 -1
- package/sdk/connection.d.ts +1 -0
- package/sdk/connection.d.ts.map +1 -1
- package/sdk/connection.js +4 -0
- package/sdk/connection.js.map +1 -1
- package/sdk/connections.d.ts +1 -1
- package/sdk/connections.d.ts.map +1 -1
- package/sdk/connections.js.map +1 -1
- package/src/funcs/accountAccountV1ConnectionReconnect.ts +149 -0
- package/src/funcs/accountVerifyEmail.ts +3 -3
- package/src/funcs/connectionAccountV1ConnectionReconnect.ts +149 -0
- package/src/funcs/connectionsConnect.ts +3 -3
- package/src/funcs/sessionLogin.ts +1 -0
- package/src/funcs/settingsUpdate.ts +3 -3
- package/src/funcs/settingsVerifyEmail.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/models/components/connection.ts +16 -14
- package/src/models/components/index.ts +2 -2
- package/src/models/components/leaderboardaccount.ts +40 -3
- package/src/models/components/v1accountfriend.ts +36 -3
- package/src/models/components/v1accountinforesponsebody.ts +18 -14
- package/src/models/components/v1accountleaderboardaccount.ts +41 -3
- package/src/models/components/v1connectrequestbody.ts +114 -0
- package/src/models/components/v1connectresponsebody.ts +92 -0
- package/src/models/components/v1createsessionbody.ts +21 -0
- package/src/models/components/v1getsettingsbody.ts +44 -0
- package/src/models/operations/accountv1connectionconnect.ts +6 -8
- package/src/models/operations/accountv1connectionreconnect.ts +94 -0
- package/src/models/operations/accountv1sessionlogin.ts +6 -0
- package/src/models/operations/accountv1settingsupdate.ts +6 -15
- package/src/models/operations/accountv1settingsverfyemail.ts +6 -13
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +12 -0
- package/src/sdk/connection.ts +12 -0
- package/src/sdk/connections.ts +1 -1
- package/models/components/v1updatesettingsresponsebody.d.ts +0 -32
- package/models/components/v1updatesettingsresponsebody.d.ts.map +0 -1
- package/models/components/v1updatesettingsresponsebody.js +0 -68
- package/models/components/v1updatesettingsresponsebody.js.map +0 -1
- package/models/components/v1verifyemailresponsebody.d.ts +0 -32
- package/models/components/v1verifyemailresponsebody.d.ts.map +0 -1
- package/models/components/v1verifyemailresponsebody.js.map +0 -1
- package/src/models/components/v1updatesettingsresponsebody.ts +0 -80
- package/src/models/components/v1verifyemailresponsebody.ts +0 -78
package/README.md
CHANGED
|
@@ -86,6 +86,7 @@ run();
|
|
|
86
86
|
* [getLeaderboardHistory](docs/sdks/account/README.md#getleaderboardhistory)
|
|
87
87
|
* [accountV1GetOwnedBadges](docs/sdks/account/README.md#accountv1getownedbadges)
|
|
88
88
|
* [getStaff](docs/sdks/account/README.md#getstaff)
|
|
89
|
+
* [accountV1ConnectionReconnect](docs/sdks/account/README.md#accountv1connectionreconnect)
|
|
89
90
|
* [sendEmailVerification](docs/sdks/account/README.md#sendemailverification)
|
|
90
91
|
* [accountV1ImagesUpdate](docs/sdks/account/README.md#accountv1imagesupdate)
|
|
91
92
|
* [uploadImages](docs/sdks/account/README.md#uploadimages)
|
|
@@ -118,6 +119,7 @@ run();
|
|
|
118
119
|
### [connection](docs/sdks/connection/README.md)
|
|
119
120
|
|
|
120
121
|
* [delete](docs/sdks/connection/README.md#delete)
|
|
122
|
+
* [accountV1ConnectionReconnect](docs/sdks/connection/README.md#accountv1connectionreconnect)
|
|
121
123
|
* [update](docs/sdks/connection/README.md#update)
|
|
122
124
|
* [verify](docs/sdks/connection/README.md#verify)
|
|
123
125
|
|
|
@@ -551,6 +553,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
551
553
|
|
|
552
554
|
<summary>Available standalone functions</summary>
|
|
553
555
|
|
|
556
|
+
- [`accountAccountV1ConnectionReconnect`](docs/sdks/account/README.md#accountv1connectionreconnect)
|
|
554
557
|
- [`accountAccountV1GetBadgeBookmarks`](docs/sdks/account/README.md#accountv1getbadgebookmarks)
|
|
555
558
|
- [`accountAccountV1GetOwnedBadges`](docs/sdks/account/README.md#accountv1getownedbadges)
|
|
556
559
|
- [`accountAccountV1ImagesGet`](docs/sdks/account/README.md#accountv1imagesget)
|
|
@@ -578,6 +581,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
578
581
|
- [`badgeBadgeV1Search`](docs/sdks/badge/README.md#badgev1search)
|
|
579
582
|
- [`badgeGetTags`](docs/sdks/badge/README.md#gettags)
|
|
580
583
|
- [`badgesTag`](docs/sdks/badges/README.md#tag)
|
|
584
|
+
- [`connectionAccountV1ConnectionReconnect`](docs/sdks/connection/README.md#accountv1connectionreconnect)
|
|
581
585
|
- [`connectionDelete`](docs/sdks/connection/README.md#delete)
|
|
582
586
|
- [`connectionsConnect`](docs/sdks/connections/README.md#connect)
|
|
583
587
|
- [`connectionUpdate`](docs/sdks/connection/README.md#update)
|
|
@@ -18,6 +18,7 @@ Account related operations
|
|
|
18
18
|
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
19
19
|
* [accountV1GetOwnedBadges](#accountv1getownedbadges)
|
|
20
20
|
* [getStaff](#getstaff)
|
|
21
|
+
* [accountV1ConnectionReconnect](#accountv1connectionreconnect)
|
|
21
22
|
* [sendEmailVerification](#sendemailverification)
|
|
22
23
|
* [accountV1ImagesUpdate](#accountv1imagesupdate)
|
|
23
24
|
* [uploadImages](#uploadimages)
|
|
@@ -828,6 +829,84 @@ run();
|
|
|
828
829
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
829
830
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
830
831
|
|
|
832
|
+
## accountV1ConnectionReconnect
|
|
833
|
+
|
|
834
|
+
### Example Usage
|
|
835
|
+
|
|
836
|
+
```typescript
|
|
837
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
838
|
+
|
|
839
|
+
const steamSets = new SteamSets({
|
|
840
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
841
|
+
});
|
|
842
|
+
|
|
843
|
+
async function run() {
|
|
844
|
+
const result = await steamSets.account.accountV1ConnectionReconnect({
|
|
845
|
+
code: "123456",
|
|
846
|
+
connectionId: "123456",
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
// Handle the result
|
|
850
|
+
console.log(result);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
run();
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
### Standalone function
|
|
857
|
+
|
|
858
|
+
The standalone function version of this method:
|
|
859
|
+
|
|
860
|
+
```typescript
|
|
861
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
862
|
+
import { accountAccountV1ConnectionReconnect } from "@steamsets/client-ts/funcs/accountAccountV1ConnectionReconnect.js";
|
|
863
|
+
|
|
864
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
865
|
+
// You can create one instance of it to use across an application.
|
|
866
|
+
const steamSets = new SteamSetsCore({
|
|
867
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
async function run() {
|
|
871
|
+
const res = await accountAccountV1ConnectionReconnect(steamSets, {
|
|
872
|
+
code: "123456",
|
|
873
|
+
connectionId: "123456",
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
if (!res.ok) {
|
|
877
|
+
throw res.error;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
const { value: result } = res;
|
|
881
|
+
|
|
882
|
+
// Handle the result
|
|
883
|
+
console.log(result);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
run();
|
|
887
|
+
```
|
|
888
|
+
|
|
889
|
+
### Parameters
|
|
890
|
+
|
|
891
|
+
| Parameter | Type | Required | Description |
|
|
892
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
893
|
+
| `request` | [components.V1ReconnectRequestBody](../../models/components/v1reconnectrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
894
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
895
|
+
| `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. |
|
|
896
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
897
|
+
|
|
898
|
+
### Response
|
|
899
|
+
|
|
900
|
+
**Promise\<[operations.AccountV1ConnectionReconnectResponse](../../models/operations/accountv1connectionreconnectresponse.md)\>**
|
|
901
|
+
|
|
902
|
+
### Errors
|
|
903
|
+
|
|
904
|
+
| Error Type | Status Code | Content Type |
|
|
905
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
906
|
+
| errors.ErrorModel | 400, 422 | application/problem+json |
|
|
907
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
908
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
909
|
+
|
|
831
910
|
## sendEmailVerification
|
|
832
911
|
|
|
833
912
|
### Example Usage
|
|
@@ -8,6 +8,7 @@ Operations related to oauth2/custom connections.
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
10
10
|
* [delete](#delete)
|
|
11
|
+
* [accountV1ConnectionReconnect](#accountv1connectionreconnect)
|
|
11
12
|
* [update](#update)
|
|
12
13
|
* [verify](#verify)
|
|
13
14
|
|
|
@@ -87,6 +88,84 @@ run();
|
|
|
87
88
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
88
89
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
90
|
|
|
91
|
+
## accountV1ConnectionReconnect
|
|
92
|
+
|
|
93
|
+
### Example Usage
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
97
|
+
|
|
98
|
+
const steamSets = new SteamSets({
|
|
99
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
async function run() {
|
|
103
|
+
const result = await steamSets.connection.accountV1ConnectionReconnect({
|
|
104
|
+
code: "123456",
|
|
105
|
+
connectionId: "123456",
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// Handle the result
|
|
109
|
+
console.log(result);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
run();
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Standalone function
|
|
116
|
+
|
|
117
|
+
The standalone function version of this method:
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
121
|
+
import { connectionAccountV1ConnectionReconnect } from "@steamsets/client-ts/funcs/connectionAccountV1ConnectionReconnect.js";
|
|
122
|
+
|
|
123
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
124
|
+
// You can create one instance of it to use across an application.
|
|
125
|
+
const steamSets = new SteamSetsCore({
|
|
126
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
async function run() {
|
|
130
|
+
const res = await connectionAccountV1ConnectionReconnect(steamSets, {
|
|
131
|
+
code: "123456",
|
|
132
|
+
connectionId: "123456",
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
if (!res.ok) {
|
|
136
|
+
throw res.error;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const { value: result } = res;
|
|
140
|
+
|
|
141
|
+
// Handle the result
|
|
142
|
+
console.log(result);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
run();
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Parameters
|
|
149
|
+
|
|
150
|
+
| Parameter | Type | Required | Description |
|
|
151
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
152
|
+
| `request` | [components.V1ReconnectRequestBody](../../models/components/v1reconnectrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
153
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
154
|
+
| `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. |
|
|
155
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
156
|
+
|
|
157
|
+
### Response
|
|
158
|
+
|
|
159
|
+
**Promise\<[operations.AccountV1ConnectionReconnectResponse](../../models/operations/accountv1connectionreconnectresponse.md)\>**
|
|
160
|
+
|
|
161
|
+
### Errors
|
|
162
|
+
|
|
163
|
+
| Error Type | Status Code | Content Type |
|
|
164
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
165
|
+
| errors.ErrorModel | 400, 422 | application/problem+json |
|
|
166
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
167
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
168
|
+
|
|
90
169
|
## update
|
|
91
170
|
|
|
92
171
|
### Example Usage
|
|
@@ -21,7 +21,7 @@ const steamSets = new SteamSets({
|
|
|
21
21
|
async function run() {
|
|
22
22
|
const result = await steamSets.connections.connect({
|
|
23
23
|
code: "123456",
|
|
24
|
-
|
|
24
|
+
provider: "discord",
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
// Handle the result
|
|
@@ -48,7 +48,7 @@ const steamSets = new SteamSetsCore({
|
|
|
48
48
|
async function run() {
|
|
49
49
|
const res = await connectionsConnect(steamSets, {
|
|
50
50
|
code: "123456",
|
|
51
|
-
|
|
51
|
+
provider: "discord",
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
if (!res.ok) {
|
|
@@ -68,7 +68,7 @@ run();
|
|
|
68
68
|
|
|
69
69
|
| Parameter | Type | Required | Description |
|
|
70
70
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
71
|
-
| `request` | [components.
|
|
71
|
+
| `request` | [components.V1ConnectRequestBody](../../models/components/v1connectrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
72
72
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
73
73
|
| `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. |
|
|
74
74
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export declare function accountAccountV1ConnectionReconnect(client: SteamSetsCore, request: components.V1ReconnectRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1ConnectionReconnectResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
+
//# sourceMappingURL=accountAccountV1ConnectionReconnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountAccountV1ConnectionReconnect.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1ConnectionReconnect.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,mCAAmC,CACvD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,oCAAoC,EAC7C,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.accountAccountV1ConnectionReconnect = accountAccountV1ConnectionReconnect;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
|
+
async function accountAccountV1ConnectionReconnect(client, request, options) {
|
|
40
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1ReconnectRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
41
|
+
if (!parsed.ok) {
|
|
42
|
+
return parsed;
|
|
43
|
+
}
|
|
44
|
+
const payload = parsed.value;
|
|
45
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
46
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/Reconnect")();
|
|
47
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
Accept: "application/json",
|
|
50
|
+
}));
|
|
51
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
52
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
53
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
54
|
+
const context = {
|
|
55
|
+
operationID: "account.v1.connection.reconnect",
|
|
56
|
+
oAuth2Scopes: [],
|
|
57
|
+
resolvedSecurity: requestSecurity,
|
|
58
|
+
securitySource: client._options.token,
|
|
59
|
+
retryConfig: options?.retries
|
|
60
|
+
|| client._options.retryConfig
|
|
61
|
+
|| {
|
|
62
|
+
strategy: "backoff",
|
|
63
|
+
backoff: {
|
|
64
|
+
initialInterval: 500,
|
|
65
|
+
maxInterval: 5000,
|
|
66
|
+
exponent: 1.5,
|
|
67
|
+
maxElapsedTime: 60000,
|
|
68
|
+
},
|
|
69
|
+
retryConnectionErrors: true,
|
|
70
|
+
}
|
|
71
|
+
|| { strategy: "none" },
|
|
72
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
73
|
+
};
|
|
74
|
+
const requestRes = client._createRequest(context, {
|
|
75
|
+
security: requestSecurity,
|
|
76
|
+
method: "POST",
|
|
77
|
+
baseURL: options?.serverURL,
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return doResult;
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
const responseFields = {
|
|
99
|
+
HttpMeta: { Response: response, Request: req },
|
|
100
|
+
};
|
|
101
|
+
const [result] = await M.match(M.json(200, operations.AccountV1ConnectionReconnectResponse$inboundSchema, {
|
|
102
|
+
key: "V1ReconnectResponseBody",
|
|
103
|
+
}), M.jsonErr([400, 422], errors.ErrorModel$inboundSchema, {
|
|
104
|
+
ctype: "application/problem+json",
|
|
105
|
+
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
106
|
+
ctype: "application/problem+json",
|
|
107
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
108
|
+
if (!result.ok) {
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=accountAccountV1ConnectionReconnect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountAccountV1ConnectionReconnect.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1ConnectionReconnect.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,kFA0HC;AA/ID,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,mCAAmC,CACvD,MAAqB,EACrB,OAA0C,EAC1C,OAAwB;IAexB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,qCAAqC,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,sCAAsC,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,IAAI,CAAC,KAAK,CAAC,CACd,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"}
|
|
@@ -46,7 +46,7 @@ async function accountVerifyEmail(client, request, options) {
|
|
|
46
46
|
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/VerifyEmail")();
|
|
47
47
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
48
48
|
"Content-Type": "application/json",
|
|
49
|
-
Accept: "application/json",
|
|
49
|
+
Accept: "application/problem+json",
|
|
50
50
|
}));
|
|
51
51
|
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
52
52
|
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
@@ -98,8 +98,8 @@ async function accountVerifyEmail(client, request, options) {
|
|
|
98
98
|
const responseFields = {
|
|
99
99
|
HttpMeta: { Response: response, Request: req },
|
|
100
100
|
};
|
|
101
|
-
const [result] = await M.match(M.
|
|
102
|
-
|
|
101
|
+
const [result] = await M.match(M.nil(204, operations.AccountV1SettingsVerfyEmailResponse$inboundSchema, {
|
|
102
|
+
hdrs: true,
|
|
103
103
|
}), M.jsonErr([404, 422, 429], errors.ErrorModel$inboundSchema, {
|
|
104
104
|
ctype: "application/problem+json",
|
|
105
105
|
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountVerifyEmail.js","sourceRoot":"","sources":["../src/funcs/accountVerifyEmail.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,gDA0HC;AA/ID,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;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CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC1D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC9C,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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,11 @@
|
|
|
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
|
+
export declare function connectionAccountV1ConnectionReconnect(client: SteamSetsCore, request: components.V1ReconnectRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1ConnectionReconnectResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
+
//# sourceMappingURL=connectionAccountV1ConnectionReconnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionAccountV1ConnectionReconnect.d.ts","sourceRoot":"","sources":["../src/funcs/connectionAccountV1ConnectionReconnect.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,sCAAsC,CAC1D,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,oCAAoC,EAC7C,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.connectionAccountV1ConnectionReconnect = connectionAccountV1ConnectionReconnect;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
|
+
async function connectionAccountV1ConnectionReconnect(client, request, options) {
|
|
40
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1ReconnectRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
41
|
+
if (!parsed.ok) {
|
|
42
|
+
return parsed;
|
|
43
|
+
}
|
|
44
|
+
const payload = parsed.value;
|
|
45
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
46
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/Reconnect")();
|
|
47
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
Accept: "application/json",
|
|
50
|
+
}));
|
|
51
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
52
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
53
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
54
|
+
const context = {
|
|
55
|
+
operationID: "account.v1.connection.reconnect",
|
|
56
|
+
oAuth2Scopes: [],
|
|
57
|
+
resolvedSecurity: requestSecurity,
|
|
58
|
+
securitySource: client._options.token,
|
|
59
|
+
retryConfig: options?.retries
|
|
60
|
+
|| client._options.retryConfig
|
|
61
|
+
|| {
|
|
62
|
+
strategy: "backoff",
|
|
63
|
+
backoff: {
|
|
64
|
+
initialInterval: 500,
|
|
65
|
+
maxInterval: 5000,
|
|
66
|
+
exponent: 1.5,
|
|
67
|
+
maxElapsedTime: 60000,
|
|
68
|
+
},
|
|
69
|
+
retryConnectionErrors: true,
|
|
70
|
+
}
|
|
71
|
+
|| { strategy: "none" },
|
|
72
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
73
|
+
};
|
|
74
|
+
const requestRes = client._createRequest(context, {
|
|
75
|
+
security: requestSecurity,
|
|
76
|
+
method: "POST",
|
|
77
|
+
baseURL: options?.serverURL,
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["400", "422", "4XX", "500", "5XX"],
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return doResult;
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
const responseFields = {
|
|
99
|
+
HttpMeta: { Response: response, Request: req },
|
|
100
|
+
};
|
|
101
|
+
const [result] = await M.match(M.json(200, operations.AccountV1ConnectionReconnectResponse$inboundSchema, {
|
|
102
|
+
key: "V1ReconnectResponseBody",
|
|
103
|
+
}), M.jsonErr([400, 422], errors.ErrorModel$inboundSchema, {
|
|
104
|
+
ctype: "application/problem+json",
|
|
105
|
+
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
106
|
+
ctype: "application/problem+json",
|
|
107
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
108
|
+
if (!result.ok) {
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=connectionAccountV1ConnectionReconnect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionAccountV1ConnectionReconnect.js","sourceRoot":"","sources":["../src/funcs/connectionAccountV1ConnectionReconnect.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,wFA0HC;AA/ID,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,sCAAsC,CAC1D,MAAqB,EACrB,OAA0C,EAC1C,OAA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,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,kDAAkD,EAAE;QACzE,GAAG,EAAE,yBAAyB;KAC/B,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QACrD,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC9C,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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"}
|
|
@@ -7,5 +7,5 @@ import { SDKError } from "../models/errors/sdkerror.js";
|
|
|
7
7
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
|
-
export declare function connectionsConnect(client: SteamSetsCore, request: components.
|
|
10
|
+
export declare function connectionsConnect(client: SteamSetsCore, request: components.V1ConnectRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1ConnectionConnectResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
11
|
//# sourceMappingURL=connectionsConnect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectionsConnect.d.ts","sourceRoot":"","sources":["../src/funcs/connectionsConnect.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"connectionsConnect.d.ts","sourceRoot":"","sources":["../src/funcs/connectionsConnect.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|
|
@@ -37,7 +37,7 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
37
37
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
38
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
39
|
async function connectionsConnect(client, request, options) {
|
|
40
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.
|
|
40
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1ConnectRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
41
41
|
if (!parsed.ok) {
|
|
42
42
|
return parsed;
|
|
43
43
|
}
|
|
@@ -99,7 +99,7 @@ async function connectionsConnect(client, request, options) {
|
|
|
99
99
|
HttpMeta: { Response: response, Request: req },
|
|
100
100
|
};
|
|
101
101
|
const [result] = await M.match(M.json(200, operations.AccountV1ConnectionConnectResponse$inboundSchema, {
|
|
102
|
-
key: "
|
|
102
|
+
key: "V1ConnectResponseBody",
|
|
103
103
|
}), M.jsonErr([400, 422], errors.ErrorModel$inboundSchema, {
|
|
104
104
|
ctype: "application/problem+json",
|
|
105
105
|
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectionsConnect.js","sourceRoot":"","sources":["../src/funcs/connectionsConnect.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,gDA0HC;AA/ID,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oD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