@censys/platform-sdk 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/docs/sdks/collections/README.md +8 -0
- package/docs/sdks/globaldata/README.md +91 -0
- package/funcs/collectionsList.js +1 -0
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/globalDataListServicesOnHost.d.ts +18 -0
- package/funcs/globalDataListServicesOnHost.d.ts.map +1 -0
- package/funcs/globalDataListServicesOnHost.js +145 -0
- package/funcs/globalDataListServicesOnHost.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/models/components/anermacfforth.d.ts +14 -0
- package/models/components/anermacfforth.d.ts.map +1 -0
- package/models/components/anermacfforth.js +60 -0
- package/models/components/anermacfforth.js.map +1 -0
- package/models/components/cursorontarget.d.ts +11 -0
- package/models/components/cursorontarget.d.ts.map +1 -0
- package/models/components/cursorontarget.js +51 -0
- package/models/components/cursorontarget.js.map +1 -0
- package/models/components/cursorontargetevent.d.ts +25 -0
- package/models/components/cursorontargetevent.d.ts.map +1 -0
- package/models/components/cursorontargetevent.js +70 -0
- package/models/components/cursorontargetevent.js.map +1 -0
- package/models/components/cursorontargetpoint.d.ts +14 -0
- package/models/components/cursorontargetpoint.d.ts.map +1 -0
- package/models/components/cursorontargetpoint.js +54 -0
- package/models/components/cursorontargetpoint.js.map +1 -0
- package/models/components/cursorontargetstatus.d.ts +10 -0
- package/models/components/cursorontargetstatus.d.ts.map +1 -0
- package/models/components/cursorontargetstatus.js +50 -0
- package/models/components/cursorontargetstatus.js.map +1 -0
- package/models/components/cursorontargettakv.d.ts +13 -0
- package/models/components/cursorontargettakv.d.ts.map +1 -0
- package/models/components/cursorontargettakv.js +53 -0
- package/models/components/cursorontargettakv.js.map +1 -0
- package/models/components/frps.d.ts +12 -0
- package/models/components/frps.d.ts.map +1 -0
- package/models/components/frps.js +58 -0
- package/models/components/frps.js.map +1 -0
- package/models/components/icap.d.ts +11 -0
- package/models/components/icap.d.ts.map +1 -0
- package/models/components/icap.js +57 -0
- package/models/components/icap.js.map +1 -0
- package/models/components/icapoptionsresponse.d.ts +21 -0
- package/models/components/icapoptionsresponse.d.ts.map +1 -0
- package/models/components/icapoptionsresponse.js +73 -0
- package/models/components/icapoptionsresponse.js.map +1 -0
- package/models/components/index.d.ts +19 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +19 -0
- package/models/components/index.js.map +1 -1
- package/models/components/responseenvelopeservicesonhostresponse.d.ts +11 -0
- package/models/components/responseenvelopeservicesonhostresponse.d.ts.map +1 -0
- package/models/components/responseenvelopeservicesonhostresponse.js +51 -0
- package/models/components/responseenvelopeservicesonhostresponse.js.map +1 -0
- package/models/components/service.d.ts +10 -0
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +12 -0
- package/models/components/service.js.map +1 -1
- package/models/components/serviceonhostrange.d.ts +33 -0
- package/models/components/serviceonhostrange.d.ts.map +1 -0
- package/models/components/serviceonhostrange.js +62 -0
- package/models/components/serviceonhostrange.js.map +1 -0
- package/models/components/servicescan.d.ts +10 -0
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +12 -0
- package/models/components/servicescan.js.map +1 -1
- package/models/components/servicesonhostresponse.d.ts +12 -0
- package/models/components/servicesonhostresponse.d.ts.map +1 -0
- package/models/components/servicesonhostresponse.js +58 -0
- package/models/components/servicesonhostresponse.js.map +1 -0
- package/models/components/sourceusagebreakdown.d.ts +2 -2
- package/models/components/sourceusagebreakdown.d.ts.map +1 -1
- package/models/components/sourceusagebreakdown.js +2 -2
- package/models/components/sourceusagebreakdown.js.map +1 -1
- package/models/components/stun.d.ts +17 -0
- package/models/components/stun.d.ts.map +1 -0
- package/models/components/stun.js +67 -0
- package/models/components/stun.js.map +1 -0
- package/models/components/stunbindingerrorresponse.d.ts +13 -0
- package/models/components/stunbindingerrorresponse.d.ts.map +1 -0
- package/models/components/stunbindingerrorresponse.js +60 -0
- package/models/components/stunbindingerrorresponse.js.map +1 -0
- package/models/components/stunbindingsuccessresponse.d.ts +13 -0
- package/models/components/stunbindingsuccessresponse.d.ts.map +1 -0
- package/models/components/stunbindingsuccessresponse.js +59 -0
- package/models/components/stunbindingsuccessresponse.js.map +1 -0
- package/models/components/stunmappedaddress.d.ts +11 -0
- package/models/components/stunmappedaddress.d.ts.map +1 -0
- package/models/components/stunmappedaddress.js +51 -0
- package/models/components/stunmappedaddress.js.map +1 -0
- package/models/components/stunturn.d.ts +15 -0
- package/models/components/stunturn.d.ts.map +1 -0
- package/models/components/stunturn.js +65 -0
- package/models/components/stunturn.js.map +1 -0
- package/models/components/stunturnallocateerrorresponse.d.ts +15 -0
- package/models/components/stunturnallocateerrorresponse.d.ts.map +1 -0
- package/models/components/stunturnallocateerrorresponse.js +62 -0
- package/models/components/stunturnallocateerrorresponse.js.map +1 -0
- package/models/components/stunturnallocatesuccessresponse.d.ts +13 -0
- package/models/components/stunturnallocatesuccessresponse.d.ts.map +1 -0
- package/models/components/stunturnallocatesuccessresponse.js +59 -0
- package/models/components/stunturnallocatesuccessresponse.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3collectionscrudlist.d.ts +15 -0
- package/models/operations/v3collectionscrudlist.d.ts.map +1 -1
- package/models/operations/v3collectionscrudlist.js +12 -1
- package/models/operations/v3collectionscrudlist.js.map +1 -1
- package/models/operations/v3globaldataserviceonhost.d.ts +101 -0
- package/models/operations/v3globaldataserviceonhost.d.ts.map +1 -0
- package/models/operations/v3globaldataserviceonhost.js +107 -0
- package/models/operations/v3globaldataserviceonhost.js.map +1 -0
- package/package.json +1 -1
- package/sdk/globaldata.d.ts +7 -0
- package/sdk/globaldata.d.ts.map +1 -1
- package/sdk/globaldata.js +10 -0
- package/sdk/globaldata.js.map +1 -1
- package/src/funcs/collectionsList.ts +1 -0
- package/src/funcs/globalDataListServicesOnHost.ts +206 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/anermacfforth.ts +45 -0
- package/src/models/components/cursorontarget.ts +35 -0
- package/src/models/components/cursorontargetevent.ts +72 -0
- package/src/models/components/cursorontargetpoint.ts +39 -0
- package/src/models/components/cursorontargetstatus.ts +31 -0
- package/src/models/components/cursorontargettakv.ts +37 -0
- package/src/models/components/frps.ts +37 -0
- package/src/models/components/icap.ts +37 -0
- package/src/models/components/icapoptionsresponse.ts +65 -0
- package/src/models/components/index.ts +19 -0
- package/src/models/components/responseenvelopeservicesonhostresponse.ts +36 -0
- package/src/models/components/service.ts +20 -0
- package/src/models/components/serviceonhostrange.ts +66 -0
- package/src/models/components/servicescan.ts +20 -0
- package/src/models/components/servicesonhostresponse.ts +43 -0
- package/src/models/components/sourceusagebreakdown.ts +4 -4
- package/src/models/components/stun.ts +54 -0
- package/src/models/components/stunbindingerrorresponse.ts +44 -0
- package/src/models/components/stunbindingsuccessresponse.ts +45 -0
- package/src/models/components/stunmappedaddress.ts +33 -0
- package/src/models/components/stunturn.ts +55 -0
- package/src/models/components/stunturnallocateerrorresponse.ts +48 -0
- package/src/models/components/stunturnallocatesuccessresponse.ts +45 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v3collectionscrudlist.ts +22 -0
- package/src/models/operations/v3globaldataserviceonhost.ts +173 -0
- package/src/sdk/globaldata.ts +18 -0
- package/examples/package-lock.json +0 -610
- package/examples/package.json +0 -18
- package/tests/package-lock.json +0 -1448
- package/tests/package.json +0 -11
- package/tsconfig.json +0 -40
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CursorOnTargetTakv = {
|
|
11
|
+
device?: string | undefined;
|
|
12
|
+
os?: string | undefined;
|
|
13
|
+
platform?: string | undefined;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CursorOnTargetTakv$inboundSchema: z.ZodType<
|
|
19
|
+
CursorOnTargetTakv,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
device: z.string().optional(),
|
|
24
|
+
os: z.string().optional(),
|
|
25
|
+
platform: z.string().optional(),
|
|
26
|
+
version: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function cursorOnTargetTakvFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<CursorOnTargetTakv, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => CursorOnTargetTakv$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'CursorOnTargetTakv' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type Frps = {
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
runId?: string | undefined;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Frps$inboundSchema: z.ZodType<Frps, z.ZodTypeDef, unknown> = z
|
|
19
|
+
.object({
|
|
20
|
+
error: z.string().optional(),
|
|
21
|
+
run_id: z.string().optional(),
|
|
22
|
+
version: z.string().optional(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"run_id": "runId",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function frpsFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<Frps, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => Frps$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'Frps' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
IcapOptionsResponse,
|
|
12
|
+
IcapOptionsResponse$inboundSchema,
|
|
13
|
+
} from "./icapoptionsresponse.js";
|
|
14
|
+
|
|
15
|
+
export type Icap = {
|
|
16
|
+
optionsResponse?: IcapOptionsResponse | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Icap$inboundSchema: z.ZodType<Icap, z.ZodTypeDef, unknown> = z
|
|
21
|
+
.object({
|
|
22
|
+
options_response: IcapOptionsResponse$inboundSchema.optional(),
|
|
23
|
+
}).transform((v) => {
|
|
24
|
+
return remap$(v, {
|
|
25
|
+
"options_response": "optionsResponse",
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function icapFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<Icap, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => Icap$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'Icap' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type IcapOptionsResponse = {
|
|
12
|
+
allow204?: boolean | undefined;
|
|
13
|
+
icapVersion?: string | undefined;
|
|
14
|
+
istag?: string | undefined;
|
|
15
|
+
maxConnections?: number | undefined;
|
|
16
|
+
methods?: Array<string> | null | undefined;
|
|
17
|
+
optionsTtl?: number | undefined;
|
|
18
|
+
preview?: number | undefined;
|
|
19
|
+
serverHeader?: string | undefined;
|
|
20
|
+
service?: string | undefined;
|
|
21
|
+
serviceId?: string | undefined;
|
|
22
|
+
statusCode?: number | undefined;
|
|
23
|
+
statusText?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const IcapOptionsResponse$inboundSchema: z.ZodType<
|
|
28
|
+
IcapOptionsResponse,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
allow_204: z.boolean().optional(),
|
|
33
|
+
icap_version: z.string().optional(),
|
|
34
|
+
istag: z.string().optional(),
|
|
35
|
+
max_connections: z.number().int().optional(),
|
|
36
|
+
methods: z.nullable(z.array(z.string())).optional(),
|
|
37
|
+
options_ttl: z.number().int().optional(),
|
|
38
|
+
preview: z.number().int().optional(),
|
|
39
|
+
server_header: z.string().optional(),
|
|
40
|
+
service: z.string().optional(),
|
|
41
|
+
service_id: z.string().optional(),
|
|
42
|
+
status_code: z.number().int().optional(),
|
|
43
|
+
status_text: z.string().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"allow_204": "allow204",
|
|
47
|
+
"icap_version": "icapVersion",
|
|
48
|
+
"max_connections": "maxConnections",
|
|
49
|
+
"options_ttl": "optionsTtl",
|
|
50
|
+
"server_header": "serverHeader",
|
|
51
|
+
"service_id": "serviceId",
|
|
52
|
+
"status_code": "statusCode",
|
|
53
|
+
"status_text": "statusText",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function icapOptionsResponseFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<IcapOptionsResponse, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => IcapOptionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'IcapOptionsResponse' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./amqp.js";
|
|
|
8
8
|
export * from "./amqpprotocol.js";
|
|
9
9
|
export * from "./amqpversion.js";
|
|
10
10
|
export * from "./analyticscapabilities.js";
|
|
11
|
+
export * from "./anermacfforth.js";
|
|
11
12
|
export * from "./anyconnect.js";
|
|
12
13
|
export * from "./assetcertificatelistinputbody.js";
|
|
13
14
|
export * from "./assethostlistinputbody.js";
|
|
@@ -68,6 +69,11 @@ export * from "./crudupdateinputbody.js";
|
|
|
68
69
|
export * from "./cryptsetup.js";
|
|
69
70
|
export * from "./ct.js";
|
|
70
71
|
export * from "./ctrecord.js";
|
|
72
|
+
export * from "./cursorontarget.js";
|
|
73
|
+
export * from "./cursorontargetevent.js";
|
|
74
|
+
export * from "./cursorontargetpoint.js";
|
|
75
|
+
export * from "./cursorontargetstatus.js";
|
|
76
|
+
export * from "./cursorontargettakv.js";
|
|
71
77
|
export * from "./cvss.js";
|
|
72
78
|
export * from "./cvsscomponents.js";
|
|
73
79
|
export * from "./cvssv4.js";
|
|
@@ -156,6 +162,7 @@ export * from "./floatvalue.js";
|
|
|
156
162
|
export * from "./fortigate.js";
|
|
157
163
|
export * from "./forwarddnsresolved.js";
|
|
158
164
|
export * from "./fox.js";
|
|
165
|
+
export * from "./frps.js";
|
|
159
166
|
export * from "./ftp.js";
|
|
160
167
|
export * from "./gearman.js";
|
|
161
168
|
export * from "./gemini.js";
|
|
@@ -185,6 +192,8 @@ export * from "./httpfavicon.js";
|
|
|
185
192
|
export * from "./httpredirectchainlink.js";
|
|
186
193
|
export * from "./httprepeatedheaders.js";
|
|
187
194
|
export * from "./ibmnje.js";
|
|
195
|
+
export * from "./icap.js";
|
|
196
|
+
export * from "./icapoptionsresponse.js";
|
|
188
197
|
export * from "./ike.js";
|
|
189
198
|
export * from "./ikev1.js";
|
|
190
199
|
export * from "./ikev2.js";
|
|
@@ -401,6 +410,7 @@ export * from "./responseenvelopeorganizationdetails.js";
|
|
|
401
410
|
export * from "./responseenvelopeorganizationmemberslist.js";
|
|
402
411
|
export * from "./responseenvelopesearchaggregateresponse.js";
|
|
403
412
|
export * from "./responseenvelopesearchqueryresponse.js";
|
|
413
|
+
export * from "./responseenvelopeservicesonhostresponse.js";
|
|
404
414
|
export * from "./responseenvelopethreatslistresponse.js";
|
|
405
415
|
export * from "./responseenvelopetrackedscan.js";
|
|
406
416
|
export * from "./responseenvelopeusercredits.js";
|
|
@@ -461,8 +471,10 @@ export * from "./serverconfig.js";
|
|
|
461
471
|
export * from "./serversync.js";
|
|
462
472
|
export * from "./service.js";
|
|
463
473
|
export * from "./serviceid.js";
|
|
474
|
+
export * from "./serviceonhostrange.js";
|
|
464
475
|
export * from "./servicescan.js";
|
|
465
476
|
export * from "./servicescanned.js";
|
|
477
|
+
export * from "./servicesonhostresponse.js";
|
|
466
478
|
export * from "./sevendaystodie.js";
|
|
467
479
|
export * from "./signature.js";
|
|
468
480
|
export * from "./signedcertificatetimestamp.js";
|
|
@@ -494,6 +506,13 @@ export * from "./sshkexinitmessage.js";
|
|
|
494
506
|
export * from "./sshserverhostkey.js";
|
|
495
507
|
export * from "./status.js";
|
|
496
508
|
export * from "./steam.js";
|
|
509
|
+
export * from "./stun.js";
|
|
510
|
+
export * from "./stunbindingerrorresponse.js";
|
|
511
|
+
export * from "./stunbindingsuccessresponse.js";
|
|
512
|
+
export * from "./stunmappedaddress.js";
|
|
513
|
+
export * from "./stunturn.js";
|
|
514
|
+
export * from "./stunturnallocateerrorresponse.js";
|
|
515
|
+
export * from "./stunturnallocatesuccessresponse.js";
|
|
497
516
|
export * from "./subjectkeyinfo.js";
|
|
498
517
|
export * from "./systemcapabilities.js";
|
|
499
518
|
export * from "./tacacsplus.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ServicesOnHostResponse,
|
|
11
|
+
ServicesOnHostResponse$inboundSchema,
|
|
12
|
+
} from "./servicesonhostresponse.js";
|
|
13
|
+
|
|
14
|
+
export type ResponseEnvelopeServicesOnHostResponse = {
|
|
15
|
+
result?: ServicesOnHostResponse | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ResponseEnvelopeServicesOnHostResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ResponseEnvelopeServicesOnHostResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
result: ServicesOnHostResponse$inboundSchema.optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function responseEnvelopeServicesOnHostResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<ResponseEnvelopeServicesOnHostResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) =>
|
|
33
|
+
ResponseEnvelopeServicesOnHostResponse$inboundSchema.parse(JSON.parse(x)),
|
|
34
|
+
`Failed to parse 'ResponseEnvelopeServicesOnHostResponse' from JSON`,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -11,6 +11,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { Activemq, Activemq$inboundSchema } from "./activemq.js";
|
|
13
13
|
import { Amqp, Amqp$inboundSchema } from "./amqp.js";
|
|
14
|
+
import { AnermaCfForth, AnermaCfForth$inboundSchema } from "./anermacfforth.js";
|
|
14
15
|
import { AnyConnect, AnyConnect$inboundSchema } from "./anyconnect.js";
|
|
15
16
|
import {
|
|
16
17
|
AsteriskManagerInterface,
|
|
@@ -32,6 +33,10 @@ import {
|
|
|
32
33
|
CrestronDinAp2,
|
|
33
34
|
CrestronDinAp2$inboundSchema,
|
|
34
35
|
} from "./crestrondinap2.js";
|
|
36
|
+
import {
|
|
37
|
+
CursorOnTarget,
|
|
38
|
+
CursorOnTarget$inboundSchema,
|
|
39
|
+
} from "./cursorontarget.js";
|
|
35
40
|
import { Cwmp, Cwmp$inboundSchema } from "./cwmp.js";
|
|
36
41
|
import { Darkcomet, Darkcomet$inboundSchema } from "./darkcomet.js";
|
|
37
42
|
import { Darkgate, Darkgate$inboundSchema } from "./darkgate.js";
|
|
@@ -55,6 +60,7 @@ import {
|
|
|
55
60
|
FlashSocketPolicy$inboundSchema,
|
|
56
61
|
} from "./flashsocketpolicy.js";
|
|
57
62
|
import { Fox, Fox$inboundSchema } from "./fox.js";
|
|
63
|
+
import { Frps, Frps$inboundSchema } from "./frps.js";
|
|
58
64
|
import { Ftp, Ftp$inboundSchema } from "./ftp.js";
|
|
59
65
|
import { Gearman, Gearman$inboundSchema } from "./gearman.js";
|
|
60
66
|
import { Gemini, Gemini$inboundSchema } from "./gemini.js";
|
|
@@ -62,6 +68,7 @@ import { Hajime, Hajime$inboundSchema } from "./hajime.js";
|
|
|
62
68
|
import { HidVertx, HidVertx$inboundSchema } from "./hidvertx.js";
|
|
63
69
|
import { Hikvision, Hikvision$inboundSchema } from "./hikvision.js";
|
|
64
70
|
import { Ibmnje, Ibmnje$inboundSchema } from "./ibmnje.js";
|
|
71
|
+
import { Icap, Icap$inboundSchema } from "./icap.js";
|
|
65
72
|
import { Ike, Ike$inboundSchema } from "./ike.js";
|
|
66
73
|
import { Imap, Imap$inboundSchema } from "./imap.js";
|
|
67
74
|
import { Iota, Iota$inboundSchema } from "./iota.js";
|
|
@@ -160,6 +167,7 @@ import { Spice, Spice$inboundSchema } from "./spice.js";
|
|
|
160
167
|
import { Ssdp, Ssdp$inboundSchema } from "./ssdp.js";
|
|
161
168
|
import { Ssh, Ssh$inboundSchema } from "./ssh.js";
|
|
162
169
|
import { Steam, Steam$inboundSchema } from "./steam.js";
|
|
170
|
+
import { Stun, Stun$inboundSchema } from "./stun.js";
|
|
163
171
|
import { TacacsPlus, TacacsPlus$inboundSchema } from "./tacacsplus.js";
|
|
164
172
|
import { TeamViewer, TeamViewer$inboundSchema } from "./teamviewer.js";
|
|
165
173
|
import { Telnet, Telnet$inboundSchema } from "./telnet.js";
|
|
@@ -195,6 +203,7 @@ export type ServiceTransportProtocol = OpenEnum<
|
|
|
195
203
|
export type Service = {
|
|
196
204
|
activemq?: Activemq | undefined;
|
|
197
205
|
amqp?: Amqp | undefined;
|
|
206
|
+
anermaCfForth?: AnermaCfForth | undefined;
|
|
198
207
|
anyConnect?: AnyConnect | undefined;
|
|
199
208
|
asteriskManagerInterface?: AsteriskManagerInterface | undefined;
|
|
200
209
|
bacnet?: Bacnet | undefined;
|
|
@@ -209,6 +218,7 @@ export type Service = {
|
|
|
209
218
|
coap?: Coap | undefined;
|
|
210
219
|
crestronCp3?: CrestronCp3 | undefined;
|
|
211
220
|
crestronDinAp2?: CrestronDinAp2 | undefined;
|
|
221
|
+
cursorOnTarget?: CursorOnTarget | undefined;
|
|
212
222
|
cwmp?: Cwmp | undefined;
|
|
213
223
|
darkcomet?: Darkcomet | undefined;
|
|
214
224
|
darkgate?: Darkgate | undefined;
|
|
@@ -227,6 +237,7 @@ export type Service = {
|
|
|
227
237
|
exposures?: Array<Risk> | null | undefined;
|
|
228
238
|
flashSocketPolicy?: FlashSocketPolicy | undefined;
|
|
229
239
|
fox?: Fox | undefined;
|
|
240
|
+
frps?: Frps | undefined;
|
|
230
241
|
ftp?: Ftp | undefined;
|
|
231
242
|
gearman?: Gearman | undefined;
|
|
232
243
|
gemini?: Gemini | undefined;
|
|
@@ -235,6 +246,7 @@ export type Service = {
|
|
|
235
246
|
hidVertx?: HidVertx | undefined;
|
|
236
247
|
hikvision?: Hikvision | undefined;
|
|
237
248
|
ibmnje?: Ibmnje | undefined;
|
|
249
|
+
icap?: Icap | undefined;
|
|
238
250
|
ike?: Ike | undefined;
|
|
239
251
|
imap?: Imap | undefined;
|
|
240
252
|
iota?: Iota | undefined;
|
|
@@ -321,6 +333,7 @@ export type Service = {
|
|
|
321
333
|
ssdp?: Ssdp | undefined;
|
|
322
334
|
ssh?: Ssh | undefined;
|
|
323
335
|
steam?: Steam | undefined;
|
|
336
|
+
stun?: Stun | undefined;
|
|
324
337
|
tacacsPlus?: TacacsPlus | undefined;
|
|
325
338
|
teamViewer?: TeamViewer | undefined;
|
|
326
339
|
telnet?: Telnet | undefined;
|
|
@@ -353,6 +366,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
353
366
|
z.object({
|
|
354
367
|
activemq: Activemq$inboundSchema.optional(),
|
|
355
368
|
amqp: Amqp$inboundSchema.optional(),
|
|
369
|
+
anerma_cf_forth: AnermaCfForth$inboundSchema.optional(),
|
|
356
370
|
any_connect: AnyConnect$inboundSchema.optional(),
|
|
357
371
|
asterisk_manager_interface: AsteriskManagerInterface$inboundSchema
|
|
358
372
|
.optional(),
|
|
@@ -368,6 +382,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
368
382
|
coap: Coap$inboundSchema.optional(),
|
|
369
383
|
crestron_cp3: CrestronCp3$inboundSchema.optional(),
|
|
370
384
|
crestron_din_ap2: CrestronDinAp2$inboundSchema.optional(),
|
|
385
|
+
cursor_on_target: CursorOnTarget$inboundSchema.optional(),
|
|
371
386
|
cwmp: Cwmp$inboundSchema.optional(),
|
|
372
387
|
darkcomet: Darkcomet$inboundSchema.optional(),
|
|
373
388
|
darkgate: Darkgate$inboundSchema.optional(),
|
|
@@ -386,6 +401,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
386
401
|
exposures: z.nullable(z.array(Risk$inboundSchema)).optional(),
|
|
387
402
|
flash_socket_policy: FlashSocketPolicy$inboundSchema.optional(),
|
|
388
403
|
fox: Fox$inboundSchema.optional(),
|
|
404
|
+
frps: Frps$inboundSchema.optional(),
|
|
389
405
|
ftp: Ftp$inboundSchema.optional(),
|
|
390
406
|
gearman: Gearman$inboundSchema.optional(),
|
|
391
407
|
gemini: Gemini$inboundSchema.optional(),
|
|
@@ -394,6 +410,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
394
410
|
hid_vertx: HidVertx$inboundSchema.optional(),
|
|
395
411
|
hikvision: Hikvision$inboundSchema.optional(),
|
|
396
412
|
ibmnje: Ibmnje$inboundSchema.optional(),
|
|
413
|
+
icap: Icap$inboundSchema.optional(),
|
|
397
414
|
ike: Ike$inboundSchema.optional(),
|
|
398
415
|
imap: Imap$inboundSchema.optional(),
|
|
399
416
|
iota: Iota$inboundSchema.optional(),
|
|
@@ -480,6 +497,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
480
497
|
ssdp: Ssdp$inboundSchema.optional(),
|
|
481
498
|
ssh: Ssh$inboundSchema.optional(),
|
|
482
499
|
steam: Steam$inboundSchema.optional(),
|
|
500
|
+
stun: Stun$inboundSchema.optional(),
|
|
483
501
|
tacacs_plus: TacacsPlus$inboundSchema.optional(),
|
|
484
502
|
team_viewer: TeamViewer$inboundSchema.optional(),
|
|
485
503
|
telnet: Telnet$inboundSchema.optional(),
|
|
@@ -500,6 +518,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
500
518
|
zeromq: Zeromq$inboundSchema.optional(),
|
|
501
519
|
}).transform((v) => {
|
|
502
520
|
return remap$(v, {
|
|
521
|
+
"anerma_cf_forth": "anermaCfForth",
|
|
503
522
|
"any_connect": "anyConnect",
|
|
504
523
|
"asterisk_manager_interface": "asteriskManagerInterface",
|
|
505
524
|
"banner_hash_sha256": "bannerHashSha256",
|
|
@@ -508,6 +527,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
|
|
|
508
527
|
"cisco_ipsla": "ciscoIpsla",
|
|
509
528
|
"crestron_cp3": "crestronCp3",
|
|
510
529
|
"crestron_din_ap2": "crestronDinAp2",
|
|
530
|
+
"cursor_on_target": "cursorOnTarget",
|
|
511
531
|
"dvr_ip": "dvrIp",
|
|
512
532
|
"elf_file": "elfFile",
|
|
513
533
|
"flash_socket_policy": "flashSocketPolicy",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ServiceOnHostRange = {
|
|
12
|
+
/**
|
|
13
|
+
* When the service was last observed
|
|
14
|
+
*/
|
|
15
|
+
endTime: Date;
|
|
16
|
+
/**
|
|
17
|
+
* IP address where the service was observed
|
|
18
|
+
*/
|
|
19
|
+
ip: string;
|
|
20
|
+
/**
|
|
21
|
+
* Port number where the service was observed
|
|
22
|
+
*/
|
|
23
|
+
port: string;
|
|
24
|
+
/**
|
|
25
|
+
* Application protocol (e.g., HTTP, HTTPS)
|
|
26
|
+
*/
|
|
27
|
+
protocol: string;
|
|
28
|
+
/**
|
|
29
|
+
* When the service was first observed
|
|
30
|
+
*/
|
|
31
|
+
startTime: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Transport protocol (e.g., TCP, UDP, QUIC)
|
|
34
|
+
*/
|
|
35
|
+
transportProtocol: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ServiceOnHostRange$inboundSchema: z.ZodType<
|
|
40
|
+
ServiceOnHostRange,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
end_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
45
|
+
ip: z.string(),
|
|
46
|
+
port: z.string(),
|
|
47
|
+
protocol: z.string(),
|
|
48
|
+
start_time: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
49
|
+
transport_protocol: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"end_time": "endTime",
|
|
53
|
+
"start_time": "startTime",
|
|
54
|
+
"transport_protocol": "transportProtocol",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function serviceOnHostRangeFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<ServiceOnHostRange, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => ServiceOnHostRange$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'ServiceOnHostRange' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -11,6 +11,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
import { Activemq, Activemq$inboundSchema } from "./activemq.js";
|
|
13
13
|
import { Amqp, Amqp$inboundSchema } from "./amqp.js";
|
|
14
|
+
import { AnermaCfForth, AnermaCfForth$inboundSchema } from "./anermacfforth.js";
|
|
14
15
|
import { AnyConnect, AnyConnect$inboundSchema } from "./anyconnect.js";
|
|
15
16
|
import {
|
|
16
17
|
AsteriskManagerInterface,
|
|
@@ -30,6 +31,10 @@ import {
|
|
|
30
31
|
CrestronDinAp2,
|
|
31
32
|
CrestronDinAp2$inboundSchema,
|
|
32
33
|
} from "./crestrondinap2.js";
|
|
34
|
+
import {
|
|
35
|
+
CursorOnTarget,
|
|
36
|
+
CursorOnTarget$inboundSchema,
|
|
37
|
+
} from "./cursorontarget.js";
|
|
33
38
|
import { Cwmp, Cwmp$inboundSchema } from "./cwmp.js";
|
|
34
39
|
import { Darkcomet, Darkcomet$inboundSchema } from "./darkcomet.js";
|
|
35
40
|
import { Darkgate, Darkgate$inboundSchema } from "./darkgate.js";
|
|
@@ -49,6 +54,7 @@ import {
|
|
|
49
54
|
FlashSocketPolicy$inboundSchema,
|
|
50
55
|
} from "./flashsocketpolicy.js";
|
|
51
56
|
import { Fox, Fox$inboundSchema } from "./fox.js";
|
|
57
|
+
import { Frps, Frps$inboundSchema } from "./frps.js";
|
|
52
58
|
import { Ftp, Ftp$inboundSchema } from "./ftp.js";
|
|
53
59
|
import { Gearman, Gearman$inboundSchema } from "./gearman.js";
|
|
54
60
|
import { Gemini, Gemini$inboundSchema } from "./gemini.js";
|
|
@@ -56,6 +62,7 @@ import { Hajime, Hajime$inboundSchema } from "./hajime.js";
|
|
|
56
62
|
import { HidVertx, HidVertx$inboundSchema } from "./hidvertx.js";
|
|
57
63
|
import { Hikvision, Hikvision$inboundSchema } from "./hikvision.js";
|
|
58
64
|
import { Ibmnje, Ibmnje$inboundSchema } from "./ibmnje.js";
|
|
65
|
+
import { Icap, Icap$inboundSchema } from "./icap.js";
|
|
59
66
|
import { Ike, Ike$inboundSchema } from "./ike.js";
|
|
60
67
|
import { Imap, Imap$inboundSchema } from "./imap.js";
|
|
61
68
|
import { Iota, Iota$inboundSchema } from "./iota.js";
|
|
@@ -150,6 +157,7 @@ import { Spice, Spice$inboundSchema } from "./spice.js";
|
|
|
150
157
|
import { Ssdp, Ssdp$inboundSchema } from "./ssdp.js";
|
|
151
158
|
import { Ssh, Ssh$inboundSchema } from "./ssh.js";
|
|
152
159
|
import { Steam, Steam$inboundSchema } from "./steam.js";
|
|
160
|
+
import { Stun, Stun$inboundSchema } from "./stun.js";
|
|
153
161
|
import { TacacsPlus, TacacsPlus$inboundSchema } from "./tacacsplus.js";
|
|
154
162
|
import { TeamViewer, TeamViewer$inboundSchema } from "./teamviewer.js";
|
|
155
163
|
import { Telnet, Telnet$inboundSchema } from "./telnet.js";
|
|
@@ -183,6 +191,7 @@ export type ServiceScanTransportProtocol = OpenEnum<
|
|
|
183
191
|
export type ServiceScan = {
|
|
184
192
|
activemq?: Activemq | undefined;
|
|
185
193
|
amqp?: Amqp | undefined;
|
|
194
|
+
anermaCfForth?: AnermaCfForth | undefined;
|
|
186
195
|
anyConnect?: AnyConnect | undefined;
|
|
187
196
|
asteriskManagerInterface?: AsteriskManagerInterface | undefined;
|
|
188
197
|
bacnet?: Bacnet | undefined;
|
|
@@ -195,6 +204,7 @@ export type ServiceScan = {
|
|
|
195
204
|
coap?: Coap | undefined;
|
|
196
205
|
crestronCp3?: CrestronCp3 | undefined;
|
|
197
206
|
crestronDinAp2?: CrestronDinAp2 | undefined;
|
|
207
|
+
cursorOnTarget?: CursorOnTarget | undefined;
|
|
198
208
|
cwmp?: Cwmp | undefined;
|
|
199
209
|
darkcomet?: Darkcomet | undefined;
|
|
200
210
|
darkgate?: Darkgate | undefined;
|
|
@@ -211,6 +221,7 @@ export type ServiceScan = {
|
|
|
211
221
|
ethereum?: Ethereum | undefined;
|
|
212
222
|
flashSocketPolicy?: FlashSocketPolicy | undefined;
|
|
213
223
|
fox?: Fox | undefined;
|
|
224
|
+
frps?: Frps | undefined;
|
|
214
225
|
ftp?: Ftp | undefined;
|
|
215
226
|
gearman?: Gearman | undefined;
|
|
216
227
|
gemini?: Gemini | undefined;
|
|
@@ -218,6 +229,7 @@ export type ServiceScan = {
|
|
|
218
229
|
hidVertx?: HidVertx | undefined;
|
|
219
230
|
hikvision?: Hikvision | undefined;
|
|
220
231
|
ibmnje?: Ibmnje | undefined;
|
|
232
|
+
icap?: Icap | undefined;
|
|
221
233
|
ike?: Ike | undefined;
|
|
222
234
|
imap?: Imap | undefined;
|
|
223
235
|
iota?: Iota | undefined;
|
|
@@ -299,6 +311,7 @@ export type ServiceScan = {
|
|
|
299
311
|
ssdp?: Ssdp | undefined;
|
|
300
312
|
ssh?: Ssh | undefined;
|
|
301
313
|
steam?: Steam | undefined;
|
|
314
|
+
stun?: Stun | undefined;
|
|
302
315
|
tacacsPlus?: TacacsPlus | undefined;
|
|
303
316
|
teamViewer?: TeamViewer | undefined;
|
|
304
317
|
telnet?: Telnet | undefined;
|
|
@@ -332,6 +345,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
332
345
|
> = z.object({
|
|
333
346
|
activemq: Activemq$inboundSchema.optional(),
|
|
334
347
|
amqp: Amqp$inboundSchema.optional(),
|
|
348
|
+
anerma_cf_forth: AnermaCfForth$inboundSchema.optional(),
|
|
335
349
|
any_connect: AnyConnect$inboundSchema.optional(),
|
|
336
350
|
asterisk_manager_interface: AsteriskManagerInterface$inboundSchema.optional(),
|
|
337
351
|
bacnet: Bacnet$inboundSchema.optional(),
|
|
@@ -344,6 +358,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
344
358
|
coap: Coap$inboundSchema.optional(),
|
|
345
359
|
crestron_cp3: CrestronCp3$inboundSchema.optional(),
|
|
346
360
|
crestron_din_ap2: CrestronDinAp2$inboundSchema.optional(),
|
|
361
|
+
cursor_on_target: CursorOnTarget$inboundSchema.optional(),
|
|
347
362
|
cwmp: Cwmp$inboundSchema.optional(),
|
|
348
363
|
darkcomet: Darkcomet$inboundSchema.optional(),
|
|
349
364
|
darkgate: Darkgate$inboundSchema.optional(),
|
|
@@ -360,6 +375,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
360
375
|
ethereum: Ethereum$inboundSchema.optional(),
|
|
361
376
|
flash_socket_policy: FlashSocketPolicy$inboundSchema.optional(),
|
|
362
377
|
fox: Fox$inboundSchema.optional(),
|
|
378
|
+
frps: Frps$inboundSchema.optional(),
|
|
363
379
|
ftp: Ftp$inboundSchema.optional(),
|
|
364
380
|
gearman: Gearman$inboundSchema.optional(),
|
|
365
381
|
gemini: Gemini$inboundSchema.optional(),
|
|
@@ -367,6 +383,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
367
383
|
hid_vertx: HidVertx$inboundSchema.optional(),
|
|
368
384
|
hikvision: Hikvision$inboundSchema.optional(),
|
|
369
385
|
ibmnje: Ibmnje$inboundSchema.optional(),
|
|
386
|
+
icap: Icap$inboundSchema.optional(),
|
|
370
387
|
ike: Ike$inboundSchema.optional(),
|
|
371
388
|
imap: Imap$inboundSchema.optional(),
|
|
372
389
|
iota: Iota$inboundSchema.optional(),
|
|
@@ -448,6 +465,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
448
465
|
ssdp: Ssdp$inboundSchema.optional(),
|
|
449
466
|
ssh: Ssh$inboundSchema.optional(),
|
|
450
467
|
steam: Steam$inboundSchema.optional(),
|
|
468
|
+
stun: Stun$inboundSchema.optional(),
|
|
451
469
|
tacacs_plus: TacacsPlus$inboundSchema.optional(),
|
|
452
470
|
team_viewer: TeamViewer$inboundSchema.optional(),
|
|
453
471
|
telnet: Telnet$inboundSchema.optional(),
|
|
@@ -466,6 +484,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
466
484
|
zeromq: Zeromq$inboundSchema.optional(),
|
|
467
485
|
}).transform((v) => {
|
|
468
486
|
return remap$(v, {
|
|
487
|
+
"anerma_cf_forth": "anermaCfForth",
|
|
469
488
|
"any_connect": "anyConnect",
|
|
470
489
|
"asterisk_manager_interface": "asteriskManagerInterface",
|
|
471
490
|
"banner_hash_sha256": "bannerHashSha256",
|
|
@@ -473,6 +492,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
|
|
|
473
492
|
"cisco_ipsla": "ciscoIpsla",
|
|
474
493
|
"crestron_cp3": "crestronCp3",
|
|
475
494
|
"crestron_din_ap2": "crestronDinAp2",
|
|
495
|
+
"cursor_on_target": "cursorOnTarget",
|
|
476
496
|
"dvr_ip": "dvrIp",
|
|
477
497
|
"elf_file": "elfFile",
|
|
478
498
|
"flash_socket_policy": "flashSocketPolicy",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ServiceOnHostRange,
|
|
12
|
+
ServiceOnHostRange$inboundSchema,
|
|
13
|
+
} from "./serviceonhostrange.js";
|
|
14
|
+
|
|
15
|
+
export type ServicesOnHostResponse = {
|
|
16
|
+
nextPageToken: string;
|
|
17
|
+
ranges: Array<ServiceOnHostRange> | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ServicesOnHostResponse$inboundSchema: z.ZodType<
|
|
22
|
+
ServicesOnHostResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
NextPageToken: z.string(),
|
|
27
|
+
Ranges: z.nullable(z.array(ServiceOnHostRange$inboundSchema)),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"NextPageToken": "nextPageToken",
|
|
31
|
+
"Ranges": "ranges",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function servicesOnHostResponseFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<ServicesOnHostResponse, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) => ServicesOnHostResponse$inboundSchema.parse(JSON.parse(x)),
|
|
41
|
+
`Failed to parse 'ServicesOnHostResponse' from JSON`,
|
|
42
|
+
);
|
|
43
|
+
}
|