@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,420 +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 GetConfigurableLogDrainRequest = {
12
- id: string;
13
- /**
14
- * The Team identifier to perform the request on behalf of.
15
- */
16
- teamId?: string | undefined;
17
- /**
18
- * The Team slug to perform the request on behalf of.
19
- */
20
- slug?: string | undefined;
21
- };
22
-
23
- export const GetConfigurableLogDrainSources = {
24
- Build: "build",
25
- Edge: "edge",
26
- Lambda: "lambda",
27
- Static: "static",
28
- External: "external",
29
- Firewall: "firewall",
30
- } as const;
31
- export type GetConfigurableLogDrainSources = ClosedEnum<
32
- typeof GetConfigurableLogDrainSources
33
- >;
34
-
35
- export const GetConfigurableLogDrainEnvironments = {
36
- Production: "production",
37
- Preview: "preview",
38
- } as const;
39
- export type GetConfigurableLogDrainEnvironments = ClosedEnum<
40
- typeof GetConfigurableLogDrainEnvironments
41
- >;
42
-
43
- export const CreatedFrom = {
44
- SelfServed: "self-served",
45
- Integration: "integration",
46
- } as const;
47
- export type CreatedFrom = ClosedEnum<typeof CreatedFrom>;
48
-
49
- export const GetConfigurableLogDrainDeliveryFormat = {
50
- Json: "json",
51
- Ndjson: "ndjson",
52
- Syslog: "syslog",
53
- Protobuf: "protobuf",
54
- } as const;
55
- export type GetConfigurableLogDrainDeliveryFormat = ClosedEnum<
56
- typeof GetConfigurableLogDrainDeliveryFormat
57
- >;
58
-
59
- export const GetConfigurableLogDrainStatus = {
60
- Enabled: "enabled",
61
- Disabled: "disabled",
62
- Errored: "errored",
63
- } as const;
64
- export type GetConfigurableLogDrainStatus = ClosedEnum<
65
- typeof GetConfigurableLogDrainStatus
66
- >;
67
-
68
- export const DisabledReason = {
69
- DisabledByOwner: "disabled-by-owner",
70
- FeatureNotAvailable: "feature-not-available",
71
- AccountPlanDowngrade: "account-plan-downgrade",
72
- DisabledByAdmin: "disabled-by-admin",
73
- } as const;
74
- export type DisabledReason = ClosedEnum<typeof DisabledReason>;
75
-
76
- export type GetConfigurableLogDrainResponseBody = {
77
- clientId?: string | undefined;
78
- configurationId?: string | undefined;
79
- sources?: Array<GetConfigurableLogDrainSources> | undefined;
80
- environments: Array<GetConfigurableLogDrainEnvironments>;
81
- disabledBy?: string | undefined;
82
- firstErrorTimestamp?: number | undefined;
83
- samplingRate?: number | undefined;
84
- hideIpAddresses?: boolean | undefined;
85
- id: string;
86
- createdAt: number;
87
- deletedAt: number | null;
88
- updatedAt: number;
89
- url: string;
90
- headers?: { [k: string]: string } | undefined;
91
- projectIds?: Array<string> | undefined;
92
- name: string;
93
- teamId?: string | null | undefined;
94
- ownerId: string;
95
- createdFrom?: CreatedFrom | undefined;
96
- deliveryFormat: GetConfigurableLogDrainDeliveryFormat;
97
- status?: GetConfigurableLogDrainStatus | undefined;
98
- disabledAt?: number | undefined;
99
- disabledReason?: DisabledReason | undefined;
100
- secret: string;
101
- };
102
-
103
- /** @internal */
104
- export const GetConfigurableLogDrainRequest$inboundSchema: z.ZodType<
105
- GetConfigurableLogDrainRequest,
106
- z.ZodTypeDef,
107
- unknown
108
- > = z.object({
109
- id: z.string(),
110
- teamId: z.string().optional(),
111
- slug: z.string().optional(),
112
- });
113
-
114
- /** @internal */
115
- export type GetConfigurableLogDrainRequest$Outbound = {
116
- id: string;
117
- teamId?: string | undefined;
118
- slug?: string | undefined;
119
- };
120
-
121
- /** @internal */
122
- export const GetConfigurableLogDrainRequest$outboundSchema: z.ZodType<
123
- GetConfigurableLogDrainRequest$Outbound,
124
- z.ZodTypeDef,
125
- GetConfigurableLogDrainRequest
126
- > = z.object({
127
- id: z.string(),
128
- teamId: z.string().optional(),
129
- slug: z.string().optional(),
130
- });
131
-
132
- /**
133
- * @internal
134
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
- */
136
- export namespace GetConfigurableLogDrainRequest$ {
137
- /** @deprecated use `GetConfigurableLogDrainRequest$inboundSchema` instead. */
138
- export const inboundSchema = GetConfigurableLogDrainRequest$inboundSchema;
139
- /** @deprecated use `GetConfigurableLogDrainRequest$outboundSchema` instead. */
140
- export const outboundSchema = GetConfigurableLogDrainRequest$outboundSchema;
141
- /** @deprecated use `GetConfigurableLogDrainRequest$Outbound` instead. */
142
- export type Outbound = GetConfigurableLogDrainRequest$Outbound;
143
- }
144
-
145
- export function getConfigurableLogDrainRequestToJSON(
146
- getConfigurableLogDrainRequest: GetConfigurableLogDrainRequest,
147
- ): string {
148
- return JSON.stringify(
149
- GetConfigurableLogDrainRequest$outboundSchema.parse(
150
- getConfigurableLogDrainRequest,
151
- ),
152
- );
153
- }
154
-
155
- export function getConfigurableLogDrainRequestFromJSON(
156
- jsonString: string,
157
- ): SafeParseResult<GetConfigurableLogDrainRequest, SDKValidationError> {
158
- return safeParse(
159
- jsonString,
160
- (x) => GetConfigurableLogDrainRequest$inboundSchema.parse(JSON.parse(x)),
161
- `Failed to parse 'GetConfigurableLogDrainRequest' from JSON`,
162
- );
163
- }
164
-
165
- /** @internal */
166
- export const GetConfigurableLogDrainSources$inboundSchema: z.ZodNativeEnum<
167
- typeof GetConfigurableLogDrainSources
168
- > = z.nativeEnum(GetConfigurableLogDrainSources);
169
-
170
- /** @internal */
171
- export const GetConfigurableLogDrainSources$outboundSchema: z.ZodNativeEnum<
172
- typeof GetConfigurableLogDrainSources
173
- > = GetConfigurableLogDrainSources$inboundSchema;
174
-
175
- /**
176
- * @internal
177
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
178
- */
179
- export namespace GetConfigurableLogDrainSources$ {
180
- /** @deprecated use `GetConfigurableLogDrainSources$inboundSchema` instead. */
181
- export const inboundSchema = GetConfigurableLogDrainSources$inboundSchema;
182
- /** @deprecated use `GetConfigurableLogDrainSources$outboundSchema` instead. */
183
- export const outboundSchema = GetConfigurableLogDrainSources$outboundSchema;
184
- }
185
-
186
- /** @internal */
187
- export const GetConfigurableLogDrainEnvironments$inboundSchema: z.ZodNativeEnum<
188
- typeof GetConfigurableLogDrainEnvironments
189
- > = z.nativeEnum(GetConfigurableLogDrainEnvironments);
190
-
191
- /** @internal */
192
- export const GetConfigurableLogDrainEnvironments$outboundSchema:
193
- z.ZodNativeEnum<typeof GetConfigurableLogDrainEnvironments> =
194
- GetConfigurableLogDrainEnvironments$inboundSchema;
195
-
196
- /**
197
- * @internal
198
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
199
- */
200
- export namespace GetConfigurableLogDrainEnvironments$ {
201
- /** @deprecated use `GetConfigurableLogDrainEnvironments$inboundSchema` instead. */
202
- export const inboundSchema =
203
- GetConfigurableLogDrainEnvironments$inboundSchema;
204
- /** @deprecated use `GetConfigurableLogDrainEnvironments$outboundSchema` instead. */
205
- export const outboundSchema =
206
- GetConfigurableLogDrainEnvironments$outboundSchema;
207
- }
208
-
209
- /** @internal */
210
- export const CreatedFrom$inboundSchema: z.ZodNativeEnum<typeof CreatedFrom> = z
211
- .nativeEnum(CreatedFrom);
212
-
213
- /** @internal */
214
- export const CreatedFrom$outboundSchema: z.ZodNativeEnum<typeof CreatedFrom> =
215
- CreatedFrom$inboundSchema;
216
-
217
- /**
218
- * @internal
219
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
220
- */
221
- export namespace CreatedFrom$ {
222
- /** @deprecated use `CreatedFrom$inboundSchema` instead. */
223
- export const inboundSchema = CreatedFrom$inboundSchema;
224
- /** @deprecated use `CreatedFrom$outboundSchema` instead. */
225
- export const outboundSchema = CreatedFrom$outboundSchema;
226
- }
227
-
228
- /** @internal */
229
- export const GetConfigurableLogDrainDeliveryFormat$inboundSchema:
230
- z.ZodNativeEnum<typeof GetConfigurableLogDrainDeliveryFormat> = z.nativeEnum(
231
- GetConfigurableLogDrainDeliveryFormat,
232
- );
233
-
234
- /** @internal */
235
- export const GetConfigurableLogDrainDeliveryFormat$outboundSchema:
236
- z.ZodNativeEnum<typeof GetConfigurableLogDrainDeliveryFormat> =
237
- GetConfigurableLogDrainDeliveryFormat$inboundSchema;
238
-
239
- /**
240
- * @internal
241
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
242
- */
243
- export namespace GetConfigurableLogDrainDeliveryFormat$ {
244
- /** @deprecated use `GetConfigurableLogDrainDeliveryFormat$inboundSchema` instead. */
245
- export const inboundSchema =
246
- GetConfigurableLogDrainDeliveryFormat$inboundSchema;
247
- /** @deprecated use `GetConfigurableLogDrainDeliveryFormat$outboundSchema` instead. */
248
- export const outboundSchema =
249
- GetConfigurableLogDrainDeliveryFormat$outboundSchema;
250
- }
251
-
252
- /** @internal */
253
- export const GetConfigurableLogDrainStatus$inboundSchema: z.ZodNativeEnum<
254
- typeof GetConfigurableLogDrainStatus
255
- > = z.nativeEnum(GetConfigurableLogDrainStatus);
256
-
257
- /** @internal */
258
- export const GetConfigurableLogDrainStatus$outboundSchema: z.ZodNativeEnum<
259
- typeof GetConfigurableLogDrainStatus
260
- > = GetConfigurableLogDrainStatus$inboundSchema;
261
-
262
- /**
263
- * @internal
264
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
265
- */
266
- export namespace GetConfigurableLogDrainStatus$ {
267
- /** @deprecated use `GetConfigurableLogDrainStatus$inboundSchema` instead. */
268
- export const inboundSchema = GetConfigurableLogDrainStatus$inboundSchema;
269
- /** @deprecated use `GetConfigurableLogDrainStatus$outboundSchema` instead. */
270
- export const outboundSchema = GetConfigurableLogDrainStatus$outboundSchema;
271
- }
272
-
273
- /** @internal */
274
- export const DisabledReason$inboundSchema: z.ZodNativeEnum<
275
- typeof DisabledReason
276
- > = z.nativeEnum(DisabledReason);
277
-
278
- /** @internal */
279
- export const DisabledReason$outboundSchema: z.ZodNativeEnum<
280
- typeof DisabledReason
281
- > = DisabledReason$inboundSchema;
282
-
283
- /**
284
- * @internal
285
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
286
- */
287
- export namespace DisabledReason$ {
288
- /** @deprecated use `DisabledReason$inboundSchema` instead. */
289
- export const inboundSchema = DisabledReason$inboundSchema;
290
- /** @deprecated use `DisabledReason$outboundSchema` instead. */
291
- export const outboundSchema = DisabledReason$outboundSchema;
292
- }
293
-
294
- /** @internal */
295
- export const GetConfigurableLogDrainResponseBody$inboundSchema: z.ZodType<
296
- GetConfigurableLogDrainResponseBody,
297
- z.ZodTypeDef,
298
- unknown
299
- > = z.object({
300
- clientId: z.string().optional(),
301
- configurationId: z.string().optional(),
302
- sources: z.array(GetConfigurableLogDrainSources$inboundSchema).optional(),
303
- environments: z.array(GetConfigurableLogDrainEnvironments$inboundSchema),
304
- disabledBy: z.string().optional(),
305
- firstErrorTimestamp: z.number().optional(),
306
- samplingRate: z.number().optional(),
307
- hideIpAddresses: z.boolean().optional(),
308
- id: z.string(),
309
- createdAt: z.number(),
310
- deletedAt: z.nullable(z.number()),
311
- updatedAt: z.number(),
312
- url: z.string(),
313
- headers: z.record(z.string()).optional(),
314
- projectIds: z.array(z.string()).optional(),
315
- name: z.string(),
316
- teamId: z.nullable(z.string()).optional(),
317
- ownerId: z.string(),
318
- createdFrom: CreatedFrom$inboundSchema.optional(),
319
- deliveryFormat: GetConfigurableLogDrainDeliveryFormat$inboundSchema,
320
- status: GetConfigurableLogDrainStatus$inboundSchema.optional(),
321
- disabledAt: z.number().optional(),
322
- disabledReason: DisabledReason$inboundSchema.optional(),
323
- secret: z.string(),
324
- });
325
-
326
- /** @internal */
327
- export type GetConfigurableLogDrainResponseBody$Outbound = {
328
- clientId?: string | undefined;
329
- configurationId?: string | undefined;
330
- sources?: Array<string> | undefined;
331
- environments: Array<string>;
332
- disabledBy?: string | undefined;
333
- firstErrorTimestamp?: number | undefined;
334
- samplingRate?: number | undefined;
335
- hideIpAddresses?: boolean | undefined;
336
- id: string;
337
- createdAt: number;
338
- deletedAt: number | null;
339
- updatedAt: number;
340
- url: string;
341
- headers?: { [k: string]: string } | undefined;
342
- projectIds?: Array<string> | undefined;
343
- name: string;
344
- teamId?: string | null | undefined;
345
- ownerId: string;
346
- createdFrom?: string | undefined;
347
- deliveryFormat: string;
348
- status?: string | undefined;
349
- disabledAt?: number | undefined;
350
- disabledReason?: string | undefined;
351
- secret: string;
352
- };
353
-
354
- /** @internal */
355
- export const GetConfigurableLogDrainResponseBody$outboundSchema: z.ZodType<
356
- GetConfigurableLogDrainResponseBody$Outbound,
357
- z.ZodTypeDef,
358
- GetConfigurableLogDrainResponseBody
359
- > = z.object({
360
- clientId: z.string().optional(),
361
- configurationId: z.string().optional(),
362
- sources: z.array(GetConfigurableLogDrainSources$outboundSchema).optional(),
363
- environments: z.array(GetConfigurableLogDrainEnvironments$outboundSchema),
364
- disabledBy: z.string().optional(),
365
- firstErrorTimestamp: z.number().optional(),
366
- samplingRate: z.number().optional(),
367
- hideIpAddresses: z.boolean().optional(),
368
- id: z.string(),
369
- createdAt: z.number(),
370
- deletedAt: z.nullable(z.number()),
371
- updatedAt: z.number(),
372
- url: z.string(),
373
- headers: z.record(z.string()).optional(),
374
- projectIds: z.array(z.string()).optional(),
375
- name: z.string(),
376
- teamId: z.nullable(z.string()).optional(),
377
- ownerId: z.string(),
378
- createdFrom: CreatedFrom$outboundSchema.optional(),
379
- deliveryFormat: GetConfigurableLogDrainDeliveryFormat$outboundSchema,
380
- status: GetConfigurableLogDrainStatus$outboundSchema.optional(),
381
- disabledAt: z.number().optional(),
382
- disabledReason: DisabledReason$outboundSchema.optional(),
383
- secret: z.string(),
384
- });
385
-
386
- /**
387
- * @internal
388
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
389
- */
390
- export namespace GetConfigurableLogDrainResponseBody$ {
391
- /** @deprecated use `GetConfigurableLogDrainResponseBody$inboundSchema` instead. */
392
- export const inboundSchema =
393
- GetConfigurableLogDrainResponseBody$inboundSchema;
394
- /** @deprecated use `GetConfigurableLogDrainResponseBody$outboundSchema` instead. */
395
- export const outboundSchema =
396
- GetConfigurableLogDrainResponseBody$outboundSchema;
397
- /** @deprecated use `GetConfigurableLogDrainResponseBody$Outbound` instead. */
398
- export type Outbound = GetConfigurableLogDrainResponseBody$Outbound;
399
- }
400
-
401
- export function getConfigurableLogDrainResponseBodyToJSON(
402
- getConfigurableLogDrainResponseBody: GetConfigurableLogDrainResponseBody,
403
- ): string {
404
- return JSON.stringify(
405
- GetConfigurableLogDrainResponseBody$outboundSchema.parse(
406
- getConfigurableLogDrainResponseBody,
407
- ),
408
- );
409
- }
410
-
411
- export function getConfigurableLogDrainResponseBodyFromJSON(
412
- jsonString: string,
413
- ): SafeParseResult<GetConfigurableLogDrainResponseBody, SDKValidationError> {
414
- return safeParse(
415
- jsonString,
416
- (x) =>
417
- GetConfigurableLogDrainResponseBody$inboundSchema.parse(JSON.parse(x)),
418
- `Failed to parse 'GetConfigurableLogDrainResponseBody' from JSON`,
419
- );
420
- }
@@ -1,235 +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 const Provider = {
12
- Github: "github",
13
- GithubCustomHost: "github-custom-host",
14
- Gitlab: "gitlab",
15
- Bitbucket: "bitbucket",
16
- } as const;
17
- export type Provider = ClosedEnum<typeof Provider>;
18
-
19
- export type GitNamespacesRequest = {
20
- /**
21
- * The custom Git host if using a custom Git provider, like GitHub Enterprise Server
22
- */
23
- host?: string | undefined;
24
- provider?: Provider | undefined;
25
- };
26
-
27
- export type GitNamespacesId = string | number;
28
-
29
- export type GitNamespacesResponseBody = {
30
- provider: string;
31
- slug: string;
32
- id: string | number;
33
- ownerType: string;
34
- name?: string | undefined;
35
- isAccessRestricted?: boolean | undefined;
36
- installationId?: number | undefined;
37
- requireReauth?: boolean | undefined;
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 GitNamespacesRequest$inboundSchema: z.ZodType<
61
- GitNamespacesRequest,
62
- z.ZodTypeDef,
63
- unknown
64
- > = z.object({
65
- host: z.string().optional(),
66
- provider: Provider$inboundSchema.optional(),
67
- });
68
-
69
- /** @internal */
70
- export type GitNamespacesRequest$Outbound = {
71
- host?: string | undefined;
72
- provider?: string | undefined;
73
- };
74
-
75
- /** @internal */
76
- export const GitNamespacesRequest$outboundSchema: z.ZodType<
77
- GitNamespacesRequest$Outbound,
78
- z.ZodTypeDef,
79
- GitNamespacesRequest
80
- > = z.object({
81
- host: z.string().optional(),
82
- provider: Provider$outboundSchema.optional(),
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 GitNamespacesRequest$ {
90
- /** @deprecated use `GitNamespacesRequest$inboundSchema` instead. */
91
- export const inboundSchema = GitNamespacesRequest$inboundSchema;
92
- /** @deprecated use `GitNamespacesRequest$outboundSchema` instead. */
93
- export const outboundSchema = GitNamespacesRequest$outboundSchema;
94
- /** @deprecated use `GitNamespacesRequest$Outbound` instead. */
95
- export type Outbound = GitNamespacesRequest$Outbound;
96
- }
97
-
98
- export function gitNamespacesRequestToJSON(
99
- gitNamespacesRequest: GitNamespacesRequest,
100
- ): string {
101
- return JSON.stringify(
102
- GitNamespacesRequest$outboundSchema.parse(gitNamespacesRequest),
103
- );
104
- }
105
-
106
- export function gitNamespacesRequestFromJSON(
107
- jsonString: string,
108
- ): SafeParseResult<GitNamespacesRequest, SDKValidationError> {
109
- return safeParse(
110
- jsonString,
111
- (x) => GitNamespacesRequest$inboundSchema.parse(JSON.parse(x)),
112
- `Failed to parse 'GitNamespacesRequest' from JSON`,
113
- );
114
- }
115
-
116
- /** @internal */
117
- export const GitNamespacesId$inboundSchema: z.ZodType<
118
- GitNamespacesId,
119
- z.ZodTypeDef,
120
- unknown
121
- > = z.union([z.string(), z.number()]);
122
-
123
- /** @internal */
124
- export type GitNamespacesId$Outbound = string | number;
125
-
126
- /** @internal */
127
- export const GitNamespacesId$outboundSchema: z.ZodType<
128
- GitNamespacesId$Outbound,
129
- z.ZodTypeDef,
130
- GitNamespacesId
131
- > = z.union([z.string(), z.number()]);
132
-
133
- /**
134
- * @internal
135
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
136
- */
137
- export namespace GitNamespacesId$ {
138
- /** @deprecated use `GitNamespacesId$inboundSchema` instead. */
139
- export const inboundSchema = GitNamespacesId$inboundSchema;
140
- /** @deprecated use `GitNamespacesId$outboundSchema` instead. */
141
- export const outboundSchema = GitNamespacesId$outboundSchema;
142
- /** @deprecated use `GitNamespacesId$Outbound` instead. */
143
- export type Outbound = GitNamespacesId$Outbound;
144
- }
145
-
146
- export function gitNamespacesIdToJSON(
147
- gitNamespacesId: GitNamespacesId,
148
- ): string {
149
- return JSON.stringify(GitNamespacesId$outboundSchema.parse(gitNamespacesId));
150
- }
151
-
152
- export function gitNamespacesIdFromJSON(
153
- jsonString: string,
154
- ): SafeParseResult<GitNamespacesId, SDKValidationError> {
155
- return safeParse(
156
- jsonString,
157
- (x) => GitNamespacesId$inboundSchema.parse(JSON.parse(x)),
158
- `Failed to parse 'GitNamespacesId' from JSON`,
159
- );
160
- }
161
-
162
- /** @internal */
163
- export const GitNamespacesResponseBody$inboundSchema: z.ZodType<
164
- GitNamespacesResponseBody,
165
- z.ZodTypeDef,
166
- unknown
167
- > = z.object({
168
- provider: z.string(),
169
- slug: z.string(),
170
- id: z.union([z.string(), z.number()]),
171
- ownerType: z.string(),
172
- name: z.string().optional(),
173
- isAccessRestricted: z.boolean().optional(),
174
- installationId: z.number().optional(),
175
- requireReauth: z.boolean().optional(),
176
- });
177
-
178
- /** @internal */
179
- export type GitNamespacesResponseBody$Outbound = {
180
- provider: string;
181
- slug: string;
182
- id: string | number;
183
- ownerType: string;
184
- name?: string | undefined;
185
- isAccessRestricted?: boolean | undefined;
186
- installationId?: number | undefined;
187
- requireReauth?: boolean | undefined;
188
- };
189
-
190
- /** @internal */
191
- export const GitNamespacesResponseBody$outboundSchema: z.ZodType<
192
- GitNamespacesResponseBody$Outbound,
193
- z.ZodTypeDef,
194
- GitNamespacesResponseBody
195
- > = z.object({
196
- provider: z.string(),
197
- slug: z.string(),
198
- id: z.union([z.string(), z.number()]),
199
- ownerType: z.string(),
200
- name: z.string().optional(),
201
- isAccessRestricted: z.boolean().optional(),
202
- installationId: z.number().optional(),
203
- requireReauth: z.boolean().optional(),
204
- });
205
-
206
- /**
207
- * @internal
208
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
209
- */
210
- export namespace GitNamespacesResponseBody$ {
211
- /** @deprecated use `GitNamespacesResponseBody$inboundSchema` instead. */
212
- export const inboundSchema = GitNamespacesResponseBody$inboundSchema;
213
- /** @deprecated use `GitNamespacesResponseBody$outboundSchema` instead. */
214
- export const outboundSchema = GitNamespacesResponseBody$outboundSchema;
215
- /** @deprecated use `GitNamespacesResponseBody$Outbound` instead. */
216
- export type Outbound = GitNamespacesResponseBody$Outbound;
217
- }
218
-
219
- export function gitNamespacesResponseBodyToJSON(
220
- gitNamespacesResponseBody: GitNamespacesResponseBody,
221
- ): string {
222
- return JSON.stringify(
223
- GitNamespacesResponseBody$outboundSchema.parse(gitNamespacesResponseBody),
224
- );
225
- }
226
-
227
- export function gitNamespacesResponseBodyFromJSON(
228
- jsonString: string,
229
- ): SafeParseResult<GitNamespacesResponseBody, SDKValidationError> {
230
- return safeParse(
231
- jsonString,
232
- (x) => GitNamespacesResponseBody$inboundSchema.parse(JSON.parse(x)),
233
- `Failed to parse 'GitNamespacesResponseBody' from JSON`,
234
- );
235
- }