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