@steamsets/client-ts 0.16.0 → 0.17.1
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 +6 -0
- package/docs/sdks/account/README.md +73 -0
- package/docs/sdks/data/README.md +73 -0
- package/docs/sdks/internal/README.md +73 -0
- package/funcs/accountAccountV1GetMeta.d.ts +11 -0
- package/funcs/accountAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/accountAccountV1GetMeta.js +113 -0
- package/funcs/accountAccountV1GetMeta.js.map +1 -0
- package/funcs/dataAccountV1GetMeta.d.ts +11 -0
- package/funcs/dataAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/dataAccountV1GetMeta.js +113 -0
- package/funcs/dataAccountV1GetMeta.js.map +1 -0
- package/funcs/internalAccountV1GetMeta.d.ts +11 -0
- package/funcs/internalAccountV1GetMeta.d.ts.map +1 -0
- package/funcs/internalAccountV1GetMeta.js +113 -0
- package/funcs/internalAccountV1GetMeta.js.map +1 -0
- package/funcs/sessionCreate.d.ts.map +1 -1
- package/funcs/sessionCreate.js +1 -0
- package/funcs/sessionCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountmetaresponsebody.d.ts +36 -0
- package/models/components/v1accountmetaresponsebody.d.ts.map +1 -0
- package/models/components/v1accountmetaresponsebody.js +74 -0
- package/models/components/v1accountmetaresponsebody.js.map +1 -0
- package/models/components/v1createsessionbody.d.ts +0 -15
- package/models/components/v1createsessionbody.d.ts.map +1 -1
- package/models/components/v1createsessionbody.js +0 -6
- package/models/components/v1createsessionbody.js.map +1 -1
- package/models/operations/accountv1getmeta.d.ts +35 -0
- package/models/operations/accountv1getmeta.d.ts.map +1 -0
- package/models/operations/accountv1getmeta.js +75 -0
- package/models/operations/accountv1getmeta.js.map +1 -0
- package/models/operations/accountv1sessioncreate.d.ts +6 -0
- package/models/operations/accountv1sessioncreate.d.ts.map +1 -1
- package/models/operations/accountv1sessioncreate.js +4 -0
- package/models/operations/accountv1sessioncreate.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +1 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +4 -0
- package/sdk/account.js.map +1 -1
- package/sdk/data.d.ts +1 -0
- package/sdk/data.d.ts.map +1 -1
- package/sdk/data.js +4 -0
- package/sdk/data.js.map +1 -1
- package/sdk/internal.d.ts +1 -0
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +4 -0
- package/sdk/internal.js.map +1 -1
- package/src/funcs/accountAccountV1GetMeta.ts +149 -0
- package/src/funcs/dataAccountV1GetMeta.ts +149 -0
- package/src/funcs/internalAccountV1GetMeta.ts +149 -0
- package/src/funcs/sessionCreate.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/v1accountmetaresponsebody.ts +88 -0
- package/src/models/components/v1createsessionbody.ts +0 -21
- package/src/models/operations/accountv1getmeta.ts +89 -0
- package/src/models/operations/accountv1sessioncreate.ts +6 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/account.ts +12 -0
- package/src/sdk/data.ts +12 -0
- package/src/sdk/internal.ts +12 -0
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ run();
|
|
|
85
85
|
* [getFriends](docs/sdks/account/README.md#getfriends)
|
|
86
86
|
* [getInfo](docs/sdks/account/README.md#getinfo)
|
|
87
87
|
* [getLeaderboardHistory](docs/sdks/account/README.md#getleaderboardhistory)
|
|
88
|
+
* [accountV1GetMeta](docs/sdks/account/README.md#accountv1getmeta)
|
|
88
89
|
* [getStaff](docs/sdks/account/README.md#getstaff)
|
|
89
90
|
* [uploadImages](docs/sdks/account/README.md#uploadimages)
|
|
90
91
|
* [getAccount](docs/sdks/account/README.md#getaccount)
|
|
@@ -130,6 +131,7 @@ run();
|
|
|
130
131
|
* [getFriends](docs/sdks/data/README.md#getfriends)
|
|
131
132
|
* [getInfo](docs/sdks/data/README.md#getinfo)
|
|
132
133
|
* [getLeaderboardHistory](docs/sdks/data/README.md#getleaderboardhistory)
|
|
134
|
+
* [accountV1GetMeta](docs/sdks/data/README.md#accountv1getmeta)
|
|
133
135
|
|
|
134
136
|
### [developer](docs/sdks/developer/README.md)
|
|
135
137
|
|
|
@@ -165,6 +167,7 @@ run();
|
|
|
165
167
|
* [deleteDeveloperApp](docs/sdks/internal/README.md#deletedeveloperapp)
|
|
166
168
|
* [deleteImages](docs/sdks/internal/README.md#deleteimages)
|
|
167
169
|
* [updateApp](docs/sdks/internal/README.md#updateapp)
|
|
170
|
+
* [accountV1GetMeta](docs/sdks/internal/README.md#accountv1getmeta)
|
|
168
171
|
* [getStaff](docs/sdks/internal/README.md#getstaff)
|
|
169
172
|
* [uploadImages](docs/sdks/internal/README.md#uploadimages)
|
|
170
173
|
* [getAccount](docs/sdks/internal/README.md#getaccount)
|
|
@@ -567,6 +570,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
567
570
|
|
|
568
571
|
<summary>Available standalone functions</summary>
|
|
569
572
|
|
|
573
|
+
- [`accountAccountV1GetMeta`](docs/sdks/account/README.md#accountv1getmeta)
|
|
570
574
|
- [`accountCreateDeveloperApp`](docs/sdks/account/README.md#createdeveloperapp)
|
|
571
575
|
- [`accountDeleteDeveloperApp`](docs/sdks/account/README.md#deletedeveloperapp)
|
|
572
576
|
- [`accountDeleteImages`](docs/sdks/account/README.md#deleteimages)
|
|
@@ -595,6 +599,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
595
599
|
- [`connectionsConnect`](docs/sdks/connections/README.md#connect)
|
|
596
600
|
- [`connectionUpdate`](docs/sdks/connection/README.md#update)
|
|
597
601
|
- [`connectionVerify`](docs/sdks/connection/README.md#verify)
|
|
602
|
+
- [`dataAccountV1GetMeta`](docs/sdks/data/README.md#accountv1getmeta)
|
|
598
603
|
- [`dataGetApps`](docs/sdks/data/README.md#getapps)
|
|
599
604
|
- [`dataGetBadges`](docs/sdks/data/README.md#getbadges)
|
|
600
605
|
- [`dataGetDataPoints`](docs/sdks/data/README.md#getdatapoints)
|
|
@@ -617,6 +622,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
617
622
|
- [`imagesGet`](docs/sdks/images/README.md#get)
|
|
618
623
|
- [`imagesUpdate`](docs/sdks/images/README.md#update)
|
|
619
624
|
- [`imagesUploadImages`](docs/sdks/images/README.md#uploadimages)
|
|
625
|
+
- [`internalAccountV1GetMeta`](docs/sdks/internal/README.md#accountv1getmeta)
|
|
620
626
|
- [`internalCheck`](docs/sdks/internal/README.md#check) - Liveness check
|
|
621
627
|
- [`internalCreateDeveloperApp`](docs/sdks/internal/README.md#createdeveloperapp)
|
|
622
628
|
- [`internalDeleteDeveloperApp`](docs/sdks/internal/README.md#deletedeveloperapp)
|
|
@@ -17,6 +17,7 @@ All Requests related to account(s) are grouped here.
|
|
|
17
17
|
* [getFriends](#getfriends)
|
|
18
18
|
* [getInfo](#getinfo)
|
|
19
19
|
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
20
|
+
* [accountV1GetMeta](#accountv1getmeta)
|
|
20
21
|
* [getStaff](#getstaff)
|
|
21
22
|
* [uploadImages](#uploadimages)
|
|
22
23
|
* [getAccount](#getaccount)
|
|
@@ -775,6 +776,78 @@ run();
|
|
|
775
776
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
776
777
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
777
778
|
|
|
779
|
+
## accountV1GetMeta
|
|
780
|
+
|
|
781
|
+
### Example Usage
|
|
782
|
+
|
|
783
|
+
```typescript
|
|
784
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
785
|
+
|
|
786
|
+
const steamSets = new SteamSets({
|
|
787
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
async function run() {
|
|
791
|
+
const result = await steamSets.account.accountV1GetMeta({});
|
|
792
|
+
|
|
793
|
+
// Handle the result
|
|
794
|
+
console.log(result);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
run();
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
### Standalone function
|
|
801
|
+
|
|
802
|
+
The standalone function version of this method:
|
|
803
|
+
|
|
804
|
+
```typescript
|
|
805
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
806
|
+
import { accountAccountV1GetMeta } from "@steamsets/client-ts/funcs/accountAccountV1GetMeta.js";
|
|
807
|
+
|
|
808
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
809
|
+
// You can create one instance of it to use across an application.
|
|
810
|
+
const steamSets = new SteamSetsCore({
|
|
811
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
812
|
+
});
|
|
813
|
+
|
|
814
|
+
async function run() {
|
|
815
|
+
const res = await accountAccountV1GetMeta(steamSets, {});
|
|
816
|
+
|
|
817
|
+
if (!res.ok) {
|
|
818
|
+
throw res.error;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
const { value: result } = res;
|
|
822
|
+
|
|
823
|
+
// Handle the result
|
|
824
|
+
console.log(result);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
run();
|
|
828
|
+
```
|
|
829
|
+
|
|
830
|
+
### Parameters
|
|
831
|
+
|
|
832
|
+
| Parameter | Type | Required | Description |
|
|
833
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
834
|
+
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
835
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
836
|
+
| `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. |
|
|
837
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
838
|
+
|
|
839
|
+
### Response
|
|
840
|
+
|
|
841
|
+
**Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
|
|
842
|
+
|
|
843
|
+
### Errors
|
|
844
|
+
|
|
845
|
+
| Error Type | Status Code | Content Type |
|
|
846
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
847
|
+
| errors.ErrorModel | 404, 422 | application/problem+json |
|
|
848
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
849
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
850
|
+
|
|
778
851
|
## getStaff
|
|
779
852
|
|
|
780
853
|
### Example Usage
|
package/docs/sdks/data/README.md
CHANGED
|
@@ -13,6 +13,7 @@ Data of a Steam Account that can be used to display the profile.
|
|
|
13
13
|
* [getFriends](#getfriends)
|
|
14
14
|
* [getInfo](#getinfo)
|
|
15
15
|
* [getLeaderboardHistory](#getleaderboardhistory)
|
|
16
|
+
* [accountV1GetMeta](#accountv1getmeta)
|
|
16
17
|
|
|
17
18
|
## getApps
|
|
18
19
|
|
|
@@ -444,4 +445,76 @@ run();
|
|
|
444
445
|
| ------------------------ | ------------------------ | ------------------------ |
|
|
445
446
|
| errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
|
|
446
447
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
448
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
449
|
+
|
|
450
|
+
## accountV1GetMeta
|
|
451
|
+
|
|
452
|
+
### Example Usage
|
|
453
|
+
|
|
454
|
+
```typescript
|
|
455
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
456
|
+
|
|
457
|
+
const steamSets = new SteamSets({
|
|
458
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
async function run() {
|
|
462
|
+
const result = await steamSets.data.accountV1GetMeta({});
|
|
463
|
+
|
|
464
|
+
// Handle the result
|
|
465
|
+
console.log(result);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
run();
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
### Standalone function
|
|
472
|
+
|
|
473
|
+
The standalone function version of this method:
|
|
474
|
+
|
|
475
|
+
```typescript
|
|
476
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
477
|
+
import { dataAccountV1GetMeta } from "@steamsets/client-ts/funcs/dataAccountV1GetMeta.js";
|
|
478
|
+
|
|
479
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
480
|
+
// You can create one instance of it to use across an application.
|
|
481
|
+
const steamSets = new SteamSetsCore({
|
|
482
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
async function run() {
|
|
486
|
+
const res = await dataAccountV1GetMeta(steamSets, {});
|
|
487
|
+
|
|
488
|
+
if (!res.ok) {
|
|
489
|
+
throw res.error;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
const { value: result } = res;
|
|
493
|
+
|
|
494
|
+
// Handle the result
|
|
495
|
+
console.log(result);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
run();
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
### Parameters
|
|
502
|
+
|
|
503
|
+
| Parameter | Type | Required | Description |
|
|
504
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
505
|
+
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
506
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
507
|
+
| `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. |
|
|
508
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
509
|
+
|
|
510
|
+
### Response
|
|
511
|
+
|
|
512
|
+
**Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
|
|
513
|
+
|
|
514
|
+
### Errors
|
|
515
|
+
|
|
516
|
+
| Error Type | Status Code | Content Type |
|
|
517
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
518
|
+
| errors.ErrorModel | 404, 422 | application/problem+json |
|
|
519
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
447
520
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -11,6 +11,7 @@ There requests are just document for documentations sake, they are not meant to
|
|
|
11
11
|
* [deleteDeveloperApp](#deletedeveloperapp)
|
|
12
12
|
* [deleteImages](#deleteimages)
|
|
13
13
|
* [updateApp](#updateapp)
|
|
14
|
+
* [accountV1GetMeta](#accountv1getmeta)
|
|
14
15
|
* [getStaff](#getstaff)
|
|
15
16
|
* [uploadImages](#uploadimages)
|
|
16
17
|
* [getAccount](#getaccount)
|
|
@@ -339,6 +340,78 @@ run();
|
|
|
339
340
|
| errors.ErrorModel | 500 | application/problem+json |
|
|
340
341
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
341
342
|
|
|
343
|
+
## accountV1GetMeta
|
|
344
|
+
|
|
345
|
+
### Example Usage
|
|
346
|
+
|
|
347
|
+
```typescript
|
|
348
|
+
import { SteamSets } from "@steamsets/client-ts";
|
|
349
|
+
|
|
350
|
+
const steamSets = new SteamSets({
|
|
351
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
async function run() {
|
|
355
|
+
const result = await steamSets.internal.accountV1GetMeta({});
|
|
356
|
+
|
|
357
|
+
// Handle the result
|
|
358
|
+
console.log(result);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
run();
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
### Standalone function
|
|
365
|
+
|
|
366
|
+
The standalone function version of this method:
|
|
367
|
+
|
|
368
|
+
```typescript
|
|
369
|
+
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
|
|
370
|
+
import { internalAccountV1GetMeta } from "@steamsets/client-ts/funcs/internalAccountV1GetMeta.js";
|
|
371
|
+
|
|
372
|
+
// Use `SteamSetsCore` for best tree-shaking performance.
|
|
373
|
+
// You can create one instance of it to use across an application.
|
|
374
|
+
const steamSets = new SteamSetsCore({
|
|
375
|
+
token: "<YOUR_BEARER_TOKEN_HERE>",
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
async function run() {
|
|
379
|
+
const res = await internalAccountV1GetMeta(steamSets, {});
|
|
380
|
+
|
|
381
|
+
if (!res.ok) {
|
|
382
|
+
throw res.error;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const { value: result } = res;
|
|
386
|
+
|
|
387
|
+
// Handle the result
|
|
388
|
+
console.log(result);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
run();
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### Parameters
|
|
395
|
+
|
|
396
|
+
| Parameter | Type | Required | Description |
|
|
397
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
398
|
+
| `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
399
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
400
|
+
| `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. |
|
|
401
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
402
|
+
|
|
403
|
+
### Response
|
|
404
|
+
|
|
405
|
+
**Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
|
|
406
|
+
|
|
407
|
+
### Errors
|
|
408
|
+
|
|
409
|
+
| Error Type | Status Code | Content Type |
|
|
410
|
+
| ------------------------ | ------------------------ | ------------------------ |
|
|
411
|
+
| errors.ErrorModel | 404, 422 | application/problem+json |
|
|
412
|
+
| errors.ErrorModel | 500 | application/problem+json |
|
|
413
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
414
|
+
|
|
342
415
|
## getStaff
|
|
343
416
|
|
|
344
417
|
### Example Usage
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export declare function accountAccountV1GetMeta(client: SteamSetsCore, request: components.AccountSearch, options?: RequestOptions): Promise<Result<operations.AccountV1GetMetaResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
+
//# sourceMappingURL=accountAccountV1GetMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountAccountV1GetMeta.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1GetMeta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.accountAccountV1GetMeta = accountAccountV1GetMeta;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
|
+
async function accountAccountV1GetMeta(client, request, options) {
|
|
40
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.AccountSearch$outboundSchema.parse(value), "Input validation failed");
|
|
41
|
+
if (!parsed.ok) {
|
|
42
|
+
return parsed;
|
|
43
|
+
}
|
|
44
|
+
const payload = parsed.value;
|
|
45
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
46
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetMeta")();
|
|
47
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
Accept: "application/json",
|
|
50
|
+
}));
|
|
51
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
52
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
53
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
54
|
+
const context = {
|
|
55
|
+
operationID: "account.v1.getMeta",
|
|
56
|
+
oAuth2Scopes: [],
|
|
57
|
+
resolvedSecurity: requestSecurity,
|
|
58
|
+
securitySource: client._options.token,
|
|
59
|
+
retryConfig: options?.retries
|
|
60
|
+
|| client._options.retryConfig
|
|
61
|
+
|| {
|
|
62
|
+
strategy: "backoff",
|
|
63
|
+
backoff: {
|
|
64
|
+
initialInterval: 500,
|
|
65
|
+
maxInterval: 5000,
|
|
66
|
+
exponent: 1.5,
|
|
67
|
+
maxElapsedTime: 60000,
|
|
68
|
+
},
|
|
69
|
+
retryConnectionErrors: true,
|
|
70
|
+
}
|
|
71
|
+
|| { strategy: "none" },
|
|
72
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
73
|
+
};
|
|
74
|
+
const requestRes = client._createRequest(context, {
|
|
75
|
+
security: requestSecurity,
|
|
76
|
+
method: "POST",
|
|
77
|
+
baseURL: options?.serverURL,
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return doResult;
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
const responseFields = {
|
|
99
|
+
HttpMeta: { Response: response, Request: req },
|
|
100
|
+
};
|
|
101
|
+
const [result] = await M.match(M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
|
|
102
|
+
key: "V1AccountMetaResponseBody",
|
|
103
|
+
}), M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
104
|
+
ctype: "application/problem+json",
|
|
105
|
+
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
106
|
+
ctype: "application/problem+json",
|
|
107
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
108
|
+
if (!result.ok) {
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
return result;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=accountAccountV1GetMeta.js.map
|
|
@@ -0,0 +1 @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K,EAAE,KAAK,CAAC;QAC/C,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;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,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,sCAAsC,EAAE;QAC7D,GAAG,EAAE,2BAA2B;KACjC,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QACrD,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC9C,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export declare function dataAccountV1GetMeta(client: SteamSetsCore, request: components.AccountSearch, options?: RequestOptions): Promise<Result<operations.AccountV1GetMetaResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
+
//# sourceMappingURL=dataAccountV1GetMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataAccountV1GetMeta.d.ts","sourceRoot":"","sources":["../src/funcs/dataAccountV1GetMeta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.dataAccountV1GetMeta = dataAccountV1GetMeta;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
|
+
async function dataAccountV1GetMeta(client, request, options) {
|
|
40
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.AccountSearch$outboundSchema.parse(value), "Input validation failed");
|
|
41
|
+
if (!parsed.ok) {
|
|
42
|
+
return parsed;
|
|
43
|
+
}
|
|
44
|
+
const payload = parsed.value;
|
|
45
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
46
|
+
const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetMeta")();
|
|
47
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
Accept: "application/json",
|
|
50
|
+
}));
|
|
51
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
52
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
53
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
54
|
+
const context = {
|
|
55
|
+
operationID: "account.v1.getMeta",
|
|
56
|
+
oAuth2Scopes: [],
|
|
57
|
+
resolvedSecurity: requestSecurity,
|
|
58
|
+
securitySource: client._options.token,
|
|
59
|
+
retryConfig: options?.retries
|
|
60
|
+
|| client._options.retryConfig
|
|
61
|
+
|| {
|
|
62
|
+
strategy: "backoff",
|
|
63
|
+
backoff: {
|
|
64
|
+
initialInterval: 500,
|
|
65
|
+
maxInterval: 5000,
|
|
66
|
+
exponent: 1.5,
|
|
67
|
+
maxElapsedTime: 60000,
|
|
68
|
+
},
|
|
69
|
+
retryConnectionErrors: true,
|
|
70
|
+
}
|
|
71
|
+
|| { strategy: "none" },
|
|
72
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
73
|
+
};
|
|
74
|
+
const requestRes = client._createRequest(context, {
|
|
75
|
+
security: requestSecurity,
|
|
76
|
+
method: "POST",
|
|
77
|
+
baseURL: options?.serverURL,
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
body: body,
|
|
81
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
82
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["404", "422", "4XX", "500", "5XX"],
|
|
91
|
+
retryConfig: context.retryConfig,
|
|
92
|
+
retryCodes: context.retryCodes,
|
|
93
|
+
});
|
|
94
|
+
if (!doResult.ok) {
|
|
95
|
+
return doResult;
|
|
96
|
+
}
|
|
97
|
+
const response = doResult.value;
|
|
98
|
+
const responseFields = {
|
|
99
|
+
HttpMeta: { Response: response, Request: req },
|
|
100
|
+
};
|
|
101
|
+
const [result] = await M.match(M.json(200, operations.AccountV1GetMetaResponse$inboundSchema, {
|
|
102
|
+
key: "V1AccountMetaResponseBody",
|
|
103
|
+
}), M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
|
|
104
|
+
ctype: "application/problem+json",
|
|
105
|
+
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
106
|
+
ctype: "application/problem+json",
|
|
107
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
108
|
+
if (!result.ok) {
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
return result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|
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
|
+
export declare function internalAccountV1GetMeta(client: SteamSetsCore, request: components.AccountSearch, options?: RequestOptions): Promise<Result<operations.AccountV1GetMetaResponse, errors.ErrorModel | errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
11
|
+
//# sourceMappingURL=internalAccountV1GetMeta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalAccountV1GetMeta.d.ts","sourceRoot":"","sources":["../src/funcs/internalAccountV1GetMeta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,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,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyGA"}
|