@steamsets/client-ts 0.11.1 → 0.11.3

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 (118) hide show
  1. package/README.md +9 -2
  2. package/docs/sdks/badge/README.md +0 -175
  3. package/docs/sdks/developer/README.md +253 -0
  4. package/funcs/{badgeBadgeV1Search.d.ts → developerAccountV1SettingsDeveloperAppCreate.d.ts} +3 -3
  5. package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts.map +1 -0
  6. package/funcs/{badgeBadgeV1Search.js → developerAccountV1SettingsDeveloperAppCreate.js} +10 -10
  7. package/funcs/developerAccountV1SettingsDeveloperAppCreate.js.map +1 -0
  8. package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts +14 -0
  9. package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts.map +1 -0
  10. package/funcs/developerAccountV1SettingsDeveloperAppDelete.js +97 -0
  11. package/funcs/developerAccountV1SettingsDeveloperAppDelete.js.map +1 -0
  12. package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts +14 -0
  13. package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.d.ts.map +1 -0
  14. package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js +98 -0
  15. package/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js.map +1 -0
  16. package/lib/config.d.ts +2 -2
  17. package/lib/config.js +2 -2
  18. package/models/components/accountinfobody.d.ts +15 -10
  19. package/models/components/accountinfobody.d.ts.map +1 -1
  20. package/models/components/accountinfobody.js +12 -10
  21. package/models/components/accountinfobody.js.map +1 -1
  22. package/models/components/index.d.ts +6 -1
  23. package/models/components/index.d.ts.map +1 -1
  24. package/models/components/index.js +6 -1
  25. package/models/components/index.js.map +1 -1
  26. package/models/components/resource.d.ts +3 -0
  27. package/models/components/resource.d.ts.map +1 -1
  28. package/models/components/resource.js +1 -0
  29. package/models/components/resource.js.map +1 -1
  30. package/models/components/v1accountdeveloperappdeleterequestbody.d.ts +28 -0
  31. package/models/components/v1accountdeveloperappdeleterequestbody.d.ts.map +1 -0
  32. package/models/components/v1accountdeveloperappdeleterequestbody.js +50 -0
  33. package/models/components/v1accountdeveloperappdeleterequestbody.js.map +1 -0
  34. package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts +28 -0
  35. package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts.map +1 -0
  36. package/models/components/v1accountdeveloperappdeleteresponsebody.js +59 -0
  37. package/models/components/v1accountdeveloperappdeleteresponsebody.js.map +1 -0
  38. package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts +28 -0
  39. package/models/components/v1accountdeveloperappgeneratekeyrequestbody.d.ts.map +1 -0
  40. package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js +50 -0
  41. package/models/components/v1accountdeveloperappgeneratekeyrequestbody.js.map +1 -0
  42. package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts +33 -0
  43. package/models/components/v1accountdeveloperappgeneratekeyresponsebody.d.ts.map +1 -0
  44. package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js +61 -0
  45. package/models/components/v1accountdeveloperappgeneratekeyresponsebody.js.map +1 -0
  46. package/models/components/v1developerappcreaterequestbody.d.ts +83 -0
  47. package/models/components/v1developerappcreaterequestbody.d.ts.map +1 -0
  48. package/models/components/v1developerappcreaterequestbody.js +82 -0
  49. package/models/components/v1developerappcreaterequestbody.js.map +1 -0
  50. package/models/components/v1developerappcreateresponsebody.d.ts +33 -0
  51. package/models/components/v1developerappcreateresponsebody.d.ts.map +1 -0
  52. package/models/{operations/badgev1search.js → components/v1developerappcreateresponsebody.js} +17 -16
  53. package/models/components/v1developerappcreateresponsebody.js.map +1 -0
  54. package/models/components/v1getsettingsbody.d.ts +0 -5
  55. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  56. package/models/components/v1getsettingsbody.js +0 -2
  57. package/models/components/v1getsettingsbody.js.map +1 -1
  58. package/models/operations/accountv1settingsdeveloperappcreate.d.ts +31 -0
  59. package/models/operations/accountv1settingsdeveloperappcreate.d.ts.map +1 -0
  60. package/models/operations/accountv1settingsdeveloperappcreate.js +66 -0
  61. package/models/operations/accountv1settingsdeveloperappcreate.js.map +1 -0
  62. package/models/operations/accountv1settingsdeveloperappdelete.d.ts +31 -0
  63. package/models/operations/accountv1settingsdeveloperappdelete.d.ts.map +1 -0
  64. package/models/operations/accountv1settingsdeveloperappdelete.js +66 -0
  65. package/models/operations/accountv1settingsdeveloperappdelete.js.map +1 -0
  66. package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts +31 -0
  67. package/models/operations/accountv1settingsdeveloperappgeneratekey.d.ts.map +1 -0
  68. package/models/operations/accountv1settingsdeveloperappgeneratekey.js +66 -0
  69. package/models/operations/accountv1settingsdeveloperappgeneratekey.js.map +1 -0
  70. package/models/operations/index.d.ts +3 -1
  71. package/models/operations/index.d.ts.map +1 -1
  72. package/models/operations/index.js +3 -1
  73. package/models/operations/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/sdk/badge.d.ts +0 -4
  76. package/sdk/badge.d.ts.map +1 -1
  77. package/sdk/badge.js +0 -7
  78. package/sdk/badge.js.map +1 -1
  79. package/sdk/developer.d.ts +18 -0
  80. package/sdk/developer.d.ts.map +1 -0
  81. package/sdk/developer.js +33 -0
  82. package/sdk/developer.js.map +1 -0
  83. package/sdk/sdk.d.ts +3 -0
  84. package/sdk/sdk.d.ts.map +1 -1
  85. package/sdk/sdk.js +5 -0
  86. package/sdk/sdk.js.map +1 -1
  87. package/src/funcs/{badgeBadgeV1Search.ts → developerAccountV1SettingsDeveloperAppCreate.ts} +17 -12
  88. package/src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts +134 -0
  89. package/src/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.ts +135 -0
  90. package/src/lib/config.ts +2 -2
  91. package/src/models/components/accountinfobody.ts +36 -23
  92. package/src/models/components/index.ts +6 -1
  93. package/src/models/components/resource.ts +1 -0
  94. package/src/models/components/v1accountdeveloperappdeleterequestbody.ts +50 -0
  95. package/src/models/components/v1accountdeveloperappdeleteresponsebody.ts +59 -0
  96. package/src/models/components/v1accountdeveloperappgeneratekeyrequestbody.ts +52 -0
  97. package/src/models/components/v1accountdeveloperappgeneratekeyresponsebody.ts +68 -0
  98. package/src/models/components/v1developerappcreaterequestbody.ts +109 -0
  99. package/src/models/components/v1developerappcreateresponsebody.ts +64 -0
  100. package/src/models/components/v1getsettingsbody.ts +0 -7
  101. package/src/models/operations/accountv1settingsdeveloperappcreate.ts +74 -0
  102. package/src/models/operations/accountv1settingsdeveloperappdelete.ts +76 -0
  103. package/src/models/operations/accountv1settingsdeveloperappgeneratekey.ts +77 -0
  104. package/src/models/operations/index.ts +3 -1
  105. package/src/sdk/badge.ts +0 -15
  106. package/src/sdk/developer.ts +55 -0
  107. package/src/sdk/sdk.ts +6 -0
  108. package/funcs/badgeBadgeV1Search.d.ts.map +0 -1
  109. package/funcs/badgeBadgeV1Search.js.map +0 -1
  110. package/models/components/badgesearch.d.ts +0 -86
  111. package/models/components/badgesearch.d.ts.map +0 -1
  112. package/models/components/badgesearch.js +0 -70
  113. package/models/components/badgesearch.js.map +0 -1
  114. package/models/operations/badgev1search.d.ts +0 -26
  115. package/models/operations/badgev1search.d.ts.map +0 -1
  116. package/models/operations/badgev1search.js.map +0 -1
  117. package/src/models/components/badgesearch.ts +0 -118
  118. package/src/models/operations/badgev1search.ts +0 -55
package/README.md CHANGED
@@ -107,7 +107,6 @@ run();
107
107
  ### [badge](docs/sdks/badge/README.md)
108
108
 
109
109
  * [badgeV1Tags](docs/sdks/badge/README.md#badgev1tags) - Get all availiable badge tags
110
- * [badgeV1Search](docs/sdks/badge/README.md#badgev1search) - Search for badges
111
110
  * [badgeV1Tag](docs/sdks/badge/README.md#badgev1tag) - Tag a badge
112
111
 
113
112
  ### [connection](docs/sdks/connection/README.md)
@@ -128,6 +127,12 @@ run();
128
127
  * [accountV1GetStaff](docs/sdks/data/README.md#accountv1getstaff) - Get Staff Members and their info
129
128
  * [accountV1Queue](docs/sdks/data/README.md#accountv1queue) - Queue a app for processing
130
129
 
130
+ ### [developer](docs/sdks/developer/README.md)
131
+
132
+ * [accountV1SettingsDeveloperAppCreate](docs/sdks/developer/README.md#accountv1settingsdeveloperappcreate) - Add a new Developer App to the account
133
+ * [accountV1SettingsDeveloperAppDelete](docs/sdks/developer/README.md#accountv1settingsdeveloperappdelete) - Delete a developer app from the account
134
+ * [accountV1SettingsDeveloperAppGenerateKey](docs/sdks/developer/README.md#accountv1settingsdeveloperappgeneratekey) - Generate a new API key for the developer app
135
+
131
136
  ### [leaderboard](docs/sdks/leaderboard/README.md)
132
137
 
133
138
  * [leaderboardV1GetAccount](docs/sdks/leaderboard/README.md#leaderboardv1getaccount) - Get an leaderboard for accounts
@@ -532,7 +537,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
532
537
  - [accountLeaderboardV1GetAccount](docs/sdks/account/README.md#leaderboardv1getaccount)
533
538
  - [appAccountV1Queue](docs/sdks/app/README.md#accountv1queue)
534
539
  - [appAppV1Get](docs/sdks/app/README.md#appv1get)
535
- - [badgeBadgeV1Search](docs/sdks/badge/README.md#badgev1search)
536
540
  - [badgeBadgeV1Tag](docs/sdks/badge/README.md#badgev1tag)
537
541
  - [badgeBadgeV1Tags](docs/sdks/badge/README.md#badgev1tags)
538
542
  - [connectionAccountV1ConnectionConnect](docs/sdks/connection/README.md#accountv1connectionconnect)
@@ -547,6 +551,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
547
551
  - [dataAccountV1GetLeaderboardHistory](docs/sdks/data/README.md#accountv1getleaderboardhistory)
548
552
  - [dataAccountV1GetStaff](docs/sdks/data/README.md#accountv1getstaff)
549
553
  - [dataAccountV1Queue](docs/sdks/data/README.md#accountv1queue)
554
+ - [developerAccountV1SettingsDeveloperAppCreate](docs/sdks/developer/README.md#accountv1settingsdeveloperappcreate)
555
+ - [developerAccountV1SettingsDeveloperAppDelete](docs/sdks/developer/README.md#accountv1settingsdeveloperappdelete)
556
+ - [developerAccountV1SettingsDeveloperAppGenerateKey](docs/sdks/developer/README.md#accountv1settingsdeveloperappgeneratekey)
550
557
  - [leaderboardLeaderboardV1GetAccount](docs/sdks/leaderboard/README.md#leaderboardv1getaccount)
551
558
  - [livenessLiveness](docs/sdks/liveness/README.md#liveness)
552
559
  - [locationLocation](docs/sdks/location/README.md#location)
@@ -6,7 +6,6 @@
6
6
  ### Available Operations
7
7
 
8
8
  * [badgeV1Tags](#badgev1tags) - Get all availiable badge tags
9
- * [badgeV1Search](#badgev1search) - Search for badges
10
9
  * [badgeV1Tag](#badgev1tag) - Tag a badge
11
10
 
12
11
  ## badgeV1Tags
@@ -83,180 +82,6 @@ run();
83
82
  | errors.SDKError | 4xx-5xx | */* |
84
83
 
85
84
 
86
- ## badgeV1Search
87
-
88
- Search for badges
89
-
90
- ### Example Usage
91
-
92
- ```typescript
93
- import { SteamSets } from "@steamsets/client-ts";
94
-
95
- const steamSets = new SteamSets({
96
- session: "<YOUR_BEARER_TOKEN_HERE>",
97
- });
98
-
99
- async function run() {
100
- const result = await steamSets.badge.badgeV1Search({
101
- appId: 123456,
102
- appIds: [
103
- 444,
104
- 730,
105
- ],
106
- badgeId: "bdg_123",
107
- badgeIds: [
108
- "bdg_123",
109
- "bdg_456",
110
- ],
111
- colorSearch: [
112
- {
113
- "key": [
114
- "<value>",
115
- "<value>",
116
- "<value>",
117
- ],
118
- },
119
- ],
120
- isEvent: true,
121
- isFoil: true,
122
- isSale: true,
123
- limit: 10,
124
- offset: 0,
125
- typeSearch: [
126
- {
127
- "key": [
128
- "<value>",
129
- ],
130
- "key1": [
131
- "<value>",
132
- ],
133
- "key2": [
134
- "<value>",
135
- "<value>",
136
- "<value>",
137
- ],
138
- },
139
- {
140
- "key": [
141
- "<value>",
142
- ],
143
- "key1": [
144
- "<value>",
145
- "<value>",
146
- "<value>",
147
- ],
148
- },
149
- ],
150
- });
151
-
152
- // Handle the result
153
- console.log(result);
154
- }
155
-
156
- run();
157
- ```
158
-
159
- ### Standalone function
160
-
161
- The standalone function version of this method:
162
-
163
- ```typescript
164
- import { SteamSetsCore } from "@steamsets/client-ts/core.js";
165
- import { badgeBadgeV1Search } from "@steamsets/client-ts/funcs/badgeBadgeV1Search.js";
166
-
167
- // Use `SteamSetsCore` for best tree-shaking performance.
168
- // You can create one instance of it to use across an application.
169
- const steamSets = new SteamSetsCore({
170
- session: "<YOUR_BEARER_TOKEN_HERE>",
171
- });
172
-
173
- async function run() {
174
- const res = await badgeBadgeV1Search(steamSets, {
175
- appId: 123456,
176
- appIds: [
177
- 444,
178
- 730,
179
- ],
180
- badgeId: "bdg_123",
181
- badgeIds: [
182
- "bdg_123",
183
- "bdg_456",
184
- ],
185
- colorSearch: [
186
- {
187
- "key": [
188
- "<value>",
189
- "<value>",
190
- "<value>",
191
- ],
192
- },
193
- ],
194
- isEvent: true,
195
- isFoil: true,
196
- isSale: true,
197
- limit: 10,
198
- offset: 0,
199
- typeSearch: [
200
- {
201
- "key": [
202
- "<value>",
203
- ],
204
- "key1": [
205
- "<value>",
206
- ],
207
- "key2": [
208
- "<value>",
209
- "<value>",
210
- "<value>",
211
- ],
212
- },
213
- {
214
- "key": [
215
- "<value>",
216
- ],
217
- "key1": [
218
- "<value>",
219
- "<value>",
220
- "<value>",
221
- ],
222
- },
223
- ],
224
- });
225
-
226
- if (!res.ok) {
227
- throw res.error;
228
- }
229
-
230
- const { value: result } = res;
231
-
232
- // Handle the result
233
- console.log(result);
234
- }
235
-
236
- run();
237
- ```
238
-
239
- ### Parameters
240
-
241
- | Parameter | Type | Required | Description |
242
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
243
- | `request` | [components.BadgeSearch](../../models/components/badgesearch.md) | :heavy_check_mark: | The request object to use for the request. |
244
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
245
- | `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. |
246
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
247
-
248
- ### Response
249
-
250
- **Promise\<[operations.BadgeV1SearchResponse](../../models/operations/badgev1searchresponse.md)\>**
251
-
252
- ### Errors
253
-
254
- | Error Object | Status Code | Content Type |
255
- | ------------------------ | ------------------------ | ------------------------ |
256
- | errors.ErrorModel | 403,404,422,500 | application/problem+json |
257
- | errors.SDKError | 4xx-5xx | */* |
258
-
259
-
260
85
  ## badgeV1Tag
261
86
 
262
87
  Tag a badge
@@ -0,0 +1,253 @@
1
+ # Developer
2
+ (*developer*)
3
+
4
+ ## Overview
5
+
6
+ Developer App related operations
7
+
8
+ ### Available Operations
9
+
10
+ * [accountV1SettingsDeveloperAppCreate](#accountv1settingsdeveloperappcreate) - Add a new Developer App to the account
11
+ * [accountV1SettingsDeveloperAppDelete](#accountv1settingsdeveloperappdelete) - Delete a developer app from the account
12
+ * [accountV1SettingsDeveloperAppGenerateKey](#accountv1settingsdeveloperappgeneratekey) - Generate a new API key for the developer app
13
+
14
+ ## accountV1SettingsDeveloperAppCreate
15
+
16
+ Add a new Developer App to the account
17
+
18
+ ### Example Usage
19
+
20
+ ```typescript
21
+ import { SteamSets } from "@steamsets/client-ts";
22
+
23
+ const steamSets = new SteamSets({
24
+ session: "<YOUR_BEARER_TOKEN_HERE>",
25
+ });
26
+
27
+ async function run() {
28
+ const result = await steamSets.developer.accountV1SettingsDeveloperAppCreate({
29
+ description: "Your App Description",
30
+ environment: "production",
31
+ generateKey: true,
32
+ icon: "https://yoururl.com/icon.png",
33
+ name: "Your App",
34
+ });
35
+
36
+ // Handle the result
37
+ console.log(result);
38
+ }
39
+
40
+ run();
41
+ ```
42
+
43
+ ### Standalone function
44
+
45
+ The standalone function version of this method:
46
+
47
+ ```typescript
48
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
49
+ import { developerAccountV1SettingsDeveloperAppCreate } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppCreate.js";
50
+
51
+ // Use `SteamSetsCore` for best tree-shaking performance.
52
+ // You can create one instance of it to use across an application.
53
+ const steamSets = new SteamSetsCore({
54
+ session: "<YOUR_BEARER_TOKEN_HERE>",
55
+ });
56
+
57
+ async function run() {
58
+ const res = await developerAccountV1SettingsDeveloperAppCreate(steamSets, {
59
+ description: "Your App Description",
60
+ environment: "production",
61
+ generateKey: true,
62
+ icon: "https://yoururl.com/icon.png",
63
+ name: "Your App",
64
+ });
65
+
66
+ if (!res.ok) {
67
+ throw res.error;
68
+ }
69
+
70
+ const { value: result } = res;
71
+
72
+ // Handle the result
73
+ console.log(result);
74
+ }
75
+
76
+ run();
77
+ ```
78
+
79
+ ### Parameters
80
+
81
+ | Parameter | Type | Required | Description |
82
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
83
+ | `request` | [components.V1DeveloperAppCreateRequestBody](../../models/components/v1developerappcreaterequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
84
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
85
+ | `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. |
86
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
87
+
88
+ ### Response
89
+
90
+ **Promise\<[operations.AccountV1SettingsDeveloperAppCreateResponse](../../models/operations/accountv1settingsdeveloperappcreateresponse.md)\>**
91
+
92
+ ### Errors
93
+
94
+ | Error Object | Status Code | Content Type |
95
+ | ------------------------ | ------------------------ | ------------------------ |
96
+ | errors.ErrorModel | 404,422,429,500 | application/problem+json |
97
+ | errors.SDKError | 4xx-5xx | */* |
98
+
99
+
100
+ ## accountV1SettingsDeveloperAppDelete
101
+
102
+ Delete a developer app from the account
103
+
104
+ ### Example Usage
105
+
106
+ ```typescript
107
+ import { SteamSets } from "@steamsets/client-ts";
108
+
109
+ const steamSets = new SteamSets({
110
+ session: "<YOUR_BEARER_TOKEN_HERE>",
111
+ });
112
+
113
+ async function run() {
114
+ const result = await steamSets.developer.accountV1SettingsDeveloperAppDelete({
115
+ publicId: "da_123456",
116
+ });
117
+
118
+ // Handle the result
119
+ console.log(result);
120
+ }
121
+
122
+ run();
123
+ ```
124
+
125
+ ### Standalone function
126
+
127
+ The standalone function version of this method:
128
+
129
+ ```typescript
130
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
131
+ import { developerAccountV1SettingsDeveloperAppDelete } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppDelete.js";
132
+
133
+ // Use `SteamSetsCore` for best tree-shaking performance.
134
+ // You can create one instance of it to use across an application.
135
+ const steamSets = new SteamSetsCore({
136
+ session: "<YOUR_BEARER_TOKEN_HERE>",
137
+ });
138
+
139
+ async function run() {
140
+ const res = await developerAccountV1SettingsDeveloperAppDelete(steamSets, {
141
+ publicId: "da_123456",
142
+ });
143
+
144
+ if (!res.ok) {
145
+ throw res.error;
146
+ }
147
+
148
+ const { value: result } = res;
149
+
150
+ // Handle the result
151
+ console.log(result);
152
+ }
153
+
154
+ run();
155
+ ```
156
+
157
+ ### Parameters
158
+
159
+ | Parameter | Type | Required | Description |
160
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
161
+ | `request` | [components.V1AccountDeveloperAppDeleteRequestBody](../../models/components/v1accountdeveloperappdeleterequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
162
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
163
+ | `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. |
164
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
165
+
166
+ ### Response
167
+
168
+ **Promise\<[operations.AccountV1SettingsDeveloperAppDeleteResponse](../../models/operations/accountv1settingsdeveloperappdeleteresponse.md)\>**
169
+
170
+ ### Errors
171
+
172
+ | Error Object | Status Code | Content Type |
173
+ | ------------------------ | ------------------------ | ------------------------ |
174
+ | errors.ErrorModel | 404,422,429,500 | application/problem+json |
175
+ | errors.SDKError | 4xx-5xx | */* |
176
+
177
+
178
+ ## accountV1SettingsDeveloperAppGenerateKey
179
+
180
+ Generate a new API key for the developer app
181
+
182
+ ### Example Usage
183
+
184
+ ```typescript
185
+ import { SteamSets } from "@steamsets/client-ts";
186
+
187
+ const steamSets = new SteamSets({
188
+ session: "<YOUR_BEARER_TOKEN_HERE>",
189
+ });
190
+
191
+ async function run() {
192
+ const result = await steamSets.developer.accountV1SettingsDeveloperAppGenerateKey({
193
+ publicId: "da_123456",
194
+ });
195
+
196
+ // Handle the result
197
+ console.log(result);
198
+ }
199
+
200
+ run();
201
+ ```
202
+
203
+ ### Standalone function
204
+
205
+ The standalone function version of this method:
206
+
207
+ ```typescript
208
+ import { SteamSetsCore } from "@steamsets/client-ts/core.js";
209
+ import { developerAccountV1SettingsDeveloperAppGenerateKey } from "@steamsets/client-ts/funcs/developerAccountV1SettingsDeveloperAppGenerateKey.js";
210
+
211
+ // Use `SteamSetsCore` for best tree-shaking performance.
212
+ // You can create one instance of it to use across an application.
213
+ const steamSets = new SteamSetsCore({
214
+ session: "<YOUR_BEARER_TOKEN_HERE>",
215
+ });
216
+
217
+ async function run() {
218
+ const res = await developerAccountV1SettingsDeveloperAppGenerateKey(steamSets, {
219
+ publicId: "da_123456",
220
+ });
221
+
222
+ if (!res.ok) {
223
+ throw res.error;
224
+ }
225
+
226
+ const { value: result } = res;
227
+
228
+ // Handle the result
229
+ console.log(result);
230
+ }
231
+
232
+ run();
233
+ ```
234
+
235
+ ### Parameters
236
+
237
+ | Parameter | Type | Required | Description |
238
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
239
+ | `request` | [components.V1AccountDeveloperAppGenerateKeyRequestBody](../../models/components/v1accountdeveloperappgeneratekeyrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
240
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
241
+ | `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. |
242
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
243
+
244
+ ### Response
245
+
246
+ **Promise\<[operations.AccountV1SettingsDeveloperAppGenerateKeyResponse](../../models/operations/accountv1settingsdeveloperappgeneratekeyresponse.md)\>**
247
+
248
+ ### Errors
249
+
250
+ | Error Object | Status Code | Content Type |
251
+ | ------------------------ | ------------------------ | ------------------------ |
252
+ | errors.ErrorModel | 404,422,429,500 | application/problem+json |
253
+ | errors.SDKError | 4xx-5xx | */* |
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
8
  import * as operations from "../models/operations/index.js";
9
9
  import { Result } from "../types/fp.js";
10
10
  /**
11
- * Search for badges
11
+ * Add a new Developer App to the account
12
12
  */
13
- export declare function badgeBadgeV1Search(client: SteamSetsCore, request: components.BadgeSearch, options?: RequestOptions): Promise<Result<operations.BadgeV1SearchResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=badgeBadgeV1Search.d.ts.map
13
+ export declare function developerAccountV1SettingsDeveloperAppCreate(client: SteamSetsCore, request: components.V1DeveloperAppCreateRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsDeveloperAppCreateResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
+ //# sourceMappingURL=developerAccountV1SettingsDeveloperAppCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerAccountV1SettingsDeveloperAppCreate.d.ts","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppCreate.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,4CAA4C,CAChE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.badgeBadgeV1Search = badgeBadgeV1Search;
29
+ exports.developerAccountV1SettingsDeveloperAppCreate = developerAccountV1SettingsDeveloperAppCreate;
30
30
  const encodings_js_1 = require("../lib/encodings.js");
31
31
  const M = __importStar(require("../lib/matchers.js"));
32
32
  const schemas_js_1 = require("../lib/schemas.js");
@@ -36,25 +36,25 @@ const components = __importStar(require("../models/components/index.js"));
36
36
  const errors = __importStar(require("../models/errors/index.js"));
37
37
  const operations = __importStar(require("../models/operations/index.js"));
38
38
  /**
39
- * Search for badges
39
+ * Add a new Developer App to the account
40
40
  */
41
- async function badgeBadgeV1Search(client, request, options) {
41
+ async function developerAccountV1SettingsDeveloperAppCreate(client, request, options) {
42
42
  const input = request;
43
- const parsed = (0, schemas_js_1.safeParse)(input, (value) => components.BadgeSearch$outboundSchema.parse(value), "Input validation failed");
43
+ const parsed = (0, schemas_js_1.safeParse)(input, (value) => components.V1DeveloperAppCreateRequestBody$outboundSchema.parse(value), "Input validation failed");
44
44
  if (!parsed.ok) {
45
45
  return parsed;
46
46
  }
47
47
  const payload = parsed.value;
48
48
  const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
49
- const path = (0, url_js_1.pathToFunc)("/badge.v1.BadgeService/Search")();
49
+ const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/CreateDeveloperApp")();
50
50
  const headers = new Headers({
51
51
  "Content-Type": "application/json",
52
- Accept: "application/problem+json",
52
+ Accept: "application/json",
53
53
  });
54
54
  const secConfig = await (0, security_js_1.extractSecurity)(client._options.session);
55
55
  const securityInput = secConfig == null ? {} : { session: secConfig };
56
56
  const context = {
57
- operationID: "badge.v1.search",
57
+ operationID: "account.v1.settings.developer-app-create",
58
58
  oAuth2Scopes: [],
59
59
  securitySource: client._options.session,
60
60
  };
@@ -74,7 +74,7 @@ async function badgeBadgeV1Search(client, request, options) {
74
74
  const req = requestRes.value;
75
75
  const doResult = await client._do(req, {
76
76
  context,
77
- errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
77
+ errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
78
78
  retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
79
79
  || client._options.retryConfig,
80
80
  retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
@@ -86,7 +86,7 @@ async function badgeBadgeV1Search(client, request, options) {
86
86
  const responseFields = {
87
87
  HttpMeta: { Response: response, Request: req },
88
88
  };
89
- const [result] = await M.match(M.nil(204, operations.BadgeV1SearchResponse$inboundSchema), M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
89
+ const [result] = await M.match(M.json(200, operations.AccountV1SettingsDeveloperAppCreateResponse$inboundSchema, { key: "V1DeveloperAppCreateResponseBody" }), M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
90
90
  ctype: "application/problem+json",
91
91
  }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
92
92
  if (!result.ok) {
@@ -94,4 +94,4 @@ async function badgeBadgeV1Search(client, request, options) {
94
94
  }
95
95
  return result;
96
96
  }
97
- //# sourceMappingURL=badgeBadgeV1Search.js.map
97
+ //# sourceMappingURL=developerAccountV1SettingsDeveloperAppCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerAccountV1SettingsDeveloperAppCreate.js","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
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
+ * Delete a developer app from the account
12
+ */
13
+ export declare function developerAccountV1SettingsDeveloperAppDelete(client: SteamSetsCore, request: components.V1AccountDeveloperAppDeleteRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1SettingsDeveloperAppDeleteResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
+ //# sourceMappingURL=developerAccountV1SettingsDeveloperAppDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerAccountV1SettingsDeveloperAppDelete.d.ts","sourceRoot":"","sources":["../src/funcs/developerAccountV1SettingsDeveloperAppDelete.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,4CAA4C,CAChE,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,2CAA2C,EACpD,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyFA"}