@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,166 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ AlternativeQuery,
13
+ AlternativeQuery$inboundSchema,
14
+ AlternativeQuery$Outbound,
15
+ AlternativeQuery$outboundSchema,
16
+ } from "./alternativequery.js";
17
+ import {
18
+ ConvertQueryError,
19
+ ConvertQueryError$inboundSchema,
20
+ ConvertQueryError$Outbound,
21
+ ConvertQueryError$outboundSchema,
22
+ } from "./convertqueryerror.js";
23
+
24
+ export const SearchConvertQueryResponseTargets = {
25
+ Host: "host",
26
+ Web: "web",
27
+ Cert: "cert",
28
+ Unknown: "unknown",
29
+ } as const;
30
+ export type SearchConvertQueryResponseTargets = ClosedEnum<
31
+ typeof SearchConvertQueryResponseTargets
32
+ >;
33
+
34
+ export type SearchConvertQueryResponse = {
35
+ /**
36
+ * Alternative queries that may be used. For example, a query that includes web results in addition to host results.
37
+ */
38
+ alternativeQueries?: Array<AlternativeQuery> | null | undefined;
39
+ /**
40
+ * Comments about the query conversion.
41
+ */
42
+ comments?: Array<string> | null | undefined;
43
+ /**
44
+ * The original query, converted to CenQL syntax. This may be empty if unable to translate the query.
45
+ */
46
+ convertedQuery?: string | undefined;
47
+ /**
48
+ * The error messages if the query could not be converted.
49
+ */
50
+ errors: Array<ConvertQueryError> | null;
51
+ /**
52
+ * The original Censys Search Language query.
53
+ */
54
+ originalQuery: string;
55
+ /**
56
+ * The types of Platform data records (host, cert, and web) that can be targeted by the converted query. Note: Does not include targets that could be returned due to full-document search. This may be empty if the query is a match-all for full-document search query.
57
+ */
58
+ targets: Array<SearchConvertQueryResponseTargets> | null;
59
+ };
60
+
61
+ /** @internal */
62
+ export const SearchConvertQueryResponseTargets$inboundSchema: z.ZodNativeEnum<
63
+ typeof SearchConvertQueryResponseTargets
64
+ > = z.nativeEnum(SearchConvertQueryResponseTargets);
65
+
66
+ /** @internal */
67
+ export const SearchConvertQueryResponseTargets$outboundSchema: z.ZodNativeEnum<
68
+ typeof SearchConvertQueryResponseTargets
69
+ > = SearchConvertQueryResponseTargets$inboundSchema;
70
+
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ export namespace SearchConvertQueryResponseTargets$ {
76
+ /** @deprecated use `SearchConvertQueryResponseTargets$inboundSchema` instead. */
77
+ export const inboundSchema = SearchConvertQueryResponseTargets$inboundSchema;
78
+ /** @deprecated use `SearchConvertQueryResponseTargets$outboundSchema` instead. */
79
+ export const outboundSchema =
80
+ SearchConvertQueryResponseTargets$outboundSchema;
81
+ }
82
+
83
+ /** @internal */
84
+ export const SearchConvertQueryResponse$inboundSchema: z.ZodType<
85
+ SearchConvertQueryResponse,
86
+ z.ZodTypeDef,
87
+ unknown
88
+ > = z.object({
89
+ alternative_queries: z.nullable(z.array(AlternativeQuery$inboundSchema))
90
+ .optional(),
91
+ comments: z.nullable(z.array(z.string())).optional(),
92
+ converted_query: z.string().optional(),
93
+ errors: z.nullable(z.array(ConvertQueryError$inboundSchema)),
94
+ original_query: z.string(),
95
+ targets: z.nullable(z.array(SearchConvertQueryResponseTargets$inboundSchema)),
96
+ }).transform((v) => {
97
+ return remap$(v, {
98
+ "alternative_queries": "alternativeQueries",
99
+ "converted_query": "convertedQuery",
100
+ "original_query": "originalQuery",
101
+ });
102
+ });
103
+
104
+ /** @internal */
105
+ export type SearchConvertQueryResponse$Outbound = {
106
+ alternative_queries?: Array<AlternativeQuery$Outbound> | null | undefined;
107
+ comments?: Array<string> | null | undefined;
108
+ converted_query?: string | undefined;
109
+ errors: Array<ConvertQueryError$Outbound> | null;
110
+ original_query: string;
111
+ targets: Array<string> | null;
112
+ };
113
+
114
+ /** @internal */
115
+ export const SearchConvertQueryResponse$outboundSchema: z.ZodType<
116
+ SearchConvertQueryResponse$Outbound,
117
+ z.ZodTypeDef,
118
+ SearchConvertQueryResponse
119
+ > = z.object({
120
+ alternativeQueries: z.nullable(z.array(AlternativeQuery$outboundSchema))
121
+ .optional(),
122
+ comments: z.nullable(z.array(z.string())).optional(),
123
+ convertedQuery: z.string().optional(),
124
+ errors: z.nullable(z.array(ConvertQueryError$outboundSchema)),
125
+ originalQuery: z.string(),
126
+ targets: z.nullable(
127
+ z.array(SearchConvertQueryResponseTargets$outboundSchema),
128
+ ),
129
+ }).transform((v) => {
130
+ return remap$(v, {
131
+ alternativeQueries: "alternative_queries",
132
+ convertedQuery: "converted_query",
133
+ originalQuery: "original_query",
134
+ });
135
+ });
136
+
137
+ /**
138
+ * @internal
139
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
+ */
141
+ export namespace SearchConvertQueryResponse$ {
142
+ /** @deprecated use `SearchConvertQueryResponse$inboundSchema` instead. */
143
+ export const inboundSchema = SearchConvertQueryResponse$inboundSchema;
144
+ /** @deprecated use `SearchConvertQueryResponse$outboundSchema` instead. */
145
+ export const outboundSchema = SearchConvertQueryResponse$outboundSchema;
146
+ /** @deprecated use `SearchConvertQueryResponse$Outbound` instead. */
147
+ export type Outbound = SearchConvertQueryResponse$Outbound;
148
+ }
149
+
150
+ export function searchConvertQueryResponseToJSON(
151
+ searchConvertQueryResponse: SearchConvertQueryResponse,
152
+ ): string {
153
+ return JSON.stringify(
154
+ SearchConvertQueryResponse$outboundSchema.parse(searchConvertQueryResponse),
155
+ );
156
+ }
157
+
158
+ export function searchConvertQueryResponseFromJSON(
159
+ jsonString: string,
160
+ ): SafeParseResult<SearchConvertQueryResponse, SDKValidationError> {
161
+ return safeParse(
162
+ jsonString,
163
+ (x) => SearchConvertQueryResponse$inboundSchema.parse(JSON.parse(x)),
164
+ `Failed to parse 'SearchConvertQueryResponse' from JSON`,
165
+ );
166
+ }
@@ -26,6 +26,12 @@ import {
26
26
  AnyConnect$Outbound,
27
27
  AnyConnect$outboundSchema,
28
28
  } from "./anyconnect.js";
29
+ import {
30
+ AsteriskManagerInterface,
31
+ AsteriskManagerInterface$inboundSchema,
32
+ AsteriskManagerInterface$Outbound,
33
+ AsteriskManagerInterface$outboundSchema,
34
+ } from "./asteriskmanagerinterface.js";
29
35
  import {
30
36
  Attribute,
31
37
  Attribute$inboundSchema,
@@ -416,6 +422,12 @@ import {
416
422
  Openvpn$Outbound,
417
423
  Openvpn$outboundSchema,
418
424
  } from "./openvpn.js";
425
+ import {
426
+ OpenvpnMgmt,
427
+ OpenvpnMgmt$inboundSchema,
428
+ OpenvpnMgmt$Outbound,
429
+ OpenvpnMgmt$outboundSchema,
430
+ } from "./openvpnmgmt.js";
419
431
  import {
420
432
  Oracle,
421
433
  Oracle$inboundSchema,
@@ -751,6 +763,7 @@ export type Service = {
751
763
  activemq?: Activemq | undefined;
752
764
  amqp?: Amqp | undefined;
753
765
  anyConnect?: AnyConnect | undefined;
766
+ asteriskManagerInterface?: AsteriskManagerInterface | undefined;
754
767
  bacnet?: Bacnet | undefined;
755
768
  banner?: string | undefined;
756
769
  bannerHashSha256?: string | undefined;
@@ -822,6 +835,7 @@ export type Service = {
822
835
  onvif?: Onvif | undefined;
823
836
  opcUa?: OpcUa | undefined;
824
837
  openvpn?: Openvpn | undefined;
838
+ openvpnMgmt?: OpenvpnMgmt | undefined;
825
839
  operatingSystems?: Array<Attribute> | null | undefined;
826
840
  oracle?: Oracle | undefined;
827
841
  pcAnywhere?: PcAnywhere | undefined;
@@ -910,6 +924,8 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
910
924
  activemq: Activemq$inboundSchema.optional(),
911
925
  amqp: Amqp$inboundSchema.optional(),
912
926
  any_connect: AnyConnect$inboundSchema.optional(),
927
+ asterisk_manager_interface: AsteriskManagerInterface$inboundSchema
928
+ .optional(),
913
929
  bacnet: Bacnet$inboundSchema.optional(),
914
930
  banner: z.string().optional(),
915
931
  banner_hash_sha256: z.string().optional(),
@@ -981,6 +997,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
981
997
  onvif: Onvif$inboundSchema.optional(),
982
998
  opc_ua: OpcUa$inboundSchema.optional(),
983
999
  openvpn: Openvpn$inboundSchema.optional(),
1000
+ openvpn_mgmt: OpenvpnMgmt$inboundSchema.optional(),
984
1001
  operating_systems: z.nullable(z.array(Attribute$inboundSchema)).optional(),
985
1002
  oracle: Oracle$inboundSchema.optional(),
986
1003
  pc_anywhere: PcAnywhere$inboundSchema.optional(),
@@ -1043,6 +1060,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
1043
1060
  }).transform((v) => {
1044
1061
  return remap$(v, {
1045
1062
  "any_connect": "anyConnect",
1063
+ "asterisk_manager_interface": "asteriskManagerInterface",
1046
1064
  "banner_hash_sha256": "bannerHashSha256",
1047
1065
  "banner_hex": "bannerHex",
1048
1066
  "checkpoint_topology": "checkpointTopology",
@@ -1056,6 +1074,7 @@ export const Service$inboundSchema: z.ZodType<Service, z.ZodTypeDef, unknown> =
1056
1074
  "nats_io": "natsIo",
1057
1075
  "nfs_mountd": "nfsMountd",
1058
1076
  "opc_ua": "opcUa",
1077
+ "openvpn_mgmt": "openvpnMgmt",
1059
1078
  "operating_systems": "operatingSystems",
1060
1079
  "pc_anywhere": "pcAnywhere",
1061
1080
  "profinet_cm": "profinetCm",
@@ -1079,6 +1098,7 @@ export type Service$Outbound = {
1079
1098
  activemq?: Activemq$Outbound | undefined;
1080
1099
  amqp?: Amqp$Outbound | undefined;
1081
1100
  any_connect?: AnyConnect$Outbound | undefined;
1101
+ asterisk_manager_interface?: AsteriskManagerInterface$Outbound | undefined;
1082
1102
  bacnet?: Bacnet$Outbound | undefined;
1083
1103
  banner?: string | undefined;
1084
1104
  banner_hash_sha256?: string | undefined;
@@ -1150,6 +1170,7 @@ export type Service$Outbound = {
1150
1170
  onvif?: Onvif$Outbound | undefined;
1151
1171
  opc_ua?: OpcUa$Outbound | undefined;
1152
1172
  openvpn?: Openvpn$Outbound | undefined;
1173
+ openvpn_mgmt?: OpenvpnMgmt$Outbound | undefined;
1153
1174
  operating_systems?: Array<Attribute$Outbound> | null | undefined;
1154
1175
  oracle?: Oracle$Outbound | undefined;
1155
1176
  pc_anywhere?: PcAnywhere$Outbound | undefined;
@@ -1220,6 +1241,7 @@ export const Service$outboundSchema: z.ZodType<
1220
1241
  activemq: Activemq$outboundSchema.optional(),
1221
1242
  amqp: Amqp$outboundSchema.optional(),
1222
1243
  anyConnect: AnyConnect$outboundSchema.optional(),
1244
+ asteriskManagerInterface: AsteriskManagerInterface$outboundSchema.optional(),
1223
1245
  bacnet: Bacnet$outboundSchema.optional(),
1224
1246
  banner: z.string().optional(),
1225
1247
  bannerHashSha256: z.string().optional(),
@@ -1291,6 +1313,7 @@ export const Service$outboundSchema: z.ZodType<
1291
1313
  onvif: Onvif$outboundSchema.optional(),
1292
1314
  opcUa: OpcUa$outboundSchema.optional(),
1293
1315
  openvpn: Openvpn$outboundSchema.optional(),
1316
+ openvpnMgmt: OpenvpnMgmt$outboundSchema.optional(),
1294
1317
  operatingSystems: z.nullable(z.array(Attribute$outboundSchema)).optional(),
1295
1318
  oracle: Oracle$outboundSchema.optional(),
1296
1319
  pcAnywhere: PcAnywhere$outboundSchema.optional(),
@@ -1353,6 +1376,7 @@ export const Service$outboundSchema: z.ZodType<
1353
1376
  }).transform((v) => {
1354
1377
  return remap$(v, {
1355
1378
  anyConnect: "any_connect",
1379
+ asteriskManagerInterface: "asterisk_manager_interface",
1356
1380
  bannerHashSha256: "banner_hash_sha256",
1357
1381
  bannerHex: "banner_hex",
1358
1382
  checkpointTopology: "checkpoint_topology",
@@ -1366,6 +1390,7 @@ export const Service$outboundSchema: z.ZodType<
1366
1390
  natsIo: "nats_io",
1367
1391
  nfsMountd: "nfs_mountd",
1368
1392
  opcUa: "opc_ua",
1393
+ openvpnMgmt: "openvpn_mgmt",
1369
1394
  operatingSystems: "operating_systems",
1370
1395
  pcAnywhere: "pc_anywhere",
1371
1396
  profinetCm: "profinet_cm",
@@ -26,6 +26,12 @@ import {
26
26
  AnyConnect$Outbound,
27
27
  AnyConnect$outboundSchema,
28
28
  } from "./anyconnect.js";
29
+ import {
30
+ AsteriskManagerInterface,
31
+ AsteriskManagerInterface$inboundSchema,
32
+ AsteriskManagerInterface$Outbound,
33
+ AsteriskManagerInterface$outboundSchema,
34
+ } from "./asteriskmanagerinterface.js";
29
35
  import {
30
36
  Bacnet,
31
37
  Bacnet$inboundSchema,
@@ -380,6 +386,12 @@ import {
380
386
  Openvpn$Outbound,
381
387
  Openvpn$outboundSchema,
382
388
  } from "./openvpn.js";
389
+ import {
390
+ OpenvpnMgmt,
391
+ OpenvpnMgmt$inboundSchema,
392
+ OpenvpnMgmt$Outbound,
393
+ OpenvpnMgmt$outboundSchema,
394
+ } from "./openvpnmgmt.js";
383
395
  import {
384
396
  Oracle,
385
397
  Oracle$inboundSchema,
@@ -697,6 +709,7 @@ export type ServiceScan = {
697
709
  activemq?: Activemq | undefined;
698
710
  amqp?: Amqp | undefined;
699
711
  anyConnect?: AnyConnect | undefined;
712
+ asteriskManagerInterface?: AsteriskManagerInterface | undefined;
700
713
  bacnet?: Bacnet | undefined;
701
714
  banner?: string | undefined;
702
715
  bannerHashSha256?: string | undefined;
@@ -760,6 +773,7 @@ export type ServiceScan = {
760
773
  onvif?: Onvif | undefined;
761
774
  opcUa?: OpcUa | undefined;
762
775
  openvpn?: Openvpn | undefined;
776
+ openvpnMgmt?: OpenvpnMgmt | undefined;
763
777
  oracle?: Oracle | undefined;
764
778
  pcAnywhere?: PcAnywhere | undefined;
765
779
  pgbouncer?: Pgbouncer | undefined;
@@ -847,6 +861,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
847
861
  activemq: Activemq$inboundSchema.optional(),
848
862
  amqp: Amqp$inboundSchema.optional(),
849
863
  any_connect: AnyConnect$inboundSchema.optional(),
864
+ asterisk_manager_interface: AsteriskManagerInterface$inboundSchema.optional(),
850
865
  bacnet: Bacnet$inboundSchema.optional(),
851
866
  banner: z.string().optional(),
852
867
  banner_hash_sha256: z.string().optional(),
@@ -910,6 +925,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
910
925
  onvif: Onvif$inboundSchema.optional(),
911
926
  opc_ua: OpcUa$inboundSchema.optional(),
912
927
  openvpn: Openvpn$inboundSchema.optional(),
928
+ openvpn_mgmt: OpenvpnMgmt$inboundSchema.optional(),
913
929
  oracle: Oracle$inboundSchema.optional(),
914
930
  pc_anywhere: PcAnywhere$inboundSchema.optional(),
915
931
  pgbouncer: Pgbouncer$inboundSchema.optional(),
@@ -968,6 +984,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
968
984
  }).transform((v) => {
969
985
  return remap$(v, {
970
986
  "any_connect": "anyConnect",
987
+ "asterisk_manager_interface": "asteriskManagerInterface",
971
988
  "banner_hash_sha256": "bannerHashSha256",
972
989
  "checkpoint_topology": "checkpointTopology",
973
990
  "cisco_ipsla": "ciscoIpsla",
@@ -981,6 +998,7 @@ export const ServiceScan$inboundSchema: z.ZodType<
981
998
  "nats_io": "natsIo",
982
999
  "nfs_mountd": "nfsMountd",
983
1000
  "opc_ua": "opcUa",
1001
+ "openvpn_mgmt": "openvpnMgmt",
984
1002
  "pc_anywhere": "pcAnywhere",
985
1003
  "profinet_cm": "profinetCm",
986
1004
  "redlion_crimson": "redlionCrimson",
@@ -1003,6 +1021,7 @@ export type ServiceScan$Outbound = {
1003
1021
  activemq?: Activemq$Outbound | undefined;
1004
1022
  amqp?: Amqp$Outbound | undefined;
1005
1023
  any_connect?: AnyConnect$Outbound | undefined;
1024
+ asterisk_manager_interface?: AsteriskManagerInterface$Outbound | undefined;
1006
1025
  bacnet?: Bacnet$Outbound | undefined;
1007
1026
  banner?: string | undefined;
1008
1027
  banner_hash_sha256?: string | undefined;
@@ -1066,6 +1085,7 @@ export type ServiceScan$Outbound = {
1066
1085
  onvif?: Onvif$Outbound | undefined;
1067
1086
  opc_ua?: OpcUa$Outbound | undefined;
1068
1087
  openvpn?: Openvpn$Outbound | undefined;
1088
+ openvpn_mgmt?: OpenvpnMgmt$Outbound | undefined;
1069
1089
  oracle?: Oracle$Outbound | undefined;
1070
1090
  pc_anywhere?: PcAnywhere$Outbound | undefined;
1071
1091
  pgbouncer?: Pgbouncer$Outbound | undefined;
@@ -1132,6 +1152,7 @@ export const ServiceScan$outboundSchema: z.ZodType<
1132
1152
  activemq: Activemq$outboundSchema.optional(),
1133
1153
  amqp: Amqp$outboundSchema.optional(),
1134
1154
  anyConnect: AnyConnect$outboundSchema.optional(),
1155
+ asteriskManagerInterface: AsteriskManagerInterface$outboundSchema.optional(),
1135
1156
  bacnet: Bacnet$outboundSchema.optional(),
1136
1157
  banner: z.string().optional(),
1137
1158
  bannerHashSha256: z.string().optional(),
@@ -1195,6 +1216,7 @@ export const ServiceScan$outboundSchema: z.ZodType<
1195
1216
  onvif: Onvif$outboundSchema.optional(),
1196
1217
  opcUa: OpcUa$outboundSchema.optional(),
1197
1218
  openvpn: Openvpn$outboundSchema.optional(),
1219
+ openvpnMgmt: OpenvpnMgmt$outboundSchema.optional(),
1198
1220
  oracle: Oracle$outboundSchema.optional(),
1199
1221
  pcAnywhere: PcAnywhere$outboundSchema.optional(),
1200
1222
  pgbouncer: Pgbouncer$outboundSchema.optional(),
@@ -1253,6 +1275,7 @@ export const ServiceScan$outboundSchema: z.ZodType<
1253
1275
  }).transform((v) => {
1254
1276
  return remap$(v, {
1255
1277
  anyConnect: "any_connect",
1278
+ asteriskManagerInterface: "asterisk_manager_interface",
1256
1279
  bannerHashSha256: "banner_hash_sha256",
1257
1280
  checkpointTopology: "checkpoint_topology",
1258
1281
  ciscoIpsla: "cisco_ipsla",
@@ -1266,6 +1289,7 @@ export const ServiceScan$outboundSchema: z.ZodType<
1266
1289
  natsIo: "nats_io",
1267
1290
  nfsMountd: "nfs_mountd",
1268
1291
  opcUa: "opc_ua",
1292
+ openvpnMgmt: "openvpn_mgmt",
1269
1293
  pcAnywhere: "pc_anywhere",
1270
1294
  profinetCm: "profinet_cm",
1271
1295
  redlionCrimson: "redlion_crimson",
@@ -11,17 +11,20 @@ export * from "./v3collectionslistevents.js";
11
11
  export * from "./v3collectionssearchaggregate.js";
12
12
  export * from "./v3collectionssearchquery.js";
13
13
  export * from "./v3globaldataassetcertificate.js";
14
- export * from "./v3globaldataassetcertificatelist.js";
14
+ export * from "./v3globaldataassetcertificatelistpost.js";
15
+ export * from "./v3globaldataassetcertificatelistrawpost.js";
16
+ export * from "./v3globaldataassetcertificateraw.js";
15
17
  export * from "./v3globaldataassethost.js";
16
- export * from "./v3globaldataassethostlist.js";
18
+ export * from "./v3globaldataassethostlistpost.js";
17
19
  export * from "./v3globaldataassethosttimeline.js";
18
20
  export * from "./v3globaldataassetwebproperty.js";
19
- export * from "./v3globaldataassetwebpropertylist.js";
20
- export * from "./v3globaldatagethostobservationswithcertificate.js";
21
+ export * from "./v3globaldataassetwebpropertylistpost.js";
21
22
  export * from "./v3globaldatascansget.js";
22
23
  export * from "./v3globaldatascansrescan.js";
23
24
  export * from "./v3globaldatasearchaggregate.js";
25
+ export * from "./v3globaldatasearchconvert.js";
24
26
  export * from "./v3globaldatasearchquery.js";
27
+ export * from "./v3threathuntinggethostobservationswithcertificate.js";
25
28
  export * from "./v3threathuntingscansdiscovery.js";
26
29
  export * from "./v3threathuntingscansget.js";
27
30
  export * from "./v3threathuntingvaluecounts.js";
@@ -0,0 +1,265 @@
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type V3GlobaldataAssetCertificateListPostGlobals = {
13
+ organizationId?: string | undefined;
14
+ };
15
+
16
+ export type V3GlobaldataAssetCertificateListPostRequest = {
17
+ /**
18
+ * The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-set-your-organization-id) for more information.
19
+ */
20
+ organizationId?: string | undefined;
21
+ assetCertificateListInputBody: components.AssetCertificateListInputBody;
22
+ };
23
+
24
+ export type V3GlobaldataAssetCertificateListPostResponse = {
25
+ headers: { [k: string]: Array<string> };
26
+ result: components.ResponseEnvelopeListCertificateAsset;
27
+ };
28
+
29
+ /** @internal */
30
+ export const V3GlobaldataAssetCertificateListPostGlobals$inboundSchema:
31
+ z.ZodType<
32
+ V3GlobaldataAssetCertificateListPostGlobals,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ organization_id: z.string().optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "organization_id": "organizationId",
40
+ });
41
+ });
42
+
43
+ /** @internal */
44
+ export type V3GlobaldataAssetCertificateListPostGlobals$Outbound = {
45
+ organization_id?: string | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const V3GlobaldataAssetCertificateListPostGlobals$outboundSchema:
50
+ z.ZodType<
51
+ V3GlobaldataAssetCertificateListPostGlobals$Outbound,
52
+ z.ZodTypeDef,
53
+ V3GlobaldataAssetCertificateListPostGlobals
54
+ > = z.object({
55
+ organizationId: z.string().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ organizationId: "organization_id",
59
+ });
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace V3GlobaldataAssetCertificateListPostGlobals$ {
67
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostGlobals$inboundSchema` instead. */
68
+ export const inboundSchema =
69
+ V3GlobaldataAssetCertificateListPostGlobals$inboundSchema;
70
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostGlobals$outboundSchema` instead. */
71
+ export const outboundSchema =
72
+ V3GlobaldataAssetCertificateListPostGlobals$outboundSchema;
73
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostGlobals$Outbound` instead. */
74
+ export type Outbound = V3GlobaldataAssetCertificateListPostGlobals$Outbound;
75
+ }
76
+
77
+ export function v3GlobaldataAssetCertificateListPostGlobalsToJSON(
78
+ v3GlobaldataAssetCertificateListPostGlobals:
79
+ V3GlobaldataAssetCertificateListPostGlobals,
80
+ ): string {
81
+ return JSON.stringify(
82
+ V3GlobaldataAssetCertificateListPostGlobals$outboundSchema.parse(
83
+ v3GlobaldataAssetCertificateListPostGlobals,
84
+ ),
85
+ );
86
+ }
87
+
88
+ export function v3GlobaldataAssetCertificateListPostGlobalsFromJSON(
89
+ jsonString: string,
90
+ ): SafeParseResult<
91
+ V3GlobaldataAssetCertificateListPostGlobals,
92
+ SDKValidationError
93
+ > {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) =>
97
+ V3GlobaldataAssetCertificateListPostGlobals$inboundSchema.parse(
98
+ JSON.parse(x),
99
+ ),
100
+ `Failed to parse 'V3GlobaldataAssetCertificateListPostGlobals' from JSON`,
101
+ );
102
+ }
103
+
104
+ /** @internal */
105
+ export const V3GlobaldataAssetCertificateListPostRequest$inboundSchema:
106
+ z.ZodType<
107
+ V3GlobaldataAssetCertificateListPostRequest,
108
+ z.ZodTypeDef,
109
+ unknown
110
+ > = z.object({
111
+ organization_id: z.string().optional(),
112
+ AssetCertificateListInputBody:
113
+ components.AssetCertificateListInputBody$inboundSchema,
114
+ }).transform((v) => {
115
+ return remap$(v, {
116
+ "organization_id": "organizationId",
117
+ "AssetCertificateListInputBody": "assetCertificateListInputBody",
118
+ });
119
+ });
120
+
121
+ /** @internal */
122
+ export type V3GlobaldataAssetCertificateListPostRequest$Outbound = {
123
+ organization_id?: string | undefined;
124
+ AssetCertificateListInputBody:
125
+ components.AssetCertificateListInputBody$Outbound;
126
+ };
127
+
128
+ /** @internal */
129
+ export const V3GlobaldataAssetCertificateListPostRequest$outboundSchema:
130
+ z.ZodType<
131
+ V3GlobaldataAssetCertificateListPostRequest$Outbound,
132
+ z.ZodTypeDef,
133
+ V3GlobaldataAssetCertificateListPostRequest
134
+ > = z.object({
135
+ organizationId: z.string().optional(),
136
+ assetCertificateListInputBody:
137
+ components.AssetCertificateListInputBody$outboundSchema,
138
+ }).transform((v) => {
139
+ return remap$(v, {
140
+ organizationId: "organization_id",
141
+ assetCertificateListInputBody: "AssetCertificateListInputBody",
142
+ });
143
+ });
144
+
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export namespace V3GlobaldataAssetCertificateListPostRequest$ {
150
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostRequest$inboundSchema` instead. */
151
+ export const inboundSchema =
152
+ V3GlobaldataAssetCertificateListPostRequest$inboundSchema;
153
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostRequest$outboundSchema` instead. */
154
+ export const outboundSchema =
155
+ V3GlobaldataAssetCertificateListPostRequest$outboundSchema;
156
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostRequest$Outbound` instead. */
157
+ export type Outbound = V3GlobaldataAssetCertificateListPostRequest$Outbound;
158
+ }
159
+
160
+ export function v3GlobaldataAssetCertificateListPostRequestToJSON(
161
+ v3GlobaldataAssetCertificateListPostRequest:
162
+ V3GlobaldataAssetCertificateListPostRequest,
163
+ ): string {
164
+ return JSON.stringify(
165
+ V3GlobaldataAssetCertificateListPostRequest$outboundSchema.parse(
166
+ v3GlobaldataAssetCertificateListPostRequest,
167
+ ),
168
+ );
169
+ }
170
+
171
+ export function v3GlobaldataAssetCertificateListPostRequestFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<
174
+ V3GlobaldataAssetCertificateListPostRequest,
175
+ SDKValidationError
176
+ > {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) =>
180
+ V3GlobaldataAssetCertificateListPostRequest$inboundSchema.parse(
181
+ JSON.parse(x),
182
+ ),
183
+ `Failed to parse 'V3GlobaldataAssetCertificateListPostRequest' from JSON`,
184
+ );
185
+ }
186
+
187
+ /** @internal */
188
+ export const V3GlobaldataAssetCertificateListPostResponse$inboundSchema:
189
+ z.ZodType<
190
+ V3GlobaldataAssetCertificateListPostResponse,
191
+ z.ZodTypeDef,
192
+ unknown
193
+ > = z.object({
194
+ Headers: z.record(z.array(z.string())),
195
+ Result: components.ResponseEnvelopeListCertificateAsset$inboundSchema,
196
+ }).transform((v) => {
197
+ return remap$(v, {
198
+ "Headers": "headers",
199
+ "Result": "result",
200
+ });
201
+ });
202
+
203
+ /** @internal */
204
+ export type V3GlobaldataAssetCertificateListPostResponse$Outbound = {
205
+ Headers: { [k: string]: Array<string> };
206
+ Result: components.ResponseEnvelopeListCertificateAsset$Outbound;
207
+ };
208
+
209
+ /** @internal */
210
+ export const V3GlobaldataAssetCertificateListPostResponse$outboundSchema:
211
+ z.ZodType<
212
+ V3GlobaldataAssetCertificateListPostResponse$Outbound,
213
+ z.ZodTypeDef,
214
+ V3GlobaldataAssetCertificateListPostResponse
215
+ > = z.object({
216
+ headers: z.record(z.array(z.string())),
217
+ result: components.ResponseEnvelopeListCertificateAsset$outboundSchema,
218
+ }).transform((v) => {
219
+ return remap$(v, {
220
+ headers: "Headers",
221
+ result: "Result",
222
+ });
223
+ });
224
+
225
+ /**
226
+ * @internal
227
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
228
+ */
229
+ export namespace V3GlobaldataAssetCertificateListPostResponse$ {
230
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostResponse$inboundSchema` instead. */
231
+ export const inboundSchema =
232
+ V3GlobaldataAssetCertificateListPostResponse$inboundSchema;
233
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostResponse$outboundSchema` instead. */
234
+ export const outboundSchema =
235
+ V3GlobaldataAssetCertificateListPostResponse$outboundSchema;
236
+ /** @deprecated use `V3GlobaldataAssetCertificateListPostResponse$Outbound` instead. */
237
+ export type Outbound = V3GlobaldataAssetCertificateListPostResponse$Outbound;
238
+ }
239
+
240
+ export function v3GlobaldataAssetCertificateListPostResponseToJSON(
241
+ v3GlobaldataAssetCertificateListPostResponse:
242
+ V3GlobaldataAssetCertificateListPostResponse,
243
+ ): string {
244
+ return JSON.stringify(
245
+ V3GlobaldataAssetCertificateListPostResponse$outboundSchema.parse(
246
+ v3GlobaldataAssetCertificateListPostResponse,
247
+ ),
248
+ );
249
+ }
250
+
251
+ export function v3GlobaldataAssetCertificateListPostResponseFromJSON(
252
+ jsonString: string,
253
+ ): SafeParseResult<
254
+ V3GlobaldataAssetCertificateListPostResponse,
255
+ SDKValidationError
256
+ > {
257
+ return safeParse(
258
+ jsonString,
259
+ (x) =>
260
+ V3GlobaldataAssetCertificateListPostResponse$inboundSchema.parse(
261
+ JSON.parse(x),
262
+ ),
263
+ `Failed to parse 'V3GlobaldataAssetCertificateListPostResponse' from JSON`,
264
+ );
265
+ }