@censys/platform-sdk 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -17
- package/docs/sdks/globaldata/README.md +190 -92
- package/docs/sdks/threathunting/README.md +29 -21
- package/examples/globalDataSearch.example.ts +1 -1
- package/examples/package-lock.json +3 -3
- package/funcs/globalDataConvertLegacySearchQueries.d.ts +18 -0
- package/funcs/globalDataConvertLegacySearchQueries.d.ts.map +1 -0
- package/funcs/globalDataConvertLegacySearchQueries.js +134 -0
- package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -0
- package/funcs/globalDataCreateTrackedScan.d.ts +2 -2
- package/funcs/globalDataCreateTrackedScan.js +2 -2
- package/funcs/{globalDataGetTrackedScanThreatHunting.d.ts → globalDataGetCertificateRaw.d.ts} +4 -5
- package/funcs/globalDataGetCertificateRaw.d.ts.map +1 -0
- package/funcs/{globalDataGetHostObservationsWithCertificate.js → globalDataGetCertificateRaw.js} +10 -19
- package/funcs/globalDataGetCertificateRaw.js.map +1 -0
- package/funcs/globalDataGetCertificates.d.ts +1 -1
- package/funcs/globalDataGetCertificates.d.ts.map +1 -1
- package/funcs/globalDataGetCertificates.js +9 -6
- package/funcs/globalDataGetCertificates.js.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.d.ts +18 -0
- package/funcs/globalDataGetCertificatesRaw.d.ts.map +1 -0
- package/funcs/globalDataGetCertificatesRaw.js +130 -0
- package/funcs/globalDataGetCertificatesRaw.js.map +1 -0
- package/funcs/globalDataGetHostTimeline.d.ts +1 -1
- package/funcs/globalDataGetHostTimeline.js +1 -1
- package/funcs/globalDataGetHosts.d.ts +1 -1
- package/funcs/globalDataGetHosts.d.ts.map +1 -1
- package/funcs/globalDataGetHosts.js +8 -6
- package/funcs/globalDataGetHosts.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.d.ts +2 -3
- package/funcs/globalDataGetTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataGetTrackedScan.js +2 -3
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperties.d.ts +1 -1
- package/funcs/globalDataGetWebProperties.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperties.js +9 -6
- package/funcs/globalDataGetWebProperties.js.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts +2 -2
- package/funcs/threatHuntingCreateTrackedScan.js +2 -2
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts +18 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts.map +1 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +141 -0
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -0
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts +18 -0
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts.map +1 -0
- package/funcs/{globalDataGetTrackedScanThreatHunting.js → threatHuntingGetTrackedScanThreatHunting.js} +5 -6
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/alternativequery.d.ts +69 -0
- package/models/components/alternativequery.d.ts.map +1 -0
- package/models/components/alternativequery.js +93 -0
- package/models/components/alternativequery.js.map +1 -0
- package/models/components/assetcertificatelistinputbody.d.ts +32 -0
- package/models/components/assetcertificatelistinputbody.d.ts.map +1 -0
- package/models/components/assetcertificatelistinputbody.js +78 -0
- package/models/components/assetcertificatelistinputbody.js.map +1 -0
- package/models/components/assethostlistinputbody.d.ts +32 -0
- package/models/components/assethostlistinputbody.d.ts.map +1 -0
- package/models/components/assethostlistinputbody.js +78 -0
- package/models/components/assethostlistinputbody.js.map +1 -0
- package/models/components/assetwebpropertylistinputbody.d.ts +32 -0
- package/models/components/assetwebpropertylistinputbody.d.ts.map +1 -0
- package/models/components/assetwebpropertylistinputbody.js +78 -0
- package/models/components/assetwebpropertylistinputbody.js.map +1 -0
- package/models/components/asteriskmanagerinterface.d.ts +29 -0
- package/models/components/asteriskmanagerinterface.d.ts.map +1 -0
- package/models/components/asteriskmanagerinterface.js +69 -0
- package/models/components/asteriskmanagerinterface.js.map +1 -0
- package/models/components/convertqueryerror.d.ts +32 -0
- package/models/components/convertqueryerror.d.ts.map +1 -0
- package/models/components/convertqueryerror.js +69 -0
- package/models/components/convertqueryerror.js.map +1 -0
- package/models/components/index.d.ts +12 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +12 -0
- package/models/components/index.js.map +1 -1
- package/models/components/openvpnmgmt.d.ts +37 -0
- package/models/components/openvpnmgmt.d.ts.map +1 -0
- package/models/components/openvpnmgmt.js +92 -0
- package/models/components/openvpnmgmt.js.map +1 -0
- package/models/components/rawcertificateresponse.d.ts +31 -0
- package/models/components/rawcertificateresponse.d.ts.map +1 -0
- package/models/components/rawcertificateresponse.js +80 -0
- package/models/components/rawcertificateresponse.js.map +1 -0
- package/models/components/rdp.d.ts +2 -0
- package/models/components/rdp.d.ts.map +1 -1
- package/models/components/rdp.js +4 -0
- package/models/components/rdp.js.map +1 -1
- package/models/components/responseenvelopelistrawcertificateresponse.d.ts +30 -0
- package/models/components/responseenvelopelistrawcertificateresponse.d.ts.map +1 -0
- package/models/components/responseenvelopelistrawcertificateresponse.js +72 -0
- package/models/components/responseenvelopelistrawcertificateresponse.js.map +1 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts +30 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts.map +1 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.js +72 -0
- package/models/components/responseenvelopelistsearchconvertqueryresponse.js.map +1 -0
- package/models/components/screenshot.d.ts +2 -0
- package/models/components/screenshot.d.ts.map +1 -1
- package/models/components/screenshot.js +2 -0
- package/models/components/screenshot.js.map +1 -1
- package/models/components/searchconvertqueryinputbody.d.ts +32 -0
- package/models/components/searchconvertqueryinputbody.d.ts.map +1 -0
- package/models/components/searchconvertqueryinputbody.js +69 -0
- package/models/components/searchconvertqueryinputbody.js.map +1 -0
- package/models/components/searchconvertqueryresponse.d.ts +91 -0
- package/models/components/searchconvertqueryresponse.d.ts.map +1 -0
- package/models/components/searchconvertqueryresponse.js +117 -0
- package/models/components/searchconvertqueryresponse.js.map +1 -0
- package/models/components/service.d.ts +6 -0
- package/models/components/service.d.ts.map +1 -1
- package/models/components/service.js +11 -0
- package/models/components/service.js.map +1 -1
- package/models/components/servicescan.d.ts +6 -0
- package/models/components/servicescan.d.ts.map +1 -1
- package/models/components/servicescan.js +10 -0
- package/models/components/servicescan.js.map +1 -1
- package/models/operations/index.d.ts +7 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -4
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3globaldataassetcertificatelistpost.d.ts +91 -0
- package/models/operations/v3globaldataassetcertificatelistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistpost.js +157 -0
- package/models/operations/v3globaldataassetcertificatelistpost.js.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts +91 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.js +157 -0
- package/models/operations/v3globaldataassetcertificatelistrawpost.js.map +1 -0
- package/models/operations/v3globaldataassetcertificateraw.d.ts +93 -0
- package/models/operations/v3globaldataassetcertificateraw.d.ts.map +1 -0
- package/models/operations/v3globaldataassetcertificateraw.js +156 -0
- package/models/operations/v3globaldataassetcertificateraw.js.map +1 -0
- package/models/operations/v3globaldataassethostlistpost.d.ts +91 -0
- package/models/operations/v3globaldataassethostlistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassethostlistpost.js +157 -0
- package/models/operations/v3globaldataassethostlistpost.js.map +1 -0
- package/models/operations/v3globaldataassethosttimeline.d.ts +2 -2
- package/models/operations/v3globaldataassetwebpropertylistpost.d.ts +91 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.d.ts.map +1 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.js +157 -0
- package/models/operations/v3globaldataassetwebpropertylistpost.js.map +1 -0
- package/models/operations/v3globaldatasearchconvert.d.ts +91 -0
- package/models/operations/v3globaldatasearchconvert.d.ts.map +1 -0
- package/models/operations/v3globaldatasearchconvert.js +157 -0
- package/models/operations/v3globaldatasearchconvert.js.map +1 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts +124 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts.map +1 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.js +183 -0
- package/models/operations/v3threathuntinggethostobservationswithcertificate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/globaldata.d.ts +24 -19
- package/sdk/globaldata.d.ts.map +1 -1
- package/sdk/globaldata.js +29 -21
- package/sdk/globaldata.js.map +1 -1
- package/sdk/threathunting.d.ts +7 -9
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +11 -13
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/globalDataConvertLegacySearchQueries.ts +188 -0
- package/src/funcs/globalDataCreateTrackedScan.ts +2 -2
- package/src/funcs/{globalDataGetHostObservationsWithCertificate.ts → globalDataGetCertificateRaw.ts} +19 -26
- package/src/funcs/globalDataGetCertificates.ts +15 -14
- package/src/funcs/globalDataGetCertificatesRaw.ts +187 -0
- package/src/funcs/globalDataGetHostTimeline.ts +1 -1
- package/src/funcs/globalDataGetHosts.ts +24 -16
- package/src/funcs/globalDataGetTrackedScan.ts +2 -3
- package/src/funcs/globalDataGetWebProperties.ts +15 -14
- package/src/funcs/threatHuntingCreateTrackedScan.ts +2 -2
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +201 -0
- package/src/funcs/{globalDataGetTrackedScanThreatHunting.ts → threatHuntingGetTrackedScanThreatHunting.ts} +3 -4
- package/src/lib/config.ts +4 -4
- package/src/lib/security.ts +4 -1
- package/src/models/components/alternativequery.ts +104 -0
- package/src/models/components/assetcertificatelistinputbody.ts +80 -0
- package/src/models/components/assethostlistinputbody.ts +78 -0
- package/src/models/components/assetwebpropertylistinputbody.ts +80 -0
- package/src/models/components/asteriskmanagerinterface.ts +66 -0
- package/src/models/components/convertqueryerror.ts +69 -0
- package/src/models/components/index.ts +12 -0
- package/src/models/components/openvpnmgmt.ts +93 -0
- package/src/models/components/rawcertificateresponse.ts +79 -0
- package/src/models/components/rdp.ts +6 -0
- package/src/models/components/responseenvelopelistrawcertificateresponse.ts +84 -0
- package/src/models/components/responseenvelopelistsearchconvertqueryresponse.ts +88 -0
- package/src/models/components/screenshot.ts +4 -0
- package/src/models/components/searchconvertqueryinputbody.ts +71 -0
- package/src/models/components/searchconvertqueryresponse.ts +166 -0
- package/src/models/components/service.ts +25 -0
- package/src/models/components/servicescan.ts +24 -0
- package/src/models/operations/index.ts +7 -4
- package/src/models/operations/v3globaldataassetcertificatelistpost.ts +265 -0
- package/src/models/operations/v3globaldataassetcertificatelistrawpost.ts +269 -0
- package/src/models/operations/v3globaldataassetcertificateraw.ts +248 -0
- package/src/models/operations/v3globaldataassethostlistpost.ts +238 -0
- package/src/models/operations/v3globaldataassethosttimeline.ts +2 -2
- package/src/models/operations/v3globaldataassetwebpropertylistpost.ts +265 -0
- package/src/models/operations/v3globaldatasearchconvert.ts +234 -0
- package/src/models/operations/v3threathuntinggethostobservationswithcertificate.ts +315 -0
- package/src/sdk/globaldata.ts +49 -35
- package/src/sdk/threathunting.ts +16 -15
- package/tests/sdk.test.ts +2 -2
- package/funcs/globalDataGetHostObservationsWithCertificate.d.ts +0 -18
- package/funcs/globalDataGetHostObservationsWithCertificate.d.ts.map +0 -1
- package/funcs/globalDataGetHostObservationsWithCertificate.js.map +0 -1
- package/funcs/globalDataGetTrackedScanThreatHunting.d.ts.map +0 -1
- package/funcs/globalDataGetTrackedScanThreatHunting.js.map +0 -1
- package/models/operations/v3globaldataassetcertificatelist.d.ts +0 -94
- package/models/operations/v3globaldataassetcertificatelist.d.ts.map +0 -1
- package/models/operations/v3globaldataassetcertificatelist.js +0 -157
- package/models/operations/v3globaldataassetcertificatelist.js.map +0 -1
- package/models/operations/v3globaldataassethostlist.d.ts +0 -94
- package/models/operations/v3globaldataassethostlist.d.ts.map +0 -1
- package/models/operations/v3globaldataassethostlist.js +0 -157
- package/models/operations/v3globaldataassethostlist.js.map +0 -1
- package/models/operations/v3globaldataassetwebpropertylist.d.ts +0 -94
- package/models/operations/v3globaldataassetwebpropertylist.d.ts.map +0 -1
- package/models/operations/v3globaldataassetwebpropertylist.js +0 -157
- package/models/operations/v3globaldataassetwebpropertylist.js.map +0 -1
- package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts +0 -124
- package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts.map +0 -1
- package/models/operations/v3globaldatagethostobservationswithcertificate.js +0 -178
- package/models/operations/v3globaldatagethostobservationswithcertificate.js.map +0 -1
- package/src/models/operations/v3globaldataassetcertificatelist.ts +0 -259
- package/src/models/operations/v3globaldataassethostlist.ts +0 -233
- package/src/models/operations/v3globaldataassetwebpropertylist.ts +0 -259
- package/src/models/operations/v3globaldatagethostobservationswithcertificate.ts +0 -317
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 ConvertQueryError = {
|
|
11
|
+
/**
|
|
12
|
+
* The error message if the query could not be converted.
|
|
13
|
+
*/
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ConvertQueryError$inboundSchema: z.ZodType<
|
|
19
|
+
ConvertQueryError,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
message: z.string(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type ConvertQueryError$Outbound = {
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ConvertQueryError$outboundSchema: z.ZodType<
|
|
33
|
+
ConvertQueryError$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
ConvertQueryError
|
|
36
|
+
> = z.object({
|
|
37
|
+
message: z.string(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace ConvertQueryError$ {
|
|
45
|
+
/** @deprecated use `ConvertQueryError$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = ConvertQueryError$inboundSchema;
|
|
47
|
+
/** @deprecated use `ConvertQueryError$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = ConvertQueryError$outboundSchema;
|
|
49
|
+
/** @deprecated use `ConvertQueryError$Outbound` instead. */
|
|
50
|
+
export type Outbound = ConvertQueryError$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function convertQueryErrorToJSON(
|
|
54
|
+
convertQueryError: ConvertQueryError,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
ConvertQueryError$outboundSchema.parse(convertQueryError),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function convertQueryErrorFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ConvertQueryError, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => ConvertQueryError$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'ConvertQueryError' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./activemq.js";
|
|
6
|
+
export * from "./alternativequery.js";
|
|
6
7
|
export * from "./amqp.js";
|
|
7
8
|
export * from "./amqpprotocol.js";
|
|
8
9
|
export * from "./amqpversion.js";
|
|
9
10
|
export * from "./analyticscapabilities.js";
|
|
10
11
|
export * from "./anyconnect.js";
|
|
12
|
+
export * from "./assetcertificatelistinputbody.js";
|
|
13
|
+
export * from "./assethostlistinputbody.js";
|
|
14
|
+
export * from "./assetwebpropertylistinputbody.js";
|
|
15
|
+
export * from "./asteriskmanagerinterface.js";
|
|
11
16
|
export * from "./attribute.js";
|
|
12
17
|
export * from "./auth.js";
|
|
13
18
|
export * from "./authorityinfoaccess.js";
|
|
@@ -46,6 +51,7 @@ export * from "./collectionevent.js";
|
|
|
46
51
|
export * from "./collectioneventsresponse.js";
|
|
47
52
|
export * from "./connection.js";
|
|
48
53
|
export * from "./contact.js";
|
|
54
|
+
export * from "./convertqueryerror.js";
|
|
49
55
|
export * from "./coordinates.js";
|
|
50
56
|
export * from "./countcondition.js";
|
|
51
57
|
export * from "./cpe.js";
|
|
@@ -280,6 +286,7 @@ export * from "./opcuausertokenpolicy.js";
|
|
|
280
286
|
export * from "./opendirectory.js";
|
|
281
287
|
export * from "./opendirectoryfile.js";
|
|
282
288
|
export * from "./openvpn.js";
|
|
289
|
+
export * from "./openvpnmgmt.js";
|
|
283
290
|
export * from "./oracle.js";
|
|
284
291
|
export * from "./oracledescriptor.js";
|
|
285
292
|
export * from "./organization.js";
|
|
@@ -318,6 +325,7 @@ export * from "./qcstatementsparsedstatements.js";
|
|
|
318
325
|
export * from "./qcstatementspdslocation.js";
|
|
319
326
|
export * from "./qcstatementsqclegislation.js";
|
|
320
327
|
export * from "./qcstatementsqctype.js";
|
|
328
|
+
export * from "./rawcertificateresponse.js";
|
|
321
329
|
export * from "./rdate.js";
|
|
322
330
|
export * from "./rdp.js";
|
|
323
331
|
export * from "./rdpcertificateinfo.js";
|
|
@@ -346,6 +354,8 @@ export * from "./responseenvelopehosttimeline.js";
|
|
|
346
354
|
export * from "./responseenvelopelistcertificateasset.js";
|
|
347
355
|
export * from "./responseenvelopelistcollectionsresponsev1.js";
|
|
348
356
|
export * from "./responseenvelopelisthostasset.js";
|
|
357
|
+
export * from "./responseenvelopelistrawcertificateresponse.js";
|
|
358
|
+
export * from "./responseenvelopelistsearchconvertqueryresponse.js";
|
|
349
359
|
export * from "./responseenvelopelistwebpropertyasset.js";
|
|
350
360
|
export * from "./responseenvelopesearchaggregateresponse.js";
|
|
351
361
|
export * from "./responseenvelopesearchqueryresponse.js";
|
|
@@ -385,6 +395,8 @@ export * from "./searchaggregateinputbody.js";
|
|
|
385
395
|
export * from "./searchaggregateresponse.js";
|
|
386
396
|
export * from "./searchaggregateresponsebucket.js";
|
|
387
397
|
export * from "./searchcapabilities.js";
|
|
398
|
+
export * from "./searchconvertqueryinputbody.js";
|
|
399
|
+
export * from "./searchconvertqueryresponse.js";
|
|
388
400
|
export * from "./searchqueryhit.js";
|
|
389
401
|
export * from "./searchqueryinputbody.js";
|
|
390
402
|
export * from "./searchqueryresponse.js";
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OpenvpnMgmt = {
|
|
12
|
+
buildDate?: string | undefined;
|
|
13
|
+
features?: Array<string> | null | undefined;
|
|
14
|
+
managementVersion?: string | undefined;
|
|
15
|
+
openVpnVersion?: string | undefined;
|
|
16
|
+
targetTriple?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const OpenvpnMgmt$inboundSchema: z.ZodType<
|
|
21
|
+
OpenvpnMgmt,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
build_date: z.string().optional(),
|
|
26
|
+
features: z.nullable(z.array(z.string())).optional(),
|
|
27
|
+
management_version: z.string().optional(),
|
|
28
|
+
open_vpn_version: z.string().optional(),
|
|
29
|
+
target_triple: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"build_date": "buildDate",
|
|
33
|
+
"management_version": "managementVersion",
|
|
34
|
+
"open_vpn_version": "openVpnVersion",
|
|
35
|
+
"target_triple": "targetTriple",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type OpenvpnMgmt$Outbound = {
|
|
41
|
+
build_date?: string | undefined;
|
|
42
|
+
features?: Array<string> | null | undefined;
|
|
43
|
+
management_version?: string | undefined;
|
|
44
|
+
open_vpn_version?: string | undefined;
|
|
45
|
+
target_triple?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const OpenvpnMgmt$outboundSchema: z.ZodType<
|
|
50
|
+
OpenvpnMgmt$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
OpenvpnMgmt
|
|
53
|
+
> = z.object({
|
|
54
|
+
buildDate: z.string().optional(),
|
|
55
|
+
features: z.nullable(z.array(z.string())).optional(),
|
|
56
|
+
managementVersion: z.string().optional(),
|
|
57
|
+
openVpnVersion: z.string().optional(),
|
|
58
|
+
targetTriple: z.string().optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
buildDate: "build_date",
|
|
62
|
+
managementVersion: "management_version",
|
|
63
|
+
openVpnVersion: "open_vpn_version",
|
|
64
|
+
targetTriple: "target_triple",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace OpenvpnMgmt$ {
|
|
73
|
+
/** @deprecated use `OpenvpnMgmt$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = OpenvpnMgmt$inboundSchema;
|
|
75
|
+
/** @deprecated use `OpenvpnMgmt$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = OpenvpnMgmt$outboundSchema;
|
|
77
|
+
/** @deprecated use `OpenvpnMgmt$Outbound` instead. */
|
|
78
|
+
export type Outbound = OpenvpnMgmt$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function openvpnMgmtToJSON(openvpnMgmt: OpenvpnMgmt): string {
|
|
82
|
+
return JSON.stringify(OpenvpnMgmt$outboundSchema.parse(openvpnMgmt));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function openvpnMgmtFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<OpenvpnMgmt, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => OpenvpnMgmt$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'OpenvpnMgmt' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type RawCertificateResponse = {
|
|
12
|
+
certificateId: string;
|
|
13
|
+
pem: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const RawCertificateResponse$inboundSchema: z.ZodType<
|
|
18
|
+
RawCertificateResponse,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
certificate_id: z.string(),
|
|
23
|
+
pem: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"certificate_id": "certificateId",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type RawCertificateResponse$Outbound = {
|
|
32
|
+
certificate_id: string;
|
|
33
|
+
pem: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const RawCertificateResponse$outboundSchema: z.ZodType<
|
|
38
|
+
RawCertificateResponse$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
RawCertificateResponse
|
|
41
|
+
> = z.object({
|
|
42
|
+
certificateId: z.string(),
|
|
43
|
+
pem: z.string(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
certificateId: "certificate_id",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace RawCertificateResponse$ {
|
|
55
|
+
/** @deprecated use `RawCertificateResponse$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = RawCertificateResponse$inboundSchema;
|
|
57
|
+
/** @deprecated use `RawCertificateResponse$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = RawCertificateResponse$outboundSchema;
|
|
59
|
+
/** @deprecated use `RawCertificateResponse$Outbound` instead. */
|
|
60
|
+
export type Outbound = RawCertificateResponse$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function rawCertificateResponseToJSON(
|
|
64
|
+
rawCertificateResponse: RawCertificateResponse,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
RawCertificateResponse$outboundSchema.parse(rawCertificateResponse),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function rawCertificateResponseFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<RawCertificateResponse, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => RawCertificateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'RawCertificateResponse' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -44,6 +44,7 @@ export type Rdp = {
|
|
|
44
44
|
protocolFlags?: RdpProtocolFlags | undefined;
|
|
45
45
|
selectedSecurityProtocol?: RdpSecurityProtocol | undefined;
|
|
46
46
|
version?: RdpVersion | undefined;
|
|
47
|
+
x224CcPduDstref?: number | undefined;
|
|
47
48
|
x224CcPduSrcref?: number | undefined;
|
|
48
49
|
};
|
|
49
50
|
|
|
@@ -55,6 +56,7 @@ export const Rdp$inboundSchema: z.ZodType<Rdp, z.ZodTypeDef, unknown> = z
|
|
|
55
56
|
protocol_flags: RdpProtocolFlags$inboundSchema.optional(),
|
|
56
57
|
selected_security_protocol: RdpSecurityProtocol$inboundSchema.optional(),
|
|
57
58
|
version: RdpVersion$inboundSchema.optional(),
|
|
59
|
+
x224_cc_pdu_dstref: z.number().int().optional(),
|
|
58
60
|
x224_cc_pdu_srcref: z.number().int().optional(),
|
|
59
61
|
}).transform((v) => {
|
|
60
62
|
return remap$(v, {
|
|
@@ -62,6 +64,7 @@ export const Rdp$inboundSchema: z.ZodType<Rdp, z.ZodTypeDef, unknown> = z
|
|
|
62
64
|
"connect_response": "connectResponse",
|
|
63
65
|
"protocol_flags": "protocolFlags",
|
|
64
66
|
"selected_security_protocol": "selectedSecurityProtocol",
|
|
67
|
+
"x224_cc_pdu_dstref": "x224CcPduDstref",
|
|
65
68
|
"x224_cc_pdu_srcref": "x224CcPduSrcref",
|
|
66
69
|
});
|
|
67
70
|
});
|
|
@@ -73,6 +76,7 @@ export type Rdp$Outbound = {
|
|
|
73
76
|
protocol_flags?: RdpProtocolFlags$Outbound | undefined;
|
|
74
77
|
selected_security_protocol?: RdpSecurityProtocol$Outbound | undefined;
|
|
75
78
|
version?: RdpVersion$Outbound | undefined;
|
|
79
|
+
x224_cc_pdu_dstref?: number | undefined;
|
|
76
80
|
x224_cc_pdu_srcref?: number | undefined;
|
|
77
81
|
};
|
|
78
82
|
|
|
@@ -84,6 +88,7 @@ export const Rdp$outboundSchema: z.ZodType<Rdp$Outbound, z.ZodTypeDef, Rdp> = z
|
|
|
84
88
|
protocolFlags: RdpProtocolFlags$outboundSchema.optional(),
|
|
85
89
|
selectedSecurityProtocol: RdpSecurityProtocol$outboundSchema.optional(),
|
|
86
90
|
version: RdpVersion$outboundSchema.optional(),
|
|
91
|
+
x224CcPduDstref: z.number().int().optional(),
|
|
87
92
|
x224CcPduSrcref: z.number().int().optional(),
|
|
88
93
|
}).transform((v) => {
|
|
89
94
|
return remap$(v, {
|
|
@@ -91,6 +96,7 @@ export const Rdp$outboundSchema: z.ZodType<Rdp$Outbound, z.ZodTypeDef, Rdp> = z
|
|
|
91
96
|
connectResponse: "connect_response",
|
|
92
97
|
protocolFlags: "protocol_flags",
|
|
93
98
|
selectedSecurityProtocol: "selected_security_protocol",
|
|
99
|
+
x224CcPduDstref: "x224_cc_pdu_dstref",
|
|
94
100
|
x224CcPduSrcref: "x224_cc_pdu_srcref",
|
|
95
101
|
});
|
|
96
102
|
});
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
RawCertificateResponse,
|
|
11
|
+
RawCertificateResponse$inboundSchema,
|
|
12
|
+
RawCertificateResponse$Outbound,
|
|
13
|
+
RawCertificateResponse$outboundSchema,
|
|
14
|
+
} from "./rawcertificateresponse.js";
|
|
15
|
+
|
|
16
|
+
export type ResponseEnvelopeListRawCertificateResponse = {
|
|
17
|
+
result?: Array<RawCertificateResponse> | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ResponseEnvelopeListRawCertificateResponse$inboundSchema:
|
|
22
|
+
z.ZodType<ResponseEnvelopeListRawCertificateResponse, z.ZodTypeDef, unknown> =
|
|
23
|
+
z.object({
|
|
24
|
+
result: z.nullable(z.array(RawCertificateResponse$inboundSchema))
|
|
25
|
+
.optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type ResponseEnvelopeListRawCertificateResponse$Outbound = {
|
|
30
|
+
result?: Array<RawCertificateResponse$Outbound> | null | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ResponseEnvelopeListRawCertificateResponse$outboundSchema:
|
|
35
|
+
z.ZodType<
|
|
36
|
+
ResponseEnvelopeListRawCertificateResponse$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
ResponseEnvelopeListRawCertificateResponse
|
|
39
|
+
> = z.object({
|
|
40
|
+
result: z.nullable(z.array(RawCertificateResponse$outboundSchema))
|
|
41
|
+
.optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace ResponseEnvelopeListRawCertificateResponse$ {
|
|
49
|
+
/** @deprecated use `ResponseEnvelopeListRawCertificateResponse$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema =
|
|
51
|
+
ResponseEnvelopeListRawCertificateResponse$inboundSchema;
|
|
52
|
+
/** @deprecated use `ResponseEnvelopeListRawCertificateResponse$outboundSchema` instead. */
|
|
53
|
+
export const outboundSchema =
|
|
54
|
+
ResponseEnvelopeListRawCertificateResponse$outboundSchema;
|
|
55
|
+
/** @deprecated use `ResponseEnvelopeListRawCertificateResponse$Outbound` instead. */
|
|
56
|
+
export type Outbound = ResponseEnvelopeListRawCertificateResponse$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function responseEnvelopeListRawCertificateResponseToJSON(
|
|
60
|
+
responseEnvelopeListRawCertificateResponse:
|
|
61
|
+
ResponseEnvelopeListRawCertificateResponse,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
ResponseEnvelopeListRawCertificateResponse$outboundSchema.parse(
|
|
65
|
+
responseEnvelopeListRawCertificateResponse,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function responseEnvelopeListRawCertificateResponseFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<
|
|
73
|
+
ResponseEnvelopeListRawCertificateResponse,
|
|
74
|
+
SDKValidationError
|
|
75
|
+
> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) =>
|
|
79
|
+
ResponseEnvelopeListRawCertificateResponse$inboundSchema.parse(
|
|
80
|
+
JSON.parse(x),
|
|
81
|
+
),
|
|
82
|
+
`Failed to parse 'ResponseEnvelopeListRawCertificateResponse' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
SearchConvertQueryResponse,
|
|
11
|
+
SearchConvertQueryResponse$inboundSchema,
|
|
12
|
+
SearchConvertQueryResponse$Outbound,
|
|
13
|
+
SearchConvertQueryResponse$outboundSchema,
|
|
14
|
+
} from "./searchconvertqueryresponse.js";
|
|
15
|
+
|
|
16
|
+
export type ResponseEnvelopeListSearchConvertQueryResponse = {
|
|
17
|
+
result?: Array<SearchConvertQueryResponse> | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ResponseEnvelopeListSearchConvertQueryResponse$inboundSchema:
|
|
22
|
+
z.ZodType<
|
|
23
|
+
ResponseEnvelopeListSearchConvertQueryResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
result: z.nullable(z.array(SearchConvertQueryResponse$inboundSchema))
|
|
28
|
+
.optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ResponseEnvelopeListSearchConvertQueryResponse$Outbound = {
|
|
33
|
+
result?: Array<SearchConvertQueryResponse$Outbound> | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ResponseEnvelopeListSearchConvertQueryResponse$outboundSchema:
|
|
38
|
+
z.ZodType<
|
|
39
|
+
ResponseEnvelopeListSearchConvertQueryResponse$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
ResponseEnvelopeListSearchConvertQueryResponse
|
|
42
|
+
> = z.object({
|
|
43
|
+
result: z.nullable(z.array(SearchConvertQueryResponse$outboundSchema))
|
|
44
|
+
.optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace ResponseEnvelopeListSearchConvertQueryResponse$ {
|
|
52
|
+
/** @deprecated use `ResponseEnvelopeListSearchConvertQueryResponse$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema =
|
|
54
|
+
ResponseEnvelopeListSearchConvertQueryResponse$inboundSchema;
|
|
55
|
+
/** @deprecated use `ResponseEnvelopeListSearchConvertQueryResponse$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema =
|
|
57
|
+
ResponseEnvelopeListSearchConvertQueryResponse$outboundSchema;
|
|
58
|
+
/** @deprecated use `ResponseEnvelopeListSearchConvertQueryResponse$Outbound` instead. */
|
|
59
|
+
export type Outbound =
|
|
60
|
+
ResponseEnvelopeListSearchConvertQueryResponse$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function responseEnvelopeListSearchConvertQueryResponseToJSON(
|
|
64
|
+
responseEnvelopeListSearchConvertQueryResponse:
|
|
65
|
+
ResponseEnvelopeListSearchConvertQueryResponse,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
ResponseEnvelopeListSearchConvertQueryResponse$outboundSchema.parse(
|
|
69
|
+
responseEnvelopeListSearchConvertQueryResponse,
|
|
70
|
+
),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function responseEnvelopeListSearchConvertQueryResponseFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<
|
|
77
|
+
ResponseEnvelopeListSearchConvertQueryResponse,
|
|
78
|
+
SDKValidationError
|
|
79
|
+
> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) =>
|
|
83
|
+
ResponseEnvelopeListSearchConvertQueryResponse$inboundSchema.parse(
|
|
84
|
+
JSON.parse(x),
|
|
85
|
+
),
|
|
86
|
+
`Failed to parse 'ResponseEnvelopeListSearchConvertQueryResponse' from JSON`,
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -11,6 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
export type Screenshot = {
|
|
12
12
|
extractedText?: string | undefined;
|
|
13
13
|
handle?: string | undefined;
|
|
14
|
+
phash?: string | undefined;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
/** @internal */
|
|
@@ -21,6 +22,7 @@ export const Screenshot$inboundSchema: z.ZodType<
|
|
|
21
22
|
> = z.object({
|
|
22
23
|
extracted_text: z.string().optional(),
|
|
23
24
|
handle: z.string().optional(),
|
|
25
|
+
phash: z.string().optional(),
|
|
24
26
|
}).transform((v) => {
|
|
25
27
|
return remap$(v, {
|
|
26
28
|
"extracted_text": "extractedText",
|
|
@@ -31,6 +33,7 @@ export const Screenshot$inboundSchema: z.ZodType<
|
|
|
31
33
|
export type Screenshot$Outbound = {
|
|
32
34
|
extracted_text?: string | undefined;
|
|
33
35
|
handle?: string | undefined;
|
|
36
|
+
phash?: string | undefined;
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
/** @internal */
|
|
@@ -41,6 +44,7 @@ export const Screenshot$outboundSchema: z.ZodType<
|
|
|
41
44
|
> = z.object({
|
|
42
45
|
extractedText: z.string().optional(),
|
|
43
46
|
handle: z.string().optional(),
|
|
47
|
+
phash: z.string().optional(),
|
|
44
48
|
}).transform((v) => {
|
|
45
49
|
return remap$(v, {
|
|
46
50
|
extractedText: "extracted_text",
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 SearchConvertQueryInputBody = {
|
|
11
|
+
/**
|
|
12
|
+
* A list of Censys Search Language queries to convert. Limited to 100 queries.
|
|
13
|
+
*/
|
|
14
|
+
queries: Array<string> | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const SearchConvertQueryInputBody$inboundSchema: z.ZodType<
|
|
19
|
+
SearchConvertQueryInputBody,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
queries: z.nullable(z.array(z.string())),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type SearchConvertQueryInputBody$Outbound = {
|
|
28
|
+
queries: Array<string> | null;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const SearchConvertQueryInputBody$outboundSchema: z.ZodType<
|
|
33
|
+
SearchConvertQueryInputBody$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
SearchConvertQueryInputBody
|
|
36
|
+
> = z.object({
|
|
37
|
+
queries: z.nullable(z.array(z.string())),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace SearchConvertQueryInputBody$ {
|
|
45
|
+
/** @deprecated use `SearchConvertQueryInputBody$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = SearchConvertQueryInputBody$inboundSchema;
|
|
47
|
+
/** @deprecated use `SearchConvertQueryInputBody$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = SearchConvertQueryInputBody$outboundSchema;
|
|
49
|
+
/** @deprecated use `SearchConvertQueryInputBody$Outbound` instead. */
|
|
50
|
+
export type Outbound = SearchConvertQueryInputBody$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function searchConvertQueryInputBodyToJSON(
|
|
54
|
+
searchConvertQueryInputBody: SearchConvertQueryInputBody,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
SearchConvertQueryInputBody$outboundSchema.parse(
|
|
58
|
+
searchConvertQueryInputBody,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function searchConvertQueryInputBodyFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<SearchConvertQueryInputBody, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => SearchConvertQueryInputBody$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'SearchConvertQueryInputBody' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|