@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
@@ -1,233 +0,0 @@
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 V3GlobaldataAssetHostListGlobals = {
13
- organizationId?: string | undefined;
14
- };
15
-
16
- export type V3GlobaldataAssetHostListRequest = {
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
- /**
22
- * A list of host IP addresses.
23
- */
24
- hostIds: Array<string> | null;
25
- };
26
-
27
- export type V3GlobaldataAssetHostListResponse = {
28
- headers: { [k: string]: Array<string> };
29
- result: components.ResponseEnvelopeListHostAsset;
30
- };
31
-
32
- /** @internal */
33
- export const V3GlobaldataAssetHostListGlobals$inboundSchema: z.ZodType<
34
- V3GlobaldataAssetHostListGlobals,
35
- z.ZodTypeDef,
36
- unknown
37
- > = z.object({
38
- organization_id: z.string().optional(),
39
- }).transform((v) => {
40
- return remap$(v, {
41
- "organization_id": "organizationId",
42
- });
43
- });
44
-
45
- /** @internal */
46
- export type V3GlobaldataAssetHostListGlobals$Outbound = {
47
- organization_id?: string | undefined;
48
- };
49
-
50
- /** @internal */
51
- export const V3GlobaldataAssetHostListGlobals$outboundSchema: z.ZodType<
52
- V3GlobaldataAssetHostListGlobals$Outbound,
53
- z.ZodTypeDef,
54
- V3GlobaldataAssetHostListGlobals
55
- > = z.object({
56
- organizationId: z.string().optional(),
57
- }).transform((v) => {
58
- return remap$(v, {
59
- organizationId: "organization_id",
60
- });
61
- });
62
-
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- export namespace V3GlobaldataAssetHostListGlobals$ {
68
- /** @deprecated use `V3GlobaldataAssetHostListGlobals$inboundSchema` instead. */
69
- export const inboundSchema = V3GlobaldataAssetHostListGlobals$inboundSchema;
70
- /** @deprecated use `V3GlobaldataAssetHostListGlobals$outboundSchema` instead. */
71
- export const outboundSchema = V3GlobaldataAssetHostListGlobals$outboundSchema;
72
- /** @deprecated use `V3GlobaldataAssetHostListGlobals$Outbound` instead. */
73
- export type Outbound = V3GlobaldataAssetHostListGlobals$Outbound;
74
- }
75
-
76
- export function v3GlobaldataAssetHostListGlobalsToJSON(
77
- v3GlobaldataAssetHostListGlobals: V3GlobaldataAssetHostListGlobals,
78
- ): string {
79
- return JSON.stringify(
80
- V3GlobaldataAssetHostListGlobals$outboundSchema.parse(
81
- v3GlobaldataAssetHostListGlobals,
82
- ),
83
- );
84
- }
85
-
86
- export function v3GlobaldataAssetHostListGlobalsFromJSON(
87
- jsonString: string,
88
- ): SafeParseResult<V3GlobaldataAssetHostListGlobals, SDKValidationError> {
89
- return safeParse(
90
- jsonString,
91
- (x) => V3GlobaldataAssetHostListGlobals$inboundSchema.parse(JSON.parse(x)),
92
- `Failed to parse 'V3GlobaldataAssetHostListGlobals' from JSON`,
93
- );
94
- }
95
-
96
- /** @internal */
97
- export const V3GlobaldataAssetHostListRequest$inboundSchema: z.ZodType<
98
- V3GlobaldataAssetHostListRequest,
99
- z.ZodTypeDef,
100
- unknown
101
- > = z.object({
102
- organization_id: z.string().optional(),
103
- host_ids: z.nullable(z.array(z.string())),
104
- }).transform((v) => {
105
- return remap$(v, {
106
- "organization_id": "organizationId",
107
- "host_ids": "hostIds",
108
- });
109
- });
110
-
111
- /** @internal */
112
- export type V3GlobaldataAssetHostListRequest$Outbound = {
113
- organization_id?: string | undefined;
114
- host_ids: Array<string> | null;
115
- };
116
-
117
- /** @internal */
118
- export const V3GlobaldataAssetHostListRequest$outboundSchema: z.ZodType<
119
- V3GlobaldataAssetHostListRequest$Outbound,
120
- z.ZodTypeDef,
121
- V3GlobaldataAssetHostListRequest
122
- > = z.object({
123
- organizationId: z.string().optional(),
124
- hostIds: z.nullable(z.array(z.string())),
125
- }).transform((v) => {
126
- return remap$(v, {
127
- organizationId: "organization_id",
128
- hostIds: "host_ids",
129
- });
130
- });
131
-
132
- /**
133
- * @internal
134
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
- */
136
- export namespace V3GlobaldataAssetHostListRequest$ {
137
- /** @deprecated use `V3GlobaldataAssetHostListRequest$inboundSchema` instead. */
138
- export const inboundSchema = V3GlobaldataAssetHostListRequest$inboundSchema;
139
- /** @deprecated use `V3GlobaldataAssetHostListRequest$outboundSchema` instead. */
140
- export const outboundSchema = V3GlobaldataAssetHostListRequest$outboundSchema;
141
- /** @deprecated use `V3GlobaldataAssetHostListRequest$Outbound` instead. */
142
- export type Outbound = V3GlobaldataAssetHostListRequest$Outbound;
143
- }
144
-
145
- export function v3GlobaldataAssetHostListRequestToJSON(
146
- v3GlobaldataAssetHostListRequest: V3GlobaldataAssetHostListRequest,
147
- ): string {
148
- return JSON.stringify(
149
- V3GlobaldataAssetHostListRequest$outboundSchema.parse(
150
- v3GlobaldataAssetHostListRequest,
151
- ),
152
- );
153
- }
154
-
155
- export function v3GlobaldataAssetHostListRequestFromJSON(
156
- jsonString: string,
157
- ): SafeParseResult<V3GlobaldataAssetHostListRequest, SDKValidationError> {
158
- return safeParse(
159
- jsonString,
160
- (x) => V3GlobaldataAssetHostListRequest$inboundSchema.parse(JSON.parse(x)),
161
- `Failed to parse 'V3GlobaldataAssetHostListRequest' from JSON`,
162
- );
163
- }
164
-
165
- /** @internal */
166
- export const V3GlobaldataAssetHostListResponse$inboundSchema: z.ZodType<
167
- V3GlobaldataAssetHostListResponse,
168
- z.ZodTypeDef,
169
- unknown
170
- > = z.object({
171
- Headers: z.record(z.array(z.string())),
172
- Result: components.ResponseEnvelopeListHostAsset$inboundSchema,
173
- }).transform((v) => {
174
- return remap$(v, {
175
- "Headers": "headers",
176
- "Result": "result",
177
- });
178
- });
179
-
180
- /** @internal */
181
- export type V3GlobaldataAssetHostListResponse$Outbound = {
182
- Headers: { [k: string]: Array<string> };
183
- Result: components.ResponseEnvelopeListHostAsset$Outbound;
184
- };
185
-
186
- /** @internal */
187
- export const V3GlobaldataAssetHostListResponse$outboundSchema: z.ZodType<
188
- V3GlobaldataAssetHostListResponse$Outbound,
189
- z.ZodTypeDef,
190
- V3GlobaldataAssetHostListResponse
191
- > = z.object({
192
- headers: z.record(z.array(z.string())),
193
- result: components.ResponseEnvelopeListHostAsset$outboundSchema,
194
- }).transform((v) => {
195
- return remap$(v, {
196
- headers: "Headers",
197
- result: "Result",
198
- });
199
- });
200
-
201
- /**
202
- * @internal
203
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
204
- */
205
- export namespace V3GlobaldataAssetHostListResponse$ {
206
- /** @deprecated use `V3GlobaldataAssetHostListResponse$inboundSchema` instead. */
207
- export const inboundSchema = V3GlobaldataAssetHostListResponse$inboundSchema;
208
- /** @deprecated use `V3GlobaldataAssetHostListResponse$outboundSchema` instead. */
209
- export const outboundSchema =
210
- V3GlobaldataAssetHostListResponse$outboundSchema;
211
- /** @deprecated use `V3GlobaldataAssetHostListResponse$Outbound` instead. */
212
- export type Outbound = V3GlobaldataAssetHostListResponse$Outbound;
213
- }
214
-
215
- export function v3GlobaldataAssetHostListResponseToJSON(
216
- v3GlobaldataAssetHostListResponse: V3GlobaldataAssetHostListResponse,
217
- ): string {
218
- return JSON.stringify(
219
- V3GlobaldataAssetHostListResponse$outboundSchema.parse(
220
- v3GlobaldataAssetHostListResponse,
221
- ),
222
- );
223
- }
224
-
225
- export function v3GlobaldataAssetHostListResponseFromJSON(
226
- jsonString: string,
227
- ): SafeParseResult<V3GlobaldataAssetHostListResponse, SDKValidationError> {
228
- return safeParse(
229
- jsonString,
230
- (x) => V3GlobaldataAssetHostListResponse$inboundSchema.parse(JSON.parse(x)),
231
- `Failed to parse 'V3GlobaldataAssetHostListResponse' from JSON`,
232
- );
233
- }
@@ -1,259 +0,0 @@
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 V3GlobaldataAssetWebpropertyListGlobals = {
13
- organizationId?: string | undefined;
14
- };
15
-
16
- export type V3GlobaldataAssetWebpropertyListRequest = {
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
- /**
22
- * A list of web property identifiers.
23
- */
24
- webpropertyIds: Array<string> | null;
25
- };
26
-
27
- export type V3GlobaldataAssetWebpropertyListResponse = {
28
- headers: { [k: string]: Array<string> };
29
- result: components.ResponseEnvelopeListWebpropertyAsset;
30
- };
31
-
32
- /** @internal */
33
- export const V3GlobaldataAssetWebpropertyListGlobals$inboundSchema: z.ZodType<
34
- V3GlobaldataAssetWebpropertyListGlobals,
35
- z.ZodTypeDef,
36
- unknown
37
- > = z.object({
38
- organization_id: z.string().optional(),
39
- }).transform((v) => {
40
- return remap$(v, {
41
- "organization_id": "organizationId",
42
- });
43
- });
44
-
45
- /** @internal */
46
- export type V3GlobaldataAssetWebpropertyListGlobals$Outbound = {
47
- organization_id?: string | undefined;
48
- };
49
-
50
- /** @internal */
51
- export const V3GlobaldataAssetWebpropertyListGlobals$outboundSchema: z.ZodType<
52
- V3GlobaldataAssetWebpropertyListGlobals$Outbound,
53
- z.ZodTypeDef,
54
- V3GlobaldataAssetWebpropertyListGlobals
55
- > = z.object({
56
- organizationId: z.string().optional(),
57
- }).transform((v) => {
58
- return remap$(v, {
59
- organizationId: "organization_id",
60
- });
61
- });
62
-
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- export namespace V3GlobaldataAssetWebpropertyListGlobals$ {
68
- /** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$inboundSchema` instead. */
69
- export const inboundSchema =
70
- V3GlobaldataAssetWebpropertyListGlobals$inboundSchema;
71
- /** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$outboundSchema` instead. */
72
- export const outboundSchema =
73
- V3GlobaldataAssetWebpropertyListGlobals$outboundSchema;
74
- /** @deprecated use `V3GlobaldataAssetWebpropertyListGlobals$Outbound` instead. */
75
- export type Outbound = V3GlobaldataAssetWebpropertyListGlobals$Outbound;
76
- }
77
-
78
- export function v3GlobaldataAssetWebpropertyListGlobalsToJSON(
79
- v3GlobaldataAssetWebpropertyListGlobals:
80
- V3GlobaldataAssetWebpropertyListGlobals,
81
- ): string {
82
- return JSON.stringify(
83
- V3GlobaldataAssetWebpropertyListGlobals$outboundSchema.parse(
84
- v3GlobaldataAssetWebpropertyListGlobals,
85
- ),
86
- );
87
- }
88
-
89
- export function v3GlobaldataAssetWebpropertyListGlobalsFromJSON(
90
- jsonString: string,
91
- ): SafeParseResult<
92
- V3GlobaldataAssetWebpropertyListGlobals,
93
- SDKValidationError
94
- > {
95
- return safeParse(
96
- jsonString,
97
- (x) =>
98
- V3GlobaldataAssetWebpropertyListGlobals$inboundSchema.parse(
99
- JSON.parse(x),
100
- ),
101
- `Failed to parse 'V3GlobaldataAssetWebpropertyListGlobals' from JSON`,
102
- );
103
- }
104
-
105
- /** @internal */
106
- export const V3GlobaldataAssetWebpropertyListRequest$inboundSchema: z.ZodType<
107
- V3GlobaldataAssetWebpropertyListRequest,
108
- z.ZodTypeDef,
109
- unknown
110
- > = z.object({
111
- organization_id: z.string().optional(),
112
- webproperty_ids: z.nullable(z.array(z.string())),
113
- }).transform((v) => {
114
- return remap$(v, {
115
- "organization_id": "organizationId",
116
- "webproperty_ids": "webpropertyIds",
117
- });
118
- });
119
-
120
- /** @internal */
121
- export type V3GlobaldataAssetWebpropertyListRequest$Outbound = {
122
- organization_id?: string | undefined;
123
- webproperty_ids: Array<string> | null;
124
- };
125
-
126
- /** @internal */
127
- export const V3GlobaldataAssetWebpropertyListRequest$outboundSchema: z.ZodType<
128
- V3GlobaldataAssetWebpropertyListRequest$Outbound,
129
- z.ZodTypeDef,
130
- V3GlobaldataAssetWebpropertyListRequest
131
- > = z.object({
132
- organizationId: z.string().optional(),
133
- webpropertyIds: z.nullable(z.array(z.string())),
134
- }).transform((v) => {
135
- return remap$(v, {
136
- organizationId: "organization_id",
137
- webpropertyIds: "webproperty_ids",
138
- });
139
- });
140
-
141
- /**
142
- * @internal
143
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
144
- */
145
- export namespace V3GlobaldataAssetWebpropertyListRequest$ {
146
- /** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$inboundSchema` instead. */
147
- export const inboundSchema =
148
- V3GlobaldataAssetWebpropertyListRequest$inboundSchema;
149
- /** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$outboundSchema` instead. */
150
- export const outboundSchema =
151
- V3GlobaldataAssetWebpropertyListRequest$outboundSchema;
152
- /** @deprecated use `V3GlobaldataAssetWebpropertyListRequest$Outbound` instead. */
153
- export type Outbound = V3GlobaldataAssetWebpropertyListRequest$Outbound;
154
- }
155
-
156
- export function v3GlobaldataAssetWebpropertyListRequestToJSON(
157
- v3GlobaldataAssetWebpropertyListRequest:
158
- V3GlobaldataAssetWebpropertyListRequest,
159
- ): string {
160
- return JSON.stringify(
161
- V3GlobaldataAssetWebpropertyListRequest$outboundSchema.parse(
162
- v3GlobaldataAssetWebpropertyListRequest,
163
- ),
164
- );
165
- }
166
-
167
- export function v3GlobaldataAssetWebpropertyListRequestFromJSON(
168
- jsonString: string,
169
- ): SafeParseResult<
170
- V3GlobaldataAssetWebpropertyListRequest,
171
- SDKValidationError
172
- > {
173
- return safeParse(
174
- jsonString,
175
- (x) =>
176
- V3GlobaldataAssetWebpropertyListRequest$inboundSchema.parse(
177
- JSON.parse(x),
178
- ),
179
- `Failed to parse 'V3GlobaldataAssetWebpropertyListRequest' from JSON`,
180
- );
181
- }
182
-
183
- /** @internal */
184
- export const V3GlobaldataAssetWebpropertyListResponse$inboundSchema: z.ZodType<
185
- V3GlobaldataAssetWebpropertyListResponse,
186
- z.ZodTypeDef,
187
- unknown
188
- > = z.object({
189
- Headers: z.record(z.array(z.string())),
190
- Result: components.ResponseEnvelopeListWebpropertyAsset$inboundSchema,
191
- }).transform((v) => {
192
- return remap$(v, {
193
- "Headers": "headers",
194
- "Result": "result",
195
- });
196
- });
197
-
198
- /** @internal */
199
- export type V3GlobaldataAssetWebpropertyListResponse$Outbound = {
200
- Headers: { [k: string]: Array<string> };
201
- Result: components.ResponseEnvelopeListWebpropertyAsset$Outbound;
202
- };
203
-
204
- /** @internal */
205
- export const V3GlobaldataAssetWebpropertyListResponse$outboundSchema: z.ZodType<
206
- V3GlobaldataAssetWebpropertyListResponse$Outbound,
207
- z.ZodTypeDef,
208
- V3GlobaldataAssetWebpropertyListResponse
209
- > = z.object({
210
- headers: z.record(z.array(z.string())),
211
- result: components.ResponseEnvelopeListWebpropertyAsset$outboundSchema,
212
- }).transform((v) => {
213
- return remap$(v, {
214
- headers: "Headers",
215
- result: "Result",
216
- });
217
- });
218
-
219
- /**
220
- * @internal
221
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
222
- */
223
- export namespace V3GlobaldataAssetWebpropertyListResponse$ {
224
- /** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$inboundSchema` instead. */
225
- export const inboundSchema =
226
- V3GlobaldataAssetWebpropertyListResponse$inboundSchema;
227
- /** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$outboundSchema` instead. */
228
- export const outboundSchema =
229
- V3GlobaldataAssetWebpropertyListResponse$outboundSchema;
230
- /** @deprecated use `V3GlobaldataAssetWebpropertyListResponse$Outbound` instead. */
231
- export type Outbound = V3GlobaldataAssetWebpropertyListResponse$Outbound;
232
- }
233
-
234
- export function v3GlobaldataAssetWebpropertyListResponseToJSON(
235
- v3GlobaldataAssetWebpropertyListResponse:
236
- V3GlobaldataAssetWebpropertyListResponse,
237
- ): string {
238
- return JSON.stringify(
239
- V3GlobaldataAssetWebpropertyListResponse$outboundSchema.parse(
240
- v3GlobaldataAssetWebpropertyListResponse,
241
- ),
242
- );
243
- }
244
-
245
- export function v3GlobaldataAssetWebpropertyListResponseFromJSON(
246
- jsonString: string,
247
- ): SafeParseResult<
248
- V3GlobaldataAssetWebpropertyListResponse,
249
- SDKValidationError
250
- > {
251
- return safeParse(
252
- jsonString,
253
- (x) =>
254
- V3GlobaldataAssetWebpropertyListResponse$inboundSchema.parse(
255
- JSON.parse(x),
256
- ),
257
- `Failed to parse 'V3GlobaldataAssetWebpropertyListResponse' from JSON`,
258
- );
259
- }