@steamsets/client-ts 0.12.6 → 0.12.8

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 (92) hide show
  1. package/README.md +37 -22
  2. package/docs/sdks/{apps → meta}/README.md +20 -26
  3. package/docs/sdks/steamsets/README.md +1 -148
  4. package/funcs/{accountV1GetEmbed.d.ts → metaAccountV1GetEmbed.d.ts} +2 -2
  5. package/funcs/metaAccountV1GetEmbed.d.ts.map +1 -0
  6. package/funcs/{accountV1GetEmbed.js → metaAccountV1GetEmbed.js} +3 -3
  7. package/funcs/metaAccountV1GetEmbed.js.map +1 -0
  8. package/funcs/{accountV1GetMeta.d.ts → metaAccountV1GetMeta.d.ts} +2 -2
  9. package/funcs/metaAccountV1GetMeta.d.ts.map +1 -0
  10. package/funcs/{accountV1GetMeta.js → metaAccountV1GetMeta.js} +3 -3
  11. package/funcs/metaAccountV1GetMeta.js.map +1 -0
  12. package/lib/config.d.ts +3 -3
  13. package/lib/config.js +3 -3
  14. package/lib/config.js.map +1 -1
  15. package/models/components/index.d.ts +0 -5
  16. package/models/components/index.d.ts.map +1 -1
  17. package/models/components/index.js +0 -5
  18. package/models/components/index.js.map +1 -1
  19. package/models/operations/index.d.ts +0 -2
  20. package/models/operations/index.d.ts.map +1 -1
  21. package/models/operations/index.js +0 -2
  22. package/models/operations/index.js.map +1 -1
  23. package/package.json +1 -1
  24. package/sdk/meta.d.ts +8 -0
  25. package/sdk/meta.d.ts.map +1 -0
  26. package/sdk/meta.js +20 -0
  27. package/sdk/meta.js.map +1 -0
  28. package/sdk/sdk.d.ts +4 -8
  29. package/sdk/sdk.d.ts.map +1 -1
  30. package/sdk/sdk.js +5 -14
  31. package/sdk/sdk.js.map +1 -1
  32. package/src/funcs/{accountV1GetEmbed.ts → metaAccountV1GetEmbed.ts} +1 -1
  33. package/src/funcs/{accountV1GetMeta.ts → metaAccountV1GetMeta.ts} +1 -1
  34. package/src/lib/config.ts +3 -3
  35. package/src/models/components/index.ts +0 -5
  36. package/src/models/operations/index.ts +0 -2
  37. package/src/sdk/meta.ts +34 -0
  38. package/src/sdk/sdk.ts +7 -34
  39. package/funcs/accountV1GetEmbed.d.ts.map +0 -1
  40. package/funcs/accountV1GetEmbed.js.map +0 -1
  41. package/funcs/accountV1GetMeta.d.ts.map +0 -1
  42. package/funcs/accountV1GetMeta.js.map +0 -1
  43. package/funcs/appsGet.d.ts +0 -11
  44. package/funcs/appsGet.d.ts.map +0 -1
  45. package/funcs/appsGet.js +0 -105
  46. package/funcs/appsGet.js.map +0 -1
  47. package/funcs/appsQueue.d.ts +0 -11
  48. package/funcs/appsQueue.d.ts.map +0 -1
  49. package/funcs/appsQueue.js +0 -103
  50. package/funcs/appsQueue.js.map +0 -1
  51. package/models/components/appsearch.d.ts +0 -28
  52. package/models/components/appsearch.d.ts.map +0 -1
  53. package/models/components/appsearch.js +0 -50
  54. package/models/components/appsearch.js.map +0 -1
  55. package/models/components/v1appdetail.d.ts +0 -154
  56. package/models/components/v1appdetail.d.ts.map +0 -1
  57. package/models/components/v1appdetail.js +0 -106
  58. package/models/components/v1appdetail.js.map +0 -1
  59. package/models/components/v1appitem.d.ts +0 -39
  60. package/models/components/v1appitem.d.ts.map +0 -1
  61. package/models/components/v1appitem.js +0 -64
  62. package/models/components/v1appitem.js.map +0 -1
  63. package/models/components/v1apprequestbody.d.ts +0 -28
  64. package/models/components/v1apprequestbody.d.ts.map +0 -1
  65. package/models/components/v1apprequestbody.js +0 -50
  66. package/models/components/v1apprequestbody.js.map +0 -1
  67. package/models/components/v1appresponsebody.d.ts +0 -43
  68. package/models/components/v1appresponsebody.d.ts.map +0 -1
  69. package/models/components/v1appresponsebody.js +0 -68
  70. package/models/components/v1appresponsebody.js.map +0 -1
  71. package/models/operations/appv1get.d.ts +0 -31
  72. package/models/operations/appv1get.d.ts.map +0 -1
  73. package/models/operations/appv1get.js +0 -64
  74. package/models/operations/appv1get.js.map +0 -1
  75. package/models/operations/appv1queue.d.ts +0 -32
  76. package/models/operations/appv1queue.d.ts.map +0 -1
  77. package/models/operations/appv1queue.js +0 -64
  78. package/models/operations/appv1queue.js.map +0 -1
  79. package/sdk/apps.d.ts +0 -8
  80. package/sdk/apps.d.ts.map +0 -1
  81. package/sdk/apps.js +0 -20
  82. package/sdk/apps.js.map +0 -1
  83. package/src/funcs/appsGet.ts +0 -134
  84. package/src/funcs/appsQueue.ts +0 -132
  85. package/src/models/components/appsearch.ts +0 -48
  86. package/src/models/components/v1appdetail.ts +0 -156
  87. package/src/models/components/v1appitem.ts +0 -73
  88. package/src/models/components/v1apprequestbody.ts +0 -48
  89. package/src/models/components/v1appresponsebody.ts +0 -93
  90. package/src/models/operations/appv1get.ts +0 -64
  91. package/src/models/operations/appv1queue.ts +0 -61
  92. package/src/sdk/apps.ts +0 -34
@@ -1,132 +0,0 @@
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 { safeParse } from "../lib/schemas.js";
9
- import { RequestOptions } from "../lib/sdks.js";
10
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
- import { pathToFunc } from "../lib/url.js";
12
- import * as components from "../models/components/index.js";
13
- import {
14
- ConnectionError,
15
- InvalidRequestError,
16
- RequestAbortedError,
17
- RequestTimeoutError,
18
- UnexpectedClientError,
19
- } from "../models/errors/httpclienterrors.js";
20
- import * as errors from "../models/errors/index.js";
21
- import { SDKError } from "../models/errors/sdkerror.js";
22
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
- import * as operations from "../models/operations/index.js";
24
- import { Result } from "../types/fp.js";
25
-
26
- export async function appsQueue(
27
- client: SteamSetsCore,
28
- request: components.AppSearch,
29
- options?: RequestOptions,
30
- ): Promise<
31
- Result<
32
- operations.AppV1QueueResponse,
33
- | errors.ErrorModel
34
- | SDKError
35
- | SDKValidationError
36
- | UnexpectedClientError
37
- | InvalidRequestError
38
- | RequestAbortedError
39
- | RequestTimeoutError
40
- | ConnectionError
41
- >
42
- > {
43
- const parsed = safeParse(
44
- request,
45
- (value) => components.AppSearch$outboundSchema.parse(value),
46
- "Input validation failed",
47
- );
48
- if (!parsed.ok) {
49
- return parsed;
50
- }
51
- const payload = parsed.value;
52
- const body = encodeJSON("body", payload, { explode: true });
53
-
54
- const path = pathToFunc("/app.v1.AppService/Queue")();
55
-
56
- const headers = new Headers({
57
- "Content-Type": "application/json",
58
- Accept: "application/problem+json",
59
- });
60
-
61
- const secConfig = await extractSecurity(client._options.token);
62
- const securityInput = secConfig == null ? {} : { token: secConfig };
63
- const context = {
64
- operationID: "app.v1.queue",
65
- oAuth2Scopes: [],
66
- securitySource: client._options.token,
67
- };
68
- const requestSecurity = resolveGlobalSecurity(securityInput);
69
-
70
- const requestRes = client._createRequest(context, {
71
- security: requestSecurity,
72
- method: "POST",
73
- path: path,
74
- headers: headers,
75
- body: body,
76
- uaHeader: "x-speakeasy-user-agent",
77
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
- }, options);
79
- if (!requestRes.ok) {
80
- return requestRes;
81
- }
82
- const req = requestRes.value;
83
-
84
- const doResult = await client._do(req, {
85
- context,
86
- errorCodes: ["400", "422", "429", "4XX", "500", "5XX"],
87
- retryConfig: options?.retries
88
- || client._options.retryConfig
89
- || {
90
- strategy: "backoff",
91
- backoff: {
92
- initialInterval: 500,
93
- maxInterval: 60000,
94
- exponent: 1.5,
95
- maxElapsedTime: 3600000,
96
- },
97
- retryConnectionErrors: true,
98
- },
99
- retryCodes: options?.retryCodes || ["500", "501", "502", "503", "504"],
100
- });
101
- if (!doResult.ok) {
102
- return doResult;
103
- }
104
- const response = doResult.value;
105
-
106
- const responseFields = {
107
- HttpMeta: { Response: response, Request: req },
108
- };
109
-
110
- const [result] = await M.match<
111
- operations.AppV1QueueResponse,
112
- | errors.ErrorModel
113
- | SDKError
114
- | SDKValidationError
115
- | UnexpectedClientError
116
- | InvalidRequestError
117
- | RequestAbortedError
118
- | RequestTimeoutError
119
- | ConnectionError
120
- >(
121
- M.nil(204, operations.AppV1QueueResponse$inboundSchema, { hdrs: true }),
122
- M.jsonErr([400, 422, 429, 500], errors.ErrorModel$inboundSchema, {
123
- ctype: "application/problem+json",
124
- }),
125
- M.fail(["4XX", "5XX"]),
126
- )(response, req, { extraFields: responseFields });
127
- if (!result.ok) {
128
- return result;
129
- }
130
-
131
- return result;
132
- }
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type AppSearch = {
8
- /**
9
- * The app id to search for
10
- */
11
- id: number;
12
- };
13
-
14
- /** @internal */
15
- export const AppSearch$inboundSchema: z.ZodType<
16
- AppSearch,
17
- z.ZodTypeDef,
18
- unknown
19
- > = z.object({
20
- id: z.number().int(),
21
- });
22
-
23
- /** @internal */
24
- export type AppSearch$Outbound = {
25
- id: number;
26
- };
27
-
28
- /** @internal */
29
- export const AppSearch$outboundSchema: z.ZodType<
30
- AppSearch$Outbound,
31
- z.ZodTypeDef,
32
- AppSearch
33
- > = z.object({
34
- id: z.number().int(),
35
- });
36
-
37
- /**
38
- * @internal
39
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
- */
41
- export namespace AppSearch$ {
42
- /** @deprecated use `AppSearch$inboundSchema` instead. */
43
- export const inboundSchema = AppSearch$inboundSchema;
44
- /** @deprecated use `AppSearch$outboundSchema` instead. */
45
- export const outboundSchema = AppSearch$outboundSchema;
46
- /** @deprecated use `AppSearch$Outbound` instead. */
47
- export type Outbound = AppSearch$Outbound;
48
- }
@@ -1,156 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * The app type
10
- */
11
- export const V1AppDetailType = {
12
- Invalid: "invalid",
13
- Game: "game",
14
- Application: "application",
15
- Tool: "tool",
16
- Demo: "demo",
17
- Deprecated: "deprecated",
18
- Dlc: "dlc",
19
- Guide: "guide",
20
- Driver: "driver",
21
- Config: "config",
22
- Hardware: "hardware",
23
- Franchise: "franchise",
24
- Video: "video",
25
- Plugin: "plugin",
26
- Music: "music",
27
- Series: "series",
28
- Comic: "comic",
29
- Beta: "beta",
30
- Shortcut: "shortcut",
31
- DepotOnly: "depot_only",
32
- } as const;
33
- /**
34
- * The app type
35
- */
36
- export type V1AppDetailType = ClosedEnum<typeof V1AppDetailType>;
37
-
38
- export type V1AppDetail = {
39
- /**
40
- * The app id
41
- */
42
- appId: number;
43
- /**
44
- * The app image hash
45
- */
46
- image: string;
47
- /**
48
- * Whether the app is an event
49
- */
50
- isEvent: boolean;
51
- /**
52
- * Whether the app is a sale
53
- */
54
- isSale: boolean;
55
- /**
56
- * The apps id on itad
57
- */
58
- itadId: string;
59
- /**
60
- * The app name
61
- */
62
- name: string;
63
- /**
64
- * The app price
65
- */
66
- price: number;
67
- /**
68
- * The app short name
69
- */
70
- shortName: string;
71
- /**
72
- * The app type
73
- */
74
- type: V1AppDetailType;
75
- };
76
-
77
- /** @internal */
78
- export const V1AppDetailType$inboundSchema: z.ZodNativeEnum<
79
- typeof V1AppDetailType
80
- > = z.nativeEnum(V1AppDetailType);
81
-
82
- /** @internal */
83
- export const V1AppDetailType$outboundSchema: z.ZodNativeEnum<
84
- typeof V1AppDetailType
85
- > = V1AppDetailType$inboundSchema;
86
-
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export namespace V1AppDetailType$ {
92
- /** @deprecated use `V1AppDetailType$inboundSchema` instead. */
93
- export const inboundSchema = V1AppDetailType$inboundSchema;
94
- /** @deprecated use `V1AppDetailType$outboundSchema` instead. */
95
- export const outboundSchema = V1AppDetailType$outboundSchema;
96
- }
97
-
98
- /** @internal */
99
- export const V1AppDetail$inboundSchema: z.ZodType<
100
- V1AppDetail,
101
- z.ZodTypeDef,
102
- unknown
103
- > = z.object({
104
- appId: z.number().int(),
105
- image: z.string(),
106
- isEvent: z.boolean(),
107
- isSale: z.boolean(),
108
- itadId: z.string(),
109
- name: z.string(),
110
- price: z.number().int(),
111
- shortName: z.string(),
112
- type: V1AppDetailType$inboundSchema,
113
- });
114
-
115
- /** @internal */
116
- export type V1AppDetail$Outbound = {
117
- appId: number;
118
- image: string;
119
- isEvent: boolean;
120
- isSale: boolean;
121
- itadId: string;
122
- name: string;
123
- price: number;
124
- shortName: string;
125
- type: string;
126
- };
127
-
128
- /** @internal */
129
- export const V1AppDetail$outboundSchema: z.ZodType<
130
- V1AppDetail$Outbound,
131
- z.ZodTypeDef,
132
- V1AppDetail
133
- > = z.object({
134
- appId: z.number().int(),
135
- image: z.string(),
136
- isEvent: z.boolean(),
137
- isSale: z.boolean(),
138
- itadId: z.string(),
139
- name: z.string(),
140
- price: z.number().int(),
141
- shortName: z.string(),
142
- type: V1AppDetailType$outboundSchema,
143
- });
144
-
145
- /**
146
- * @internal
147
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
- */
149
- export namespace V1AppDetail$ {
150
- /** @deprecated use `V1AppDetail$inboundSchema` instead. */
151
- export const inboundSchema = V1AppDetail$inboundSchema;
152
- /** @deprecated use `V1AppDetail$outboundSchema` instead. */
153
- export const outboundSchema = V1AppDetail$outboundSchema;
154
- /** @deprecated use `V1AppDetail$Outbound` instead. */
155
- export type Outbound = V1AppDetail$Outbound;
156
- }
@@ -1,73 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type V1AppItem = {
8
- cost: number;
9
- description: string;
10
- largeImage: string;
11
- name: string;
12
- publicId: string;
13
- smallImage: string;
14
- title: string;
15
- type: string;
16
- };
17
-
18
- /** @internal */
19
- export const V1AppItem$inboundSchema: z.ZodType<
20
- V1AppItem,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- cost: z.number().int(),
25
- description: z.string(),
26
- largeImage: z.string(),
27
- name: z.string(),
28
- publicId: z.string(),
29
- smallImage: z.string(),
30
- title: z.string(),
31
- type: z.string(),
32
- });
33
-
34
- /** @internal */
35
- export type V1AppItem$Outbound = {
36
- cost: number;
37
- description: string;
38
- largeImage: string;
39
- name: string;
40
- publicId: string;
41
- smallImage: string;
42
- title: string;
43
- type: string;
44
- };
45
-
46
- /** @internal */
47
- export const V1AppItem$outboundSchema: z.ZodType<
48
- V1AppItem$Outbound,
49
- z.ZodTypeDef,
50
- V1AppItem
51
- > = z.object({
52
- cost: z.number().int(),
53
- description: z.string(),
54
- largeImage: z.string(),
55
- name: z.string(),
56
- publicId: z.string(),
57
- smallImage: z.string(),
58
- title: z.string(),
59
- type: z.string(),
60
- });
61
-
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export namespace V1AppItem$ {
67
- /** @deprecated use `V1AppItem$inboundSchema` instead. */
68
- export const inboundSchema = V1AppItem$inboundSchema;
69
- /** @deprecated use `V1AppItem$outboundSchema` instead. */
70
- export const outboundSchema = V1AppItem$outboundSchema;
71
- /** @deprecated use `V1AppItem$Outbound` instead. */
72
- export type Outbound = V1AppItem$Outbound;
73
- }
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
-
7
- export type V1AppRequestBody = {
8
- /**
9
- * The app id
10
- */
11
- appId: number;
12
- };
13
-
14
- /** @internal */
15
- export const V1AppRequestBody$inboundSchema: z.ZodType<
16
- V1AppRequestBody,
17
- z.ZodTypeDef,
18
- unknown
19
- > = z.object({
20
- appId: z.number().int(),
21
- });
22
-
23
- /** @internal */
24
- export type V1AppRequestBody$Outbound = {
25
- appId: number;
26
- };
27
-
28
- /** @internal */
29
- export const V1AppRequestBody$outboundSchema: z.ZodType<
30
- V1AppRequestBody$Outbound,
31
- z.ZodTypeDef,
32
- V1AppRequestBody
33
- > = z.object({
34
- appId: z.number().int(),
35
- });
36
-
37
- /**
38
- * @internal
39
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
- */
41
- export namespace V1AppRequestBody$ {
42
- /** @deprecated use `V1AppRequestBody$inboundSchema` instead. */
43
- export const inboundSchema = V1AppRequestBody$inboundSchema;
44
- /** @deprecated use `V1AppRequestBody$outboundSchema` instead. */
45
- export const outboundSchema = V1AppRequestBody$outboundSchema;
46
- /** @deprecated use `V1AppRequestBody$Outbound` instead. */
47
- export type Outbound = V1AppRequestBody$Outbound;
48
- }
@@ -1,93 +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 {
8
- V1AppBadge,
9
- V1AppBadge$inboundSchema,
10
- V1AppBadge$Outbound,
11
- V1AppBadge$outboundSchema,
12
- } from "./v1appbadge.js";
13
- import {
14
- V1AppDetail,
15
- V1AppDetail$inboundSchema,
16
- V1AppDetail$Outbound,
17
- V1AppDetail$outboundSchema,
18
- } from "./v1appdetail.js";
19
- import {
20
- V1AppItem,
21
- V1AppItem$inboundSchema,
22
- V1AppItem$Outbound,
23
- V1AppItem$outboundSchema,
24
- } from "./v1appitem.js";
25
-
26
- export type V1AppResponseBody = {
27
- /**
28
- * A URL to the JSON Schema for this object.
29
- */
30
- dollarSchema?: string | undefined;
31
- /**
32
- * The badges
33
- */
34
- badges: Array<V1AppBadge> | null;
35
- detail: V1AppDetail;
36
- /**
37
- * The items
38
- */
39
- items: Array<V1AppItem> | null;
40
- };
41
-
42
- /** @internal */
43
- export const V1AppResponseBody$inboundSchema: z.ZodType<
44
- V1AppResponseBody,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- $schema: z.string().optional(),
49
- badges: z.nullable(z.array(V1AppBadge$inboundSchema)),
50
- detail: V1AppDetail$inboundSchema,
51
- items: z.nullable(z.array(V1AppItem$inboundSchema)),
52
- }).transform((v) => {
53
- return remap$(v, {
54
- "$schema": "dollarSchema",
55
- });
56
- });
57
-
58
- /** @internal */
59
- export type V1AppResponseBody$Outbound = {
60
- $schema?: string | undefined;
61
- badges: Array<V1AppBadge$Outbound> | null;
62
- detail: V1AppDetail$Outbound;
63
- items: Array<V1AppItem$Outbound> | null;
64
- };
65
-
66
- /** @internal */
67
- export const V1AppResponseBody$outboundSchema: z.ZodType<
68
- V1AppResponseBody$Outbound,
69
- z.ZodTypeDef,
70
- V1AppResponseBody
71
- > = z.object({
72
- dollarSchema: z.string().optional(),
73
- badges: z.nullable(z.array(V1AppBadge$outboundSchema)),
74
- detail: V1AppDetail$outboundSchema,
75
- items: z.nullable(z.array(V1AppItem$outboundSchema)),
76
- }).transform((v) => {
77
- return remap$(v, {
78
- dollarSchema: "$schema",
79
- });
80
- });
81
-
82
- /**
83
- * @internal
84
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
- */
86
- export namespace V1AppResponseBody$ {
87
- /** @deprecated use `V1AppResponseBody$inboundSchema` instead. */
88
- export const inboundSchema = V1AppResponseBody$inboundSchema;
89
- /** @deprecated use `V1AppResponseBody$outboundSchema` instead. */
90
- export const outboundSchema = V1AppResponseBody$outboundSchema;
91
- /** @deprecated use `V1AppResponseBody$Outbound` instead. */
92
- export type Outbound = V1AppResponseBody$Outbound;
93
- }
@@ -1,64 +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 * as components from "../components/index.js";
8
-
9
- export type AppV1GetResponse = {
10
- httpMeta: components.HTTPMetadata;
11
- /**
12
- * OK
13
- */
14
- v1AppResponseBody?: components.V1AppResponseBody | undefined;
15
- };
16
-
17
- /** @internal */
18
- export const AppV1GetResponse$inboundSchema: z.ZodType<
19
- AppV1GetResponse,
20
- z.ZodTypeDef,
21
- unknown
22
- > = z.object({
23
- HttpMeta: components.HTTPMetadata$inboundSchema,
24
- V1AppResponseBody: components.V1AppResponseBody$inboundSchema.optional(),
25
- }).transform((v) => {
26
- return remap$(v, {
27
- "HttpMeta": "httpMeta",
28
- "V1AppResponseBody": "v1AppResponseBody",
29
- });
30
- });
31
-
32
- /** @internal */
33
- export type AppV1GetResponse$Outbound = {
34
- HttpMeta: components.HTTPMetadata$Outbound;
35
- V1AppResponseBody?: components.V1AppResponseBody$Outbound | undefined;
36
- };
37
-
38
- /** @internal */
39
- export const AppV1GetResponse$outboundSchema: z.ZodType<
40
- AppV1GetResponse$Outbound,
41
- z.ZodTypeDef,
42
- AppV1GetResponse
43
- > = z.object({
44
- httpMeta: components.HTTPMetadata$outboundSchema,
45
- v1AppResponseBody: components.V1AppResponseBody$outboundSchema.optional(),
46
- }).transform((v) => {
47
- return remap$(v, {
48
- httpMeta: "HttpMeta",
49
- v1AppResponseBody: "V1AppResponseBody",
50
- });
51
- });
52
-
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- export namespace AppV1GetResponse$ {
58
- /** @deprecated use `AppV1GetResponse$inboundSchema` instead. */
59
- export const inboundSchema = AppV1GetResponse$inboundSchema;
60
- /** @deprecated use `AppV1GetResponse$outboundSchema` instead. */
61
- export const outboundSchema = AppV1GetResponse$outboundSchema;
62
- /** @deprecated use `AppV1GetResponse$Outbound` instead. */
63
- export type Outbound = AppV1GetResponse$Outbound;
64
- }
@@ -1,61 +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 * as components from "../components/index.js";
8
-
9
- export type AppV1QueueResponse = {
10
- httpMeta: components.HTTPMetadata;
11
- headers: { [k: string]: Array<string> };
12
- };
13
-
14
- /** @internal */
15
- export const AppV1QueueResponse$inboundSchema: z.ZodType<
16
- AppV1QueueResponse,
17
- z.ZodTypeDef,
18
- unknown
19
- > = z.object({
20
- HttpMeta: components.HTTPMetadata$inboundSchema,
21
- Headers: z.record(z.array(z.string())),
22
- }).transform((v) => {
23
- return remap$(v, {
24
- "HttpMeta": "httpMeta",
25
- "Headers": "headers",
26
- });
27
- });
28
-
29
- /** @internal */
30
- export type AppV1QueueResponse$Outbound = {
31
- HttpMeta: components.HTTPMetadata$Outbound;
32
- Headers: { [k: string]: Array<string> };
33
- };
34
-
35
- /** @internal */
36
- export const AppV1QueueResponse$outboundSchema: z.ZodType<
37
- AppV1QueueResponse$Outbound,
38
- z.ZodTypeDef,
39
- AppV1QueueResponse
40
- > = z.object({
41
- httpMeta: components.HTTPMetadata$outboundSchema,
42
- headers: z.record(z.array(z.string())),
43
- }).transform((v) => {
44
- return remap$(v, {
45
- httpMeta: "HttpMeta",
46
- headers: "Headers",
47
- });
48
- });
49
-
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export namespace AppV1QueueResponse$ {
55
- /** @deprecated use `AppV1QueueResponse$inboundSchema` instead. */
56
- export const inboundSchema = AppV1QueueResponse$inboundSchema;
57
- /** @deprecated use `AppV1QueueResponse$outboundSchema` instead. */
58
- export const outboundSchema = AppV1QueueResponse$outboundSchema;
59
- /** @deprecated use `AppV1QueueResponse$Outbound` instead. */
60
- export type Outbound = AppV1QueueResponse$Outbound;
61
- }