@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
@@ -93,6 +93,20 @@ export type BuildEntitlements = {
93
93
  enhancedBuilds?: boolean | undefined;
94
94
  };
95
95
 
96
+ /**
97
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
98
+ */
99
+ export type BuildMachine = {
100
+ /**
101
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
102
+ */
103
+ cores?: number | undefined;
104
+ /**
105
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
106
+ */
107
+ memory?: number | undefined;
108
+ };
109
+
96
110
  /**
97
111
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
98
112
  */
@@ -189,6 +203,10 @@ export type ResourceConfig = {
189
203
  * An object containing infomation related to the amount of platform resources may be allocated to the User account.
190
204
  */
191
205
  flagsExplorerUnlimitedOverrides?: boolean | undefined;
206
+ /**
207
+ * An object containing infomation related to the amount of platform resources may be allocated to the User account.
208
+ */
209
+ buildMachine?: BuildMachine | undefined;
192
210
  };
193
211
 
194
212
  export const ViewPreference = {
@@ -609,6 +627,59 @@ export function buildEntitlementsFromJSON(
609
627
  );
610
628
  }
611
629
 
630
+ /** @internal */
631
+ export const BuildMachine$inboundSchema: z.ZodType<
632
+ BuildMachine,
633
+ z.ZodTypeDef,
634
+ unknown
635
+ > = z.object({
636
+ cores: z.number().optional(),
637
+ memory: z.number().optional(),
638
+ });
639
+
640
+ /** @internal */
641
+ export type BuildMachine$Outbound = {
642
+ cores?: number | undefined;
643
+ memory?: number | undefined;
644
+ };
645
+
646
+ /** @internal */
647
+ export const BuildMachine$outboundSchema: z.ZodType<
648
+ BuildMachine$Outbound,
649
+ z.ZodTypeDef,
650
+ BuildMachine
651
+ > = z.object({
652
+ cores: z.number().optional(),
653
+ memory: z.number().optional(),
654
+ });
655
+
656
+ /**
657
+ * @internal
658
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
659
+ */
660
+ export namespace BuildMachine$ {
661
+ /** @deprecated use `BuildMachine$inboundSchema` instead. */
662
+ export const inboundSchema = BuildMachine$inboundSchema;
663
+ /** @deprecated use `BuildMachine$outboundSchema` instead. */
664
+ export const outboundSchema = BuildMachine$outboundSchema;
665
+ /** @deprecated use `BuildMachine$Outbound` instead. */
666
+ export type Outbound = BuildMachine$Outbound;
667
+ }
668
+
669
+ export function buildMachineToJSON(buildMachine: BuildMachine): string {
670
+ return JSON.stringify(BuildMachine$outboundSchema.parse(buildMachine));
671
+ }
672
+
673
+ export function buildMachineFromJSON(
674
+ jsonString: string,
675
+ ): SafeParseResult<BuildMachine, SDKValidationError> {
676
+ return safeParse(
677
+ jsonString,
678
+ (x) => BuildMachine$inboundSchema.parse(JSON.parse(x)),
679
+ `Failed to parse 'BuildMachine' from JSON`,
680
+ );
681
+ }
682
+
612
683
  /** @internal */
613
684
  export const ResourceConfig$inboundSchema: z.ZodType<
614
685
  ResourceConfig,
@@ -638,6 +709,7 @@ export const ResourceConfig$inboundSchema: z.ZodType<
638
709
  microfrontendProjectsPerGroup: z.number().optional(),
639
710
  flagsExplorerOverridesThreshold: z.number().optional(),
640
711
  flagsExplorerUnlimitedOverrides: z.boolean().optional(),
712
+ buildMachine: z.lazy(() => BuildMachine$inboundSchema).optional(),
641
713
  });
642
714
 
643
715
  /** @internal */
@@ -665,6 +737,7 @@ export type ResourceConfig$Outbound = {
665
737
  microfrontendProjectsPerGroup?: number | undefined;
666
738
  flagsExplorerOverridesThreshold?: number | undefined;
667
739
  flagsExplorerUnlimitedOverrides?: boolean | undefined;
740
+ buildMachine?: BuildMachine$Outbound | undefined;
668
741
  };
669
742
 
670
743
  /** @internal */
@@ -696,6 +769,7 @@ export const ResourceConfig$outboundSchema: z.ZodType<
696
769
  microfrontendProjectsPerGroup: z.number().optional(),
697
770
  flagsExplorerOverridesThreshold: z.number().optional(),
698
771
  flagsExplorerUnlimitedOverrides: z.boolean().optional(),
772
+ buildMachine: z.lazy(() => BuildMachine$outboundSchema).optional(),
699
773
  });
700
774
 
701
775
  /**
@@ -526,8 +526,8 @@ export const CancelDeploymentSource = {
526
526
  export type CancelDeploymentSource = ClosedEnum<typeof CancelDeploymentSource>;
527
527
 
528
528
  export const CancelDeploymentTarget = {
529
- Production: "production",
530
529
  Staging: "staging",
530
+ Production: "production",
531
531
  } as const;
532
532
  export type CancelDeploymentTarget = ClosedEnum<typeof CancelDeploymentTarget>;
533
533
 
@@ -12,7 +12,7 @@ import { SDKValidationError } from "./sdkvalidationerror.js";
12
12
  /**
13
13
  * The delivery log format
14
14
  */
15
- export const CreateLogDrainDeliveryFormat = {
15
+ export const DeliveryFormat = {
16
16
  Json: "json",
17
17
  Ndjson: "ndjson",
18
18
  Syslog: "syslog",
@@ -20,11 +20,9 @@ export const CreateLogDrainDeliveryFormat = {
20
20
  /**
21
21
  * The delivery log format
22
22
  */
23
- export type CreateLogDrainDeliveryFormat = ClosedEnum<
24
- typeof CreateLogDrainDeliveryFormat
25
- >;
23
+ export type DeliveryFormat = ClosedEnum<typeof DeliveryFormat>;
26
24
 
27
- export const CreateLogDrainSources = {
25
+ export const Sources = {
28
26
  Static: "static",
29
27
  Lambda: "lambda",
30
28
  Build: "build",
@@ -32,15 +30,13 @@ export const CreateLogDrainSources = {
32
30
  External: "external",
33
31
  Firewall: "firewall",
34
32
  } as const;
35
- export type CreateLogDrainSources = ClosedEnum<typeof CreateLogDrainSources>;
33
+ export type Sources = ClosedEnum<typeof Sources>;
36
34
 
37
- export const CreateLogDrainEnvironments = {
35
+ export const Environments = {
38
36
  Preview: "preview",
39
37
  Production: "production",
40
38
  } as const;
41
- export type CreateLogDrainEnvironments = ClosedEnum<
42
- typeof CreateLogDrainEnvironments
43
- >;
39
+ export type Environments = ClosedEnum<typeof Environments>;
44
40
 
45
41
  export type CreateLogDrainRequestBody = {
46
42
  /**
@@ -55,17 +51,17 @@ export type CreateLogDrainRequestBody = {
55
51
  /**
56
52
  * The delivery log format
57
53
  */
58
- deliveryFormat?: CreateLogDrainDeliveryFormat | undefined;
54
+ deliveryFormat?: DeliveryFormat | undefined;
59
55
  /**
60
56
  * The url where you will receive logs. The protocol must be `https://` or `http://` when type is `json` and `ndjson`, and `syslog+tls:` or `syslog:` when the type is `syslog`.
61
57
  */
62
58
  url: string;
63
- sources?: Array<CreateLogDrainSources> | undefined;
59
+ sources?: Array<Sources> | undefined;
64
60
  /**
65
61
  * Headers to be sent together with the request
66
62
  */
67
63
  headers?: { [k: string]: string } | undefined;
68
- environments?: Array<CreateLogDrainEnvironments> | undefined;
64
+ environments?: Array<Environments> | undefined;
69
65
  };
70
66
 
71
67
  export type CreateLogDrainRequest = {
@@ -83,7 +79,7 @@ export type CreateLogDrainRequest = {
83
79
  /**
84
80
  * The delivery log format
85
81
  */
86
- export const CreateLogDrainLogDrainsDeliveryFormat = {
82
+ export const CreateLogDrainDeliveryFormat = {
87
83
  Json: "json",
88
84
  Ndjson: "ndjson",
89
85
  Syslog: "syslog",
@@ -92,14 +88,14 @@ export const CreateLogDrainLogDrainsDeliveryFormat = {
92
88
  /**
93
89
  * The delivery log format
94
90
  */
95
- export type CreateLogDrainLogDrainsDeliveryFormat = ClosedEnum<
96
- typeof CreateLogDrainLogDrainsDeliveryFormat
91
+ export type CreateLogDrainDeliveryFormat = ClosedEnum<
92
+ typeof CreateLogDrainDeliveryFormat
97
93
  >;
98
94
 
99
95
  /**
100
96
  * The sources from which logs are currently being delivered to this log drain.
101
97
  */
102
- export const CreateLogDrainLogDrainsSources = {
98
+ export const CreateLogDrainSources = {
103
99
  Build: "build",
104
100
  Edge: "edge",
105
101
  Lambda: "lambda",
@@ -110,16 +106,14 @@ export const CreateLogDrainLogDrainsSources = {
110
106
  /**
111
107
  * The sources from which logs are currently being delivered to this log drain.
112
108
  */
113
- export type CreateLogDrainLogDrainsSources = ClosedEnum<
114
- typeof CreateLogDrainLogDrainsSources
115
- >;
109
+ export type CreateLogDrainSources = ClosedEnum<typeof CreateLogDrainSources>;
116
110
 
117
111
  /**
118
112
  * Whether the log drain was created by an integration or by a user
119
113
  */
120
114
  export const CreateLogDrainCreatedFrom = {
121
- SelfServed: "self-served",
122
115
  Integration: "integration",
116
+ SelfServed: "self-served",
123
117
  } as const;
124
118
  /**
125
119
  * Whether the log drain was created by an integration or by a user
@@ -131,15 +125,15 @@ export type CreateLogDrainCreatedFrom = ClosedEnum<
131
125
  /**
132
126
  * The environment of log drain
133
127
  */
134
- export const CreateLogDrainLogDrainsEnvironments = {
128
+ export const CreateLogDrainEnvironments = {
135
129
  Production: "production",
136
130
  Preview: "preview",
137
131
  } as const;
138
132
  /**
139
133
  * The environment of log drain
140
134
  */
141
- export type CreateLogDrainLogDrainsEnvironments = ClosedEnum<
142
- typeof CreateLogDrainLogDrainsEnvironments
135
+ export type CreateLogDrainEnvironments = ClosedEnum<
136
+ typeof CreateLogDrainEnvironments
143
137
  >;
144
138
 
145
139
  /**
@@ -165,7 +159,7 @@ export type CreateLogDrainResponseBody = {
165
159
  /**
166
160
  * The delivery log format
167
161
  */
168
- deliveryFormat?: CreateLogDrainLogDrainsDeliveryFormat | undefined;
162
+ deliveryFormat?: CreateLogDrainDeliveryFormat | undefined;
169
163
  /**
170
164
  * The name of the log drain
171
165
  */
@@ -186,7 +180,7 @@ export type CreateLogDrainResponseBody = {
186
180
  /**
187
181
  * The sources from which logs are currently being delivered to this log drain.
188
182
  */
189
- sources?: Array<CreateLogDrainLogDrainsSources> | undefined;
183
+ sources?: Array<CreateLogDrainSources> | undefined;
190
184
  /**
191
185
  * Whether the log drain was created by an integration or by a user
192
186
  */
@@ -198,7 +192,7 @@ export type CreateLogDrainResponseBody = {
198
192
  /**
199
193
  * The environment of log drain
200
194
  */
201
- environments: Array<CreateLogDrainLogDrainsEnvironments>;
195
+ environments: Array<CreateLogDrainEnvironments>;
202
196
  /**
203
197
  * The branch regexp of log drain
204
198
  */
@@ -210,66 +204,62 @@ export type CreateLogDrainResponseBody = {
210
204
  };
211
205
 
212
206
  /** @internal */
213
- export const CreateLogDrainDeliveryFormat$inboundSchema: z.ZodNativeEnum<
214
- typeof CreateLogDrainDeliveryFormat
215
- > = z.nativeEnum(CreateLogDrainDeliveryFormat);
207
+ export const DeliveryFormat$inboundSchema: z.ZodNativeEnum<
208
+ typeof DeliveryFormat
209
+ > = z.nativeEnum(DeliveryFormat);
216
210
 
217
211
  /** @internal */
218
- export const CreateLogDrainDeliveryFormat$outboundSchema: z.ZodNativeEnum<
219
- typeof CreateLogDrainDeliveryFormat
220
- > = CreateLogDrainDeliveryFormat$inboundSchema;
212
+ export const DeliveryFormat$outboundSchema: z.ZodNativeEnum<
213
+ typeof DeliveryFormat
214
+ > = DeliveryFormat$inboundSchema;
221
215
 
222
216
  /**
223
217
  * @internal
224
218
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
225
219
  */
226
- export namespace CreateLogDrainDeliveryFormat$ {
227
- /** @deprecated use `CreateLogDrainDeliveryFormat$inboundSchema` instead. */
228
- export const inboundSchema = CreateLogDrainDeliveryFormat$inboundSchema;
229
- /** @deprecated use `CreateLogDrainDeliveryFormat$outboundSchema` instead. */
230
- export const outboundSchema = CreateLogDrainDeliveryFormat$outboundSchema;
220
+ export namespace DeliveryFormat$ {
221
+ /** @deprecated use `DeliveryFormat$inboundSchema` instead. */
222
+ export const inboundSchema = DeliveryFormat$inboundSchema;
223
+ /** @deprecated use `DeliveryFormat$outboundSchema` instead. */
224
+ export const outboundSchema = DeliveryFormat$outboundSchema;
231
225
  }
232
226
 
233
227
  /** @internal */
234
- export const CreateLogDrainSources$inboundSchema: z.ZodNativeEnum<
235
- typeof CreateLogDrainSources
236
- > = z.nativeEnum(CreateLogDrainSources);
228
+ export const Sources$inboundSchema: z.ZodNativeEnum<typeof Sources> = z
229
+ .nativeEnum(Sources);
237
230
 
238
231
  /** @internal */
239
- export const CreateLogDrainSources$outboundSchema: z.ZodNativeEnum<
240
- typeof CreateLogDrainSources
241
- > = CreateLogDrainSources$inboundSchema;
232
+ export const Sources$outboundSchema: z.ZodNativeEnum<typeof Sources> =
233
+ Sources$inboundSchema;
242
234
 
243
235
  /**
244
236
  * @internal
245
237
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
246
238
  */
247
- export namespace CreateLogDrainSources$ {
248
- /** @deprecated use `CreateLogDrainSources$inboundSchema` instead. */
249
- export const inboundSchema = CreateLogDrainSources$inboundSchema;
250
- /** @deprecated use `CreateLogDrainSources$outboundSchema` instead. */
251
- export const outboundSchema = CreateLogDrainSources$outboundSchema;
239
+ export namespace Sources$ {
240
+ /** @deprecated use `Sources$inboundSchema` instead. */
241
+ export const inboundSchema = Sources$inboundSchema;
242
+ /** @deprecated use `Sources$outboundSchema` instead. */
243
+ export const outboundSchema = Sources$outboundSchema;
252
244
  }
253
245
 
254
246
  /** @internal */
255
- export const CreateLogDrainEnvironments$inboundSchema: z.ZodNativeEnum<
256
- typeof CreateLogDrainEnvironments
257
- > = z.nativeEnum(CreateLogDrainEnvironments);
247
+ export const Environments$inboundSchema: z.ZodNativeEnum<typeof Environments> =
248
+ z.nativeEnum(Environments);
258
249
 
259
250
  /** @internal */
260
- export const CreateLogDrainEnvironments$outboundSchema: z.ZodNativeEnum<
261
- typeof CreateLogDrainEnvironments
262
- > = CreateLogDrainEnvironments$inboundSchema;
251
+ export const Environments$outboundSchema: z.ZodNativeEnum<typeof Environments> =
252
+ Environments$inboundSchema;
263
253
 
264
254
  /**
265
255
  * @internal
266
256
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
267
257
  */
268
- export namespace CreateLogDrainEnvironments$ {
269
- /** @deprecated use `CreateLogDrainEnvironments$inboundSchema` instead. */
270
- export const inboundSchema = CreateLogDrainEnvironments$inboundSchema;
271
- /** @deprecated use `CreateLogDrainEnvironments$outboundSchema` instead. */
272
- export const outboundSchema = CreateLogDrainEnvironments$outboundSchema;
258
+ export namespace Environments$ {
259
+ /** @deprecated use `Environments$inboundSchema` instead. */
260
+ export const inboundSchema = Environments$inboundSchema;
261
+ /** @deprecated use `Environments$outboundSchema` instead. */
262
+ export const outboundSchema = Environments$outboundSchema;
273
263
  }
274
264
 
275
265
  /** @internal */
@@ -281,11 +271,11 @@ export const CreateLogDrainRequestBody$inboundSchema: z.ZodType<
281
271
  name: z.string(),
282
272
  projectIds: z.array(z.string()).optional(),
283
273
  secret: z.string().optional(),
284
- deliveryFormat: CreateLogDrainDeliveryFormat$inboundSchema.optional(),
274
+ deliveryFormat: DeliveryFormat$inboundSchema.optional(),
285
275
  url: z.string(),
286
- sources: z.array(CreateLogDrainSources$inboundSchema).optional(),
276
+ sources: z.array(Sources$inboundSchema).optional(),
287
277
  headers: z.record(z.string()).optional(),
288
- environments: z.array(CreateLogDrainEnvironments$inboundSchema).optional(),
278
+ environments: z.array(Environments$inboundSchema).optional(),
289
279
  });
290
280
 
291
281
  /** @internal */
@@ -309,11 +299,11 @@ export const CreateLogDrainRequestBody$outboundSchema: z.ZodType<
309
299
  name: z.string(),
310
300
  projectIds: z.array(z.string()).optional(),
311
301
  secret: z.string().optional(),
312
- deliveryFormat: CreateLogDrainDeliveryFormat$outboundSchema.optional(),
302
+ deliveryFormat: DeliveryFormat$outboundSchema.optional(),
313
303
  url: z.string(),
314
- sources: z.array(CreateLogDrainSources$outboundSchema).optional(),
304
+ sources: z.array(Sources$outboundSchema).optional(),
315
305
  headers: z.record(z.string()).optional(),
316
- environments: z.array(CreateLogDrainEnvironments$outboundSchema).optional(),
306
+ environments: z.array(Environments$outboundSchema).optional(),
317
307
  });
318
308
 
319
309
  /**
@@ -416,48 +406,45 @@ export function createLogDrainRequestFromJSON(
416
406
  }
417
407
 
418
408
  /** @internal */
419
- export const CreateLogDrainLogDrainsDeliveryFormat$inboundSchema:
420
- z.ZodNativeEnum<typeof CreateLogDrainLogDrainsDeliveryFormat> = z.nativeEnum(
421
- CreateLogDrainLogDrainsDeliveryFormat,
422
- );
409
+ export const CreateLogDrainDeliveryFormat$inboundSchema: z.ZodNativeEnum<
410
+ typeof CreateLogDrainDeliveryFormat
411
+ > = z.nativeEnum(CreateLogDrainDeliveryFormat);
423
412
 
424
413
  /** @internal */
425
- export const CreateLogDrainLogDrainsDeliveryFormat$outboundSchema:
426
- z.ZodNativeEnum<typeof CreateLogDrainLogDrainsDeliveryFormat> =
427
- CreateLogDrainLogDrainsDeliveryFormat$inboundSchema;
414
+ export const CreateLogDrainDeliveryFormat$outboundSchema: z.ZodNativeEnum<
415
+ typeof CreateLogDrainDeliveryFormat
416
+ > = CreateLogDrainDeliveryFormat$inboundSchema;
428
417
 
429
418
  /**
430
419
  * @internal
431
420
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
432
421
  */
433
- export namespace CreateLogDrainLogDrainsDeliveryFormat$ {
434
- /** @deprecated use `CreateLogDrainLogDrainsDeliveryFormat$inboundSchema` instead. */
435
- export const inboundSchema =
436
- CreateLogDrainLogDrainsDeliveryFormat$inboundSchema;
437
- /** @deprecated use `CreateLogDrainLogDrainsDeliveryFormat$outboundSchema` instead. */
438
- export const outboundSchema =
439
- CreateLogDrainLogDrainsDeliveryFormat$outboundSchema;
422
+ export namespace CreateLogDrainDeliveryFormat$ {
423
+ /** @deprecated use `CreateLogDrainDeliveryFormat$inboundSchema` instead. */
424
+ export const inboundSchema = CreateLogDrainDeliveryFormat$inboundSchema;
425
+ /** @deprecated use `CreateLogDrainDeliveryFormat$outboundSchema` instead. */
426
+ export const outboundSchema = CreateLogDrainDeliveryFormat$outboundSchema;
440
427
  }
441
428
 
442
429
  /** @internal */
443
- export const CreateLogDrainLogDrainsSources$inboundSchema: z.ZodNativeEnum<
444
- typeof CreateLogDrainLogDrainsSources
445
- > = z.nativeEnum(CreateLogDrainLogDrainsSources);
430
+ export const CreateLogDrainSources$inboundSchema: z.ZodNativeEnum<
431
+ typeof CreateLogDrainSources
432
+ > = z.nativeEnum(CreateLogDrainSources);
446
433
 
447
434
  /** @internal */
448
- export const CreateLogDrainLogDrainsSources$outboundSchema: z.ZodNativeEnum<
449
- typeof CreateLogDrainLogDrainsSources
450
- > = CreateLogDrainLogDrainsSources$inboundSchema;
435
+ export const CreateLogDrainSources$outboundSchema: z.ZodNativeEnum<
436
+ typeof CreateLogDrainSources
437
+ > = CreateLogDrainSources$inboundSchema;
451
438
 
452
439
  /**
453
440
  * @internal
454
441
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
455
442
  */
456
- export namespace CreateLogDrainLogDrainsSources$ {
457
- /** @deprecated use `CreateLogDrainLogDrainsSources$inboundSchema` instead. */
458
- export const inboundSchema = CreateLogDrainLogDrainsSources$inboundSchema;
459
- /** @deprecated use `CreateLogDrainLogDrainsSources$outboundSchema` instead. */
460
- export const outboundSchema = CreateLogDrainLogDrainsSources$outboundSchema;
443
+ export namespace CreateLogDrainSources$ {
444
+ /** @deprecated use `CreateLogDrainSources$inboundSchema` instead. */
445
+ export const inboundSchema = CreateLogDrainSources$inboundSchema;
446
+ /** @deprecated use `CreateLogDrainSources$outboundSchema` instead. */
447
+ export const outboundSchema = CreateLogDrainSources$outboundSchema;
461
448
  }
462
449
 
463
450
  /** @internal */
@@ -482,26 +469,24 @@ export namespace CreateLogDrainCreatedFrom$ {
482
469
  }
483
470
 
484
471
  /** @internal */
485
- export const CreateLogDrainLogDrainsEnvironments$inboundSchema: z.ZodNativeEnum<
486
- typeof CreateLogDrainLogDrainsEnvironments
487
- > = z.nativeEnum(CreateLogDrainLogDrainsEnvironments);
472
+ export const CreateLogDrainEnvironments$inboundSchema: z.ZodNativeEnum<
473
+ typeof CreateLogDrainEnvironments
474
+ > = z.nativeEnum(CreateLogDrainEnvironments);
488
475
 
489
476
  /** @internal */
490
- export const CreateLogDrainLogDrainsEnvironments$outboundSchema:
491
- z.ZodNativeEnum<typeof CreateLogDrainLogDrainsEnvironments> =
492
- CreateLogDrainLogDrainsEnvironments$inboundSchema;
477
+ export const CreateLogDrainEnvironments$outboundSchema: z.ZodNativeEnum<
478
+ typeof CreateLogDrainEnvironments
479
+ > = CreateLogDrainEnvironments$inboundSchema;
493
480
 
494
481
  /**
495
482
  * @internal
496
483
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
497
484
  */
498
- export namespace CreateLogDrainLogDrainsEnvironments$ {
499
- /** @deprecated use `CreateLogDrainLogDrainsEnvironments$inboundSchema` instead. */
500
- export const inboundSchema =
501
- CreateLogDrainLogDrainsEnvironments$inboundSchema;
502
- /** @deprecated use `CreateLogDrainLogDrainsEnvironments$outboundSchema` instead. */
503
- export const outboundSchema =
504
- CreateLogDrainLogDrainsEnvironments$outboundSchema;
485
+ export namespace CreateLogDrainEnvironments$ {
486
+ /** @deprecated use `CreateLogDrainEnvironments$inboundSchema` instead. */
487
+ export const inboundSchema = CreateLogDrainEnvironments$inboundSchema;
488
+ /** @deprecated use `CreateLogDrainEnvironments$outboundSchema` instead. */
489
+ export const outboundSchema = CreateLogDrainEnvironments$outboundSchema;
505
490
  }
506
491
 
507
492
  /** @internal */
@@ -514,17 +499,16 @@ export const CreateLogDrainResponseBody$inboundSchema: z.ZodType<
514
499
  configurationId: z.string().optional(),
515
500
  createdAt: z.number(),
516
501
  id: z.string(),
517
- deliveryFormat: CreateLogDrainLogDrainsDeliveryFormat$inboundSchema
518
- .optional(),
502
+ deliveryFormat: CreateLogDrainDeliveryFormat$inboundSchema.optional(),
519
503
  name: z.string(),
520
504
  ownerId: z.string(),
521
505
  projectId: z.nullable(z.string()).optional(),
522
506
  projectIds: z.array(z.string()).optional(),
523
507
  url: z.string(),
524
- sources: z.array(CreateLogDrainLogDrainsSources$inboundSchema).optional(),
508
+ sources: z.array(CreateLogDrainSources$inboundSchema).optional(),
525
509
  createdFrom: CreateLogDrainCreatedFrom$inboundSchema.optional(),
526
510
  headers: z.record(z.string()).optional(),
527
- environments: z.array(CreateLogDrainLogDrainsEnvironments$inboundSchema),
511
+ environments: z.array(CreateLogDrainEnvironments$inboundSchema),
528
512
  branch: z.string().optional(),
529
513
  samplingRate: z.number().optional(),
530
514
  });
@@ -559,17 +543,16 @@ export const CreateLogDrainResponseBody$outboundSchema: z.ZodType<
559
543
  configurationId: z.string().optional(),
560
544
  createdAt: z.number(),
561
545
  id: z.string(),
562
- deliveryFormat: CreateLogDrainLogDrainsDeliveryFormat$outboundSchema
563
- .optional(),
546
+ deliveryFormat: CreateLogDrainDeliveryFormat$outboundSchema.optional(),
564
547
  name: z.string(),
565
548
  ownerId: z.string(),
566
549
  projectId: z.nullable(z.string()).optional(),
567
550
  projectIds: z.array(z.string()).optional(),
568
551
  url: z.string(),
569
- sources: z.array(CreateLogDrainLogDrainsSources$outboundSchema).optional(),
552
+ sources: z.array(CreateLogDrainSources$outboundSchema).optional(),
570
553
  createdFrom: CreateLogDrainCreatedFrom$outboundSchema.optional(),
571
554
  headers: z.record(z.string()).optional(),
572
- environments: z.array(CreateLogDrainLogDrainsEnvironments$outboundSchema),
555
+ environments: z.array(CreateLogDrainEnvironments$outboundSchema),
573
556
  branch: z.string().optional(),
574
557
  samplingRate: z.number().optional(),
575
558
  });