@censys/platform-sdk 0.4.3 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +0 -1
- package/README.md +17 -2
- package/docs/sdks/collections/README.md +12 -6
- package/docs/sdks/globaldata/README.md +260 -6
- package/docs/sdks/threathunting/README.md +335 -0
- package/examples/globalDataSearch.example.ts +0 -1
- package/examples/package-lock.json +5 -6
- package/funcs/globalDataCreateTrackedScan.d.ts +18 -0
- package/funcs/globalDataCreateTrackedScan.d.ts.map +1 -0
- package/funcs/globalDataCreateTrackedScan.js +132 -0
- package/funcs/globalDataCreateTrackedScan.js.map +1 -0
- package/funcs/globalDataGetTrackedScan.d.ts +19 -0
- package/funcs/globalDataGetTrackedScan.d.ts.map +1 -0
- package/funcs/globalDataGetTrackedScan.js +137 -0
- package/funcs/globalDataGetTrackedScan.js.map +1 -0
- package/funcs/globalDataGetTrackedScanThreatHunting.d.ts +19 -0
- package/funcs/globalDataGetTrackedScanThreatHunting.d.ts.map +1 -0
- package/funcs/globalDataGetTrackedScanThreatHunting.js +137 -0
- package/funcs/globalDataGetTrackedScanThreatHunting.js.map +1 -0
- package/funcs/threatHuntingCreateTrackedScan.d.ts +18 -0
- package/funcs/threatHuntingCreateTrackedScan.d.ts.map +1 -0
- package/funcs/threatHuntingCreateTrackedScan.js +129 -0
- package/funcs/threatHuntingCreateTrackedScan.js.map +1 -0
- 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/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/elasticsearch.d.ts +3 -0
- package/models/components/elasticsearch.d.ts.map +1 -1
- package/models/components/elasticsearch.js +5 -0
- package/models/components/elasticsearch.js.map +1 -1
- package/models/components/elasticsearcherrormessage.d.ts +33 -0
- package/models/components/elasticsearcherrormessage.d.ts.map +1 -0
- package/models/components/elasticsearcherrormessage.js +73 -0
- package/models/components/elasticsearcherrormessage.js.map +1 -0
- package/models/components/hostobservationrange.d.ts +39 -0
- package/models/components/hostobservationrange.d.ts.map +1 -0
- package/models/components/hostobservationrange.js +92 -0
- package/models/components/hostobservationrange.js.map +1 -0
- package/models/components/hostobservationresponse.d.ts +34 -0
- package/models/components/hostobservationresponse.d.ts.map +1 -0
- package/models/components/hostobservationresponse.js +85 -0
- package/models/components/hostobservationresponse.js.map +1 -0
- package/models/components/httpfavicon.d.ts +5 -0
- package/models/components/httpfavicon.d.ts.map +1 -1
- package/models/components/httpfavicon.js +4 -0
- package/models/components/httpfavicon.js.map +1 -1
- package/models/components/index.d.ts +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/responseenvelopehostobservationresponse.d.ts +30 -0
- package/models/components/responseenvelopehostobservationresponse.d.ts.map +1 -0
- package/models/components/responseenvelopehostobservationresponse.js +70 -0
- package/models/components/responseenvelopehostobservationresponse.js.map +1 -0
- package/models/components/responseenvelopetrackedscan.d.ts +30 -0
- package/models/components/responseenvelopetrackedscan.d.ts.map +1 -0
- package/models/components/responseenvelopetrackedscan.js +70 -0
- package/models/components/responseenvelopetrackedscan.js.map +1 -0
- package/models/components/scansdiscoveryinputbody.d.ts +172 -0
- package/models/components/scansdiscoveryinputbody.d.ts.map +1 -0
- package/models/components/scansdiscoveryinputbody.js +233 -0
- package/models/components/scansdiscoveryinputbody.js.map +1 -0
- package/models/components/scansrescaninputbody.d.ts +214 -0
- package/models/components/scansrescaninputbody.d.ts.map +1 -0
- package/models/components/scansrescaninputbody.js +268 -0
- package/models/components/scansrescaninputbody.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 +11 -0
- package/models/components/screenshot.js.map +1 -1
- package/models/components/searchaggregateinputbody.d.ts +5 -0
- package/models/components/searchaggregateinputbody.d.ts.map +1 -1
- package/models/components/searchaggregateinputbody.js +4 -0
- package/models/components/searchaggregateinputbody.js.map +1 -1
- package/models/components/searchvaluecountsinputbody.d.ts +5 -0
- package/models/components/searchvaluecountsinputbody.d.ts.map +1 -1
- package/models/components/searchvaluecountsinputbody.js +2 -0
- package/models/components/searchvaluecountsinputbody.js.map +1 -1
- package/models/components/serviceid.d.ts +70 -0
- package/models/components/serviceid.d.ts.map +1 -0
- package/models/components/serviceid.js +106 -0
- package/models/components/serviceid.js.map +1 -0
- package/models/components/trackedscan.d.ts +39 -0
- package/models/components/trackedscan.d.ts.map +1 -0
- package/models/components/trackedscan.js +90 -0
- package/models/components/trackedscan.js.map +1 -0
- package/models/components/trackedscanscantarget.d.ts +39 -0
- package/models/components/trackedscanscantarget.d.ts.map +1 -0
- package/models/components/trackedscanscantarget.js +94 -0
- package/models/components/trackedscanscantarget.js.map +1 -0
- package/models/components/trackedscanscantargethostnameport.d.ts +31 -0
- package/models/components/trackedscanscantargethostnameport.d.ts.map +1 -0
- package/models/components/trackedscanscantargethostnameport.js +71 -0
- package/models/components/trackedscanscantargethostnameport.js.map +1 -0
- package/models/components/trackedscanscantargethostport.d.ts +31 -0
- package/models/components/trackedscanscantargethostport.d.ts.map +1 -0
- package/models/components/trackedscanscantargethostport.js +71 -0
- package/models/components/trackedscanscantargethostport.js.map +1 -0
- package/models/components/trackedscantask.d.ts +74 -0
- package/models/components/trackedscantask.d.ts.map +1 -0
- package/models/components/trackedscantask.js +106 -0
- package/models/components/trackedscantask.js.map +1 -0
- package/models/components/weborigin.d.ts +31 -0
- package/models/components/weborigin.d.ts.map +1 -0
- package/models/components/weborigin.js +71 -0
- package/models/components/weborigin.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3globaldatascansget.d.ts +94 -0
- package/models/operations/v3globaldatascansget.d.ts.map +1 -0
- package/models/operations/v3globaldatascansget.js +157 -0
- package/models/operations/v3globaldatascansget.js.map +1 -0
- package/models/operations/v3globaldatascansrescan.d.ts +91 -0
- package/models/operations/v3globaldatascansrescan.d.ts.map +1 -0
- package/models/operations/v3globaldatascansrescan.js +157 -0
- package/models/operations/v3globaldatascansrescan.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/models/operations/v3threathuntingscansdiscovery.d.ts +91 -0
- package/models/operations/v3threathuntingscansdiscovery.d.ts.map +1 -0
- package/models/operations/v3threathuntingscansdiscovery.js +157 -0
- package/models/operations/v3threathuntingscansdiscovery.js.map +1 -0
- package/models/operations/v3threathuntingscansget.d.ts +94 -0
- package/models/operations/v3threathuntingscansget.d.ts.map +1 -0
- package/models/operations/v3threathuntingscansget.js +157 -0
- package/models/operations/v3threathuntingscansget.js.map +1 -0
- package/package.json +4 -5
- package/sdk/globaldata.d.ts +23 -0
- package/sdk/globaldata.d.ts.map +1 -1
- package/sdk/globaldata.js +32 -0
- package/sdk/globaldata.js.map +1 -1
- package/sdk/threathunting.d.ts +30 -0
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +42 -0
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/globalDataCreateTrackedScan.ts +185 -0
- package/src/funcs/globalDataGetTrackedScan.ts +191 -0
- package/src/funcs/globalDataGetTrackedScanThreatHunting.ts +191 -0
- package/src/funcs/threatHuntingCreateTrackedScan.ts +188 -0
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +201 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/elasticsearch.ts +12 -0
- package/src/models/components/elasticsearcherrormessage.ts +74 -0
- package/src/models/components/hostobservationrange.ts +99 -0
- package/src/models/components/hostobservationresponse.ts +91 -0
- package/src/models/components/httpfavicon.ts +9 -0
- package/src/models/components/index.ts +14 -0
- package/src/models/components/responseenvelopehostobservationresponse.ts +83 -0
- package/src/models/components/responseenvelopetrackedscan.ts +74 -0
- package/src/models/components/scansdiscoveryinputbody.ts +385 -0
- package/src/models/components/scansrescaninputbody.ts +428 -0
- package/src/models/components/screenshot.ts +13 -0
- package/src/models/components/searchaggregateinputbody.ts +9 -0
- package/src/models/components/searchvaluecountsinputbody.ts +7 -0
- package/src/models/components/serviceid.ts +116 -0
- package/src/models/components/trackedscan.ts +101 -0
- package/src/models/components/trackedscanscantarget.ts +117 -0
- package/src/models/components/trackedscanscantargethostnameport.ts +73 -0
- package/src/models/components/trackedscanscantargethostport.ts +72 -0
- package/src/models/components/trackedscantask.ts +114 -0
- package/src/models/components/weborigin.ts +66 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/v3globaldatascansget.ts +232 -0
- package/src/models/operations/v3globaldatascansrescan.ts +229 -0
- package/src/models/operations/v3threathuntinggethostobservationswithcertificate.ts +315 -0
- package/src/models/operations/v3threathuntingscansdiscovery.ts +238 -0
- package/src/models/operations/v3threathuntingscansget.ts +232 -0
- package/src/sdk/globaldata.ts +56 -0
- package/src/sdk/threathunting.ts +77 -0
|
@@ -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.V3ThreathuntingScansDiscoveryResponse$ = exports.V3ThreathuntingScansDiscoveryResponse$outboundSchema = exports.V3ThreathuntingScansDiscoveryResponse$inboundSchema = exports.V3ThreathuntingScansDiscoveryRequest$ = exports.V3ThreathuntingScansDiscoveryRequest$outboundSchema = exports.V3ThreathuntingScansDiscoveryRequest$inboundSchema = exports.V3ThreathuntingScansDiscoveryGlobals$ = exports.V3ThreathuntingScansDiscoveryGlobals$outboundSchema = exports.V3ThreathuntingScansDiscoveryGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.v3ThreathuntingScansDiscoveryGlobalsToJSON = v3ThreathuntingScansDiscoveryGlobalsToJSON;
|
|
41
|
+
exports.v3ThreathuntingScansDiscoveryGlobalsFromJSON = v3ThreathuntingScansDiscoveryGlobalsFromJSON;
|
|
42
|
+
exports.v3ThreathuntingScansDiscoveryRequestToJSON = v3ThreathuntingScansDiscoveryRequestToJSON;
|
|
43
|
+
exports.v3ThreathuntingScansDiscoveryRequestFromJSON = v3ThreathuntingScansDiscoveryRequestFromJSON;
|
|
44
|
+
exports.v3ThreathuntingScansDiscoveryResponseToJSON = v3ThreathuntingScansDiscoveryResponseToJSON;
|
|
45
|
+
exports.v3ThreathuntingScansDiscoveryResponseFromJSON = v3ThreathuntingScansDiscoveryResponseFromJSON;
|
|
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.V3ThreathuntingScansDiscoveryGlobals$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.V3ThreathuntingScansDiscoveryGlobals$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 V3ThreathuntingScansDiscoveryGlobals$;
|
|
71
|
+
(function (V3ThreathuntingScansDiscoveryGlobals$) {
|
|
72
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryGlobals$inboundSchema` instead. */
|
|
73
|
+
V3ThreathuntingScansDiscoveryGlobals$.inboundSchema = exports.V3ThreathuntingScansDiscoveryGlobals$inboundSchema;
|
|
74
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryGlobals$outboundSchema` instead. */
|
|
75
|
+
V3ThreathuntingScansDiscoveryGlobals$.outboundSchema = exports.V3ThreathuntingScansDiscoveryGlobals$outboundSchema;
|
|
76
|
+
})(V3ThreathuntingScansDiscoveryGlobals$ || (exports.V3ThreathuntingScansDiscoveryGlobals$ = V3ThreathuntingScansDiscoveryGlobals$ = {}));
|
|
77
|
+
function v3ThreathuntingScansDiscoveryGlobalsToJSON(v3ThreathuntingScansDiscoveryGlobals) {
|
|
78
|
+
return JSON.stringify(exports.V3ThreathuntingScansDiscoveryGlobals$outboundSchema.parse(v3ThreathuntingScansDiscoveryGlobals));
|
|
79
|
+
}
|
|
80
|
+
function v3ThreathuntingScansDiscoveryGlobalsFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansDiscoveryGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansDiscoveryGlobals' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.V3ThreathuntingScansDiscoveryRequest$inboundSchema = z.object({
|
|
85
|
+
organization_id: z.string().optional(),
|
|
86
|
+
ScansDiscoveryInputBody: components.ScansDiscoveryInputBody$inboundSchema,
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return (0, primitives_js_1.remap)(v, {
|
|
89
|
+
"organization_id": "organizationId",
|
|
90
|
+
"ScansDiscoveryInputBody": "scansDiscoveryInputBody",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.V3ThreathuntingScansDiscoveryRequest$outboundSchema = z.object({
|
|
95
|
+
organizationId: z.string().optional(),
|
|
96
|
+
scansDiscoveryInputBody: components.ScansDiscoveryInputBody$outboundSchema,
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return (0, primitives_js_1.remap)(v, {
|
|
99
|
+
organizationId: "organization_id",
|
|
100
|
+
scansDiscoveryInputBody: "ScansDiscoveryInputBody",
|
|
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 V3ThreathuntingScansDiscoveryRequest$;
|
|
108
|
+
(function (V3ThreathuntingScansDiscoveryRequest$) {
|
|
109
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryRequest$inboundSchema` instead. */
|
|
110
|
+
V3ThreathuntingScansDiscoveryRequest$.inboundSchema = exports.V3ThreathuntingScansDiscoveryRequest$inboundSchema;
|
|
111
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryRequest$outboundSchema` instead. */
|
|
112
|
+
V3ThreathuntingScansDiscoveryRequest$.outboundSchema = exports.V3ThreathuntingScansDiscoveryRequest$outboundSchema;
|
|
113
|
+
})(V3ThreathuntingScansDiscoveryRequest$ || (exports.V3ThreathuntingScansDiscoveryRequest$ = V3ThreathuntingScansDiscoveryRequest$ = {}));
|
|
114
|
+
function v3ThreathuntingScansDiscoveryRequestToJSON(v3ThreathuntingScansDiscoveryRequest) {
|
|
115
|
+
return JSON.stringify(exports.V3ThreathuntingScansDiscoveryRequest$outboundSchema.parse(v3ThreathuntingScansDiscoveryRequest));
|
|
116
|
+
}
|
|
117
|
+
function v3ThreathuntingScansDiscoveryRequestFromJSON(jsonString) {
|
|
118
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansDiscoveryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansDiscoveryRequest' from JSON`);
|
|
119
|
+
}
|
|
120
|
+
/** @internal */
|
|
121
|
+
exports.V3ThreathuntingScansDiscoveryResponse$inboundSchema = z.object({
|
|
122
|
+
Headers: z.record(z.array(z.string())),
|
|
123
|
+
Result: components.ResponseEnvelopeTrackedScan$inboundSchema,
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
126
|
+
"Headers": "headers",
|
|
127
|
+
"Result": "result",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
/** @internal */
|
|
131
|
+
exports.V3ThreathuntingScansDiscoveryResponse$outboundSchema = z.object({
|
|
132
|
+
headers: z.record(z.array(z.string())),
|
|
133
|
+
result: components.ResponseEnvelopeTrackedScan$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 V3ThreathuntingScansDiscoveryResponse$;
|
|
145
|
+
(function (V3ThreathuntingScansDiscoveryResponse$) {
|
|
146
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryResponse$inboundSchema` instead. */
|
|
147
|
+
V3ThreathuntingScansDiscoveryResponse$.inboundSchema = exports.V3ThreathuntingScansDiscoveryResponse$inboundSchema;
|
|
148
|
+
/** @deprecated use `V3ThreathuntingScansDiscoveryResponse$outboundSchema` instead. */
|
|
149
|
+
V3ThreathuntingScansDiscoveryResponse$.outboundSchema = exports.V3ThreathuntingScansDiscoveryResponse$outboundSchema;
|
|
150
|
+
})(V3ThreathuntingScansDiscoveryResponse$ || (exports.V3ThreathuntingScansDiscoveryResponse$ = V3ThreathuntingScansDiscoveryResponse$ = {}));
|
|
151
|
+
function v3ThreathuntingScansDiscoveryResponseToJSON(v3ThreathuntingScansDiscoveryResponse) {
|
|
152
|
+
return JSON.stringify(exports.V3ThreathuntingScansDiscoveryResponse$outboundSchema.parse(v3ThreathuntingScansDiscoveryResponse));
|
|
153
|
+
}
|
|
154
|
+
function v3ThreathuntingScansDiscoveryResponseFromJSON(jsonString) {
|
|
155
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansDiscoveryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansDiscoveryResponse' from JSON`);
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=v3threathuntingscansdiscovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntingscansdiscovery.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingscansdiscovery.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,gGAQC;AAED,oGASC;AAqDD,gGAQC;AAED,oGASC;AAqDD,kGAQC;AAED,sGASC;AAzOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoBrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,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,mDAAmD,GAI5D,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,C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AC9D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sCAAsC,CAStD;AATD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,2DAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,4DAAoD,CAAC;AAGzD,CAAC,EATgB,sCAAsC,sDAAtC,sCAAsC,QAStD;AAED,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 V3ThreathuntingScansGetGlobals = {
|
|
6
|
+
organizationId?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type V3ThreathuntingScansGetRequest = {
|
|
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
|
+
* The unique identifier of the tracked scan
|
|
15
|
+
*/
|
|
16
|
+
scanId: string;
|
|
17
|
+
};
|
|
18
|
+
export type V3ThreathuntingScansGetResponse = {
|
|
19
|
+
headers: {
|
|
20
|
+
[k: string]: Array<string>;
|
|
21
|
+
};
|
|
22
|
+
result: components.ResponseEnvelopeTrackedScan;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const V3ThreathuntingScansGetGlobals$inboundSchema: z.ZodType<V3ThreathuntingScansGetGlobals, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type V3ThreathuntingScansGetGlobals$Outbound = {
|
|
28
|
+
organization_id?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const V3ThreathuntingScansGetGlobals$outboundSchema: z.ZodType<V3ThreathuntingScansGetGlobals$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetGlobals>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace V3ThreathuntingScansGetGlobals$ {
|
|
37
|
+
/** @deprecated use `V3ThreathuntingScansGetGlobals$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<V3ThreathuntingScansGetGlobals, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `V3ThreathuntingScansGetGlobals$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<V3ThreathuntingScansGetGlobals$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetGlobals>;
|
|
41
|
+
/** @deprecated use `V3ThreathuntingScansGetGlobals$Outbound` instead. */
|
|
42
|
+
type Outbound = V3ThreathuntingScansGetGlobals$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function v3ThreathuntingScansGetGlobalsToJSON(v3ThreathuntingScansGetGlobals: V3ThreathuntingScansGetGlobals): string;
|
|
45
|
+
export declare function v3ThreathuntingScansGetGlobalsFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingScansGetGlobals, SDKValidationError>;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export declare const V3ThreathuntingScansGetRequest$inboundSchema: z.ZodType<V3ThreathuntingScansGetRequest, z.ZodTypeDef, unknown>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type V3ThreathuntingScansGetRequest$Outbound = {
|
|
50
|
+
organization_id?: string | undefined;
|
|
51
|
+
scan_id: string;
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const V3ThreathuntingScansGetRequest$outboundSchema: z.ZodType<V3ThreathuntingScansGetRequest$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetRequest>;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export declare namespace V3ThreathuntingScansGetRequest$ {
|
|
60
|
+
/** @deprecated use `V3ThreathuntingScansGetRequest$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodType<V3ThreathuntingScansGetRequest, z.ZodTypeDef, unknown>;
|
|
62
|
+
/** @deprecated use `V3ThreathuntingScansGetRequest$outboundSchema` instead. */
|
|
63
|
+
const outboundSchema: z.ZodType<V3ThreathuntingScansGetRequest$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetRequest>;
|
|
64
|
+
/** @deprecated use `V3ThreathuntingScansGetRequest$Outbound` instead. */
|
|
65
|
+
type Outbound = V3ThreathuntingScansGetRequest$Outbound;
|
|
66
|
+
}
|
|
67
|
+
export declare function v3ThreathuntingScansGetRequestToJSON(v3ThreathuntingScansGetRequest: V3ThreathuntingScansGetRequest): string;
|
|
68
|
+
export declare function v3ThreathuntingScansGetRequestFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingScansGetRequest, SDKValidationError>;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const V3ThreathuntingScansGetResponse$inboundSchema: z.ZodType<V3ThreathuntingScansGetResponse, z.ZodTypeDef, unknown>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type V3ThreathuntingScansGetResponse$Outbound = {
|
|
73
|
+
Headers: {
|
|
74
|
+
[k: string]: Array<string>;
|
|
75
|
+
};
|
|
76
|
+
Result: components.ResponseEnvelopeTrackedScan$Outbound;
|
|
77
|
+
};
|
|
78
|
+
/** @internal */
|
|
79
|
+
export declare const V3ThreathuntingScansGetResponse$outboundSchema: z.ZodType<V3ThreathuntingScansGetResponse$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export declare namespace V3ThreathuntingScansGetResponse$ {
|
|
85
|
+
/** @deprecated use `V3ThreathuntingScansGetResponse$inboundSchema` instead. */
|
|
86
|
+
const inboundSchema: z.ZodType<V3ThreathuntingScansGetResponse, z.ZodTypeDef, unknown>;
|
|
87
|
+
/** @deprecated use `V3ThreathuntingScansGetResponse$outboundSchema` instead. */
|
|
88
|
+
const outboundSchema: z.ZodType<V3ThreathuntingScansGetResponse$Outbound, z.ZodTypeDef, V3ThreathuntingScansGetResponse>;
|
|
89
|
+
/** @deprecated use `V3ThreathuntingScansGetResponse$Outbound` instead. */
|
|
90
|
+
type Outbound = V3ThreathuntingScansGetResponse$Outbound;
|
|
91
|
+
}
|
|
92
|
+
export declare function v3ThreathuntingScansGetResponseToJSON(v3ThreathuntingScansGetResponse: V3ThreathuntingScansGetResponse): string;
|
|
93
|
+
export declare function v3ThreathuntingScansGetResponseFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingScansGetResponse, SDKValidationError>;
|
|
94
|
+
//# sourceMappingURL=v3threathuntingscansget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntingscansget.d.ts","sourceRoot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,EAAE,UAAU,CAAC,oCAAoC,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -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.V3ThreathuntingScansGetResponse$ = exports.V3ThreathuntingScansGetResponse$outboundSchema = exports.V3ThreathuntingScansGetResponse$inboundSchema = exports.V3ThreathuntingScansGetRequest$ = exports.V3ThreathuntingScansGetRequest$outboundSchema = exports.V3ThreathuntingScansGetRequest$inboundSchema = exports.V3ThreathuntingScansGetGlobals$ = exports.V3ThreathuntingScansGetGlobals$outboundSchema = exports.V3ThreathuntingScansGetGlobals$inboundSchema = void 0;
|
|
40
|
+
exports.v3ThreathuntingScansGetGlobalsToJSON = v3ThreathuntingScansGetGlobalsToJSON;
|
|
41
|
+
exports.v3ThreathuntingScansGetGlobalsFromJSON = v3ThreathuntingScansGetGlobalsFromJSON;
|
|
42
|
+
exports.v3ThreathuntingScansGetRequestToJSON = v3ThreathuntingScansGetRequestToJSON;
|
|
43
|
+
exports.v3ThreathuntingScansGetRequestFromJSON = v3ThreathuntingScansGetRequestFromJSON;
|
|
44
|
+
exports.v3ThreathuntingScansGetResponseToJSON = v3ThreathuntingScansGetResponseToJSON;
|
|
45
|
+
exports.v3ThreathuntingScansGetResponseFromJSON = v3ThreathuntingScansGetResponseFromJSON;
|
|
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.V3ThreathuntingScansGetGlobals$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.V3ThreathuntingScansGetGlobals$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 V3ThreathuntingScansGetGlobals$;
|
|
71
|
+
(function (V3ThreathuntingScansGetGlobals$) {
|
|
72
|
+
/** @deprecated use `V3ThreathuntingScansGetGlobals$inboundSchema` instead. */
|
|
73
|
+
V3ThreathuntingScansGetGlobals$.inboundSchema = exports.V3ThreathuntingScansGetGlobals$inboundSchema;
|
|
74
|
+
/** @deprecated use `V3ThreathuntingScansGetGlobals$outboundSchema` instead. */
|
|
75
|
+
V3ThreathuntingScansGetGlobals$.outboundSchema = exports.V3ThreathuntingScansGetGlobals$outboundSchema;
|
|
76
|
+
})(V3ThreathuntingScansGetGlobals$ || (exports.V3ThreathuntingScansGetGlobals$ = V3ThreathuntingScansGetGlobals$ = {}));
|
|
77
|
+
function v3ThreathuntingScansGetGlobalsToJSON(v3ThreathuntingScansGetGlobals) {
|
|
78
|
+
return JSON.stringify(exports.V3ThreathuntingScansGetGlobals$outboundSchema.parse(v3ThreathuntingScansGetGlobals));
|
|
79
|
+
}
|
|
80
|
+
function v3ThreathuntingScansGetGlobalsFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansGetGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansGetGlobals' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.V3ThreathuntingScansGetRequest$inboundSchema = z.object({
|
|
85
|
+
organization_id: z.string().optional(),
|
|
86
|
+
scan_id: z.string(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return (0, primitives_js_1.remap)(v, {
|
|
89
|
+
"organization_id": "organizationId",
|
|
90
|
+
"scan_id": "scanId",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
/** @internal */
|
|
94
|
+
exports.V3ThreathuntingScansGetRequest$outboundSchema = z.object({
|
|
95
|
+
organizationId: z.string().optional(),
|
|
96
|
+
scanId: z.string(),
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return (0, primitives_js_1.remap)(v, {
|
|
99
|
+
organizationId: "organization_id",
|
|
100
|
+
scanId: "scan_id",
|
|
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 V3ThreathuntingScansGetRequest$;
|
|
108
|
+
(function (V3ThreathuntingScansGetRequest$) {
|
|
109
|
+
/** @deprecated use `V3ThreathuntingScansGetRequest$inboundSchema` instead. */
|
|
110
|
+
V3ThreathuntingScansGetRequest$.inboundSchema = exports.V3ThreathuntingScansGetRequest$inboundSchema;
|
|
111
|
+
/** @deprecated use `V3ThreathuntingScansGetRequest$outboundSchema` instead. */
|
|
112
|
+
V3ThreathuntingScansGetRequest$.outboundSchema = exports.V3ThreathuntingScansGetRequest$outboundSchema;
|
|
113
|
+
})(V3ThreathuntingScansGetRequest$ || (exports.V3ThreathuntingScansGetRequest$ = V3ThreathuntingScansGetRequest$ = {}));
|
|
114
|
+
function v3ThreathuntingScansGetRequestToJSON(v3ThreathuntingScansGetRequest) {
|
|
115
|
+
return JSON.stringify(exports.V3ThreathuntingScansGetRequest$outboundSchema.parse(v3ThreathuntingScansGetRequest));
|
|
116
|
+
}
|
|
117
|
+
function v3ThreathuntingScansGetRequestFromJSON(jsonString) {
|
|
118
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansGetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansGetRequest' from JSON`);
|
|
119
|
+
}
|
|
120
|
+
/** @internal */
|
|
121
|
+
exports.V3ThreathuntingScansGetResponse$inboundSchema = z.object({
|
|
122
|
+
Headers: z.record(z.array(z.string())),
|
|
123
|
+
Result: components.ResponseEnvelopeTrackedScan$inboundSchema,
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return (0, primitives_js_1.remap)(v, {
|
|
126
|
+
"Headers": "headers",
|
|
127
|
+
"Result": "result",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
/** @internal */
|
|
131
|
+
exports.V3ThreathuntingScansGetResponse$outboundSchema = z.object({
|
|
132
|
+
headers: z.record(z.array(z.string())),
|
|
133
|
+
result: components.ResponseEnvelopeTrackedScan$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 V3ThreathuntingScansGetResponse$;
|
|
145
|
+
(function (V3ThreathuntingScansGetResponse$) {
|
|
146
|
+
/** @deprecated use `V3ThreathuntingScansGetResponse$inboundSchema` instead. */
|
|
147
|
+
V3ThreathuntingScansGetResponse$.inboundSchema = exports.V3ThreathuntingScansGetResponse$inboundSchema;
|
|
148
|
+
/** @deprecated use `V3ThreathuntingScansGetResponse$outboundSchema` instead. */
|
|
149
|
+
V3ThreathuntingScansGetResponse$.outboundSchema = exports.V3ThreathuntingScansGetResponse$outboundSchema;
|
|
150
|
+
})(V3ThreathuntingScansGetResponse$ || (exports.V3ThreathuntingScansGetResponse$ = V3ThreathuntingScansGetResponse$ = {}));
|
|
151
|
+
function v3ThreathuntingScansGetResponseToJSON(v3ThreathuntingScansGetResponse) {
|
|
152
|
+
return JSON.stringify(exports.V3ThreathuntingScansGetResponse$outboundSchema.parse(v3ThreathuntingScansGetResponse));
|
|
153
|
+
}
|
|
154
|
+
function v3ThreathuntingScansGetResponseFromJSON(jsonString) {
|
|
155
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingScansGetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingScansGetResponse' from JSON`);
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=v3threathuntingscansget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntingscansget.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingscansget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEH,oFAQC;AAED,wFAQC;AAmDD,oFAQC;AAED,wFAQC;AAmDD,sFAQC;AAED,0FAQC;AAnOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAuBrD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAA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
"name": "@censys/platform-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,17 +14,16 @@
|
|
|
14
14
|
"prepublishOnly": "npm run build"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@eslint/js": "^9.19.0",
|
|
21
21
|
"eslint": "^9.19.0",
|
|
22
22
|
"globals": "^15.14.0",
|
|
23
23
|
"typescript": "^5.4.5",
|
|
24
|
-
"typescript-eslint": "^8.22.0"
|
|
25
|
-
"zod": "^3.25.17"
|
|
24
|
+
"typescript-eslint": "^8.22.0"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
|
-
|
|
27
|
+
"zod": "^3.20.0"
|
|
29
28
|
}
|
|
30
29
|
}
|
package/sdk/globaldata.d.ts
CHANGED
|
@@ -50,6 +50,21 @@ export declare class GlobalData extends ClientSDK {
|
|
|
50
50
|
* Retrieve information about a single web property. Web properties are identified using a combination of a hostname and port joined with a colon, such as `platform.censys.io:80`.
|
|
51
51
|
*/
|
|
52
52
|
getWebProperty(request: operations.V3GlobaldataAssetWebpropertyRequest, options?: RequestOptions): Promise<operations.V3GlobaldataAssetWebpropertyResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a tracked rescan
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Create a new tracked rescan for a known service or web property. Rescans are used to update information for previously discovered targets. The scan will be queued. The response will contain a scan ID that you can use with the [get tracked scan details endpoint](https://docs.censys.com/reference/v3-globaldata-scans-get#/) to monitor its status and results.<br><br>This endpoint is available to all Enterprise customers.
|
|
58
|
+
*/
|
|
59
|
+
createTrackedScan(request: operations.V3GlobaldataScansRescanRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansRescanResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get tracked scan details
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
65
|
+
* This endpoint works for both discovery scans and rescans.
|
|
66
|
+
*/
|
|
67
|
+
getTrackedScan(request: operations.V3GlobaldataScansGetRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansGetResponse>;
|
|
53
68
|
/**
|
|
54
69
|
* Aggregate results for a search query
|
|
55
70
|
*
|
|
@@ -64,5 +79,13 @@ export declare class GlobalData extends ClientSDK {
|
|
|
64
79
|
* 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.
|
|
65
80
|
*/
|
|
66
81
|
search(request: operations.V3GlobaldataSearchQueryRequest, options?: RequestOptions): Promise<operations.V3GlobaldataSearchQueryResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Get tracked scan details
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
87
|
+
* This endpoint works for both discovery scans and rescans.
|
|
88
|
+
*/
|
|
89
|
+
getTrackedScanThreatHunting(request: operations.V3ThreathuntingScansGetRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingScansGetResponse>;
|
|
67
90
|
}
|
|
68
91
|
//# sourceMappingURL=globaldata.d.ts.map
|
package/sdk/globaldata.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globaldata.d.ts","sourceRoot":"","sources":["../src/sdk/globaldata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"globaldata.d.ts","sourceRoot":"","sources":["../src/sdk/globaldata.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SA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,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAQ1D;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;;OAMG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
|
package/sdk/globaldata.js
CHANGED
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.GlobalData = void 0;
|
|
7
7
|
const globalDataAggregate_js_1 = require("../funcs/globalDataAggregate.js");
|
|
8
|
+
const globalDataCreateTrackedScan_js_1 = require("../funcs/globalDataCreateTrackedScan.js");
|
|
8
9
|
const globalDataGetCertificate_js_1 = require("../funcs/globalDataGetCertificate.js");
|
|
9
10
|
const globalDataGetCertificates_js_1 = require("../funcs/globalDataGetCertificates.js");
|
|
10
11
|
const globalDataGetHost_js_1 = require("../funcs/globalDataGetHost.js");
|
|
11
12
|
const globalDataGetHosts_js_1 = require("../funcs/globalDataGetHosts.js");
|
|
12
13
|
const globalDataGetHostTimeline_js_1 = require("../funcs/globalDataGetHostTimeline.js");
|
|
14
|
+
const globalDataGetTrackedScan_js_1 = require("../funcs/globalDataGetTrackedScan.js");
|
|
15
|
+
const globalDataGetTrackedScanThreatHunting_js_1 = require("../funcs/globalDataGetTrackedScanThreatHunting.js");
|
|
13
16
|
const globalDataGetWebProperties_js_1 = require("../funcs/globalDataGetWebProperties.js");
|
|
14
17
|
const globalDataGetWebProperty_js_1 = require("../funcs/globalDataGetWebProperty.js");
|
|
15
18
|
const globalDataSearch_js_1 = require("../funcs/globalDataSearch.js");
|
|
@@ -79,6 +82,25 @@ class GlobalData extends sdks_js_1.ClientSDK {
|
|
|
79
82
|
async getWebProperty(request, options) {
|
|
80
83
|
return (0, fp_js_1.unwrapAsync)((0, globalDataGetWebProperty_js_1.globalDataGetWebProperty)(this, request, options));
|
|
81
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Create a tracked rescan
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Create a new tracked rescan for a known service or web property. Rescans are used to update information for previously discovered targets. The scan will be queued. The response will contain a scan ID that you can use with the [get tracked scan details endpoint](https://docs.censys.com/reference/v3-globaldata-scans-get#/) to monitor its status and results.<br><br>This endpoint is available to all Enterprise customers.
|
|
90
|
+
*/
|
|
91
|
+
async createTrackedScan(request, options) {
|
|
92
|
+
return (0, fp_js_1.unwrapAsync)((0, globalDataCreateTrackedScan_js_1.globalDataCreateTrackedScan)(this, request, options));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get tracked scan details
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
99
|
+
* This endpoint works for both discovery scans and rescans.
|
|
100
|
+
*/
|
|
101
|
+
async getTrackedScan(request, options) {
|
|
102
|
+
return (0, fp_js_1.unwrapAsync)((0, globalDataGetTrackedScan_js_1.globalDataGetTrackedScan)(this, request, options));
|
|
103
|
+
}
|
|
82
104
|
/**
|
|
83
105
|
* Aggregate results for a search query
|
|
84
106
|
*
|
|
@@ -97,6 +119,16 @@ class GlobalData extends sdks_js_1.ClientSDK {
|
|
|
97
119
|
async search(request, options) {
|
|
98
120
|
return (0, fp_js_1.unwrapAsync)((0, globalDataSearch_js_1.globalDataSearch)(this, request, options));
|
|
99
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Get tracked scan details
|
|
124
|
+
*
|
|
125
|
+
* @remarks
|
|
126
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
127
|
+
* This endpoint works for both discovery scans and rescans.
|
|
128
|
+
*/
|
|
129
|
+
async getTrackedScanThreatHunting(request, options) {
|
|
130
|
+
return (0, fp_js_1.unwrapAsync)((0, globalDataGetTrackedScanThreatHunting_js_1.globalDataGetTrackedScanThreatHunting)(this, request, options));
|
|
131
|
+
}
|
|
100
132
|
}
|
|
101
133
|
exports.GlobalData = GlobalData;
|
|
102
134
|
//# sourceMappingURL=globaldata.js.map
|
package/sdk/globaldata.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globaldata.js","sourceRoot":"","sources":["../src/sdk/globaldata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sFAAgF;AAChF,wFAAkF;AAClF,wEAAkE;AAClE,0EAAoE;AACpE,wFAAkF;AAClF,0FAAoF;AACpF,sFAAgF;AAChF,sEAAgE;AAChE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,UAAW,SAAQ,mBAAS;IACvC;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAsD,EACtD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"globaldata.js","sourceRoot":"","sources":["../src/sdk/globaldata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,4FAAsF;AACtF,sFAAgF;AAChF,wFAAkF;AAClF,wEAAkE;AAClE,0EAAoE;AACpE,wFA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ClB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,cAAc,CAClB,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAsD,EACtD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA9MD,gCA8MC"}
|
package/sdk/threathunting.d.ts
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
export declare class ThreatHunting extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Get tracked scan details
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
9
|
+
* This endpoint works for both discovery scans and rescans.
|
|
10
|
+
*/
|
|
11
|
+
getTrackedScan(request: operations.V3GlobaldataScansGetRequest, options?: RequestOptions): Promise<operations.V3GlobaldataScansGetResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Get Host Observations With Certificate
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieve historical observations of hosts associated with a certificate fingerprint. Useful for threat hunting, detection engineering, and timeline generation.
|
|
17
|
+
*/
|
|
18
|
+
getHostObservationsWithCertificate(request: operations.V3ThreathuntingGetHostObservationsWithCertificateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingGetHostObservationsWithCertificateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create a tracked discovery scan
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Create a new tracked discovery scan for a specified target. Discovery scans are used to scan new targets that have not been previously identified. The scan will be queued. The response will contain a scan ID that you can use with the [get tracked scan details endpoint](https://docs.censys.com/reference/v3-globaldata-scans-get#/) to monitor its status and results.<br><br>This endpoint is available to organizations that have access to the Threat Hunting module.
|
|
24
|
+
*/
|
|
25
|
+
createTrackedScan(request: operations.V3ThreathuntingScansDiscoveryRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingScansDiscoveryResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Get tracked scan details
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Retrieve the current status and results of a tracked scan by its ID.
|
|
31
|
+
* This endpoint works for both discovery scans and rescans.
|
|
32
|
+
*/
|
|
33
|
+
getTrackedScanThreatHunting(request: operations.V3ThreathuntingScansGetRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingScansGetResponse>;
|
|
4
34
|
/**
|
|
5
35
|
* CensEye: Retrieve value counts to discover pivots
|
|
6
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threathunting.d.ts","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"threathunting.d.ts","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;OAMG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,kCAAkC,CACtC,OAAO,EACL,UAAU,CAAC,wDAAwD,EACrE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,yDAAyD,CACrE;IAQD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;;OAMG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
|