@steamsets/client-ts 0.11.12 → 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.
- package/README.md +0 -4
- package/docs/sdks/account/README.md +2 -0
- package/docs/sdks/data/README.md +0 -158
- package/docs/sdks/public/README.md +2 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/v1accountqueuerequestbody.d.ts +5 -0
- package/models/components/v1accountqueuerequestbody.d.ts.map +1 -1
- package/models/components/v1accountqueuerequestbody.js +2 -0
- package/models/components/v1accountqueuerequestbody.js.map +1 -1
- package/package.json +1 -1
- package/sdk/data.d.ts +0 -8
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +0 -14
- package/sdk/data.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/v1accountqueuerequestbody.ts +7 -0
- package/src/sdk/data.ts +0 -30
- package/funcs/dataAccountV1Queue.d.ts +0 -14
- package/funcs/dataAccountV1Queue.d.ts.map +0 -1
- package/funcs/dataAccountV1Queue.js +0 -96
- package/funcs/dataAccountV1Queue.js.map +0 -1
- package/funcs/dataAppV1Queue.d.ts +0 -14
- package/funcs/dataAppV1Queue.d.ts.map +0 -1
- package/funcs/dataAppV1Queue.js +0 -96
- package/funcs/dataAppV1Queue.js.map +0 -1
- package/src/funcs/dataAccountV1Queue.ts +0 -125
- package/src/funcs/dataAppV1Queue.ts +0 -125
package/README.md
CHANGED
|
@@ -128,8 +128,6 @@ run();
|
|
|
128
128
|
* [accountV1GetInfo](docs/sdks/data/README.md#accountv1getinfo) - Get Account Info
|
|
129
129
|
* [accountV1GetLeaderboardHistory](docs/sdks/data/README.md#accountv1getleaderboardhistory) - Get Account Leaderboard History
|
|
130
130
|
* [accountV1GetStaff](docs/sdks/data/README.md#accountv1getstaff) - Get Staff Members and their info
|
|
131
|
-
* [accountV1Queue](docs/sdks/data/README.md#accountv1queue) - Queue an account for processing
|
|
132
|
-
* [appV1Queue](docs/sdks/data/README.md#appv1queue) - Queue a app for processing
|
|
133
131
|
|
|
134
132
|
### [developer](docs/sdks/developer/README.md)
|
|
135
133
|
|
|
@@ -571,8 +569,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
571
569
|
- [`dataAccountV1GetInfo`](docs/sdks/data/README.md#accountv1getinfo) - Get Account Info
|
|
572
570
|
- [`dataAccountV1GetLeaderboardHistory`](docs/sdks/data/README.md#accountv1getleaderboardhistory) - Get Account Leaderboard History
|
|
573
571
|
- [`dataAccountV1GetStaff`](docs/sdks/data/README.md#accountv1getstaff) - Get Staff Members and their info
|
|
574
|
-
- [`dataAccountV1Queue`](docs/sdks/data/README.md#accountv1queue) - Queue an account for processing
|
|
575
|
-
- [`dataAppV1Queue`](docs/sdks/data/README.md#appv1queue) - Queue a app for processing
|
|
576
572
|
- [`developerAccountV1SettingsDeveloperAppCreate`](docs/sdks/developer/README.md#accountv1settingsdeveloperappcreate) - Add a new Developer App to the account
|
|
577
573
|
- [`developerAccountV1SettingsDeveloperAppDelete`](docs/sdks/developer/README.md#accountv1settingsdeveloperappdelete) - Delete a developer app from the account
|
|
578
574
|
- [`developerAccountV1SettingsDeveloperAppUpdate`](docs/sdks/developer/README.md#accountv1settingsdeveloperappupdate) - Update the developer app/re-generate the api key
|
|
@@ -1270,6 +1270,7 @@ async function run() {
|
|
|
1270
1270
|
const result = await steamSets.account.accountV1Queue({
|
|
1271
1271
|
force: true,
|
|
1272
1272
|
id: {},
|
|
1273
|
+
steamId: "76561198842603734",
|
|
1273
1274
|
});
|
|
1274
1275
|
|
|
1275
1276
|
// Handle the result
|
|
@@ -1297,6 +1298,7 @@ async function run() {
|
|
|
1297
1298
|
const res = await accountAccountV1Queue(steamSets, {
|
|
1298
1299
|
force: true,
|
|
1299
1300
|
id: {},
|
|
1301
|
+
steamId: "76561198842603734",
|
|
1300
1302
|
});
|
|
1301
1303
|
|
|
1302
1304
|
if (!res.ok) {
|
package/docs/sdks/data/README.md
CHANGED
|
@@ -14,8 +14,6 @@ This is actual data seen by others then yourself
|
|
|
14
14
|
* [accountV1GetInfo](#accountv1getinfo) - Get Account Info
|
|
15
15
|
* [accountV1GetLeaderboardHistory](#accountv1getleaderboardhistory) - Get Account Leaderboard History
|
|
16
16
|
* [accountV1GetStaff](#accountv1getstaff) - Get Staff Members and their info
|
|
17
|
-
* [accountV1Queue](#accountv1queue) - Queue an account for processing
|
|
18
|
-
* [appV1Queue](#appv1queue) - Queue a app for processing
|
|
19
17
|
|
|
20
18
|
## accountV1GetApps
|
|
21
19
|
|
|
@@ -525,160 +523,4 @@ run();
|
|
|
525
523
|
| Error Type | Status Code | Content Type |
|
|
526
524
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
527
525
|
| errors.ErrorModel | 404, 429, 500 | application/problem+json |
|
|
528
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
529
|
-
|
|
530
|
-
## accountV1Queue
|
|
531
|
-
|
|
532
|
-
Queue an account for processing
|
|
533
|
-
|
|
534
|
-
### Example Usage
|
|
535
|
-
|
|
536
|
-
```typescript
|
|
537
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
538
|
-
|
|
539
|
-
const steamSets = new SteamSets({
|
|
540
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
async function run() {
|
|
544
|
-
const result = await steamSets.data.accountV1Queue({
|
|
545
|
-
force: true,
|
|
546
|
-
id: {},
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
// Handle the result
|
|
550
|
-
console.log(result);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
run();
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
### Standalone function
|
|
557
|
-
|
|
558
|
-
The standalone function version of this method:
|
|
559
|
-
|
|
560
|
-
```typescript
|
|
561
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
562
|
-
import { dataAccountV1Queue } from "@steamsets/client-ts/funcs/dataAccountV1Queue.js";
|
|
563
|
-
|
|
564
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
565
|
-
// You can create one instance of it to use across an application.
|
|
566
|
-
const steamSets = new SteamSetsCore({
|
|
567
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
async function run() {
|
|
571
|
-
const res = await dataAccountV1Queue(steamSets, {
|
|
572
|
-
force: true,
|
|
573
|
-
id: {},
|
|
574
|
-
});
|
|
575
|
-
|
|
576
|
-
if (!res.ok) {
|
|
577
|
-
throw res.error;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
const { value: result } = res;
|
|
581
|
-
|
|
582
|
-
// Handle the result
|
|
583
|
-
console.log(result);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
run();
|
|
587
|
-
```
|
|
588
|
-
|
|
589
|
-
### Parameters
|
|
590
|
-
|
|
591
|
-
| Parameter | Type | Required | Description |
|
|
592
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
593
|
-
| `request` | [components.V1AccountQueueRequestBody](../../models/components/v1accountqueuerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
594
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
595
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
596
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
597
|
-
|
|
598
|
-
### Response
|
|
599
|
-
|
|
600
|
-
**Promise\<[operations.AccountV1QueueResponse](../../models/operations/accountv1queueresponse.md)\>**
|
|
601
|
-
|
|
602
|
-
### Errors
|
|
603
|
-
|
|
604
|
-
| Error Type | Status Code | Content Type |
|
|
605
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
606
|
-
| errors.ErrorModel | 400, 422, 429, 500 | application/problem+json |
|
|
607
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
608
|
-
|
|
609
|
-
## appV1Queue
|
|
610
|
-
|
|
611
|
-
Queue a app for processing
|
|
612
|
-
|
|
613
|
-
### Example Usage
|
|
614
|
-
|
|
615
|
-
```typescript
|
|
616
|
-
import { SteamSets } from "@steamsets/client-ts";
|
|
617
|
-
|
|
618
|
-
const steamSets = new SteamSets({
|
|
619
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
async function run() {
|
|
623
|
-
const result = await steamSets.data.appV1Queue({
|
|
624
|
-
id: 730,
|
|
625
|
-
});
|
|
626
|
-
|
|
627
|
-
// Handle the result
|
|
628
|
-
console.log(result);
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
run();
|
|
632
|
-
```
|
|
633
|
-
|
|
634
|
-
### Standalone function
|
|
635
|
-
|
|
636
|
-
The standalone function version of this method:
|
|
637
|
-
|
|
638
|
-
```typescript
|
|
639
|
-
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
640
|
-
import { dataAppV1Queue } from "@steamsets/client-ts/funcs/dataAppV1Queue.js";
|
|
641
|
-
|
|
642
|
-
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
643
|
-
// You can create one instance of it to use across an application.
|
|
644
|
-
const steamSets = new SteamSetsCore({
|
|
645
|
-
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
646
|
-
});
|
|
647
|
-
|
|
648
|
-
async function run() {
|
|
649
|
-
const res = await dataAppV1Queue(steamSets, {
|
|
650
|
-
id: 730,
|
|
651
|
-
});
|
|
652
|
-
|
|
653
|
-
if (!res.ok) {
|
|
654
|
-
throw res.error;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
const { value: result } = res;
|
|
658
|
-
|
|
659
|
-
// Handle the result
|
|
660
|
-
console.log(result);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
run();
|
|
664
|
-
```
|
|
665
|
-
|
|
666
|
-
### Parameters
|
|
667
|
-
|
|
668
|
-
| Parameter | Type | Required | Description |
|
|
669
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
670
|
-
| `request` | [components.AppSearch](../../models/components/appsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
671
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
672
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
673
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
674
|
-
|
|
675
|
-
### Response
|
|
676
|
-
|
|
677
|
-
**Promise\<[operations.AppV1QueueResponse](../../models/operations/appv1queueresponse.md)\>**
|
|
678
|
-
|
|
679
|
-
### Errors
|
|
680
|
-
|
|
681
|
-
| Error Type | Status Code | Content Type |
|
|
682
|
-
| ------------------------ | ------------------------ | ------------------------ |
|
|
683
|
-
| errors.ErrorModel | 400, 422, 429, 500 | application/problem+json |
|
|
684
526
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -471,6 +471,7 @@ async function run() {
|
|
|
471
471
|
const result = await steamSets.public.accountV1Queue({
|
|
472
472
|
force: true,
|
|
473
473
|
id: {},
|
|
474
|
+
steamId: "76561198842603734",
|
|
474
475
|
});
|
|
475
476
|
|
|
476
477
|
// Handle the result
|
|
@@ -498,6 +499,7 @@ async function run() {
|
|
|
498
499
|
const res = await publicAccountV1Queue(steamSets, {
|
|
499
500
|
force: true,
|
|
500
501
|
id: {},
|
|
502
|
+
steamId: "76561198842603734",
|
|
501
503
|
});
|
|
502
504
|
|
|
503
505
|
if (!res.ok) {
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.0";
|
|
30
|
-
readonly sdkVersion: "0.11.
|
|
30
|
+
readonly sdkVersion: "0.11.13";
|
|
31
31
|
readonly genVersion: "2.438.3";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.11.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.11.13 2.438.3 1.0.0 @steamsets/client-ts";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ function serverURLFromOptions(options) {
|
|
|
30
30
|
exports.SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "1.0.0",
|
|
33
|
-
sdkVersion: "0.11.
|
|
33
|
+
sdkVersion: "0.11.13",
|
|
34
34
|
genVersion: "2.438.3",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.11.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.11.13 2.438.3 1.0.0 @steamsets/client-ts",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -7,6 +7,10 @@ export type V1AccountQueueRequestBody = {
|
|
|
7
7
|
*/
|
|
8
8
|
force: boolean;
|
|
9
9
|
id?: IDStruct | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The steam id of the account if it doesn't exist in the database
|
|
12
|
+
*/
|
|
13
|
+
steamId?: string | null | undefined;
|
|
10
14
|
vanity?: VanityStruct | undefined;
|
|
11
15
|
};
|
|
12
16
|
/** @internal */
|
|
@@ -15,6 +19,7 @@ export declare const V1AccountQueueRequestBody$inboundSchema: z.ZodType<V1Accoun
|
|
|
15
19
|
export type V1AccountQueueRequestBody$Outbound = {
|
|
16
20
|
force: boolean;
|
|
17
21
|
id?: IDStruct$Outbound | undefined;
|
|
22
|
+
steamId?: string | null | undefined;
|
|
18
23
|
vanity?: VanityStruct$Outbound | undefined;
|
|
19
24
|
};
|
|
20
25
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1accountqueuerequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountqueuerequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"v1accountqueuerequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountqueuerequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAMzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D"}
|
|
@@ -34,12 +34,14 @@ const vanitystruct_js_1 = require("./vanitystruct.js");
|
|
|
34
34
|
exports.V1AccountQueueRequestBody$inboundSchema = z.object({
|
|
35
35
|
force: z.boolean(),
|
|
36
36
|
id: idstruct_js_1.IDStruct$inboundSchema.optional(),
|
|
37
|
+
steamId: z.nullable(z.string()).optional(),
|
|
37
38
|
vanity: vanitystruct_js_1.VanityStruct$inboundSchema.optional(),
|
|
38
39
|
});
|
|
39
40
|
/** @internal */
|
|
40
41
|
exports.V1AccountQueueRequestBody$outboundSchema = z.object({
|
|
41
42
|
force: z.boolean(),
|
|
42
43
|
id: idstruct_js_1.IDStruct$outboundSchema.optional(),
|
|
44
|
+
steamId: z.nullable(z.string()).optional(),
|
|
43
45
|
vanity: vanitystruct_js_1.VanityStruct$outboundSchema.optional(),
|
|
44
46
|
});
|
|
45
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1accountqueuerequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1accountqueuerequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,+CAKuB;AACvB,uDAK2B;
|
|
1
|
+
{"version":3,"file":"v1accountqueuerequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1accountqueuerequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,+CAKuB;AACvB,uDAK2B;AAe3B,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,EAAE,EAAE,oCAAsB,CAAC,QAAQ,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,4CAA0B,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,EAAE,EAAE,qCAAuB,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,6CAA2B,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
|
package/package.json
CHANGED
package/sdk/data.d.ts
CHANGED
|
@@ -30,13 +30,5 @@ export declare class Data extends ClientSDK {
|
|
|
30
30
|
* Get Staff Members and their info
|
|
31
31
|
*/
|
|
32
32
|
accountV1GetStaff(options?: RequestOptions): Promise<operations.AccountV1GetStaffResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Queue an account for processing
|
|
35
|
-
*/
|
|
36
|
-
accountV1Queue(request: components.V1AccountQueueRequestBody, options?: RequestOptions): Promise<operations.AccountV1QueueResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Queue a app for processing
|
|
39
|
-
*/
|
|
40
|
-
appV1Queue(request: components.AppSearch, options?: RequestOptions): Promise<operations.AppV1QueueResponse>;
|
|
41
33
|
}
|
|
42
34
|
//# sourceMappingURL=data.d.ts.map
|
package/sdk/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/sdk/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/sdk/data.ts"],"names":[],"mappings":"AAWA,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,IAAK,SAAQ,SAAS;IACjC;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;OAEG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;OAEG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;OAEG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAQlD;;OAEG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;OAEG;IACG,8BAA8B,CAClC,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAQ7D;;OAEG;IACG,iBAAiB,CACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAMjD"}
|
package/sdk/data.js
CHANGED
|
@@ -11,8 +11,6 @@ const dataAccountV1GetFriends_js_1 = require("../funcs/dataAccountV1GetFriends.j
|
|
|
11
11
|
const dataAccountV1GetInfo_js_1 = require("../funcs/dataAccountV1GetInfo.js");
|
|
12
12
|
const dataAccountV1GetLeaderboardHistory_js_1 = require("../funcs/dataAccountV1GetLeaderboardHistory.js");
|
|
13
13
|
const dataAccountV1GetStaff_js_1 = require("../funcs/dataAccountV1GetStaff.js");
|
|
14
|
-
const dataAccountV1Queue_js_1 = require("../funcs/dataAccountV1Queue.js");
|
|
15
|
-
const dataAppV1Queue_js_1 = require("../funcs/dataAppV1Queue.js");
|
|
16
14
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
17
15
|
const fp_js_1 = require("../types/fp.js");
|
|
18
16
|
class Data extends sdks_js_1.ClientSDK {
|
|
@@ -58,18 +56,6 @@ class Data extends sdks_js_1.ClientSDK {
|
|
|
58
56
|
async accountV1GetStaff(options) {
|
|
59
57
|
return (0, fp_js_1.unwrapAsync)((0, dataAccountV1GetStaff_js_1.dataAccountV1GetStaff)(this, options));
|
|
60
58
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Queue an account for processing
|
|
63
|
-
*/
|
|
64
|
-
async accountV1Queue(request, options) {
|
|
65
|
-
return (0, fp_js_1.unwrapAsync)((0, dataAccountV1Queue_js_1.dataAccountV1Queue)(this, request, options));
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Queue a app for processing
|
|
69
|
-
*/
|
|
70
|
-
async appV1Queue(request, options) {
|
|
71
|
-
return (0, fp_js_1.unwrapAsync)((0, dataAppV1Queue_js_1.dataAppV1Queue)(this, request, options));
|
|
72
|
-
}
|
|
73
59
|
}
|
|
74
60
|
exports.Data = Data;
|
|
75
61
|
//# sourceMappingURL=data.js.map
|
package/sdk/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../src/sdk/data.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,kFAA4E;AAC5E,0FAAoF;AACpF,oFAA8E;AAC9E,8EAAwE;AACxE,0GAAoG;AACpG,gFAA0E;AAC1E,
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../src/sdk/data.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,kFAA4E;AAC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O,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhGD,oBAgGC"}
|
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.13",
|
|
59
59
|
genVersion: "2.438.3",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.11.
|
|
61
|
+
"speakeasy-sdk/typescript 0.11.13 2.438.3 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -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,gDAgGC;AAvHD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,kBAAkB,CACtC,MAAqB,EACrB,OAA6C,EAC7C,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,wCAAwC,CAAC,KAAK,CAAC,KAAK,CAAC,EAC3E,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,kCAAkC,CAAC,EAAE,CAAC;IAE9D,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;QAC1B,cAAc,EAAE,kBAAkB;QAClC,MAAM,EAAE,0BAA0B;KACnC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAe,EAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/D,MAAM,aAAa,GAAG,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,E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;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,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"}
|
package/funcs/dataAppV1Queue.js
DELETED
|
@@ -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;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AAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -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
|
-
}
|
|
@@ -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 a app for processing
|
|
28
|
-
*/
|
|
29
|
-
export async function dataAppV1Queue(
|
|
30
|
-
client: SteamSetsCore,
|
|
31
|
-
request: components.AppSearch,
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): Promise<
|
|
34
|
-
Result<
|
|
35
|
-
operations.AppV1QueueResponse,
|
|
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.AppSearch$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("/app.v1.AppService/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: "app.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.AppV1QueueResponse,
|
|
105
|
-
| errors.ErrorModel
|
|
106
|
-
| SDKError
|
|
107
|
-
| SDKValidationError
|
|
108
|
-
| UnexpectedClientError
|
|
109
|
-
| InvalidRequestError
|
|
110
|
-
| RequestAbortedError
|
|
111
|
-
| RequestTimeoutError
|
|
112
|
-
| ConnectionError
|
|
113
|
-
>(
|
|
114
|
-
M.nil(204, operations.AppV1QueueResponse$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
|
-
}
|