@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.
- package/README.md +0 -10
- package/bin/mcp-server.js +1163 -2379
- package/bin/mcp-server.js.map +23 -38
- package/docs/sdks/integrations/README.md +0 -161
- package/docs/sdks/logdrains/README.md +0 -260
- package/esm/__tests__/integrations.test.js +5 -40
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +7 -89
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +1 -14
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/matchers.d.ts +3 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -0
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/sdks.js +7 -2
- package/esm/lib/sdks.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +1 -11
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/models/authuser.d.ts +41 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +29 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +3 -3
- package/esm/models/canceldeploymentop.js +1 -1
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createlogdrainop.d.ts +51 -51
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +74 -75
- package/esm/models/createlogdrainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +46 -16
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +17 -5
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/exchangessotokenop.d.ts +34 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +25 -0
- package/esm/models/exchangessotokenop.js.map +1 -1
- package/esm/models/getconfigurationsop.d.ts +19 -16
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +25 -27
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +3 -0
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.js.map +1 -1
- package/esm/models/getintegrationlogdrainsop.d.ts +11 -11
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +14 -13
- package/esm/models/getintegrationlogdrainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +46 -16
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +17 -5
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +9 -9
- package/esm/models/getteammembersop.js +3 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +46 -16
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +17 -5
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +46 -16
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +17 -5
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +569 -512
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +703 -645
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +0 -16
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +0 -20
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +0 -24
- package/esm/sdk/logdrains.d.ts.map +1 -1
- package/esm/sdk/logdrains.js +0 -30
- package/esm/sdk/logdrains.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/integrations.test.ts +9 -44
- package/src/__tests__/logdrains.test.ts +13 -95
- package/src/__tests__/security.test.ts +1 -14
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -11
- package/src/models/authuser.ts +74 -0
- package/src/models/canceldeploymentop.ts +1 -1
- package/src/models/createlogdrainop.ts +95 -112
- package/src/models/createprojectop.ts +42 -6
- package/src/models/exchangessotokenop.ts +44 -0
- package/src/models/getconfigurationsop.ts +34 -39
- package/src/models/getcustomenvironmentop.ts +3 -0
- package/src/models/getintegrationlogdrainsop.ts +15 -20
- package/src/models/getprojectsop.ts +42 -6
- package/src/models/getteammembersop.ts +3 -3
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
- package/src/models/updateprojectdatacacheop.ts +42 -6
- package/src/models/updateprojectop.ts +42 -6
- package/src/models/userevent.ts +1328 -1193
- package/src/sdk/integrations.ts +0 -44
- package/src/sdk/logdrains.ts +0 -66
- package/vercel-spec.json +341 -1272
- package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
- package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/funcs/integrationsGitNamespaces.js +0 -86
- package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
- package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
- package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/funcs/integrationsSearchRepo.js +0 -89
- package/esm/funcs/integrationsSearchRepo.js.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js +0 -86
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
- package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
- package/esm/mcp-server/tools/integrationsGitNamespaces.js.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
- package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
- package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/createconfigurablelogdrainop.js +0 -348
- package/esm/models/createconfigurablelogdrainop.js.map +0 -1
- package/esm/models/getalllogdrainsop.d.ts +0 -294
- package/esm/models/getalllogdrainsop.d.ts.map +0 -1
- package/esm/models/getalllogdrainsop.js +0 -231
- package/esm/models/getalllogdrainsop.js.map +0 -1
- package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
- package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/getconfigurablelogdrainop.js +0 -230
- package/esm/models/getconfigurablelogdrainop.js.map +0 -1
- package/esm/models/gitnamespacesop.d.ts +0 -126
- package/esm/models/gitnamespacesop.d.ts.map +0 -1
- package/esm/models/gitnamespacesop.js +0 -115
- package/esm/models/gitnamespacesop.js.map +0 -1
- package/esm/models/searchrepoop.d.ts +0 -421
- package/esm/models/searchrepoop.d.ts.map +0 -1
- package/esm/models/searchrepoop.js +0 -385
- package/esm/models/searchrepoop.js.map +0 -1
- package/src/funcs/integrationsGitNamespaces.ts +0 -185
- package/src/funcs/integrationsSearchRepo.ts +0 -181
- package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
- package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
- package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
- package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
- package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
- package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
- package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
- package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
- package/src/models/createconfigurablelogdrainop.ts +0 -652
- package/src/models/getalllogdrainsop.ts +0 -416
- package/src/models/getconfigurablelogdrainop.ts +0 -420
- package/src/models/gitnamespacesop.ts +0 -235
- package/src/models/searchrepoop.ts +0 -784
package/src/models/authuser.ts
CHANGED
|
@@ -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
|
|
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
|
|
24
|
-
typeof CreateLogDrainDeliveryFormat
|
|
25
|
-
>;
|
|
23
|
+
export type DeliveryFormat = ClosedEnum<typeof DeliveryFormat>;
|
|
26
24
|
|
|
27
|
-
export const
|
|
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
|
|
33
|
+
export type Sources = ClosedEnum<typeof Sources>;
|
|
36
34
|
|
|
37
|
-
export const
|
|
35
|
+
export const Environments = {
|
|
38
36
|
Preview: "preview",
|
|
39
37
|
Production: "production",
|
|
40
38
|
} as const;
|
|
41
|
-
export type
|
|
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?:
|
|
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<
|
|
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<
|
|
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
|
|
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
|
|
96
|
-
typeof
|
|
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
|
|
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
|
|
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
|
|
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
|
|
142
|
-
typeof
|
|
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?:
|
|
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<
|
|
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<
|
|
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
|
|
214
|
-
typeof
|
|
215
|
-
> = z.nativeEnum(
|
|
207
|
+
export const DeliveryFormat$inboundSchema: z.ZodNativeEnum<
|
|
208
|
+
typeof DeliveryFormat
|
|
209
|
+
> = z.nativeEnum(DeliveryFormat);
|
|
216
210
|
|
|
217
211
|
/** @internal */
|
|
218
|
-
export const
|
|
219
|
-
typeof
|
|
220
|
-
> =
|
|
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
|
|
227
|
-
/** @deprecated use `
|
|
228
|
-
export const inboundSchema =
|
|
229
|
-
/** @deprecated use `
|
|
230
|
-
export const 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
|
|
235
|
-
|
|
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
|
|
240
|
-
|
|
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
|
|
248
|
-
/** @deprecated use `
|
|
249
|
-
export const inboundSchema =
|
|
250
|
-
/** @deprecated use `
|
|
251
|
-
export const 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
|
|
256
|
-
|
|
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
|
|
261
|
-
|
|
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
|
|
269
|
-
/** @deprecated use `
|
|
270
|
-
export const inboundSchema =
|
|
271
|
-
/** @deprecated use `
|
|
272
|
-
export const 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:
|
|
274
|
+
deliveryFormat: DeliveryFormat$inboundSchema.optional(),
|
|
285
275
|
url: z.string(),
|
|
286
|
-
sources: z.array(
|
|
276
|
+
sources: z.array(Sources$inboundSchema).optional(),
|
|
287
277
|
headers: z.record(z.string()).optional(),
|
|
288
|
-
environments: z.array(
|
|
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:
|
|
302
|
+
deliveryFormat: DeliveryFormat$outboundSchema.optional(),
|
|
313
303
|
url: z.string(),
|
|
314
|
-
sources: z.array(
|
|
304
|
+
sources: z.array(Sources$outboundSchema).optional(),
|
|
315
305
|
headers: z.record(z.string()).optional(),
|
|
316
|
-
environments: z.array(
|
|
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
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
);
|
|
409
|
+
export const CreateLogDrainDeliveryFormat$inboundSchema: z.ZodNativeEnum<
|
|
410
|
+
typeof CreateLogDrainDeliveryFormat
|
|
411
|
+
> = z.nativeEnum(CreateLogDrainDeliveryFormat);
|
|
423
412
|
|
|
424
413
|
/** @internal */
|
|
425
|
-
export const
|
|
426
|
-
|
|
427
|
-
|
|
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
|
|
434
|
-
/** @deprecated use `
|
|
435
|
-
export const inboundSchema =
|
|
436
|
-
|
|
437
|
-
|
|
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
|
|
444
|
-
typeof
|
|
445
|
-
> = z.nativeEnum(
|
|
430
|
+
export const CreateLogDrainSources$inboundSchema: z.ZodNativeEnum<
|
|
431
|
+
typeof CreateLogDrainSources
|
|
432
|
+
> = z.nativeEnum(CreateLogDrainSources);
|
|
446
433
|
|
|
447
434
|
/** @internal */
|
|
448
|
-
export const
|
|
449
|
-
typeof
|
|
450
|
-
> =
|
|
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
|
|
457
|
-
/** @deprecated use `
|
|
458
|
-
export const inboundSchema =
|
|
459
|
-
/** @deprecated use `
|
|
460
|
-
export const 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
|
|
486
|
-
typeof
|
|
487
|
-
> = z.nativeEnum(
|
|
472
|
+
export const CreateLogDrainEnvironments$inboundSchema: z.ZodNativeEnum<
|
|
473
|
+
typeof CreateLogDrainEnvironments
|
|
474
|
+
> = z.nativeEnum(CreateLogDrainEnvironments);
|
|
488
475
|
|
|
489
476
|
/** @internal */
|
|
490
|
-
export const
|
|
491
|
-
|
|
492
|
-
|
|
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
|
|
499
|
-
/** @deprecated use `
|
|
500
|
-
export const inboundSchema =
|
|
501
|
-
|
|
502
|
-
|
|
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:
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
555
|
+
environments: z.array(CreateLogDrainEnvironments$outboundSchema),
|
|
573
556
|
branch: z.string().optional(),
|
|
574
557
|
samplingRate: z.number().optional(),
|
|
575
558
|
});
|