@vercel/sdk 1.13.9 → 1.14.0
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 +25 -21
- package/bin/mcp-server.js +1006 -658
- package/bin/mcp-server.js.map +34 -29
- package/docs/sdks/domainsregistrar/README.md +6 -0
- package/docs/sdks/projects/README.md +2 -0
- package/docs/sdks/security/README.md +70 -0
- package/esm/__tests__/accessgroups.test.js +3 -1
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/domains.test.js +11 -3
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +6 -2
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/rollingrelease.test.js +2 -6
- package/esm/__tests__/rollingrelease.test.js.map +1 -1
- package/esm/__tests__/security.test.js +18 -4
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/integrationsDeleteConfiguration.js +2 -2
- package/esm/funcs/integrationsDeleteConfiguration.js.map +1 -1
- package/esm/funcs/projectsGetProjects.js +1 -0
- package/esm/funcs/projectsGetProjects.js.map +1 -1
- package/esm/funcs/securityGetV1SecurityFirewallEvents.d.ts +17 -0
- package/esm/funcs/securityGetV1SecurityFirewallEvents.d.ts.map +1 -0
- package/esm/funcs/securityGetV1SecurityFirewallEvents.js +78 -0
- package/esm/funcs/securityGetV1SecurityFirewallEvents.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.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 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/securityGetV1SecurityFirewallEvents.d.ts +7 -0
- package/esm/mcp-server/tools/securityGetV1SecurityFirewallEvents.d.ts.map +1 -0
- package/esm/mcp-server/tools/securityGetV1SecurityFirewallEvents.js +28 -0
- package/esm/mcp-server/tools/securityGetV1SecurityFirewallEvents.js.map +1 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts +1 -1
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.js +2 -1
- package/esm/models/acceptprojecttransferrequestop.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/buydomainsop.d.ts +3 -2
- package/esm/models/buydomainsop.d.ts.map +1 -1
- package/esm/models/buydomainsop.js +3 -0
- package/esm/models/buydomainsop.js.map +1 -1
- package/esm/models/buysingledomainop.d.ts +3 -2
- package/esm/models/buysingledomainop.d.ts.map +1 -1
- package/esm/models/buysingledomainop.js +3 -0
- package/esm/models/buysingledomainop.js.map +1 -1
- package/esm/models/createeventop.d.ts +2 -2
- package/esm/models/createeventop.d.ts.map +1 -1
- package/esm/models/createeventop.js +2 -2
- package/esm/models/createeventop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +340 -315
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +392 -381
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +12 -0
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -0
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/dnssecenabled.d.ts +70 -0
- package/esm/models/dnssecenabled.d.ts.map +1 -0
- package/esm/models/dnssecenabled.js +72 -0
- package/esm/models/dnssecenabled.js.map +1 -0
- package/esm/models/domaintooshort.d.ts +70 -0
- package/esm/models/domaintooshort.d.ts.map +1 -0
- package/esm/models/domaintooshort.js +72 -0
- package/esm/models/domaintooshort.js.map +1 -0
- package/esm/models/filetree.d.ts +0 -5
- package/esm/models/filetree.d.ts.map +1 -1
- package/esm/models/filetree.js +0 -2
- package/esm/models/filetree.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +375 -375
- package/esm/models/getconfigurationproductsop.js +465 -465
- package/esm/models/getconfigurationsop.d.ts +18 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +6 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdomainpriceop.d.ts +3 -2
- package/esm/models/getdomainpriceop.d.ts.map +1 -1
- package/esm/models/getdomainpriceop.js +3 -0
- package/esm/models/getdomainpriceop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +5 -0
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +2 -0
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getv1securityfirewalleventsop.d.ts +95 -0
- package/esm/models/getv1securityfirewalleventsop.d.ts.map +1 -0
- package/esm/models/getv1securityfirewalleventsop.js +108 -0
- package/esm/models/getv1securityfirewalleventsop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +6 -0
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -0
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +12 -0
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +4 -0
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +1 -1
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +1 -1
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/renewdomainop.d.ts +3 -2
- package/esm/models/renewdomainop.d.ts.map +1 -1
- package/esm/models/renewdomainop.js +3 -0
- package/esm/models/renewdomainop.js.map +1 -1
- package/esm/models/team.d.ts +1 -1
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +1 -1
- package/esm/models/team.js.map +1 -1
- package/esm/models/transferindomainop.d.ts +4 -2
- package/esm/models/transferindomainop.d.ts.map +1 -1
- package/esm/models/transferindomainop.js +6 -0
- package/esm/models/transferindomainop.js.map +1 -1
- package/esm/models/updateinstallationop.d.ts +1 -1
- package/esm/models/updateinstallationop.d.ts.map +1 -1
- package/esm/models/updateinstallationop.js +1 -1
- package/esm/models/updateinstallationop.js.map +1 -1
- package/esm/models/updateresourceop.d.ts +1 -1
- package/esm/models/updateresourceop.d.ts.map +1 -1
- package/esm/models/updateresourceop.js +1 -1
- package/esm/models/updateresourceop.js.map +1 -1
- package/esm/models/userevent.d.ts +77 -11
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +67 -9
- package/esm/models/userevent.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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/accessgroups.test.ts +3 -1
- package/src/__tests__/domains.test.ts +11 -3
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +6 -2
- package/src/__tests__/rollingrelease.test.ts +2 -6
- package/src/__tests__/security.test.ts +23 -4
- package/src/funcs/integrationsDeleteConfiguration.ts +2 -2
- package/src/funcs/projectsGetProjects.ts +1 -0
- package/src/funcs/securityGetV1SecurityFirewallEvents.ts +165 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/securityGetV1SecurityFirewallEvents.ts +39 -0
- package/src/models/acceptprojecttransferrequestop.ts +3 -2
- package/src/models/authtoken.ts +2 -0
- package/src/models/buydomainsop.ts +10 -0
- package/src/models/buysingledomainop.ts +10 -0
- package/src/models/createeventop.ts +4 -4
- package/src/models/createintegrationstoredirectop.ts +714 -668
- package/src/models/createwebhookop.ts +4 -0
- package/src/models/dnssecenabled.ts +120 -0
- package/src/models/domaintooshort.ts +120 -0
- package/src/models/filetree.ts +0 -7
- package/src/models/getconfigurationproductsop.ts +802 -802
- package/src/models/getconfigurationsop.ts +6 -0
- package/src/models/getdomainpriceop.ts +10 -0
- package/src/models/getprojectsop.ts +7 -0
- package/src/models/getv1securityfirewalleventsop.ts +233 -0
- package/src/models/getwebhookop.ts +2 -0
- package/src/models/getwebhooksop.ts +4 -0
- package/src/models/importresourceop.ts +2 -2
- package/src/models/renewdomainop.ts +10 -0
- package/src/models/team.ts +2 -2
- package/src/models/transferindomainop.ts +20 -0
- package/src/models/updateinstallationop.ts +2 -2
- package/src/models/updateresourceop.ts +2 -2
- package/src/models/userevent.ts +140 -17
- package/src/sdk/security.ts +22 -0
- package/vercel-spec.json +351 -109
|
@@ -38,11 +38,15 @@ export type GetConfigurationsRequest = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export const TagIds = {
|
|
41
|
+
TagAgents: "tag_agents",
|
|
41
42
|
TagAi: "tag_ai",
|
|
42
43
|
TagAnalytics: "tag_analytics",
|
|
43
44
|
TagAuthentication: "tag_authentication",
|
|
44
45
|
TagCms: "tag_cms",
|
|
45
46
|
TagCodeRepository: "tag_code_repository",
|
|
47
|
+
TagCodeReview: "tag_code_review",
|
|
48
|
+
TagCodeSecurity: "tag_code_security",
|
|
49
|
+
TagCodeTesting: "tag_code_testing",
|
|
46
50
|
TagCommerce: "tag_commerce",
|
|
47
51
|
TagDatabases: "tag_databases",
|
|
48
52
|
TagDevTools: "tag_dev_tools",
|
|
@@ -57,8 +61,10 @@ export const TagIds = {
|
|
|
57
61
|
TagProductivity: "tag_productivity",
|
|
58
62
|
TagSearching: "tag_searching",
|
|
59
63
|
TagSecurity: "tag_security",
|
|
64
|
+
TagSupportAgent: "tag_support_agent",
|
|
60
65
|
TagTesting: "tag_testing",
|
|
61
66
|
TagVideo: "tag_video",
|
|
67
|
+
TagWebAutomation: "tag_web_automation",
|
|
62
68
|
TagWorkflow: "tag_workflow",
|
|
63
69
|
} as const;
|
|
64
70
|
export type TagIds = ClosedEnum<typeof TagIds>;
|
|
@@ -11,6 +11,12 @@ import {
|
|
|
11
11
|
BadRequest$Outbound,
|
|
12
12
|
BadRequest$outboundSchema,
|
|
13
13
|
} from "./badrequest.js";
|
|
14
|
+
import {
|
|
15
|
+
DomainTooShort,
|
|
16
|
+
DomainTooShort$inboundSchema,
|
|
17
|
+
DomainTooShort$Outbound,
|
|
18
|
+
DomainTooShort$outboundSchema,
|
|
19
|
+
} from "./domaintooshort.js";
|
|
14
20
|
import {
|
|
15
21
|
HttpApiDecodeError,
|
|
16
22
|
HttpApiDecodeError$inboundSchema,
|
|
@@ -36,6 +42,7 @@ export type GetDomainPriceRequest = {
|
|
|
36
42
|
*/
|
|
37
43
|
export type GetDomainPriceDomainsRegistrarResponseBody =
|
|
38
44
|
| BadRequest
|
|
45
|
+
| DomainTooShort
|
|
39
46
|
| TldNotSupported
|
|
40
47
|
| HttpApiDecodeError;
|
|
41
48
|
|
|
@@ -123,6 +130,7 @@ export const GetDomainPriceDomainsRegistrarResponseBody$inboundSchema:
|
|
|
123
130
|
z.ZodType<GetDomainPriceDomainsRegistrarResponseBody, z.ZodTypeDef, unknown> =
|
|
124
131
|
z.union([
|
|
125
132
|
BadRequest$inboundSchema,
|
|
133
|
+
DomainTooShort$inboundSchema,
|
|
126
134
|
TldNotSupported$inboundSchema,
|
|
127
135
|
HttpApiDecodeError$inboundSchema,
|
|
128
136
|
]);
|
|
@@ -130,6 +138,7 @@ export const GetDomainPriceDomainsRegistrarResponseBody$inboundSchema:
|
|
|
130
138
|
/** @internal */
|
|
131
139
|
export type GetDomainPriceDomainsRegistrarResponseBody$Outbound =
|
|
132
140
|
| BadRequest$Outbound
|
|
141
|
+
| DomainTooShort$Outbound
|
|
133
142
|
| TldNotSupported$Outbound
|
|
134
143
|
| HttpApiDecodeError$Outbound;
|
|
135
144
|
|
|
@@ -141,6 +150,7 @@ export const GetDomainPriceDomainsRegistrarResponseBody$outboundSchema:
|
|
|
141
150
|
GetDomainPriceDomainsRegistrarResponseBody
|
|
142
151
|
> = z.union([
|
|
143
152
|
BadRequest$outboundSchema,
|
|
153
|
+
DomainTooShort$outboundSchema,
|
|
144
154
|
TldNotSupported$outboundSchema,
|
|
145
155
|
HttpApiDecodeError$outboundSchema,
|
|
146
156
|
]);
|
|
@@ -108,6 +108,10 @@ export type GetProjectsRequest = {
|
|
|
108
108
|
* Filter results by projects with Static IPs enabled
|
|
109
109
|
*/
|
|
110
110
|
staticIpsEnabled?: StaticIpsEnabled | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Filter results by build machine types. Accepts comma-separated values. Use \"default\" for projects without a build machine type set.
|
|
113
|
+
*/
|
|
114
|
+
buildMachineTypes?: string | undefined;
|
|
111
115
|
/**
|
|
112
116
|
* The Team identifier to perform the request on behalf of.
|
|
113
117
|
*/
|
|
@@ -2409,6 +2413,7 @@ export const GetProjectsRequest$inboundSchema: z.ZodType<
|
|
|
2409
2413
|
deprecated: z.boolean().optional(),
|
|
2410
2414
|
elasticConcurrencyEnabled: ElasticConcurrencyEnabled$inboundSchema.optional(),
|
|
2411
2415
|
staticIpsEnabled: StaticIpsEnabled$inboundSchema.optional(),
|
|
2416
|
+
buildMachineTypes: z.string().optional(),
|
|
2412
2417
|
teamId: z.string().optional(),
|
|
2413
2418
|
slug: z.string().optional(),
|
|
2414
2419
|
});
|
|
@@ -2428,6 +2433,7 @@ export type GetProjectsRequest$Outbound = {
|
|
|
2428
2433
|
deprecated?: boolean | undefined;
|
|
2429
2434
|
elasticConcurrencyEnabled?: string | undefined;
|
|
2430
2435
|
staticIpsEnabled?: string | undefined;
|
|
2436
|
+
buildMachineTypes?: string | undefined;
|
|
2431
2437
|
teamId?: string | undefined;
|
|
2432
2438
|
slug?: string | undefined;
|
|
2433
2439
|
};
|
|
@@ -2452,6 +2458,7 @@ export const GetProjectsRequest$outboundSchema: z.ZodType<
|
|
|
2452
2458
|
elasticConcurrencyEnabled: ElasticConcurrencyEnabled$outboundSchema
|
|
2453
2459
|
.optional(),
|
|
2454
2460
|
staticIpsEnabled: StaticIpsEnabled$outboundSchema.optional(),
|
|
2461
|
+
buildMachineTypes: z.string().optional(),
|
|
2455
2462
|
teamId: z.string().optional(),
|
|
2456
2463
|
slug: z.string().optional(),
|
|
2457
2464
|
});
|
|
@@ -0,0 +1,233 @@
|
|
|
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 { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetV1SecurityFirewallEventsRequest = {
|
|
12
|
+
projectId: string;
|
|
13
|
+
startTimestamp?: number | undefined;
|
|
14
|
+
endTimestamp?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type Actions = {
|
|
18
|
+
startTime: string;
|
|
19
|
+
endTime: string;
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
actionType: string;
|
|
22
|
+
host: string;
|
|
23
|
+
publicIp: string;
|
|
24
|
+
count: number;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type GetV1SecurityFirewallEventsResponseBody = {
|
|
28
|
+
actions: Array<Actions>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const GetV1SecurityFirewallEventsRequest$inboundSchema: z.ZodType<
|
|
33
|
+
GetV1SecurityFirewallEventsRequest,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
projectId: z.string(),
|
|
38
|
+
startTimestamp: z.number().optional(),
|
|
39
|
+
endTimestamp: z.number().optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type GetV1SecurityFirewallEventsRequest$Outbound = {
|
|
44
|
+
projectId: string;
|
|
45
|
+
startTimestamp?: number | undefined;
|
|
46
|
+
endTimestamp?: number | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const GetV1SecurityFirewallEventsRequest$outboundSchema: z.ZodType<
|
|
51
|
+
GetV1SecurityFirewallEventsRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
GetV1SecurityFirewallEventsRequest
|
|
54
|
+
> = z.object({
|
|
55
|
+
projectId: z.string(),
|
|
56
|
+
startTimestamp: z.number().optional(),
|
|
57
|
+
endTimestamp: z.number().optional(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace GetV1SecurityFirewallEventsRequest$ {
|
|
65
|
+
/** @deprecated use `GetV1SecurityFirewallEventsRequest$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = GetV1SecurityFirewallEventsRequest$inboundSchema;
|
|
67
|
+
/** @deprecated use `GetV1SecurityFirewallEventsRequest$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema =
|
|
69
|
+
GetV1SecurityFirewallEventsRequest$outboundSchema;
|
|
70
|
+
/** @deprecated use `GetV1SecurityFirewallEventsRequest$Outbound` instead. */
|
|
71
|
+
export type Outbound = GetV1SecurityFirewallEventsRequest$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function getV1SecurityFirewallEventsRequestToJSON(
|
|
75
|
+
getV1SecurityFirewallEventsRequest: GetV1SecurityFirewallEventsRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
GetV1SecurityFirewallEventsRequest$outboundSchema.parse(
|
|
79
|
+
getV1SecurityFirewallEventsRequest,
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function getV1SecurityFirewallEventsRequestFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<GetV1SecurityFirewallEventsRequest, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) =>
|
|
90
|
+
GetV1SecurityFirewallEventsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'GetV1SecurityFirewallEventsRequest' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const Actions$inboundSchema: z.ZodType<Actions, z.ZodTypeDef, unknown> =
|
|
97
|
+
z.object({
|
|
98
|
+
startTime: z.string(),
|
|
99
|
+
endTime: z.string(),
|
|
100
|
+
isActive: z.boolean(),
|
|
101
|
+
action_type: z.string(),
|
|
102
|
+
host: z.string(),
|
|
103
|
+
public_ip: z.string(),
|
|
104
|
+
count: z.number(),
|
|
105
|
+
}).transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
"action_type": "actionType",
|
|
108
|
+
"public_ip": "publicIp",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export type Actions$Outbound = {
|
|
114
|
+
startTime: string;
|
|
115
|
+
endTime: string;
|
|
116
|
+
isActive: boolean;
|
|
117
|
+
action_type: string;
|
|
118
|
+
host: string;
|
|
119
|
+
public_ip: string;
|
|
120
|
+
count: number;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const Actions$outboundSchema: z.ZodType<
|
|
125
|
+
Actions$Outbound,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
Actions
|
|
128
|
+
> = z.object({
|
|
129
|
+
startTime: z.string(),
|
|
130
|
+
endTime: z.string(),
|
|
131
|
+
isActive: z.boolean(),
|
|
132
|
+
actionType: z.string(),
|
|
133
|
+
host: z.string(),
|
|
134
|
+
publicIp: z.string(),
|
|
135
|
+
count: z.number(),
|
|
136
|
+
}).transform((v) => {
|
|
137
|
+
return remap$(v, {
|
|
138
|
+
actionType: "action_type",
|
|
139
|
+
publicIp: "public_ip",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace Actions$ {
|
|
148
|
+
/** @deprecated use `Actions$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema = Actions$inboundSchema;
|
|
150
|
+
/** @deprecated use `Actions$outboundSchema` instead. */
|
|
151
|
+
export const outboundSchema = Actions$outboundSchema;
|
|
152
|
+
/** @deprecated use `Actions$Outbound` instead. */
|
|
153
|
+
export type Outbound = Actions$Outbound;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function actionsToJSON(actions: Actions): string {
|
|
157
|
+
return JSON.stringify(Actions$outboundSchema.parse(actions));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function actionsFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<Actions, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => Actions$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'Actions' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const GetV1SecurityFirewallEventsResponseBody$inboundSchema: z.ZodType<
|
|
172
|
+
GetV1SecurityFirewallEventsResponseBody,
|
|
173
|
+
z.ZodTypeDef,
|
|
174
|
+
unknown
|
|
175
|
+
> = z.object({
|
|
176
|
+
actions: z.array(z.lazy(() => Actions$inboundSchema)),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export type GetV1SecurityFirewallEventsResponseBody$Outbound = {
|
|
181
|
+
actions: Array<Actions$Outbound>;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export const GetV1SecurityFirewallEventsResponseBody$outboundSchema: z.ZodType<
|
|
186
|
+
GetV1SecurityFirewallEventsResponseBody$Outbound,
|
|
187
|
+
z.ZodTypeDef,
|
|
188
|
+
GetV1SecurityFirewallEventsResponseBody
|
|
189
|
+
> = z.object({
|
|
190
|
+
actions: z.array(z.lazy(() => Actions$outboundSchema)),
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @internal
|
|
195
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
196
|
+
*/
|
|
197
|
+
export namespace GetV1SecurityFirewallEventsResponseBody$ {
|
|
198
|
+
/** @deprecated use `GetV1SecurityFirewallEventsResponseBody$inboundSchema` instead. */
|
|
199
|
+
export const inboundSchema =
|
|
200
|
+
GetV1SecurityFirewallEventsResponseBody$inboundSchema;
|
|
201
|
+
/** @deprecated use `GetV1SecurityFirewallEventsResponseBody$outboundSchema` instead. */
|
|
202
|
+
export const outboundSchema =
|
|
203
|
+
GetV1SecurityFirewallEventsResponseBody$outboundSchema;
|
|
204
|
+
/** @deprecated use `GetV1SecurityFirewallEventsResponseBody$Outbound` instead. */
|
|
205
|
+
export type Outbound = GetV1SecurityFirewallEventsResponseBody$Outbound;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function getV1SecurityFirewallEventsResponseBodyToJSON(
|
|
209
|
+
getV1SecurityFirewallEventsResponseBody:
|
|
210
|
+
GetV1SecurityFirewallEventsResponseBody,
|
|
211
|
+
): string {
|
|
212
|
+
return JSON.stringify(
|
|
213
|
+
GetV1SecurityFirewallEventsResponseBody$outboundSchema.parse(
|
|
214
|
+
getV1SecurityFirewallEventsResponseBody,
|
|
215
|
+
),
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function getV1SecurityFirewallEventsResponseBodyFromJSON(
|
|
220
|
+
jsonString: string,
|
|
221
|
+
): SafeParseResult<
|
|
222
|
+
GetV1SecurityFirewallEventsResponseBody,
|
|
223
|
+
SDKValidationError
|
|
224
|
+
> {
|
|
225
|
+
return safeParse(
|
|
226
|
+
jsonString,
|
|
227
|
+
(x) =>
|
|
228
|
+
GetV1SecurityFirewallEventsResponseBody$inboundSchema.parse(
|
|
229
|
+
JSON.parse(x),
|
|
230
|
+
),
|
|
231
|
+
`Failed to parse 'GetV1SecurityFirewallEventsResponseBody' from JSON`,
|
|
232
|
+
);
|
|
233
|
+
}
|
|
@@ -100,6 +100,8 @@ export const GetWebhookEvents = {
|
|
|
100
100
|
MarketplaceInvoiceRefunded: "marketplace.invoice.refunded",
|
|
101
101
|
ObservabilityAnomaly: "observability.anomaly",
|
|
102
102
|
ObservabilityAnomalyError: "observability.anomaly-error",
|
|
103
|
+
ObservabilityUsageAnomaly: "observability.usage-anomaly",
|
|
104
|
+
ObservabilityErrorAnomaly: "observability.error-anomaly",
|
|
103
105
|
ObservabilityAnomalyBotId: "observability.anomaly-botId",
|
|
104
106
|
TestWebhook: "test-webhook",
|
|
105
107
|
} as const;
|
|
@@ -100,6 +100,8 @@ export const GetWebhooksResponseBodyEvents = {
|
|
|
100
100
|
MarketplaceInvoiceRefunded: "marketplace.invoice.refunded",
|
|
101
101
|
ObservabilityAnomaly: "observability.anomaly",
|
|
102
102
|
ObservabilityAnomalyError: "observability.anomaly-error",
|
|
103
|
+
ObservabilityUsageAnomaly: "observability.usage-anomaly",
|
|
104
|
+
ObservabilityErrorAnomaly: "observability.error-anomaly",
|
|
103
105
|
ObservabilityAnomalyBotId: "observability.anomaly-botId",
|
|
104
106
|
TestWebhook: "test-webhook",
|
|
105
107
|
} as const;
|
|
@@ -288,6 +290,8 @@ export const ResponseBodyEvents = {
|
|
|
288
290
|
MarketplaceInvoiceRefunded: "marketplace.invoice.refunded",
|
|
289
291
|
ObservabilityAnomaly: "observability.anomaly",
|
|
290
292
|
ObservabilityAnomalyError: "observability.anomaly-error",
|
|
293
|
+
ObservabilityUsageAnomaly: "observability.usage-anomaly",
|
|
294
|
+
ObservabilityErrorAnomaly: "observability.error-anomaly",
|
|
291
295
|
ObservabilityAnomalyBotId: "observability.anomaly-botId",
|
|
292
296
|
TestWebhook: "test-webhook",
|
|
293
297
|
} as const;
|
|
@@ -56,7 +56,7 @@ export type ImportResourceBillingPlan = {
|
|
|
56
56
|
details?: Array<ImportResourceDetails> | undefined;
|
|
57
57
|
highlightedDetails?: Array<ImportResourceHighlightedDetails> | undefined;
|
|
58
58
|
effectiveDate?: string | undefined;
|
|
59
|
-
additionalProperties?: { [k: string]: any };
|
|
59
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export const ImportResourceLevel = {
|
|
@@ -358,7 +358,7 @@ export const ImportResourceBillingPlan$outboundSchema: z.ZodType<
|
|
|
358
358
|
z.lazy(() => ImportResourceHighlightedDetails$outboundSchema),
|
|
359
359
|
).optional(),
|
|
360
360
|
effectiveDate: z.string().optional(),
|
|
361
|
-
additionalProperties: z.record(z.any()),
|
|
361
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
362
362
|
}).transform((v) => {
|
|
363
363
|
return {
|
|
364
364
|
...v.additionalProperties,
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
DomainNotRegistered$Outbound,
|
|
26
26
|
DomainNotRegistered$outboundSchema,
|
|
27
27
|
} from "./domainnotregistered.js";
|
|
28
|
+
import {
|
|
29
|
+
DomainTooShort,
|
|
30
|
+
DomainTooShort$inboundSchema,
|
|
31
|
+
DomainTooShort$Outbound,
|
|
32
|
+
DomainTooShort$outboundSchema,
|
|
33
|
+
} from "./domaintooshort.js";
|
|
28
34
|
import {
|
|
29
35
|
ExpectedPriceMismatch,
|
|
30
36
|
ExpectedPriceMismatch$inboundSchema,
|
|
@@ -138,6 +144,7 @@ export type RenewDomainDomainsRegistrarResponseResponseBody =
|
|
|
138
144
|
*/
|
|
139
145
|
export type RenewDomainDomainsRegistrarResponseBody =
|
|
140
146
|
| BadRequest
|
|
147
|
+
| DomainTooShort
|
|
141
148
|
| DomainNotRegistered
|
|
142
149
|
| ExpectedPriceMismatch
|
|
143
150
|
| DomainNotAvailable
|
|
@@ -456,6 +463,7 @@ export const RenewDomainDomainsRegistrarResponseBody$inboundSchema: z.ZodType<
|
|
|
456
463
|
unknown
|
|
457
464
|
> = z.union([
|
|
458
465
|
BadRequest$inboundSchema,
|
|
466
|
+
DomainTooShort$inboundSchema,
|
|
459
467
|
DomainNotRegistered$inboundSchema,
|
|
460
468
|
ExpectedPriceMismatch$inboundSchema,
|
|
461
469
|
DomainNotAvailable$inboundSchema,
|
|
@@ -466,6 +474,7 @@ export const RenewDomainDomainsRegistrarResponseBody$inboundSchema: z.ZodType<
|
|
|
466
474
|
/** @internal */
|
|
467
475
|
export type RenewDomainDomainsRegistrarResponseBody$Outbound =
|
|
468
476
|
| BadRequest$Outbound
|
|
477
|
+
| DomainTooShort$Outbound
|
|
469
478
|
| DomainNotRegistered$Outbound
|
|
470
479
|
| ExpectedPriceMismatch$Outbound
|
|
471
480
|
| DomainNotAvailable$Outbound
|
|
@@ -479,6 +488,7 @@ export const RenewDomainDomainsRegistrarResponseBody$outboundSchema: z.ZodType<
|
|
|
479
488
|
RenewDomainDomainsRegistrarResponseBody
|
|
480
489
|
> = z.union([
|
|
481
490
|
BadRequest$outboundSchema,
|
|
491
|
+
DomainTooShort$outboundSchema,
|
|
482
492
|
DomainNotRegistered$outboundSchema,
|
|
483
493
|
ExpectedPriceMismatch$outboundSchema,
|
|
484
494
|
DomainNotAvailable$outboundSchema,
|
package/src/models/team.ts
CHANGED
|
@@ -494,7 +494,7 @@ export type Team = {
|
|
|
494
494
|
* UNIX timestamp (in milliseconds) when the Team was created.
|
|
495
495
|
*/
|
|
496
496
|
createdAt: number;
|
|
497
|
-
additionalProperties?: { [k: string]: any };
|
|
497
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
498
498
|
};
|
|
499
499
|
|
|
500
500
|
/** @internal */
|
|
@@ -1972,7 +1972,7 @@ export const Team$outboundSchema: z.ZodType<Team$Outbound, z.ZodTypeDef, Team> =
|
|
|
1972
1972
|
avatar: z.nullable(z.string()),
|
|
1973
1973
|
membership: z.lazy(() => Membership$outboundSchema),
|
|
1974
1974
|
createdAt: z.number(),
|
|
1975
|
-
additionalProperties: z.record(z.any()),
|
|
1975
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
1976
1976
|
}).transform((v) => {
|
|
1977
1977
|
return {
|
|
1978
1978
|
...v.additionalProperties,
|
|
@@ -13,12 +13,24 @@ import {
|
|
|
13
13
|
BadRequest$Outbound,
|
|
14
14
|
BadRequest$outboundSchema,
|
|
15
15
|
} from "./badrequest.js";
|
|
16
|
+
import {
|
|
17
|
+
DNSSECEnabled,
|
|
18
|
+
DNSSECEnabled$inboundSchema,
|
|
19
|
+
DNSSECEnabled$Outbound,
|
|
20
|
+
DNSSECEnabled$outboundSchema,
|
|
21
|
+
} from "./dnssecenabled.js";
|
|
16
22
|
import {
|
|
17
23
|
DomainNotAvailable,
|
|
18
24
|
DomainNotAvailable$inboundSchema,
|
|
19
25
|
DomainNotAvailable$Outbound,
|
|
20
26
|
DomainNotAvailable$outboundSchema,
|
|
21
27
|
} from "./domainnotavailable.js";
|
|
28
|
+
import {
|
|
29
|
+
DomainTooShort,
|
|
30
|
+
DomainTooShort$inboundSchema,
|
|
31
|
+
DomainTooShort$Outbound,
|
|
32
|
+
DomainTooShort$outboundSchema,
|
|
33
|
+
} from "./domaintooshort.js";
|
|
22
34
|
import {
|
|
23
35
|
ExpectedPriceMismatch,
|
|
24
36
|
ExpectedPriceMismatch$inboundSchema,
|
|
@@ -137,6 +149,8 @@ export type TransferInDomainDomainsRegistrarResponseResponseBody =
|
|
|
137
149
|
*/
|
|
138
150
|
export type TransferInDomainDomainsRegistrarResponseBody =
|
|
139
151
|
| BadRequest
|
|
152
|
+
| DomainTooShort
|
|
153
|
+
| DNSSECEnabled
|
|
140
154
|
| ExpectedPriceMismatch
|
|
141
155
|
| DomainNotAvailable
|
|
142
156
|
| TldNotSupported
|
|
@@ -467,6 +481,8 @@ export const TransferInDomainDomainsRegistrarResponseBody$inboundSchema:
|
|
|
467
481
|
unknown
|
|
468
482
|
> = z.union([
|
|
469
483
|
BadRequest$inboundSchema,
|
|
484
|
+
DomainTooShort$inboundSchema,
|
|
485
|
+
DNSSECEnabled$inboundSchema,
|
|
470
486
|
ExpectedPriceMismatch$inboundSchema,
|
|
471
487
|
DomainNotAvailable$inboundSchema,
|
|
472
488
|
TldNotSupported$inboundSchema,
|
|
@@ -476,6 +492,8 @@ export const TransferInDomainDomainsRegistrarResponseBody$inboundSchema:
|
|
|
476
492
|
/** @internal */
|
|
477
493
|
export type TransferInDomainDomainsRegistrarResponseBody$Outbound =
|
|
478
494
|
| BadRequest$Outbound
|
|
495
|
+
| DomainTooShort$Outbound
|
|
496
|
+
| DNSSECEnabled$Outbound
|
|
479
497
|
| ExpectedPriceMismatch$Outbound
|
|
480
498
|
| DomainNotAvailable$Outbound
|
|
481
499
|
| TldNotSupported$Outbound
|
|
@@ -489,6 +507,8 @@ export const TransferInDomainDomainsRegistrarResponseBody$outboundSchema:
|
|
|
489
507
|
TransferInDomainDomainsRegistrarResponseBody
|
|
490
508
|
> = z.union([
|
|
491
509
|
BadRequest$outboundSchema,
|
|
510
|
+
DomainTooShort$outboundSchema,
|
|
511
|
+
DNSSECEnabled$outboundSchema,
|
|
492
512
|
ExpectedPriceMismatch$outboundSchema,
|
|
493
513
|
DomainNotAvailable$outboundSchema,
|
|
494
514
|
TldNotSupported$outboundSchema,
|
|
@@ -38,7 +38,7 @@ export type BillingPlan = {
|
|
|
38
38
|
details?: Array<Details> | undefined;
|
|
39
39
|
highlightedDetails?: Array<HighlightedDetails> | undefined;
|
|
40
40
|
effectiveDate?: string | undefined;
|
|
41
|
-
additionalProperties?: { [k: string]: any };
|
|
41
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export const Level = {
|
|
@@ -245,7 +245,7 @@ export const BillingPlan$outboundSchema: z.ZodType<
|
|
|
245
245
|
highlightedDetails: z.array(z.lazy(() => HighlightedDetails$outboundSchema))
|
|
246
246
|
.optional(),
|
|
247
247
|
effectiveDate: z.string().optional(),
|
|
248
|
-
additionalProperties: z.record(z.any()),
|
|
248
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return {
|
|
251
251
|
...v.additionalProperties,
|
|
@@ -58,7 +58,7 @@ export type UpdateResourceBillingPlan = {
|
|
|
58
58
|
details?: Array<UpdateResourceDetails> | undefined;
|
|
59
59
|
highlightedDetails?: Array<UpdateResourceHighlightedDetails> | undefined;
|
|
60
60
|
effectiveDate?: string | undefined;
|
|
61
|
-
additionalProperties?: { [k: string]: any };
|
|
61
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
export const UpdateResourceLevel = {
|
|
@@ -361,7 +361,7 @@ export const UpdateResourceBillingPlan$outboundSchema: z.ZodType<
|
|
|
361
361
|
z.lazy(() => UpdateResourceHighlightedDetails$outboundSchema),
|
|
362
362
|
).optional(),
|
|
363
363
|
effectiveDate: z.string().optional(),
|
|
364
|
-
additionalProperties: z.record(z.any()),
|
|
364
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
365
365
|
}).transform((v) => {
|
|
366
366
|
return {
|
|
367
367
|
...v.additionalProperties,
|