@steamsets/client-ts 0.8.0 → 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 +0 -4
- package/docs/sdks/account/README.md +0 -74
- package/docs/sdks/settings/README.md +0 -74
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/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/package.json +1 -2
- package/sdk/account.d.ts +0 -4
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +0 -7
- package/sdk/account.js.map +1 -1
- package/sdk/settings.d.ts +0 -4
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +0 -7
- package/sdk/settings.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/account.ts +0 -13
- package/src/sdk/settings.ts +0 -13
- package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts +0 -13
- package/funcs/accountAccountV1SettingsGenerateApiKey.d.ts.map +0 -1
- package/funcs/accountAccountV1SettingsGenerateApiKey.js +0 -85
- 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 -85
- 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 -31
- package/models/operations/accountv1settingsgenerateapikey.d.ts.map +0 -1
- package/models/operations/accountv1settingsgenerateapikey.js +0 -66
- package/models/operations/accountv1settingsgenerateapikey.js.map +0 -1
- package/src/funcs/accountAccountV1SettingsGenerateApiKey.ts +0 -112
- package/src/funcs/settingsAccountV1SettingsGenerateApiKey.ts +0 -112
- package/src/models/components/v1generateapikeyresponsebody.ts +0 -64
- package/src/models/operations/accountv1settingsgenerateapikey.ts +0 -72
|
@@ -1,85 +0,0 @@
|
|
|
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.accountAccountV1SettingsGenerateApiKey = accountAccountV1SettingsGenerateApiKey;
|
|
30
|
-
const m$ = __importStar(require("../lib/matchers.js"));
|
|
31
|
-
const security_js_1 = require("../lib/security.js");
|
|
32
|
-
const url_js_1 = require("../lib/url.js");
|
|
33
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
34
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
35
|
-
/**
|
|
36
|
-
* Generate a new API key for the account
|
|
37
|
-
*/
|
|
38
|
-
async function accountAccountV1SettingsGenerateApiKey(client$, options) {
|
|
39
|
-
const path$ = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GenerateApiKey")();
|
|
40
|
-
const headers$ = new Headers({
|
|
41
|
-
Accept: "application/json",
|
|
42
|
-
});
|
|
43
|
-
const session$ = await (0, security_js_1.extractSecurity)(client$.options$.session);
|
|
44
|
-
const security$ = session$ == null ? {} : { session: session$ };
|
|
45
|
-
const context = {
|
|
46
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
47
|
-
oAuth2Scopes: [],
|
|
48
|
-
securitySource: client$.options$.session,
|
|
49
|
-
};
|
|
50
|
-
const securitySettings$ = (0, security_js_1.resolveGlobalSecurity)(security$);
|
|
51
|
-
const requestRes = client$.createRequest$(context, {
|
|
52
|
-
security: securitySettings$,
|
|
53
|
-
method: "POST",
|
|
54
|
-
path: path$,
|
|
55
|
-
headers: headers$,
|
|
56
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
57
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client$.options$.timeoutMs || -1,
|
|
58
|
-
}, options);
|
|
59
|
-
if (!requestRes.ok) {
|
|
60
|
-
return requestRes;
|
|
61
|
-
}
|
|
62
|
-
const request$ = requestRes.value;
|
|
63
|
-
const doResult = await client$.do$(request$, {
|
|
64
|
-
context,
|
|
65
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
66
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
67
|
-
|| client$.options$.retryConfig,
|
|
68
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
69
|
-
});
|
|
70
|
-
if (!doResult.ok) {
|
|
71
|
-
return doResult;
|
|
72
|
-
}
|
|
73
|
-
const response = doResult.value;
|
|
74
|
-
const responseFields$ = {
|
|
75
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
76
|
-
};
|
|
77
|
-
const [result$] = await m$.match(m$.json(200, operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema, { key: "V1GenerateApiKeyResponseBody" }), m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
78
|
-
ctype: "application/problem+json",
|
|
79
|
-
}), m$.fail(["4XX", "5XX"]))(response, request$, { extraFields: responseFields$ });
|
|
80
|
-
if (!result$.ok) {
|
|
81
|
-
return result$;
|
|
82
|
-
}
|
|
83
|
-
return result$;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=accountAccountV1SettingsGenerateApiKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accountAccountV1SettingsGenerateApiKey.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1SettingsGenerateApiKey.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SteamSetsCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Generate a new API key for the account
|
|
11
|
-
*/
|
|
12
|
-
export declare function settingsAccountV1SettingsGenerateApiKey(client$: SteamSetsCore, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsGenerateApiKeyResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
-
//# sourceMappingURL=settingsAccountV1SettingsGenerateApiKey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settingsAccountV1SettingsGenerateApiKey.d.ts","sourceRoot":"","sources":["../src/funcs/settingsAccountV1SettingsGenerateApiKey.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,uCAAuC,CAC3D,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuEA"}
|
|
@@ -1,85 +0,0 @@
|
|
|
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.settingsAccountV1SettingsGenerateApiKey = settingsAccountV1SettingsGenerateApiKey;
|
|
30
|
-
const m$ = __importStar(require("../lib/matchers.js"));
|
|
31
|
-
const security_js_1 = require("../lib/security.js");
|
|
32
|
-
const url_js_1 = require("../lib/url.js");
|
|
33
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
34
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
35
|
-
/**
|
|
36
|
-
* Generate a new API key for the account
|
|
37
|
-
*/
|
|
38
|
-
async function settingsAccountV1SettingsGenerateApiKey(client$, options) {
|
|
39
|
-
const path$ = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GenerateApiKey")();
|
|
40
|
-
const headers$ = new Headers({
|
|
41
|
-
Accept: "application/json",
|
|
42
|
-
});
|
|
43
|
-
const session$ = await (0, security_js_1.extractSecurity)(client$.options$.session);
|
|
44
|
-
const security$ = session$ == null ? {} : { session: session$ };
|
|
45
|
-
const context = {
|
|
46
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
47
|
-
oAuth2Scopes: [],
|
|
48
|
-
securitySource: client$.options$.session,
|
|
49
|
-
};
|
|
50
|
-
const securitySettings$ = (0, security_js_1.resolveGlobalSecurity)(security$);
|
|
51
|
-
const requestRes = client$.createRequest$(context, {
|
|
52
|
-
security: securitySettings$,
|
|
53
|
-
method: "POST",
|
|
54
|
-
path: path$,
|
|
55
|
-
headers: headers$,
|
|
56
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
57
|
-
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client$.options$.timeoutMs || -1,
|
|
58
|
-
}, options);
|
|
59
|
-
if (!requestRes.ok) {
|
|
60
|
-
return requestRes;
|
|
61
|
-
}
|
|
62
|
-
const request$ = requestRes.value;
|
|
63
|
-
const doResult = await client$.do$(request$, {
|
|
64
|
-
context,
|
|
65
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
66
|
-
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
67
|
-
|| client$.options$.retryConfig,
|
|
68
|
-
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
69
|
-
});
|
|
70
|
-
if (!doResult.ok) {
|
|
71
|
-
return doResult;
|
|
72
|
-
}
|
|
73
|
-
const response = doResult.value;
|
|
74
|
-
const responseFields$ = {
|
|
75
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
76
|
-
};
|
|
77
|
-
const [result$] = await m$.match(m$.json(200, operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema, { key: "V1GenerateApiKeyResponseBody" }), m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
78
|
-
ctype: "application/problem+json",
|
|
79
|
-
}), m$.fail(["4XX", "5XX"]))(response, request$, { extraFields: responseFields$ });
|
|
80
|
-
if (!result$.ok) {
|
|
81
|
-
return result$;
|
|
82
|
-
}
|
|
83
|
-
return result$;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=settingsAccountV1SettingsGenerateApiKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settingsAccountV1SettingsGenerateApiKey.js","sourceRoot":"","sources":["../src/funcs/settingsAccountV1SettingsGenerateApiKey.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type V1GenerateApiKeyResponseBody = {
|
|
3
|
-
/**
|
|
4
|
-
* A URL to the JSON Schema for this object.
|
|
5
|
-
*/
|
|
6
|
-
dollarSchema?: string | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* The generated API Key
|
|
9
|
-
*/
|
|
10
|
-
key: string;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const V1GenerateApiKeyResponseBody$inboundSchema: z.ZodType<V1GenerateApiKeyResponseBody, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type V1GenerateApiKeyResponseBody$Outbound = {
|
|
16
|
-
$schema?: string | undefined;
|
|
17
|
-
key: string;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const V1GenerateApiKeyResponseBody$outboundSchema: z.ZodType<V1GenerateApiKeyResponseBody$Outbound, z.ZodTypeDef, V1GenerateApiKeyResponseBody>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace V1GenerateApiKeyResponseBody$ {
|
|
26
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<V1GenerateApiKeyResponseBody, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<V1GenerateApiKeyResponseBody$Outbound, z.ZodTypeDef, V1GenerateApiKeyResponseBody>;
|
|
30
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$Outbound` instead. */
|
|
31
|
-
type Outbound = V1GenerateApiKeyResponseBody$Outbound;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=v1generateapikeyresponsebody.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1generateapikeyresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1generateapikeyresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAQ5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D"}
|
|
@@ -1,61 +0,0 @@
|
|
|
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.V1GenerateApiKeyResponseBody$ = exports.V1GenerateApiKeyResponseBody$outboundSchema = exports.V1GenerateApiKeyResponseBody$inboundSchema = void 0;
|
|
30
|
-
const z = __importStar(require("zod"));
|
|
31
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
-
/** @internal */
|
|
33
|
-
exports.V1GenerateApiKeyResponseBody$inboundSchema = z.object({
|
|
34
|
-
$schema: z.string().optional(),
|
|
35
|
-
key: z.string(),
|
|
36
|
-
}).transform((v) => {
|
|
37
|
-
return (0, primitives_js_1.remap)(v, {
|
|
38
|
-
"$schema": "dollarSchema",
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.V1GenerateApiKeyResponseBody$outboundSchema = z.object({
|
|
43
|
-
dollarSchema: z.string().optional(),
|
|
44
|
-
key: z.string(),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return (0, primitives_js_1.remap)(v, {
|
|
47
|
-
dollarSchema: "$schema",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
var V1GenerateApiKeyResponseBody$;
|
|
55
|
-
(function (V1GenerateApiKeyResponseBody$) {
|
|
56
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$inboundSchema` instead. */
|
|
57
|
-
V1GenerateApiKeyResponseBody$.inboundSchema = exports.V1GenerateApiKeyResponseBody$inboundSchema;
|
|
58
|
-
/** @deprecated use `V1GenerateApiKeyResponseBody$outboundSchema` instead. */
|
|
59
|
-
V1GenerateApiKeyResponseBody$.outboundSchema = exports.V1GenerateApiKeyResponseBody$outboundSchema;
|
|
60
|
-
})(V1GenerateApiKeyResponseBody$ || (exports.V1GenerateApiKeyResponseBody$ = V1GenerateApiKeyResponseBody$ = {}));
|
|
61
|
-
//# sourceMappingURL=v1generateapikeyresponsebody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1generateapikeyresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1generateapikeyresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAa1D,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import * as components from "../components/index.js";
|
|
3
|
-
export type AccountV1SettingsGenerateApiKeyResponse = {
|
|
4
|
-
httpMeta: components.HTTPMetadata;
|
|
5
|
-
/**
|
|
6
|
-
* OK
|
|
7
|
-
*/
|
|
8
|
-
v1GenerateApiKeyResponseBody?: components.V1GenerateApiKeyResponseBody | undefined;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const AccountV1SettingsGenerateApiKeyResponse$inboundSchema: z.ZodType<AccountV1SettingsGenerateApiKeyResponse, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type AccountV1SettingsGenerateApiKeyResponse$Outbound = {
|
|
14
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
15
|
-
V1GenerateApiKeyResponseBody?: components.V1GenerateApiKeyResponseBody$Outbound | undefined;
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const AccountV1SettingsGenerateApiKeyResponse$outboundSchema: z.ZodType<AccountV1SettingsGenerateApiKeyResponse$Outbound, z.ZodTypeDef, AccountV1SettingsGenerateApiKeyResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export declare namespace AccountV1SettingsGenerateApiKeyResponse$ {
|
|
24
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodType<AccountV1SettingsGenerateApiKeyResponse, z.ZodTypeDef, unknown>;
|
|
26
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodType<AccountV1SettingsGenerateApiKeyResponse$Outbound, z.ZodTypeDef, AccountV1SettingsGenerateApiKeyResponse>;
|
|
28
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$Outbound` instead. */
|
|
29
|
-
type Outbound = AccountV1SettingsGenerateApiKeyResponse$Outbound;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=accountv1settingsgenerateapikey.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accountv1settingsgenerateapikey.d.ts","sourceRoot":"","sources":["../../src/models/operations/accountv1settingsgenerateapikey.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,4BAA4B,CAAC,EACzB,UAAU,CAAC,4BAA4B,GACvC,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gDAAgD,GAAG;IAC7D,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,4BAA4B,CAAC,EACzB,UAAU,CAAC,qCAAqC,GAChD,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EAAE,CAAC,CAAC,OAAO,CAC5E,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,uCAAuC,CAUvC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wCAAwC,CAAC;IACxD,uFAAuF;IAChF,MAAM,aAAa,2EAC6B,CAAC;IACxD,wFAAwF;IACjF,MAAM,cAAc,oHAC6B,CAAC;IACzD,kFAAkF;IAClF,KAAY,QAAQ,GAAG,gDAAgD,CAAC;CACzE"}
|
|
@@ -1,66 +0,0 @@
|
|
|
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.AccountV1SettingsGenerateApiKeyResponse$ = exports.AccountV1SettingsGenerateApiKeyResponse$outboundSchema = exports.AccountV1SettingsGenerateApiKeyResponse$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.AccountV1SettingsGenerateApiKeyResponse$inboundSchema = z.object({
|
|
35
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
36
|
-
V1GenerateApiKeyResponseBody: components
|
|
37
|
-
.V1GenerateApiKeyResponseBody$inboundSchema.optional(),
|
|
38
|
-
}).transform((v) => {
|
|
39
|
-
return (0, primitives_js_1.remap)(v, {
|
|
40
|
-
"HttpMeta": "httpMeta",
|
|
41
|
-
"V1GenerateApiKeyResponseBody": "v1GenerateApiKeyResponseBody",
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.AccountV1SettingsGenerateApiKeyResponse$outboundSchema = z.object({
|
|
46
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
47
|
-
v1GenerateApiKeyResponseBody: components
|
|
48
|
-
.V1GenerateApiKeyResponseBody$outboundSchema.optional(),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return (0, primitives_js_1.remap)(v, {
|
|
51
|
-
httpMeta: "HttpMeta",
|
|
52
|
-
v1GenerateApiKeyResponseBody: "V1GenerateApiKeyResponseBody",
|
|
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 AccountV1SettingsGenerateApiKeyResponse$;
|
|
60
|
-
(function (AccountV1SettingsGenerateApiKeyResponse$) {
|
|
61
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$inboundSchema` instead. */
|
|
62
|
-
AccountV1SettingsGenerateApiKeyResponse$.inboundSchema = exports.AccountV1SettingsGenerateApiKeyResponse$inboundSchema;
|
|
63
|
-
/** @deprecated use `AccountV1SettingsGenerateApiKeyResponse$outboundSchema` instead. */
|
|
64
|
-
AccountV1SettingsGenerateApiKeyResponse$.outboundSchema = exports.AccountV1SettingsGenerateApiKeyResponse$outboundSchema;
|
|
65
|
-
})(AccountV1SettingsGenerateApiKeyResponse$ || (exports.AccountV1SettingsGenerateApiKeyResponse$ = AccountV1SettingsGenerateApiKeyResponse$ = {}));
|
|
66
|
-
//# sourceMappingURL=accountv1settingsgenerateapikey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accountv1settingsgenerateapikey.js","sourceRoot":"","sources":["../../src/models/operations/accountv1settingsgenerateapikey.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mEAAqD;AAYrD,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,4BAA4B,EAAE,UAAU;SACrC,0CAA0C,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,8BAA8B,EAAE,8BAA8B;KAC/D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,sDAAsD,GAI/D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,4BAA4B,EAAE,UAAU;SACrC,2CAA2C,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,4BAA4B,EAAE,8BAA8B;KAC7D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wCAAwC,CASxD;AATD,WAAiB,wCAAwC;IACvD,uFAAuF;IAC1E,sDAAa,GACxB,6DAAqD,CAAC;IACxD,wFAAwF;IAC3E,uDAAc,GACzB,8DAAsD,CAAC;AAG3D,CAAC,EATgB,wCAAwC,wDAAxC,wCAAwC,QASxD"}
|
|
@@ -1,112 +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 { extractSecurity, resolveGlobalSecurity } 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
|
-
options?: RequestOptions,
|
|
29
|
-
): Promise<
|
|
30
|
-
Result<
|
|
31
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
32
|
-
| errors.ErrorModel
|
|
33
|
-
| SDKError
|
|
34
|
-
| SDKValidationError
|
|
35
|
-
| UnexpectedClientError
|
|
36
|
-
| InvalidRequestError
|
|
37
|
-
| RequestAbortedError
|
|
38
|
-
| RequestTimeoutError
|
|
39
|
-
| ConnectionError
|
|
40
|
-
>
|
|
41
|
-
> {
|
|
42
|
-
const path$ = pathToFunc("/account.v1.AccountService/GenerateApiKey")();
|
|
43
|
-
|
|
44
|
-
const headers$ = new Headers({
|
|
45
|
-
Accept: "application/json",
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const session$ = await extractSecurity(client$.options$.session);
|
|
49
|
-
const security$ = session$ == null ? {} : { session: session$ };
|
|
50
|
-
const context = {
|
|
51
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
52
|
-
oAuth2Scopes: [],
|
|
53
|
-
securitySource: client$.options$.session,
|
|
54
|
-
};
|
|
55
|
-
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
56
|
-
|
|
57
|
-
const requestRes = client$.createRequest$(context, {
|
|
58
|
-
security: securitySettings$,
|
|
59
|
-
method: "POST",
|
|
60
|
-
path: path$,
|
|
61
|
-
headers: headers$,
|
|
62
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
63
|
-
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
64
|
-
}, options);
|
|
65
|
-
if (!requestRes.ok) {
|
|
66
|
-
return requestRes;
|
|
67
|
-
}
|
|
68
|
-
const request$ = requestRes.value;
|
|
69
|
-
|
|
70
|
-
const doResult = await client$.do$(request$, {
|
|
71
|
-
context,
|
|
72
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
73
|
-
retryConfig: options?.retries
|
|
74
|
-
|| client$.options$.retryConfig,
|
|
75
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
76
|
-
});
|
|
77
|
-
if (!doResult.ok) {
|
|
78
|
-
return doResult;
|
|
79
|
-
}
|
|
80
|
-
const response = doResult.value;
|
|
81
|
-
|
|
82
|
-
const responseFields$ = {
|
|
83
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const [result$] = await m$.match<
|
|
87
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
88
|
-
| errors.ErrorModel
|
|
89
|
-
| SDKError
|
|
90
|
-
| SDKValidationError
|
|
91
|
-
| UnexpectedClientError
|
|
92
|
-
| InvalidRequestError
|
|
93
|
-
| RequestAbortedError
|
|
94
|
-
| RequestTimeoutError
|
|
95
|
-
| ConnectionError
|
|
96
|
-
>(
|
|
97
|
-
m$.json(
|
|
98
|
-
200,
|
|
99
|
-
operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema,
|
|
100
|
-
{ key: "V1GenerateApiKeyResponseBody" },
|
|
101
|
-
),
|
|
102
|
-
m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
103
|
-
ctype: "application/problem+json",
|
|
104
|
-
}),
|
|
105
|
-
m$.fail(["4XX", "5XX"]),
|
|
106
|
-
)(response, request$, { extraFields: responseFields$ });
|
|
107
|
-
if (!result$.ok) {
|
|
108
|
-
return result$;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return result$;
|
|
112
|
-
}
|
|
@@ -1,112 +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 { extractSecurity, resolveGlobalSecurity } 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
|
-
options?: RequestOptions,
|
|
29
|
-
): Promise<
|
|
30
|
-
Result<
|
|
31
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
32
|
-
| errors.ErrorModel
|
|
33
|
-
| SDKError
|
|
34
|
-
| SDKValidationError
|
|
35
|
-
| UnexpectedClientError
|
|
36
|
-
| InvalidRequestError
|
|
37
|
-
| RequestAbortedError
|
|
38
|
-
| RequestTimeoutError
|
|
39
|
-
| ConnectionError
|
|
40
|
-
>
|
|
41
|
-
> {
|
|
42
|
-
const path$ = pathToFunc("/account.v1.AccountService/GenerateApiKey")();
|
|
43
|
-
|
|
44
|
-
const headers$ = new Headers({
|
|
45
|
-
Accept: "application/json",
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
const session$ = await extractSecurity(client$.options$.session);
|
|
49
|
-
const security$ = session$ == null ? {} : { session: session$ };
|
|
50
|
-
const context = {
|
|
51
|
-
operationID: "account.v1.settings.generate-api-key",
|
|
52
|
-
oAuth2Scopes: [],
|
|
53
|
-
securitySource: client$.options$.session,
|
|
54
|
-
};
|
|
55
|
-
const securitySettings$ = resolveGlobalSecurity(security$);
|
|
56
|
-
|
|
57
|
-
const requestRes = client$.createRequest$(context, {
|
|
58
|
-
security: securitySettings$,
|
|
59
|
-
method: "POST",
|
|
60
|
-
path: path$,
|
|
61
|
-
headers: headers$,
|
|
62
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
63
|
-
timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
|
|
64
|
-
}, options);
|
|
65
|
-
if (!requestRes.ok) {
|
|
66
|
-
return requestRes;
|
|
67
|
-
}
|
|
68
|
-
const request$ = requestRes.value;
|
|
69
|
-
|
|
70
|
-
const doResult = await client$.do$(request$, {
|
|
71
|
-
context,
|
|
72
|
-
errorCodes: ["404", "429", "4XX", "500", "5XX"],
|
|
73
|
-
retryConfig: options?.retries
|
|
74
|
-
|| client$.options$.retryConfig,
|
|
75
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
76
|
-
});
|
|
77
|
-
if (!doResult.ok) {
|
|
78
|
-
return doResult;
|
|
79
|
-
}
|
|
80
|
-
const response = doResult.value;
|
|
81
|
-
|
|
82
|
-
const responseFields$ = {
|
|
83
|
-
HttpMeta: { Response: response, Request: request$ },
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
const [result$] = await m$.match<
|
|
87
|
-
operations.AccountV1SettingsGenerateApiKeyResponse,
|
|
88
|
-
| errors.ErrorModel
|
|
89
|
-
| SDKError
|
|
90
|
-
| SDKValidationError
|
|
91
|
-
| UnexpectedClientError
|
|
92
|
-
| InvalidRequestError
|
|
93
|
-
| RequestAbortedError
|
|
94
|
-
| RequestTimeoutError
|
|
95
|
-
| ConnectionError
|
|
96
|
-
>(
|
|
97
|
-
m$.json(
|
|
98
|
-
200,
|
|
99
|
-
operations.AccountV1SettingsGenerateApiKeyResponse$inboundSchema,
|
|
100
|
-
{ key: "V1GenerateApiKeyResponseBody" },
|
|
101
|
-
),
|
|
102
|
-
m$.jsonErr([404, 429, 500], errors.ErrorModel$inboundSchema, {
|
|
103
|
-
ctype: "application/problem+json",
|
|
104
|
-
}),
|
|
105
|
-
m$.fail(["4XX", "5XX"]),
|
|
106
|
-
)(response, request$, { extraFields: responseFields$ });
|
|
107
|
-
if (!result$.ok) {
|
|
108
|
-
return result$;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return result$;
|
|
112
|
-
}
|