@steamsets/client-ts 0.11.11 → 0.11.13

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.
Files changed (66) hide show
  1. package/README.md +0 -4
  2. package/docs/sdks/account/README.md +2 -0
  3. package/docs/sdks/data/README.md +0 -158
  4. package/docs/sdks/public/README.md +2 -0
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/models/components/index.d.ts +3 -3
  8. package/models/components/index.d.ts.map +1 -1
  9. package/models/components/index.js +3 -3
  10. package/models/components/index.js.map +1 -1
  11. package/models/components/resource.d.ts +0 -3
  12. package/models/components/resource.d.ts.map +1 -1
  13. package/models/components/resource.js +0 -1
  14. package/models/components/resource.js.map +1 -1
  15. package/models/components/{accountbadgemostxpdatapoint.d.ts → v1accountbadgemostxpdatapoint.d.ts} +12 -12
  16. package/models/components/v1accountbadgemostxpdatapoint.d.ts.map +1 -0
  17. package/models/components/{accountbadgemostxpdatapoint.js → v1accountbadgemostxpdatapoint.js} +11 -11
  18. package/models/components/v1accountbadgemostxpdatapoint.js.map +1 -0
  19. package/models/components/v1accountbadgescarcitydatapoint.d.ts +68 -0
  20. package/models/components/v1accountbadgescarcitydatapoint.d.ts.map +1 -0
  21. package/models/components/{accountbadgescarcitydatapoint.js → v1accountbadgescarcitydatapoint.js} +11 -11
  22. package/models/components/v1accountbadgescarcitydatapoint.js.map +1 -0
  23. package/models/components/v1accountdatapointsresponsebody.d.ts +9 -9
  24. package/models/components/v1accountdatapointsresponsebody.d.ts.map +1 -1
  25. package/models/components/v1accountdatapointsresponsebody.js +9 -9
  26. package/models/components/v1accountdatapointsresponsebody.js.map +1 -1
  27. package/models/components/v1accountplaytimedatapoint.d.ts +43 -0
  28. package/models/components/v1accountplaytimedatapoint.d.ts.map +1 -0
  29. package/models/components/{accountplaytimedatapoint.js → v1accountplaytimedatapoint.js} +11 -11
  30. package/models/components/v1accountplaytimedatapoint.js.map +1 -0
  31. package/models/components/v1accountqueuerequestbody.d.ts +5 -0
  32. package/models/components/v1accountqueuerequestbody.d.ts.map +1 -1
  33. package/models/components/v1accountqueuerequestbody.js +2 -0
  34. package/models/components/v1accountqueuerequestbody.js.map +1 -1
  35. package/package.json +1 -1
  36. package/sdk/data.d.ts +0 -8
  37. package/sdk/data.d.ts.map +1 -1
  38. package/sdk/data.js +0 -14
  39. package/sdk/data.js.map +1 -1
  40. package/src/lib/config.ts +3 -3
  41. package/src/models/components/index.ts +3 -3
  42. package/src/models/components/resource.ts +0 -1
  43. package/src/models/components/{accountbadgemostxpdatapoint.ts → v1accountbadgemostxpdatapoint.ts} +14 -14
  44. package/src/models/components/{accountbadgescarcitydatapoint.ts → v1accountbadgescarcitydatapoint.ts} +14 -14
  45. package/src/models/components/v1accountdatapointsresponsebody.ts +27 -27
  46. package/src/models/components/{accountplaytimedatapoint.ts → v1accountplaytimedatapoint.ts} +14 -14
  47. package/src/models/components/v1accountqueuerequestbody.ts +7 -0
  48. package/src/sdk/data.ts +0 -30
  49. package/funcs/dataAccountV1Queue.d.ts +0 -14
  50. package/funcs/dataAccountV1Queue.d.ts.map +0 -1
  51. package/funcs/dataAccountV1Queue.js +0 -96
  52. package/funcs/dataAccountV1Queue.js.map +0 -1
  53. package/funcs/dataAppV1Queue.d.ts +0 -14
  54. package/funcs/dataAppV1Queue.d.ts.map +0 -1
  55. package/funcs/dataAppV1Queue.js +0 -96
  56. package/funcs/dataAppV1Queue.js.map +0 -1
  57. package/models/components/accountbadgemostxpdatapoint.d.ts.map +0 -1
  58. package/models/components/accountbadgemostxpdatapoint.js.map +0 -1
  59. package/models/components/accountbadgescarcitydatapoint.d.ts +0 -68
  60. package/models/components/accountbadgescarcitydatapoint.d.ts.map +0 -1
  61. package/models/components/accountbadgescarcitydatapoint.js.map +0 -1
  62. package/models/components/accountplaytimedatapoint.d.ts +0 -43
  63. package/models/components/accountplaytimedatapoint.d.ts.map +0 -1
  64. package/models/components/accountplaytimedatapoint.js.map +0 -1
  65. package/src/funcs/dataAccountV1Queue.ts +0 -125
  66. package/src/funcs/dataAppV1Queue.ts +0 -125
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
 
7
- export type AccountPlaytimeDataPoint = {
7
+ export type V1AccountPlaytimeDataPoint = {
8
8
  /**
9
9
  * The app id
10
10
  */
@@ -24,8 +24,8 @@ export type AccountPlaytimeDataPoint = {
24
24
  };
25
25
 
26
26
  /** @internal */
27
- export const AccountPlaytimeDataPoint$inboundSchema: z.ZodType<
28
- AccountPlaytimeDataPoint,
27
+ export const V1AccountPlaytimeDataPoint$inboundSchema: z.ZodType<
28
+ V1AccountPlaytimeDataPoint,
29
29
  z.ZodTypeDef,
30
30
  unknown
31
31
  > = z.object({
@@ -36,7 +36,7 @@ export const AccountPlaytimeDataPoint$inboundSchema: z.ZodType<
36
36
  });
37
37
 
38
38
  /** @internal */
39
- export type AccountPlaytimeDataPoint$Outbound = {
39
+ export type V1AccountPlaytimeDataPoint$Outbound = {
40
40
  appId: number;
41
41
  image: string;
42
42
  name: string;
@@ -44,10 +44,10 @@ export type AccountPlaytimeDataPoint$Outbound = {
44
44
  };
45
45
 
46
46
  /** @internal */
47
- export const AccountPlaytimeDataPoint$outboundSchema: z.ZodType<
48
- AccountPlaytimeDataPoint$Outbound,
47
+ export const V1AccountPlaytimeDataPoint$outboundSchema: z.ZodType<
48
+ V1AccountPlaytimeDataPoint$Outbound,
49
49
  z.ZodTypeDef,
50
- AccountPlaytimeDataPoint
50
+ V1AccountPlaytimeDataPoint
51
51
  > = z.object({
52
52
  appId: z.number().int(),
53
53
  image: z.string(),
@@ -59,11 +59,11 @@ export const AccountPlaytimeDataPoint$outboundSchema: z.ZodType<
59
59
  * @internal
60
60
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
61
  */
62
- export namespace AccountPlaytimeDataPoint$ {
63
- /** @deprecated use `AccountPlaytimeDataPoint$inboundSchema` instead. */
64
- export const inboundSchema = AccountPlaytimeDataPoint$inboundSchema;
65
- /** @deprecated use `AccountPlaytimeDataPoint$outboundSchema` instead. */
66
- export const outboundSchema = AccountPlaytimeDataPoint$outboundSchema;
67
- /** @deprecated use `AccountPlaytimeDataPoint$Outbound` instead. */
68
- export type Outbound = AccountPlaytimeDataPoint$Outbound;
62
+ export namespace V1AccountPlaytimeDataPoint$ {
63
+ /** @deprecated use `V1AccountPlaytimeDataPoint$inboundSchema` instead. */
64
+ export const inboundSchema = V1AccountPlaytimeDataPoint$inboundSchema;
65
+ /** @deprecated use `V1AccountPlaytimeDataPoint$outboundSchema` instead. */
66
+ export const outboundSchema = V1AccountPlaytimeDataPoint$outboundSchema;
67
+ /** @deprecated use `V1AccountPlaytimeDataPoint$Outbound` instead. */
68
+ export type Outbound = V1AccountPlaytimeDataPoint$Outbound;
69
69
  }
@@ -22,6 +22,10 @@ export type V1AccountQueueRequestBody = {
22
22
  */
23
23
  force: boolean;
24
24
  id?: IDStruct | undefined;
25
+ /**
26
+ * The steam id of the account if it doesn't exist in the database
27
+ */
28
+ steamId?: string | null | undefined;
25
29
  vanity?: VanityStruct | undefined;
26
30
  };
27
31
 
@@ -33,6 +37,7 @@ export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
33
37
  > = z.object({
34
38
  force: z.boolean(),
35
39
  id: IDStruct$inboundSchema.optional(),
40
+ steamId: z.nullable(z.string()).optional(),
36
41
  vanity: VanityStruct$inboundSchema.optional(),
37
42
  });
38
43
 
@@ -40,6 +45,7 @@ export const V1AccountQueueRequestBody$inboundSchema: z.ZodType<
40
45
  export type V1AccountQueueRequestBody$Outbound = {
41
46
  force: boolean;
42
47
  id?: IDStruct$Outbound | undefined;
48
+ steamId?: string | null | undefined;
43
49
  vanity?: VanityStruct$Outbound | undefined;
44
50
  };
45
51
 
@@ -51,6 +57,7 @@ export const V1AccountQueueRequestBody$outboundSchema: z.ZodType<
51
57
  > = z.object({
52
58
  force: z.boolean(),
53
59
  id: IDStruct$outboundSchema.optional(),
60
+ steamId: z.nullable(z.string()).optional(),
54
61
  vanity: VanityStruct$outboundSchema.optional(),
55
62
  });
56
63
 
package/src/sdk/data.ts CHANGED
@@ -9,8 +9,6 @@ import { dataAccountV1GetFriends } from "../funcs/dataAccountV1GetFriends.js";
9
9
  import { dataAccountV1GetInfo } from "../funcs/dataAccountV1GetInfo.js";
10
10
  import { dataAccountV1GetLeaderboardHistory } from "../funcs/dataAccountV1GetLeaderboardHistory.js";
11
11
  import { dataAccountV1GetStaff } from "../funcs/dataAccountV1GetStaff.js";
12
- import { dataAccountV1Queue } from "../funcs/dataAccountV1Queue.js";
13
- import { dataAppV1Queue } from "../funcs/dataAppV1Queue.js";
14
12
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
15
13
  import * as components from "../models/components/index.js";
16
14
  import * as operations from "../models/operations/index.js";
@@ -112,32 +110,4 @@ export class Data extends ClientSDK {
112
110
  options,
113
111
  ));
114
112
  }
115
-
116
- /**
117
- * Queue an account for processing
118
- */
119
- async accountV1Queue(
120
- request: components.V1AccountQueueRequestBody,
121
- options?: RequestOptions,
122
- ): Promise<operations.AccountV1QueueResponse> {
123
- return unwrapAsync(dataAccountV1Queue(
124
- this,
125
- request,
126
- options,
127
- ));
128
- }
129
-
130
- /**
131
- * Queue a app for processing
132
- */
133
- async appV1Queue(
134
- request: components.AppSearch,
135
- options?: RequestOptions,
136
- ): Promise<operations.AppV1QueueResponse> {
137
- return unwrapAsync(dataAppV1Queue(
138
- this,
139
- request,
140
- options,
141
- ));
142
- }
143
113
  }
@@ -1,14 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Queue an account for processing
12
- */
13
- export declare function dataAccountV1Queue(client: SteamSetsCore, request: components.V1AccountQueueRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1QueueResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=dataAccountV1Queue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataAccountV1Queue.d.ts","sourceRoot":"","sources":["../src/funcs/dataAccountV1Queue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAgFA"}
@@ -1,96 +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.dataAccountV1Queue = dataAccountV1Queue;
30
- const encodings_js_1 = require("../lib/encodings.js");
31
- const M = __importStar(require("../lib/matchers.js"));
32
- const schemas_js_1 = require("../lib/schemas.js");
33
- const security_js_1 = require("../lib/security.js");
34
- const url_js_1 = require("../lib/url.js");
35
- const components = __importStar(require("../models/components/index.js"));
36
- const errors = __importStar(require("../models/errors/index.js"));
37
- const operations = __importStar(require("../models/operations/index.js"));
38
- /**
39
- * Queue an account for processing
40
- */
41
- async function dataAccountV1Queue(client, request, options) {
42
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1AccountQueueRequestBody$outboundSchema.parse(value), "Input validation failed");
43
- if (!parsed.ok) {
44
- return parsed;
45
- }
46
- const payload = parsed.value;
47
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
48
- const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/Queue")();
49
- const headers = new Headers({
50
- "Content-Type": "application/json",
51
- Accept: "application/problem+json",
52
- });
53
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
54
- const securityInput = secConfig == null ? {} : { token: secConfig };
55
- const context = {
56
- operationID: "account.v1.queue",
57
- oAuth2Scopes: [],
58
- securitySource: client._options.token,
59
- };
60
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
61
- const requestRes = client._createRequest(context, {
62
- security: requestSecurity,
63
- method: "POST",
64
- path: path,
65
- headers: headers,
66
- body: body,
67
- uaHeader: "x-speakeasy-user-agent",
68
- timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
69
- }, options);
70
- if (!requestRes.ok) {
71
- return requestRes;
72
- }
73
- const req = requestRes.value;
74
- const doResult = await client._do(req, {
75
- context,
76
- errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
77
- retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
78
- || client._options.retryConfig,
79
- retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
80
- });
81
- if (!doResult.ok) {
82
- return doResult;
83
- }
84
- const response = doResult.value;
85
- const responseFields = {
86
- HttpMeta: { Response: response, Request: req },
87
- };
88
- const [result] = await M.match(M.nil(204, operations.AccountV1QueueResponse$inboundSchema, { hdrs: true }), M.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
89
- ctype: "application/problem+json",
90
- }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
91
- if (!result.ok) {
92
- return result;
93
- }
94
- return result;
95
- }
96
- //# sourceMappingURL=dataAccountV1Queue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataAccountV1Queue.js","sourceRoot":"","sources":["../src/funcs/dataAccountV1Queue.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,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C,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC3E,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC/D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,14 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Queue a app for processing
12
- */
13
- export declare function dataAppV1Queue(client: SteamSetsCore, request: components.AppSearch, options?: RequestOptions): Promise<Result<operations.AppV1QueueResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=dataAppV1Queue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataAppV1Queue.d.ts","sourceRoot":"","sources":["../src/funcs/dataAppV1Queue.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,SAAS,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAgFA"}
@@ -1,96 +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.dataAppV1Queue = dataAppV1Queue;
30
- const encodings_js_1 = require("../lib/encodings.js");
31
- const M = __importStar(require("../lib/matchers.js"));
32
- const schemas_js_1 = require("../lib/schemas.js");
33
- const security_js_1 = require("../lib/security.js");
34
- const url_js_1 = require("../lib/url.js");
35
- const components = __importStar(require("../models/components/index.js"));
36
- const errors = __importStar(require("../models/errors/index.js"));
37
- const operations = __importStar(require("../models/operations/index.js"));
38
- /**
39
- * Queue a app for processing
40
- */
41
- async function dataAppV1Queue(client, request, options) {
42
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.AppSearch$outboundSchema.parse(value), "Input validation failed");
43
- if (!parsed.ok) {
44
- return parsed;
45
- }
46
- const payload = parsed.value;
47
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
48
- const path = (0, url_js_1.pathToFunc)("/app.v1.AppService/Queue")();
49
- const headers = new Headers({
50
- "Content-Type": "application/json",
51
- Accept: "application/problem+json",
52
- });
53
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
54
- const securityInput = secConfig == null ? {} : { token: secConfig };
55
- const context = {
56
- operationID: "app.v1.queue",
57
- oAuth2Scopes: [],
58
- securitySource: client._options.token,
59
- };
60
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
61
- const requestRes = client._createRequest(context, {
62
- security: requestSecurity,
63
- method: "POST",
64
- path: path,
65
- headers: headers,
66
- body: body,
67
- uaHeader: "x-speakeasy-user-agent",
68
- timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
69
- }, options);
70
- if (!requestRes.ok) {
71
- return requestRes;
72
- }
73
- const req = requestRes.value;
74
- const doResult = await client._do(req, {
75
- context,
76
- errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
77
- retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
78
- || client._options.retryConfig,
79
- retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
80
- });
81
- if (!doResult.ok) {
82
- return doResult;
83
- }
84
- const response = doResult.value;
85
- const responseFields = {
86
- HttpMeta: { Response: response, Request: req },
87
- };
88
- const [result] = await M.match(M.nil(204, operations.AppV1QueueResponse$inboundSchema, { hdrs: true }), M.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
89
- ctype: "application/problem+json",
90
- }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
91
- if (!result.ok) {
92
- return result;
93
- }
94
- return result;
95
- }
96
- //# sourceMappingURL=dataAppV1Queue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataAppV1Queue.js","sourceRoot":"","sources":["../src/funcs/dataAppV1Queue.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wCAgGC;AAvHD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,cAAc,CAClC,MAAqB,EACrB,OAA6B,EAC7B,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,KAAK,CAAC,EAC3D,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,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CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountbadgemostxpdatapoint.d.ts","sourceRoot":"","sources":["../../src/models/components/accountbadgemostxpdatapoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAc3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountbadgemostxpdatapoint.js","sourceRoot":"","sources":["../../src/models/components/accountbadgemostxpdatapoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAqDzB,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CACpE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;IACD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IA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;
7
- /**
8
- * The badge id
9
- */
10
- badgeId: string;
11
- /**
12
- * The badge image
13
- */
14
- badgeImage: string;
15
- /**
16
- * Whether the badge is foil
17
- */
18
- badgeIsFoil: boolean;
19
- /**
20
- * The badge level
21
- */
22
- badgeLevel: number;
23
- /**
24
- * The badge name
25
- */
26
- badgeName: string;
27
- /**
28
- * The badge scarcity
29
- */
30
- badgeScarcity: number;
31
- /**
32
- * The image of the app
33
- */
34
- image: string;
35
- /**
36
- * The name of the app
37
- */
38
- name: string;
39
- };
40
- /** @internal */
41
- export declare const AccountBadgeScarcityDataPoint$inboundSchema: z.ZodType<AccountBadgeScarcityDataPoint, z.ZodTypeDef, unknown>;
42
- /** @internal */
43
- export type AccountBadgeScarcityDataPoint$Outbound = {
44
- appId: number;
45
- badgeId: string;
46
- badgeImage: string;
47
- badgeIsFoil: boolean;
48
- badgeLevel: number;
49
- badgeName: string;
50
- badgeScarcity: number;
51
- image: string;
52
- name: string;
53
- };
54
- /** @internal */
55
- export declare const AccountBadgeScarcityDataPoint$outboundSchema: z.ZodType<AccountBadgeScarcityDataPoint$Outbound, z.ZodTypeDef, AccountBadgeScarcityDataPoint>;
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- export declare namespace AccountBadgeScarcityDataPoint$ {
61
- /** @deprecated use `AccountBadgeScarcityDataPoint$inboundSchema` instead. */
62
- const inboundSchema: z.ZodType<AccountBadgeScarcityDataPoint, z.ZodTypeDef, unknown>;
63
- /** @deprecated use `AccountBadgeScarcityDataPoint$outboundSchema` instead. */
64
- const outboundSchema: z.ZodType<AccountBadgeScarcityDataPoint$Outbound, z.ZodTypeDef, AccountBadgeScarcityDataPoint>;
65
- /** @deprecated use `AccountBadgeScarcityDataPoint$Outbound` instead. */
66
- type Outbound = AccountBadgeScarcityDataPoint$Outbound;
67
- }
68
- //# sourceMappingURL=accountbadgescarcitydatapoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountbadgescarcitydatapoint.d.ts","sourceRoot":"","sources":["../../src/models/components/accountbadgescarcitydatapoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAW7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountbadgescarcitydatapoint.js","sourceRoot":"","sources":["../../src/models/components/accountbadgescarcitydatapoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAyCzB,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAeH,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C"}
@@ -1,43 +0,0 @@
1
- import * as z from "zod";
2
- export type AccountPlaytimeDataPoint = {
3
- /**
4
- * The app id
5
- */
6
- appId: number;
7
- /**
8
- * The image of the app
9
- */
10
- image: string;
11
- /**
12
- * The name of the app
13
- */
14
- name: string;
15
- /**
16
- * The playtime of the app
17
- */
18
- playtime: number;
19
- };
20
- /** @internal */
21
- export declare const AccountPlaytimeDataPoint$inboundSchema: z.ZodType<AccountPlaytimeDataPoint, z.ZodTypeDef, unknown>;
22
- /** @internal */
23
- export type AccountPlaytimeDataPoint$Outbound = {
24
- appId: number;
25
- image: string;
26
- name: string;
27
- playtime: number;
28
- };
29
- /** @internal */
30
- export declare const AccountPlaytimeDataPoint$outboundSchema: z.ZodType<AccountPlaytimeDataPoint$Outbound, z.ZodTypeDef, AccountPlaytimeDataPoint>;
31
- /**
32
- * @internal
33
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
34
- */
35
- export declare namespace AccountPlaytimeDataPoint$ {
36
- /** @deprecated use `AccountPlaytimeDataPoint$inboundSchema` instead. */
37
- const inboundSchema: z.ZodType<AccountPlaytimeDataPoint, z.ZodTypeDef, unknown>;
38
- /** @deprecated use `AccountPlaytimeDataPoint$outboundSchema` instead. */
39
- const outboundSchema: z.ZodType<AccountPlaytimeDataPoint$Outbound, z.ZodTypeDef, AccountPlaytimeDataPoint>;
40
- /** @deprecated use `AccountPlaytimeDataPoint$Outbound` instead. */
41
- type Outbound = AccountPlaytimeDataPoint$Outbound;
42
- }
43
- //# sourceMappingURL=accountplaytimedatapoint.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountplaytimedatapoint.d.ts","sourceRoot":"","sources":["../../src/models/components/accountplaytimedatapoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAMxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountplaytimedatapoint.js","sourceRoot":"","sources":["../../src/models/components/accountplaytimedatapoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAqBzB,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC3B,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC"}
@@ -1,125 +0,0 @@
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
- * Queue an account for processing
28
- */
29
- export async function dataAccountV1Queue(
30
- client: SteamSetsCore,
31
- request: components.V1AccountQueueRequestBody,
32
- options?: RequestOptions,
33
- ): Promise<
34
- Result<
35
- operations.AccountV1QueueResponse,
36
- | errors.ErrorModel
37
- | SDKError
38
- | SDKValidationError
39
- | UnexpectedClientError
40
- | InvalidRequestError
41
- | RequestAbortedError
42
- | RequestTimeoutError
43
- | ConnectionError
44
- >
45
- > {
46
- const parsed = safeParse(
47
- request,
48
- (value) => components.V1AccountQueueRequestBody$outboundSchema.parse(value),
49
- "Input validation failed",
50
- );
51
- if (!parsed.ok) {
52
- return parsed;
53
- }
54
- const payload = parsed.value;
55
- const body = encodeJSON("body", payload, { explode: true });
56
-
57
- const path = pathToFunc("/account.v1.AccountService/Queue")();
58
-
59
- const headers = new Headers({
60
- "Content-Type": "application/json",
61
- Accept: "application/problem+json",
62
- });
63
-
64
- const secConfig = await extractSecurity(client._options.token);
65
- const securityInput = secConfig == null ? {} : { token: secConfig };
66
- const context = {
67
- operationID: "account.v1.queue",
68
- oAuth2Scopes: [],
69
- securitySource: client._options.token,
70
- };
71
- const requestSecurity = resolveGlobalSecurity(securityInput);
72
-
73
- const requestRes = client._createRequest(context, {
74
- security: requestSecurity,
75
- method: "POST",
76
- path: path,
77
- headers: headers,
78
- body: body,
79
- uaHeader: "x-speakeasy-user-agent",
80
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
81
- }, options);
82
- if (!requestRes.ok) {
83
- return requestRes;
84
- }
85
- const req = requestRes.value;
86
-
87
- const doResult = await client._do(req, {
88
- context,
89
- errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
90
- retryConfig: options?.retries
91
- || client._options.retryConfig,
92
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
93
- });
94
- if (!doResult.ok) {
95
- return doResult;
96
- }
97
- const response = doResult.value;
98
-
99
- const responseFields = {
100
- HttpMeta: { Response: response, Request: req },
101
- };
102
-
103
- const [result] = await M.match<
104
- operations.AccountV1QueueResponse,
105
- | errors.ErrorModel
106
- | SDKError
107
- | SDKValidationError
108
- | UnexpectedClientError
109
- | InvalidRequestError
110
- | RequestAbortedError
111
- | RequestTimeoutError
112
- | ConnectionError
113
- >(
114
- M.nil(204, operations.AccountV1QueueResponse$inboundSchema, { hdrs: true }),
115
- M.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
116
- ctype: "application/problem+json",
117
- }),
118
- M.fail(["4XX", "5XX"]),
119
- )(response, req, { extraFields: responseFields });
120
- if (!result.ok) {
121
- return result;
122
- }
123
-
124
- return result;
125
- }