@vercel/sdk 1.3.0 → 1.3.1
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 +6 -0
- package/docs/sdks/accessgroups/README.md +40 -4
- package/docs/sdks/deployments/README.md +22 -0
- package/docs/sdks/marketplace/README.md +54 -22
- package/docs/sdks/projects/README.md +179 -0
- package/docs/sdks/security/README.md +84 -0
- package/docs/sdks/teams/README.md +8 -0
- package/esm/__tests__/projects.test.js +31 -0
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/security.test.js +33 -0
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsAcceptProjectTransferRequest.d.ts +18 -0
- package/esm/funcs/projectsAcceptProjectTransferRequest.d.ts.map +1 -0
- package/esm/funcs/projectsAcceptProjectTransferRequest.js +88 -0
- package/esm/funcs/projectsAcceptProjectTransferRequest.js.map +1 -0
- package/esm/funcs/projectsCreateProjectTransferRequest.d.ts +17 -0
- package/esm/funcs/projectsCreateProjectTransferRequest.d.ts.map +1 -0
- package/esm/funcs/projectsCreateProjectTransferRequest.js +86 -0
- package/esm/funcs/projectsCreateProjectTransferRequest.js.map +1 -0
- package/esm/funcs/securityGetActiveAttackStatus.d.ts +18 -0
- package/esm/funcs/securityGetActiveAttackStatus.d.ts.map +1 -0
- package/esm/funcs/securityGetActiveAttackStatus.js +82 -0
- package/esm/funcs/securityGetActiveAttackStatus.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/schemas.d.ts +1 -1
- package/esm/lib/schemas.d.ts.map +1 -1
- package/esm/lib/schemas.js +4 -1
- package/esm/lib/schemas.js.map +1 -1
- package/esm/models/acceptprojecttransferrequestop.d.ts +127 -0
- package/esm/models/acceptprojecttransferrequestop.d.ts.map +1 -0
- package/esm/models/acceptprojecttransferrequestop.js +123 -0
- package/esm/models/acceptprojecttransferrequestop.js.map +1 -0
- package/esm/models/addprojectdomainop.d.ts +5 -0
- package/esm/models/addprojectdomainop.d.ts.map +1 -1
- package/esm/models/addprojectdomainop.js +2 -0
- package/esm/models/addprojectdomainop.js.map +1 -1
- package/esm/models/authuser.d.ts +9 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +3 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +4 -2
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +4 -2
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createprojecttransferrequestop.d.ts +66 -0
- package/esm/models/createprojecttransferrequestop.d.ts.map +1 -0
- package/esm/models/createprojecttransferrequestop.js +56 -0
- package/esm/models/createprojecttransferrequestop.js.map +1 -0
- package/esm/models/getactiveattackstatusop.d.ts +242 -0
- package/esm/models/getactiveattackstatusop.d.ts.map +1 -0
- package/esm/models/getactiveattackstatusop.js +248 -0
- package/esm/models/getactiveattackstatusop.js.map +1 -0
- package/esm/models/getprojectsop.d.ts +4 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +4 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +4 -2
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +4 -2
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +4 -2
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +4 -2
- package/esm/models/updateprojectop.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/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 +1 -1
- package/src/__tests__/projects.test.ts +35 -0
- package/src/__tests__/security.test.ts +35 -0
- package/src/funcs/projectsAcceptProjectTransferRequest.ts +169 -0
- package/src/funcs/projectsCreateProjectTransferRequest.ts +161 -0
- package/src/funcs/securityGetActiveAttackStatus.ts +162 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/models/acceptprojecttransferrequestop.ts +307 -0
- package/src/models/addprojectdomainop.ts +7 -0
- package/src/models/authuser.ts +3 -0
- package/src/models/createprojectop.ts +8 -4
- package/src/models/createprojecttransferrequestop.ts +152 -0
- package/src/models/getactiveattackstatusop.ts +543 -0
- package/src/models/getprojectsop.ts +8 -4
- package/src/models/updateprojectdatacacheop.ts +8 -4
- package/src/models/updateprojectop.ts +8 -4
- package/src/sdk/projects.ts +44 -0
- package/src/sdk/security.ts +22 -0
- package/vercel-spec.json +425 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
+
export type CreateProjectTransferRequestRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* The ID or name of the project to transfer.
|
|
7
|
+
*/
|
|
8
|
+
idOrName: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Team identifier to perform the request on behalf of.
|
|
11
|
+
*/
|
|
12
|
+
teamId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The Team slug to perform the request on behalf of.
|
|
15
|
+
*/
|
|
16
|
+
slug?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The project transfer request has been initiated successfully.
|
|
20
|
+
*/
|
|
21
|
+
export type CreateProjectTransferRequestResponseBody = {};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const CreateProjectTransferRequestRequest$inboundSchema: z.ZodType<CreateProjectTransferRequestRequest, z.ZodTypeDef, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type CreateProjectTransferRequestRequest$Outbound = {
|
|
26
|
+
idOrName: string;
|
|
27
|
+
teamId?: string | undefined;
|
|
28
|
+
slug?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const CreateProjectTransferRequestRequest$outboundSchema: z.ZodType<CreateProjectTransferRequestRequest$Outbound, z.ZodTypeDef, CreateProjectTransferRequestRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace CreateProjectTransferRequestRequest$ {
|
|
37
|
+
/** @deprecated use `CreateProjectTransferRequestRequest$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<CreateProjectTransferRequestRequest, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `CreateProjectTransferRequestRequest$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<CreateProjectTransferRequestRequest$Outbound, z.ZodTypeDef, CreateProjectTransferRequestRequest>;
|
|
41
|
+
/** @deprecated use `CreateProjectTransferRequestRequest$Outbound` instead. */
|
|
42
|
+
type Outbound = CreateProjectTransferRequestRequest$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function createProjectTransferRequestRequestToJSON(createProjectTransferRequestRequest: CreateProjectTransferRequestRequest): string;
|
|
45
|
+
export declare function createProjectTransferRequestRequestFromJSON(jsonString: string): SafeParseResult<CreateProjectTransferRequestRequest, SDKValidationError>;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const CreateProjectTransferRequestResponseBody$inboundSchema: z.ZodType<CreateProjectTransferRequestResponseBody, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type CreateProjectTransferRequestResponseBody$Outbound = {};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const CreateProjectTransferRequestResponseBody$outboundSchema: z.ZodType<CreateProjectTransferRequestResponseBody$Outbound, z.ZodTypeDef, CreateProjectTransferRequestResponseBody>;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export declare namespace CreateProjectTransferRequestResponseBody$ {
|
|
57
|
+
/** @deprecated use `CreateProjectTransferRequestResponseBody$inboundSchema` instead. */
|
|
58
|
+
const inboundSchema: z.ZodType<CreateProjectTransferRequestResponseBody, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @deprecated use `CreateProjectTransferRequestResponseBody$outboundSchema` instead. */
|
|
60
|
+
const outboundSchema: z.ZodType<CreateProjectTransferRequestResponseBody$Outbound, z.ZodTypeDef, CreateProjectTransferRequestResponseBody>;
|
|
61
|
+
/** @deprecated use `CreateProjectTransferRequestResponseBody$Outbound` instead. */
|
|
62
|
+
type Outbound = CreateProjectTransferRequestResponseBody$Outbound;
|
|
63
|
+
}
|
|
64
|
+
export declare function createProjectTransferRequestResponseBodyToJSON(createProjectTransferRequestResponseBody: CreateProjectTransferRequestResponseBody): string;
|
|
65
|
+
export declare function createProjectTransferRequestResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateProjectTransferRequestResponseBody, SDKValidationError>;
|
|
66
|
+
//# sourceMappingURL=createprojecttransferrequestop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createprojecttransferrequestop.d.ts","sourceRoot":"","sources":["../../src/models/createprojecttransferrequestop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,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C7E,iDAAiD,EACjD,CAAC,CAAC,UAAU,EACZ,wCAAwC,CAC1B,CAAC;AAEjB;;;GAGG;AACH,yBAAiB,yCAAyC,CAAC;IACzD,wFAAwF;IACjF,MAAM,aAAa,4EAC8B,CAAC;IACzD,yFAAyF;IAClF,MAAM,cAAc,sHAC8B,CAAC;IAC1D,mFAAmF;IACnF,KAAY,QAAQ,GAAG,iDAAiD,CAAC;CAC1E;AAED,wBAAgB,8CAA8C,CAC5D,wCAAwC,EACtC,wCAAwC,GACzC,MAAM,CAMR;AAED,wBAAgB,gDAAgD,CAC9D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wCAAwC,EACxC,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const CreateProjectTransferRequestRequest$inboundSchema = z.object({
|
|
8
|
+
idOrName: z.string(),
|
|
9
|
+
teamId: z.string().optional(),
|
|
10
|
+
slug: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const CreateProjectTransferRequestRequest$outboundSchema = z.object({
|
|
14
|
+
idOrName: z.string(),
|
|
15
|
+
teamId: z.string().optional(),
|
|
16
|
+
slug: z.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var CreateProjectTransferRequestRequest$;
|
|
23
|
+
(function (CreateProjectTransferRequestRequest$) {
|
|
24
|
+
/** @deprecated use `CreateProjectTransferRequestRequest$inboundSchema` instead. */
|
|
25
|
+
CreateProjectTransferRequestRequest$.inboundSchema = CreateProjectTransferRequestRequest$inboundSchema;
|
|
26
|
+
/** @deprecated use `CreateProjectTransferRequestRequest$outboundSchema` instead. */
|
|
27
|
+
CreateProjectTransferRequestRequest$.outboundSchema = CreateProjectTransferRequestRequest$outboundSchema;
|
|
28
|
+
})(CreateProjectTransferRequestRequest$ || (CreateProjectTransferRequestRequest$ = {}));
|
|
29
|
+
export function createProjectTransferRequestRequestToJSON(createProjectTransferRequestRequest) {
|
|
30
|
+
return JSON.stringify(CreateProjectTransferRequestRequest$outboundSchema.parse(createProjectTransferRequestRequest));
|
|
31
|
+
}
|
|
32
|
+
export function createProjectTransferRequestRequestFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => CreateProjectTransferRequestRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTransferRequestRequest' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const CreateProjectTransferRequestResponseBody$inboundSchema = z.object({});
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CreateProjectTransferRequestResponseBody$outboundSchema = z.object({});
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export var CreateProjectTransferRequestResponseBody$;
|
|
44
|
+
(function (CreateProjectTransferRequestResponseBody$) {
|
|
45
|
+
/** @deprecated use `CreateProjectTransferRequestResponseBody$inboundSchema` instead. */
|
|
46
|
+
CreateProjectTransferRequestResponseBody$.inboundSchema = CreateProjectTransferRequestResponseBody$inboundSchema;
|
|
47
|
+
/** @deprecated use `CreateProjectTransferRequestResponseBody$outboundSchema` instead. */
|
|
48
|
+
CreateProjectTransferRequestResponseBody$.outboundSchema = CreateProjectTransferRequestResponseBody$outboundSchema;
|
|
49
|
+
})(CreateProjectTransferRequestResponseBody$ || (CreateProjectTransferRequestResponseBody$ = {}));
|
|
50
|
+
export function createProjectTransferRequestResponseBodyToJSON(createProjectTransferRequestResponseBody) {
|
|
51
|
+
return JSON.stringify(CreateProjectTransferRequestResponseBody$outboundSchema.parse(createProjectTransferRequestResponseBody));
|
|
52
|
+
}
|
|
53
|
+
export function createProjectTransferRequestResponseBodyFromJSON(jsonString) {
|
|
54
|
+
return safeParse(jsonString, (x) => CreateProjectTransferRequestResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateProjectTransferRequestResponseBody' from JSON`);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=createprojecttransferrequestop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createprojecttransferrequestop.js","sourceRoot":"","sources":["../../src/models/createprojecttransferrequestop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAwB9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,oCAAoC,CASpD;AATD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,iDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,kDAAkD,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Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
+
export type GetActiveAttackStatusRequest = {
|
|
5
|
+
projectId: string;
|
|
6
|
+
/**
|
|
7
|
+
* The Team identifier to perform the request on behalf of.
|
|
8
|
+
*/
|
|
9
|
+
teamId?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The Team slug to perform the request on behalf of.
|
|
12
|
+
*/
|
|
13
|
+
slug?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export type AnomalyAlerts = {
|
|
16
|
+
atMinute: string;
|
|
17
|
+
zscore: number;
|
|
18
|
+
totalRequestsMinute: number;
|
|
19
|
+
avgRequests: number;
|
|
20
|
+
stddevRequests: number;
|
|
21
|
+
};
|
|
22
|
+
export type DdosAlerts = {
|
|
23
|
+
atMinute: string;
|
|
24
|
+
totalReqs: number;
|
|
25
|
+
};
|
|
26
|
+
export type AffectedHostMap = {
|
|
27
|
+
anomalyAlerts?: {
|
|
28
|
+
[k: string]: AnomalyAlerts;
|
|
29
|
+
} | undefined;
|
|
30
|
+
ddosAlerts?: {
|
|
31
|
+
[k: string]: DdosAlerts;
|
|
32
|
+
} | undefined;
|
|
33
|
+
};
|
|
34
|
+
export type Anomalies = {
|
|
35
|
+
ownerId: string;
|
|
36
|
+
projectId: string;
|
|
37
|
+
startTime: number;
|
|
38
|
+
endTime: number | null;
|
|
39
|
+
atMinute: number;
|
|
40
|
+
state?: string | undefined;
|
|
41
|
+
affectedHostMap: {
|
|
42
|
+
[k: string]: AffectedHostMap;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type GetActiveAttackStatusResponseBody2 = {
|
|
46
|
+
anomalies: Array<Anomalies>;
|
|
47
|
+
};
|
|
48
|
+
export type GetActiveAttackStatusResponseBody1 = {};
|
|
49
|
+
export type GetActiveAttackStatusResponseBody = GetActiveAttackStatusResponseBody1 | GetActiveAttackStatusResponseBody2;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const GetActiveAttackStatusRequest$inboundSchema: z.ZodType<GetActiveAttackStatusRequest, z.ZodTypeDef, unknown>;
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type GetActiveAttackStatusRequest$Outbound = {
|
|
54
|
+
projectId: string;
|
|
55
|
+
teamId?: string | undefined;
|
|
56
|
+
slug?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const GetActiveAttackStatusRequest$outboundSchema: z.ZodType<GetActiveAttackStatusRequest$Outbound, z.ZodTypeDef, GetActiveAttackStatusRequest>;
|
|
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 declare namespace GetActiveAttackStatusRequest$ {
|
|
65
|
+
/** @deprecated use `GetActiveAttackStatusRequest$inboundSchema` instead. */
|
|
66
|
+
const inboundSchema: z.ZodType<GetActiveAttackStatusRequest, z.ZodTypeDef, unknown>;
|
|
67
|
+
/** @deprecated use `GetActiveAttackStatusRequest$outboundSchema` instead. */
|
|
68
|
+
const outboundSchema: z.ZodType<GetActiveAttackStatusRequest$Outbound, z.ZodTypeDef, GetActiveAttackStatusRequest>;
|
|
69
|
+
/** @deprecated use `GetActiveAttackStatusRequest$Outbound` instead. */
|
|
70
|
+
type Outbound = GetActiveAttackStatusRequest$Outbound;
|
|
71
|
+
}
|
|
72
|
+
export declare function getActiveAttackStatusRequestToJSON(getActiveAttackStatusRequest: GetActiveAttackStatusRequest): string;
|
|
73
|
+
export declare function getActiveAttackStatusRequestFromJSON(jsonString: string): SafeParseResult<GetActiveAttackStatusRequest, SDKValidationError>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const AnomalyAlerts$inboundSchema: z.ZodType<AnomalyAlerts, z.ZodTypeDef, unknown>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type AnomalyAlerts$Outbound = {
|
|
78
|
+
at_minute: string;
|
|
79
|
+
zscore: number;
|
|
80
|
+
total_requests_minute: number;
|
|
81
|
+
avg_requests: number;
|
|
82
|
+
stddev_requests: number;
|
|
83
|
+
};
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const AnomalyAlerts$outboundSchema: z.ZodType<AnomalyAlerts$Outbound, z.ZodTypeDef, AnomalyAlerts>;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export declare namespace AnomalyAlerts$ {
|
|
91
|
+
/** @deprecated use `AnomalyAlerts$inboundSchema` instead. */
|
|
92
|
+
const inboundSchema: z.ZodType<AnomalyAlerts, z.ZodTypeDef, unknown>;
|
|
93
|
+
/** @deprecated use `AnomalyAlerts$outboundSchema` instead. */
|
|
94
|
+
const outboundSchema: z.ZodType<AnomalyAlerts$Outbound, z.ZodTypeDef, AnomalyAlerts>;
|
|
95
|
+
/** @deprecated use `AnomalyAlerts$Outbound` instead. */
|
|
96
|
+
type Outbound = AnomalyAlerts$Outbound;
|
|
97
|
+
}
|
|
98
|
+
export declare function anomalyAlertsToJSON(anomalyAlerts: AnomalyAlerts): string;
|
|
99
|
+
export declare function anomalyAlertsFromJSON(jsonString: string): SafeParseResult<AnomalyAlerts, SDKValidationError>;
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const DdosAlerts$inboundSchema: z.ZodType<DdosAlerts, z.ZodTypeDef, unknown>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type DdosAlerts$Outbound = {
|
|
104
|
+
atMinute: string;
|
|
105
|
+
totalReqs: number;
|
|
106
|
+
};
|
|
107
|
+
/** @internal */
|
|
108
|
+
export declare const DdosAlerts$outboundSchema: z.ZodType<DdosAlerts$Outbound, z.ZodTypeDef, DdosAlerts>;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
+
*/
|
|
113
|
+
export declare namespace DdosAlerts$ {
|
|
114
|
+
/** @deprecated use `DdosAlerts$inboundSchema` instead. */
|
|
115
|
+
const inboundSchema: z.ZodType<DdosAlerts, z.ZodTypeDef, unknown>;
|
|
116
|
+
/** @deprecated use `DdosAlerts$outboundSchema` instead. */
|
|
117
|
+
const outboundSchema: z.ZodType<DdosAlerts$Outbound, z.ZodTypeDef, DdosAlerts>;
|
|
118
|
+
/** @deprecated use `DdosAlerts$Outbound` instead. */
|
|
119
|
+
type Outbound = DdosAlerts$Outbound;
|
|
120
|
+
}
|
|
121
|
+
export declare function ddosAlertsToJSON(ddosAlerts: DdosAlerts): string;
|
|
122
|
+
export declare function ddosAlertsFromJSON(jsonString: string): SafeParseResult<DdosAlerts, SDKValidationError>;
|
|
123
|
+
/** @internal */
|
|
124
|
+
export declare const AffectedHostMap$inboundSchema: z.ZodType<AffectedHostMap, z.ZodTypeDef, unknown>;
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type AffectedHostMap$Outbound = {
|
|
127
|
+
anomalyAlerts?: {
|
|
128
|
+
[k: string]: AnomalyAlerts$Outbound;
|
|
129
|
+
} | undefined;
|
|
130
|
+
ddosAlerts?: {
|
|
131
|
+
[k: string]: DdosAlerts$Outbound;
|
|
132
|
+
} | undefined;
|
|
133
|
+
};
|
|
134
|
+
/** @internal */
|
|
135
|
+
export declare const AffectedHostMap$outboundSchema: z.ZodType<AffectedHostMap$Outbound, z.ZodTypeDef, AffectedHostMap>;
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
|
+
*/
|
|
140
|
+
export declare namespace AffectedHostMap$ {
|
|
141
|
+
/** @deprecated use `AffectedHostMap$inboundSchema` instead. */
|
|
142
|
+
const inboundSchema: z.ZodType<AffectedHostMap, z.ZodTypeDef, unknown>;
|
|
143
|
+
/** @deprecated use `AffectedHostMap$outboundSchema` instead. */
|
|
144
|
+
const outboundSchema: z.ZodType<AffectedHostMap$Outbound, z.ZodTypeDef, AffectedHostMap>;
|
|
145
|
+
/** @deprecated use `AffectedHostMap$Outbound` instead. */
|
|
146
|
+
type Outbound = AffectedHostMap$Outbound;
|
|
147
|
+
}
|
|
148
|
+
export declare function affectedHostMapToJSON(affectedHostMap: AffectedHostMap): string;
|
|
149
|
+
export declare function affectedHostMapFromJSON(jsonString: string): SafeParseResult<AffectedHostMap, SDKValidationError>;
|
|
150
|
+
/** @internal */
|
|
151
|
+
export declare const Anomalies$inboundSchema: z.ZodType<Anomalies, z.ZodTypeDef, unknown>;
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type Anomalies$Outbound = {
|
|
154
|
+
ownerId: string;
|
|
155
|
+
projectId: string;
|
|
156
|
+
startTime: number;
|
|
157
|
+
endTime: number | null;
|
|
158
|
+
atMinute: number;
|
|
159
|
+
state?: string | undefined;
|
|
160
|
+
affectedHostMap: {
|
|
161
|
+
[k: string]: AffectedHostMap$Outbound;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/** @internal */
|
|
165
|
+
export declare const Anomalies$outboundSchema: z.ZodType<Anomalies$Outbound, z.ZodTypeDef, Anomalies>;
|
|
166
|
+
/**
|
|
167
|
+
* @internal
|
|
168
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
169
|
+
*/
|
|
170
|
+
export declare namespace Anomalies$ {
|
|
171
|
+
/** @deprecated use `Anomalies$inboundSchema` instead. */
|
|
172
|
+
const inboundSchema: z.ZodType<Anomalies, z.ZodTypeDef, unknown>;
|
|
173
|
+
/** @deprecated use `Anomalies$outboundSchema` instead. */
|
|
174
|
+
const outboundSchema: z.ZodType<Anomalies$Outbound, z.ZodTypeDef, Anomalies>;
|
|
175
|
+
/** @deprecated use `Anomalies$Outbound` instead. */
|
|
176
|
+
type Outbound = Anomalies$Outbound;
|
|
177
|
+
}
|
|
178
|
+
export declare function anomaliesToJSON(anomalies: Anomalies): string;
|
|
179
|
+
export declare function anomaliesFromJSON(jsonString: string): SafeParseResult<Anomalies, SDKValidationError>;
|
|
180
|
+
/** @internal */
|
|
181
|
+
export declare const GetActiveAttackStatusResponseBody2$inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody2, z.ZodTypeDef, unknown>;
|
|
182
|
+
/** @internal */
|
|
183
|
+
export type GetActiveAttackStatusResponseBody2$Outbound = {
|
|
184
|
+
anomalies: Array<Anomalies$Outbound>;
|
|
185
|
+
};
|
|
186
|
+
/** @internal */
|
|
187
|
+
export declare const GetActiveAttackStatusResponseBody2$outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody2$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody2>;
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
191
|
+
*/
|
|
192
|
+
export declare namespace GetActiveAttackStatusResponseBody2$ {
|
|
193
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody2$inboundSchema` instead. */
|
|
194
|
+
const inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody2, z.ZodTypeDef, unknown>;
|
|
195
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody2$outboundSchema` instead. */
|
|
196
|
+
const outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody2$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody2>;
|
|
197
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody2$Outbound` instead. */
|
|
198
|
+
type Outbound = GetActiveAttackStatusResponseBody2$Outbound;
|
|
199
|
+
}
|
|
200
|
+
export declare function getActiveAttackStatusResponseBody2ToJSON(getActiveAttackStatusResponseBody2: GetActiveAttackStatusResponseBody2): string;
|
|
201
|
+
export declare function getActiveAttackStatusResponseBody2FromJSON(jsonString: string): SafeParseResult<GetActiveAttackStatusResponseBody2, SDKValidationError>;
|
|
202
|
+
/** @internal */
|
|
203
|
+
export declare const GetActiveAttackStatusResponseBody1$inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody1, z.ZodTypeDef, unknown>;
|
|
204
|
+
/** @internal */
|
|
205
|
+
export type GetActiveAttackStatusResponseBody1$Outbound = {};
|
|
206
|
+
/** @internal */
|
|
207
|
+
export declare const GetActiveAttackStatusResponseBody1$outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody1$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody1>;
|
|
208
|
+
/**
|
|
209
|
+
* @internal
|
|
210
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
211
|
+
*/
|
|
212
|
+
export declare namespace GetActiveAttackStatusResponseBody1$ {
|
|
213
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody1$inboundSchema` instead. */
|
|
214
|
+
const inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody1, z.ZodTypeDef, unknown>;
|
|
215
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody1$outboundSchema` instead. */
|
|
216
|
+
const outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody1$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody1>;
|
|
217
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody1$Outbound` instead. */
|
|
218
|
+
type Outbound = GetActiveAttackStatusResponseBody1$Outbound;
|
|
219
|
+
}
|
|
220
|
+
export declare function getActiveAttackStatusResponseBody1ToJSON(getActiveAttackStatusResponseBody1: GetActiveAttackStatusResponseBody1): string;
|
|
221
|
+
export declare function getActiveAttackStatusResponseBody1FromJSON(jsonString: string): SafeParseResult<GetActiveAttackStatusResponseBody1, SDKValidationError>;
|
|
222
|
+
/** @internal */
|
|
223
|
+
export declare const GetActiveAttackStatusResponseBody$inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody, z.ZodTypeDef, unknown>;
|
|
224
|
+
/** @internal */
|
|
225
|
+
export type GetActiveAttackStatusResponseBody$Outbound = GetActiveAttackStatusResponseBody1$Outbound | GetActiveAttackStatusResponseBody2$Outbound;
|
|
226
|
+
/** @internal */
|
|
227
|
+
export declare const GetActiveAttackStatusResponseBody$outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody>;
|
|
228
|
+
/**
|
|
229
|
+
* @internal
|
|
230
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
231
|
+
*/
|
|
232
|
+
export declare namespace GetActiveAttackStatusResponseBody$ {
|
|
233
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody$inboundSchema` instead. */
|
|
234
|
+
const inboundSchema: z.ZodType<GetActiveAttackStatusResponseBody, z.ZodTypeDef, unknown>;
|
|
235
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody$outboundSchema` instead. */
|
|
236
|
+
const outboundSchema: z.ZodType<GetActiveAttackStatusResponseBody$Outbound, z.ZodTypeDef, GetActiveAttackStatusResponseBody>;
|
|
237
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody$Outbound` instead. */
|
|
238
|
+
type Outbound = GetActiveAttackStatusResponseBody$Outbound;
|
|
239
|
+
}
|
|
240
|
+
export declare function getActiveAttackStatusResponseBodyToJSON(getActiveAttackStatusResponseBody: GetActiveAttackStatusResponseBody): string;
|
|
241
|
+
export declare function getActiveAttackStatusResponseBodyFromJSON(jsonString: string): SafeParseResult<GetActiveAttackStatusResponseBody, SDKValidationError>;
|
|
242
|
+
//# sourceMappingURL=getactiveattackstatusop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getactiveattackstatusop.d.ts","sourceRoot":"","sources":["../../src/models/getactiveattackstatusop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,M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AAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const GetActiveAttackStatusRequest$inboundSchema = z.object({
|
|
9
|
+
projectId: z.string(),
|
|
10
|
+
teamId: z.string().optional(),
|
|
11
|
+
slug: z.string().optional(),
|
|
12
|
+
});
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const GetActiveAttackStatusRequest$outboundSchema = z.object({
|
|
15
|
+
projectId: z.string(),
|
|
16
|
+
teamId: z.string().optional(),
|
|
17
|
+
slug: z.string().optional(),
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export var GetActiveAttackStatusRequest$;
|
|
24
|
+
(function (GetActiveAttackStatusRequest$) {
|
|
25
|
+
/** @deprecated use `GetActiveAttackStatusRequest$inboundSchema` instead. */
|
|
26
|
+
GetActiveAttackStatusRequest$.inboundSchema = GetActiveAttackStatusRequest$inboundSchema;
|
|
27
|
+
/** @deprecated use `GetActiveAttackStatusRequest$outboundSchema` instead. */
|
|
28
|
+
GetActiveAttackStatusRequest$.outboundSchema = GetActiveAttackStatusRequest$outboundSchema;
|
|
29
|
+
})(GetActiveAttackStatusRequest$ || (GetActiveAttackStatusRequest$ = {}));
|
|
30
|
+
export function getActiveAttackStatusRequestToJSON(getActiveAttackStatusRequest) {
|
|
31
|
+
return JSON.stringify(GetActiveAttackStatusRequest$outboundSchema.parse(getActiveAttackStatusRequest));
|
|
32
|
+
}
|
|
33
|
+
export function getActiveAttackStatusRequestFromJSON(jsonString) {
|
|
34
|
+
return safeParse(jsonString, (x) => GetActiveAttackStatusRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetActiveAttackStatusRequest' from JSON`);
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const AnomalyAlerts$inboundSchema = z.object({
|
|
38
|
+
at_minute: z.string(),
|
|
39
|
+
zscore: z.number(),
|
|
40
|
+
total_requests_minute: z.number(),
|
|
41
|
+
avg_requests: z.number(),
|
|
42
|
+
stddev_requests: z.number(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"at_minute": "atMinute",
|
|
46
|
+
"total_requests_minute": "totalRequestsMinute",
|
|
47
|
+
"avg_requests": "avgRequests",
|
|
48
|
+
"stddev_requests": "stddevRequests",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AnomalyAlerts$outboundSchema = z.object({
|
|
53
|
+
atMinute: z.string(),
|
|
54
|
+
zscore: z.number(),
|
|
55
|
+
totalRequestsMinute: z.number(),
|
|
56
|
+
avgRequests: z.number(),
|
|
57
|
+
stddevRequests: z.number(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
atMinute: "at_minute",
|
|
61
|
+
totalRequestsMinute: "total_requests_minute",
|
|
62
|
+
avgRequests: "avg_requests",
|
|
63
|
+
stddevRequests: "stddev_requests",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
export var AnomalyAlerts$;
|
|
71
|
+
(function (AnomalyAlerts$) {
|
|
72
|
+
/** @deprecated use `AnomalyAlerts$inboundSchema` instead. */
|
|
73
|
+
AnomalyAlerts$.inboundSchema = AnomalyAlerts$inboundSchema;
|
|
74
|
+
/** @deprecated use `AnomalyAlerts$outboundSchema` instead. */
|
|
75
|
+
AnomalyAlerts$.outboundSchema = AnomalyAlerts$outboundSchema;
|
|
76
|
+
})(AnomalyAlerts$ || (AnomalyAlerts$ = {}));
|
|
77
|
+
export function anomalyAlertsToJSON(anomalyAlerts) {
|
|
78
|
+
return JSON.stringify(AnomalyAlerts$outboundSchema.parse(anomalyAlerts));
|
|
79
|
+
}
|
|
80
|
+
export function anomalyAlertsFromJSON(jsonString) {
|
|
81
|
+
return safeParse(jsonString, (x) => AnomalyAlerts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnomalyAlerts' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const DdosAlerts$inboundSchema = z.object({
|
|
85
|
+
atMinute: z.string(),
|
|
86
|
+
totalReqs: z.number(),
|
|
87
|
+
});
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const DdosAlerts$outboundSchema = z.object({
|
|
90
|
+
atMinute: z.string(),
|
|
91
|
+
totalReqs: z.number(),
|
|
92
|
+
});
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
+
*/
|
|
97
|
+
export var DdosAlerts$;
|
|
98
|
+
(function (DdosAlerts$) {
|
|
99
|
+
/** @deprecated use `DdosAlerts$inboundSchema` instead. */
|
|
100
|
+
DdosAlerts$.inboundSchema = DdosAlerts$inboundSchema;
|
|
101
|
+
/** @deprecated use `DdosAlerts$outboundSchema` instead. */
|
|
102
|
+
DdosAlerts$.outboundSchema = DdosAlerts$outboundSchema;
|
|
103
|
+
})(DdosAlerts$ || (DdosAlerts$ = {}));
|
|
104
|
+
export function ddosAlertsToJSON(ddosAlerts) {
|
|
105
|
+
return JSON.stringify(DdosAlerts$outboundSchema.parse(ddosAlerts));
|
|
106
|
+
}
|
|
107
|
+
export function ddosAlertsFromJSON(jsonString) {
|
|
108
|
+
return safeParse(jsonString, (x) => DdosAlerts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DdosAlerts' from JSON`);
|
|
109
|
+
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const AffectedHostMap$inboundSchema = z.object({
|
|
112
|
+
anomalyAlerts: z.record(z.lazy(() => AnomalyAlerts$inboundSchema)).optional(),
|
|
113
|
+
ddosAlerts: z.record(z.lazy(() => DdosAlerts$inboundSchema)).optional(),
|
|
114
|
+
});
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const AffectedHostMap$outboundSchema = z.object({
|
|
117
|
+
anomalyAlerts: z.record(z.lazy(() => AnomalyAlerts$outboundSchema))
|
|
118
|
+
.optional(),
|
|
119
|
+
ddosAlerts: z.record(z.lazy(() => DdosAlerts$outboundSchema)).optional(),
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export var AffectedHostMap$;
|
|
126
|
+
(function (AffectedHostMap$) {
|
|
127
|
+
/** @deprecated use `AffectedHostMap$inboundSchema` instead. */
|
|
128
|
+
AffectedHostMap$.inboundSchema = AffectedHostMap$inboundSchema;
|
|
129
|
+
/** @deprecated use `AffectedHostMap$outboundSchema` instead. */
|
|
130
|
+
AffectedHostMap$.outboundSchema = AffectedHostMap$outboundSchema;
|
|
131
|
+
})(AffectedHostMap$ || (AffectedHostMap$ = {}));
|
|
132
|
+
export function affectedHostMapToJSON(affectedHostMap) {
|
|
133
|
+
return JSON.stringify(AffectedHostMap$outboundSchema.parse(affectedHostMap));
|
|
134
|
+
}
|
|
135
|
+
export function affectedHostMapFromJSON(jsonString) {
|
|
136
|
+
return safeParse(jsonString, (x) => AffectedHostMap$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AffectedHostMap' from JSON`);
|
|
137
|
+
}
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const Anomalies$inboundSchema = z.object({
|
|
140
|
+
ownerId: z.string(),
|
|
141
|
+
projectId: z.string(),
|
|
142
|
+
startTime: z.number(),
|
|
143
|
+
endTime: z.nullable(z.number()),
|
|
144
|
+
atMinute: z.number(),
|
|
145
|
+
state: z.string().optional(),
|
|
146
|
+
affectedHostMap: z.record(z.lazy(() => AffectedHostMap$inboundSchema)),
|
|
147
|
+
});
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const Anomalies$outboundSchema = z.object({
|
|
150
|
+
ownerId: z.string(),
|
|
151
|
+
projectId: z.string(),
|
|
152
|
+
startTime: z.number(),
|
|
153
|
+
endTime: z.nullable(z.number()),
|
|
154
|
+
atMinute: z.number(),
|
|
155
|
+
state: z.string().optional(),
|
|
156
|
+
affectedHostMap: z.record(z.lazy(() => AffectedHostMap$outboundSchema)),
|
|
157
|
+
});
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
+
*/
|
|
162
|
+
export var Anomalies$;
|
|
163
|
+
(function (Anomalies$) {
|
|
164
|
+
/** @deprecated use `Anomalies$inboundSchema` instead. */
|
|
165
|
+
Anomalies$.inboundSchema = Anomalies$inboundSchema;
|
|
166
|
+
/** @deprecated use `Anomalies$outboundSchema` instead. */
|
|
167
|
+
Anomalies$.outboundSchema = Anomalies$outboundSchema;
|
|
168
|
+
})(Anomalies$ || (Anomalies$ = {}));
|
|
169
|
+
export function anomaliesToJSON(anomalies) {
|
|
170
|
+
return JSON.stringify(Anomalies$outboundSchema.parse(anomalies));
|
|
171
|
+
}
|
|
172
|
+
export function anomaliesFromJSON(jsonString) {
|
|
173
|
+
return safeParse(jsonString, (x) => Anomalies$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Anomalies' from JSON`);
|
|
174
|
+
}
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const GetActiveAttackStatusResponseBody2$inboundSchema = z.object({
|
|
177
|
+
anomalies: z.array(z.lazy(() => Anomalies$inboundSchema)),
|
|
178
|
+
});
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const GetActiveAttackStatusResponseBody2$outboundSchema = z.object({
|
|
181
|
+
anomalies: z.array(z.lazy(() => Anomalies$outboundSchema)),
|
|
182
|
+
});
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
186
|
+
*/
|
|
187
|
+
export var GetActiveAttackStatusResponseBody2$;
|
|
188
|
+
(function (GetActiveAttackStatusResponseBody2$) {
|
|
189
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody2$inboundSchema` instead. */
|
|
190
|
+
GetActiveAttackStatusResponseBody2$.inboundSchema = GetActiveAttackStatusResponseBody2$inboundSchema;
|
|
191
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody2$outboundSchema` instead. */
|
|
192
|
+
GetActiveAttackStatusResponseBody2$.outboundSchema = GetActiveAttackStatusResponseBody2$outboundSchema;
|
|
193
|
+
})(GetActiveAttackStatusResponseBody2$ || (GetActiveAttackStatusResponseBody2$ = {}));
|
|
194
|
+
export function getActiveAttackStatusResponseBody2ToJSON(getActiveAttackStatusResponseBody2) {
|
|
195
|
+
return JSON.stringify(GetActiveAttackStatusResponseBody2$outboundSchema.parse(getActiveAttackStatusResponseBody2));
|
|
196
|
+
}
|
|
197
|
+
export function getActiveAttackStatusResponseBody2FromJSON(jsonString) {
|
|
198
|
+
return safeParse(jsonString, (x) => GetActiveAttackStatusResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetActiveAttackStatusResponseBody2' from JSON`);
|
|
199
|
+
}
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const GetActiveAttackStatusResponseBody1$inboundSchema = z.object({});
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const GetActiveAttackStatusResponseBody1$outboundSchema = z.object({});
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
|
+
*/
|
|
208
|
+
export var GetActiveAttackStatusResponseBody1$;
|
|
209
|
+
(function (GetActiveAttackStatusResponseBody1$) {
|
|
210
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody1$inboundSchema` instead. */
|
|
211
|
+
GetActiveAttackStatusResponseBody1$.inboundSchema = GetActiveAttackStatusResponseBody1$inboundSchema;
|
|
212
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody1$outboundSchema` instead. */
|
|
213
|
+
GetActiveAttackStatusResponseBody1$.outboundSchema = GetActiveAttackStatusResponseBody1$outboundSchema;
|
|
214
|
+
})(GetActiveAttackStatusResponseBody1$ || (GetActiveAttackStatusResponseBody1$ = {}));
|
|
215
|
+
export function getActiveAttackStatusResponseBody1ToJSON(getActiveAttackStatusResponseBody1) {
|
|
216
|
+
return JSON.stringify(GetActiveAttackStatusResponseBody1$outboundSchema.parse(getActiveAttackStatusResponseBody1));
|
|
217
|
+
}
|
|
218
|
+
export function getActiveAttackStatusResponseBody1FromJSON(jsonString) {
|
|
219
|
+
return safeParse(jsonString, (x) => GetActiveAttackStatusResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetActiveAttackStatusResponseBody1' from JSON`);
|
|
220
|
+
}
|
|
221
|
+
/** @internal */
|
|
222
|
+
export const GetActiveAttackStatusResponseBody$inboundSchema = z.union([
|
|
223
|
+
z.lazy(() => GetActiveAttackStatusResponseBody1$inboundSchema),
|
|
224
|
+
z.lazy(() => GetActiveAttackStatusResponseBody2$inboundSchema),
|
|
225
|
+
]);
|
|
226
|
+
/** @internal */
|
|
227
|
+
export const GetActiveAttackStatusResponseBody$outboundSchema = z.union([
|
|
228
|
+
z.lazy(() => GetActiveAttackStatusResponseBody1$outboundSchema),
|
|
229
|
+
z.lazy(() => GetActiveAttackStatusResponseBody2$outboundSchema),
|
|
230
|
+
]);
|
|
231
|
+
/**
|
|
232
|
+
* @internal
|
|
233
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
234
|
+
*/
|
|
235
|
+
export var GetActiveAttackStatusResponseBody$;
|
|
236
|
+
(function (GetActiveAttackStatusResponseBody$) {
|
|
237
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody$inboundSchema` instead. */
|
|
238
|
+
GetActiveAttackStatusResponseBody$.inboundSchema = GetActiveAttackStatusResponseBody$inboundSchema;
|
|
239
|
+
/** @deprecated use `GetActiveAttackStatusResponseBody$outboundSchema` instead. */
|
|
240
|
+
GetActiveAttackStatusResponseBody$.outboundSchema = GetActiveAttackStatusResponseBody$outboundSchema;
|
|
241
|
+
})(GetActiveAttackStatusResponseBody$ || (GetActiveAttackStatusResponseBody$ = {}));
|
|
242
|
+
export function getActiveAttackStatusResponseBodyToJSON(getActiveAttackStatusResponseBody) {
|
|
243
|
+
return JSON.stringify(GetActiveAttackStatusResponseBody$outboundSchema.parse(getActiveAttackStatusResponseBody));
|
|
244
|
+
}
|
|
245
|
+
export function getActiveAttackStatusResponseBodyFromJSON(jsonString) {
|
|
246
|
+
return safeParse(jsonString, (x) => GetActiveAttackStatusResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetActiveAttackStatusResponseBody' from JSON`);
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=getactiveattackstatusop.js.map
|