@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
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SteamSetsCore } from "../core.js";
|
|
6
|
-
import * as m$ from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { resolveSecurity, SecurityInput } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import * as errors from "../models/errors/index.js";
|
|
18
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
19
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
-
import * as operations from "../models/operations/index.js";
|
|
21
|
-
import { Result } from "../types/fp.js";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Generate a new API key for the account
|
|
25
|
-
*/
|
|
26
|
-
export async function accountAccountV1SettingsGenerateApiKey(
|
|
27
|
-
client$: SteamSetsCore,
|
|
28
|
-
security: operations.AccountV1SettingsGenerateApiKeySecurity,
|
|
29
|
-
options?: RequestOptions,
|
|
30
|
-
): Promise<
|
|
31
|
-
Result<
|
|
32
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
33
|
-
| errors.ErrorModel
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path$ = pathToFunc("/account.v1.AccountService/GenerateApiKey")();
|
|
44
|
-
|
|
45
|
-
const headers$ = new Headers({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const security$: SecurityInput[][] = [
|
|
50
|
-
[
|
|
51
|
-
{
|
|
52
|
-
fieldName: "Authorization",
|
|
53
|
-
type: "http:bearer",
|
|
54
|
-
value: security?.session,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
];
|
|
58
|
-
const securitySettings$ = resolveSecurity(...security$);
|
|
59
|
-
const context = {
|
|
60
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
61
|
-
oAuth2Scopes: [],
|
|
62
|
-
securitySource: security,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const requestRes = client$.createRequest$(context, {
|
|
66
|
-
security: securitySettings$,
|
|
67
|
-
method: "POST",
|
|
68
|
-
path: path$,
|
|
69
|
-
headers: headers$,
|
|
70
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
71
|
-
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
72
|
-
}, options);
|
|
73
|
-
if (!requestRes.ok) {
|
|
74
|
-
return requestRes;
|
|
75
|
-
}
|
|
76
|
-
const request$ = requestRes.value;
|
|
77
|
-
|
|
78
|
-
const doResult = await client$.do$(request$, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
81
|
-
retryConfig: options?.retries
|
|
82
|
-
|| client$.options$.retryConfig,
|
|
83
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
-
});
|
|
85
|
-
if (!doResult.ok) {
|
|
86
|
-
return doResult;
|
|
87
|
-
}
|
|
88
|
-
const response = doResult.value;
|
|
89
|
-
|
|
90
|
-
const responseFields$ = {
|
|
91
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const [result$] = await m$.match<
|
|
95
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
96
|
-
| errors.ErrorModel
|
|
97
|
-
| SDKError
|
|
98
|
-
| SDKValidationError
|
|
99
|
-
| UnexpectedClientError
|
|
100
|
-
| InvalidRequestError
|
|
101
|
-
| RequestAbortedError
|
|
102
|
-
| RequestTimeoutError
|
|
103
|
-
| ConnectionError
|
|
104
|
-
>(
|
|
105
|
-
m$.json(
|
|
106
|
-
200,
|
|
107
|
-
operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema,
|
|
108
|
-
{ key: "V1GenerateApiKeyResponseBody" },
|
|
109
|
-
),
|
|
110
|
-
m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
111
|
-
ctype: "application/problem+json",
|
|
112
|
-
}),
|
|
113
|
-
m$.fail(["4XX", "5XX"]),
|
|
114
|
-
)(response, request$, { extraFields: responseFields$ });
|
|
115
|
-
if (!result$.ok) {
|
|
116
|
-
return result$;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return result$;
|
|
120
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SteamSetsCore } from "../core.js";
|
|
6
|
-
import * as m$ from "../lib/matchers.js";
|
|
7
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { resolveSecurity, SecurityInput } from "../lib/security.js";
|
|
9
|
-
import { pathToFunc } from "../lib/url.js";
|
|
10
|
-
import {
|
|
11
|
-
ConnectionError,
|
|
12
|
-
InvalidRequestError,
|
|
13
|
-
RequestAbortedError,
|
|
14
|
-
RequestTimeoutError,
|
|
15
|
-
UnexpectedClientError,
|
|
16
|
-
} from "../models/errors/httpclienterrors.js";
|
|
17
|
-
import * as errors from "../models/errors/index.js";
|
|
18
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
19
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
20
|
-
import * as operations from "../models/operations/index.js";
|
|
21
|
-
import { Result } from "../types/fp.js";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Generate a new API key for the account
|
|
25
|
-
*/
|
|
26
|
-
export async function settingsAccountV1SettingsGenerateApiKey(
|
|
27
|
-
client$: SteamSetsCore,
|
|
28
|
-
security: operations.AccountV1SettingsGenerateApiKeySecurity,
|
|
29
|
-
options?: RequestOptions,
|
|
30
|
-
): Promise<
|
|
31
|
-
Result<
|
|
32
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
33
|
-
| errors.ErrorModel
|
|
34
|
-
| SDKError
|
|
35
|
-
| SDKValidationError
|
|
36
|
-
| UnexpectedClientError
|
|
37
|
-
| InvalidRequestError
|
|
38
|
-
| RequestAbortedError
|
|
39
|
-
| RequestTimeoutError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
>
|
|
42
|
-
> {
|
|
43
|
-
const path$ = pathToFunc("/account.v1.AccountService/GenerateApiKey")();
|
|
44
|
-
|
|
45
|
-
const headers$ = new Headers({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const security$: SecurityInput[][] = [
|
|
50
|
-
[
|
|
51
|
-
{
|
|
52
|
-
fieldName: "Authorization",
|
|
53
|
-
type: "http:bearer",
|
|
54
|
-
value: security?.session,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
];
|
|
58
|
-
const securitySettings$ = resolveSecurity(...security$);
|
|
59
|
-
const context = {
|
|
60
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
61
|
-
oAuth2Scopes: [],
|
|
62
|
-
securitySource: security,
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const requestRes = client$.createRequest$(context, {
|
|
66
|
-
security: securitySettings$,
|
|
67
|
-
method: "POST",
|
|
68
|
-
path: path$,
|
|
69
|
-
headers: headers$,
|
|
70
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
71
|
-
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
72
|
-
}, options);
|
|
73
|
-
if (!requestRes.ok) {
|
|
74
|
-
return requestRes;
|
|
75
|
-
}
|
|
76
|
-
const request$ = requestRes.value;
|
|
77
|
-
|
|
78
|
-
const doResult = await client$.do$(request$, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
81
|
-
retryConfig: options?.retries
|
|
82
|
-
|| client$.options$.retryConfig,
|
|
83
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
-
});
|
|
85
|
-
if (!doResult.ok) {
|
|
86
|
-
return doResult;
|
|
87
|
-
}
|
|
88
|
-
const response = doResult.value;
|
|
89
|
-
|
|
90
|
-
const responseFields$ = {
|
|
91
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const [result$] = await m$.match<
|
|
95
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
96
|
-
| errors.ErrorModel
|
|
97
|
-
| SDKError
|
|
98
|
-
| SDKValidationError
|
|
99
|
-
| UnexpectedClientError
|
|
100
|
-
| InvalidRequestError
|
|
101
|
-
| RequestAbortedError
|
|
102
|
-
| RequestTimeoutError
|
|
103
|
-
| ConnectionError
|
|
104
|
-
>(
|
|
105
|
-
m$.json(
|
|
106
|
-
200,
|
|
107
|
-
operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema,
|
|
108
|
-
{ key: "V1GenerateApiKeyResponseBody" },
|
|
109
|
-
),
|
|
110
|
-
m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
111
|
-
ctype: "application/problem+json",
|
|
112
|
-
}),
|
|
113
|
-
m$.fail(["4XX", "5XX"]),
|
|
114
|
-
)(response, request$, { extraFields: responseFields$ });
|
|
115
|
-
if (!result$.ok) {
|
|
116
|
-
return result$;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return result$;
|
|
120
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
|
|
8
|
-
export type V1GenerateApiKeyResponseBody = {
|
|
9
|
-
/**
|
|
10
|
-
* A URL to the JSON Schema for this object.
|
|
11
|
-
*/
|
|
12
|
-
dollarSchema?: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The generated API Key
|
|
15
|
-
*/
|
|
16
|
-
key: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const V1GenerateApiKeyResponseBody$inboundSchema: z.ZodType<
|
|
21
|
-
V1GenerateApiKeyResponseBody,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
unknown
|
|
24
|
-
> = z.object({
|
|
25
|
-
$schema: z.string().optional(),
|
|
26
|
-
key: z.string(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
"$schema": "dollarSchema",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type V1GenerateApiKeyResponseBody$Outbound = {
|
|
35
|
-
$schema?: string | undefined;
|
|
36
|
-
key: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const V1GenerateApiKeyResponseBody$outboundSchema: z.ZodType<
|
|
41
|
-
V1GenerateApiKeyResponseBody$Outbound,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
V1GenerateApiKeyResponseBody
|
|
44
|
-
> = z.object({
|
|
45
|
-
dollarSchema: z.string().optional(),
|
|
46
|
-
key: z.string(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
dollarSchema: "$schema",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace V1GenerateApiKeyResponseBody$ {
|
|
58
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = V1GenerateApiKeyResponseBody$inboundSchema;
|
|
60
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = V1GenerateApiKeyResponseBody$outboundSchema;
|
|
62
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$Outbound` instead. */
|
|
63
|
-
export type Outbound = V1GenerateApiKeyResponseBody$Outbound;
|
|
64
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
|
-
|
|
9
|
-
export type AccountV1SettingsGenerateApiKeySecurity = {
|
|
10
|
-
session: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type AccountV1SettingsGenerateApiKeyResponse = {
|
|
14
|
-
httpMeta: components.HTTPMetadata;
|
|
15
|
-
/**
|
|
16
|
-
* OK
|
|
17
|
-
*/
|
|
18
|
-
v1GenerateApiKeyResponseBody?:
|
|
19
|
-
| components.V1GenerateApiKeyResponseBody
|
|
20
|
-
| undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const AccountV1SettingsGenerateApiKeySecurity$inboundSchema: z.ZodType<
|
|
25
|
-
AccountV1SettingsGenerateApiKeySecurity,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
session: z.string(),
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export type AccountV1SettingsGenerateApiKeySecurity$Outbound = {
|
|
34
|
-
session: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const AccountV1SettingsGenerateApiKeySecurity$outboundSchema: z.ZodType<
|
|
39
|
-
AccountV1SettingsGenerateApiKeySecurity$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
AccountV1SettingsGenerateApiKeySecurity
|
|
42
|
-
> = z.object({
|
|
43
|
-
session: z.string(),
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace AccountV1SettingsGenerateApiKeySecurity$ {
|
|
51
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeySecurity$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
AccountV1SettingsGenerateApiKeySecurity$inboundSchema;
|
|
54
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeySecurity$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema =
|
|
56
|
-
AccountV1SettingsGenerateApiKeySecurity$outboundSchema;
|
|
57
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeySecurity$Outbound` instead. */
|
|
58
|
-
export type Outbound = AccountV1SettingsGenerateApiKeySecurity$Outbound;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const AccountV1SettingsGenerateApiKeyResponse$inboundSchema: z.ZodType<
|
|
63
|
-
AccountV1SettingsGenerateApiKeyResponse,
|
|
64
|
-
z.ZodTypeDef,
|
|
65
|
-
unknown
|
|
66
|
-
> = z.object({
|
|
67
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
68
|
-
V1GenerateApiKeyResponseBody: components
|
|
69
|
-
.V1GenerateApiKeyResponseBody$inboundSchema.optional(),
|
|
70
|
-
}).transform((v) => {
|
|
71
|
-
return remap$(v, {
|
|
72
|
-
"HttpMeta": "httpMeta",
|
|
73
|
-
"V1GenerateApiKeyResponseBody": "v1GenerateApiKeyResponseBody",
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export type AccountV1SettingsGenerateApiKeyResponse$Outbound = {
|
|
79
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
80
|
-
V1GenerateApiKeyResponseBody?:
|
|
81
|
-
| components.V1GenerateApiKeyResponseBody$Outbound
|
|
82
|
-
| undefined;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const AccountV1SettingsGenerateApiKeyResponse$outboundSchema: z.ZodType<
|
|
87
|
-
AccountV1SettingsGenerateApiKeyResponse$Outbound,
|
|
88
|
-
z.ZodTypeDef,
|
|
89
|
-
AccountV1SettingsGenerateApiKeyResponse
|
|
90
|
-
> = z.object({
|
|
91
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
92
|
-
v1GenerateApiKeyResponseBody: components
|
|
93
|
-
.V1GenerateApiKeyResponseBody$outboundSchema.optional(),
|
|
94
|
-
}).transform((v) => {
|
|
95
|
-
return remap$(v, {
|
|
96
|
-
httpMeta: "HttpMeta",
|
|
97
|
-
v1GenerateApiKeyResponseBody: "V1GenerateApiKeyResponseBody",
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export namespace AccountV1SettingsGenerateApiKeyResponse$ {
|
|
106
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$inboundSchema` instead. */
|
|
107
|
-
export const inboundSchema =
|
|
108
|
-
AccountV1SettingsGenerateApiKeyResponse$inboundSchema;
|
|
109
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$outboundSchema` instead. */
|
|
110
|
-
export const outboundSchema =
|
|
111
|
-
AccountV1SettingsGenerateApiKeyResponse$outboundSchema;
|
|
112
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$Outbound` instead. */
|
|
113
|
-
export type Outbound = AccountV1SettingsGenerateApiKeyResponse$Outbound;
|
|
114
|
-
}
|