@vercel/sdk 1.6.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/bin/mcp-server.js +1579 -2527
- package/bin/mcp-server.js.map +29 -38
- package/docs/sdks/integrations/README.md +0 -161
- package/docs/sdks/logdrains/README.md +0 -260
- package/docs/sdks/projects/README.md +162 -0
- 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__/projects.test.js +41 -13
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/funcs/projectsPauseProject.d.ts +18 -0
- package/esm/funcs/projectsPauseProject.d.ts.map +1 -0
- package/esm/funcs/{logDrainsGetConfigurableLogDrain.js → projectsPauseProject.js} +13 -13
- package/esm/funcs/projectsPauseProject.js.map +1 -0
- package/esm/funcs/projectsUnpauseProject.d.ts +18 -0
- package/esm/funcs/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/funcs/{logDrainsGetAllLogDrains.js → projectsUnpauseProject.js} +18 -14
- package/esm/funcs/projectsUnpauseProject.js.map +1 -0
- 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 +5 -11
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/projectsPauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsPauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsPauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsPauseProject.js.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts +7 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.d.ts.map +1 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js +27 -0
- package/esm/mcp-server/tools/projectsUnpauseProject.js.map +1 -0
- 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/pauseprojectop.d.ts +42 -0
- package/esm/models/pauseprojectop.d.ts.map +1 -0
- package/esm/models/pauseprojectop.js +35 -0
- package/esm/models/pauseprojectop.js.map +1 -0
- package/esm/models/unpauseprojectop.d.ts +42 -0
- package/esm/models/unpauseprojectop.d.ts.map +1 -0
- package/esm/models/unpauseprojectop.js +35 -0
- package/esm/models/unpauseprojectop.js.map +1 -0
- 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/esm/sdk/projects.d.ts +16 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +20 -0
- package/esm/sdk/projects.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__/projects.test.ts +47 -13
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/funcs/{integrationsGitNamespaces.ts → projectsPauseProject.ts} +30 -25
- package/src/funcs/{logDrainsGetAllLogDrains.ts → projectsUnpauseProject.ts} +27 -24
- 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 +5 -11
- package/src/mcp-server/tools/projectsPauseProject.ts +35 -0
- package/src/mcp-server/tools/projectsUnpauseProject.ts +35 -0
- 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/pauseprojectop.ts +83 -0
- package/src/models/unpauseprojectop.ts +83 -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/src/sdk/projects.ts +38 -0
- package/vercel-spec.json +616 -1392
- 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.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.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/integrationsSearchRepo.ts +0 -181
- package/src/funcs/logDrainsCreateConfigurableLogDrain.ts +0 -185
- 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
|
@@ -1,652 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The delivery log format
|
|
14
|
-
*/
|
|
15
|
-
export const DeliveryFormat = {
|
|
16
|
-
Json: "json",
|
|
17
|
-
Ndjson: "ndjson",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* The delivery log format
|
|
21
|
-
*/
|
|
22
|
-
export type DeliveryFormat = ClosedEnum<typeof DeliveryFormat>;
|
|
23
|
-
|
|
24
|
-
export const Sources = {
|
|
25
|
-
Static: "static",
|
|
26
|
-
Lambda: "lambda",
|
|
27
|
-
Build: "build",
|
|
28
|
-
Edge: "edge",
|
|
29
|
-
External: "external",
|
|
30
|
-
Firewall: "firewall",
|
|
31
|
-
} as const;
|
|
32
|
-
export type Sources = ClosedEnum<typeof Sources>;
|
|
33
|
-
|
|
34
|
-
export const Environments = {
|
|
35
|
-
Preview: "preview",
|
|
36
|
-
Production: "production",
|
|
37
|
-
} as const;
|
|
38
|
-
export type Environments = ClosedEnum<typeof Environments>;
|
|
39
|
-
|
|
40
|
-
export type CreateConfigurableLogDrainRequestBody = {
|
|
41
|
-
/**
|
|
42
|
-
* The delivery log format
|
|
43
|
-
*/
|
|
44
|
-
deliveryFormat: DeliveryFormat;
|
|
45
|
-
/**
|
|
46
|
-
* The log drain url
|
|
47
|
-
*/
|
|
48
|
-
url: string;
|
|
49
|
-
/**
|
|
50
|
-
* Headers to be sent together with the request
|
|
51
|
-
*/
|
|
52
|
-
headers?: { [k: string]: string } | undefined;
|
|
53
|
-
projectIds?: Array<string> | undefined;
|
|
54
|
-
sources: Array<Sources>;
|
|
55
|
-
environments?: Array<Environments> | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Custom secret of log drain
|
|
58
|
-
*/
|
|
59
|
-
secret?: string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* The sampling rate for this log drain. It should be a percentage rate between 0 and 100. With max 2 decimal points
|
|
62
|
-
*/
|
|
63
|
-
samplingRate?: number | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The custom name of this log drain.
|
|
66
|
-
*/
|
|
67
|
-
name?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type CreateConfigurableLogDrainRequest = {
|
|
71
|
-
/**
|
|
72
|
-
* The Team identifier to perform the request on behalf of.
|
|
73
|
-
*/
|
|
74
|
-
teamId?: string | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* The Team slug to perform the request on behalf of.
|
|
77
|
-
*/
|
|
78
|
-
slug?: string | undefined;
|
|
79
|
-
requestBody: CreateConfigurableLogDrainRequestBody;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export const CreateConfigurableLogDrainSources = {
|
|
83
|
-
Build: "build",
|
|
84
|
-
Edge: "edge",
|
|
85
|
-
Lambda: "lambda",
|
|
86
|
-
Static: "static",
|
|
87
|
-
External: "external",
|
|
88
|
-
Firewall: "firewall",
|
|
89
|
-
} as const;
|
|
90
|
-
export type CreateConfigurableLogDrainSources = ClosedEnum<
|
|
91
|
-
typeof CreateConfigurableLogDrainSources
|
|
92
|
-
>;
|
|
93
|
-
|
|
94
|
-
export const CreateConfigurableLogDrainEnvironments = {
|
|
95
|
-
Production: "production",
|
|
96
|
-
Preview: "preview",
|
|
97
|
-
} as const;
|
|
98
|
-
export type CreateConfigurableLogDrainEnvironments = ClosedEnum<
|
|
99
|
-
typeof CreateConfigurableLogDrainEnvironments
|
|
100
|
-
>;
|
|
101
|
-
|
|
102
|
-
export const CreateConfigurableLogDrainCreatedFrom = {
|
|
103
|
-
SelfServed: "self-served",
|
|
104
|
-
Integration: "integration",
|
|
105
|
-
} as const;
|
|
106
|
-
export type CreateConfigurableLogDrainCreatedFrom = ClosedEnum<
|
|
107
|
-
typeof CreateConfigurableLogDrainCreatedFrom
|
|
108
|
-
>;
|
|
109
|
-
|
|
110
|
-
export const CreateConfigurableLogDrainDeliveryFormat = {
|
|
111
|
-
Json: "json",
|
|
112
|
-
Ndjson: "ndjson",
|
|
113
|
-
Syslog: "syslog",
|
|
114
|
-
Protobuf: "protobuf",
|
|
115
|
-
} as const;
|
|
116
|
-
export type CreateConfigurableLogDrainDeliveryFormat = ClosedEnum<
|
|
117
|
-
typeof CreateConfigurableLogDrainDeliveryFormat
|
|
118
|
-
>;
|
|
119
|
-
|
|
120
|
-
export const CreateConfigurableLogDrainStatus = {
|
|
121
|
-
Enabled: "enabled",
|
|
122
|
-
Disabled: "disabled",
|
|
123
|
-
Errored: "errored",
|
|
124
|
-
} as const;
|
|
125
|
-
export type CreateConfigurableLogDrainStatus = ClosedEnum<
|
|
126
|
-
typeof CreateConfigurableLogDrainStatus
|
|
127
|
-
>;
|
|
128
|
-
|
|
129
|
-
export const CreateConfigurableLogDrainDisabledReason = {
|
|
130
|
-
DisabledByOwner: "disabled-by-owner",
|
|
131
|
-
FeatureNotAvailable: "feature-not-available",
|
|
132
|
-
AccountPlanDowngrade: "account-plan-downgrade",
|
|
133
|
-
DisabledByAdmin: "disabled-by-admin",
|
|
134
|
-
} as const;
|
|
135
|
-
export type CreateConfigurableLogDrainDisabledReason = ClosedEnum<
|
|
136
|
-
typeof CreateConfigurableLogDrainDisabledReason
|
|
137
|
-
>;
|
|
138
|
-
|
|
139
|
-
export type CreateConfigurableLogDrainResponseBody = {
|
|
140
|
-
/**
|
|
141
|
-
* The secret to validate the log-drain payload
|
|
142
|
-
*/
|
|
143
|
-
secret?: string | undefined;
|
|
144
|
-
clientId?: string | undefined;
|
|
145
|
-
configurationId?: string | undefined;
|
|
146
|
-
sources?: Array<CreateConfigurableLogDrainSources> | undefined;
|
|
147
|
-
environments: Array<CreateConfigurableLogDrainEnvironments>;
|
|
148
|
-
disabledBy?: string | undefined;
|
|
149
|
-
firstErrorTimestamp?: number | undefined;
|
|
150
|
-
samplingRate?: number | undefined;
|
|
151
|
-
hideIpAddresses?: boolean | undefined;
|
|
152
|
-
id: string;
|
|
153
|
-
createdAt: number;
|
|
154
|
-
deletedAt: number | null;
|
|
155
|
-
updatedAt: number;
|
|
156
|
-
url: string;
|
|
157
|
-
headers?: { [k: string]: string } | undefined;
|
|
158
|
-
projectIds?: Array<string> | undefined;
|
|
159
|
-
name: string;
|
|
160
|
-
teamId?: string | null | undefined;
|
|
161
|
-
ownerId: string;
|
|
162
|
-
createdFrom?: CreateConfigurableLogDrainCreatedFrom | undefined;
|
|
163
|
-
deliveryFormat: CreateConfigurableLogDrainDeliveryFormat;
|
|
164
|
-
status?: CreateConfigurableLogDrainStatus | undefined;
|
|
165
|
-
disabledAt?: number | undefined;
|
|
166
|
-
disabledReason?: CreateConfigurableLogDrainDisabledReason | undefined;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
/** @internal */
|
|
170
|
-
export const DeliveryFormat$inboundSchema: z.ZodNativeEnum<
|
|
171
|
-
typeof DeliveryFormat
|
|
172
|
-
> = z.nativeEnum(DeliveryFormat);
|
|
173
|
-
|
|
174
|
-
/** @internal */
|
|
175
|
-
export const DeliveryFormat$outboundSchema: z.ZodNativeEnum<
|
|
176
|
-
typeof DeliveryFormat
|
|
177
|
-
> = DeliveryFormat$inboundSchema;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @internal
|
|
181
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
|
-
*/
|
|
183
|
-
export namespace DeliveryFormat$ {
|
|
184
|
-
/** @deprecated use `DeliveryFormat$inboundSchema` instead. */
|
|
185
|
-
export const inboundSchema = DeliveryFormat$inboundSchema;
|
|
186
|
-
/** @deprecated use `DeliveryFormat$outboundSchema` instead. */
|
|
187
|
-
export const outboundSchema = DeliveryFormat$outboundSchema;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export const Sources$inboundSchema: z.ZodNativeEnum<typeof Sources> = z
|
|
192
|
-
.nativeEnum(Sources);
|
|
193
|
-
|
|
194
|
-
/** @internal */
|
|
195
|
-
export const Sources$outboundSchema: z.ZodNativeEnum<typeof Sources> =
|
|
196
|
-
Sources$inboundSchema;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @internal
|
|
200
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
|
-
*/
|
|
202
|
-
export namespace Sources$ {
|
|
203
|
-
/** @deprecated use `Sources$inboundSchema` instead. */
|
|
204
|
-
export const inboundSchema = Sources$inboundSchema;
|
|
205
|
-
/** @deprecated use `Sources$outboundSchema` instead. */
|
|
206
|
-
export const outboundSchema = Sources$outboundSchema;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** @internal */
|
|
210
|
-
export const Environments$inboundSchema: z.ZodNativeEnum<typeof Environments> =
|
|
211
|
-
z.nativeEnum(Environments);
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const Environments$outboundSchema: z.ZodNativeEnum<typeof Environments> =
|
|
215
|
-
Environments$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 Environments$ {
|
|
222
|
-
/** @deprecated use `Environments$inboundSchema` instead. */
|
|
223
|
-
export const inboundSchema = Environments$inboundSchema;
|
|
224
|
-
/** @deprecated use `Environments$outboundSchema` instead. */
|
|
225
|
-
export const outboundSchema = Environments$outboundSchema;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/** @internal */
|
|
229
|
-
export const CreateConfigurableLogDrainRequestBody$inboundSchema: z.ZodType<
|
|
230
|
-
CreateConfigurableLogDrainRequestBody,
|
|
231
|
-
z.ZodTypeDef,
|
|
232
|
-
unknown
|
|
233
|
-
> = z.object({
|
|
234
|
-
deliveryFormat: DeliveryFormat$inboundSchema,
|
|
235
|
-
url: z.string(),
|
|
236
|
-
headers: z.record(z.string()).optional(),
|
|
237
|
-
projectIds: z.array(z.string()).optional(),
|
|
238
|
-
sources: z.array(Sources$inboundSchema),
|
|
239
|
-
environments: z.array(Environments$inboundSchema).optional(),
|
|
240
|
-
secret: z.string().optional(),
|
|
241
|
-
samplingRate: z.number().optional(),
|
|
242
|
-
name: z.string().optional(),
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export type CreateConfigurableLogDrainRequestBody$Outbound = {
|
|
247
|
-
deliveryFormat: string;
|
|
248
|
-
url: string;
|
|
249
|
-
headers?: { [k: string]: string } | undefined;
|
|
250
|
-
projectIds?: Array<string> | undefined;
|
|
251
|
-
sources: Array<string>;
|
|
252
|
-
environments?: Array<string> | undefined;
|
|
253
|
-
secret?: string | undefined;
|
|
254
|
-
samplingRate?: number | undefined;
|
|
255
|
-
name?: string | undefined;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
/** @internal */
|
|
259
|
-
export const CreateConfigurableLogDrainRequestBody$outboundSchema: z.ZodType<
|
|
260
|
-
CreateConfigurableLogDrainRequestBody$Outbound,
|
|
261
|
-
z.ZodTypeDef,
|
|
262
|
-
CreateConfigurableLogDrainRequestBody
|
|
263
|
-
> = z.object({
|
|
264
|
-
deliveryFormat: DeliveryFormat$outboundSchema,
|
|
265
|
-
url: z.string(),
|
|
266
|
-
headers: z.record(z.string()).optional(),
|
|
267
|
-
projectIds: z.array(z.string()).optional(),
|
|
268
|
-
sources: z.array(Sources$outboundSchema),
|
|
269
|
-
environments: z.array(Environments$outboundSchema).optional(),
|
|
270
|
-
secret: z.string().optional(),
|
|
271
|
-
samplingRate: z.number().optional(),
|
|
272
|
-
name: z.string().optional(),
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* @internal
|
|
277
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
278
|
-
*/
|
|
279
|
-
export namespace CreateConfigurableLogDrainRequestBody$ {
|
|
280
|
-
/** @deprecated use `CreateConfigurableLogDrainRequestBody$inboundSchema` instead. */
|
|
281
|
-
export const inboundSchema =
|
|
282
|
-
CreateConfigurableLogDrainRequestBody$inboundSchema;
|
|
283
|
-
/** @deprecated use `CreateConfigurableLogDrainRequestBody$outboundSchema` instead. */
|
|
284
|
-
export const outboundSchema =
|
|
285
|
-
CreateConfigurableLogDrainRequestBody$outboundSchema;
|
|
286
|
-
/** @deprecated use `CreateConfigurableLogDrainRequestBody$Outbound` instead. */
|
|
287
|
-
export type Outbound = CreateConfigurableLogDrainRequestBody$Outbound;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export function createConfigurableLogDrainRequestBodyToJSON(
|
|
291
|
-
createConfigurableLogDrainRequestBody: CreateConfigurableLogDrainRequestBody,
|
|
292
|
-
): string {
|
|
293
|
-
return JSON.stringify(
|
|
294
|
-
CreateConfigurableLogDrainRequestBody$outboundSchema.parse(
|
|
295
|
-
createConfigurableLogDrainRequestBody,
|
|
296
|
-
),
|
|
297
|
-
);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export function createConfigurableLogDrainRequestBodyFromJSON(
|
|
301
|
-
jsonString: string,
|
|
302
|
-
): SafeParseResult<CreateConfigurableLogDrainRequestBody, SDKValidationError> {
|
|
303
|
-
return safeParse(
|
|
304
|
-
jsonString,
|
|
305
|
-
(x) =>
|
|
306
|
-
CreateConfigurableLogDrainRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
-
`Failed to parse 'CreateConfigurableLogDrainRequestBody' from JSON`,
|
|
308
|
-
);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/** @internal */
|
|
312
|
-
export const CreateConfigurableLogDrainRequest$inboundSchema: z.ZodType<
|
|
313
|
-
CreateConfigurableLogDrainRequest,
|
|
314
|
-
z.ZodTypeDef,
|
|
315
|
-
unknown
|
|
316
|
-
> = z.object({
|
|
317
|
-
teamId: z.string().optional(),
|
|
318
|
-
slug: z.string().optional(),
|
|
319
|
-
RequestBody: z.lazy(() =>
|
|
320
|
-
CreateConfigurableLogDrainRequestBody$inboundSchema
|
|
321
|
-
),
|
|
322
|
-
}).transform((v) => {
|
|
323
|
-
return remap$(v, {
|
|
324
|
-
"RequestBody": "requestBody",
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
/** @internal */
|
|
329
|
-
export type CreateConfigurableLogDrainRequest$Outbound = {
|
|
330
|
-
teamId?: string | undefined;
|
|
331
|
-
slug?: string | undefined;
|
|
332
|
-
RequestBody: CreateConfigurableLogDrainRequestBody$Outbound;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
/** @internal */
|
|
336
|
-
export const CreateConfigurableLogDrainRequest$outboundSchema: z.ZodType<
|
|
337
|
-
CreateConfigurableLogDrainRequest$Outbound,
|
|
338
|
-
z.ZodTypeDef,
|
|
339
|
-
CreateConfigurableLogDrainRequest
|
|
340
|
-
> = z.object({
|
|
341
|
-
teamId: z.string().optional(),
|
|
342
|
-
slug: z.string().optional(),
|
|
343
|
-
requestBody: z.lazy(() =>
|
|
344
|
-
CreateConfigurableLogDrainRequestBody$outboundSchema
|
|
345
|
-
),
|
|
346
|
-
}).transform((v) => {
|
|
347
|
-
return remap$(v, {
|
|
348
|
-
requestBody: "RequestBody",
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @internal
|
|
354
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
355
|
-
*/
|
|
356
|
-
export namespace CreateConfigurableLogDrainRequest$ {
|
|
357
|
-
/** @deprecated use `CreateConfigurableLogDrainRequest$inboundSchema` instead. */
|
|
358
|
-
export const inboundSchema = CreateConfigurableLogDrainRequest$inboundSchema;
|
|
359
|
-
/** @deprecated use `CreateConfigurableLogDrainRequest$outboundSchema` instead. */
|
|
360
|
-
export const outboundSchema =
|
|
361
|
-
CreateConfigurableLogDrainRequest$outboundSchema;
|
|
362
|
-
/** @deprecated use `CreateConfigurableLogDrainRequest$Outbound` instead. */
|
|
363
|
-
export type Outbound = CreateConfigurableLogDrainRequest$Outbound;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export function createConfigurableLogDrainRequestToJSON(
|
|
367
|
-
createConfigurableLogDrainRequest: CreateConfigurableLogDrainRequest,
|
|
368
|
-
): string {
|
|
369
|
-
return JSON.stringify(
|
|
370
|
-
CreateConfigurableLogDrainRequest$outboundSchema.parse(
|
|
371
|
-
createConfigurableLogDrainRequest,
|
|
372
|
-
),
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export function createConfigurableLogDrainRequestFromJSON(
|
|
377
|
-
jsonString: string,
|
|
378
|
-
): SafeParseResult<CreateConfigurableLogDrainRequest, SDKValidationError> {
|
|
379
|
-
return safeParse(
|
|
380
|
-
jsonString,
|
|
381
|
-
(x) => CreateConfigurableLogDrainRequest$inboundSchema.parse(JSON.parse(x)),
|
|
382
|
-
`Failed to parse 'CreateConfigurableLogDrainRequest' from JSON`,
|
|
383
|
-
);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/** @internal */
|
|
387
|
-
export const CreateConfigurableLogDrainSources$inboundSchema: z.ZodNativeEnum<
|
|
388
|
-
typeof CreateConfigurableLogDrainSources
|
|
389
|
-
> = z.nativeEnum(CreateConfigurableLogDrainSources);
|
|
390
|
-
|
|
391
|
-
/** @internal */
|
|
392
|
-
export const CreateConfigurableLogDrainSources$outboundSchema: z.ZodNativeEnum<
|
|
393
|
-
typeof CreateConfigurableLogDrainSources
|
|
394
|
-
> = CreateConfigurableLogDrainSources$inboundSchema;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* @internal
|
|
398
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
399
|
-
*/
|
|
400
|
-
export namespace CreateConfigurableLogDrainSources$ {
|
|
401
|
-
/** @deprecated use `CreateConfigurableLogDrainSources$inboundSchema` instead. */
|
|
402
|
-
export const inboundSchema = CreateConfigurableLogDrainSources$inboundSchema;
|
|
403
|
-
/** @deprecated use `CreateConfigurableLogDrainSources$outboundSchema` instead. */
|
|
404
|
-
export const outboundSchema =
|
|
405
|
-
CreateConfigurableLogDrainSources$outboundSchema;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
/** @internal */
|
|
409
|
-
export const CreateConfigurableLogDrainEnvironments$inboundSchema:
|
|
410
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainEnvironments> = z.nativeEnum(
|
|
411
|
-
CreateConfigurableLogDrainEnvironments,
|
|
412
|
-
);
|
|
413
|
-
|
|
414
|
-
/** @internal */
|
|
415
|
-
export const CreateConfigurableLogDrainEnvironments$outboundSchema:
|
|
416
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainEnvironments> =
|
|
417
|
-
CreateConfigurableLogDrainEnvironments$inboundSchema;
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* @internal
|
|
421
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
422
|
-
*/
|
|
423
|
-
export namespace CreateConfigurableLogDrainEnvironments$ {
|
|
424
|
-
/** @deprecated use `CreateConfigurableLogDrainEnvironments$inboundSchema` instead. */
|
|
425
|
-
export const inboundSchema =
|
|
426
|
-
CreateConfigurableLogDrainEnvironments$inboundSchema;
|
|
427
|
-
/** @deprecated use `CreateConfigurableLogDrainEnvironments$outboundSchema` instead. */
|
|
428
|
-
export const outboundSchema =
|
|
429
|
-
CreateConfigurableLogDrainEnvironments$outboundSchema;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/** @internal */
|
|
433
|
-
export const CreateConfigurableLogDrainCreatedFrom$inboundSchema:
|
|
434
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainCreatedFrom> = z.nativeEnum(
|
|
435
|
-
CreateConfigurableLogDrainCreatedFrom,
|
|
436
|
-
);
|
|
437
|
-
|
|
438
|
-
/** @internal */
|
|
439
|
-
export const CreateConfigurableLogDrainCreatedFrom$outboundSchema:
|
|
440
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainCreatedFrom> =
|
|
441
|
-
CreateConfigurableLogDrainCreatedFrom$inboundSchema;
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* @internal
|
|
445
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
446
|
-
*/
|
|
447
|
-
export namespace CreateConfigurableLogDrainCreatedFrom$ {
|
|
448
|
-
/** @deprecated use `CreateConfigurableLogDrainCreatedFrom$inboundSchema` instead. */
|
|
449
|
-
export const inboundSchema =
|
|
450
|
-
CreateConfigurableLogDrainCreatedFrom$inboundSchema;
|
|
451
|
-
/** @deprecated use `CreateConfigurableLogDrainCreatedFrom$outboundSchema` instead. */
|
|
452
|
-
export const outboundSchema =
|
|
453
|
-
CreateConfigurableLogDrainCreatedFrom$outboundSchema;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/** @internal */
|
|
457
|
-
export const CreateConfigurableLogDrainDeliveryFormat$inboundSchema:
|
|
458
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainDeliveryFormat> = z
|
|
459
|
-
.nativeEnum(CreateConfigurableLogDrainDeliveryFormat);
|
|
460
|
-
|
|
461
|
-
/** @internal */
|
|
462
|
-
export const CreateConfigurableLogDrainDeliveryFormat$outboundSchema:
|
|
463
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainDeliveryFormat> =
|
|
464
|
-
CreateConfigurableLogDrainDeliveryFormat$inboundSchema;
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* @internal
|
|
468
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
469
|
-
*/
|
|
470
|
-
export namespace CreateConfigurableLogDrainDeliveryFormat$ {
|
|
471
|
-
/** @deprecated use `CreateConfigurableLogDrainDeliveryFormat$inboundSchema` instead. */
|
|
472
|
-
export const inboundSchema =
|
|
473
|
-
CreateConfigurableLogDrainDeliveryFormat$inboundSchema;
|
|
474
|
-
/** @deprecated use `CreateConfigurableLogDrainDeliveryFormat$outboundSchema` instead. */
|
|
475
|
-
export const outboundSchema =
|
|
476
|
-
CreateConfigurableLogDrainDeliveryFormat$outboundSchema;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/** @internal */
|
|
480
|
-
export const CreateConfigurableLogDrainStatus$inboundSchema: z.ZodNativeEnum<
|
|
481
|
-
typeof CreateConfigurableLogDrainStatus
|
|
482
|
-
> = z.nativeEnum(CreateConfigurableLogDrainStatus);
|
|
483
|
-
|
|
484
|
-
/** @internal */
|
|
485
|
-
export const CreateConfigurableLogDrainStatus$outboundSchema: z.ZodNativeEnum<
|
|
486
|
-
typeof CreateConfigurableLogDrainStatus
|
|
487
|
-
> = CreateConfigurableLogDrainStatus$inboundSchema;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* @internal
|
|
491
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
492
|
-
*/
|
|
493
|
-
export namespace CreateConfigurableLogDrainStatus$ {
|
|
494
|
-
/** @deprecated use `CreateConfigurableLogDrainStatus$inboundSchema` instead. */
|
|
495
|
-
export const inboundSchema = CreateConfigurableLogDrainStatus$inboundSchema;
|
|
496
|
-
/** @deprecated use `CreateConfigurableLogDrainStatus$outboundSchema` instead. */
|
|
497
|
-
export const outboundSchema = CreateConfigurableLogDrainStatus$outboundSchema;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/** @internal */
|
|
501
|
-
export const CreateConfigurableLogDrainDisabledReason$inboundSchema:
|
|
502
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainDisabledReason> = z
|
|
503
|
-
.nativeEnum(CreateConfigurableLogDrainDisabledReason);
|
|
504
|
-
|
|
505
|
-
/** @internal */
|
|
506
|
-
export const CreateConfigurableLogDrainDisabledReason$outboundSchema:
|
|
507
|
-
z.ZodNativeEnum<typeof CreateConfigurableLogDrainDisabledReason> =
|
|
508
|
-
CreateConfigurableLogDrainDisabledReason$inboundSchema;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* @internal
|
|
512
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
513
|
-
*/
|
|
514
|
-
export namespace CreateConfigurableLogDrainDisabledReason$ {
|
|
515
|
-
/** @deprecated use `CreateConfigurableLogDrainDisabledReason$inboundSchema` instead. */
|
|
516
|
-
export const inboundSchema =
|
|
517
|
-
CreateConfigurableLogDrainDisabledReason$inboundSchema;
|
|
518
|
-
/** @deprecated use `CreateConfigurableLogDrainDisabledReason$outboundSchema` instead. */
|
|
519
|
-
export const outboundSchema =
|
|
520
|
-
CreateConfigurableLogDrainDisabledReason$outboundSchema;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/** @internal */
|
|
524
|
-
export const CreateConfigurableLogDrainResponseBody$inboundSchema: z.ZodType<
|
|
525
|
-
CreateConfigurableLogDrainResponseBody,
|
|
526
|
-
z.ZodTypeDef,
|
|
527
|
-
unknown
|
|
528
|
-
> = z.object({
|
|
529
|
-
secret: z.string().optional(),
|
|
530
|
-
clientId: z.string().optional(),
|
|
531
|
-
configurationId: z.string().optional(),
|
|
532
|
-
sources: z.array(CreateConfigurableLogDrainSources$inboundSchema).optional(),
|
|
533
|
-
environments: z.array(CreateConfigurableLogDrainEnvironments$inboundSchema),
|
|
534
|
-
disabledBy: z.string().optional(),
|
|
535
|
-
firstErrorTimestamp: z.number().optional(),
|
|
536
|
-
samplingRate: z.number().optional(),
|
|
537
|
-
hideIpAddresses: z.boolean().optional(),
|
|
538
|
-
id: z.string(),
|
|
539
|
-
createdAt: z.number(),
|
|
540
|
-
deletedAt: z.nullable(z.number()),
|
|
541
|
-
updatedAt: z.number(),
|
|
542
|
-
url: z.string(),
|
|
543
|
-
headers: z.record(z.string()).optional(),
|
|
544
|
-
projectIds: z.array(z.string()).optional(),
|
|
545
|
-
name: z.string(),
|
|
546
|
-
teamId: z.nullable(z.string()).optional(),
|
|
547
|
-
ownerId: z.string(),
|
|
548
|
-
createdFrom: CreateConfigurableLogDrainCreatedFrom$inboundSchema.optional(),
|
|
549
|
-
deliveryFormat: CreateConfigurableLogDrainDeliveryFormat$inboundSchema,
|
|
550
|
-
status: CreateConfigurableLogDrainStatus$inboundSchema.optional(),
|
|
551
|
-
disabledAt: z.number().optional(),
|
|
552
|
-
disabledReason: CreateConfigurableLogDrainDisabledReason$inboundSchema
|
|
553
|
-
.optional(),
|
|
554
|
-
});
|
|
555
|
-
|
|
556
|
-
/** @internal */
|
|
557
|
-
export type CreateConfigurableLogDrainResponseBody$Outbound = {
|
|
558
|
-
secret?: string | undefined;
|
|
559
|
-
clientId?: string | undefined;
|
|
560
|
-
configurationId?: string | undefined;
|
|
561
|
-
sources?: Array<string> | undefined;
|
|
562
|
-
environments: Array<string>;
|
|
563
|
-
disabledBy?: string | undefined;
|
|
564
|
-
firstErrorTimestamp?: number | undefined;
|
|
565
|
-
samplingRate?: number | undefined;
|
|
566
|
-
hideIpAddresses?: boolean | undefined;
|
|
567
|
-
id: string;
|
|
568
|
-
createdAt: number;
|
|
569
|
-
deletedAt: number | null;
|
|
570
|
-
updatedAt: number;
|
|
571
|
-
url: string;
|
|
572
|
-
headers?: { [k: string]: string } | undefined;
|
|
573
|
-
projectIds?: Array<string> | undefined;
|
|
574
|
-
name: string;
|
|
575
|
-
teamId?: string | null | undefined;
|
|
576
|
-
ownerId: string;
|
|
577
|
-
createdFrom?: string | undefined;
|
|
578
|
-
deliveryFormat: string;
|
|
579
|
-
status?: string | undefined;
|
|
580
|
-
disabledAt?: number | undefined;
|
|
581
|
-
disabledReason?: string | undefined;
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
/** @internal */
|
|
585
|
-
export const CreateConfigurableLogDrainResponseBody$outboundSchema: z.ZodType<
|
|
586
|
-
CreateConfigurableLogDrainResponseBody$Outbound,
|
|
587
|
-
z.ZodTypeDef,
|
|
588
|
-
CreateConfigurableLogDrainResponseBody
|
|
589
|
-
> = z.object({
|
|
590
|
-
secret: z.string().optional(),
|
|
591
|
-
clientId: z.string().optional(),
|
|
592
|
-
configurationId: z.string().optional(),
|
|
593
|
-
sources: z.array(CreateConfigurableLogDrainSources$outboundSchema).optional(),
|
|
594
|
-
environments: z.array(CreateConfigurableLogDrainEnvironments$outboundSchema),
|
|
595
|
-
disabledBy: z.string().optional(),
|
|
596
|
-
firstErrorTimestamp: z.number().optional(),
|
|
597
|
-
samplingRate: z.number().optional(),
|
|
598
|
-
hideIpAddresses: z.boolean().optional(),
|
|
599
|
-
id: z.string(),
|
|
600
|
-
createdAt: z.number(),
|
|
601
|
-
deletedAt: z.nullable(z.number()),
|
|
602
|
-
updatedAt: z.number(),
|
|
603
|
-
url: z.string(),
|
|
604
|
-
headers: z.record(z.string()).optional(),
|
|
605
|
-
projectIds: z.array(z.string()).optional(),
|
|
606
|
-
name: z.string(),
|
|
607
|
-
teamId: z.nullable(z.string()).optional(),
|
|
608
|
-
ownerId: z.string(),
|
|
609
|
-
createdFrom: CreateConfigurableLogDrainCreatedFrom$outboundSchema.optional(),
|
|
610
|
-
deliveryFormat: CreateConfigurableLogDrainDeliveryFormat$outboundSchema,
|
|
611
|
-
status: CreateConfigurableLogDrainStatus$outboundSchema.optional(),
|
|
612
|
-
disabledAt: z.number().optional(),
|
|
613
|
-
disabledReason: CreateConfigurableLogDrainDisabledReason$outboundSchema
|
|
614
|
-
.optional(),
|
|
615
|
-
});
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* @internal
|
|
619
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
620
|
-
*/
|
|
621
|
-
export namespace CreateConfigurableLogDrainResponseBody$ {
|
|
622
|
-
/** @deprecated use `CreateConfigurableLogDrainResponseBody$inboundSchema` instead. */
|
|
623
|
-
export const inboundSchema =
|
|
624
|
-
CreateConfigurableLogDrainResponseBody$inboundSchema;
|
|
625
|
-
/** @deprecated use `CreateConfigurableLogDrainResponseBody$outboundSchema` instead. */
|
|
626
|
-
export const outboundSchema =
|
|
627
|
-
CreateConfigurableLogDrainResponseBody$outboundSchema;
|
|
628
|
-
/** @deprecated use `CreateConfigurableLogDrainResponseBody$Outbound` instead. */
|
|
629
|
-
export type Outbound = CreateConfigurableLogDrainResponseBody$Outbound;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
export function createConfigurableLogDrainResponseBodyToJSON(
|
|
633
|
-
createConfigurableLogDrainResponseBody:
|
|
634
|
-
CreateConfigurableLogDrainResponseBody,
|
|
635
|
-
): string {
|
|
636
|
-
return JSON.stringify(
|
|
637
|
-
CreateConfigurableLogDrainResponseBody$outboundSchema.parse(
|
|
638
|
-
createConfigurableLogDrainResponseBody,
|
|
639
|
-
),
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
export function createConfigurableLogDrainResponseBodyFromJSON(
|
|
644
|
-
jsonString: string,
|
|
645
|
-
): SafeParseResult<CreateConfigurableLogDrainResponseBody, SDKValidationError> {
|
|
646
|
-
return safeParse(
|
|
647
|
-
jsonString,
|
|
648
|
-
(x) =>
|
|
649
|
-
CreateConfigurableLogDrainResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
650
|
-
`Failed to parse 'CreateConfigurableLogDrainResponseBody' from JSON`,
|
|
651
|
-
);
|
|
652
|
-
}
|