@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.
Files changed (230) hide show
  1. package/README.md +17 -17
  2. package/docs/sdks/globaldata/README.md +190 -92
  3. package/docs/sdks/threathunting/README.md +29 -21
  4. package/examples/globalDataSearch.example.ts +1 -1
  5. package/examples/package-lock.json +3 -3
  6. package/funcs/globalDataConvertLegacySearchQueries.d.ts +18 -0
  7. package/funcs/globalDataConvertLegacySearchQueries.d.ts.map +1 -0
  8. package/funcs/globalDataConvertLegacySearchQueries.js +134 -0
  9. package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -0
  10. package/funcs/globalDataCreateTrackedScan.d.ts +2 -2
  11. package/funcs/globalDataCreateTrackedScan.js +2 -2
  12. package/funcs/{globalDataGetTrackedScanThreatHunting.d.ts → globalDataGetCertificateRaw.d.ts} +4 -5
  13. package/funcs/globalDataGetCertificateRaw.d.ts.map +1 -0
  14. package/funcs/{globalDataGetHostObservationsWithCertificate.js → globalDataGetCertificateRaw.js} +10 -19
  15. package/funcs/globalDataGetCertificateRaw.js.map +1 -0
  16. package/funcs/globalDataGetCertificates.d.ts +1 -1
  17. package/funcs/globalDataGetCertificates.d.ts.map +1 -1
  18. package/funcs/globalDataGetCertificates.js +9 -6
  19. package/funcs/globalDataGetCertificates.js.map +1 -1
  20. package/funcs/globalDataGetCertificatesRaw.d.ts +18 -0
  21. package/funcs/globalDataGetCertificatesRaw.d.ts.map +1 -0
  22. package/funcs/globalDataGetCertificatesRaw.js +130 -0
  23. package/funcs/globalDataGetCertificatesRaw.js.map +1 -0
  24. package/funcs/globalDataGetHostTimeline.d.ts +1 -1
  25. package/funcs/globalDataGetHostTimeline.js +1 -1
  26. package/funcs/globalDataGetHosts.d.ts +1 -1
  27. package/funcs/globalDataGetHosts.d.ts.map +1 -1
  28. package/funcs/globalDataGetHosts.js +8 -6
  29. package/funcs/globalDataGetHosts.js.map +1 -1
  30. package/funcs/globalDataGetTrackedScan.d.ts +2 -3
  31. package/funcs/globalDataGetTrackedScan.d.ts.map +1 -1
  32. package/funcs/globalDataGetTrackedScan.js +2 -3
  33. package/funcs/globalDataGetTrackedScan.js.map +1 -1
  34. package/funcs/globalDataGetWebProperties.d.ts +1 -1
  35. package/funcs/globalDataGetWebProperties.d.ts.map +1 -1
  36. package/funcs/globalDataGetWebProperties.js +9 -6
  37. package/funcs/globalDataGetWebProperties.js.map +1 -1
  38. package/funcs/threatHuntingCreateTrackedScan.d.ts +2 -2
  39. package/funcs/threatHuntingCreateTrackedScan.js +2 -2
  40. package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts +18 -0
  41. package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts.map +1 -0
  42. package/funcs/threatHuntingGetHostObservationsWithCertificate.js +141 -0
  43. package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -0
  44. package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts +18 -0
  45. package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts.map +1 -0
  46. package/funcs/{globalDataGetTrackedScanThreatHunting.js → threatHuntingGetTrackedScanThreatHunting.js} +5 -6
  47. package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -0
  48. package/jsr.json +1 -1
  49. package/lib/config.d.ts +4 -4
  50. package/lib/config.js +4 -4
  51. package/lib/security.d.ts.map +1 -1
  52. package/lib/security.js.map +1 -1
  53. package/models/components/alternativequery.d.ts +69 -0
  54. package/models/components/alternativequery.d.ts.map +1 -0
  55. package/models/components/alternativequery.js +93 -0
  56. package/models/components/alternativequery.js.map +1 -0
  57. package/models/components/assetcertificatelistinputbody.d.ts +32 -0
  58. package/models/components/assetcertificatelistinputbody.d.ts.map +1 -0
  59. package/models/components/assetcertificatelistinputbody.js +78 -0
  60. package/models/components/assetcertificatelistinputbody.js.map +1 -0
  61. package/models/components/assethostlistinputbody.d.ts +32 -0
  62. package/models/components/assethostlistinputbody.d.ts.map +1 -0
  63. package/models/components/assethostlistinputbody.js +78 -0
  64. package/models/components/assethostlistinputbody.js.map +1 -0
  65. package/models/components/assetwebpropertylistinputbody.d.ts +32 -0
  66. package/models/components/assetwebpropertylistinputbody.d.ts.map +1 -0
  67. package/models/components/assetwebpropertylistinputbody.js +78 -0
  68. package/models/components/assetwebpropertylistinputbody.js.map +1 -0
  69. package/models/components/asteriskmanagerinterface.d.ts +29 -0
  70. package/models/components/asteriskmanagerinterface.d.ts.map +1 -0
  71. package/models/components/asteriskmanagerinterface.js +69 -0
  72. package/models/components/asteriskmanagerinterface.js.map +1 -0
  73. package/models/components/convertqueryerror.d.ts +32 -0
  74. package/models/components/convertqueryerror.d.ts.map +1 -0
  75. package/models/components/convertqueryerror.js +69 -0
  76. package/models/components/convertqueryerror.js.map +1 -0
  77. package/models/components/index.d.ts +12 -0
  78. package/models/components/index.d.ts.map +1 -1
  79. package/models/components/index.js +12 -0
  80. package/models/components/index.js.map +1 -1
  81. package/models/components/openvpnmgmt.d.ts +37 -0
  82. package/models/components/openvpnmgmt.d.ts.map +1 -0
  83. package/models/components/openvpnmgmt.js +92 -0
  84. package/models/components/openvpnmgmt.js.map +1 -0
  85. package/models/components/rawcertificateresponse.d.ts +31 -0
  86. package/models/components/rawcertificateresponse.d.ts.map +1 -0
  87. package/models/components/rawcertificateresponse.js +80 -0
  88. package/models/components/rawcertificateresponse.js.map +1 -0
  89. package/models/components/rdp.d.ts +2 -0
  90. package/models/components/rdp.d.ts.map +1 -1
  91. package/models/components/rdp.js +4 -0
  92. package/models/components/rdp.js.map +1 -1
  93. package/models/components/responseenvelopelistrawcertificateresponse.d.ts +30 -0
  94. package/models/components/responseenvelopelistrawcertificateresponse.d.ts.map +1 -0
  95. package/models/components/responseenvelopelistrawcertificateresponse.js +72 -0
  96. package/models/components/responseenvelopelistrawcertificateresponse.js.map +1 -0
  97. package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts +30 -0
  98. package/models/components/responseenvelopelistsearchconvertqueryresponse.d.ts.map +1 -0
  99. package/models/components/responseenvelopelistsearchconvertqueryresponse.js +72 -0
  100. package/models/components/responseenvelopelistsearchconvertqueryresponse.js.map +1 -0
  101. package/models/components/screenshot.d.ts +2 -0
  102. package/models/components/screenshot.d.ts.map +1 -1
  103. package/models/components/screenshot.js +2 -0
  104. package/models/components/screenshot.js.map +1 -1
  105. package/models/components/searchconvertqueryinputbody.d.ts +32 -0
  106. package/models/components/searchconvertqueryinputbody.d.ts.map +1 -0
  107. package/models/components/searchconvertqueryinputbody.js +69 -0
  108. package/models/components/searchconvertqueryinputbody.js.map +1 -0
  109. package/models/components/searchconvertqueryresponse.d.ts +91 -0
  110. package/models/components/searchconvertqueryresponse.d.ts.map +1 -0
  111. package/models/components/searchconvertqueryresponse.js +117 -0
  112. package/models/components/searchconvertqueryresponse.js.map +1 -0
  113. package/models/components/service.d.ts +6 -0
  114. package/models/components/service.d.ts.map +1 -1
  115. package/models/components/service.js +11 -0
  116. package/models/components/service.js.map +1 -1
  117. package/models/components/servicescan.d.ts +6 -0
  118. package/models/components/servicescan.d.ts.map +1 -1
  119. package/models/components/servicescan.js +10 -0
  120. package/models/components/servicescan.js.map +1 -1
  121. package/models/operations/index.d.ts +7 -4
  122. package/models/operations/index.d.ts.map +1 -1
  123. package/models/operations/index.js +7 -4
  124. package/models/operations/index.js.map +1 -1
  125. package/models/operations/v3globaldataassetcertificatelistpost.d.ts +91 -0
  126. package/models/operations/v3globaldataassetcertificatelistpost.d.ts.map +1 -0
  127. package/models/operations/v3globaldataassetcertificatelistpost.js +157 -0
  128. package/models/operations/v3globaldataassetcertificatelistpost.js.map +1 -0
  129. package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts +91 -0
  130. package/models/operations/v3globaldataassetcertificatelistrawpost.d.ts.map +1 -0
  131. package/models/operations/v3globaldataassetcertificatelistrawpost.js +157 -0
  132. package/models/operations/v3globaldataassetcertificatelistrawpost.js.map +1 -0
  133. package/models/operations/v3globaldataassetcertificateraw.d.ts +93 -0
  134. package/models/operations/v3globaldataassetcertificateraw.d.ts.map +1 -0
  135. package/models/operations/v3globaldataassetcertificateraw.js +156 -0
  136. package/models/operations/v3globaldataassetcertificateraw.js.map +1 -0
  137. package/models/operations/v3globaldataassethostlistpost.d.ts +91 -0
  138. package/models/operations/v3globaldataassethostlistpost.d.ts.map +1 -0
  139. package/models/operations/v3globaldataassethostlistpost.js +157 -0
  140. package/models/operations/v3globaldataassethostlistpost.js.map +1 -0
  141. package/models/operations/v3globaldataassethosttimeline.d.ts +2 -2
  142. package/models/operations/v3globaldataassetwebpropertylistpost.d.ts +91 -0
  143. package/models/operations/v3globaldataassetwebpropertylistpost.d.ts.map +1 -0
  144. package/models/operations/v3globaldataassetwebpropertylistpost.js +157 -0
  145. package/models/operations/v3globaldataassetwebpropertylistpost.js.map +1 -0
  146. package/models/operations/v3globaldatasearchconvert.d.ts +91 -0
  147. package/models/operations/v3globaldatasearchconvert.d.ts.map +1 -0
  148. package/models/operations/v3globaldatasearchconvert.js +157 -0
  149. package/models/operations/v3globaldatasearchconvert.js.map +1 -0
  150. package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts +124 -0
  151. package/models/operations/v3threathuntinggethostobservationswithcertificate.d.ts.map +1 -0
  152. package/models/operations/v3threathuntinggethostobservationswithcertificate.js +183 -0
  153. package/models/operations/v3threathuntinggethostobservationswithcertificate.js.map +1 -0
  154. package/package.json +3 -3
  155. package/sdk/globaldata.d.ts +24 -19
  156. package/sdk/globaldata.d.ts.map +1 -1
  157. package/sdk/globaldata.js +29 -21
  158. package/sdk/globaldata.js.map +1 -1
  159. package/sdk/threathunting.d.ts +7 -9
  160. package/sdk/threathunting.d.ts.map +1 -1
  161. package/sdk/threathunting.js +11 -13
  162. package/sdk/threathunting.js.map +1 -1
  163. package/src/funcs/globalDataConvertLegacySearchQueries.ts +188 -0
  164. package/src/funcs/globalDataCreateTrackedScan.ts +2 -2
  165. package/src/funcs/{globalDataGetHostObservationsWithCertificate.ts → globalDataGetCertificateRaw.ts} +19 -26
  166. package/src/funcs/globalDataGetCertificates.ts +15 -14
  167. package/src/funcs/globalDataGetCertificatesRaw.ts +187 -0
  168. package/src/funcs/globalDataGetHostTimeline.ts +1 -1
  169. package/src/funcs/globalDataGetHosts.ts +24 -16
  170. package/src/funcs/globalDataGetTrackedScan.ts +2 -3
  171. package/src/funcs/globalDataGetWebProperties.ts +15 -14
  172. package/src/funcs/threatHuntingCreateTrackedScan.ts +2 -2
  173. package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +201 -0
  174. package/src/funcs/{globalDataGetTrackedScanThreatHunting.ts → threatHuntingGetTrackedScanThreatHunting.ts} +3 -4
  175. package/src/lib/config.ts +4 -4
  176. package/src/lib/security.ts +4 -1
  177. package/src/models/components/alternativequery.ts +104 -0
  178. package/src/models/components/assetcertificatelistinputbody.ts +80 -0
  179. package/src/models/components/assethostlistinputbody.ts +78 -0
  180. package/src/models/components/assetwebpropertylistinputbody.ts +80 -0
  181. package/src/models/components/asteriskmanagerinterface.ts +66 -0
  182. package/src/models/components/convertqueryerror.ts +69 -0
  183. package/src/models/components/index.ts +12 -0
  184. package/src/models/components/openvpnmgmt.ts +93 -0
  185. package/src/models/components/rawcertificateresponse.ts +79 -0
  186. package/src/models/components/rdp.ts +6 -0
  187. package/src/models/components/responseenvelopelistrawcertificateresponse.ts +84 -0
  188. package/src/models/components/responseenvelopelistsearchconvertqueryresponse.ts +88 -0
  189. package/src/models/components/screenshot.ts +4 -0
  190. package/src/models/components/searchconvertqueryinputbody.ts +71 -0
  191. package/src/models/components/searchconvertqueryresponse.ts +166 -0
  192. package/src/models/components/service.ts +25 -0
  193. package/src/models/components/servicescan.ts +24 -0
  194. package/src/models/operations/index.ts +7 -4
  195. package/src/models/operations/v3globaldataassetcertificatelistpost.ts +265 -0
  196. package/src/models/operations/v3globaldataassetcertificatelistrawpost.ts +269 -0
  197. package/src/models/operations/v3globaldataassetcertificateraw.ts +248 -0
  198. package/src/models/operations/v3globaldataassethostlistpost.ts +238 -0
  199. package/src/models/operations/v3globaldataassethosttimeline.ts +2 -2
  200. package/src/models/operations/v3globaldataassetwebpropertylistpost.ts +265 -0
  201. package/src/models/operations/v3globaldatasearchconvert.ts +234 -0
  202. package/src/models/operations/v3threathuntinggethostobservationswithcertificate.ts +315 -0
  203. package/src/sdk/globaldata.ts +49 -35
  204. package/src/sdk/threathunting.ts +16 -15
  205. package/tests/sdk.test.ts +2 -2
  206. package/funcs/globalDataGetHostObservationsWithCertificate.d.ts +0 -18
  207. package/funcs/globalDataGetHostObservationsWithCertificate.d.ts.map +0 -1
  208. package/funcs/globalDataGetHostObservationsWithCertificate.js.map +0 -1
  209. package/funcs/globalDataGetTrackedScanThreatHunting.d.ts.map +0 -1
  210. package/funcs/globalDataGetTrackedScanThreatHunting.js.map +0 -1
  211. package/models/operations/v3globaldataassetcertificatelist.d.ts +0 -94
  212. package/models/operations/v3globaldataassetcertificatelist.d.ts.map +0 -1
  213. package/models/operations/v3globaldataassetcertificatelist.js +0 -157
  214. package/models/operations/v3globaldataassetcertificatelist.js.map +0 -1
  215. package/models/operations/v3globaldataassethostlist.d.ts +0 -94
  216. package/models/operations/v3globaldataassethostlist.d.ts.map +0 -1
  217. package/models/operations/v3globaldataassethostlist.js +0 -157
  218. package/models/operations/v3globaldataassethostlist.js.map +0 -1
  219. package/models/operations/v3globaldataassetwebpropertylist.d.ts +0 -94
  220. package/models/operations/v3globaldataassetwebpropertylist.d.ts.map +0 -1
  221. package/models/operations/v3globaldataassetwebpropertylist.js +0 -157
  222. package/models/operations/v3globaldataassetwebpropertylist.js.map +0 -1
  223. package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts +0 -124
  224. package/models/operations/v3globaldatagethostobservationswithcertificate.d.ts.map +0 -1
  225. package/models/operations/v3globaldatagethostobservationswithcertificate.js +0 -178
  226. package/models/operations/v3globaldatagethostobservationswithcertificate.js.map +0 -1
  227. package/src/models/operations/v3globaldataassetcertificatelist.ts +0 -259
  228. package/src/models/operations/v3globaldataassethostlist.ts +0 -233
  229. package/src/models/operations/v3globaldataassetwebpropertylist.ts +0 -259
  230. 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
+ }