@steamsets/client-ts 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +13 -7
  2. package/funcs/accountAccountListOwnedGroups.d.ts +16 -0
  3. package/funcs/accountAccountListOwnedGroups.d.ts.map +1 -0
  4. package/funcs/accountAccountListOwnedGroups.js +133 -0
  5. package/funcs/accountAccountListOwnedGroups.js.map +1 -0
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/lib/matchers.d.ts.map +1 -1
  10. package/lib/matchers.js +0 -1
  11. package/lib/matchers.js.map +1 -1
  12. package/lib/security.d.ts.map +1 -1
  13. package/lib/security.js +1 -2
  14. package/lib/security.js.map +1 -1
  15. package/models/components/index.d.ts +2 -0
  16. package/models/components/index.d.ts.map +1 -1
  17. package/models/components/index.js +2 -0
  18. package/models/components/index.js.map +1 -1
  19. package/models/components/v1accountgetsettingsbody.d.ts +0 -4
  20. package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
  21. package/models/components/v1accountgetsettingsbody.js +0 -1
  22. package/models/components/v1accountgetsettingsbody.js.map +1 -1
  23. package/models/components/v1accountlistownedgroupsresponsebody.d.ts +15 -0
  24. package/models/components/v1accountlistownedgroupsresponsebody.d.ts.map +1 -0
  25. package/models/components/v1accountlistownedgroupsresponsebody.js +57 -0
  26. package/models/components/v1accountlistownedgroupsresponsebody.js.map +1 -0
  27. package/models/components/v1accountupdatesettingsrequestbody.d.ts +3 -3
  28. package/models/components/v1accountupdatesettingsrequestbody.js +1 -1
  29. package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
  30. package/models/components/v1ownedgroup.d.ts +17 -0
  31. package/models/components/v1ownedgroup.d.ts.map +1 -0
  32. package/models/components/v1ownedgroup.js +57 -0
  33. package/models/components/v1ownedgroup.js.map +1 -0
  34. package/models/operations/accountlistownedgroups.d.ts +15 -0
  35. package/models/operations/accountlistownedgroups.d.ts.map +1 -0
  36. package/models/operations/accountlistownedgroups.js +59 -0
  37. package/models/operations/accountlistownedgroups.js.map +1 -0
  38. package/models/operations/index.d.ts +1 -0
  39. package/models/operations/index.d.ts.map +1 -1
  40. package/models/operations/index.js +1 -0
  41. package/models/operations/index.js.map +1 -1
  42. package/package.json +1 -1
  43. package/sdk/account.d.ts +4 -0
  44. package/sdk/account.d.ts.map +1 -1
  45. package/sdk/account.js +7 -0
  46. package/sdk/account.js.map +1 -1
  47. package/src/funcs/accountAccountListOwnedGroups.ts +185 -0
  48. package/src/lib/config.ts +3 -3
  49. package/src/lib/matchers.ts +3 -2
  50. package/src/lib/security.ts +1 -2
  51. package/src/models/components/index.ts +2 -0
  52. package/src/models/components/v1accountgetsettingsbody.ts +0 -5
  53. package/src/models/components/v1accountlistownedgroupsresponsebody.ts +43 -0
  54. package/src/models/components/v1accountupdatesettingsrequestbody.ts +4 -4
  55. package/src/models/components/v1ownedgroup.ts +45 -0
  56. package/src/models/operations/accountlistownedgroups.ts +47 -0
  57. package/src/models/operations/index.ts +1 -0
  58. package/src/sdk/account.ts +15 -0
  59. package/.devcontainer/devcontainer.json +0 -45
  60. package/_speakeasy/.github/action-inputs-config.json +0 -53
  61. package/_speakeasy/.github/action-security-config.json +0 -88
  62. package/examples/package-lock.json +0 -610
  63. package/examples/package.json +0 -18
  64. package/tsconfig.json +0 -40
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type V1OwnedGroup = {
11
+ avatar: string;
12
+ foundedAt: Date;
13
+ id: number;
14
+ members: number;
15
+ name: string;
16
+ privacy: string;
17
+ tag: string;
18
+ vanity: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const V1OwnedGroup$inboundSchema: z.ZodType<
23
+ V1OwnedGroup,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ avatar: z.string(),
28
+ foundedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
29
+ id: z.number().int(),
30
+ members: z.number().int(),
31
+ name: z.string(),
32
+ privacy: z.string(),
33
+ tag: z.string(),
34
+ vanity: z.string(),
35
+ });
36
+
37
+ export function v1OwnedGroupFromJSON(
38
+ jsonString: string,
39
+ ): SafeParseResult<V1OwnedGroup, SDKValidationError> {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) => V1OwnedGroup$inboundSchema.parse(JSON.parse(x)),
43
+ `Failed to parse 'V1OwnedGroup' from JSON`,
44
+ );
45
+ }
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AccountListOwnedGroupsResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountListOwnedGroupsResponseBody?:
18
+ | components.V1AccountListOwnedGroupsResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountListOwnedGroupsResponse$inboundSchema: z.ZodType<
24
+ AccountListOwnedGroupsResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountListOwnedGroupsResponseBody: components
30
+ .V1AccountListOwnedGroupsResponseBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountListOwnedGroupsResponseBody":
35
+ "v1AccountListOwnedGroupsResponseBody",
36
+ });
37
+ });
38
+
39
+ export function accountListOwnedGroupsResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<AccountListOwnedGroupsResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => AccountListOwnedGroupsResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'AccountListOwnedGroupsResponse' from JSON`,
46
+ );
47
+ }
@@ -23,6 +23,7 @@ export * from "./accountlistimages.js";
23
23
  export * from "./accountlistinventorysets.js";
24
24
  export * from "./accountlistleaderboardhistory.js";
25
25
  export * from "./accountlistownedbadges.js";
26
+ export * from "./accountlistownedgroups.js";
26
27
  export * from "./accountlogin.js";
27
28
  export * from "./accountlogout.js";
28
29
  export * from "./accountqueueupdate.js";
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { accountAccountListOwnedGroups } from "../funcs/accountAccountListOwnedGroups.js";
5
6
  import { accountBookmarkBadge } from "../funcs/accountBookmarkBadge.js";
6
7
  import { accountCreateConnection } from "../funcs/accountCreateConnection.js";
7
8
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
@@ -331,6 +332,20 @@ export class Account extends ClientSDK {
331
332
  ));
332
333
  }
333
334
 
335
+ /**
336
+ * List groups owned by account
337
+ */
338
+ async accountListOwnedGroups(
339
+ request: components.AccountSearch,
340
+ options?: RequestOptions,
341
+ ): Promise<operations.AccountListOwnedGroupsResponse> {
342
+ return unwrapAsync(accountAccountListOwnedGroups(
343
+ this,
344
+ request,
345
+ options,
346
+ ));
347
+ }
348
+
334
349
  /**
335
350
  * Login with Steam
336
351
  */
@@ -1,45 +0,0 @@
1
- // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
- // README at: https://github.com/devcontainers/images/tree/main/src/typescript-node
3
- {
4
- "name": "TypeScript",
5
- "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
6
- // Features to add to the dev container. More info: https://containers.dev/features.
7
- // "features": {},
8
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
9
- // "forwardPorts": [],
10
- // Use 'postCreateCommand' to run commands after the container is created.
11
- "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh",
12
- "customizations": {
13
- "vscode": {
14
- "extensions": [
15
- "ms-vscode.vscode-typescript-tslint-plugin",
16
- "esbenp.prettier-vscode",
17
- "github.vscode-pull-request-github"
18
- ],
19
- "settings": {
20
- "files.eol": "\n",
21
- "editor.formatOnSave": true,
22
- "typescript.tsc.autoDetect": "on",
23
- "typescript.updateImportsOnFileMove.enabled": "always",
24
- "typescript.preferences.importModuleSpecifier": "relative",
25
- "[typescript]": {
26
- "editor.codeActionsOnSave": {
27
- "source.organizeImports": true
28
- }
29
- },
30
- "[typescriptreact]": {
31
- "editor.codeActionsOnSave": {
32
- "source.organizeImports": true
33
- }
34
- }
35
- }
36
- },
37
- "codespaces": {
38
- "openFiles": [
39
- ".devcontainer/README.md"
40
- ]
41
- }
42
- }
43
- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
44
- // "remoteUser": "root"
45
- }
@@ -1,53 +0,0 @@
1
- [
2
- {
3
- "name": "mode",
4
- "validation_regex": "/^(direct|pr)$/.source",
5
- "validation_message": "Must be `direct` or `pr`"
6
- },
7
- {
8
- "name": "speakeasy_version",
9
- "validation_regex": "/^[\\w.\\-]+$/.source",
10
- "validation_message": "Letters, numbers, or .-_ only"
11
- },
12
- {
13
- "name": "openapi_doc_location",
14
- "validation_regex": "/^((https?):\\/\\/([\\w\\-]+\\.)+\\w+(\\/.*)?|[\\w.\\-\\/]+)$/i.source",
15
- "validation_message": "Must be a valid server URL or file path containing letters, numbers, or .-_/ only"
16
- },
17
- {
18
- "name": "openapi_doc_auth_header",
19
- "validation_regex": "/^[A-Za-z\\-]+$/.source",
20
- "validation_message": "Letters or - only"
21
- },
22
- {
23
- "name": "create_release"
24
- },
25
- {
26
- "name": "publish_python",
27
- "language": "python"
28
- },
29
- {
30
- "name": "publish_typescript",
31
- "language": "typescript"
32
- },
33
- {
34
- "name": "publish_java",
35
- "language": "java"
36
- },
37
- {
38
- "name": "publish_php",
39
- "language": "php"
40
- },
41
- {
42
- "name": "publish_ruby",
43
- "language": "ruby"
44
- },
45
- {
46
- "name": "publish_csharp",
47
- "language": "csharp"
48
- },
49
- {
50
- "name": "publish_terraform",
51
- "language": "terraform"
52
- }
53
- ]
@@ -1,88 +0,0 @@
1
- [
2
- {
3
- "name": "pypi_token",
4
- "secret_name": "PYPI_TOKEN",
5
- "validation_regex": "/^[\\w.\\-]+$/.source",
6
- "validation_message": "Letters, numbers, or .-_ only",
7
- "language": "python"
8
- },
9
- {
10
- "name": "npm_token",
11
- "secret_name": "NPM_TOKEN",
12
- "validation_regex": "/^[\\w.\\-]+$/.source",
13
- "validation_message": "Letters, numbers, or .-_ only",
14
- "language": "typescript"
15
- },
16
- {
17
- "name": "packagist_username",
18
- "validation_regex": "/^[\\w.\\-]+$/.source",
19
- "validation_message": "Letters, numbers, or .-_ only",
20
- "language": "php"
21
- },
22
- {
23
- "name": "packagist_token",
24
- "validation_regex": "/^[\\w.\\-]+$/.source",
25
- "validation_message": "Letters, numbers, or .-_ only",
26
- "language": "php"
27
- },
28
- {
29
- "name": "openapi_doc_auth_token",
30
- "secret_name": "SPEC_TOKEN",
31
- "validation_regex": "/^[\\w.\\-]+$/.source",
32
- "validation_message": "Letters, numbers, or .-_ only"
33
- },
34
- {
35
- "name": "speakeasy_api_key",
36
- "secret_name": "SPEAKEASY_API_KEY",
37
- "validation_regex": "/^[\\w.\\-]+$/.source",
38
- "validation_message": "Letters, numbers, or .-_ only"
39
- },
40
- {
41
- "name": "ossrh_username",
42
- "secret_name": "MAVEN_USERNAME",
43
- "validation_regex": "/^[\\w.\\-]+$/.source",
44
- "validation_message": "Letters, numbers, or .-_ only",
45
- "language": "java"
46
- },
47
- {
48
- "name": "ossrh_password",
49
- "secret_name": "MAVEN_PASSWORD",
50
- "language": "java"
51
- },
52
- {
53
- "name": "java_gpg_secret_key",
54
- "validation_regex": "/^[\\w.\\-\\t \\r\\n]+$/.source",
55
- "validation_message": "Letters, numbers, tabs, spaces, newlines, or .-_ only",
56
- "language": "java"
57
- },
58
- {
59
- "name": "java_gpg_passphrase",
60
- "language": "java"
61
- },
62
- {
63
- "name": "terraform_gpg_secret_key",
64
- "secret_name": "TERRAFORM_GPG_SECRET_KEY",
65
- "validation_regex": "/^[\\w.\\-\\t \\r\\n]+$/.source",
66
- "validation_message": "Letters, numbers, tabs, spaces, newlines, or .-_ only",
67
- "language": "terraform"
68
- },
69
- {
70
- "name": "terraform_gpg_passphrase",
71
- "secret_name": "TERRAFORM_GPG_PASSPHRASE",
72
- "language": "terraform"
73
- },
74
- {
75
- "name": "rubygems_auth_token",
76
- "secret_name": "RUBYGEMS_AUTH_TOKEN",
77
- "language": "ruby"
78
- },
79
- {
80
- "name": "nuget_api_key",
81
- "secret_name": "NUGET_API_KEY",
82
- "language": "csharp"
83
- },
84
- {
85
- "name": "slack_webhook_url",
86
- "secret_name": "SLACK_WEBHOOK_URL"
87
- }
88
- ]