@vercel/sdk 1.6.2 → 1.6.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 (188) hide show
  1. package/README.md +0 -10
  2. package/bin/mcp-server.js +1163 -2379
  3. package/bin/mcp-server.js.map +23 -38
  4. package/docs/sdks/integrations/README.md +0 -161
  5. package/docs/sdks/logdrains/README.md +0 -260
  6. package/esm/__tests__/integrations.test.js +5 -40
  7. package/esm/__tests__/integrations.test.js.map +1 -1
  8. package/esm/__tests__/logdrains.test.js +7 -89
  9. package/esm/__tests__/logdrains.test.js.map +1 -1
  10. package/esm/__tests__/security.test.js +1 -14
  11. package/esm/__tests__/security.test.js.map +1 -1
  12. package/esm/funcs/projectsCreateProject.js +2 -2
  13. package/esm/funcs/projectsCreateProject.js.map +1 -1
  14. package/esm/lib/config.d.ts +3 -3
  15. package/esm/lib/config.js +3 -3
  16. package/esm/lib/matchers.d.ts +3 -1
  17. package/esm/lib/matchers.d.ts.map +1 -1
  18. package/esm/lib/matchers.js +10 -0
  19. package/esm/lib/matchers.js.map +1 -1
  20. package/esm/lib/sdks.js +7 -2
  21. package/esm/lib/sdks.js.map +1 -1
  22. package/esm/mcp-server/mcp-server.js +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +1 -11
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/models/authuser.d.ts +41 -0
  27. package/esm/models/authuser.d.ts.map +1 -1
  28. package/esm/models/authuser.js +29 -0
  29. package/esm/models/authuser.js.map +1 -1
  30. package/esm/models/canceldeploymentop.d.ts +3 -3
  31. package/esm/models/canceldeploymentop.js +1 -1
  32. package/esm/models/canceldeploymentop.js.map +1 -1
  33. package/esm/models/createlogdrainop.d.ts +51 -51
  34. package/esm/models/createlogdrainop.d.ts.map +1 -1
  35. package/esm/models/createlogdrainop.js +74 -75
  36. package/esm/models/createlogdrainop.js.map +1 -1
  37. package/esm/models/createprojectop.d.ts +46 -16
  38. package/esm/models/createprojectop.d.ts.map +1 -1
  39. package/esm/models/createprojectop.js +17 -5
  40. package/esm/models/createprojectop.js.map +1 -1
  41. package/esm/models/exchangessotokenop.d.ts +34 -0
  42. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  43. package/esm/models/exchangessotokenop.js +25 -0
  44. package/esm/models/exchangessotokenop.js.map +1 -1
  45. package/esm/models/getconfigurationsop.d.ts +19 -16
  46. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  47. package/esm/models/getconfigurationsop.js +25 -27
  48. package/esm/models/getconfigurationsop.js.map +1 -1
  49. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  50. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  51. package/esm/models/getcustomenvironmentop.js.map +1 -1
  52. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  53. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  54. package/esm/models/getintegrationlogdrainsop.js +14 -13
  55. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  56. package/esm/models/getprojectsop.d.ts +46 -16
  57. package/esm/models/getprojectsop.d.ts.map +1 -1
  58. package/esm/models/getprojectsop.js +17 -5
  59. package/esm/models/getprojectsop.js.map +1 -1
  60. package/esm/models/getteammembersop.d.ts +9 -9
  61. package/esm/models/getteammembersop.js +3 -3
  62. package/esm/models/getteammembersop.js.map +1 -1
  63. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  64. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  65. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  66. package/esm/models/updateprojectdatacacheop.d.ts +46 -16
  67. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  68. package/esm/models/updateprojectdatacacheop.js +17 -5
  69. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  70. package/esm/models/updateprojectop.d.ts +46 -16
  71. package/esm/models/updateprojectop.d.ts.map +1 -1
  72. package/esm/models/updateprojectop.js +17 -5
  73. package/esm/models/updateprojectop.js.map +1 -1
  74. package/esm/models/userevent.d.ts +569 -512
  75. package/esm/models/userevent.d.ts.map +1 -1
  76. package/esm/models/userevent.js +703 -645
  77. package/esm/models/userevent.js.map +1 -1
  78. package/esm/sdk/integrations.d.ts +0 -16
  79. package/esm/sdk/integrations.d.ts.map +1 -1
  80. package/esm/sdk/integrations.js +0 -20
  81. package/esm/sdk/integrations.js.map +1 -1
  82. package/esm/sdk/logdrains.d.ts +0 -24
  83. package/esm/sdk/logdrains.d.ts.map +1 -1
  84. package/esm/sdk/logdrains.js +0 -30
  85. package/esm/sdk/logdrains.js.map +1 -1
  86. package/jsr.json +1 -1
  87. package/package.json +1 -1
  88. package/src/__tests__/integrations.test.ts +9 -44
  89. package/src/__tests__/logdrains.test.ts +13 -95
  90. package/src/__tests__/security.test.ts +1 -14
  91. package/src/funcs/projectsCreateProject.ts +2 -2
  92. package/src/lib/config.ts +3 -3
  93. package/src/lib/matchers.ts +20 -0
  94. package/src/lib/sdks.ts +8 -2
  95. package/src/mcp-server/mcp-server.ts +1 -1
  96. package/src/mcp-server/server.ts +1 -11
  97. package/src/models/authuser.ts +74 -0
  98. package/src/models/canceldeploymentop.ts +1 -1
  99. package/src/models/createlogdrainop.ts +95 -112
  100. package/src/models/createprojectop.ts +42 -6
  101. package/src/models/exchangessotokenop.ts +44 -0
  102. package/src/models/getconfigurationsop.ts +34 -39
  103. package/src/models/getcustomenvironmentop.ts +3 -0
  104. package/src/models/getintegrationlogdrainsop.ts +15 -20
  105. package/src/models/getprojectsop.ts +42 -6
  106. package/src/models/getteammembersop.ts +3 -3
  107. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  108. package/src/models/updateprojectdatacacheop.ts +42 -6
  109. package/src/models/updateprojectop.ts +42 -6
  110. package/src/models/userevent.ts +1328 -1193
  111. package/src/sdk/integrations.ts +0 -44
  112. package/src/sdk/logdrains.ts +0 -66
  113. package/vercel-spec.json +341 -1272
  114. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  115. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  116. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  117. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  118. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  119. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  120. package/esm/funcs/integrationsSearchRepo.js +0 -89
  121. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  122. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  123. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  124. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
  125. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  126. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  127. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  128. package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
  129. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  130. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  131. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  132. package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
  133. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  134. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  135. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  136. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  137. package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
  138. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  139. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  140. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  141. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  142. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  143. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  144. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  145. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  146. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  147. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  148. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  149. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  150. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  151. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  152. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  153. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  154. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  155. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  156. package/esm/models/createconfigurablelogdrainop.js +0 -348
  157. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  158. package/esm/models/getalllogdrainsop.d.ts +0 -294
  159. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  160. package/esm/models/getalllogdrainsop.js +0 -231
  161. package/esm/models/getalllogdrainsop.js.map +0 -1
  162. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  163. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  164. package/esm/models/getconfigurablelogdrainop.js +0 -230
  165. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  166. package/esm/models/gitnamespacesop.d.ts +0 -126
  167. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  168. package/esm/models/gitnamespacesop.js +0 -115
  169. package/esm/models/gitnamespacesop.js.map +0 -1
  170. package/esm/models/searchrepoop.d.ts +0 -421
  171. package/esm/models/searchrepoop.d.ts.map +0 -1
  172. package/esm/models/searchrepoop.js +0 -385
  173. package/esm/models/searchrepoop.js.map +0 -1
  174. package/src/funcs/integrationsGitNamespaces.ts +0 -185
  175. package/src/funcs/integrationsSearchRepo.ts +0 -181
  176. package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
  177. package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
  178. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  179. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  180. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  181. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  182. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  183. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  184. package/src/models/createconfigurablelogdrainop.ts +0 -652
  185. package/src/models/getalllogdrainsop.ts +0 -416
  186. package/src/models/getconfigurablelogdrainop.ts +0 -420
  187. package/src/models/gitnamespacesop.ts +0 -235
  188. package/src/models/searchrepoop.ts +0 -784
@@ -1,416 +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 "./sdkvalidationerror.js";
10
-
11
- export type GetAllLogDrainsRequest = {
12
- projectId?: string | undefined;
13
- projectIdOrName?: string | undefined;
14
- /**
15
- * The Team identifier to perform the request on behalf of.
16
- */
17
- teamId?: string | undefined;
18
- /**
19
- * The Team slug to perform the request on behalf of.
20
- */
21
- slug?: string | undefined;
22
- };
23
-
24
- export const GetAllLogDrainsSources = {
25
- Build: "build",
26
- Edge: "edge",
27
- Lambda: "lambda",
28
- Static: "static",
29
- External: "external",
30
- Firewall: "firewall",
31
- } as const;
32
- export type GetAllLogDrainsSources = ClosedEnum<typeof GetAllLogDrainsSources>;
33
-
34
- export const GetAllLogDrainsEnvironments = {
35
- Production: "production",
36
- Preview: "preview",
37
- } as const;
38
- export type GetAllLogDrainsEnvironments = ClosedEnum<
39
- typeof GetAllLogDrainsEnvironments
40
- >;
41
-
42
- export const GetAllLogDrainsCreatedFrom = {
43
- SelfServed: "self-served",
44
- Integration: "integration",
45
- } as const;
46
- export type GetAllLogDrainsCreatedFrom = ClosedEnum<
47
- typeof GetAllLogDrainsCreatedFrom
48
- >;
49
-
50
- export const GetAllLogDrainsDeliveryFormat = {
51
- Json: "json",
52
- Ndjson: "ndjson",
53
- Syslog: "syslog",
54
- Protobuf: "protobuf",
55
- } as const;
56
- export type GetAllLogDrainsDeliveryFormat = ClosedEnum<
57
- typeof GetAllLogDrainsDeliveryFormat
58
- >;
59
-
60
- export const GetAllLogDrainsStatus = {
61
- Enabled: "enabled",
62
- Disabled: "disabled",
63
- Errored: "errored",
64
- } as const;
65
- export type GetAllLogDrainsStatus = ClosedEnum<typeof GetAllLogDrainsStatus>;
66
-
67
- export const GetAllLogDrainsDisabledReason = {
68
- DisabledByOwner: "disabled-by-owner",
69
- FeatureNotAvailable: "feature-not-available",
70
- AccountPlanDowngrade: "account-plan-downgrade",
71
- DisabledByAdmin: "disabled-by-admin",
72
- } as const;
73
- export type GetAllLogDrainsDisabledReason = ClosedEnum<
74
- typeof GetAllLogDrainsDisabledReason
75
- >;
76
-
77
- export type GetAllLogDrainsResponseBody = {
78
- clientId?: string | undefined;
79
- configurationId?: string | undefined;
80
- sources?: Array<GetAllLogDrainsSources> | undefined;
81
- environments: Array<GetAllLogDrainsEnvironments>;
82
- disabledBy?: string | undefined;
83
- firstErrorTimestamp?: number | undefined;
84
- samplingRate?: number | undefined;
85
- hideIpAddresses?: boolean | undefined;
86
- id: string;
87
- createdAt: number;
88
- deletedAt: number | null;
89
- updatedAt: number;
90
- url: string;
91
- headers?: { [k: string]: string } | undefined;
92
- projectIds?: Array<string> | undefined;
93
- name: string;
94
- teamId?: string | null | undefined;
95
- ownerId: string;
96
- createdFrom?: GetAllLogDrainsCreatedFrom | undefined;
97
- deliveryFormat: GetAllLogDrainsDeliveryFormat;
98
- status?: GetAllLogDrainsStatus | undefined;
99
- disabledAt?: number | undefined;
100
- disabledReason?: GetAllLogDrainsDisabledReason | undefined;
101
- secret?: string | undefined;
102
- };
103
-
104
- /** @internal */
105
- export const GetAllLogDrainsRequest$inboundSchema: z.ZodType<
106
- GetAllLogDrainsRequest,
107
- z.ZodTypeDef,
108
- unknown
109
- > = z.object({
110
- projectId: z.string().optional(),
111
- projectIdOrName: z.string().optional(),
112
- teamId: z.string().optional(),
113
- slug: z.string().optional(),
114
- });
115
-
116
- /** @internal */
117
- export type GetAllLogDrainsRequest$Outbound = {
118
- projectId?: string | undefined;
119
- projectIdOrName?: string | undefined;
120
- teamId?: string | undefined;
121
- slug?: string | undefined;
122
- };
123
-
124
- /** @internal */
125
- export const GetAllLogDrainsRequest$outboundSchema: z.ZodType<
126
- GetAllLogDrainsRequest$Outbound,
127
- z.ZodTypeDef,
128
- GetAllLogDrainsRequest
129
- > = z.object({
130
- projectId: z.string().optional(),
131
- projectIdOrName: z.string().optional(),
132
- teamId: z.string().optional(),
133
- slug: z.string().optional(),
134
- });
135
-
136
- /**
137
- * @internal
138
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
139
- */
140
- export namespace GetAllLogDrainsRequest$ {
141
- /** @deprecated use `GetAllLogDrainsRequest$inboundSchema` instead. */
142
- export const inboundSchema = GetAllLogDrainsRequest$inboundSchema;
143
- /** @deprecated use `GetAllLogDrainsRequest$outboundSchema` instead. */
144
- export const outboundSchema = GetAllLogDrainsRequest$outboundSchema;
145
- /** @deprecated use `GetAllLogDrainsRequest$Outbound` instead. */
146
- export type Outbound = GetAllLogDrainsRequest$Outbound;
147
- }
148
-
149
- export function getAllLogDrainsRequestToJSON(
150
- getAllLogDrainsRequest: GetAllLogDrainsRequest,
151
- ): string {
152
- return JSON.stringify(
153
- GetAllLogDrainsRequest$outboundSchema.parse(getAllLogDrainsRequest),
154
- );
155
- }
156
-
157
- export function getAllLogDrainsRequestFromJSON(
158
- jsonString: string,
159
- ): SafeParseResult<GetAllLogDrainsRequest, SDKValidationError> {
160
- return safeParse(
161
- jsonString,
162
- (x) => GetAllLogDrainsRequest$inboundSchema.parse(JSON.parse(x)),
163
- `Failed to parse 'GetAllLogDrainsRequest' from JSON`,
164
- );
165
- }
166
-
167
- /** @internal */
168
- export const GetAllLogDrainsSources$inboundSchema: z.ZodNativeEnum<
169
- typeof GetAllLogDrainsSources
170
- > = z.nativeEnum(GetAllLogDrainsSources);
171
-
172
- /** @internal */
173
- export const GetAllLogDrainsSources$outboundSchema: z.ZodNativeEnum<
174
- typeof GetAllLogDrainsSources
175
- > = GetAllLogDrainsSources$inboundSchema;
176
-
177
- /**
178
- * @internal
179
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
180
- */
181
- export namespace GetAllLogDrainsSources$ {
182
- /** @deprecated use `GetAllLogDrainsSources$inboundSchema` instead. */
183
- export const inboundSchema = GetAllLogDrainsSources$inboundSchema;
184
- /** @deprecated use `GetAllLogDrainsSources$outboundSchema` instead. */
185
- export const outboundSchema = GetAllLogDrainsSources$outboundSchema;
186
- }
187
-
188
- /** @internal */
189
- export const GetAllLogDrainsEnvironments$inboundSchema: z.ZodNativeEnum<
190
- typeof GetAllLogDrainsEnvironments
191
- > = z.nativeEnum(GetAllLogDrainsEnvironments);
192
-
193
- /** @internal */
194
- export const GetAllLogDrainsEnvironments$outboundSchema: z.ZodNativeEnum<
195
- typeof GetAllLogDrainsEnvironments
196
- > = GetAllLogDrainsEnvironments$inboundSchema;
197
-
198
- /**
199
- * @internal
200
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
- */
202
- export namespace GetAllLogDrainsEnvironments$ {
203
- /** @deprecated use `GetAllLogDrainsEnvironments$inboundSchema` instead. */
204
- export const inboundSchema = GetAllLogDrainsEnvironments$inboundSchema;
205
- /** @deprecated use `GetAllLogDrainsEnvironments$outboundSchema` instead. */
206
- export const outboundSchema = GetAllLogDrainsEnvironments$outboundSchema;
207
- }
208
-
209
- /** @internal */
210
- export const GetAllLogDrainsCreatedFrom$inboundSchema: z.ZodNativeEnum<
211
- typeof GetAllLogDrainsCreatedFrom
212
- > = z.nativeEnum(GetAllLogDrainsCreatedFrom);
213
-
214
- /** @internal */
215
- export const GetAllLogDrainsCreatedFrom$outboundSchema: z.ZodNativeEnum<
216
- typeof GetAllLogDrainsCreatedFrom
217
- > = GetAllLogDrainsCreatedFrom$inboundSchema;
218
-
219
- /**
220
- * @internal
221
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
222
- */
223
- export namespace GetAllLogDrainsCreatedFrom$ {
224
- /** @deprecated use `GetAllLogDrainsCreatedFrom$inboundSchema` instead. */
225
- export const inboundSchema = GetAllLogDrainsCreatedFrom$inboundSchema;
226
- /** @deprecated use `GetAllLogDrainsCreatedFrom$outboundSchema` instead. */
227
- export const outboundSchema = GetAllLogDrainsCreatedFrom$outboundSchema;
228
- }
229
-
230
- /** @internal */
231
- export const GetAllLogDrainsDeliveryFormat$inboundSchema: z.ZodNativeEnum<
232
- typeof GetAllLogDrainsDeliveryFormat
233
- > = z.nativeEnum(GetAllLogDrainsDeliveryFormat);
234
-
235
- /** @internal */
236
- export const GetAllLogDrainsDeliveryFormat$outboundSchema: z.ZodNativeEnum<
237
- typeof GetAllLogDrainsDeliveryFormat
238
- > = GetAllLogDrainsDeliveryFormat$inboundSchema;
239
-
240
- /**
241
- * @internal
242
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
243
- */
244
- export namespace GetAllLogDrainsDeliveryFormat$ {
245
- /** @deprecated use `GetAllLogDrainsDeliveryFormat$inboundSchema` instead. */
246
- export const inboundSchema = GetAllLogDrainsDeliveryFormat$inboundSchema;
247
- /** @deprecated use `GetAllLogDrainsDeliveryFormat$outboundSchema` instead. */
248
- export const outboundSchema = GetAllLogDrainsDeliveryFormat$outboundSchema;
249
- }
250
-
251
- /** @internal */
252
- export const GetAllLogDrainsStatus$inboundSchema: z.ZodNativeEnum<
253
- typeof GetAllLogDrainsStatus
254
- > = z.nativeEnum(GetAllLogDrainsStatus);
255
-
256
- /** @internal */
257
- export const GetAllLogDrainsStatus$outboundSchema: z.ZodNativeEnum<
258
- typeof GetAllLogDrainsStatus
259
- > = GetAllLogDrainsStatus$inboundSchema;
260
-
261
- /**
262
- * @internal
263
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
- */
265
- export namespace GetAllLogDrainsStatus$ {
266
- /** @deprecated use `GetAllLogDrainsStatus$inboundSchema` instead. */
267
- export const inboundSchema = GetAllLogDrainsStatus$inboundSchema;
268
- /** @deprecated use `GetAllLogDrainsStatus$outboundSchema` instead. */
269
- export const outboundSchema = GetAllLogDrainsStatus$outboundSchema;
270
- }
271
-
272
- /** @internal */
273
- export const GetAllLogDrainsDisabledReason$inboundSchema: z.ZodNativeEnum<
274
- typeof GetAllLogDrainsDisabledReason
275
- > = z.nativeEnum(GetAllLogDrainsDisabledReason);
276
-
277
- /** @internal */
278
- export const GetAllLogDrainsDisabledReason$outboundSchema: z.ZodNativeEnum<
279
- typeof GetAllLogDrainsDisabledReason
280
- > = GetAllLogDrainsDisabledReason$inboundSchema;
281
-
282
- /**
283
- * @internal
284
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
285
- */
286
- export namespace GetAllLogDrainsDisabledReason$ {
287
- /** @deprecated use `GetAllLogDrainsDisabledReason$inboundSchema` instead. */
288
- export const inboundSchema = GetAllLogDrainsDisabledReason$inboundSchema;
289
- /** @deprecated use `GetAllLogDrainsDisabledReason$outboundSchema` instead. */
290
- export const outboundSchema = GetAllLogDrainsDisabledReason$outboundSchema;
291
- }
292
-
293
- /** @internal */
294
- export const GetAllLogDrainsResponseBody$inboundSchema: z.ZodType<
295
- GetAllLogDrainsResponseBody,
296
- z.ZodTypeDef,
297
- unknown
298
- > = z.object({
299
- clientId: z.string().optional(),
300
- configurationId: z.string().optional(),
301
- sources: z.array(GetAllLogDrainsSources$inboundSchema).optional(),
302
- environments: z.array(GetAllLogDrainsEnvironments$inboundSchema),
303
- disabledBy: z.string().optional(),
304
- firstErrorTimestamp: z.number().optional(),
305
- samplingRate: z.number().optional(),
306
- hideIpAddresses: z.boolean().optional(),
307
- id: z.string(),
308
- createdAt: z.number(),
309
- deletedAt: z.nullable(z.number()),
310
- updatedAt: z.number(),
311
- url: z.string(),
312
- headers: z.record(z.string()).optional(),
313
- projectIds: z.array(z.string()).optional(),
314
- name: z.string(),
315
- teamId: z.nullable(z.string()).optional(),
316
- ownerId: z.string(),
317
- createdFrom: GetAllLogDrainsCreatedFrom$inboundSchema.optional(),
318
- deliveryFormat: GetAllLogDrainsDeliveryFormat$inboundSchema,
319
- status: GetAllLogDrainsStatus$inboundSchema.optional(),
320
- disabledAt: z.number().optional(),
321
- disabledReason: GetAllLogDrainsDisabledReason$inboundSchema.optional(),
322
- secret: z.string().optional(),
323
- });
324
-
325
- /** @internal */
326
- export type GetAllLogDrainsResponseBody$Outbound = {
327
- clientId?: string | undefined;
328
- configurationId?: string | undefined;
329
- sources?: Array<string> | undefined;
330
- environments: Array<string>;
331
- disabledBy?: string | undefined;
332
- firstErrorTimestamp?: number | undefined;
333
- samplingRate?: number | undefined;
334
- hideIpAddresses?: boolean | undefined;
335
- id: string;
336
- createdAt: number;
337
- deletedAt: number | null;
338
- updatedAt: number;
339
- url: string;
340
- headers?: { [k: string]: string } | undefined;
341
- projectIds?: Array<string> | undefined;
342
- name: string;
343
- teamId?: string | null | undefined;
344
- ownerId: string;
345
- createdFrom?: string | undefined;
346
- deliveryFormat: string;
347
- status?: string | undefined;
348
- disabledAt?: number | undefined;
349
- disabledReason?: string | undefined;
350
- secret?: string | undefined;
351
- };
352
-
353
- /** @internal */
354
- export const GetAllLogDrainsResponseBody$outboundSchema: z.ZodType<
355
- GetAllLogDrainsResponseBody$Outbound,
356
- z.ZodTypeDef,
357
- GetAllLogDrainsResponseBody
358
- > = z.object({
359
- clientId: z.string().optional(),
360
- configurationId: z.string().optional(),
361
- sources: z.array(GetAllLogDrainsSources$outboundSchema).optional(),
362
- environments: z.array(GetAllLogDrainsEnvironments$outboundSchema),
363
- disabledBy: z.string().optional(),
364
- firstErrorTimestamp: z.number().optional(),
365
- samplingRate: z.number().optional(),
366
- hideIpAddresses: z.boolean().optional(),
367
- id: z.string(),
368
- createdAt: z.number(),
369
- deletedAt: z.nullable(z.number()),
370
- updatedAt: z.number(),
371
- url: z.string(),
372
- headers: z.record(z.string()).optional(),
373
- projectIds: z.array(z.string()).optional(),
374
- name: z.string(),
375
- teamId: z.nullable(z.string()).optional(),
376
- ownerId: z.string(),
377
- createdFrom: GetAllLogDrainsCreatedFrom$outboundSchema.optional(),
378
- deliveryFormat: GetAllLogDrainsDeliveryFormat$outboundSchema,
379
- status: GetAllLogDrainsStatus$outboundSchema.optional(),
380
- disabledAt: z.number().optional(),
381
- disabledReason: GetAllLogDrainsDisabledReason$outboundSchema.optional(),
382
- secret: z.string().optional(),
383
- });
384
-
385
- /**
386
- * @internal
387
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
388
- */
389
- export namespace GetAllLogDrainsResponseBody$ {
390
- /** @deprecated use `GetAllLogDrainsResponseBody$inboundSchema` instead. */
391
- export const inboundSchema = GetAllLogDrainsResponseBody$inboundSchema;
392
- /** @deprecated use `GetAllLogDrainsResponseBody$outboundSchema` instead. */
393
- export const outboundSchema = GetAllLogDrainsResponseBody$outboundSchema;
394
- /** @deprecated use `GetAllLogDrainsResponseBody$Outbound` instead. */
395
- export type Outbound = GetAllLogDrainsResponseBody$Outbound;
396
- }
397
-
398
- export function getAllLogDrainsResponseBodyToJSON(
399
- getAllLogDrainsResponseBody: GetAllLogDrainsResponseBody,
400
- ): string {
401
- return JSON.stringify(
402
- GetAllLogDrainsResponseBody$outboundSchema.parse(
403
- getAllLogDrainsResponseBody,
404
- ),
405
- );
406
- }
407
-
408
- export function getAllLogDrainsResponseBodyFromJSON(
409
- jsonString: string,
410
- ): SafeParseResult<GetAllLogDrainsResponseBody, SDKValidationError> {
411
- return safeParse(
412
- jsonString,
413
- (x) => GetAllLogDrainsResponseBody$inboundSchema.parse(JSON.parse(x)),
414
- `Failed to parse 'GetAllLogDrainsResponseBody' from JSON`,
415
- );
416
- }