@steamsets/client-ts 0.14.16 → 0.14.18

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 (49) hide show
  1. package/docs/sdks/connections/README.md +3 -3
  2. package/funcs/connectionsConnect.d.ts +1 -1
  3. package/funcs/connectionsConnect.d.ts.map +1 -1
  4. package/funcs/connectionsConnect.js +2 -2
  5. package/funcs/connectionsConnect.js.map +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +2 -2
  8. package/lib/config.js +2 -2
  9. package/models/components/connection.d.ts +13 -8
  10. package/models/components/connection.d.ts.map +1 -1
  11. package/models/components/connection.js +16 -13
  12. package/models/components/connection.js.map +1 -1
  13. package/models/components/index.d.ts +2 -2
  14. package/models/components/index.d.ts.map +1 -1
  15. package/models/components/index.js +2 -2
  16. package/models/components/index.js.map +1 -1
  17. package/models/components/v1reconnectrequestbody.d.ts +37 -0
  18. package/models/components/v1reconnectrequestbody.d.ts.map +1 -0
  19. package/models/components/v1reconnectrequestbody.js +61 -0
  20. package/models/components/v1reconnectrequestbody.js.map +1 -0
  21. package/models/components/v1reconnectresponsebody.d.ts +32 -0
  22. package/models/components/v1reconnectresponsebody.d.ts.map +1 -0
  23. package/models/components/{v1connectresponsebody.js → v1reconnectresponsebody.js} +17 -21
  24. package/models/components/v1reconnectresponsebody.js.map +1 -0
  25. package/models/operations/accountv1connectionconnect.d.ts +2 -2
  26. package/models/operations/accountv1connectionconnect.d.ts.map +1 -1
  27. package/models/operations/accountv1connectionconnect.js +4 -4
  28. package/models/operations/accountv1connectionconnect.js.map +1 -1
  29. package/package.json +1 -1
  30. package/sdk/connections.d.ts +1 -1
  31. package/sdk/connections.d.ts.map +1 -1
  32. package/sdk/connections.js.map +1 -1
  33. package/src/funcs/connectionsConnect.ts +3 -3
  34. package/src/lib/config.ts +2 -2
  35. package/src/models/components/connection.ts +21 -16
  36. package/src/models/components/index.ts +2 -2
  37. package/src/models/components/v1reconnectrequestbody.ts +76 -0
  38. package/src/models/components/v1reconnectresponsebody.ts +78 -0
  39. package/src/models/operations/accountv1connectionconnect.ts +8 -6
  40. package/src/sdk/connections.ts +1 -1
  41. package/models/components/v1connectrequestbody.d.ts +0 -87
  42. package/models/components/v1connectrequestbody.d.ts.map +0 -1
  43. package/models/components/v1connectrequestbody.js +0 -90
  44. package/models/components/v1connectrequestbody.js.map +0 -1
  45. package/models/components/v1connectresponsebody.d.ts +0 -42
  46. package/models/components/v1connectresponsebody.d.ts.map +0 -1
  47. package/models/components/v1connectresponsebody.js.map +0 -1
  48. package/src/models/components/v1connectrequestbody.ts +0 -114
  49. package/src/models/components/v1connectresponsebody.ts +0 -92
@@ -1,42 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type V1ConnectResponseBody = {
5
- /**
6
- * A URL to the JSON Schema for this object.
7
- */
8
- dollarSchema?: string | undefined;
9
- /**
10
- * Code that has to be used to verify domain connections
11
- */
12
- code: string;
13
- /**
14
- * Public ID of the connection only for domain connections
15
- */
16
- connectionId?: string | null | undefined;
17
- };
18
- /** @internal */
19
- export declare const V1ConnectResponseBody$inboundSchema: z.ZodType<V1ConnectResponseBody, z.ZodTypeDef, unknown>;
20
- /** @internal */
21
- export type V1ConnectResponseBody$Outbound = {
22
- $schema?: string | undefined;
23
- code: string;
24
- connectionId?: string | null | undefined;
25
- };
26
- /** @internal */
27
- export declare const V1ConnectResponseBody$outboundSchema: z.ZodType<V1ConnectResponseBody$Outbound, z.ZodTypeDef, V1ConnectResponseBody>;
28
- /**
29
- * @internal
30
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
- */
32
- export declare namespace V1ConnectResponseBody$ {
33
- /** @deprecated use `V1ConnectResponseBody$inboundSchema` instead. */
34
- const inboundSchema: z.ZodType<V1ConnectResponseBody, z.ZodTypeDef, unknown>;
35
- /** @deprecated use `V1ConnectResponseBody$outboundSchema` instead. */
36
- const outboundSchema: z.ZodType<V1ConnectResponseBody$Outbound, z.ZodTypeDef, V1ConnectResponseBody>;
37
- /** @deprecated use `V1ConnectResponseBody$Outbound` instead. */
38
- type Outbound = V1ConnectResponseBody$Outbound;
39
- }
40
- export declare function v1ConnectResponseBodyToJSON(v1ConnectResponseBody: V1ConnectResponseBody): string;
41
- export declare function v1ConnectResponseBodyFromJSON(jsonString: string): SafeParseResult<V1ConnectResponseBody, SDKValidationError>;
42
- //# sourceMappingURL=v1connectresponsebody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1connectresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1connectresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CASrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1connectresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1connectresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEH,kEAMC;AAED,sEAQC;AAvFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAmBjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -1,114 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- /**
12
- * The provider to connect with
13
- */
14
- export const Provider = {
15
- Discord: "discord",
16
- Patreon: "patreon",
17
- Kick: "kick",
18
- Reddit: "reddit",
19
- Twitch: "twitch",
20
- Youtube: "youtube",
21
- X: "x",
22
- Domain: "domain",
23
- } as const;
24
- /**
25
- * The provider to connect with
26
- */
27
- export type Provider = ClosedEnum<typeof Provider>;
28
-
29
- export type V1ConnectRequestBody = {
30
- /**
31
- * The code from the oauth2 provider to verify
32
- */
33
- code: string;
34
- /**
35
- * The provider to connect with
36
- */
37
- provider: Provider;
38
- };
39
-
40
- /** @internal */
41
- export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
42
- .nativeEnum(Provider);
43
-
44
- /** @internal */
45
- export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
46
- Provider$inboundSchema;
47
-
48
- /**
49
- * @internal
50
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
- */
52
- export namespace Provider$ {
53
- /** @deprecated use `Provider$inboundSchema` instead. */
54
- export const inboundSchema = Provider$inboundSchema;
55
- /** @deprecated use `Provider$outboundSchema` instead. */
56
- export const outboundSchema = Provider$outboundSchema;
57
- }
58
-
59
- /** @internal */
60
- export const V1ConnectRequestBody$inboundSchema: z.ZodType<
61
- V1ConnectRequestBody,
62
- z.ZodTypeDef,
63
- unknown
64
- > = z.object({
65
- code: z.string(),
66
- provider: Provider$inboundSchema,
67
- });
68
-
69
- /** @internal */
70
- export type V1ConnectRequestBody$Outbound = {
71
- code: string;
72
- provider: string;
73
- };
74
-
75
- /** @internal */
76
- export const V1ConnectRequestBody$outboundSchema: z.ZodType<
77
- V1ConnectRequestBody$Outbound,
78
- z.ZodTypeDef,
79
- V1ConnectRequestBody
80
- > = z.object({
81
- code: z.string(),
82
- provider: Provider$outboundSchema,
83
- });
84
-
85
- /**
86
- * @internal
87
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
88
- */
89
- export namespace V1ConnectRequestBody$ {
90
- /** @deprecated use `V1ConnectRequestBody$inboundSchema` instead. */
91
- export const inboundSchema = V1ConnectRequestBody$inboundSchema;
92
- /** @deprecated use `V1ConnectRequestBody$outboundSchema` instead. */
93
- export const outboundSchema = V1ConnectRequestBody$outboundSchema;
94
- /** @deprecated use `V1ConnectRequestBody$Outbound` instead. */
95
- export type Outbound = V1ConnectRequestBody$Outbound;
96
- }
97
-
98
- export function v1ConnectRequestBodyToJSON(
99
- v1ConnectRequestBody: V1ConnectRequestBody,
100
- ): string {
101
- return JSON.stringify(
102
- V1ConnectRequestBody$outboundSchema.parse(v1ConnectRequestBody),
103
- );
104
- }
105
-
106
- export function v1ConnectRequestBodyFromJSON(
107
- jsonString: string,
108
- ): SafeParseResult<V1ConnectRequestBody, SDKValidationError> {
109
- return safeParse(
110
- jsonString,
111
- (x) => V1ConnectRequestBody$inboundSchema.parse(JSON.parse(x)),
112
- `Failed to parse 'V1ConnectRequestBody' from JSON`,
113
- );
114
- }
@@ -1,92 +0,0 @@
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 V1ConnectResponseBody = {
12
- /**
13
- * A URL to the JSON Schema for this object.
14
- */
15
- dollarSchema?: string | undefined;
16
- /**
17
- * Code that has to be used to verify domain connections
18
- */
19
- code: string;
20
- /**
21
- * Public ID of the connection only for domain connections
22
- */
23
- connectionId?: string | null | undefined;
24
- };
25
-
26
- /** @internal */
27
- export const V1ConnectResponseBody$inboundSchema: z.ZodType<
28
- V1ConnectResponseBody,
29
- z.ZodTypeDef,
30
- unknown
31
- > = z.object({
32
- $schema: z.string().optional(),
33
- code: z.string(),
34
- connectionId: z.nullable(z.string()).optional(),
35
- }).transform((v) => {
36
- return remap$(v, {
37
- "$schema": "dollarSchema",
38
- });
39
- });
40
-
41
- /** @internal */
42
- export type V1ConnectResponseBody$Outbound = {
43
- $schema?: string | undefined;
44
- code: string;
45
- connectionId?: string | null | undefined;
46
- };
47
-
48
- /** @internal */
49
- export const V1ConnectResponseBody$outboundSchema: z.ZodType<
50
- V1ConnectResponseBody$Outbound,
51
- z.ZodTypeDef,
52
- V1ConnectResponseBody
53
- > = z.object({
54
- dollarSchema: z.string().optional(),
55
- code: z.string(),
56
- connectionId: z.nullable(z.string()).optional(),
57
- }).transform((v) => {
58
- return remap$(v, {
59
- dollarSchema: "$schema",
60
- });
61
- });
62
-
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- export namespace V1ConnectResponseBody$ {
68
- /** @deprecated use `V1ConnectResponseBody$inboundSchema` instead. */
69
- export const inboundSchema = V1ConnectResponseBody$inboundSchema;
70
- /** @deprecated use `V1ConnectResponseBody$outboundSchema` instead. */
71
- export const outboundSchema = V1ConnectResponseBody$outboundSchema;
72
- /** @deprecated use `V1ConnectResponseBody$Outbound` instead. */
73
- export type Outbound = V1ConnectResponseBody$Outbound;
74
- }
75
-
76
- export function v1ConnectResponseBodyToJSON(
77
- v1ConnectResponseBody: V1ConnectResponseBody,
78
- ): string {
79
- return JSON.stringify(
80
- V1ConnectResponseBody$outboundSchema.parse(v1ConnectResponseBody),
81
- );
82
- }
83
-
84
- export function v1ConnectResponseBodyFromJSON(
85
- jsonString: string,
86
- ): SafeParseResult<V1ConnectResponseBody, SDKValidationError> {
87
- return safeParse(
88
- jsonString,
89
- (x) => V1ConnectResponseBody$inboundSchema.parse(JSON.parse(x)),
90
- `Failed to parse 'V1ConnectResponseBody' from JSON`,
91
- );
92
- }