@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,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.V3GlobaldataSearchConvertResponse$ = exports.V3GlobaldataSearchConvertResponse$outboundSchema = exports.V3GlobaldataSearchConvertResponse$inboundSchema = exports.V3GlobaldataSearchConvertRequest$ = exports.V3GlobaldataSearchConvertRequest$outboundSchema = exports.V3GlobaldataSearchConvertRequest$inboundSchema = exports.V3GlobaldataSearchConvertGlobals$ = exports.V3GlobaldataSearchConvertGlobals$outboundSchema = exports.V3GlobaldataSearchConvertGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.v3GlobaldataSearchConvertGlobalsToJSON = v3GlobaldataSearchConvertGlobalsToJSON;
|
|
41
|
+
exports.v3GlobaldataSearchConvertGlobalsFromJSON = v3GlobaldataSearchConvertGlobalsFromJSON;
|
|
42
|
+
exports.v3GlobaldataSearchConvertRequestToJSON = v3GlobaldataSearchConvertRequestToJSON;
|
|
43
|
+
exports.v3GlobaldataSearchConvertRequestFromJSON = v3GlobaldataSearchConvertRequestFromJSON;
|
|
44
|
+
exports.v3GlobaldataSearchConvertResponseToJSON = v3GlobaldataSearchConvertResponseToJSON;
|
|
45
|
+
exports.v3GlobaldataSearchConvertResponseFromJSON = v3GlobaldataSearchConvertResponseFromJSON;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
+
const components = __importStar(require("../components/index.js"));
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.V3GlobaldataSearchConvertGlobals$inboundSchema = z.object({
|
|
52
|
+
organization_id: z.string().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"organization_id": "organizationId",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.V3GlobaldataSearchConvertGlobals$outboundSchema = z.object({
|
|
60
|
+
organizationId: z.string().optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return (0, primitives_js_1.remap)(v, {
|
|
63
|
+
organizationId: "organization_id",
|
|
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
|
+
var V3GlobaldataSearchConvertGlobals$;
|
|
71
|
+
(function (V3GlobaldataSearchConvertGlobals$) {
|
|
72
|
+
/** @deprecated use `V3GlobaldataSearchConvertGlobals$inboundSchema` instead. */
|
|
73
|
+
V3GlobaldataSearchConvertGlobals$.inboundSchema = exports.V3GlobaldataSearchConvertGlobals$inboundSchema;
|
|
74
|
+
/** @deprecated use `V3GlobaldataSearchConvertGlobals$outboundSchema` instead. */
|
|
75
|
+
V3GlobaldataSearchConvertGlobals$.outboundSchema = exports.V3GlobaldataSearchConvertGlobals$outboundSchema;
|
|
76
|
+
})(V3GlobaldataSearchConvertGlobals$ || (exports.V3GlobaldataSearchConvertGlobals$ = V3GlobaldataSearchConvertGlobals$ = {}));
|
|
77
|
+
function v3GlobaldataSearchConvertGlobalsToJSON(v3GlobaldataSearchConvertGlobals) {
|
|
78
|
+
return JSON.stringify(exports.V3GlobaldataSearchConvertGlobals$outboundSchema.parse(v3GlobaldataSearchConvertGlobals));
|
|
79
|
+
}
|
|
80
|
+
function v3GlobaldataSearchConvertGlobalsFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3GlobaldataSearchConvertGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3GlobaldataSearchConvertGlobals' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.V3GlobaldataSearchConvertRequest$inboundSchema = z.object({
|
|
85
|
+
organization_id: z.string().optional(),
|
|
86
|
+
SearchConvertQueryInputBody: components.SearchConvertQueryInputBody$inboundSchema,
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return (0, primitives_js_1.remap)(v, {
|
|
89
|
+
"organization_id": "organizationId",
|
|
90
|
+
"SearchConvertQueryInputBody": "searchConvertQueryInputBody",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.V3GlobaldataSearchConvertRequest$outboundSchema = z.object({
|
|
95
|
+
organizationId: z.string().optional(),
|
|
96
|
+
searchConvertQueryInputBody: components.SearchConvertQueryInputBody$outboundSchema,
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return (0, primitives_js_1.remap)(v, {
|
|
99
|
+
organizationId: "organization_id",
|
|
100
|
+
searchConvertQueryInputBody: "SearchConvertQueryInputBody",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
+
*/
|
|
107
|
+
var V3GlobaldataSearchConvertRequest$;
|
|
108
|
+
(function (V3GlobaldataSearchConvertRequest$) {
|
|
109
|
+
/** @deprecated use `V3GlobaldataSearchConvertRequest$inboundSchema` instead. */
|
|
110
|
+
V3GlobaldataSearchConvertRequest$.inboundSchema = exports.V3GlobaldataSearchConvertRequest$inboundSchema;
|
|
111
|
+
/** @deprecated use `V3GlobaldataSearchConvertRequest$outboundSchema` instead. */
|
|
112
|
+
V3GlobaldataSearchConvertRequest$.outboundSchema = exports.V3GlobaldataSearchConvertRequest$outboundSchema;
|
|
113
|
+
})(V3GlobaldataSearchConvertRequest$ || (exports.V3GlobaldataSearchConvertRequest$ = V3GlobaldataSearchConvertRequest$ = {}));
|
|
114
|
+
function v3GlobaldataSearchConvertRequestToJSON(v3GlobaldataSearchConvertRequest) {
|
|
115
|
+
return JSON.stringify(exports.V3GlobaldataSearchConvertRequest$outboundSchema.parse(v3GlobaldataSearchConvertRequest));
|
|
116
|
+
}
|
|
117
|
+
function v3GlobaldataSearchConvertRequestFromJSON(jsonString) {
|
|
118
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3GlobaldataSearchConvertRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3GlobaldataSearchConvertRequest' from JSON`);
|
|
119
|
+
}
|
|
120
|
+
/** @internal */
|
|
121
|
+
exports.V3GlobaldataSearchConvertResponse$inboundSchema = z.object({
|
|
122
|
+
Headers: z.record(z.array(z.string())),
|
|
123
|
+
Result: components.ResponseEnvelopeListSearchConvertQueryResponse$inboundSchema,
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
126
|
+
"Headers": "headers",
|
|
127
|
+
"Result": "result",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
/** @internal */
|
|
131
|
+
exports.V3GlobaldataSearchConvertResponse$outboundSchema = z.object({
|
|
132
|
+
headers: z.record(z.array(z.string())),
|
|
133
|
+
result: components.ResponseEnvelopeListSearchConvertQueryResponse$outboundSchema,
|
|
134
|
+
}).transform((v) => {
|
|
135
|
+
return (0, primitives_js_1.remap)(v, {
|
|
136
|
+
headers: "Headers",
|
|
137
|
+
result: "Result",
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
var V3GlobaldataSearchConvertResponse$;
|
|
145
|
+
(function (V3GlobaldataSearchConvertResponse$) {
|
|
146
|
+
/** @deprecated use `V3GlobaldataSearchConvertResponse$inboundSchema` instead. */
|
|
147
|
+
V3GlobaldataSearchConvertResponse$.inboundSchema = exports.V3GlobaldataSearchConvertResponse$inboundSchema;
|
|
148
|
+
/** @deprecated use `V3GlobaldataSearchConvertResponse$outboundSchema` instead. */
|
|
149
|
+
V3GlobaldataSearchConvertResponse$.outboundSchema = exports.V3GlobaldataSearchConvertResponse$outboundSchema;
|
|
150
|
+
})(V3GlobaldataSearchConvertResponse$ || (exports.V3GlobaldataSearchConvertResponse$ = V3GlobaldataSearchConvertResponse$ = {}));
|
|
151
|
+
function v3GlobaldataSearchConvertResponseToJSON(v3GlobaldataSearchConvertResponse) {
|
|
152
|
+
return JSON.stringify(exports.V3GlobaldataSearchConvertResponse$outboundSchema.parse(v3GlobaldataSearchConvertResponse));
|
|
153
|
+
}
|
|
154
|
+
function v3GlobaldataSearchConvertResponseFromJSON(jsonString) {
|
|
155
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3GlobaldataSearchConvertResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3GlobaldataSearchConvertResponse' from JSON`);
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=v3globaldatasearchconvert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3globaldatasearchconvert.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldatasearchconvert.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,wFAQC;AAED,4FAQC;AAqDD,wFAQC;AAED,4FAQC;AAsDD,0FAQC;AAED,8FAQC;AArOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoBrD,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAg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gD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateGlobals = {
|
|
6
|
+
organizationId?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
organizationId?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* SHA-256 hash of the certificate
|
|
15
|
+
*/
|
|
16
|
+
certificateId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Only show ranges ending at or after this time (ISO 8601)
|
|
19
|
+
*/
|
|
20
|
+
startTime?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Only show ranges starting at or before this time (ISO 8601)
|
|
23
|
+
*/
|
|
24
|
+
endTime?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The port to filter by
|
|
27
|
+
*/
|
|
28
|
+
port?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The transport protocol to filter by
|
|
31
|
+
*/
|
|
32
|
+
protocol?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Pagination token from previous response to retrieve next page of results
|
|
35
|
+
*/
|
|
36
|
+
pageToken?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Number of results per page. Maximum 100, defaults to 100 if not specified
|
|
39
|
+
*/
|
|
40
|
+
pageSize?: number | undefined;
|
|
41
|
+
};
|
|
42
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateResponse = {
|
|
43
|
+
headers: {
|
|
44
|
+
[k: string]: Array<string>;
|
|
45
|
+
};
|
|
46
|
+
result: components.ResponseEnvelopeHostObservationResponse;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateGlobals, z.ZodTypeDef, unknown>;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateGlobals$Outbound = {
|
|
52
|
+
organization_id?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateGlobals$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateGlobals>;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace V3ThreathuntingGetHostObservationsWithCertificateGlobals$ {
|
|
61
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema` instead. */
|
|
62
|
+
const inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateGlobals, z.ZodTypeDef, unknown>;
|
|
63
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateGlobals$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateGlobals>;
|
|
65
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateGlobals$Outbound` instead. */
|
|
66
|
+
type Outbound = V3ThreathuntingGetHostObservationsWithCertificateGlobals$Outbound;
|
|
67
|
+
}
|
|
68
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateGlobalsToJSON(v3ThreathuntingGetHostObservationsWithCertificateGlobals: V3ThreathuntingGetHostObservationsWithCertificateGlobals): string;
|
|
69
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateGlobalsFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingGetHostObservationsWithCertificateGlobals, SDKValidationError>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateRequest, z.ZodTypeDef, unknown>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateRequest$Outbound = {
|
|
74
|
+
organization_id?: string | undefined;
|
|
75
|
+
certificate_id: string;
|
|
76
|
+
start_time?: string | undefined;
|
|
77
|
+
end_time?: string | undefined;
|
|
78
|
+
port?: number | undefined;
|
|
79
|
+
protocol?: string | undefined;
|
|
80
|
+
page_token?: string | undefined;
|
|
81
|
+
page_size?: number | undefined;
|
|
82
|
+
};
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateRequest$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateRequest>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace V3ThreathuntingGetHostObservationsWithCertificateRequest$ {
|
|
90
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema` instead. */
|
|
91
|
+
const inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateRequest, z.ZodTypeDef, unknown>;
|
|
92
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema` instead. */
|
|
93
|
+
const outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateRequest$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateRequest>;
|
|
94
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateRequest$Outbound` instead. */
|
|
95
|
+
type Outbound = V3ThreathuntingGetHostObservationsWithCertificateRequest$Outbound;
|
|
96
|
+
}
|
|
97
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateRequestToJSON(v3ThreathuntingGetHostObservationsWithCertificateRequest: V3ThreathuntingGetHostObservationsWithCertificateRequest): string;
|
|
98
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateRequestFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingGetHostObservationsWithCertificateRequest, SDKValidationError>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateResponse, z.ZodTypeDef, unknown>;
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type V3ThreathuntingGetHostObservationsWithCertificateResponse$Outbound = {
|
|
103
|
+
Headers: {
|
|
104
|
+
[k: string]: Array<string>;
|
|
105
|
+
};
|
|
106
|
+
Result: components.ResponseEnvelopeHostObservationResponse$Outbound;
|
|
107
|
+
};
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateResponse$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
+
*/
|
|
114
|
+
export declare namespace V3ThreathuntingGetHostObservationsWithCertificateResponse$ {
|
|
115
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema` instead. */
|
|
116
|
+
const inboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateResponse, z.ZodTypeDef, unknown>;
|
|
117
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema` instead. */
|
|
118
|
+
const outboundSchema: z.ZodType<V3ThreathuntingGetHostObservationsWithCertificateResponse$Outbound, z.ZodTypeDef, V3ThreathuntingGetHostObservationsWithCertificateResponse>;
|
|
119
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateResponse$Outbound` instead. */
|
|
120
|
+
type Outbound = V3ThreathuntingGetHostObservationsWithCertificateResponse$Outbound;
|
|
121
|
+
}
|
|
122
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateResponseToJSON(v3ThreathuntingGetHostObservationsWithCertificateResponse: V3ThreathuntingGetHostObservationsWithCertificateResponse): string;
|
|
123
|
+
export declare function v3ThreathuntingGetHostObservationsWithCertificateResponseFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingGetHostObservationsWithCertificateResponse, SDKValidationError>;
|
|
124
|
+
//# sourceMappingURL=v3threathuntinggethostobservationswithcertificate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntinggethostobservationswithcertificate.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3threathuntinggethostobservationswithcertificate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;A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
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$ = exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$ = exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$ = exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateGlobalsToJSON = v3ThreathuntingGetHostObservationsWithCertificateGlobalsToJSON;
|
|
41
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateGlobalsFromJSON = v3ThreathuntingGetHostObservationsWithCertificateGlobalsFromJSON;
|
|
42
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateRequestToJSON = v3ThreathuntingGetHostObservationsWithCertificateRequestToJSON;
|
|
43
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateRequestFromJSON = v3ThreathuntingGetHostObservationsWithCertificateRequestFromJSON;
|
|
44
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateResponseToJSON = v3ThreathuntingGetHostObservationsWithCertificateResponseToJSON;
|
|
45
|
+
exports.v3ThreathuntingGetHostObservationsWithCertificateResponseFromJSON = v3ThreathuntingGetHostObservationsWithCertificateResponseFromJSON;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
+
const components = __importStar(require("../components/index.js"));
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema = z.object({
|
|
52
|
+
organization_id: z.string().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"organization_id": "organizationId",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema = z.object({
|
|
60
|
+
organizationId: z.string().optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return (0, primitives_js_1.remap)(v, {
|
|
63
|
+
organizationId: "organization_id",
|
|
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
|
+
var V3ThreathuntingGetHostObservationsWithCertificateGlobals$;
|
|
71
|
+
(function (V3ThreathuntingGetHostObservationsWithCertificateGlobals$) {
|
|
72
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema` instead. */
|
|
73
|
+
V3ThreathuntingGetHostObservationsWithCertificateGlobals$.inboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema;
|
|
74
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema` instead. */
|
|
75
|
+
V3ThreathuntingGetHostObservationsWithCertificateGlobals$.outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema;
|
|
76
|
+
})(V3ThreathuntingGetHostObservationsWithCertificateGlobals$ || (exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$ = V3ThreathuntingGetHostObservationsWithCertificateGlobals$ = {}));
|
|
77
|
+
function v3ThreathuntingGetHostObservationsWithCertificateGlobalsToJSON(v3ThreathuntingGetHostObservationsWithCertificateGlobals) {
|
|
78
|
+
return JSON.stringify(exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$outboundSchema
|
|
79
|
+
.parse(v3ThreathuntingGetHostObservationsWithCertificateGlobals));
|
|
80
|
+
}
|
|
81
|
+
function v3ThreathuntingGetHostObservationsWithCertificateGlobalsFromJSON(jsonString) {
|
|
82
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingGetHostObservationsWithCertificateGlobals$inboundSchema
|
|
83
|
+
.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingGetHostObservationsWithCertificateGlobals' from JSON`);
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema = z.object({
|
|
87
|
+
organization_id: z.string().optional(),
|
|
88
|
+
certificate_id: z.string(),
|
|
89
|
+
start_time: z.string().optional(),
|
|
90
|
+
end_time: z.string().optional(),
|
|
91
|
+
port: z.number().int().optional(),
|
|
92
|
+
protocol: z.string().optional(),
|
|
93
|
+
page_token: z.string().optional(),
|
|
94
|
+
page_size: z.number().int().optional(),
|
|
95
|
+
}).transform((v) => {
|
|
96
|
+
return (0, primitives_js_1.remap)(v, {
|
|
97
|
+
"organization_id": "organizationId",
|
|
98
|
+
"certificate_id": "certificateId",
|
|
99
|
+
"start_time": "startTime",
|
|
100
|
+
"end_time": "endTime",
|
|
101
|
+
"page_token": "pageToken",
|
|
102
|
+
"page_size": "pageSize",
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
/** @internal */
|
|
106
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema = z.object({
|
|
107
|
+
organizationId: z.string().optional(),
|
|
108
|
+
certificateId: z.string(),
|
|
109
|
+
startTime: z.string().optional(),
|
|
110
|
+
endTime: z.string().optional(),
|
|
111
|
+
port: z.number().int().optional(),
|
|
112
|
+
protocol: z.string().optional(),
|
|
113
|
+
pageToken: z.string().optional(),
|
|
114
|
+
pageSize: z.number().int().optional(),
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return (0, primitives_js_1.remap)(v, {
|
|
117
|
+
organizationId: "organization_id",
|
|
118
|
+
certificateId: "certificate_id",
|
|
119
|
+
startTime: "start_time",
|
|
120
|
+
endTime: "end_time",
|
|
121
|
+
pageToken: "page_token",
|
|
122
|
+
pageSize: "page_size",
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
var V3ThreathuntingGetHostObservationsWithCertificateRequest$;
|
|
130
|
+
(function (V3ThreathuntingGetHostObservationsWithCertificateRequest$) {
|
|
131
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema` instead. */
|
|
132
|
+
V3ThreathuntingGetHostObservationsWithCertificateRequest$.inboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema;
|
|
133
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema` instead. */
|
|
134
|
+
V3ThreathuntingGetHostObservationsWithCertificateRequest$.outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema;
|
|
135
|
+
})(V3ThreathuntingGetHostObservationsWithCertificateRequest$ || (exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$ = V3ThreathuntingGetHostObservationsWithCertificateRequest$ = {}));
|
|
136
|
+
function v3ThreathuntingGetHostObservationsWithCertificateRequestToJSON(v3ThreathuntingGetHostObservationsWithCertificateRequest) {
|
|
137
|
+
return JSON.stringify(exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$outboundSchema
|
|
138
|
+
.parse(v3ThreathuntingGetHostObservationsWithCertificateRequest));
|
|
139
|
+
}
|
|
140
|
+
function v3ThreathuntingGetHostObservationsWithCertificateRequestFromJSON(jsonString) {
|
|
141
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingGetHostObservationsWithCertificateRequest$inboundSchema
|
|
142
|
+
.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingGetHostObservationsWithCertificateRequest' from JSON`);
|
|
143
|
+
}
|
|
144
|
+
/** @internal */
|
|
145
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema = z.object({
|
|
146
|
+
Headers: z.record(z.array(z.string())),
|
|
147
|
+
Result: components.ResponseEnvelopeHostObservationResponse$inboundSchema,
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return (0, primitives_js_1.remap)(v, {
|
|
150
|
+
"Headers": "headers",
|
|
151
|
+
"Result": "result",
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
/** @internal */
|
|
155
|
+
exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema = z.object({
|
|
156
|
+
headers: z.record(z.array(z.string())),
|
|
157
|
+
result: components.ResponseEnvelopeHostObservationResponse$outboundSchema,
|
|
158
|
+
}).transform((v) => {
|
|
159
|
+
return (0, primitives_js_1.remap)(v, {
|
|
160
|
+
headers: "Headers",
|
|
161
|
+
result: "Result",
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* @internal
|
|
166
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
167
|
+
*/
|
|
168
|
+
var V3ThreathuntingGetHostObservationsWithCertificateResponse$;
|
|
169
|
+
(function (V3ThreathuntingGetHostObservationsWithCertificateResponse$) {
|
|
170
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema` instead. */
|
|
171
|
+
V3ThreathuntingGetHostObservationsWithCertificateResponse$.inboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema;
|
|
172
|
+
/** @deprecated use `V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema` instead. */
|
|
173
|
+
V3ThreathuntingGetHostObservationsWithCertificateResponse$.outboundSchema = exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema;
|
|
174
|
+
})(V3ThreathuntingGetHostObservationsWithCertificateResponse$ || (exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$ = V3ThreathuntingGetHostObservationsWithCertificateResponse$ = {}));
|
|
175
|
+
function v3ThreathuntingGetHostObservationsWithCertificateResponseToJSON(v3ThreathuntingGetHostObservationsWithCertificateResponse) {
|
|
176
|
+
return JSON.stringify(exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$outboundSchema
|
|
177
|
+
.parse(v3ThreathuntingGetHostObservationsWithCertificateResponse));
|
|
178
|
+
}
|
|
179
|
+
function v3ThreathuntingGetHostObservationsWithCertificateResponseFromJSON(jsonString) {
|
|
180
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingGetHostObservationsWithCertificateResponse$inboundSchema
|
|
181
|
+
.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingGetHostObservationsWithCertificateResponse' from JSON`);
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=v3threathuntinggethostobservationswithcertificate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntinggethostobservationswithcertificate.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntinggethostobservationswithcertificate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,wIAQC;AAED,4IAaC;AAmFD,wIAQC;AAED,4IAaC;AAyDD,0IAQC;AAED,8IAaC;AAtTD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA+CrD,gBAAgB;AACH,QAAA,sEAAsE,GAK7E,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,uEAAuE,GAK9E,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,Q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,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,0DAA0D,CAU1E;AAVD,WAAiB,0DAA0D;IACzE,yGAAyG;IAC5F,wEAAa,GACxB,+EAAuE,CAAC;IAC1E,0GAA0G;IAC7F,yEAAc,GACzB,gFAAwE,CAAC;AAI7E,CAAC,EAVgB,0DAA0D,0EAA1D,0DAA0D,QAU1E;AAED,SAAgB,+DAA+D,CAC7E,yDAC2D;IAE3D,OAAO,IAAI,CAAC,SAAS,CACnB,gFAAwE;SACrE,KAAK,CAAC,yDAAyD,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,iEAAiE,CAC/E,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,+EAAuE;SACpE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,uFAAuF,CACxF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@censys/platform-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@eslint/js": "^9.19.0",
|
|
21
21
|
"eslint": "^9.19.0",
|
|
22
22
|
"globals": "^15.14.0",
|
|
23
|
-
"typescript": "
|
|
24
|
-
"typescript-eslint": "^8.
|
|
23
|
+
"typescript": "~5.8.3",
|
|
24
|
+
"typescript-eslint": "^8.26.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"zod": "^3.20.0"
|
package/sdk/globaldata.d.ts
CHANGED
|
@@ -7,7 +7,14 @@ export declare class GlobalData extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* Retrieve information about multiple certificates. A certificate ID is its SHA-256 fingerprint in the Censys dataset.
|
|
9
9
|
*/
|
|
10
|
-
getCertificates(request: operations.
|
|
10
|
+
getCertificates(request: operations.V3GlobaldataAssetCertificateListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateListPostResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get multiple certificates in PEM format
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieve the raw PEM-encoded format for multiple certificates. A certificate ID is its SHA-256 fingerprint in the Censys dataset.
|
|
16
|
+
*/
|
|
17
|
+
getCertificatesRaw(request: operations.V3GlobaldataAssetCertificateListRawPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateListRawPostResponse>;
|
|
11
18
|
/**
|
|
12
19
|
* Get a certificate
|
|
13
20
|
*
|
|
@@ -16,19 +23,19 @@ export declare class GlobalData extends ClientSDK {
|
|
|
16
23
|
*/
|
|
17
24
|
getCertificate(request: operations.V3GlobaldataAssetCertificateRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateResponse>;
|
|
18
25
|
/**
|
|
19
|
-
* Get
|
|
26
|
+
* Get a certificate in PEM format
|
|
20
27
|
*
|
|
21
28
|
* @remarks
|
|
22
|
-
* Retrieve
|
|
29
|
+
* Retrieve the raw PEM-encoded format of a certificate. A certificate ID is its SHA-256 fingerprint in the Censys dataset.
|
|
23
30
|
*/
|
|
24
|
-
|
|
31
|
+
getCertificateRaw(request: operations.V3GlobaldataAssetCertificateRawRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetCertificateRawResponse>;
|
|
25
32
|
/**
|
|
26
33
|
* Get multiple hosts
|
|
27
34
|
*
|
|
28
35
|
* @remarks
|
|
29
36
|
* Retrieve information about multiple hosts. A host ID is its IP address.
|
|
30
37
|
*/
|
|
31
|
-
getHosts(request: operations.
|
|
38
|
+
getHosts(request: operations.V3GlobaldataAssetHostListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostListPostResponse>;
|
|
32
39
|
/**
|
|
33
40
|
* Get a host
|
|
34
41
|
*
|
|
@@ -40,7 +47,7 @@ export declare class GlobalData extends ClientSDK {
|
|
|
40
47
|
* Get host event history
|
|
41
48
|
*
|
|
42
49
|
* @remarks
|
|
43
|
-
* Retrieve event history for a host. A host ID is its IP address.
|
|
50
|
+
* Retrieve event history for a host. A host ID is its IP address.<br><br>Note that when a service protocol changes after a new scan (for example, from `UNKNOWN` to `NETBIOS`), this information will only be reflected in the `scan` object. It will not be shown in the `service_scanned diff` object.
|
|
44
51
|
*/
|
|
45
52
|
getHostTimeline(request: operations.V3GlobaldataAssetHostTimelineRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetHostTimelineResponse>;
|
|
46
53
|
/**
|
|
@@ -49,7 +56,7 @@ export declare class GlobalData extends ClientSDK {
|
|
|
49
56
|
* @remarks
|
|
50
57
|
* Retrieve information about multiple web properties. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80`.
|
|
51
58
|
*/
|
|
52
|
-
getWebProperties(request: operations.
|
|
59
|
+
getWebProperties(request: operations.V3GlobaldataAssetWebpropertyListPostRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetWebpropertyListPostResponse>;
|
|
53
60
|
/**
|
|
54
61
|
* Get a web property
|
|
55
62
|
*
|
|
@@ -58,18 +65,17 @@ export declare class GlobalData extends ClientSDK {
|
|
|
58
65
|
*/
|
|
59
66
|
getWebProperty(request: operations.V3GlobaldataAssetWebpropertyRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetWebpropertyResponse>;
|
|
60
67
|
/**
|
|
61
|
-
*
|
|
68
|
+
* Live Rescan: Initiate a new rescan
|
|
62
69
|
*
|
|
63
70
|
* @remarks
|
|
64
|
-
*
|
|
71
|
+
* Initiate a rescan for a known host service at a specific IP and port (`ip:port`) or hostname and port (`hostname:port`). This is equivalent to the [Live Rescan](https://docs.censys.com/docs/platform-live-rescan#/) feature available in the UI, but you can also target web properties in addition to hosts.<br><br>The scan may take several minutes to complete. The response will contain a scan ID that you can use to [monitor the scan's status](https://docs.censys.com/reference/v3-globaldata-scans-get#/). After the scan completes, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all Enterprise customers. It costs 10 credits to execute.
|
|
65
72
|
*/
|
|
66
73
|
createTrackedScan(request: operations.V3GlobaldataScansRescanRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansRescanResponse>;
|
|
67
74
|
/**
|
|
68
|
-
* Get
|
|
75
|
+
* Get scan status
|
|
69
76
|
*
|
|
70
77
|
* @remarks
|
|
71
|
-
* Retrieve the current status
|
|
72
|
-
* This endpoint works for both discovery scans and rescans.
|
|
78
|
+
* Retrieve the current status of a scan by its ID. This endpoint works for both [Live Discovery scans](https://docs.censys.com/reference/v3-threathunting-scans-discovery#/) and [Live Rescans](https://docs.censys.com/reference/v3-globaldata-scans-rescan#/).<br><br>If the scan was successful, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all Enterprise customers. This endpoint does not cost any credits to execute.
|
|
73
79
|
*/
|
|
74
80
|
getTrackedScan(request: operations.V3GlobaldataScansGetRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansGetResponse>;
|
|
75
81
|
/**
|
|
@@ -80,19 +86,18 @@ export declare class GlobalData extends ClientSDK {
|
|
|
80
86
|
*/
|
|
81
87
|
aggregate(request: operations.V3GlobaldataSearchAggregateRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchAggregateResponse>;
|
|
82
88
|
/**
|
|
83
|
-
*
|
|
89
|
+
* Convert Legacy Search queries to Platform queries
|
|
84
90
|
*
|
|
85
91
|
* @remarks
|
|
86
|
-
*
|
|
92
|
+
* Convert Censys Search Language queries used in Legacy Search into Censys Query Language (CenQL) queries for use in the Platform.<br><br>Reference the [documentation on CenQL](https://docs.censys.com/docs/censys-query-language) for more information about query syntax.
|
|
87
93
|
*/
|
|
88
|
-
|
|
94
|
+
convertLegacySearchQueries(request: operations.V3GlobaldataSearchConvertRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchConvertResponse>;
|
|
89
95
|
/**
|
|
90
|
-
*
|
|
96
|
+
* Run a search query
|
|
91
97
|
*
|
|
92
98
|
* @remarks
|
|
93
|
-
*
|
|
94
|
-
* This endpoint works for both discovery scans and rescans.
|
|
99
|
+
* Run a search query across Censys data. Reference the [documentation on Censys Query Language](https://docs.censys.com/docs/censys-query-language#/) for information about query syntax.
|
|
95
100
|
*/
|
|
96
|
-
|
|
101
|
+
search(request: operations.V3GlobaldataSearchQueryRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchQueryResponse>;
|
|
97
102
|
}
|
|
98
103
|
//# sourceMappingURL=globaldata.d.ts.map
|