@steamsets/client-ts 0.8.1 → 0.8.2
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 +24 -28
- package/docs/sdks/account/README.md +96 -185
- package/docs/sdks/connection/README.md +24 -28
- package/docs/sdks/data/README.md +8 -9
- package/docs/sdks/liveness/README.md +2 -2
- package/docs/sdks/location/README.md +8 -9
- package/docs/sdks/session/README.md +18 -20
- package/docs/sdks/settings/README.md +46 -128
- package/funcs/accountAccountV1ConnectionConnect.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionConnect.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionConnect.js +5 -12
- package/funcs/accountAccountV1ConnectionConnect.js.map +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionDeleteConnection.js +5 -12
- package/funcs/accountAccountV1ConnectionDeleteConnection.js.map +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionUpdateConnection.js +5 -12
- package/funcs/accountAccountV1ConnectionUpdateConnection.js.map +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.d.ts.map +1 -1
- package/funcs/accountAccountV1ConnectionVerifyConnection.js +5 -12
- package/funcs/accountAccountV1ConnectionVerifyConnection.js.map +1 -1
- package/funcs/accountAccountV1GetStaff.d.ts +1 -1
- package/funcs/accountAccountV1GetStaff.d.ts.map +1 -1
- package/funcs/accountAccountV1GetStaff.js +5 -12
- package/funcs/accountAccountV1GetStaff.js.map +1 -1
- package/funcs/accountAccountV1SessionCreate.js +3 -3
- package/funcs/accountAccountV1SessionCreate.js.map +1 -1
- package/funcs/accountAccountV1SessionDelete.d.ts +1 -1
- package/funcs/accountAccountV1SessionDelete.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionDelete.js +5 -12
- package/funcs/accountAccountV1SessionDelete.js.map +1 -1
- package/funcs/accountAccountV1SessionGet.d.ts +1 -1
- package/funcs/accountAccountV1SessionGet.d.ts.map +1 -1
- package/funcs/accountAccountV1SessionGet.js +5 -12
- package/funcs/accountAccountV1SessionGet.js.map +1 -1
- package/funcs/accountAccountV1SessionLogin.js +3 -3
- package/funcs/accountAccountV1SessionLogin.js.map +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.d.ts +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsDeleteImages.js +5 -12
- package/funcs/accountAccountV1SettingsDeleteImages.js.map +1 -1
- package/funcs/accountAccountV1SettingsGet.d.ts +1 -1
- package/funcs/accountAccountV1SettingsGet.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsGet.js +5 -12
- package/funcs/accountAccountV1SettingsGet.js.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsSendEmailVerification.js +5 -12
- package/funcs/accountAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/funcs/accountAccountV1SettingsUpdate.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUpdate.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUpdate.js +5 -12
- package/funcs/accountAccountV1SettingsUpdate.js.map +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUpdateImage.js +5 -12
- package/funcs/accountAccountV1SettingsUpdateImage.js.map +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.d.ts +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsUploadImages.js +5 -12
- package/funcs/accountAccountV1SettingsUploadImages.js.map +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.d.ts +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.d.ts.map +1 -1
- package/funcs/accountAccountV1SettingsVerfyEmail.js +5 -12
- package/funcs/accountAccountV1SettingsVerfyEmail.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionConnect.js +5 -12
- package/funcs/connectionAccountV1ConnectionConnect.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionDeleteConnection.js +5 -12
- package/funcs/connectionAccountV1ConnectionDeleteConnection.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionUpdateConnection.js +5 -12
- package/funcs/connectionAccountV1ConnectionUpdateConnection.js.map +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.d.ts.map +1 -1
- package/funcs/connectionAccountV1ConnectionVerifyConnection.js +5 -12
- package/funcs/connectionAccountV1ConnectionVerifyConnection.js.map +1 -1
- package/funcs/dataAccountV1GetStaff.d.ts +1 -1
- package/funcs/dataAccountV1GetStaff.d.ts.map +1 -1
- package/funcs/dataAccountV1GetStaff.js +5 -12
- package/funcs/dataAccountV1GetStaff.js.map +1 -1
- package/funcs/livenessLiveness.js +3 -3
- package/funcs/livenessLiveness.js.map +1 -1
- package/funcs/locationLocation.d.ts +1 -1
- package/funcs/locationLocation.d.ts.map +1 -1
- package/funcs/locationLocation.js +5 -12
- package/funcs/locationLocation.js.map +1 -1
- package/funcs/sessionAccountV1SessionCreate.js +3 -3
- package/funcs/sessionAccountV1SessionCreate.js.map +1 -1
- package/funcs/sessionAccountV1SessionDelete.d.ts +1 -1
- package/funcs/sessionAccountV1SessionDelete.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionDelete.js +5 -12
- package/funcs/sessionAccountV1SessionDelete.js.map +1 -1
- package/funcs/sessionAccountV1SessionGet.d.ts +1 -1
- package/funcs/sessionAccountV1SessionGet.d.ts.map +1 -1
- package/funcs/sessionAccountV1SessionGet.js +5 -12
- package/funcs/sessionAccountV1SessionGet.js.map +1 -1
- package/funcs/sessionAccountV1SessionLogin.js +3 -3
- package/funcs/sessionAccountV1SessionLogin.js.map +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsDeleteImages.js +5 -12
- package/funcs/settingsAccountV1SettingsDeleteImages.js.map +1 -1
- package/funcs/settingsAccountV1SettingsGet.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsGet.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsGet.js +5 -12
- package/funcs/settingsAccountV1SettingsGet.js.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js +5 -12
- package/funcs/settingsAccountV1SettingsSendEmailVerification.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdate.js +5 -12
- package/funcs/settingsAccountV1SettingsUpdate.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUpdateImage.js +5 -12
- package/funcs/settingsAccountV1SettingsUpdateImage.js.map +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsUploadImages.js +5 -12
- package/funcs/settingsAccountV1SettingsUploadImages.js.map +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.d.ts.map +1 -1
- package/funcs/settingsAccountV1SettingsVerfyEmail.js +5 -12
- package/funcs/settingsAccountV1SettingsVerfyEmail.js.map +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/security.js +3 -3
- package/lib/security.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- 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/operations/accountv1connectionconnect.d.ts +0 -23
- package/models/operations/accountv1connectionconnect.d.ts.map +1 -1
- package/models/operations/accountv1connectionconnect.js +1 -20
- package/models/operations/accountv1connectionconnect.js.map +1 -1
- package/models/operations/accountv1connectiondeleteconnection.d.ts +0 -23
- package/models/operations/accountv1connectiondeleteconnection.d.ts.map +1 -1
- package/models/operations/accountv1connectiondeleteconnection.js +1 -20
- package/models/operations/accountv1connectiondeleteconnection.js.map +1 -1
- package/models/operations/accountv1connectionupdateconnection.d.ts +0 -23
- package/models/operations/accountv1connectionupdateconnection.d.ts.map +1 -1
- package/models/operations/accountv1connectionupdateconnection.js +1 -20
- package/models/operations/accountv1connectionupdateconnection.js.map +1 -1
- package/models/operations/accountv1connectionverifyconnection.d.ts +0 -23
- package/models/operations/accountv1connectionverifyconnection.d.ts.map +1 -1
- package/models/operations/accountv1connectionverifyconnection.js +1 -20
- package/models/operations/accountv1connectionverifyconnection.js.map +1 -1
- package/models/operations/accountv1getstaff.d.ts +0 -23
- package/models/operations/accountv1getstaff.d.ts.map +1 -1
- package/models/operations/accountv1getstaff.js +1 -20
- package/models/operations/accountv1getstaff.js.map +1 -1
- package/models/operations/accountv1sessiondelete.d.ts +0 -23
- package/models/operations/accountv1sessiondelete.d.ts.map +1 -1
- package/models/operations/accountv1sessiondelete.js +1 -20
- package/models/operations/accountv1sessiondelete.js.map +1 -1
- package/models/operations/accountv1sessionget.d.ts +0 -23
- package/models/operations/accountv1sessionget.d.ts.map +1 -1
- package/models/operations/accountv1sessionget.js +1 -20
- package/models/operations/accountv1sessionget.js.map +1 -1
- package/models/operations/accountv1settingsdeleteimages.d.ts +0 -23
- package/models/operations/accountv1settingsdeleteimages.d.ts.map +1 -1
- package/models/operations/accountv1settingsdeleteimages.js +1 -20
- package/models/operations/accountv1settingsdeleteimages.js.map +1 -1
- package/models/operations/accountv1settingsget.d.ts +0 -23
- package/models/operations/accountv1settingsget.d.ts.map +1 -1
- package/models/operations/accountv1settingsget.js +1 -20
- package/models/operations/accountv1settingsget.js.map +1 -1
- package/models/operations/accountv1settingssendemailverification.d.ts +0 -23
- package/models/operations/accountv1settingssendemailverification.d.ts.map +1 -1
- package/models/operations/accountv1settingssendemailverification.js +1 -20
- package/models/operations/accountv1settingssendemailverification.js.map +1 -1
- package/models/operations/accountv1settingsupdate.d.ts +0 -23
- package/models/operations/accountv1settingsupdate.d.ts.map +1 -1
- package/models/operations/accountv1settingsupdate.js +1 -20
- package/models/operations/accountv1settingsupdate.js.map +1 -1
- package/models/operations/accountv1settingsupdateimage.d.ts +0 -23
- package/models/operations/accountv1settingsupdateimage.d.ts.map +1 -1
- package/models/operations/accountv1settingsupdateimage.js +1 -20
- package/models/operations/accountv1settingsupdateimage.js.map +1 -1
- package/models/operations/accountv1settingsuploadimages.d.ts +0 -23
- package/models/operations/accountv1settingsuploadimages.d.ts.map +1 -1
- package/models/operations/accountv1settingsuploadimages.js +1 -20
- package/models/operations/accountv1settingsuploadimages.js.map +1 -1
- package/models/operations/accountv1settingsverfyemail.d.ts +0 -23
- package/models/operations/accountv1settingsverfyemail.d.ts.map +1 -1
- package/models/operations/accountv1settingsverfyemail.js +1 -20
- package/models/operations/accountv1settingsverfyemail.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/location.d.ts +0 -23
- package/models/operations/location.d.ts.map +1 -1
- package/models/operations/location.js +1 -20
- package/models/operations/location.js.map +1 -1
- package/package.json +1 -2
- package/sdk/account.d.ts +14 -18
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +28 -35
- package/sdk/account.js.map +1 -1
- package/sdk/connection.d.ts +4 -4
- package/sdk/connection.d.ts.map +1 -1
- package/sdk/connection.js +8 -8
- package/sdk/connection.js.map +1 -1
- package/sdk/data.d.ts +1 -1
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +2 -2
- package/sdk/data.js.map +1 -1
- package/sdk/location.d.ts +1 -1
- package/sdk/location.d.ts.map +1 -1
- package/sdk/location.js +2 -2
- package/sdk/location.js.map +1 -1
- package/sdk/session.d.ts +2 -2
- package/sdk/session.d.ts.map +1 -1
- package/sdk/session.js +4 -4
- package/sdk/session.js.map +1 -1
- package/sdk/settings.d.ts +7 -11
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +14 -21
- package/sdk/settings.js.map +1 -1
- package/src/funcs/accountAccountV1ConnectionConnect.ts +5 -13
- package/src/funcs/accountAccountV1ConnectionDeleteConnection.ts +5 -13
- package/src/funcs/accountAccountV1ConnectionUpdateConnection.ts +5 -13
- package/src/funcs/accountAccountV1ConnectionVerifyConnection.ts +5 -13
- package/src/funcs/accountAccountV1GetStaff.ts +5 -13
- package/src/funcs/accountAccountV1SessionCreate.ts +3 -3
- package/src/funcs/accountAccountV1SessionDelete.ts +5 -13
- package/src/funcs/accountAccountV1SessionGet.ts +5 -13
- package/src/funcs/accountAccountV1SessionLogin.ts +3 -3
- package/src/funcs/accountAccountV1SettingsDeleteImages.ts +5 -13
- package/src/funcs/accountAccountV1SettingsGet.ts +5 -13
- package/src/funcs/accountAccountV1SettingsSendEmailVerification.ts +5 -13
- package/src/funcs/accountAccountV1SettingsUpdate.ts +5 -13
- package/src/funcs/accountAccountV1SettingsUpdateImage.ts +5 -13
- package/src/funcs/accountAccountV1SettingsUploadImages.ts +5 -13
- package/src/funcs/accountAccountV1SettingsVerfyEmail.ts +5 -13
- package/src/funcs/connectionAccountV1ConnectionConnect.ts +5 -13
- package/src/funcs/connectionAccountV1ConnectionDeleteConnection.ts +5 -13
- package/src/funcs/connectionAccountV1ConnectionUpdateConnection.ts +5 -13
- package/src/funcs/connectionAccountV1ConnectionVerifyConnection.ts +5 -13
- package/src/funcs/dataAccountV1GetStaff.ts +5 -13
- package/src/funcs/livenessLiveness.ts +3 -3
- package/src/funcs/locationLocation.ts +5 -13
- package/src/funcs/sessionAccountV1SessionCreate.ts +3 -3
- package/src/funcs/sessionAccountV1SessionDelete.ts +5 -13
- package/src/funcs/sessionAccountV1SessionGet.ts +5 -13
- package/src/funcs/sessionAccountV1SessionLogin.ts +3 -3
- package/src/funcs/settingsAccountV1SettingsDeleteImages.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsGet.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsSendEmailVerification.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsUpdate.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsUpdateImage.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsUploadImages.ts +5 -13
- package/src/funcs/settingsAccountV1SettingsVerfyEmail.ts +5 -13
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/components/security.ts +4 -4
- package/src/models/operations/accountv1connectionconnect.ts +0 -41
- package/src/models/operations/accountv1connectiondeleteconnection.ts +0 -44
- package/src/models/operations/accountv1connectionupdateconnection.ts +0 -44
- package/src/models/operations/accountv1connectionverifyconnection.ts +0 -44
- package/src/models/operations/accountv1getstaff.ts +0 -40
- package/src/models/operations/accountv1sessiondelete.ts +0 -40
- package/src/models/operations/accountv1sessionget.ts +0 -40
- package/src/models/operations/accountv1settingsdeleteimages.ts +0 -42
- package/src/models/operations/accountv1settingsget.ts +0 -40
- package/src/models/operations/accountv1settingssendemailverification.ts +0 -45
- package/src/models/operations/accountv1settingsupdate.ts +0 -40
- package/src/models/operations/accountv1settingsupdateimage.ts +0 -42
- package/src/models/operations/accountv1settingsuploadimages.ts +0 -42
- package/src/models/operations/accountv1settingsverfyemail.ts +0 -42
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/location.ts +0 -40
- package/src/sdk/account.ts +0 -43
- package/src/sdk/connection.ts +0 -8
- package/src/sdk/data.ts +0 -2
- package/src/sdk/location.ts +0 -2
- package/src/sdk/session.ts +0 -4
- package/src/sdk/settings.ts +0 -29
- package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts +0 -13
- package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts.map +0 -1
- package/funcs/accountAccountV1SettingsGenerateApiKey.js +0 -92
- package/funcs/accountAccountV1SettingsGenerateApiKey.js.map +0 -1
- package/funcs/settingsAccountV1SettingsGenerateApiKey.d.ts +0 -13
- package/funcs/settingsAccountV1SettingsGenerateApiKey.d.ts.map +0 -1
- package/funcs/settingsAccountV1SettingsGenerateApiKey.js +0 -92
- package/funcs/settingsAccountV1SettingsGenerateApiKey.js.map +0 -1
- package/models/components/v1generateapikeyresponsebody.d.ts +0 -33
- package/models/components/v1generateapikeyresponsebody.d.ts.map +0 -1
- package/models/components/v1generateapikeyresponsebody.js +0 -61
- package/models/components/v1generateapikeyresponsebody.js.map +0 -1
- package/models/operations/accountv1settingsgenerateapikey.d.ts +0 -54
- package/models/operations/accountv1settingsgenerateapikey.d.ts.map +0 -1
- package/models/operations/accountv1settingsgenerateapikey.js +0 -85
- package/models/operations/accountv1settingsgenerateapikey.js.map +0 -1
- package/src/funcs/accountAccountV1SettingsGenerateApiKey.ts +0 -120
- package/src/funcs/settingsAccountV1SettingsGenerateApiKey.ts +0 -120
- package/src/models/components/v1generateapikeyresponsebody.ts +0 -64
- package/src/models/operations/accountv1settingsgenerateapikey.ts +0 -114
|
@@ -12,7 +12,6 @@ Account related operations
|
|
|
12
12
|
* [accountV1ConnectionDeleteConnection](#accountv1connectiondeleteconnection) - Remove a connection
|
|
13
13
|
* [accountV1SettingsDeleteImages](#accountv1settingsdeleteimages) - Delete mulitple imagest
|
|
14
14
|
* [accountV1SessionDelete](#accountv1sessiondelete) - Deletes a session, can also be used to logout
|
|
15
|
-
* [accountV1SettingsGenerateApiKey](#accountv1settingsgenerateapikey) - Generate a new API key for the account
|
|
16
15
|
* [accountV1GetApps](#accountv1getapps) - Get Account Apps
|
|
17
16
|
* [accountV1GetBadges](#accountv1getbadges) - Get Account Badges
|
|
18
17
|
* [accountV1GetDataPoints](#accountv1getdatapoints) - Get Account DataPoints
|
|
@@ -40,14 +39,14 @@ Connect a new Social Provider
|
|
|
40
39
|
```typescript
|
|
41
40
|
import { SteamSets } from "@steamsets/client-ts";
|
|
42
41
|
|
|
43
|
-
const steamSets = new SteamSets(
|
|
42
|
+
const steamSets = new SteamSets({
|
|
43
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
44
|
+
});
|
|
44
45
|
|
|
45
46
|
async function run() {
|
|
46
47
|
const result = await steamSets.account.accountV1ConnectionConnect({
|
|
47
48
|
code: "123456",
|
|
48
49
|
provider: "discord",
|
|
49
|
-
}, {
|
|
50
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
51
50
|
});
|
|
52
51
|
|
|
53
52
|
// Handle the result
|
|
@@ -67,14 +66,14 @@ import { accountAccountV1ConnectionConnect } from "@steamsets/client-ts/funcs/ac
|
|
|
67
66
|
|
|
68
67
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
69
68
|
// You can create one instance of it to use across an application.
|
|
70
|
-
const steamSets = new SteamSetsCore(
|
|
69
|
+
const steamSets = new SteamSetsCore({
|
|
70
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
71
|
+
});
|
|
71
72
|
|
|
72
73
|
async function run() {
|
|
73
74
|
const res = await accountAccountV1ConnectionConnect(steamSets, {
|
|
74
75
|
code: "123456",
|
|
75
76
|
provider: "discord",
|
|
76
|
-
}, {
|
|
77
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
78
77
|
});
|
|
79
78
|
|
|
80
79
|
if (!res.ok) {
|
|
@@ -95,7 +94,6 @@ run();
|
|
|
95
94
|
| Parameter | Type | Required | Description |
|
|
96
95
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
97
96
|
| `request` | [components.V1ConnectRequestBody](../../models/components/v1connectrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
98
|
-
| `security` | [operations.AccountV1ConnectionConnectSecurity](../../models/operations/accountv1connectionconnectsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
99
97
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
100
98
|
| `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. |
|
|
101
99
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -122,7 +120,7 @@ Create a new session for non logged in users
|
|
|
122
120
|
import { SteamSets } from "@steamsets/client-ts";
|
|
123
121
|
|
|
124
122
|
const steamSets = new SteamSets({
|
|
125
|
-
|
|
123
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
126
124
|
});
|
|
127
125
|
|
|
128
126
|
async function run() {
|
|
@@ -146,7 +144,7 @@ import { accountAccountV1SessionCreate } from "@steamsets/client-ts/funcs/accoun
|
|
|
146
144
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
147
145
|
// You can create one instance of it to use across an application.
|
|
148
146
|
const steamSets = new SteamSetsCore({
|
|
149
|
-
|
|
147
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
150
148
|
});
|
|
151
149
|
|
|
152
150
|
async function run() {
|
|
@@ -195,13 +193,13 @@ Remove a connection
|
|
|
195
193
|
```typescript
|
|
196
194
|
import { SteamSets } from "@steamsets/client-ts";
|
|
197
195
|
|
|
198
|
-
const steamSets = new SteamSets(
|
|
196
|
+
const steamSets = new SteamSets({
|
|
197
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
198
|
+
});
|
|
199
199
|
|
|
200
200
|
async function run() {
|
|
201
201
|
const result = await steamSets.account.accountV1ConnectionDeleteConnection({
|
|
202
202
|
connectionId: "123456",
|
|
203
|
-
}, {
|
|
204
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
205
203
|
});
|
|
206
204
|
|
|
207
205
|
// Handle the result
|
|
@@ -221,13 +219,13 @@ import { accountAccountV1ConnectionDeleteConnection } from "@steamsets/client-ts
|
|
|
221
219
|
|
|
222
220
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
223
221
|
// You can create one instance of it to use across an application.
|
|
224
|
-
const steamSets = new SteamSetsCore(
|
|
222
|
+
const steamSets = new SteamSetsCore({
|
|
223
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
224
|
+
});
|
|
225
225
|
|
|
226
226
|
async function run() {
|
|
227
227
|
const res = await accountAccountV1ConnectionDeleteConnection(steamSets, {
|
|
228
228
|
connectionId: "123456",
|
|
229
|
-
}, {
|
|
230
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
231
229
|
});
|
|
232
230
|
|
|
233
231
|
if (!res.ok) {
|
|
@@ -248,7 +246,6 @@ run();
|
|
|
248
246
|
| Parameter | Type | Required | Description |
|
|
249
247
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
250
248
|
| `request` | [components.V1DeleteConnectionRequestBody](../../models/components/v1deleteconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
251
|
-
| `security` | [operations.AccountV1ConnectionDeleteConnectionSecurity](../../models/operations/accountv1connectiondeleteconnectionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
252
249
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
253
250
|
| `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. |
|
|
254
251
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -274,15 +271,15 @@ Delete mulitple imagest
|
|
|
274
271
|
```typescript
|
|
275
272
|
import { SteamSets } from "@steamsets/client-ts";
|
|
276
273
|
|
|
277
|
-
const steamSets = new SteamSets(
|
|
274
|
+
const steamSets = new SteamSets({
|
|
275
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
276
|
+
});
|
|
278
277
|
|
|
279
278
|
async function run() {
|
|
280
279
|
const result = await steamSets.account.accountV1SettingsDeleteImages({
|
|
281
280
|
imageIds: [
|
|
282
281
|
"<value>",
|
|
283
282
|
],
|
|
284
|
-
}, {
|
|
285
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
286
283
|
});
|
|
287
284
|
|
|
288
285
|
// Handle the result
|
|
@@ -302,15 +299,15 @@ import { accountAccountV1SettingsDeleteImages } from "@steamsets/client-ts/funcs
|
|
|
302
299
|
|
|
303
300
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
304
301
|
// You can create one instance of it to use across an application.
|
|
305
|
-
const steamSets = new SteamSetsCore(
|
|
302
|
+
const steamSets = new SteamSetsCore({
|
|
303
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
304
|
+
});
|
|
306
305
|
|
|
307
306
|
async function run() {
|
|
308
307
|
const res = await accountAccountV1SettingsDeleteImages(steamSets, {
|
|
309
308
|
imageIds: [
|
|
310
309
|
"<value>",
|
|
311
310
|
],
|
|
312
|
-
}, {
|
|
313
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
314
311
|
});
|
|
315
312
|
|
|
316
313
|
if (!res.ok) {
|
|
@@ -331,7 +328,6 @@ run();
|
|
|
331
328
|
| Parameter | Type | Required | Description |
|
|
332
329
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
333
330
|
| `request` | [components.V1DeleteImagesRequestBody](../../models/components/v1deleteimagesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
334
|
-
| `security` | [operations.AccountV1SettingsDeleteImagesSecurity](../../models/operations/accountv1settingsdeleteimagessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
335
331
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
336
332
|
| `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. |
|
|
337
333
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -357,13 +353,13 @@ Deletes a session, can also be used to logout
|
|
|
357
353
|
```typescript
|
|
358
354
|
import { SteamSets } from "@steamsets/client-ts";
|
|
359
355
|
|
|
360
|
-
const steamSets = new SteamSets(
|
|
356
|
+
const steamSets = new SteamSets({
|
|
357
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
358
|
+
});
|
|
361
359
|
|
|
362
360
|
async function run() {
|
|
363
361
|
const result = await steamSets.account.accountV1SessionDelete({
|
|
364
362
|
sessionId: "123456",
|
|
365
|
-
}, {
|
|
366
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
367
363
|
});
|
|
368
364
|
|
|
369
365
|
// Handle the result
|
|
@@ -383,13 +379,13 @@ import { accountAccountV1SessionDelete } from "@steamsets/client-ts/funcs/accoun
|
|
|
383
379
|
|
|
384
380
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
385
381
|
// You can create one instance of it to use across an application.
|
|
386
|
-
const steamSets = new SteamSetsCore(
|
|
382
|
+
const steamSets = new SteamSetsCore({
|
|
383
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
384
|
+
});
|
|
387
385
|
|
|
388
386
|
async function run() {
|
|
389
387
|
const res = await accountAccountV1SessionDelete(steamSets, {
|
|
390
388
|
sessionId: "123456",
|
|
391
|
-
}, {
|
|
392
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
393
389
|
});
|
|
394
390
|
|
|
395
391
|
if (!res.ok) {
|
|
@@ -410,7 +406,6 @@ run();
|
|
|
410
406
|
| Parameter | Type | Required | Description |
|
|
411
407
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
412
408
|
| `request` | [components.V1DeleteSessionRequestBody](../../models/components/v1deletesessionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
413
|
-
| `security` | [operations.AccountV1SessionDeleteSecurity](../../models/operations/accountv1sessiondeletesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
414
409
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
415
410
|
| `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. |
|
|
416
411
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -427,80 +422,6 @@ run();
|
|
|
427
422
|
| errors.SDKError | 4xx-5xx | */* |
|
|
428
423
|
|
|
429
424
|
|
|
430
|
-
## accountV1SettingsGenerateApiKey
|
|
431
|
-
|
|
432
|
-
Generate a new API key for the account
|
|
433
|
-
|
|
434
|
-
### Example Usage
|
|
435
|
-
|
|
436
|
-
```typescript
|
|
437
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
438
|
-
|
|
439
|
-
const steamSets = new SteamSets();
|
|
440
|
-
|
|
441
|
-
async function run() {
|
|
442
|
-
const result = await steamSets.account.accountV1SettingsGenerateApiKey({
|
|
443
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
444
|
-
});
|
|
445
|
-
|
|
446
|
-
// Handle the result
|
|
447
|
-
console.log(result)
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
run();
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
### Standalone function
|
|
454
|
-
|
|
455
|
-
The standalone function version of this method:
|
|
456
|
-
|
|
457
|
-
```typescript
|
|
458
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
459
|
-
import { accountAccountV1SettingsGenerateApiKey } from "@steamsets/client-ts/funcs/accountAccountV1SettingsGenerateApiKey.js";
|
|
460
|
-
|
|
461
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
462
|
-
// You can create one instance of it to use across an application.
|
|
463
|
-
const steamSets = new SteamSetsCore();
|
|
464
|
-
|
|
465
|
-
async function run() {
|
|
466
|
-
const res = await accountAccountV1SettingsGenerateApiKey(steamSets, {
|
|
467
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
if (!res.ok) {
|
|
471
|
-
throw res.error;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
const { value: result } = res;
|
|
475
|
-
|
|
476
|
-
// Handle the result
|
|
477
|
-
console.log(result)
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
run();
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
### Parameters
|
|
484
|
-
|
|
485
|
-
| Parameter | Type | Required | Description |
|
|
486
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
487
|
-
| `security` | [operations.AccountV1SettingsGenerateApiKeySecurity](../../models/operations/accountv1settingsgenerateapikeysecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
488
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
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. |
|
|
490
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
491
|
-
|
|
492
|
-
### Response
|
|
493
|
-
|
|
494
|
-
**Promise\<[operations.AccountV1SettingsGenerateApiKeyResponse](../../models/operations/accountv1settingsgenerateapikeyresponse.md)\>**
|
|
495
|
-
|
|
496
|
-
### Errors
|
|
497
|
-
|
|
498
|
-
| Error Object | Status Code | Content Type |
|
|
499
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
500
|
-
| errors.ErrorModel | 404,429,500 | application/problem+json |
|
|
501
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
502
|
-
|
|
503
|
-
|
|
504
425
|
## accountV1GetApps
|
|
505
426
|
|
|
506
427
|
Get Account Apps
|
|
@@ -992,12 +913,12 @@ Gets all session data
|
|
|
992
913
|
```typescript
|
|
993
914
|
import { SteamSets } from "@steamsets/client-ts";
|
|
994
915
|
|
|
995
|
-
const steamSets = new SteamSets(
|
|
916
|
+
const steamSets = new SteamSets({
|
|
917
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
918
|
+
});
|
|
996
919
|
|
|
997
920
|
async function run() {
|
|
998
|
-
const result = await steamSets.account.accountV1SessionGet(
|
|
999
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1000
|
-
});
|
|
921
|
+
const result = await steamSets.account.accountV1SessionGet();
|
|
1001
922
|
|
|
1002
923
|
// Handle the result
|
|
1003
924
|
console.log(result)
|
|
@@ -1016,12 +937,12 @@ import { accountAccountV1SessionGet } from "@steamsets/client-ts/funcs/accountAc
|
|
|
1016
937
|
|
|
1017
938
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1018
939
|
// You can create one instance of it to use across an application.
|
|
1019
|
-
const steamSets = new SteamSetsCore(
|
|
940
|
+
const steamSets = new SteamSetsCore({
|
|
941
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
942
|
+
});
|
|
1020
943
|
|
|
1021
944
|
async function run() {
|
|
1022
|
-
const res = await accountAccountV1SessionGet(steamSets
|
|
1023
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1024
|
-
});
|
|
945
|
+
const res = await accountAccountV1SessionGet(steamSets);
|
|
1025
946
|
|
|
1026
947
|
if (!res.ok) {
|
|
1027
948
|
throw res.error;
|
|
@@ -1040,7 +961,6 @@ run();
|
|
|
1040
961
|
|
|
1041
962
|
| Parameter | Type | Required | Description |
|
|
1042
963
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1043
|
-
| `security` | [operations.AccountV1SessionGetSecurity](../../models/operations/accountv1sessiongetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1044
964
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1045
965
|
| `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. |
|
|
1046
966
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1066,12 +986,12 @@ Gets all settings for the account
|
|
|
1066
986
|
```typescript
|
|
1067
987
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1068
988
|
|
|
1069
|
-
const steamSets = new SteamSets(
|
|
989
|
+
const steamSets = new SteamSets({
|
|
990
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
991
|
+
});
|
|
1070
992
|
|
|
1071
993
|
async function run() {
|
|
1072
|
-
const result = await steamSets.account.accountV1SettingsGet(
|
|
1073
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1074
|
-
});
|
|
994
|
+
const result = await steamSets.account.accountV1SettingsGet();
|
|
1075
995
|
|
|
1076
996
|
// Handle the result
|
|
1077
997
|
console.log(result)
|
|
@@ -1090,12 +1010,12 @@ import { accountAccountV1SettingsGet } from "@steamsets/client-ts/funcs/accountA
|
|
|
1090
1010
|
|
|
1091
1011
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1092
1012
|
// You can create one instance of it to use across an application.
|
|
1093
|
-
const steamSets = new SteamSetsCore(
|
|
1013
|
+
const steamSets = new SteamSetsCore({
|
|
1014
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1015
|
+
});
|
|
1094
1016
|
|
|
1095
1017
|
async function run() {
|
|
1096
|
-
const res = await accountAccountV1SettingsGet(steamSets
|
|
1097
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1098
|
-
});
|
|
1018
|
+
const res = await accountAccountV1SettingsGet(steamSets);
|
|
1099
1019
|
|
|
1100
1020
|
if (!res.ok) {
|
|
1101
1021
|
throw res.error;
|
|
@@ -1114,7 +1034,6 @@ run();
|
|
|
1114
1034
|
|
|
1115
1035
|
| Parameter | Type | Required | Description |
|
|
1116
1036
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1117
|
-
| `security` | [operations.AccountV1SettingsGetSecurity](../../models/operations/accountv1settingsgetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1118
1037
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1119
1038
|
| `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. |
|
|
1120
1039
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1140,12 +1059,12 @@ Get Staff Members and their info
|
|
|
1140
1059
|
```typescript
|
|
1141
1060
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1142
1061
|
|
|
1143
|
-
const steamSets = new SteamSets(
|
|
1062
|
+
const steamSets = new SteamSets({
|
|
1063
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1064
|
+
});
|
|
1144
1065
|
|
|
1145
1066
|
async function run() {
|
|
1146
|
-
const result = await steamSets.account.accountV1GetStaff(
|
|
1147
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1148
|
-
});
|
|
1067
|
+
const result = await steamSets.account.accountV1GetStaff();
|
|
1149
1068
|
|
|
1150
1069
|
// Handle the result
|
|
1151
1070
|
console.log(result)
|
|
@@ -1164,12 +1083,12 @@ import { accountAccountV1GetStaff } from "@steamsets/client-ts/funcs/accountAcco
|
|
|
1164
1083
|
|
|
1165
1084
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1166
1085
|
// You can create one instance of it to use across an application.
|
|
1167
|
-
const steamSets = new SteamSetsCore(
|
|
1086
|
+
const steamSets = new SteamSetsCore({
|
|
1087
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1088
|
+
});
|
|
1168
1089
|
|
|
1169
1090
|
async function run() {
|
|
1170
|
-
const res = await accountAccountV1GetStaff(steamSets
|
|
1171
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1172
|
-
});
|
|
1091
|
+
const res = await accountAccountV1GetStaff(steamSets);
|
|
1173
1092
|
|
|
1174
1093
|
if (!res.ok) {
|
|
1175
1094
|
throw res.error;
|
|
@@ -1188,7 +1107,6 @@ run();
|
|
|
1188
1107
|
|
|
1189
1108
|
| Parameter | Type | Required | Description |
|
|
1190
1109
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1191
|
-
| `security` | [operations.AccountV1GetStaffSecurity](../../models/operations/accountv1getstaffsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1192
1110
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1193
1111
|
| `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. |
|
|
1194
1112
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1215,7 +1133,7 @@ Logs a user in and creates a new session
|
|
|
1215
1133
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1216
1134
|
|
|
1217
1135
|
const steamSets = new SteamSets({
|
|
1218
|
-
|
|
1136
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1219
1137
|
});
|
|
1220
1138
|
|
|
1221
1139
|
async function run() {
|
|
@@ -1252,7 +1170,7 @@ import { accountAccountV1SessionLogin } from "@steamsets/client-ts/funcs/account
|
|
|
1252
1170
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1253
1171
|
// You can create one instance of it to use across an application.
|
|
1254
1172
|
const steamSets = new SteamSetsCore({
|
|
1255
|
-
|
|
1173
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1256
1174
|
});
|
|
1257
1175
|
|
|
1258
1176
|
async function run() {
|
|
@@ -1314,12 +1232,12 @@ Resend the verification code for an email
|
|
|
1314
1232
|
```typescript
|
|
1315
1233
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1316
1234
|
|
|
1317
|
-
const steamSets = new SteamSets(
|
|
1235
|
+
const steamSets = new SteamSets({
|
|
1236
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1237
|
+
});
|
|
1318
1238
|
|
|
1319
1239
|
async function run() {
|
|
1320
|
-
const result = await steamSets.account.accountV1SettingsSendEmailVerification({}
|
|
1321
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1322
|
-
});
|
|
1240
|
+
const result = await steamSets.account.accountV1SettingsSendEmailVerification({});
|
|
1323
1241
|
|
|
1324
1242
|
// Handle the result
|
|
1325
1243
|
console.log(result)
|
|
@@ -1338,12 +1256,12 @@ import { accountAccountV1SettingsSendEmailVerification } from "@steamsets/client
|
|
|
1338
1256
|
|
|
1339
1257
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1340
1258
|
// You can create one instance of it to use across an application.
|
|
1341
|
-
const steamSets = new SteamSetsCore(
|
|
1259
|
+
const steamSets = new SteamSetsCore({
|
|
1260
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1261
|
+
});
|
|
1342
1262
|
|
|
1343
1263
|
async function run() {
|
|
1344
|
-
const res = await accountAccountV1SettingsSendEmailVerification(steamSets, {}
|
|
1345
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1346
|
-
});
|
|
1264
|
+
const res = await accountAccountV1SettingsSendEmailVerification(steamSets, {});
|
|
1347
1265
|
|
|
1348
1266
|
if (!res.ok) {
|
|
1349
1267
|
throw res.error;
|
|
@@ -1363,7 +1281,6 @@ run();
|
|
|
1363
1281
|
| Parameter | Type | Required | Description |
|
|
1364
1282
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1365
1283
|
| `request` | [operations.AccountV1SettingsSendEmailVerificationRequest](../../models/operations/accountv1settingssendemailverificationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1366
|
-
| `security` | [operations.AccountV1SettingsSendEmailVerificationSecurity](../../models/operations/accountv1settingssendemailverificationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1367
1284
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1368
1285
|
| `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. |
|
|
1369
1286
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1389,14 +1306,14 @@ Make a connection visible/invisible
|
|
|
1389
1306
|
```typescript
|
|
1390
1307
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1391
1308
|
|
|
1392
|
-
const steamSets = new SteamSets(
|
|
1309
|
+
const steamSets = new SteamSets({
|
|
1310
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1311
|
+
});
|
|
1393
1312
|
|
|
1394
1313
|
async function run() {
|
|
1395
1314
|
const result = await steamSets.account.accountV1ConnectionUpdateConnection({
|
|
1396
1315
|
connectionId: "123456",
|
|
1397
1316
|
hidden: true,
|
|
1398
|
-
}, {
|
|
1399
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1400
1317
|
});
|
|
1401
1318
|
|
|
1402
1319
|
// Handle the result
|
|
@@ -1416,14 +1333,14 @@ import { accountAccountV1ConnectionUpdateConnection } from "@steamsets/client-ts
|
|
|
1416
1333
|
|
|
1417
1334
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1418
1335
|
// You can create one instance of it to use across an application.
|
|
1419
|
-
const steamSets = new SteamSetsCore(
|
|
1336
|
+
const steamSets = new SteamSetsCore({
|
|
1337
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1338
|
+
});
|
|
1420
1339
|
|
|
1421
1340
|
async function run() {
|
|
1422
1341
|
const res = await accountAccountV1ConnectionUpdateConnection(steamSets, {
|
|
1423
1342
|
connectionId: "123456",
|
|
1424
1343
|
hidden: true,
|
|
1425
|
-
}, {
|
|
1426
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1427
1344
|
});
|
|
1428
1345
|
|
|
1429
1346
|
if (!res.ok) {
|
|
@@ -1444,7 +1361,6 @@ run();
|
|
|
1444
1361
|
| Parameter | Type | Required | Description |
|
|
1445
1362
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1446
1363
|
| `request` | [components.V1UpdateConnectionRequestBody](../../models/components/v1updateconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1447
|
-
| `security` | [operations.AccountV1ConnectionUpdateConnectionSecurity](../../models/operations/accountv1connectionupdateconnectionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1448
1364
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1449
1365
|
| `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. |
|
|
1450
1366
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1470,14 +1386,14 @@ Update one of the uploaded images
|
|
|
1470
1386
|
```typescript
|
|
1471
1387
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1472
1388
|
|
|
1473
|
-
const steamSets = new SteamSets(
|
|
1389
|
+
const steamSets = new SteamSets({
|
|
1390
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1391
|
+
});
|
|
1474
1392
|
|
|
1475
1393
|
async function run() {
|
|
1476
1394
|
const result = await steamSets.account.accountV1SettingsUpdateImage({
|
|
1477
1395
|
active: true,
|
|
1478
1396
|
imageId: "123456",
|
|
1479
|
-
}, {
|
|
1480
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1481
1397
|
});
|
|
1482
1398
|
|
|
1483
1399
|
// Handle the result
|
|
@@ -1497,14 +1413,14 @@ import { accountAccountV1SettingsUpdateImage } from "@steamsets/client-ts/funcs/
|
|
|
1497
1413
|
|
|
1498
1414
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1499
1415
|
// You can create one instance of it to use across an application.
|
|
1500
|
-
const steamSets = new SteamSetsCore(
|
|
1416
|
+
const steamSets = new SteamSetsCore({
|
|
1417
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1418
|
+
});
|
|
1501
1419
|
|
|
1502
1420
|
async function run() {
|
|
1503
1421
|
const res = await accountAccountV1SettingsUpdateImage(steamSets, {
|
|
1504
1422
|
active: true,
|
|
1505
1423
|
imageId: "123456",
|
|
1506
|
-
}, {
|
|
1507
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1508
1424
|
});
|
|
1509
1425
|
|
|
1510
1426
|
if (!res.ok) {
|
|
@@ -1525,7 +1441,6 @@ run();
|
|
|
1525
1441
|
| Parameter | Type | Required | Description |
|
|
1526
1442
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1527
1443
|
| `request` | [components.V1UpdateImageRequestBody](../../models/components/v1updateimagerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1528
|
-
| `security` | [operations.AccountV1SettingsUpdateImageSecurity](../../models/operations/accountv1settingsupdateimagesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1529
1444
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1530
1445
|
| `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. |
|
|
1531
1446
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1551,7 +1466,9 @@ Update settings for the logged in account
|
|
|
1551
1466
|
```typescript
|
|
1552
1467
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1553
1468
|
|
|
1554
|
-
const steamSets = new SteamSets(
|
|
1469
|
+
const steamSets = new SteamSets({
|
|
1470
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1471
|
+
});
|
|
1555
1472
|
|
|
1556
1473
|
async function run() {
|
|
1557
1474
|
const result = await steamSets.account.accountV1SettingsUpdate({
|
|
@@ -1570,8 +1487,6 @@ async function run() {
|
|
|
1570
1487
|
theme: "dark",
|
|
1571
1488
|
vanity: "flo",
|
|
1572
1489
|
},
|
|
1573
|
-
}, {
|
|
1574
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1575
1490
|
});
|
|
1576
1491
|
|
|
1577
1492
|
// Handle the result
|
|
@@ -1591,7 +1506,9 @@ import { accountAccountV1SettingsUpdate } from "@steamsets/client-ts/funcs/accou
|
|
|
1591
1506
|
|
|
1592
1507
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1593
1508
|
// You can create one instance of it to use across an application.
|
|
1594
|
-
const steamSets = new SteamSetsCore(
|
|
1509
|
+
const steamSets = new SteamSetsCore({
|
|
1510
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1511
|
+
});
|
|
1595
1512
|
|
|
1596
1513
|
async function run() {
|
|
1597
1514
|
const res = await accountAccountV1SettingsUpdate(steamSets, {
|
|
@@ -1610,8 +1527,6 @@ async function run() {
|
|
|
1610
1527
|
theme: "dark",
|
|
1611
1528
|
vanity: "flo",
|
|
1612
1529
|
},
|
|
1613
|
-
}, {
|
|
1614
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1615
1530
|
});
|
|
1616
1531
|
|
|
1617
1532
|
if (!res.ok) {
|
|
@@ -1632,7 +1547,6 @@ run();
|
|
|
1632
1547
|
| Parameter | Type | Required | Description |
|
|
1633
1548
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1634
1549
|
| `request` | [operations.AccountV1SettingsUpdateRequest](../../models/operations/accountv1settingsupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1635
|
-
| `security` | [operations.AccountV1SettingsUpdateSecurity](../../models/operations/accountv1settingsupdatesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1636
1550
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1637
1551
|
| `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. |
|
|
1638
1552
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1658,7 +1572,9 @@ Multi Upload Endpoint for images
|
|
|
1658
1572
|
```typescript
|
|
1659
1573
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1660
1574
|
|
|
1661
|
-
const steamSets = new SteamSets(
|
|
1575
|
+
const steamSets = new SteamSets({
|
|
1576
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1577
|
+
});
|
|
1662
1578
|
|
|
1663
1579
|
async function run() {
|
|
1664
1580
|
const result = await steamSets.account.accountV1SettingsUploadImages({
|
|
@@ -1668,8 +1584,6 @@ async function run() {
|
|
|
1668
1584
|
type: "avatar",
|
|
1669
1585
|
},
|
|
1670
1586
|
],
|
|
1671
|
-
}, {
|
|
1672
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1673
1587
|
});
|
|
1674
1588
|
|
|
1675
1589
|
// Handle the result
|
|
@@ -1689,7 +1603,9 @@ import { accountAccountV1SettingsUploadImages } from "@steamsets/client-ts/funcs
|
|
|
1689
1603
|
|
|
1690
1604
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1691
1605
|
// You can create one instance of it to use across an application.
|
|
1692
|
-
const steamSets = new SteamSetsCore(
|
|
1606
|
+
const steamSets = new SteamSetsCore({
|
|
1607
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1608
|
+
});
|
|
1693
1609
|
|
|
1694
1610
|
async function run() {
|
|
1695
1611
|
const res = await accountAccountV1SettingsUploadImages(steamSets, {
|
|
@@ -1699,8 +1615,6 @@ async function run() {
|
|
|
1699
1615
|
type: "avatar",
|
|
1700
1616
|
},
|
|
1701
1617
|
],
|
|
1702
|
-
}, {
|
|
1703
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1704
1618
|
});
|
|
1705
1619
|
|
|
1706
1620
|
if (!res.ok) {
|
|
@@ -1721,7 +1635,6 @@ run();
|
|
|
1721
1635
|
| Parameter | Type | Required | Description |
|
|
1722
1636
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1723
1637
|
| `request` | [components.V1UploadImagesRequestBody](../../models/components/v1uploadimagesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1724
|
-
| `security` | [operations.AccountV1SettingsUploadImagesSecurity](../../models/operations/accountv1settingsuploadimagessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1725
1638
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1726
1639
|
| `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. |
|
|
1727
1640
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1747,13 +1660,13 @@ Verify a domain connection only atm
|
|
|
1747
1660
|
```typescript
|
|
1748
1661
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1749
1662
|
|
|
1750
|
-
const steamSets = new SteamSets(
|
|
1663
|
+
const steamSets = new SteamSets({
|
|
1664
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1665
|
+
});
|
|
1751
1666
|
|
|
1752
1667
|
async function run() {
|
|
1753
1668
|
const result = await steamSets.account.accountV1ConnectionVerifyConnection({
|
|
1754
1669
|
connectionId: "123456",
|
|
1755
|
-
}, {
|
|
1756
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1757
1670
|
});
|
|
1758
1671
|
|
|
1759
1672
|
// Handle the result
|
|
@@ -1773,13 +1686,13 @@ import { accountAccountV1ConnectionVerifyConnection } from "@steamsets/client-ts
|
|
|
1773
1686
|
|
|
1774
1687
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1775
1688
|
// You can create one instance of it to use across an application.
|
|
1776
|
-
const steamSets = new SteamSetsCore(
|
|
1689
|
+
const steamSets = new SteamSetsCore({
|
|
1690
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1691
|
+
});
|
|
1777
1692
|
|
|
1778
1693
|
async function run() {
|
|
1779
1694
|
const res = await accountAccountV1ConnectionVerifyConnection(steamSets, {
|
|
1780
1695
|
connectionId: "123456",
|
|
1781
|
-
}, {
|
|
1782
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1783
1696
|
});
|
|
1784
1697
|
|
|
1785
1698
|
if (!res.ok) {
|
|
@@ -1800,7 +1713,6 @@ run();
|
|
|
1800
1713
|
| Parameter | Type | Required | Description |
|
|
1801
1714
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1802
1715
|
| `request` | [components.V1VerifyConnectionRequestBody](../../models/components/v1verifyconnectionrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1803
|
-
| `security` | [operations.AccountV1ConnectionVerifyConnectionSecurity](../../models/operations/accountv1connectionverifyconnectionsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1804
1716
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1805
1717
|
| `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. |
|
|
1806
1718
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
@@ -1826,13 +1738,13 @@ Verify the email by passing in the code the user should've gotten
|
|
|
1826
1738
|
```typescript
|
|
1827
1739
|
import { SteamSets } from "@steamsets/client-ts";
|
|
1828
1740
|
|
|
1829
|
-
const steamSets = new SteamSets(
|
|
1741
|
+
const steamSets = new SteamSets({
|
|
1742
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1743
|
+
});
|
|
1830
1744
|
|
|
1831
1745
|
async function run() {
|
|
1832
1746
|
const result = await steamSets.account.accountV1SettingsVerfyEmail({
|
|
1833
1747
|
code: "123456",
|
|
1834
|
-
}, {
|
|
1835
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1836
1748
|
});
|
|
1837
1749
|
|
|
1838
1750
|
// Handle the result
|
|
@@ -1852,13 +1764,13 @@ import { accountAccountV1SettingsVerfyEmail } from "@steamsets/client-ts/funcs/a
|
|
|
1852
1764
|
|
|
1853
1765
|
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
1854
1766
|
// You can create one instance of it to use across an application.
|
|
1855
|
-
const steamSets = new SteamSetsCore(
|
|
1767
|
+
const steamSets = new SteamSetsCore({
|
|
1768
|
+
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1769
|
+
});
|
|
1856
1770
|
|
|
1857
1771
|
async function run() {
|
|
1858
1772
|
const res = await accountAccountV1SettingsVerfyEmail(steamSets, {
|
|
1859
1773
|
code: "123456",
|
|
1860
|
-
}, {
|
|
1861
|
-
session: "<YOUR_BEARER_TOKEN_HERE>",
|
|
1862
1774
|
});
|
|
1863
1775
|
|
|
1864
1776
|
if (!res.ok) {
|
|
@@ -1879,7 +1791,6 @@ run();
|
|
|
1879
1791
|
| Parameter | Type | Required | Description |
|
|
1880
1792
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1881
1793
|
| `request` | [components.V1VerifyEmailRequestBody](../../models/components/v1verifyemailrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1882
|
-
| `security` | [operations.AccountV1SettingsVerfyEmailSecurity](../../models/operations/accountv1settingsverfyemailsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
1883
1794
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1884
1795
|
| `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. |
|
|
1885
1796
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|