@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
|
@@ -0,0 +1,269 @@
|
|
|
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 V3GlobaldataAssetCertificateListRawPostGlobals = {
|
|
13
|
+
organizationId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type V3GlobaldataAssetCertificateListRawPostRequest = {
|
|
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
|
+
assetCertificateListInputBody: components.AssetCertificateListInputBody;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type V3GlobaldataAssetCertificateListRawPostResponse = {
|
|
25
|
+
headers: { [k: string]: Array<string> };
|
|
26
|
+
result: components.ResponseEnvelopeListRawCertificateResponse;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const V3GlobaldataAssetCertificateListRawPostGlobals$inboundSchema:
|
|
31
|
+
z.ZodType<
|
|
32
|
+
V3GlobaldataAssetCertificateListRawPostGlobals,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
organization_id: z.string().optional(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"organization_id": "organizationId",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type V3GlobaldataAssetCertificateListRawPostGlobals$Outbound = {
|
|
45
|
+
organization_id?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const V3GlobaldataAssetCertificateListRawPostGlobals$outboundSchema:
|
|
50
|
+
z.ZodType<
|
|
51
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
V3GlobaldataAssetCertificateListRawPostGlobals
|
|
54
|
+
> = z.object({
|
|
55
|
+
organizationId: z.string().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
organizationId: "organization_id",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace V3GlobaldataAssetCertificateListRawPostGlobals$ {
|
|
67
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostGlobals$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema =
|
|
69
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$inboundSchema;
|
|
70
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostGlobals$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema =
|
|
72
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$outboundSchema;
|
|
73
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostGlobals$Outbound` instead. */
|
|
74
|
+
export type Outbound =
|
|
75
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$Outbound;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function v3GlobaldataAssetCertificateListRawPostGlobalsToJSON(
|
|
79
|
+
v3GlobaldataAssetCertificateListRawPostGlobals:
|
|
80
|
+
V3GlobaldataAssetCertificateListRawPostGlobals,
|
|
81
|
+
): string {
|
|
82
|
+
return JSON.stringify(
|
|
83
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$outboundSchema.parse(
|
|
84
|
+
v3GlobaldataAssetCertificateListRawPostGlobals,
|
|
85
|
+
),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function v3GlobaldataAssetCertificateListRawPostGlobalsFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<
|
|
92
|
+
V3GlobaldataAssetCertificateListRawPostGlobals,
|
|
93
|
+
SDKValidationError
|
|
94
|
+
> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) =>
|
|
98
|
+
V3GlobaldataAssetCertificateListRawPostGlobals$inboundSchema.parse(
|
|
99
|
+
JSON.parse(x),
|
|
100
|
+
),
|
|
101
|
+
`Failed to parse 'V3GlobaldataAssetCertificateListRawPostGlobals' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const V3GlobaldataAssetCertificateListRawPostRequest$inboundSchema:
|
|
107
|
+
z.ZodType<
|
|
108
|
+
V3GlobaldataAssetCertificateListRawPostRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
organization_id: z.string().optional(),
|
|
113
|
+
AssetCertificateListInputBody:
|
|
114
|
+
components.AssetCertificateListInputBody$inboundSchema,
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
"organization_id": "organizationId",
|
|
118
|
+
"AssetCertificateListInputBody": "assetCertificateListInputBody",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type V3GlobaldataAssetCertificateListRawPostRequest$Outbound = {
|
|
124
|
+
organization_id?: string | undefined;
|
|
125
|
+
AssetCertificateListInputBody:
|
|
126
|
+
components.AssetCertificateListInputBody$Outbound;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const V3GlobaldataAssetCertificateListRawPostRequest$outboundSchema:
|
|
131
|
+
z.ZodType<
|
|
132
|
+
V3GlobaldataAssetCertificateListRawPostRequest$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
V3GlobaldataAssetCertificateListRawPostRequest
|
|
135
|
+
> = z.object({
|
|
136
|
+
organizationId: z.string().optional(),
|
|
137
|
+
assetCertificateListInputBody:
|
|
138
|
+
components.AssetCertificateListInputBody$outboundSchema,
|
|
139
|
+
}).transform((v) => {
|
|
140
|
+
return remap$(v, {
|
|
141
|
+
organizationId: "organization_id",
|
|
142
|
+
assetCertificateListInputBody: "AssetCertificateListInputBody",
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
149
|
+
*/
|
|
150
|
+
export namespace V3GlobaldataAssetCertificateListRawPostRequest$ {
|
|
151
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostRequest$inboundSchema` instead. */
|
|
152
|
+
export const inboundSchema =
|
|
153
|
+
V3GlobaldataAssetCertificateListRawPostRequest$inboundSchema;
|
|
154
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostRequest$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema =
|
|
156
|
+
V3GlobaldataAssetCertificateListRawPostRequest$outboundSchema;
|
|
157
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostRequest$Outbound` instead. */
|
|
158
|
+
export type Outbound =
|
|
159
|
+
V3GlobaldataAssetCertificateListRawPostRequest$Outbound;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function v3GlobaldataAssetCertificateListRawPostRequestToJSON(
|
|
163
|
+
v3GlobaldataAssetCertificateListRawPostRequest:
|
|
164
|
+
V3GlobaldataAssetCertificateListRawPostRequest,
|
|
165
|
+
): string {
|
|
166
|
+
return JSON.stringify(
|
|
167
|
+
V3GlobaldataAssetCertificateListRawPostRequest$outboundSchema.parse(
|
|
168
|
+
v3GlobaldataAssetCertificateListRawPostRequest,
|
|
169
|
+
),
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function v3GlobaldataAssetCertificateListRawPostRequestFromJSON(
|
|
174
|
+
jsonString: string,
|
|
175
|
+
): SafeParseResult<
|
|
176
|
+
V3GlobaldataAssetCertificateListRawPostRequest,
|
|
177
|
+
SDKValidationError
|
|
178
|
+
> {
|
|
179
|
+
return safeParse(
|
|
180
|
+
jsonString,
|
|
181
|
+
(x) =>
|
|
182
|
+
V3GlobaldataAssetCertificateListRawPostRequest$inboundSchema.parse(
|
|
183
|
+
JSON.parse(x),
|
|
184
|
+
),
|
|
185
|
+
`Failed to parse 'V3GlobaldataAssetCertificateListRawPostRequest' from JSON`,
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const V3GlobaldataAssetCertificateListRawPostResponse$inboundSchema:
|
|
191
|
+
z.ZodType<
|
|
192
|
+
V3GlobaldataAssetCertificateListRawPostResponse,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
unknown
|
|
195
|
+
> = z.object({
|
|
196
|
+
Headers: z.record(z.array(z.string())),
|
|
197
|
+
Result: components.ResponseEnvelopeListRawCertificateResponse$inboundSchema,
|
|
198
|
+
}).transform((v) => {
|
|
199
|
+
return remap$(v, {
|
|
200
|
+
"Headers": "headers",
|
|
201
|
+
"Result": "result",
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export type V3GlobaldataAssetCertificateListRawPostResponse$Outbound = {
|
|
207
|
+
Headers: { [k: string]: Array<string> };
|
|
208
|
+
Result: components.ResponseEnvelopeListRawCertificateResponse$Outbound;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const V3GlobaldataAssetCertificateListRawPostResponse$outboundSchema:
|
|
213
|
+
z.ZodType<
|
|
214
|
+
V3GlobaldataAssetCertificateListRawPostResponse$Outbound,
|
|
215
|
+
z.ZodTypeDef,
|
|
216
|
+
V3GlobaldataAssetCertificateListRawPostResponse
|
|
217
|
+
> = z.object({
|
|
218
|
+
headers: z.record(z.array(z.string())),
|
|
219
|
+
result:
|
|
220
|
+
components.ResponseEnvelopeListRawCertificateResponse$outboundSchema,
|
|
221
|
+
}).transform((v) => {
|
|
222
|
+
return remap$(v, {
|
|
223
|
+
headers: "Headers",
|
|
224
|
+
result: "Result",
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
|
|
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 namespace V3GlobaldataAssetCertificateListRawPostResponse$ {
|
|
233
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostResponse$inboundSchema` instead. */
|
|
234
|
+
export const inboundSchema =
|
|
235
|
+
V3GlobaldataAssetCertificateListRawPostResponse$inboundSchema;
|
|
236
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostResponse$outboundSchema` instead. */
|
|
237
|
+
export const outboundSchema =
|
|
238
|
+
V3GlobaldataAssetCertificateListRawPostResponse$outboundSchema;
|
|
239
|
+
/** @deprecated use `V3GlobaldataAssetCertificateListRawPostResponse$Outbound` instead. */
|
|
240
|
+
export type Outbound =
|
|
241
|
+
V3GlobaldataAssetCertificateListRawPostResponse$Outbound;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function v3GlobaldataAssetCertificateListRawPostResponseToJSON(
|
|
245
|
+
v3GlobaldataAssetCertificateListRawPostResponse:
|
|
246
|
+
V3GlobaldataAssetCertificateListRawPostResponse,
|
|
247
|
+
): string {
|
|
248
|
+
return JSON.stringify(
|
|
249
|
+
V3GlobaldataAssetCertificateListRawPostResponse$outboundSchema.parse(
|
|
250
|
+
v3GlobaldataAssetCertificateListRawPostResponse,
|
|
251
|
+
),
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function v3GlobaldataAssetCertificateListRawPostResponseFromJSON(
|
|
256
|
+
jsonString: string,
|
|
257
|
+
): SafeParseResult<
|
|
258
|
+
V3GlobaldataAssetCertificateListRawPostResponse,
|
|
259
|
+
SDKValidationError
|
|
260
|
+
> {
|
|
261
|
+
return safeParse(
|
|
262
|
+
jsonString,
|
|
263
|
+
(x) =>
|
|
264
|
+
V3GlobaldataAssetCertificateListRawPostResponse$inboundSchema.parse(
|
|
265
|
+
JSON.parse(x),
|
|
266
|
+
),
|
|
267
|
+
`Failed to parse 'V3GlobaldataAssetCertificateListRawPostResponse' from JSON`,
|
|
268
|
+
);
|
|
269
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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 "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type V3GlobaldataAssetCertificateRawGlobals = {
|
|
12
|
+
organizationId?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type V3GlobaldataAssetCertificateRawRequest = {
|
|
16
|
+
/**
|
|
17
|
+
* 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.
|
|
18
|
+
*/
|
|
19
|
+
organizationId?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* The SHA-256 certificate fingerprint.
|
|
22
|
+
*/
|
|
23
|
+
certificateId: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type V3GlobaldataAssetCertificateRawResponse = {
|
|
27
|
+
headers: { [k: string]: Array<string> };
|
|
28
|
+
result: ReadableStream<Uint8Array>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const V3GlobaldataAssetCertificateRawGlobals$inboundSchema: z.ZodType<
|
|
33
|
+
V3GlobaldataAssetCertificateRawGlobals,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
organization_id: z.string().optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"organization_id": "organizationId",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type V3GlobaldataAssetCertificateRawGlobals$Outbound = {
|
|
46
|
+
organization_id?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const V3GlobaldataAssetCertificateRawGlobals$outboundSchema: z.ZodType<
|
|
51
|
+
V3GlobaldataAssetCertificateRawGlobals$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
V3GlobaldataAssetCertificateRawGlobals
|
|
54
|
+
> = z.object({
|
|
55
|
+
organizationId: z.string().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
organizationId: "organization_id",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace V3GlobaldataAssetCertificateRawGlobals$ {
|
|
67
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawGlobals$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema =
|
|
69
|
+
V3GlobaldataAssetCertificateRawGlobals$inboundSchema;
|
|
70
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawGlobals$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema =
|
|
72
|
+
V3GlobaldataAssetCertificateRawGlobals$outboundSchema;
|
|
73
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawGlobals$Outbound` instead. */
|
|
74
|
+
export type Outbound = V3GlobaldataAssetCertificateRawGlobals$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function v3GlobaldataAssetCertificateRawGlobalsToJSON(
|
|
78
|
+
v3GlobaldataAssetCertificateRawGlobals:
|
|
79
|
+
V3GlobaldataAssetCertificateRawGlobals,
|
|
80
|
+
): string {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
V3GlobaldataAssetCertificateRawGlobals$outboundSchema.parse(
|
|
83
|
+
v3GlobaldataAssetCertificateRawGlobals,
|
|
84
|
+
),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function v3GlobaldataAssetCertificateRawGlobalsFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<V3GlobaldataAssetCertificateRawGlobals, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) =>
|
|
94
|
+
V3GlobaldataAssetCertificateRawGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'V3GlobaldataAssetCertificateRawGlobals' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const V3GlobaldataAssetCertificateRawRequest$inboundSchema: z.ZodType<
|
|
101
|
+
V3GlobaldataAssetCertificateRawRequest,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
unknown
|
|
104
|
+
> = z.object({
|
|
105
|
+
organization_id: z.string().optional(),
|
|
106
|
+
certificate_id: z.string(),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return remap$(v, {
|
|
109
|
+
"organization_id": "organizationId",
|
|
110
|
+
"certificate_id": "certificateId",
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type V3GlobaldataAssetCertificateRawRequest$Outbound = {
|
|
116
|
+
organization_id?: string | undefined;
|
|
117
|
+
certificate_id: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const V3GlobaldataAssetCertificateRawRequest$outboundSchema: z.ZodType<
|
|
122
|
+
V3GlobaldataAssetCertificateRawRequest$Outbound,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
V3GlobaldataAssetCertificateRawRequest
|
|
125
|
+
> = z.object({
|
|
126
|
+
organizationId: z.string().optional(),
|
|
127
|
+
certificateId: z.string(),
|
|
128
|
+
}).transform((v) => {
|
|
129
|
+
return remap$(v, {
|
|
130
|
+
organizationId: "organization_id",
|
|
131
|
+
certificateId: "certificate_id",
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export namespace V3GlobaldataAssetCertificateRawRequest$ {
|
|
140
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawRequest$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema =
|
|
142
|
+
V3GlobaldataAssetCertificateRawRequest$inboundSchema;
|
|
143
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawRequest$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema =
|
|
145
|
+
V3GlobaldataAssetCertificateRawRequest$outboundSchema;
|
|
146
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawRequest$Outbound` instead. */
|
|
147
|
+
export type Outbound = V3GlobaldataAssetCertificateRawRequest$Outbound;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function v3GlobaldataAssetCertificateRawRequestToJSON(
|
|
151
|
+
v3GlobaldataAssetCertificateRawRequest:
|
|
152
|
+
V3GlobaldataAssetCertificateRawRequest,
|
|
153
|
+
): string {
|
|
154
|
+
return JSON.stringify(
|
|
155
|
+
V3GlobaldataAssetCertificateRawRequest$outboundSchema.parse(
|
|
156
|
+
v3GlobaldataAssetCertificateRawRequest,
|
|
157
|
+
),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function v3GlobaldataAssetCertificateRawRequestFromJSON(
|
|
162
|
+
jsonString: string,
|
|
163
|
+
): SafeParseResult<V3GlobaldataAssetCertificateRawRequest, SDKValidationError> {
|
|
164
|
+
return safeParse(
|
|
165
|
+
jsonString,
|
|
166
|
+
(x) =>
|
|
167
|
+
V3GlobaldataAssetCertificateRawRequest$inboundSchema.parse(JSON.parse(x)),
|
|
168
|
+
`Failed to parse 'V3GlobaldataAssetCertificateRawRequest' from JSON`,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const V3GlobaldataAssetCertificateRawResponse$inboundSchema: z.ZodType<
|
|
174
|
+
V3GlobaldataAssetCertificateRawResponse,
|
|
175
|
+
z.ZodTypeDef,
|
|
176
|
+
unknown
|
|
177
|
+
> = z.object({
|
|
178
|
+
Headers: z.record(z.array(z.string())),
|
|
179
|
+
Result: z.instanceof(ReadableStream<Uint8Array>),
|
|
180
|
+
}).transform((v) => {
|
|
181
|
+
return remap$(v, {
|
|
182
|
+
"Headers": "headers",
|
|
183
|
+
"Result": "result",
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type V3GlobaldataAssetCertificateRawResponse$Outbound = {
|
|
189
|
+
Headers: { [k: string]: Array<string> };
|
|
190
|
+
Result: ReadableStream<Uint8Array>;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export const V3GlobaldataAssetCertificateRawResponse$outboundSchema: z.ZodType<
|
|
195
|
+
V3GlobaldataAssetCertificateRawResponse$Outbound,
|
|
196
|
+
z.ZodTypeDef,
|
|
197
|
+
V3GlobaldataAssetCertificateRawResponse
|
|
198
|
+
> = z.object({
|
|
199
|
+
headers: z.record(z.array(z.string())),
|
|
200
|
+
result: z.instanceof(ReadableStream<Uint8Array>),
|
|
201
|
+
}).transform((v) => {
|
|
202
|
+
return remap$(v, {
|
|
203
|
+
headers: "Headers",
|
|
204
|
+
result: "Result",
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
|
|
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 namespace V3GlobaldataAssetCertificateRawResponse$ {
|
|
213
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawResponse$inboundSchema` instead. */
|
|
214
|
+
export const inboundSchema =
|
|
215
|
+
V3GlobaldataAssetCertificateRawResponse$inboundSchema;
|
|
216
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawResponse$outboundSchema` instead. */
|
|
217
|
+
export const outboundSchema =
|
|
218
|
+
V3GlobaldataAssetCertificateRawResponse$outboundSchema;
|
|
219
|
+
/** @deprecated use `V3GlobaldataAssetCertificateRawResponse$Outbound` instead. */
|
|
220
|
+
export type Outbound = V3GlobaldataAssetCertificateRawResponse$Outbound;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function v3GlobaldataAssetCertificateRawResponseToJSON(
|
|
224
|
+
v3GlobaldataAssetCertificateRawResponse:
|
|
225
|
+
V3GlobaldataAssetCertificateRawResponse,
|
|
226
|
+
): string {
|
|
227
|
+
return JSON.stringify(
|
|
228
|
+
V3GlobaldataAssetCertificateRawResponse$outboundSchema.parse(
|
|
229
|
+
v3GlobaldataAssetCertificateRawResponse,
|
|
230
|
+
),
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function v3GlobaldataAssetCertificateRawResponseFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<
|
|
237
|
+
V3GlobaldataAssetCertificateRawResponse,
|
|
238
|
+
SDKValidationError
|
|
239
|
+
> {
|
|
240
|
+
return safeParse(
|
|
241
|
+
jsonString,
|
|
242
|
+
(x) =>
|
|
243
|
+
V3GlobaldataAssetCertificateRawResponse$inboundSchema.parse(
|
|
244
|
+
JSON.parse(x),
|
|
245
|
+
),
|
|
246
|
+
`Failed to parse 'V3GlobaldataAssetCertificateRawResponse' from JSON`,
|
|
247
|
+
);
|
|
248
|
+
}
|