@steamsets/client-ts 0.19.3 → 0.19.4

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 (137) hide show
  1. package/README.md +19 -6
  2. package/docs/sdks/account/README.md +32 -8
  3. package/docs/sdks/admin/README.md +73 -0
  4. package/docs/sdks/badge/README.md +77 -0
  5. package/docs/sdks/event/README.md +80 -0
  6. package/docs/sdks/internal/README.md +182 -8
  7. package/docs/sdks/leaderboard/README.md +32 -8
  8. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  9. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  10. package/funcs/{internalLeaderboardV1GetAccountMeta.js → accountLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  11. package/funcs/accountLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  12. package/funcs/{accountLeaderboardV1GetAccountMeta.d.ts → adminAdminV1RemoveVanity.d.ts} +2 -2
  13. package/funcs/adminAdminV1RemoveVanity.d.ts.map +1 -0
  14. package/funcs/adminAdminV1RemoveVanity.js +118 -0
  15. package/funcs/adminAdminV1RemoveVanity.js.map +1 -0
  16. package/funcs/{internalLeaderboardV1GetAccountMeta.d.ts → badgeBadgeV1SearchSuggest.d.ts} +2 -2
  17. package/funcs/badgeBadgeV1SearchSuggest.d.ts.map +1 -0
  18. package/funcs/badgeBadgeV1SearchSuggest.js +118 -0
  19. package/funcs/badgeBadgeV1SearchSuggest.js.map +1 -0
  20. package/funcs/{leaderboardLeaderboardV1GetAccountMeta.d.ts → eventAdminV1RemoveVanity.d.ts} +2 -2
  21. package/funcs/eventAdminV1RemoveVanity.d.ts.map +1 -0
  22. package/funcs/eventAdminV1RemoveVanity.js +118 -0
  23. package/funcs/eventAdminV1RemoveVanity.js.map +1 -0
  24. package/funcs/internalAdminV1RemoveVanity.d.ts +12 -0
  25. package/funcs/internalAdminV1RemoveVanity.d.ts.map +1 -0
  26. package/funcs/internalAdminV1RemoveVanity.js +118 -0
  27. package/funcs/internalAdminV1RemoveVanity.js.map +1 -0
  28. package/funcs/internalBadgeV1SearchSuggest.d.ts +12 -0
  29. package/funcs/internalBadgeV1SearchSuggest.d.ts.map +1 -0
  30. package/funcs/internalBadgeV1SearchSuggest.js +118 -0
  31. package/funcs/internalBadgeV1SearchSuggest.js.map +1 -0
  32. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  33. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  34. package/funcs/{leaderboardLeaderboardV1GetAccountMeta.js → internalLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  35. package/funcs/internalLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  36. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts +12 -0
  37. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.d.ts.map +1 -0
  38. package/funcs/{accountLeaderboardV1GetAccountMeta.js → leaderboardLeaderboardV1GetLeaderboardAccountMeta.js} +5 -7
  39. package/funcs/leaderboardLeaderboardV1GetLeaderboardAccountMeta.js.map +1 -0
  40. package/jsr.json +1 -1
  41. package/lib/config.d.ts +2 -2
  42. package/lib/config.js +2 -2
  43. package/models/components/index.d.ts +3 -0
  44. package/models/components/index.d.ts.map +1 -1
  45. package/models/components/index.js +3 -0
  46. package/models/components/index.js.map +1 -1
  47. package/models/components/v1adminremovevanityresponsebody.d.ts +32 -0
  48. package/models/components/v1adminremovevanityresponsebody.d.ts.map +1 -0
  49. package/models/components/v1adminremovevanityresponsebody.js +68 -0
  50. package/models/components/v1adminremovevanityresponsebody.js.map +1 -0
  51. package/models/components/v1badgesearchsuggestbody.d.ts +37 -0
  52. package/models/components/v1badgesearchsuggestbody.d.ts.map +1 -0
  53. package/models/components/v1badgesearchsuggestbody.js +70 -0
  54. package/models/components/v1badgesearchsuggestbody.js.map +1 -0
  55. package/models/components/v1badgesearchsuggesttrequestbody.d.ts +32 -0
  56. package/models/components/v1badgesearchsuggesttrequestbody.d.ts.map +1 -0
  57. package/models/components/v1badgesearchsuggesttrequestbody.js +59 -0
  58. package/models/components/v1badgesearchsuggesttrequestbody.js.map +1 -0
  59. package/models/operations/adminv1removevanity.d.ts +35 -0
  60. package/models/operations/adminv1removevanity.d.ts.map +1 -0
  61. package/models/operations/adminv1removevanity.js +75 -0
  62. package/models/operations/adminv1removevanity.js.map +1 -0
  63. package/models/operations/badgev1searchsuggest.d.ts +35 -0
  64. package/models/operations/badgev1searchsuggest.d.ts.map +1 -0
  65. package/models/operations/badgev1searchsuggest.js +75 -0
  66. package/models/operations/badgev1searchsuggest.js.map +1 -0
  67. package/models/operations/index.d.ts +3 -1
  68. package/models/operations/index.d.ts.map +1 -1
  69. package/models/operations/index.js +3 -1
  70. package/models/operations/index.js.map +1 -1
  71. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +35 -0
  72. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts.map +1 -0
  73. package/models/operations/{leaderboardv1getaccountmeta.js → leaderboardv1getleaderboardaccountmeta.js} +17 -17
  74. package/models/operations/leaderboardv1getleaderboardaccountmeta.js.map +1 -0
  75. package/package.json +1 -1
  76. package/sdk/account.d.ts +1 -1
  77. package/sdk/account.d.ts.map +1 -1
  78. package/sdk/account.js +3 -3
  79. package/sdk/account.js.map +1 -1
  80. package/sdk/admin.d.ts +1 -0
  81. package/sdk/admin.d.ts.map +1 -1
  82. package/sdk/admin.js +4 -0
  83. package/sdk/admin.js.map +1 -1
  84. package/sdk/badge.d.ts +1 -0
  85. package/sdk/badge.d.ts.map +1 -1
  86. package/sdk/badge.js +4 -0
  87. package/sdk/badge.js.map +1 -1
  88. package/sdk/event.d.ts +7 -0
  89. package/sdk/event.d.ts.map +1 -0
  90. package/sdk/event.js +16 -0
  91. package/sdk/event.js.map +1 -0
  92. package/sdk/internal.d.ts +3 -1
  93. package/sdk/internal.d.ts.map +1 -1
  94. package/sdk/internal.js +11 -3
  95. package/sdk/internal.js.map +1 -1
  96. package/sdk/leaderboard.d.ts +1 -1
  97. package/sdk/leaderboard.d.ts.map +1 -1
  98. package/sdk/leaderboard.js +3 -3
  99. package/sdk/leaderboard.js.map +1 -1
  100. package/sdk/sdk.d.ts +3 -0
  101. package/sdk/sdk.d.ts.map +1 -1
  102. package/sdk/sdk.js +4 -0
  103. package/sdk/sdk.js.map +1 -1
  104. package/src/funcs/{internalLeaderboardV1GetAccountMeta.ts → accountLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  105. package/src/funcs/adminAdminV1RemoveVanity.ts +179 -0
  106. package/src/funcs/badgeBadgeV1SearchSuggest.ts +180 -0
  107. package/src/funcs/eventAdminV1RemoveVanity.ts +179 -0
  108. package/src/funcs/internalAdminV1RemoveVanity.ts +179 -0
  109. package/src/funcs/internalBadgeV1SearchSuggest.ts +180 -0
  110. package/src/funcs/{leaderboardLeaderboardV1GetAccountMeta.ts → internalLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  111. package/src/funcs/{accountLeaderboardV1GetAccountMeta.ts → leaderboardLeaderboardV1GetLeaderboardAccountMeta.ts} +10 -8
  112. package/src/lib/config.ts +2 -2
  113. package/src/models/components/index.ts +3 -0
  114. package/src/models/components/v1adminremovevanityresponsebody.ts +80 -0
  115. package/src/models/components/v1badgesearchsuggestbody.ts +85 -0
  116. package/src/models/components/v1badgesearchsuggesttrequestbody.ts +71 -0
  117. package/src/models/operations/adminv1removevanity.ts +93 -0
  118. package/src/models/operations/badgev1searchsuggest.ts +91 -0
  119. package/src/models/operations/index.ts +3 -1
  120. package/src/models/operations/leaderboardv1getleaderboardaccountmeta.ts +107 -0
  121. package/src/sdk/account.ts +4 -4
  122. package/src/sdk/admin.ts +12 -0
  123. package/src/sdk/badge.ts +12 -0
  124. package/src/sdk/event.ts +22 -0
  125. package/src/sdk/internal.ts +28 -4
  126. package/src/sdk/leaderboard.ts +4 -4
  127. package/src/sdk/sdk.ts +6 -0
  128. package/funcs/accountLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  129. package/funcs/accountLeaderboardV1GetAccountMeta.js.map +0 -1
  130. package/funcs/internalLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  131. package/funcs/internalLeaderboardV1GetAccountMeta.js.map +0 -1
  132. package/funcs/leaderboardLeaderboardV1GetAccountMeta.d.ts.map +0 -1
  133. package/funcs/leaderboardLeaderboardV1GetAccountMeta.js.map +0 -1
  134. package/models/operations/leaderboardv1getaccountmeta.d.ts +0 -35
  135. package/models/operations/leaderboardv1getaccountmeta.d.ts.map +0 -1
  136. package/models/operations/leaderboardv1getaccountmeta.js.map +0 -1
  137. package/src/models/operations/leaderboardv1getaccountmeta.ts +0 -98
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ export function internalAdminV1RemoveVanity(
29
+ client: SteamSetsCore,
30
+ request: components.AccountSearch,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.AdminV1RemoveVanityResponse,
35
+ | errors.ErrorModel
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: SteamSetsCore,
55
+ request: components.AccountSearch,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.AdminV1RemoveVanityResponse,
61
+ | errors.ErrorModel
62
+ | errors.ErrorModel
63
+ | SDKError
64
+ | SDKValidationError
65
+ | UnexpectedClientError
66
+ | InvalidRequestError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | ConnectionError
70
+ >,
71
+ APICall,
72
+ ]
73
+ > {
74
+ const parsed = safeParse(
75
+ request,
76
+ (value) => components.AccountSearch$outboundSchema.parse(value),
77
+ "Input validation failed",
78
+ );
79
+ if (!parsed.ok) {
80
+ return [parsed, { status: "invalid" }];
81
+ }
82
+ const payload = parsed.value;
83
+ const body = encodeJSON("body", payload, { explode: true });
84
+
85
+ const path = pathToFunc("/admin.v1.AdminService/RemoveVanity")();
86
+
87
+ const headers = new Headers(compactMap({
88
+ "Content-Type": "application/json",
89
+ Accept: "application/json",
90
+ }));
91
+
92
+ const secConfig = await extractSecurity(client._options.token);
93
+ const securityInput = secConfig == null ? {} : { token: secConfig };
94
+ const requestSecurity = resolveGlobalSecurity(securityInput);
95
+
96
+ const context = {
97
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
98
+ operationID: "admin.v1.remove-vanity",
99
+ oAuth2Scopes: [],
100
+
101
+ resolvedSecurity: requestSecurity,
102
+
103
+ securitySource: client._options.token,
104
+ retryConfig: options?.retries
105
+ || client._options.retryConfig
106
+ || {
107
+ strategy: "backoff",
108
+ backoff: {
109
+ initialInterval: 500,
110
+ maxInterval: 5000,
111
+ exponent: 1.5,
112
+ maxElapsedTime: 60000,
113
+ },
114
+ retryConnectionErrors: true,
115
+ }
116
+ || { strategy: "none" },
117
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
118
+ };
119
+
120
+ const requestRes = client._createRequest(context, {
121
+ security: requestSecurity,
122
+ method: "POST",
123
+ baseURL: options?.serverURL,
124
+ path: path,
125
+ headers: headers,
126
+ body: body,
127
+ uaHeader: "x-speakeasy-user-agent",
128
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
129
+ }, options);
130
+ if (!requestRes.ok) {
131
+ return [requestRes, { status: "invalid" }];
132
+ }
133
+ const req = requestRes.value;
134
+
135
+ const doResult = await client._do(req, {
136
+ context,
137
+ errorCodes: ["403", "404", "422", "429", "4XX", "500", "5XX"],
138
+ retryConfig: context.retryConfig,
139
+ retryCodes: context.retryCodes,
140
+ });
141
+ if (!doResult.ok) {
142
+ return [doResult, { status: "request-error", request: req }];
143
+ }
144
+ const response = doResult.value;
145
+
146
+ const responseFields = {
147
+ HttpMeta: { Response: response, Request: req },
148
+ };
149
+
150
+ const [result] = await M.match<
151
+ operations.AdminV1RemoveVanityResponse,
152
+ | errors.ErrorModel
153
+ | errors.ErrorModel
154
+ | SDKError
155
+ | SDKValidationError
156
+ | UnexpectedClientError
157
+ | InvalidRequestError
158
+ | RequestAbortedError
159
+ | RequestTimeoutError
160
+ | ConnectionError
161
+ >(
162
+ M.json(200, operations.AdminV1RemoveVanityResponse$inboundSchema, {
163
+ key: "V1AdminRemoveVanityResponseBody",
164
+ }),
165
+ M.jsonErr([403, 404, 422, 429], errors.ErrorModel$inboundSchema, {
166
+ ctype: "application/problem+json",
167
+ }),
168
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
169
+ ctype: "application/problem+json",
170
+ }),
171
+ M.fail("4XX"),
172
+ M.fail("5XX"),
173
+ )(response, req, { extraFields: responseFields });
174
+ if (!result.ok) {
175
+ return [result, { status: "complete", request: req, response }];
176
+ }
177
+
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ export function internalBadgeV1SearchSuggest(
29
+ client: SteamSetsCore,
30
+ request: components.V1BadgeSearchSuggesttRequestBody,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.BadgeV1SearchSuggestResponse,
35
+ | errors.ErrorModel
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: SteamSetsCore,
55
+ request: components.V1BadgeSearchSuggesttRequestBody,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.BadgeV1SearchSuggestResponse,
61
+ | errors.ErrorModel
62
+ | errors.ErrorModel
63
+ | SDKError
64
+ | SDKValidationError
65
+ | UnexpectedClientError
66
+ | InvalidRequestError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | ConnectionError
70
+ >,
71
+ APICall,
72
+ ]
73
+ > {
74
+ const parsed = safeParse(
75
+ request,
76
+ (value) =>
77
+ components.V1BadgeSearchSuggesttRequestBody$outboundSchema.parse(value),
78
+ "Input validation failed",
79
+ );
80
+ if (!parsed.ok) {
81
+ return [parsed, { status: "invalid" }];
82
+ }
83
+ const payload = parsed.value;
84
+ const body = encodeJSON("body", payload, { explode: true });
85
+
86
+ const path = pathToFunc("/badge.v1.BadgeService/SearchSuggest")();
87
+
88
+ const headers = new Headers(compactMap({
89
+ "Content-Type": "application/json",
90
+ Accept: "application/json",
91
+ }));
92
+
93
+ const secConfig = await extractSecurity(client._options.token);
94
+ const securityInput = secConfig == null ? {} : { token: secConfig };
95
+ const requestSecurity = resolveGlobalSecurity(securityInput);
96
+
97
+ const context = {
98
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
99
+ operationID: "badge.v1.search.suggest",
100
+ oAuth2Scopes: [],
101
+
102
+ resolvedSecurity: requestSecurity,
103
+
104
+ securitySource: client._options.token,
105
+ retryConfig: options?.retries
106
+ || client._options.retryConfig
107
+ || {
108
+ strategy: "backoff",
109
+ backoff: {
110
+ initialInterval: 500,
111
+ maxInterval: 5000,
112
+ exponent: 1.5,
113
+ maxElapsedTime: 60000,
114
+ },
115
+ retryConnectionErrors: true,
116
+ }
117
+ || { strategy: "none" },
118
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
119
+ };
120
+
121
+ const requestRes = client._createRequest(context, {
122
+ security: requestSecurity,
123
+ method: "POST",
124
+ baseURL: options?.serverURL,
125
+ path: path,
126
+ headers: headers,
127
+ body: body,
128
+ uaHeader: "x-speakeasy-user-agent",
129
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
130
+ }, options);
131
+ if (!requestRes.ok) {
132
+ return [requestRes, { status: "invalid" }];
133
+ }
134
+ const req = requestRes.value;
135
+
136
+ const doResult = await client._do(req, {
137
+ context,
138
+ errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
139
+ retryConfig: context.retryConfig,
140
+ retryCodes: context.retryCodes,
141
+ });
142
+ if (!doResult.ok) {
143
+ return [doResult, { status: "request-error", request: req }];
144
+ }
145
+ const response = doResult.value;
146
+
147
+ const responseFields = {
148
+ HttpMeta: { Response: response, Request: req },
149
+ };
150
+
151
+ const [result] = await M.match<
152
+ operations.BadgeV1SearchSuggestResponse,
153
+ | errors.ErrorModel
154
+ | errors.ErrorModel
155
+ | SDKError
156
+ | SDKValidationError
157
+ | UnexpectedClientError
158
+ | InvalidRequestError
159
+ | RequestAbortedError
160
+ | RequestTimeoutError
161
+ | ConnectionError
162
+ >(
163
+ M.json(200, operations.BadgeV1SearchSuggestResponse$inboundSchema, {
164
+ key: "V1BadgeSearchSuggestBody",
165
+ }),
166
+ M.jsonErr([403, 404, 422], errors.ErrorModel$inboundSchema, {
167
+ ctype: "application/problem+json",
168
+ }),
169
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
170
+ ctype: "application/problem+json",
171
+ }),
172
+ M.fail("4XX"),
173
+ M.fail("5XX"),
174
+ )(response, req, { extraFields: responseFields });
175
+ if (!result.ok) {
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
178
+
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
@@ -25,13 +25,13 @@ import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
- export function leaderboardLeaderboardV1GetAccountMeta(
28
+ export function internalLeaderboardV1GetLeaderboardAccountMeta(
29
29
  client: SteamSetsCore,
30
30
  request: components.V1LeaderboardAccountMetaRequestBody,
31
31
  options?: RequestOptions,
32
32
  ): APIPromise<
33
33
  Result<
34
- operations.LeaderboardV1GetAccountMetaResponse,
34
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
35
35
  | errors.ErrorModel
36
36
  | errors.ErrorModel
37
37
  | SDKError
@@ -57,7 +57,7 @@ async function $do(
57
57
  ): Promise<
58
58
  [
59
59
  Result<
60
- operations.LeaderboardV1GetAccountMetaResponse,
60
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
61
61
  | errors.ErrorModel
62
62
  | errors.ErrorModel
63
63
  | SDKError
@@ -100,7 +100,7 @@ async function $do(
100
100
 
101
101
  const context = {
102
102
  baseURL: options?.serverURL ?? client._baseURL ?? "",
103
- operationID: "leaderboard.v1.getAccountMeta",
103
+ operationID: "leaderboard.v1.getLeaderboardAccountMeta",
104
104
  oAuth2Scopes: [],
105
105
 
106
106
  resolvedSecurity: requestSecurity,
@@ -153,7 +153,7 @@ async function $do(
153
153
  };
154
154
 
155
155
  const [result] = await M.match<
156
- operations.LeaderboardV1GetAccountMetaResponse,
156
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
157
157
  | errors.ErrorModel
158
158
  | errors.ErrorModel
159
159
  | SDKError
@@ -164,9 +164,11 @@ async function $do(
164
164
  | RequestTimeoutError
165
165
  | ConnectionError
166
166
  >(
167
- M.json(200, operations.LeaderboardV1GetAccountMetaResponse$inboundSchema, {
168
- key: "V1LeaderboardAccountMetaResponseBody",
169
- }),
167
+ M.json(
168
+ 200,
169
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema,
170
+ { key: "V1LeaderboardAccountMetaResponseBody" },
171
+ ),
170
172
  M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
171
173
  ctype: "application/problem+json",
172
174
  }),
@@ -25,13 +25,13 @@ import * as operations from "../models/operations/index.js";
25
25
  import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
- export function accountLeaderboardV1GetAccountMeta(
28
+ export function leaderboardLeaderboardV1GetLeaderboardAccountMeta(
29
29
  client: SteamSetsCore,
30
30
  request: components.V1LeaderboardAccountMetaRequestBody,
31
31
  options?: RequestOptions,
32
32
  ): APIPromise<
33
33
  Result<
34
- operations.LeaderboardV1GetAccountMetaResponse,
34
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
35
35
  | errors.ErrorModel
36
36
  | errors.ErrorModel
37
37
  | SDKError
@@ -57,7 +57,7 @@ async function $do(
57
57
  ): Promise<
58
58
  [
59
59
  Result<
60
- operations.LeaderboardV1GetAccountMetaResponse,
60
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
61
61
  | errors.ErrorModel
62
62
  | errors.ErrorModel
63
63
  | SDKError
@@ -100,7 +100,7 @@ async function $do(
100
100
 
101
101
  const context = {
102
102
  baseURL: options?.serverURL ?? client._baseURL ?? "",
103
- operationID: "leaderboard.v1.getAccountMeta",
103
+ operationID: "leaderboard.v1.getLeaderboardAccountMeta",
104
104
  oAuth2Scopes: [],
105
105
 
106
106
  resolvedSecurity: requestSecurity,
@@ -153,7 +153,7 @@ async function $do(
153
153
  };
154
154
 
155
155
  const [result] = await M.match<
156
- operations.LeaderboardV1GetAccountMetaResponse,
156
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse,
157
157
  | errors.ErrorModel
158
158
  | errors.ErrorModel
159
159
  | SDKError
@@ -164,9 +164,11 @@ async function $do(
164
164
  | RequestTimeoutError
165
165
  | ConnectionError
166
166
  >(
167
- M.json(200, operations.LeaderboardV1GetAccountMetaResponse$inboundSchema, {
168
- key: "V1LeaderboardAccountMetaResponseBody",
169
- }),
167
+ M.json(
168
+ 200,
169
+ operations.LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema,
170
+ { key: "V1LeaderboardAccountMetaResponseBody" },
171
+ ),
170
172
  M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
171
173
  ctype: "application/problem+json",
172
174
  }),
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.19.3",
58
+ sdkVersion: "0.19.4",
59
59
  genVersion: "2.545.4",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.19.3 2.545.4 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.19.4 2.545.4 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -68,6 +68,7 @@ export * from "./v1accountsappsresponsebody.js";
68
68
  export * from "./v1accountvanityupdate.js";
69
69
  export * from "./v1admingetaccountresponsebody.js";
70
70
  export * from "./v1admingeteventsresponsebody.js";
71
+ export * from "./v1adminremovevanityresponsebody.js";
71
72
  export * from "./v1adminupdateeventrequestbody.js";
72
73
  export * from "./v1adminupdateeventresponsebody.js";
73
74
  export * from "./v1adminupdateresourcesrequestbody.js";
@@ -79,6 +80,8 @@ export * from "./v1appeventmapping.js";
79
80
  export * from "./v1apporder.js";
80
81
  export * from "./v1badgeorder.js";
81
82
  export * from "./v1badgesearchresponsebody.js";
83
+ export * from "./v1badgesearchsuggestbody.js";
84
+ export * from "./v1badgesearchsuggesttrequestbody.js";
82
85
  export * from "./v1badgesrequestbody.js";
83
86
  export * from "./v1badgesresponsebody.js";
84
87
  export * from "./v1badgetagrequestbody.js";
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type V1AdminRemoveVanityResponseBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const V1AdminRemoveVanityResponseBody$inboundSchema: z.ZodType<
20
+ V1AdminRemoveVanityResponseBody,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ $schema: z.string().optional(),
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "$schema": "dollarSchema",
28
+ });
29
+ });
30
+
31
+ /** @internal */
32
+ export type V1AdminRemoveVanityResponseBody$Outbound = {
33
+ $schema?: string | undefined;
34
+ };
35
+
36
+ /** @internal */
37
+ export const V1AdminRemoveVanityResponseBody$outboundSchema: z.ZodType<
38
+ V1AdminRemoveVanityResponseBody$Outbound,
39
+ z.ZodTypeDef,
40
+ V1AdminRemoveVanityResponseBody
41
+ > = z.object({
42
+ dollarSchema: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ dollarSchema: "$schema",
46
+ });
47
+ });
48
+
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export namespace V1AdminRemoveVanityResponseBody$ {
54
+ /** @deprecated use `V1AdminRemoveVanityResponseBody$inboundSchema` instead. */
55
+ export const inboundSchema = V1AdminRemoveVanityResponseBody$inboundSchema;
56
+ /** @deprecated use `V1AdminRemoveVanityResponseBody$outboundSchema` instead. */
57
+ export const outboundSchema = V1AdminRemoveVanityResponseBody$outboundSchema;
58
+ /** @deprecated use `V1AdminRemoveVanityResponseBody$Outbound` instead. */
59
+ export type Outbound = V1AdminRemoveVanityResponseBody$Outbound;
60
+ }
61
+
62
+ export function v1AdminRemoveVanityResponseBodyToJSON(
63
+ v1AdminRemoveVanityResponseBody: V1AdminRemoveVanityResponseBody,
64
+ ): string {
65
+ return JSON.stringify(
66
+ V1AdminRemoveVanityResponseBody$outboundSchema.parse(
67
+ v1AdminRemoveVanityResponseBody,
68
+ ),
69
+ );
70
+ }
71
+
72
+ export function v1AdminRemoveVanityResponseBodyFromJSON(
73
+ jsonString: string,
74
+ ): SafeParseResult<V1AdminRemoveVanityResponseBody, SDKValidationError> {
75
+ return safeParse(
76
+ jsonString,
77
+ (x) => V1AdminRemoveVanityResponseBody$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'V1AdminRemoveVanityResponseBody' from JSON`,
79
+ );
80
+ }
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type V1BadgeSearchSuggestBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ /**
17
+ * The filter to apply to the search
18
+ */
19
+ filter: string;
20
+ };
21
+
22
+ /** @internal */
23
+ export const V1BadgeSearchSuggestBody$inboundSchema: z.ZodType<
24
+ V1BadgeSearchSuggestBody,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ $schema: z.string().optional(),
29
+ filter: z.string(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "$schema": "dollarSchema",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type V1BadgeSearchSuggestBody$Outbound = {
38
+ $schema?: string | undefined;
39
+ filter: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const V1BadgeSearchSuggestBody$outboundSchema: z.ZodType<
44
+ V1BadgeSearchSuggestBody$Outbound,
45
+ z.ZodTypeDef,
46
+ V1BadgeSearchSuggestBody
47
+ > = z.object({
48
+ dollarSchema: z.string().optional(),
49
+ filter: z.string(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ dollarSchema: "$schema",
53
+ });
54
+ });
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace V1BadgeSearchSuggestBody$ {
61
+ /** @deprecated use `V1BadgeSearchSuggestBody$inboundSchema` instead. */
62
+ export const inboundSchema = V1BadgeSearchSuggestBody$inboundSchema;
63
+ /** @deprecated use `V1BadgeSearchSuggestBody$outboundSchema` instead. */
64
+ export const outboundSchema = V1BadgeSearchSuggestBody$outboundSchema;
65
+ /** @deprecated use `V1BadgeSearchSuggestBody$Outbound` instead. */
66
+ export type Outbound = V1BadgeSearchSuggestBody$Outbound;
67
+ }
68
+
69
+ export function v1BadgeSearchSuggestBodyToJSON(
70
+ v1BadgeSearchSuggestBody: V1BadgeSearchSuggestBody,
71
+ ): string {
72
+ return JSON.stringify(
73
+ V1BadgeSearchSuggestBody$outboundSchema.parse(v1BadgeSearchSuggestBody),
74
+ );
75
+ }
76
+
77
+ export function v1BadgeSearchSuggestBodyFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<V1BadgeSearchSuggestBody, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => V1BadgeSearchSuggestBody$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'V1BadgeSearchSuggestBody' from JSON`,
84
+ );
85
+ }