@vercel/sdk 1.6.1 → 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 (220) hide show
  1. package/README.md +4 -10
  2. package/bin/mcp-server.js +1579 -2527
  3. package/bin/mcp-server.js.map +29 -38
  4. package/docs/sdks/integrations/README.md +0 -161
  5. package/docs/sdks/logdrains/README.md +0 -260
  6. package/docs/sdks/projects/README.md +162 -0
  7. package/esm/__tests__/integrations.test.js +5 -40
  8. package/esm/__tests__/integrations.test.js.map +1 -1
  9. package/esm/__tests__/logdrains.test.js +7 -89
  10. package/esm/__tests__/logdrains.test.js.map +1 -1
  11. package/esm/__tests__/projects.test.js +41 -13
  12. package/esm/__tests__/projects.test.js.map +1 -1
  13. package/esm/funcs/projectsCreateProject.js +2 -2
  14. package/esm/funcs/projectsCreateProject.js.map +1 -1
  15. package/esm/funcs/projectsPauseProject.d.ts +18 -0
  16. package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
  17. package/esm/funcs/{logDrainsGetConfigurableLogDrain.js → projectsPauseProject.js} +13 -13
  18. package/esm/funcs/projectsPauseProject.js.map +1 -0
  19. package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
  20. package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
  21. package/esm/funcs/{logDrainsGetAllLogDrains.js → projectsUnpauseProject.js} +18 -14
  22. package/esm/funcs/projectsUnpauseProject.js.map +1 -0
  23. package/esm/lib/config.d.ts +3 -3
  24. package/esm/lib/config.js +3 -3
  25. package/esm/lib/matchers.d.ts +3 -1
  26. package/esm/lib/matchers.d.ts.map +1 -1
  27. package/esm/lib/matchers.js +10 -0
  28. package/esm/lib/matchers.js.map +1 -1
  29. package/esm/lib/sdks.js +7 -2
  30. package/esm/lib/sdks.js.map +1 -1
  31. package/esm/mcp-server/mcp-server.js +1 -1
  32. package/esm/mcp-server/server.d.ts.map +1 -1
  33. package/esm/mcp-server/server.js +5 -11
  34. package/esm/mcp-server/server.js.map +1 -1
  35. package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
  36. package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
  37. package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
  38. package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
  39. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
  40. package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
  41. package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
  42. package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
  43. package/esm/models/authuser.d.ts +41 -0
  44. package/esm/models/authuser.d.ts.map +1 -1
  45. package/esm/models/authuser.js +29 -0
  46. package/esm/models/authuser.js.map +1 -1
  47. package/esm/models/canceldeploymentop.d.ts +3 -3
  48. package/esm/models/canceldeploymentop.js +1 -1
  49. package/esm/models/canceldeploymentop.js.map +1 -1
  50. package/esm/models/createlogdrainop.d.ts +51 -51
  51. package/esm/models/createlogdrainop.d.ts.map +1 -1
  52. package/esm/models/createlogdrainop.js +74 -75
  53. package/esm/models/createlogdrainop.js.map +1 -1
  54. package/esm/models/createprojectop.d.ts +46 -16
  55. package/esm/models/createprojectop.d.ts.map +1 -1
  56. package/esm/models/createprojectop.js +17 -5
  57. package/esm/models/createprojectop.js.map +1 -1
  58. package/esm/models/exchangessotokenop.d.ts +34 -0
  59. package/esm/models/exchangessotokenop.d.ts.map +1 -1
  60. package/esm/models/exchangessotokenop.js +25 -0
  61. package/esm/models/exchangessotokenop.js.map +1 -1
  62. package/esm/models/getconfigurationsop.d.ts +19 -16
  63. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  64. package/esm/models/getconfigurationsop.js +25 -27
  65. package/esm/models/getconfigurationsop.js.map +1 -1
  66. package/esm/models/getcustomenvironmentop.d.ts +3 -0
  67. package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
  68. package/esm/models/getcustomenvironmentop.js.map +1 -1
  69. package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
  70. package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
  71. package/esm/models/getintegrationlogdrainsop.js +14 -13
  72. package/esm/models/getintegrationlogdrainsop.js.map +1 -1
  73. package/esm/models/getprojectsop.d.ts +46 -16
  74. package/esm/models/getprojectsop.d.ts.map +1 -1
  75. package/esm/models/getprojectsop.js +17 -5
  76. package/esm/models/getprojectsop.js.map +1 -1
  77. package/esm/models/getteammembersop.d.ts +9 -9
  78. package/esm/models/getteammembersop.js +3 -3
  79. package/esm/models/getteammembersop.js.map +1 -1
  80. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
  81. package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
  82. package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
  83. package/esm/models/pauseprojectop.d.ts +42 -0
  84. package/esm/models/pauseprojectop.d.ts.map +1 -0
  85. package/esm/models/pauseprojectop.js +35 -0
  86. package/esm/models/pauseprojectop.js.map +1 -0
  87. package/esm/models/unpauseprojectop.d.ts +42 -0
  88. package/esm/models/unpauseprojectop.d.ts.map +1 -0
  89. package/esm/models/unpauseprojectop.js +35 -0
  90. package/esm/models/unpauseprojectop.js.map +1 -0
  91. package/esm/models/updateprojectdatacacheop.d.ts +46 -16
  92. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  93. package/esm/models/updateprojectdatacacheop.js +17 -5
  94. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  95. package/esm/models/updateprojectop.d.ts +46 -16
  96. package/esm/models/updateprojectop.d.ts.map +1 -1
  97. package/esm/models/updateprojectop.js +17 -5
  98. package/esm/models/updateprojectop.js.map +1 -1
  99. package/esm/models/userevent.d.ts +569 -512
  100. package/esm/models/userevent.d.ts.map +1 -1
  101. package/esm/models/userevent.js +703 -645
  102. package/esm/models/userevent.js.map +1 -1
  103. package/esm/sdk/integrations.d.ts +0 -16
  104. package/esm/sdk/integrations.d.ts.map +1 -1
  105. package/esm/sdk/integrations.js +0 -20
  106. package/esm/sdk/integrations.js.map +1 -1
  107. package/esm/sdk/logdrains.d.ts +0 -24
  108. package/esm/sdk/logdrains.d.ts.map +1 -1
  109. package/esm/sdk/logdrains.js +0 -30
  110. package/esm/sdk/logdrains.js.map +1 -1
  111. package/esm/sdk/projects.d.ts +16 -0
  112. package/esm/sdk/projects.d.ts.map +1 -1
  113. package/esm/sdk/projects.js +20 -0
  114. package/esm/sdk/projects.js.map +1 -1
  115. package/jsr.json +1 -1
  116. package/package.json +1 -1
  117. package/src/__tests__/integrations.test.ts +9 -44
  118. package/src/__tests__/logdrains.test.ts +13 -95
  119. package/src/__tests__/projects.test.ts +47 -13
  120. package/src/funcs/projectsCreateProject.ts +2 -2
  121. package/src/funcs/{integrationsGitNamespaces.ts → projectsPauseProject.ts} +30 -25
  122. package/src/funcs/{logDrainsGetAllLogDrains.ts → projectsUnpauseProject.ts} +27 -24
  123. package/src/lib/config.ts +3 -3
  124. package/src/lib/matchers.ts +20 -0
  125. package/src/lib/sdks.ts +8 -2
  126. package/src/mcp-server/mcp-server.ts +1 -1
  127. package/src/mcp-server/server.ts +5 -11
  128. package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
  129. package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
  130. package/src/models/authuser.ts +74 -0
  131. package/src/models/canceldeploymentop.ts +1 -1
  132. package/src/models/createlogdrainop.ts +95 -112
  133. package/src/models/createprojectop.ts +42 -6
  134. package/src/models/exchangessotokenop.ts +44 -0
  135. package/src/models/getconfigurationsop.ts +34 -39
  136. package/src/models/getcustomenvironmentop.ts +3 -0
  137. package/src/models/getintegrationlogdrainsop.ts +15 -20
  138. package/src/models/getprojectsop.ts +42 -6
  139. package/src/models/getteammembersop.ts +3 -3
  140. package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
  141. package/src/models/pauseprojectop.ts +83 -0
  142. package/src/models/unpauseprojectop.ts +83 -0
  143. package/src/models/updateprojectdatacacheop.ts +42 -6
  144. package/src/models/updateprojectop.ts +42 -6
  145. package/src/models/userevent.ts +1328 -1193
  146. package/src/sdk/integrations.ts +0 -44
  147. package/src/sdk/logdrains.ts +0 -66
  148. package/src/sdk/projects.ts +38 -0
  149. package/vercel-spec.json +616 -1392
  150. package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
  151. package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
  152. package/esm/funcs/integrationsGitNamespaces.js +0 -86
  153. package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
  154. package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
  155. package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
  156. package/esm/funcs/integrationsSearchRepo.js +0 -89
  157. package/esm/funcs/integrationsSearchRepo.js.map +0 -1
  158. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
  159. package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  160. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
  161. package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  162. package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
  163. package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
  164. package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
  165. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
  166. package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  167. package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
  168. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
  169. package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
  170. package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
  171. package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
  172. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
  173. package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
  174. package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
  175. package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
  176. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
  177. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
  178. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
  179. package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
  180. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
  181. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
  182. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
  183. package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
  184. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
  185. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
  186. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
  187. package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
  188. package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
  189. package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
  190. package/esm/models/createconfigurablelogdrainop.js +0 -348
  191. package/esm/models/createconfigurablelogdrainop.js.map +0 -1
  192. package/esm/models/getalllogdrainsop.d.ts +0 -294
  193. package/esm/models/getalllogdrainsop.d.ts.map +0 -1
  194. package/esm/models/getalllogdrainsop.js +0 -231
  195. package/esm/models/getalllogdrainsop.js.map +0 -1
  196. package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
  197. package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
  198. package/esm/models/getconfigurablelogdrainop.js +0 -230
  199. package/esm/models/getconfigurablelogdrainop.js.map +0 -1
  200. package/esm/models/gitnamespacesop.d.ts +0 -126
  201. package/esm/models/gitnamespacesop.d.ts.map +0 -1
  202. package/esm/models/gitnamespacesop.js +0 -115
  203. package/esm/models/gitnamespacesop.js.map +0 -1
  204. package/esm/models/searchrepoop.d.ts +0 -421
  205. package/esm/models/searchrepoop.d.ts.map +0 -1
  206. package/esm/models/searchrepoop.js +0 -385
  207. package/esm/models/searchrepoop.js.map +0 -1
  208. package/src/funcs/integrationsSearchRepo.ts +0 -181
  209. package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
  210. package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
  211. package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
  212. package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
  213. package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
  214. package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
  215. package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
  216. package/src/models/createconfigurablelogdrainop.ts +0 -652
  217. package/src/models/getalllogdrainsop.ts +0 -416
  218. package/src/models/getconfigurablelogdrainop.ts +0 -420
  219. package/src/models/gitnamespacesop.ts +0 -235
  220. 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
- }