@steamsets/client-ts 0.11.2 → 0.11.3
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 +9 -0
- package/docs/sdks/developer/README.md +253 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.js +97 -0
- package/funcs/developerAccountV1SettingsDeveloperAppCreate.js.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.js +97 -0
- package/funcs/developerAccountV1SettingsDeveloperAppDelete.js.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts +14 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts.map +1 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js +98 -0
- package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/resource.d.ts +3 -0
- package/models/components/resource.d.ts.map +1 -1
- package/models/components/resource.js +1 -0
- package/models/components/resource.js.map +1 -1
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts +28 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.js +50 -0
- package/models/components/v1accountdeveloperappdeleterequestbody.js.map +1 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts +28 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.js +59 -0
- package/models/components/v1accountdeveloperappdeleteresponsebody.js.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts +28 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js +50 -0
- package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts +33 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts.map +1 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js +61 -0
- package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js.map +1 -0
- package/models/components/v1developerappcreaterequestbody.d.ts +83 -0
- package/models/components/v1developerappcreaterequestbody.d.ts.map +1 -0
- package/models/components/v1developerappcreaterequestbody.js +82 -0
- package/models/components/v1developerappcreaterequestbody.js.map +1 -0
- package/models/components/v1developerappcreateresponsebody.d.ts +33 -0
- package/models/components/v1developerappcreateresponsebody.d.ts.map +1 -0
- package/models/components/v1developerappcreateresponsebody.js +61 -0
- package/models/components/v1developerappcreateresponsebody.js.map +1 -0
- package/models/components/v1getsettingsbody.d.ts +0 -5
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +0 -2
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/operations/accountv1settingsdeveloperappcreate.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappcreate.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappcreate.js +66 -0
- package/models/operations/accountv1settingsdeveloperappcreate.js.map +1 -0
- package/models/operations/accountv1settingsdeveloperappdelete.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappdelete.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappdelete.js +66 -0
- package/models/operations/accountv1settingsdeveloperappdelete.js.map +1 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts +31 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts.map +1 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.js +66 -0
- package/models/operations/accountv1settingsdeveloperappgeneratekey.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/developer.d.ts +18 -0
- package/sdk/developer.d.ts.map +1 -0
- package/sdk/developer.js +33 -0
- package/sdk/developer.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts +132 -0
- package/src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts +134 -0
- package/src/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.ts +135 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +6 -0
- package/src/models/components/resource.ts +1 -0
- package/src/models/components/v1accountdeveloperappdeleterequestbody.ts +50 -0
- package/src/models/components/v1accountdeveloperappdeleteresponsebody.ts +59 -0
- package/src/models/components/v1accountdeveloperappgeneratekeyrequestbody.ts +52 -0
- package/src/models/components/v1accountdeveloperappgeneratekeyresponsebody.ts +68 -0
- package/src/models/components/v1developerappcreaterequestbody.ts +109 -0
- package/src/models/components/v1developerappcreateresponsebody.ts +64 -0
- package/src/models/components/v1getsettingsbody.ts +0 -7
- package/src/models/operations/accountv1settingsdeveloperappcreate.ts +74 -0
- package/src/models/operations/accountv1settingsdeveloperappdelete.ts +76 -0
- package/src/models/operations/accountv1settingsdeveloperappgeneratekey.ts +77 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/developer.ts +55 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$ = exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$outboundSchema = exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const components = __importStar(require("../components/index.js"));
|
|
33
|
+
/** @internal */
|
|
34
|
+
exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$inboundSchema = z.object({
|
|
35
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
36
|
+
V1AccountDeveloperAppGenerateKeyResponseBody: components
|
|
37
|
+
.V1AccountDeveloperAppGenerateKeyResponseBody$inboundSchema.optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return (0, primitives_js_1.remap)(v, {
|
|
40
|
+
"HttpMeta": "httpMeta",
|
|
41
|
+
"V1AccountDeveloperAppGenerateKeyResponseBody": "v1AccountDeveloperAppGenerateKeyResponseBody",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$outboundSchema = z.object({
|
|
46
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
47
|
+
v1AccountDeveloperAppGenerateKeyResponseBody: components
|
|
48
|
+
.V1AccountDeveloperAppGenerateKeyResponseBody$outboundSchema.optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
httpMeta: "HttpMeta",
|
|
52
|
+
v1AccountDeveloperAppGenerateKeyResponseBody: "V1AccountDeveloperAppGenerateKeyResponseBody",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
var AccountV1SettingsDeveloperAppGenerateKeyResponse$;
|
|
60
|
+
(function (AccountV1SettingsDeveloperAppGenerateKeyResponse$) {
|
|
61
|
+
/** @deprecated use `AccountV1SettingsDeveloperAppGenerateKeyResponse$inboundSchema` instead. */
|
|
62
|
+
AccountV1SettingsDeveloperAppGenerateKeyResponse$.inboundSchema = exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$inboundSchema;
|
|
63
|
+
/** @deprecated use `AccountV1SettingsDeveloperAppGenerateKeyResponse$outboundSchema` instead. */
|
|
64
|
+
AccountV1SettingsDeveloperAppGenerateKeyResponse$.outboundSchema = exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$outboundSchema;
|
|
65
|
+
})(AccountV1SettingsDeveloperAppGenerateKeyResponse$ || (exports.AccountV1SettingsDeveloperAppGenerateKeyResponse$ = AccountV1SettingsDeveloperAppGenerateKeyResponse$ = {}));
|
|
66
|
+
//# sourceMappingURL=accountv1settingsdeveloperappgeneratekey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountv1settingsdeveloperappgeneratekey.js","sourceRoot":"","sources":["../../src/models/operations/accountv1settingsdeveloperappgeneratekey.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAYrD,gBAAgB;AACH,QAAA,8DAA8D,GAKrE,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,4CAA4C,EAAE,UAAU;SACrD,0DAA0D,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,8CAA8C,EAC5C,8CAA8C;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUL,gBAAgB;AACH,QAAA,+DAA+D,GAKtE,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,4CAA4C,EAAE,UAAU;SACrD,2DAA2D,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,4CAA4C,EAC1C,8CAA8C;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,iDAAiD,CAUjE;AAVD,WAAiB,iDAAiD;IAChE,gGAAgG;IACnF,+DAAa,GACxB,sEAA8D,CAAC;IACjE,iGAAiG;IACpF,gEAAc,GACzB,uEAA+D,CAAC;AAIpE,CAAC,EAVgB,iDAAiD,iEAAjD,iDAAiD,QAUjE"}
|
|
@@ -15,6 +15,9 @@ export * from "./accountv1sessiondelete.js";
|
|
|
15
15
|
export * from "./accountv1sessionget.js";
|
|
16
16
|
export * from "./accountv1sessionlogin.js";
|
|
17
17
|
export * from "./accountv1settingsdeleteimages.js";
|
|
18
|
+
export * from "./accountv1settingsdeveloperappcreate.js";
|
|
19
|
+
export * from "./accountv1settingsdeveloperappdelete.js";
|
|
20
|
+
export * from "./accountv1settingsdeveloperappgeneratekey.js";
|
|
18
21
|
export * from "./accountv1settingsget.js";
|
|
19
22
|
export * from "./accountv1settingssendemailverification.js";
|
|
20
23
|
export * from "./accountv1settingsupdate.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -34,6 +34,9 @@ __exportStar(require("./accountv1sessiondelete.js"), exports);
|
|
|
34
34
|
__exportStar(require("./accountv1sessionget.js"), exports);
|
|
35
35
|
__exportStar(require("./accountv1sessionlogin.js"), exports);
|
|
36
36
|
__exportStar(require("./accountv1settingsdeleteimages.js"), exports);
|
|
37
|
+
__exportStar(require("./accountv1settingsdeveloperappcreate.js"), exports);
|
|
38
|
+
__exportStar(require("./accountv1settingsdeveloperappdelete.js"), exports);
|
|
39
|
+
__exportStar(require("./accountv1settingsdeveloperappgeneratekey.js"), exports);
|
|
37
40
|
__exportStar(require("./accountv1settingsget.js"), exports);
|
|
38
41
|
__exportStar(require("./accountv1settingssendemailverification.js"), exports);
|
|
39
42
|
__exportStar(require("./accountv1settingsupdate.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,kEAAgD;AAChD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,wDAAsC;AACtC,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,6DAA2C;AAC3C,qEAAmD;AACnD,4DAA0C;AAC1C,8EAA4D;AAC5D,+DAA6C;AAC7C,oEAAkD;AAClD,qEAAmD;AACnD,mEAAiD;AACjD,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC;AACjC,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,kEAAgD;AAChD,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,wDAAsC;AACtC,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,6DAA2C;AAC3C,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,gFAA8D;AAC9D,4DAA0C;AAC1C,8EAA4D;AAC5D,+DAA6C;AAC7C,oEAAkD;AAClD,qEAAmD;AACnD,mEAAiD;AACjD,gDAA8B;AAC9B,kDAAgC;AAChC,mDAAiC;AACjC,+DAA6C;AAC7C,gDAA8B;AAC9B,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Developer extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Add a new Developer App to the account
|
|
7
|
+
*/
|
|
8
|
+
accountV1SettingsDeveloperAppCreate(request: components.V1DeveloperAppCreateRequestBody, options?: RequestOptions): Promise<operations.AccountV1SettingsDeveloperAppCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Delete a developer app from the account
|
|
11
|
+
*/
|
|
12
|
+
accountV1SettingsDeveloperAppDelete(request: components.V1AccountDeveloperAppDeleteRequestBody, options?: RequestOptions): Promise<operations.AccountV1SettingsDeveloperAppDeleteResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Generate a new API key for the developer app
|
|
15
|
+
*/
|
|
16
|
+
accountV1SettingsDeveloperAppGenerateKey(request: components.V1AccountDeveloperAppGenerateKeyRequestBody, options?: RequestOptions): Promise<operations.AccountV1SettingsDeveloperAppGenerateKeyResponse>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=developer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../src/sdk/developer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;OAEG;IACG,mCAAmC,CACvC,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2CAA2C,CAAC;IAQlE;;OAEG;IACG,mCAAmC,CACvC,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2CAA2C,CAAC;IAQlE;;OAEG;IACG,wCAAwC,CAC5C,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gDAAgD,CAAC;CAOxE"}
|
package/sdk/developer.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Developer = void 0;
|
|
7
|
+
const developerAccountV1SettingsDeveloperAppCreate_js_1 = require("../funcs/developerAccountV1SettingsDeveloperAppCreate.js");
|
|
8
|
+
const developerAccountV1SettingsDeveloperAppDelete_js_1 = require("../funcs/developerAccountV1SettingsDeveloperAppDelete.js");
|
|
9
|
+
const developerAccountV1SettingsDeveloperAppGenerateKey_js_1 = require("../funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js");
|
|
10
|
+
const sdks_js_1 = require("../lib/sdks.js");
|
|
11
|
+
const fp_js_1 = require("../types/fp.js");
|
|
12
|
+
class Developer extends sdks_js_1.ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Add a new Developer App to the account
|
|
15
|
+
*/
|
|
16
|
+
async accountV1SettingsDeveloperAppCreate(request, options) {
|
|
17
|
+
return (0, fp_js_1.unwrapAsync)((0, developerAccountV1SettingsDeveloperAppCreate_js_1.developerAccountV1SettingsDeveloperAppCreate)(this, request, options));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Delete a developer app from the account
|
|
21
|
+
*/
|
|
22
|
+
async accountV1SettingsDeveloperAppDelete(request, options) {
|
|
23
|
+
return (0, fp_js_1.unwrapAsync)((0, developerAccountV1SettingsDeveloperAppDelete_js_1.developerAccountV1SettingsDeveloperAppDelete)(this, request, options));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Generate a new API key for the developer app
|
|
27
|
+
*/
|
|
28
|
+
async accountV1SettingsDeveloperAppGenerateKey(request, options) {
|
|
29
|
+
return (0, fp_js_1.unwrapAsync)((0, developerAccountV1SettingsDeveloperAppGenerateKey_js_1.developerAccountV1SettingsDeveloperAppGenerateKey)(this, request, options));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Developer = Developer;
|
|
33
|
+
//# sourceMappingURL=developer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developer.js","sourceRoot":"","sources":["../src/sdk/developer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8HAAwH;AACxH,8HAAwH;AACxH,wIAAkI;AAClI,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;OAEG;IACH,KAAK,CAAC,mCAAmC,CACvC,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8FAA4C,EAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mCAAmC,CACvC,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8FAA4C,EAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,wCAAwC,CAC5C,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wGAAiD,EAClE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,8BA0CC"}
|
package/sdk/sdk.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { App } from "./app.js";
|
|
|
4
4
|
import { Badge } from "./badge.js";
|
|
5
5
|
import { Connection } from "./connection.js";
|
|
6
6
|
import { Data } from "./data.js";
|
|
7
|
+
import { Developer } from "./developer.js";
|
|
7
8
|
import { Leaderboard } from "./leaderboard.js";
|
|
8
9
|
import { Liveness } from "./liveness.js";
|
|
9
10
|
import { Location } from "./location.js";
|
|
@@ -15,6 +16,8 @@ export declare class SteamSets extends ClientSDK {
|
|
|
15
16
|
get account(): Account;
|
|
16
17
|
private _connection?;
|
|
17
18
|
get connection(): Connection;
|
|
19
|
+
private _developer?;
|
|
20
|
+
get developer(): Developer;
|
|
18
21
|
private _session?;
|
|
19
22
|
get session(): Session;
|
|
20
23
|
private _settings?;
|
package/sdk/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,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I,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;CACF"}
|
package/sdk/sdk.js
CHANGED
|
@@ -10,6 +10,7 @@ const app_js_1 = require("./app.js");
|
|
|
10
10
|
const badge_js_1 = require("./badge.js");
|
|
11
11
|
const connection_js_1 = require("./connection.js");
|
|
12
12
|
const data_js_1 = require("./data.js");
|
|
13
|
+
const developer_js_1 = require("./developer.js");
|
|
13
14
|
const leaderboard_js_1 = require("./leaderboard.js");
|
|
14
15
|
const liveness_js_1 = require("./liveness.js");
|
|
15
16
|
const location_js_1 = require("./location.js");
|
|
@@ -25,6 +26,10 @@ class SteamSets extends sdks_js_1.ClientSDK {
|
|
|
25
26
|
var _a;
|
|
26
27
|
return ((_a = this._connection) !== null && _a !== void 0 ? _a : (this._connection = new connection_js_1.Connection(this._options)));
|
|
27
28
|
}
|
|
29
|
+
get developer() {
|
|
30
|
+
var _a;
|
|
31
|
+
return ((_a = this._developer) !== null && _a !== void 0 ? _a : (this._developer = new developer_js_1.Developer(this._options)));
|
|
32
|
+
}
|
|
28
33
|
get session() {
|
|
29
34
|
var _a;
|
|
30
35
|
return ((_a = this._session) !== null && _a !== void 0 ? _a : (this._session = new session_js_1.Session(this._options)));
|
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,6CAAuC;AACvC,qCAA+B;AAC/B,yCAAmC;AACnC,mDAA6C;AAC7C,uCAAiC;AACjC,qDAA+C;AAC/C,+CAAyC;AACzC,+CAA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;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,QAAQ;;QACV,OAAO,OAAC,IAAI,CAAC,SAAS,oCAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;CACF;AA5DD,8BA4DC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Add a new Developer App to the account
|
|
28
|
+
*/
|
|
29
|
+
export async function developerAccountV1SettingsDeveloperAppCreate(
|
|
30
|
+
client: SteamSetsCore,
|
|
31
|
+
request: components.V1DeveloperAppCreateRequestBody,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.AccountV1SettingsDeveloperAppCreateResponse,
|
|
36
|
+
| errors.ErrorModel
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
const input = request;
|
|
47
|
+
|
|
48
|
+
const parsed = safeParse(
|
|
49
|
+
input,
|
|
50
|
+
(value) =>
|
|
51
|
+
components.V1DeveloperAppCreateRequestBody$outboundSchema.parse(value),
|
|
52
|
+
"Input validation failed",
|
|
53
|
+
);
|
|
54
|
+
if (!parsed.ok) {
|
|
55
|
+
return parsed;
|
|
56
|
+
}
|
|
57
|
+
const payload = parsed.value;
|
|
58
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
59
|
+
|
|
60
|
+
const path = pathToFunc("/account.v1.AccountService/CreateDeveloperApp")();
|
|
61
|
+
|
|
62
|
+
const headers = new Headers({
|
|
63
|
+
"Content-Type": "application/json",
|
|
64
|
+
Accept: "application/json",
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
68
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
69
|
+
const context = {
|
|
70
|
+
operationID: "account.v1.settings.developer-app-create",
|
|
71
|
+
oAuth2Scopes: [],
|
|
72
|
+
securitySource: client._options.session,
|
|
73
|
+
};
|
|
74
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75
|
+
|
|
76
|
+
const requestRes = client._createRequest(context, {
|
|
77
|
+
security: requestSecurity,
|
|
78
|
+
method: "POST",
|
|
79
|
+
path: path,
|
|
80
|
+
headers: headers,
|
|
81
|
+
body: body,
|
|
82
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
83
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
84
|
+
}, options);
|
|
85
|
+
if (!requestRes.ok) {
|
|
86
|
+
return requestRes;
|
|
87
|
+
}
|
|
88
|
+
const req = requestRes.value;
|
|
89
|
+
|
|
90
|
+
const doResult = await client._do(req, {
|
|
91
|
+
context,
|
|
92
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
93
|
+
retryConfig: options?.retries
|
|
94
|
+
|| client._options.retryConfig,
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
96
|
+
});
|
|
97
|
+
if (!doResult.ok) {
|
|
98
|
+
return doResult;
|
|
99
|
+
}
|
|
100
|
+
const response = doResult.value;
|
|
101
|
+
|
|
102
|
+
const responseFields = {
|
|
103
|
+
HttpMeta: { Response: response, Request: req },
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const [result] = await M.match<
|
|
107
|
+
operations.AccountV1SettingsDeveloperAppCreateResponse,
|
|
108
|
+
| errors.ErrorModel
|
|
109
|
+
| SDKError
|
|
110
|
+
| SDKValidationError
|
|
111
|
+
| UnexpectedClientError
|
|
112
|
+
| InvalidRequestError
|
|
113
|
+
| RequestAbortedError
|
|
114
|
+
| RequestTimeoutError
|
|
115
|
+
| ConnectionError
|
|
116
|
+
>(
|
|
117
|
+
M.json(
|
|
118
|
+
200,
|
|
119
|
+
operations.AccountV1SettingsDeveloperAppCreateResponse$inboundSchema,
|
|
120
|
+
{ key: "V1DeveloperAppCreateResponseBody" },
|
|
121
|
+
),
|
|
122
|
+
M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
123
|
+
ctype: "application/problem+json",
|
|
124
|
+
}),
|
|
125
|
+
M.fail(["4XX", "5XX"]),
|
|
126
|
+
)(response, req, { extraFields: responseFields });
|
|
127
|
+
if (!result.ok) {
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Delete a developer app from the account
|
|
28
|
+
*/
|
|
29
|
+
export async function developerAccountV1SettingsDeveloperAppDelete(
|
|
30
|
+
client: SteamSetsCore,
|
|
31
|
+
request: components.V1AccountDeveloperAppDeleteRequestBody,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse,
|
|
36
|
+
| errors.ErrorModel
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
const input = request;
|
|
47
|
+
|
|
48
|
+
const parsed = safeParse(
|
|
49
|
+
input,
|
|
50
|
+
(value) =>
|
|
51
|
+
components.V1AccountDeveloperAppDeleteRequestBody$outboundSchema.parse(
|
|
52
|
+
value,
|
|
53
|
+
),
|
|
54
|
+
"Input validation failed",
|
|
55
|
+
);
|
|
56
|
+
if (!parsed.ok) {
|
|
57
|
+
return parsed;
|
|
58
|
+
}
|
|
59
|
+
const payload = parsed.value;
|
|
60
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
61
|
+
|
|
62
|
+
const path = pathToFunc("/account.v1.AccountService/DeleteDeveloperApp")();
|
|
63
|
+
|
|
64
|
+
const headers = new Headers({
|
|
65
|
+
"Content-Type": "application/json",
|
|
66
|
+
Accept: "application/json",
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
70
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
71
|
+
const context = {
|
|
72
|
+
operationID: "account.v1.settings.developer-app-delete",
|
|
73
|
+
oAuth2Scopes: [],
|
|
74
|
+
securitySource: client._options.session,
|
|
75
|
+
};
|
|
76
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
|
+
|
|
78
|
+
const requestRes = client._createRequest(context, {
|
|
79
|
+
security: requestSecurity,
|
|
80
|
+
method: "POST",
|
|
81
|
+
path: path,
|
|
82
|
+
headers: headers,
|
|
83
|
+
body: body,
|
|
84
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
85
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
86
|
+
}, options);
|
|
87
|
+
if (!requestRes.ok) {
|
|
88
|
+
return requestRes;
|
|
89
|
+
}
|
|
90
|
+
const req = requestRes.value;
|
|
91
|
+
|
|
92
|
+
const doResult = await client._do(req, {
|
|
93
|
+
context,
|
|
94
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
95
|
+
retryConfig: options?.retries
|
|
96
|
+
|| client._options.retryConfig,
|
|
97
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
98
|
+
});
|
|
99
|
+
if (!doResult.ok) {
|
|
100
|
+
return doResult;
|
|
101
|
+
}
|
|
102
|
+
const response = doResult.value;
|
|
103
|
+
|
|
104
|
+
const responseFields = {
|
|
105
|
+
HttpMeta: { Response: response, Request: req },
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const [result] = await M.match<
|
|
109
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse,
|
|
110
|
+
| errors.ErrorModel
|
|
111
|
+
| SDKError
|
|
112
|
+
| SDKValidationError
|
|
113
|
+
| UnexpectedClientError
|
|
114
|
+
| InvalidRequestError
|
|
115
|
+
| RequestAbortedError
|
|
116
|
+
| RequestTimeoutError
|
|
117
|
+
| ConnectionError
|
|
118
|
+
>(
|
|
119
|
+
M.json(
|
|
120
|
+
200,
|
|
121
|
+
operations.AccountV1SettingsDeveloperAppDeleteResponse$inboundSchema,
|
|
122
|
+
{ key: "V1AccountDeveloperAppDeleteResponseBody" },
|
|
123
|
+
),
|
|
124
|
+
M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
125
|
+
ctype: "application/problem+json",
|
|
126
|
+
}),
|
|
127
|
+
M.fail(["4XX", "5XX"]),
|
|
128
|
+
)(response, req, { extraFields: responseFields });
|
|
129
|
+
if (!result.ok) {
|
|
130
|
+
return result;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return result;
|
|
134
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SteamSetsCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import * as components from "../models/components/index.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Generate a new API key for the developer app
|
|
28
|
+
*/
|
|
29
|
+
export async function developerAccountV1SettingsDeveloperAppGenerateKey(
|
|
30
|
+
client: SteamSetsCore,
|
|
31
|
+
request: components.V1AccountDeveloperAppGenerateKeyRequestBody,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<
|
|
34
|
+
Result<
|
|
35
|
+
operations.AccountV1SettingsDeveloperAppGenerateKeyResponse,
|
|
36
|
+
| errors.ErrorModel
|
|
37
|
+
| SDKError
|
|
38
|
+
| SDKValidationError
|
|
39
|
+
| UnexpectedClientError
|
|
40
|
+
| InvalidRequestError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
>
|
|
45
|
+
> {
|
|
46
|
+
const input = request;
|
|
47
|
+
|
|
48
|
+
const parsed = safeParse(
|
|
49
|
+
input,
|
|
50
|
+
(value) =>
|
|
51
|
+
components.V1AccountDeveloperAppGenerateKeyRequestBody$outboundSchema
|
|
52
|
+
.parse(value),
|
|
53
|
+
"Input validation failed",
|
|
54
|
+
);
|
|
55
|
+
if (!parsed.ok) {
|
|
56
|
+
return parsed;
|
|
57
|
+
}
|
|
58
|
+
const payload = parsed.value;
|
|
59
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
60
|
+
|
|
61
|
+
const path = pathToFunc(
|
|
62
|
+
"/account.v1.AccountService/GenerateDeveloperAppKey",
|
|
63
|
+
)();
|
|
64
|
+
|
|
65
|
+
const headers = new Headers({
|
|
66
|
+
"Content-Type": "application/json",
|
|
67
|
+
Accept: "application/json",
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const secConfig = await extractSecurity(client._options.session);
|
|
71
|
+
const securityInput = secConfig == null ? {} : { session: secConfig };
|
|
72
|
+
const context = {
|
|
73
|
+
operationID: "account.v1.settings.developer-app-generate-key",
|
|
74
|
+
oAuth2Scopes: [],
|
|
75
|
+
securitySource: client._options.session,
|
|
76
|
+
};
|
|
77
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
|
+
|
|
79
|
+
const requestRes = client._createRequest(context, {
|
|
80
|
+
security: requestSecurity,
|
|
81
|
+
method: "POST",
|
|
82
|
+
path: path,
|
|
83
|
+
headers: headers,
|
|
84
|
+
body: body,
|
|
85
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
86
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
87
|
+
}, options);
|
|
88
|
+
if (!requestRes.ok) {
|
|
89
|
+
return requestRes;
|
|
90
|
+
}
|
|
91
|
+
const req = requestRes.value;
|
|
92
|
+
|
|
93
|
+
const doResult = await client._do(req, {
|
|
94
|
+
context,
|
|
95
|
+
errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
|
|
96
|
+
retryConfig: options?.retries
|
|
97
|
+
|| client._options.retryConfig,
|
|
98
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
99
|
+
});
|
|
100
|
+
if (!doResult.ok) {
|
|
101
|
+
return doResult;
|
|
102
|
+
}
|
|
103
|
+
const response = doResult.value;
|
|
104
|
+
|
|
105
|
+
const responseFields = {
|
|
106
|
+
HttpMeta: { Response: response, Request: req },
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const [result] = await M.match<
|
|
110
|
+
operations.AccountV1SettingsDeveloperAppGenerateKeyResponse,
|
|
111
|
+
| errors.ErrorModel
|
|
112
|
+
| SDKError
|
|
113
|
+
| SDKValidationError
|
|
114
|
+
| UnexpectedClientError
|
|
115
|
+
| InvalidRequestError
|
|
116
|
+
| RequestAbortedError
|
|
117
|
+
| RequestTimeoutError
|
|
118
|
+
| ConnectionError
|
|
119
|
+
>(
|
|
120
|
+
M.json(
|
|
121
|
+
200,
|
|
122
|
+
operations.AccountV1SettingsDeveloperAppGenerateKeyResponse$inboundSchema,
|
|
123
|
+
{ key: "V1AccountDeveloperAppGenerateKeyResponseBody" },
|
|
124
|
+
),
|
|
125
|
+
M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
126
|
+
ctype: "application/problem+json",
|
|
127
|
+
}),
|
|
128
|
+
M.fail(["4XX", "5XX"]),
|
|
129
|
+
)(response, req, { extraFields: responseFields });
|
|
130
|
+
if (!result.ok) {
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return result;
|
|
135
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.11.
|
|
58
|
+
sdkVersion: "0.11.3",
|
|
59
59
|
genVersion: "2.426.2",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.11.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.3 2.426.2 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|