@censys/platform-sdk 0.5.0 → 0.6.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 +17 -17
- package/docs/sdks/globaldata/README.md +190 -92
- package/docs/sdks/threathunting/README.md +29 -21
- package/examples/globalDataSearch.example.ts +1 -1
- package/examples/package-lock.json +3 -3
- package/funcs/globalDataConvertLegacySearchQueries.d.ts +18 -0
- package/funcs/globalDataConvertLegacySearchQueries.d.ts.map +1 -0
- package/funcs/globalDataConvertLegacySearchQueries.js +134 -0
- package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -0
- package/funcs/globalDataCreateTrackedScan.d.ts +2 -2
- package/funcs/globalDataCreateTrackedScan.js +2 -2
- package/funcs/{globalDataGetTrackedScanThreatHunting.d.ts → globalDataGetCertificateRaw.d.ts} +4 -5
- package/funcs/globalDataGetCertificateRaw.d.ts.map +1 -0
- package/funcs/{globalDataGetHostObservationsWithCertificate.js → globalDataGetCertificateRaw.js} +10 -19
- package/funcs/globalDataGetCertificateRaw.js.map +1 -0
- package/funcs/globalDataGetCertificates.d.ts +1 -1
- package/funcs/globalDataGetCertificates.d.ts.map +1 -1
- package/funcs/globalDataGetCertificates.js +9 -6
- package/funcs/globalDataGetCertificates.js.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.d.ts +18 -0
- package/funcs/globalDataGetCertificatesRaw.d.ts.map +1 -0
- package/funcs/globalDataGetCertificatesRaw.js +130 -0
- package/funcs/globalDataGetCertificatesRaw.js.map +1 -0
- package/funcs/globalDataGetHostTimeline.d.ts +1 -1
- package/funcs/globalDataGetHostTimeline.js +1 -1
- package/funcs/globalDataGetHosts.d.ts +1 -1
- package/funcs/globalDataGetHosts.d.ts.map +1 -1
- package/funcs/globalDataGetHosts.js +8 -6
- package/funcs/globalDataGetHosts.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.d.ts +2 -3
- package/funcs/globalDataGetTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataGetTrackedScan.js +2 -3
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperties.d.ts +1 -1
- package/funcs/globalDataGetWebProperties.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperties.js +9 -6
- package/funcs/globalDataGetWebProperties.js.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts +2 -2
- package/funcs/threatHuntingCreateTrackedScan.js +2 -2
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts +18 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts.map +1 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +141 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -0
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts +18 -0
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts.map +1 -0
- package/funcs/{globalDataGetTrackedScanThreatHunting.js → threatHuntingGetTrackedScanThreatHunting.js} +5 -6
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/alternativequery.d.ts +69 -0
- package/models/components/alternativequery.d.ts.map +1 -0
- package/models/components/alternativequery.js +93 -0
- package/models/components/alternativequery.js.map +1 -0
- package/models/components/assetcertificatelistinputbody.d.ts +32 -0
- package/models/components/assetcertificatelistinputbody.d.ts.map +1 -0
- package/models/components/assetcertificatelistinputbody.js +78 -0
- package/models/components/assetcertificatelistinputbody.js.map +1 -0
- package/models/components/assethostlistinputbody.d.ts +32 -0
- package/models/components/assethostlistinputbody.d.ts.map +1 -0
- package/models/components/assethostlistinputbody.js +78 -0
- package/models/components/assethostlistinputbody.js.map +1 -0
- package/models/components/assetwebpropertylistinputbody.d.ts +32 -0
- package/models/components/assetwebpropertylistinputbody.d.ts.map +1 -0
- package/models/components/assetwebpropertylistinputbody.js +78 -0
- package/models/components/assetwebpropertylistinputbody.js.map +1 -0
- package/models/components/asteriskmanagerinterface.d.ts +29 -0
- package/models/components/asteriskmanagerinterface.d.ts.map +1 -0
- package/models/components/asteriskmanagerinterface.js +69 -0
- package/models/components/asteriskmanagerinterface.js.map +1 -0
- package/models/components/convertqueryerror.d.ts +32 -0
- package/models/components/convertqueryerror.d.ts.map +1 -0
- package/models/components/convertqueryerror.js +69 -0
- package/models/components/convertqueryerror.js.map +1 -0
- package/models/components/index.d.ts +12 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -0
- package/models/components/index.js.map +1 -1
- package/models/components/openvpnmgmt.d.ts +37 -0
- package/models/components/openvpnmgmt.d.ts.map +1 -0
- package/models/components/openvpnmgmt.js +92 -0
- package/models/components/openvpnmgmt.js.map +1 -0
- package/models/components/rawcertificateresponse.d.ts +31 -0
- package/models/components/rawcertificateresponse.d.ts.map +1 -0
- package/models/components/rawcertificateresponse.js +80 -0
- package/models/components/rawcertificateresponse.js.map +1 -0
- package/models/components/rdp.d.ts +2 -0
- package/models/components/rdp.d.ts.map +1 -1
- package/models/components/rdp.js +4 -0
- package/models/components/rdp.js.map +1 -1
- package/models/components/responseenvelopelistrawcertificateresponse.d.ts +30 -0
- package/models/components/responseenvelopelistrawcertificateresponse.d.ts.map +1 -0
- package/models/components/responseenvelopelistrawcertificateresponse.js +72 -0
- package/models/components/responseenvelopelistrawcertificateresponse.js.map +1 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts +30 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts.map +1 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.js +72 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.js.map +1 -0
- package/models/components/screenshot.d.ts +2 -0
- package/models/components/screenshot.d.ts.map +1 -1
- package/models/components/screenshot.js +2 -0
- package/models/components/screenshot.js.map +1 -1
- package/models/components/searchconvertqueryinputbody.d.ts +32 -0
- package/models/components/searchconvertqueryinputbody.d.ts.map +1 -0
- package/models/components/searchconvertqueryinputbody.js +69 -0
- package/models/components/searchconvertqueryinputbody.js.map +1 -0
- package/models/components/searchconvertqueryresponse.d.ts +91 -0
- package/models/components/searchconvertqueryresponse.d.ts.map +1 -0
- package/models/components/searchconvertqueryresponse.js +117 -0
- package/models/components/searchconvertqueryresponse.js.map +1 -0
- package/models/components/service.d.ts +6 -0
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +11 -0
- package/models/components/service.js.map +1 -1
- package/models/components/servicescan.d.ts +6 -0
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +10 -0
- package/models/components/servicescan.js.map +1 -1
- package/models/operations/index.d.ts +7 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -4
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3globaldataassetcertificatelistpost.d.ts +91 -0
- package/models/operations/v3globaldataassetcertificatelistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistpost.js +157 -0
- package/models/operations/v3globaldataassetcertificatelistpost.js.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts +91 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.js +157 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.js.map +1 -0
- package/models/operations/v3globaldataassetcertificateraw.d.ts +93 -0
- package/models/operations/v3globaldataassetcertificateraw.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificateraw.js +156 -0
- package/models/operations/v3globaldataassetcertificateraw.js.map +1 -0
- package/models/operations/v3globaldataassethostlistpost.d.ts +91 -0
- package/models/operations/v3globaldataassethostlistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassethostlistpost.js +157 -0
- package/models/operations/v3globaldataassethostlistpost.js.map +1 -0
- package/models/operations/v3globaldataassethosttimeline.d.ts +2 -2
- package/models/operations/v3globaldataassetwebpropertylistpost.d.ts +91 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.js +157 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.js.map +1 -0
- package/models/operations/v3globaldatasearchconvert.d.ts +91 -0
- package/models/operations/v3globaldatasearchconvert.d.ts.map +1 -0
- package/models/operations/v3globaldatasearchconvert.js +157 -0
- package/models/operations/v3globaldatasearchconvert.js.map +1 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts +124 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts.map +1 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.js +183 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/globaldata.d.ts +24 -19
- package/sdk/globaldata.d.ts.map +1 -1
- package/sdk/globaldata.js +29 -21
- package/sdk/globaldata.js.map +1 -1
- package/sdk/threathunting.d.ts +7 -9
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +11 -13
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/globalDataConvertLegacySearchQueries.ts +188 -0
- package/src/funcs/globalDataCreateTrackedScan.ts +2 -2
- package/src/funcs/{globalDataGetHostObservationsWithCertificate.ts → globalDataGetCertificateRaw.ts} +19 -26
- package/src/funcs/globalDataGetCertificates.ts +15 -14
- package/src/funcs/globalDataGetCertificatesRaw.ts +187 -0
- package/src/funcs/globalDataGetHostTimeline.ts +1 -1
- package/src/funcs/globalDataGetHosts.ts +24 -16
- package/src/funcs/globalDataGetTrackedScan.ts +2 -3
- package/src/funcs/globalDataGetWebProperties.ts +15 -14
- package/src/funcs/threatHuntingCreateTrackedScan.ts +2 -2
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +201 -0
- package/src/funcs/{globalDataGetTrackedScanThreatHunting.ts → threatHuntingGetTrackedScanThreatHunting.ts} +3 -4
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +4 -1
- package/src/models/components/alternativequery.ts +104 -0
- package/src/models/components/assetcertificatelistinputbody.ts +80 -0
- package/src/models/components/assethostlistinputbody.ts +78 -0
- package/src/models/components/assetwebpropertylistinputbody.ts +80 -0
- package/src/models/components/asteriskmanagerinterface.ts +66 -0
- package/src/models/components/convertqueryerror.ts +69 -0
- package/src/models/components/index.ts +12 -0
- package/src/models/components/openvpnmgmt.ts +93 -0
- package/src/models/components/rawcertificateresponse.ts +79 -0
- package/src/models/components/rdp.ts +6 -0
- package/src/models/components/responseenvelopelistrawcertificateresponse.ts +84 -0
- package/src/models/components/responseenvelopelistsearchconvertqueryresponse.ts +88 -0
- package/src/models/components/screenshot.ts +4 -0
- package/src/models/components/searchconvertqueryinputbody.ts +71 -0
- package/src/models/components/searchconvertqueryresponse.ts +166 -0
- package/src/models/components/service.ts +25 -0
- package/src/models/components/servicescan.ts +24 -0
- package/src/models/operations/index.ts +7 -4
- package/src/models/operations/v3globaldataassetcertificatelistpost.ts +265 -0
- package/src/models/operations/v3globaldataassetcertificatelistrawpost.ts +269 -0
- package/src/models/operations/v3globaldataassetcertificateraw.ts +248 -0
- package/src/models/operations/v3globaldataassethostlistpost.ts +238 -0
- package/src/models/operations/v3globaldataassethosttimeline.ts +2 -2
- package/src/models/operations/v3globaldataassetwebpropertylistpost.ts +265 -0
- package/src/models/operations/v3globaldatasearchconvert.ts +234 -0
- package/src/models/operations/v3threathuntinggethostobservationswithcertificate.ts +315 -0
- package/src/sdk/globaldata.ts +49 -35
- package/src/sdk/threathunting.ts +16 -15
- package/tests/sdk.test.ts +2 -2
- package/funcs/globalDataGetHostObservationsWithCertificate.d.ts +0 -18
- package/funcs/globalDataGetHostObservationsWithCertificate.d.ts.map +0 -1
- package/funcs/globalDataGetHostObservationsWithCertificate.js.map +0 -1
- package/funcs/globalDataGetTrackedScanThreatHunting.d.ts.map +0 -1
- package/funcs/globalDataGetTrackedScanThreatHunting.js.map +0 -1
- package/models/operations/v3globaldataassetcertificatelist.d.ts +0 -94
- package/models/operations/v3globaldataassetcertificatelist.d.ts.map +0 -1
- package/models/operations/v3globaldataassetcertificatelist.js +0 -157
- package/models/operations/v3globaldataassetcertificatelist.js.map +0 -1
- package/models/operations/v3globaldataassethostlist.d.ts +0 -94
- package/models/operations/v3globaldataassethostlist.d.ts.map +0 -1
- package/models/operations/v3globaldataassethostlist.js +0 -157
- package/models/operations/v3globaldataassethostlist.js.map +0 -1
- package/models/operations/v3globaldataassetwebpropertylist.d.ts +0 -94
- package/models/operations/v3globaldataassetwebpropertylist.d.ts.map +0 -1
- package/models/operations/v3globaldataassetwebpropertylist.js +0 -157
- package/models/operations/v3globaldataassetwebpropertylist.js.map +0 -1
- package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts +0 -124
- package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts.map +0 -1
- package/models/operations/v3globaldatagethostobservationswithcertificate.js +0 -178
- package/models/operations/v3globaldatagethostobservationswithcertificate.js.map +0 -1
- package/src/models/operations/v3globaldataassetcertificatelist.ts +0 -259
- package/src/models/operations/v3globaldataassethostlist.ts +0 -233
- package/src/models/operations/v3globaldataassetwebpropertylist.ts +0 -259
- package/src/models/operations/v3globaldatagethostobservationswithcertificate.ts +0 -317
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type V3GlobaldataAssetHostListGlobals = {
|
|
13
|
-
organizationId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type V3GlobaldataAssetHostListRequest = {
|
|
17
|
-
/**
|
|
18
|
-
* The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-set-your-organization-id) for more information.
|
|
19
|
-
*/
|
|
20
|
-
organizationId?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A list of host IP addresses.
|
|
23
|
-
*/
|
|
24
|
-
hostIds: Array<string> | null;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type V3GlobaldataAssetHostListResponse = {
|
|
28
|
-
headers: { [k: string]: Array<string> };
|
|
29
|
-
result: components.ResponseEnvelopeListHostAsset;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const V3GlobaldataAssetHostListGlobals$inboundSchema: z.ZodType<
|
|
34
|
-
V3GlobaldataAssetHostListGlobals,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
unknown
|
|
37
|
-
> = z.object({
|
|
38
|
-
organization_id: z.string().optional(),
|
|
39
|
-
}).transform((v) => {
|
|
40
|
-
return remap$(v, {
|
|
41
|
-
"organization_id": "organizationId",
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type V3GlobaldataAssetHostListGlobals$Outbound = {
|
|
47
|
-
organization_id?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const V3GlobaldataAssetHostListGlobals$outboundSchema: z.ZodType<
|
|
52
|
-
V3GlobaldataAssetHostListGlobals$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
V3GlobaldataAssetHostListGlobals
|
|
55
|
-
> = z.object({
|
|
56
|
-
organizationId: z.string().optional(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return remap$(v, {
|
|
59
|
-
organizationId: "organization_id",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace V3GlobaldataAssetHostListGlobals$ {
|
|
68
|
-
/** @deprecated use `V3GlobaldataAssetHostListGlobals$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = V3GlobaldataAssetHostListGlobals$inboundSchema;
|
|
70
|
-
/** @deprecated use `V3GlobaldataAssetHostListGlobals$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = V3GlobaldataAssetHostListGlobals$outboundSchema;
|
|
72
|
-
/** @deprecated use `V3GlobaldataAssetHostListGlobals$Outbound` instead. */
|
|
73
|
-
export type Outbound = V3GlobaldataAssetHostListGlobals$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function v3GlobaldataAssetHostListGlobalsToJSON(
|
|
77
|
-
v3GlobaldataAssetHostListGlobals: V3GlobaldataAssetHostListGlobals,
|
|
78
|
-
): string {
|
|
79
|
-
return JSON.stringify(
|
|
80
|
-
V3GlobaldataAssetHostListGlobals$outboundSchema.parse(
|
|
81
|
-
v3GlobaldataAssetHostListGlobals,
|
|
82
|
-
),
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function v3GlobaldataAssetHostListGlobalsFromJSON(
|
|
87
|
-
jsonString: string,
|
|
88
|
-
): SafeParseResult<V3GlobaldataAssetHostListGlobals, SDKValidationError> {
|
|
89
|
-
return safeParse(
|
|
90
|
-
jsonString,
|
|
91
|
-
(x) => V3GlobaldataAssetHostListGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
-
`Failed to parse 'V3GlobaldataAssetHostListGlobals' from JSON`,
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const V3GlobaldataAssetHostListRequest$inboundSchema: z.ZodType<
|
|
98
|
-
V3GlobaldataAssetHostListRequest,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
unknown
|
|
101
|
-
> = z.object({
|
|
102
|
-
organization_id: z.string().optional(),
|
|
103
|
-
host_ids: z.nullable(z.array(z.string())),
|
|
104
|
-
}).transform((v) => {
|
|
105
|
-
return remap$(v, {
|
|
106
|
-
"organization_id": "organizationId",
|
|
107
|
-
"host_ids": "hostIds",
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export type V3GlobaldataAssetHostListRequest$Outbound = {
|
|
113
|
-
organization_id?: string | undefined;
|
|
114
|
-
host_ids: Array<string> | null;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const V3GlobaldataAssetHostListRequest$outboundSchema: z.ZodType<
|
|
119
|
-
V3GlobaldataAssetHostListRequest$Outbound,
|
|
120
|
-
z.ZodTypeDef,
|
|
121
|
-
V3GlobaldataAssetHostListRequest
|
|
122
|
-
> = z.object({
|
|
123
|
-
organizationId: z.string().optional(),
|
|
124
|
-
hostIds: z.nullable(z.array(z.string())),
|
|
125
|
-
}).transform((v) => {
|
|
126
|
-
return remap$(v, {
|
|
127
|
-
organizationId: "organization_id",
|
|
128
|
-
hostIds: "host_ids",
|
|
129
|
-
});
|
|
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 V3GlobaldataAssetHostListRequest$ {
|
|
137
|
-
/** @deprecated use `V3GlobaldataAssetHostListRequest$inboundSchema` instead. */
|
|
138
|
-
export const inboundSchema = V3GlobaldataAssetHostListRequest$inboundSchema;
|
|
139
|
-
/** @deprecated use `V3GlobaldataAssetHostListRequest$outboundSchema` instead. */
|
|
140
|
-
export const outboundSchema = V3GlobaldataAssetHostListRequest$outboundSchema;
|
|
141
|
-
/** @deprecated use `V3GlobaldataAssetHostListRequest$Outbound` instead. */
|
|
142
|
-
export type Outbound = V3GlobaldataAssetHostListRequest$Outbound;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function v3GlobaldataAssetHostListRequestToJSON(
|
|
146
|
-
v3GlobaldataAssetHostListRequest: V3GlobaldataAssetHostListRequest,
|
|
147
|
-
): string {
|
|
148
|
-
return JSON.stringify(
|
|
149
|
-
V3GlobaldataAssetHostListRequest$outboundSchema.parse(
|
|
150
|
-
v3GlobaldataAssetHostListRequest,
|
|
151
|
-
),
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function v3GlobaldataAssetHostListRequestFromJSON(
|
|
156
|
-
jsonString: string,
|
|
157
|
-
): SafeParseResult<V3GlobaldataAssetHostListRequest, SDKValidationError> {
|
|
158
|
-
return safeParse(
|
|
159
|
-
jsonString,
|
|
160
|
-
(x) => V3GlobaldataAssetHostListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
161
|
-
`Failed to parse 'V3GlobaldataAssetHostListRequest' from JSON`,
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** @internal */
|
|
166
|
-
export const V3GlobaldataAssetHostListResponse$inboundSchema: z.ZodType<
|
|
167
|
-
V3GlobaldataAssetHostListResponse,
|
|
168
|
-
z.ZodTypeDef,
|
|
169
|
-
unknown
|
|
170
|
-
> = z.object({
|
|
171
|
-
Headers: z.record(z.array(z.string())),
|
|
172
|
-
Result: components.ResponseEnvelopeListHostAsset$inboundSchema,
|
|
173
|
-
}).transform((v) => {
|
|
174
|
-
return remap$(v, {
|
|
175
|
-
"Headers": "headers",
|
|
176
|
-
"Result": "result",
|
|
177
|
-
});
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export type V3GlobaldataAssetHostListResponse$Outbound = {
|
|
182
|
-
Headers: { [k: string]: Array<string> };
|
|
183
|
-
Result: components.ResponseEnvelopeListHostAsset$Outbound;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export const V3GlobaldataAssetHostListResponse$outboundSchema: z.ZodType<
|
|
188
|
-
V3GlobaldataAssetHostListResponse$Outbound,
|
|
189
|
-
z.ZodTypeDef,
|
|
190
|
-
V3GlobaldataAssetHostListResponse
|
|
191
|
-
> = z.object({
|
|
192
|
-
headers: z.record(z.array(z.string())),
|
|
193
|
-
result: components.ResponseEnvelopeListHostAsset$outboundSchema,
|
|
194
|
-
}).transform((v) => {
|
|
195
|
-
return remap$(v, {
|
|
196
|
-
headers: "Headers",
|
|
197
|
-
result: "Result",
|
|
198
|
-
});
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
204
|
-
*/
|
|
205
|
-
export namespace V3GlobaldataAssetHostListResponse$ {
|
|
206
|
-
/** @deprecated use `V3GlobaldataAssetHostListResponse$inboundSchema` instead. */
|
|
207
|
-
export const inboundSchema = V3GlobaldataAssetHostListResponse$inboundSchema;
|
|
208
|
-
/** @deprecated use `V3GlobaldataAssetHostListResponse$outboundSchema` instead. */
|
|
209
|
-
export const outboundSchema =
|
|
210
|
-
V3GlobaldataAssetHostListResponse$outboundSchema;
|
|
211
|
-
/** @deprecated use `V3GlobaldataAssetHostListResponse$Outbound` instead. */
|
|
212
|
-
export type Outbound = V3GlobaldataAssetHostListResponse$Outbound;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export function v3GlobaldataAssetHostListResponseToJSON(
|
|
216
|
-
v3GlobaldataAssetHostListResponse: V3GlobaldataAssetHostListResponse,
|
|
217
|
-
): string {
|
|
218
|
-
return JSON.stringify(
|
|
219
|
-
V3GlobaldataAssetHostListResponse$outboundSchema.parse(
|
|
220
|
-
v3GlobaldataAssetHostListResponse,
|
|
221
|
-
),
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export function v3GlobaldataAssetHostListResponseFromJSON(
|
|
226
|
-
jsonString: string,
|
|
227
|
-
): SafeParseResult<V3GlobaldataAssetHostListResponse, SDKValidationError> {
|
|
228
|
-
return safeParse(
|
|
229
|
-
jsonString,
|
|
230
|
-
(x) => V3GlobaldataAssetHostListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
231
|
-
`Failed to parse 'V3GlobaldataAssetHostListResponse' from JSON`,
|
|
232
|
-
);
|
|
233
|
-
}
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type V3GlobaldataAssetWebpropertyListGlobals = {
|
|
13
|
-
organizationId?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type V3GlobaldataAssetWebpropertyListRequest = {
|
|
17
|
-
/**
|
|
18
|
-
* The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-set-your-organization-id) for more information.
|
|
19
|
-
*/
|
|
20
|
-
organizationId?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A list of web property identifiers.
|
|
23
|
-
*/
|
|
24
|
-
webpropertyIds: Array<string> | null;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type V3GlobaldataAssetWebpropertyListResponse = {
|
|
28
|
-
headers: { [k: string]: Array<string> };
|
|
29
|
-
result: components.ResponseEnvelopeListWebpropertyAsset;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const V3GlobaldataAssetWebpropertyListGlobals$inboundSchema: z.ZodType<
|
|
34
|
-
V3GlobaldataAssetWebpropertyListGlobals,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
unknown
|
|
37
|
-
> = z.object({
|
|
38
|
-
organization_id: z.string().optional(),
|
|
39
|
-
}).transform((v) => {
|
|
40
|
-
return remap$(v, {
|
|
41
|
-
"organization_id": "organizationId",
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type V3GlobaldataAssetWebpropertyListGlobals$Outbound = {
|
|
47
|
-
organization_id?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const V3GlobaldataAssetWebpropertyListGlobals$outboundSchema: z.ZodType<
|
|
52
|
-
V3GlobaldataAssetWebpropertyListGlobals$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
V3GlobaldataAssetWebpropertyListGlobals
|
|
55
|
-
> = z.object({
|
|
56
|
-
organizationId: z.string().optional(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return remap$(v, {
|
|
59
|
-
organizationId: "organization_id",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace V3GlobaldataAssetWebpropertyListGlobals$ {
|
|
68
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema =
|
|
70
|
-
V3GlobaldataAssetWebpropertyListGlobals$inboundSchema;
|
|
71
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$outboundSchema` instead. */
|
|
72
|
-
export const outboundSchema =
|
|
73
|
-
V3GlobaldataAssetWebpropertyListGlobals$outboundSchema;
|
|
74
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$Outbound` instead. */
|
|
75
|
-
export type Outbound = V3GlobaldataAssetWebpropertyListGlobals$Outbound;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function v3GlobaldataAssetWebpropertyListGlobalsToJSON(
|
|
79
|
-
v3GlobaldataAssetWebpropertyListGlobals:
|
|
80
|
-
V3GlobaldataAssetWebpropertyListGlobals,
|
|
81
|
-
): string {
|
|
82
|
-
return JSON.stringify(
|
|
83
|
-
V3GlobaldataAssetWebpropertyListGlobals$outboundSchema.parse(
|
|
84
|
-
v3GlobaldataAssetWebpropertyListGlobals,
|
|
85
|
-
),
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function v3GlobaldataAssetWebpropertyListGlobalsFromJSON(
|
|
90
|
-
jsonString: string,
|
|
91
|
-
): SafeParseResult<
|
|
92
|
-
V3GlobaldataAssetWebpropertyListGlobals,
|
|
93
|
-
SDKValidationError
|
|
94
|
-
> {
|
|
95
|
-
return safeParse(
|
|
96
|
-
jsonString,
|
|
97
|
-
(x) =>
|
|
98
|
-
V3GlobaldataAssetWebpropertyListGlobals$inboundSchema.parse(
|
|
99
|
-
JSON.parse(x),
|
|
100
|
-
),
|
|
101
|
-
`Failed to parse 'V3GlobaldataAssetWebpropertyListGlobals' from JSON`,
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const V3GlobaldataAssetWebpropertyListRequest$inboundSchema: z.ZodType<
|
|
107
|
-
V3GlobaldataAssetWebpropertyListRequest,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
unknown
|
|
110
|
-
> = z.object({
|
|
111
|
-
organization_id: z.string().optional(),
|
|
112
|
-
webproperty_ids: z.nullable(z.array(z.string())),
|
|
113
|
-
}).transform((v) => {
|
|
114
|
-
return remap$(v, {
|
|
115
|
-
"organization_id": "organizationId",
|
|
116
|
-
"webproperty_ids": "webpropertyIds",
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type V3GlobaldataAssetWebpropertyListRequest$Outbound = {
|
|
122
|
-
organization_id?: string | undefined;
|
|
123
|
-
webproperty_ids: Array<string> | null;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
/** @internal */
|
|
127
|
-
export const V3GlobaldataAssetWebpropertyListRequest$outboundSchema: z.ZodType<
|
|
128
|
-
V3GlobaldataAssetWebpropertyListRequest$Outbound,
|
|
129
|
-
z.ZodTypeDef,
|
|
130
|
-
V3GlobaldataAssetWebpropertyListRequest
|
|
131
|
-
> = z.object({
|
|
132
|
-
organizationId: z.string().optional(),
|
|
133
|
-
webpropertyIds: z.nullable(z.array(z.string())),
|
|
134
|
-
}).transform((v) => {
|
|
135
|
-
return remap$(v, {
|
|
136
|
-
organizationId: "organization_id",
|
|
137
|
-
webpropertyIds: "webproperty_ids",
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
-
*/
|
|
145
|
-
export namespace V3GlobaldataAssetWebpropertyListRequest$ {
|
|
146
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$inboundSchema` instead. */
|
|
147
|
-
export const inboundSchema =
|
|
148
|
-
V3GlobaldataAssetWebpropertyListRequest$inboundSchema;
|
|
149
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$outboundSchema` instead. */
|
|
150
|
-
export const outboundSchema =
|
|
151
|
-
V3GlobaldataAssetWebpropertyListRequest$outboundSchema;
|
|
152
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$Outbound` instead. */
|
|
153
|
-
export type Outbound = V3GlobaldataAssetWebpropertyListRequest$Outbound;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export function v3GlobaldataAssetWebpropertyListRequestToJSON(
|
|
157
|
-
v3GlobaldataAssetWebpropertyListRequest:
|
|
158
|
-
V3GlobaldataAssetWebpropertyListRequest,
|
|
159
|
-
): string {
|
|
160
|
-
return JSON.stringify(
|
|
161
|
-
V3GlobaldataAssetWebpropertyListRequest$outboundSchema.parse(
|
|
162
|
-
v3GlobaldataAssetWebpropertyListRequest,
|
|
163
|
-
),
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function v3GlobaldataAssetWebpropertyListRequestFromJSON(
|
|
168
|
-
jsonString: string,
|
|
169
|
-
): SafeParseResult<
|
|
170
|
-
V3GlobaldataAssetWebpropertyListRequest,
|
|
171
|
-
SDKValidationError
|
|
172
|
-
> {
|
|
173
|
-
return safeParse(
|
|
174
|
-
jsonString,
|
|
175
|
-
(x) =>
|
|
176
|
-
V3GlobaldataAssetWebpropertyListRequest$inboundSchema.parse(
|
|
177
|
-
JSON.parse(x),
|
|
178
|
-
),
|
|
179
|
-
`Failed to parse 'V3GlobaldataAssetWebpropertyListRequest' from JSON`,
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/** @internal */
|
|
184
|
-
export const V3GlobaldataAssetWebpropertyListResponse$inboundSchema: z.ZodType<
|
|
185
|
-
V3GlobaldataAssetWebpropertyListResponse,
|
|
186
|
-
z.ZodTypeDef,
|
|
187
|
-
unknown
|
|
188
|
-
> = z.object({
|
|
189
|
-
Headers: z.record(z.array(z.string())),
|
|
190
|
-
Result: components.ResponseEnvelopeListWebpropertyAsset$inboundSchema,
|
|
191
|
-
}).transform((v) => {
|
|
192
|
-
return remap$(v, {
|
|
193
|
-
"Headers": "headers",
|
|
194
|
-
"Result": "result",
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
/** @internal */
|
|
199
|
-
export type V3GlobaldataAssetWebpropertyListResponse$Outbound = {
|
|
200
|
-
Headers: { [k: string]: Array<string> };
|
|
201
|
-
Result: components.ResponseEnvelopeListWebpropertyAsset$Outbound;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
/** @internal */
|
|
205
|
-
export const V3GlobaldataAssetWebpropertyListResponse$outboundSchema: z.ZodType<
|
|
206
|
-
V3GlobaldataAssetWebpropertyListResponse$Outbound,
|
|
207
|
-
z.ZodTypeDef,
|
|
208
|
-
V3GlobaldataAssetWebpropertyListResponse
|
|
209
|
-
> = z.object({
|
|
210
|
-
headers: z.record(z.array(z.string())),
|
|
211
|
-
result: components.ResponseEnvelopeListWebpropertyAsset$outboundSchema,
|
|
212
|
-
}).transform((v) => {
|
|
213
|
-
return remap$(v, {
|
|
214
|
-
headers: "Headers",
|
|
215
|
-
result: "Result",
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
-
*/
|
|
223
|
-
export namespace V3GlobaldataAssetWebpropertyListResponse$ {
|
|
224
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$inboundSchema` instead. */
|
|
225
|
-
export const inboundSchema =
|
|
226
|
-
V3GlobaldataAssetWebpropertyListResponse$inboundSchema;
|
|
227
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$outboundSchema` instead. */
|
|
228
|
-
export const outboundSchema =
|
|
229
|
-
V3GlobaldataAssetWebpropertyListResponse$outboundSchema;
|
|
230
|
-
/** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$Outbound` instead. */
|
|
231
|
-
export type Outbound = V3GlobaldataAssetWebpropertyListResponse$Outbound;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export function v3GlobaldataAssetWebpropertyListResponseToJSON(
|
|
235
|
-
v3GlobaldataAssetWebpropertyListResponse:
|
|
236
|
-
V3GlobaldataAssetWebpropertyListResponse,
|
|
237
|
-
): string {
|
|
238
|
-
return JSON.stringify(
|
|
239
|
-
V3GlobaldataAssetWebpropertyListResponse$outboundSchema.parse(
|
|
240
|
-
v3GlobaldataAssetWebpropertyListResponse,
|
|
241
|
-
),
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
export function v3GlobaldataAssetWebpropertyListResponseFromJSON(
|
|
246
|
-
jsonString: string,
|
|
247
|
-
): SafeParseResult<
|
|
248
|
-
V3GlobaldataAssetWebpropertyListResponse,
|
|
249
|
-
SDKValidationError
|
|
250
|
-
> {
|
|
251
|
-
return safeParse(
|
|
252
|
-
jsonString,
|
|
253
|
-
(x) =>
|
|
254
|
-
V3GlobaldataAssetWebpropertyListResponse$inboundSchema.parse(
|
|
255
|
-
JSON.parse(x),
|
|
256
|
-
),
|
|
257
|
-
`Failed to parse 'V3GlobaldataAssetWebpropertyListResponse' from JSON`,
|
|
258
|
-
);
|
|
259
|
-
}
|