@steamsets/client-ts 0.12.4 → 0.12.5

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 (82) hide show
  1. package/README.md +19 -30
  2. package/docs/sdks/admin/README.md +180 -0
  3. package/docs/sdks/steamsets/README.md +148 -1
  4. package/funcs/accountV1GetEmbed.d.ts +11 -0
  5. package/funcs/accountV1GetEmbed.d.ts.map +1 -0
  6. package/funcs/accountV1GetEmbed.js +96 -0
  7. package/funcs/accountV1GetEmbed.js.map +1 -0
  8. package/funcs/accountV1GetMeta.d.ts +11 -0
  9. package/funcs/accountV1GetMeta.d.ts.map +1 -0
  10. package/funcs/accountV1GetMeta.js +95 -0
  11. package/funcs/accountV1GetMeta.js.map +1 -0
  12. package/funcs/adminAdminV1UpdateResources.d.ts +11 -0
  13. package/funcs/adminAdminV1UpdateResources.d.ts.map +1 -0
  14. package/funcs/adminAdminV1UpdateResources.js +93 -0
  15. package/funcs/adminAdminV1UpdateResources.js.map +1 -0
  16. package/funcs/adminAdminV1UpdateRoles.d.ts +11 -0
  17. package/funcs/adminAdminV1UpdateRoles.d.ts.map +1 -0
  18. package/funcs/adminAdminV1UpdateRoles.js +93 -0
  19. package/funcs/adminAdminV1UpdateRoles.js.map +1 -0
  20. package/lib/config.d.ts +3 -3
  21. package/lib/config.js +3 -3
  22. package/models/components/index.d.ts +3 -0
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +3 -0
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/v1accountmetaresponsebody.d.ts +28 -0
  27. package/models/components/v1accountmetaresponsebody.d.ts.map +1 -0
  28. package/models/components/v1accountmetaresponsebody.js +59 -0
  29. package/models/components/v1accountmetaresponsebody.js.map +1 -0
  30. package/models/components/v1adminupdateresourcesrequestbody.d.ts +111 -0
  31. package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -0
  32. package/models/components/v1adminupdateresourcesrequestbody.js +95 -0
  33. package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -0
  34. package/models/components/v1adminupdaterolessrequestbody.d.ts +180 -0
  35. package/models/components/v1adminupdaterolessrequestbody.d.ts.map +1 -0
  36. package/models/components/v1adminupdaterolessrequestbody.js +129 -0
  37. package/models/components/v1adminupdaterolessrequestbody.js.map +1 -0
  38. package/models/operations/accountv1getembed.d.ts +37 -0
  39. package/models/operations/accountv1getembed.d.ts.map +1 -0
  40. package/models/operations/accountv1getembed.js +66 -0
  41. package/models/operations/accountv1getembed.js.map +1 -0
  42. package/models/operations/accountv1getmeta.d.ts +31 -0
  43. package/models/operations/accountv1getmeta.d.ts.map +1 -0
  44. package/models/operations/accountv1getmeta.js +66 -0
  45. package/models/operations/accountv1getmeta.js.map +1 -0
  46. package/models/operations/adminv1updateresources.d.ts +26 -0
  47. package/models/operations/adminv1updateresources.d.ts.map +1 -0
  48. package/models/operations/adminv1updateresources.js +60 -0
  49. package/models/operations/adminv1updateresources.js.map +1 -0
  50. package/models/operations/adminv1updateroles.d.ts +26 -0
  51. package/models/operations/adminv1updateroles.d.ts.map +1 -0
  52. package/models/operations/adminv1updateroles.js +60 -0
  53. package/models/operations/adminv1updateroles.js.map +1 -0
  54. package/models/operations/index.d.ts +4 -0
  55. package/models/operations/index.d.ts.map +1 -1
  56. package/models/operations/index.js +4 -0
  57. package/models/operations/index.js.map +1 -1
  58. package/package.json +1 -1
  59. package/sdk/admin.d.ts +2 -0
  60. package/sdk/admin.d.ts.map +1 -1
  61. package/sdk/admin.js +8 -0
  62. package/sdk/admin.js.map +1 -1
  63. package/sdk/sdk.d.ts +5 -1
  64. package/sdk/sdk.d.ts.map +1 -1
  65. package/sdk/sdk.js +9 -0
  66. package/sdk/sdk.js.map +1 -1
  67. package/src/funcs/accountV1GetEmbed.ts +125 -0
  68. package/src/funcs/accountV1GetMeta.ts +124 -0
  69. package/src/funcs/adminAdminV1UpdateResources.ts +123 -0
  70. package/src/funcs/adminAdminV1UpdateRoles.ts +123 -0
  71. package/src/lib/config.ts +3 -3
  72. package/src/models/components/index.ts +3 -0
  73. package/src/models/components/v1accountmetaresponsebody.ts +57 -0
  74. package/src/models/components/v1adminupdateresourcesrequestbody.ts +131 -0
  75. package/src/models/components/v1adminupdaterolessrequestbody.ts +152 -0
  76. package/src/models/operations/accountv1getembed.ts +68 -0
  77. package/src/models/operations/accountv1getmeta.ts +68 -0
  78. package/src/models/operations/adminv1updateresources.ts +55 -0
  79. package/src/models/operations/adminv1updateroles.ts +55 -0
  80. package/src/models/operations/index.ts +4 -0
  81. package/src/sdk/admin.ts +24 -0
  82. package/src/sdk/sdk.ts +28 -1
package/README.md CHANGED
@@ -53,10 +53,7 @@ const steamSets = new SteamSets({
53
53
  });
54
54
 
55
55
  async function run() {
56
- const result = await steamSets.connections.connect({
57
- code: "123456",
58
- provider: "discord",
59
- });
56
+ const result = await steamSets.accountV1GetEmbed({});
60
57
 
61
58
  // Handle the result
62
59
  console.log(result);
@@ -95,6 +92,8 @@ run();
95
92
  ### [admin](docs/sdks/admin/README.md)
96
93
 
97
94
  * [getAccount](docs/sdks/admin/README.md#getaccount)
95
+ * [adminV1UpdateResources](docs/sdks/admin/README.md#adminv1updateresources)
96
+ * [adminV1UpdateRoles](docs/sdks/admin/README.md#adminv1updateroles)
98
97
 
99
98
  ### [apps](docs/sdks/apps/README.md)
100
99
 
@@ -178,6 +177,10 @@ run();
178
177
  * [uploadImages](docs/sdks/settings/README.md#uploadimages)
179
178
  * [verifyEmail](docs/sdks/settings/README.md#verifyemail)
180
179
 
180
+ ### [SteamSets SDK](docs/sdks/steamsets/README.md)
181
+
182
+ * [accountV1GetEmbed](docs/sdks/steamsets/README.md#accountv1getembed)
183
+ * [accountV1GetMeta](docs/sdks/steamsets/README.md#accountv1getmeta)
181
184
 
182
185
  </details>
183
186
  <!-- End Available Resources and Operations [operations] -->
@@ -196,10 +199,7 @@ const steamSets = new SteamSets({
196
199
  });
197
200
 
198
201
  async function run() {
199
- const result = await steamSets.connections.connect({
200
- code: "123456",
201
- provider: "discord",
202
- }, {
202
+ const result = await steamSets.accountV1GetEmbed({}, {
203
203
  retries: {
204
204
  strategy: "backoff",
205
205
  backoff: {
@@ -239,10 +239,7 @@ const steamSets = new SteamSets({
239
239
  });
240
240
 
241
241
  async function run() {
242
- const result = await steamSets.connections.connect({
243
- code: "123456",
244
- provider: "discord",
245
- });
242
+ const result = await steamSets.accountV1GetEmbed({});
246
243
 
247
244
  // Handle the result
248
245
  console.log(result);
@@ -268,11 +265,11 @@ If a HTTP request fails, an operation my also throw an error from the `models/er
268
265
  | InvalidRequestError | Any input used to create a request is invalid |
269
266
  | UnexpectedClientError | Unrecognised or unexpected error |
270
267
 
271
- In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `connect` method may throw the following errors:
268
+ In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `accountV1GetEmbed` method may throw the following errors:
272
269
 
273
270
  | Error Type | Status Code | Content Type |
274
271
  | ------------------------ | ------------------------ | ------------------------ |
275
- | errors.ErrorModel | 400, 422, 500 | application/problem+json |
272
+ | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
276
273
  | errors.SDKError | 4XX, 5XX | \*/\* |
277
274
 
278
275
  ```typescript
@@ -289,10 +286,7 @@ const steamSets = new SteamSets({
289
286
  async function run() {
290
287
  let result;
291
288
  try {
292
- result = await steamSets.connections.connect({
293
- code: "123456",
294
- provider: "discord",
295
- });
289
+ result = await steamSets.accountV1GetEmbed({});
296
290
 
297
291
  // Handle the result
298
292
  console.log(result);
@@ -345,10 +339,7 @@ const steamSets = new SteamSets({
345
339
  });
346
340
 
347
341
  async function run() {
348
- const result = await steamSets.connections.connect({
349
- code: "123456",
350
- provider: "discord",
351
- });
342
+ const result = await steamSets.accountV1GetEmbed({});
352
343
 
353
344
  // Handle the result
354
345
  console.log(result);
@@ -372,10 +363,7 @@ const steamSets = new SteamSets({
372
363
  });
373
364
 
374
365
  async function run() {
375
- const result = await steamSets.connections.connect({
376
- code: "123456",
377
- provider: "discord",
378
- });
366
+ const result = await steamSets.accountV1GetEmbed({});
379
367
 
380
368
  // Handle the result
381
369
  console.log(result);
@@ -455,10 +443,7 @@ const steamSets = new SteamSets({
455
443
  });
456
444
 
457
445
  async function run() {
458
- const result = await steamSets.connections.connect({
459
- code: "123456",
460
- provider: "discord",
461
- });
446
+ const result = await steamSets.accountV1GetEmbed({});
462
447
 
463
448
  // Handle the result
464
449
  console.log(result);
@@ -541,7 +526,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
541
526
  - [`accountsQueue`](docs/sdks/accounts/README.md#queue)
542
527
  - [`accountUpdateImage`](docs/sdks/account/README.md#updateimage)
543
528
  - [`accountUploadImages`](docs/sdks/account/README.md#uploadimages)
529
+ - [`accountV1GetEmbed`](docs/sdks/steamsets/README.md#accountv1getembed)
530
+ - [`accountV1GetMeta`](docs/sdks/steamsets/README.md#accountv1getmeta)
544
531
  - [`accountVerifyEmail`](docs/sdks/account/README.md#verifyemail)
532
+ - [`adminAdminV1UpdateResources`](docs/sdks/admin/README.md#adminv1updateresources)
533
+ - [`adminAdminV1UpdateRoles`](docs/sdks/admin/README.md#adminv1updateroles)
545
534
  - [`adminGetAccount`](docs/sdks/admin/README.md#getaccount)
546
535
  - [`appsGet`](docs/sdks/apps/README.md#get)
547
536
  - [`appsQueue`](docs/sdks/apps/README.md#queue)
@@ -8,6 +8,8 @@ Admin related operations
8
8
  ### Available Operations
9
9
 
10
10
  * [getAccount](#getaccount)
11
+ * [adminV1UpdateResources](#adminv1updateresources)
12
+ * [adminV1UpdateRoles](#adminv1updateroles)
11
13
 
12
14
  ## getAccount
13
15
 
@@ -75,6 +77,184 @@ run();
75
77
 
76
78
  ### Errors
77
79
 
80
+ | Error Type | Status Code | Content Type |
81
+ | ------------------------ | ------------------------ | ------------------------ |
82
+ | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
83
+ | errors.SDKError | 4XX, 5XX | \*/\* |
84
+
85
+ ## adminV1UpdateResources
86
+
87
+ ### Example Usage
88
+
89
+ ```typescript
90
+ import { SteamSets } from "@steamsets/client-ts";
91
+
92
+ const steamSets = new SteamSets({
93
+ token: "<YOUR_BEARER_TOKEN_HERE>",
94
+ });
95
+
96
+ async function run() {
97
+ const result = await steamSets.admin.adminV1UpdateResources({
98
+ newResources: [
99
+ {
100
+ resource: "max_leaderboard_entries",
101
+ value: "1",
102
+ },
103
+ ],
104
+ resource: [
105
+ "short_link_domain",
106
+ "custom_vanity",
107
+ ],
108
+ });
109
+
110
+ // Handle the result
111
+ console.log(result);
112
+ }
113
+
114
+ run();
115
+ ```
116
+
117
+ ### Standalone function
118
+
119
+ The standalone function version of this method:
120
+
121
+ ```typescript
122
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
123
+ import { adminAdminV1UpdateResources } from "@steamsets/client-ts/funcs/adminAdminV1UpdateResources.js";
124
+
125
+ // Use `SteamSetsCore` for best tree-shaking performance.
126
+ // You can create one instance of it to use across an application.
127
+ const steamSets = new SteamSetsCore({
128
+ token: "<YOUR_BEARER_TOKEN_HERE>",
129
+ });
130
+
131
+ async function run() {
132
+ const res = await adminAdminV1UpdateResources(steamSets, {
133
+ newResources: [
134
+ {
135
+ resource: "max_leaderboard_entries",
136
+ value: "1",
137
+ },
138
+ ],
139
+ resource: [
140
+ "short_link_domain",
141
+ "custom_vanity",
142
+ ],
143
+ });
144
+
145
+ if (!res.ok) {
146
+ throw res.error;
147
+ }
148
+
149
+ const { value: result } = res;
150
+
151
+ // Handle the result
152
+ console.log(result);
153
+ }
154
+
155
+ run();
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ | Parameter | Type | Required | Description |
161
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
162
+ | `request` | [components.V1AdminUpdateResourcesRequestBody](../../models/components/v1adminupdateresourcesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
163
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
164
+ | `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. |
165
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
166
+
167
+ ### Response
168
+
169
+ **Promise\<[operations.AdminV1UpdateResourcesResponse](../../models/operations/adminv1updateresourcesresponse.md)\>**
170
+
171
+ ### Errors
172
+
173
+ | Error Type | Status Code | Content Type |
174
+ | ------------------------ | ------------------------ | ------------------------ |
175
+ | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
176
+ | errors.SDKError | 4XX, 5XX | \*/\* |
177
+
178
+ ## adminV1UpdateRoles
179
+
180
+ ### Example Usage
181
+
182
+ ```typescript
183
+ import { SteamSets } from "@steamsets/client-ts";
184
+
185
+ const steamSets = new SteamSets({
186
+ token: "<YOUR_BEARER_TOKEN_HERE>",
187
+ });
188
+
189
+ async function run() {
190
+ const result = await steamSets.admin.adminV1UpdateRoles({
191
+ deletedRoles: [
192
+ "staff",
193
+ ],
194
+ newRoles: [
195
+ "partner",
196
+ ],
197
+ });
198
+
199
+ // Handle the result
200
+ console.log(result);
201
+ }
202
+
203
+ run();
204
+ ```
205
+
206
+ ### Standalone function
207
+
208
+ The standalone function version of this method:
209
+
210
+ ```typescript
211
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
212
+ import { adminAdminV1UpdateRoles } from "@steamsets/client-ts/funcs/adminAdminV1UpdateRoles.js";
213
+
214
+ // Use `SteamSetsCore` for best tree-shaking performance.
215
+ // You can create one instance of it to use across an application.
216
+ const steamSets = new SteamSetsCore({
217
+ token: "<YOUR_BEARER_TOKEN_HERE>",
218
+ });
219
+
220
+ async function run() {
221
+ const res = await adminAdminV1UpdateRoles(steamSets, {
222
+ deletedRoles: [
223
+ "early_supporter",
224
+ ],
225
+ newRoles: [
226
+ "owner",
227
+ ],
228
+ });
229
+
230
+ if (!res.ok) {
231
+ throw res.error;
232
+ }
233
+
234
+ const { value: result } = res;
235
+
236
+ // Handle the result
237
+ console.log(result);
238
+ }
239
+
240
+ run();
241
+ ```
242
+
243
+ ### Parameters
244
+
245
+ | Parameter | Type | Required | Description |
246
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
247
+ | `request` | [components.V1AdminUpdateRolessRequestBody](../../models/components/v1adminupdaterolessrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
248
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
249
+ | `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. |
250
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
251
+
252
+ ### Response
253
+
254
+ **Promise\<[operations.AdminV1UpdateRolesResponse](../../models/operations/adminv1updaterolesresponse.md)\>**
255
+
256
+ ### Errors
257
+
78
258
  | Error Type | Status Code | Content Type |
79
259
  | ------------------------ | ------------------------ | ------------------------ |
80
260
  | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
@@ -1,3 +1,150 @@
1
1
  # SteamSets SDK
2
2
 
3
- ## Overview
3
+ ## Overview
4
+
5
+ ### Available Operations
6
+
7
+ * [accountV1GetEmbed](#accountv1getembed)
8
+ * [accountV1GetMeta](#accountv1getmeta)
9
+
10
+ ## accountV1GetEmbed
11
+
12
+ ### Example Usage
13
+
14
+ ```typescript
15
+ import { SteamSets } from "@steamsets/client-ts";
16
+
17
+ const steamSets = new SteamSets({
18
+ token: "<YOUR_BEARER_TOKEN_HERE>",
19
+ });
20
+
21
+ async function run() {
22
+ const result = await steamSets.accountV1GetEmbed({});
23
+
24
+ // Handle the result
25
+ console.log(result);
26
+ }
27
+
28
+ run();
29
+ ```
30
+
31
+ ### Standalone function
32
+
33
+ The standalone function version of this method:
34
+
35
+ ```typescript
36
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
37
+ import { accountV1GetEmbed } from "@steamsets/client-ts/funcs/accountV1GetEmbed.js";
38
+
39
+ // Use `SteamSetsCore` for best tree-shaking performance.
40
+ // You can create one instance of it to use across an application.
41
+ const steamSets = new SteamSetsCore({
42
+ token: "<YOUR_BEARER_TOKEN_HERE>",
43
+ });
44
+
45
+ async function run() {
46
+ const res = await accountV1GetEmbed(steamSets, {});
47
+
48
+ if (!res.ok) {
49
+ throw res.error;
50
+ }
51
+
52
+ const { value: result } = res;
53
+
54
+ // Handle the result
55
+ console.log(result);
56
+ }
57
+
58
+ run();
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+ | Parameter | Type | Required | Description |
64
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
65
+ | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
66
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
67
+ | `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. |
68
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
69
+
70
+ ### Response
71
+
72
+ **Promise\<[operations.AccountV1GetEmbedResponse](../../models/operations/accountv1getembedresponse.md)\>**
73
+
74
+ ### Errors
75
+
76
+ | Error Type | Status Code | Content Type |
77
+ | ------------------------ | ------------------------ | ------------------------ |
78
+ | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
79
+ | errors.SDKError | 4XX, 5XX | \*/\* |
80
+
81
+ ## accountV1GetMeta
82
+
83
+ ### Example Usage
84
+
85
+ ```typescript
86
+ import { SteamSets } from "@steamsets/client-ts";
87
+
88
+ const steamSets = new SteamSets({
89
+ token: "<YOUR_BEARER_TOKEN_HERE>",
90
+ });
91
+
92
+ async function run() {
93
+ const result = await steamSets.accountV1GetMeta({});
94
+
95
+ // Handle the result
96
+ console.log(result);
97
+ }
98
+
99
+ run();
100
+ ```
101
+
102
+ ### Standalone function
103
+
104
+ The standalone function version of this method:
105
+
106
+ ```typescript
107
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
108
+ import { accountV1GetMeta } from "@steamsets/client-ts/funcs/accountV1GetMeta.js";
109
+
110
+ // Use `SteamSetsCore` for best tree-shaking performance.
111
+ // You can create one instance of it to use across an application.
112
+ const steamSets = new SteamSetsCore({
113
+ token: "<YOUR_BEARER_TOKEN_HERE>",
114
+ });
115
+
116
+ async function run() {
117
+ const res = await accountV1GetMeta(steamSets, {});
118
+
119
+ if (!res.ok) {
120
+ throw res.error;
121
+ }
122
+
123
+ const { value: result } = res;
124
+
125
+ // Handle the result
126
+ console.log(result);
127
+ }
128
+
129
+ run();
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Parameter | Type | Required | Description |
135
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
136
+ | `request` | [components.AccountSearch](../../models/components/accountsearch.md) | :heavy_check_mark: | The request object to use for the request. |
137
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
138
+ | `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. |
139
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
140
+
141
+ ### Response
142
+
143
+ **Promise\<[operations.AccountV1GetMetaResponse](../../models/operations/accountv1getmetaresponse.md)\>**
144
+
145
+ ### Errors
146
+
147
+ | Error Type | Status Code | Content Type |
148
+ | ------------------------ | ------------------------ | ------------------------ |
149
+ | errors.ErrorModel | 403, 404, 422, 429, 500 | application/problem+json |
150
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -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 accountV1GetEmbed(client: SteamSetsCore, request: components.AccountSearch, options?: RequestOptions): Promise<Result<operations.AccountV1GetEmbedResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
11
+ //# sourceMappingURL=accountV1GetEmbed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountV1GetEmbed.d.ts","sourceRoot":"","sources":["../src/funcs/accountV1GetEmbed.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,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,aAAa,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAmFA"}
@@ -0,0 +1,96 @@
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.accountV1GetEmbed = accountV1GetEmbed;
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
+ async function accountV1GetEmbed(client, request, options) {
39
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.AccountSearch$outboundSchema.parse(value), "Input validation failed");
40
+ if (!parsed.ok) {
41
+ return parsed;
42
+ }
43
+ const payload = parsed.value;
44
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
45
+ const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetEmbed")();
46
+ const headers = new Headers({
47
+ "Content-Type": "application/json",
48
+ Accept: "application/json",
49
+ });
50
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
51
+ const securityInput = secConfig == null ? {} : { token: secConfig };
52
+ const context = {
53
+ operationID: "account.v1.getEmbed",
54
+ oAuth2Scopes: [],
55
+ securitySource: client._options.token,
56
+ };
57
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
58
+ const requestRes = client._createRequest(context, {
59
+ security: requestSecurity,
60
+ method: "POST",
61
+ path: path,
62
+ headers: headers,
63
+ body: body,
64
+ uaHeader: "x-speakeasy-user-agent",
65
+ timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
66
+ }, options);
67
+ if (!requestRes.ok) {
68
+ return requestRes;
69
+ }
70
+ const req = requestRes.value;
71
+ const doResult = await client._do(req, {
72
+ context,
73
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
74
+ retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
75
+ || client._options.retryConfig,
76
+ retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
77
+ });
78
+ if (!doResult.ok) {
79
+ return doResult;
80
+ }
81
+ const response = doResult.value;
82
+ const responseFields = {
83
+ HttpMeta: { Response: response, Request: req },
84
+ };
85
+ const [result] = await M.match(M.json(200, operations.AccountV1GetEmbedResponse$inboundSchema, {
86
+ hdrs: true,
87
+ key: "string",
88
+ }), M.jsonErr([403, 404, 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=accountV1GetEmbed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountV1GetEmbed.js","sourceRoot":"","sources":["../src/funcs/accountV1GetEmbed.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAuBH,8CAmGC;AAvHD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAGrD,KAAK,UAAU,iBA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AAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QACpE,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"}
@@ -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 accountV1GetMeta(client: SteamSetsCore, request: components.AccountSearch, options?: RequestOptions): Promise<Result<operations.AccountV1GetMetaResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
11
+ //# sourceMappingURL=accountV1GetMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountV1GetMeta.d.ts","sourceRoot":"","sources":["../src/funcs/accountV1GetMeta.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,wBAAsB,gBAAgB,CACpC,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,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAkFA"}