@censys/platform-sdk 0.10.1 → 0.10.2

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 (261) hide show
  1. package/README.md +6 -0
  2. package/docs/sdks/threathunting/README.md +250 -1
  3. package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
  4. package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
  5. package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
  6. package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
  7. package/funcs/accountManagementInviteUserToOrganization.js.map +1 -1
  8. package/funcs/accountManagementListOrganizationMembers.js.map +1 -1
  9. package/funcs/accountManagementRemoveOrganizationMember.js.map +1 -1
  10. package/funcs/accountManagementUpdateOrganizationMember.js.map +1 -1
  11. package/funcs/collectionsAggregate.js.map +1 -1
  12. package/funcs/collectionsDelete.js.map +1 -1
  13. package/funcs/collectionsGet.js.map +1 -1
  14. package/funcs/collectionsListEvents.js.map +1 -1
  15. package/funcs/collectionsSearch.js.map +1 -1
  16. package/funcs/collectionsUpdate.js.map +1 -1
  17. package/funcs/globalDataGetCertificate.js.map +1 -1
  18. package/funcs/globalDataGetCertificateRaw.js.map +1 -1
  19. package/funcs/globalDataGetHost.js.map +1 -1
  20. package/funcs/globalDataGetHostTimeline.js.map +1 -1
  21. package/funcs/globalDataGetTrackedScan.js.map +1 -1
  22. package/funcs/globalDataGetWebProperty.js.map +1 -1
  23. package/funcs/globalDataListServicesOnHost.js.map +1 -1
  24. package/funcs/threatHuntingCreateCenseyeJob.d.ts +18 -0
  25. package/funcs/threatHuntingCreateCenseyeJob.d.ts.map +1 -0
  26. package/funcs/threatHuntingCreateCenseyeJob.js +131 -0
  27. package/funcs/threatHuntingCreateCenseyeJob.js.map +1 -0
  28. package/funcs/threatHuntingGetCenseyeJob.d.ts +18 -0
  29. package/funcs/threatHuntingGetCenseyeJob.d.ts.map +1 -0
  30. package/funcs/threatHuntingGetCenseyeJob.js +134 -0
  31. package/funcs/threatHuntingGetCenseyeJob.js.map +1 -0
  32. package/funcs/threatHuntingGetCenseyeJobResults.d.ts +18 -0
  33. package/funcs/threatHuntingGetCenseyeJobResults.d.ts.map +1 -0
  34. package/funcs/threatHuntingGetCenseyeJobResults.js +136 -0
  35. package/funcs/threatHuntingGetCenseyeJobResults.js.map +1 -0
  36. package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -1
  37. package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -1
  38. package/funcs/threatHuntingValueCounts.d.ts +1 -1
  39. package/funcs/threatHuntingValueCounts.js +1 -1
  40. package/jsr.json +1 -1
  41. package/lib/config.d.ts +4 -4
  42. package/lib/config.js +4 -4
  43. package/lib/encodings.d.ts.map +1 -1
  44. package/lib/encodings.js +20 -5
  45. package/lib/encodings.js.map +1 -1
  46. package/lib/files.d.ts +13 -0
  47. package/lib/files.d.ts.map +1 -1
  48. package/lib/files.js +19 -0
  49. package/lib/files.js.map +1 -1
  50. package/lib/matchers.d.ts.map +1 -1
  51. package/lib/matchers.js +0 -1
  52. package/lib/matchers.js.map +1 -1
  53. package/lib/sdks.d.ts.map +1 -1
  54. package/lib/sdks.js +8 -4
  55. package/lib/sdks.js.map +1 -1
  56. package/lib/security.d.ts.map +1 -1
  57. package/lib/security.js +1 -2
  58. package/lib/security.js.map +1 -1
  59. package/lib/url.d.ts.map +1 -1
  60. package/lib/url.js +4 -2
  61. package/lib/url.js.map +1 -1
  62. package/models/components/censeyejob.d.ts +59 -0
  63. package/models/components/censeyejob.d.ts.map +1 -0
  64. package/models/components/censeyejob.js +85 -0
  65. package/models/components/censeyejob.js.map +1 -0
  66. package/models/components/censeyeresult.d.ts +18 -0
  67. package/models/components/censeyeresult.d.ts.map +1 -0
  68. package/models/components/censeyeresult.js +57 -0
  69. package/models/components/censeyeresult.js.map +1 -0
  70. package/models/components/censeyeresultsresponse.d.ts +18 -0
  71. package/models/components/censeyeresultsresponse.d.ts.map +1 -0
  72. package/models/components/censeyeresultsresponse.js +57 -0
  73. package/models/components/censeyeresultsresponse.js.map +1 -0
  74. package/models/components/censeyetarget.d.ts +30 -0
  75. package/models/components/censeyetarget.d.ts.map +1 -0
  76. package/models/components/censeyetarget.js +75 -0
  77. package/models/components/censeyetarget.js.map +1 -0
  78. package/models/components/countcondition.d.ts +1 -1
  79. package/models/components/createcenseyejobinputbody.d.ts +13 -0
  80. package/models/components/createcenseyejobinputbody.d.ts.map +1 -0
  81. package/models/components/createcenseyejobinputbody.js +50 -0
  82. package/models/components/createcenseyejobinputbody.js.map +1 -0
  83. package/models/components/fieldvaluepair.d.ts +5 -0
  84. package/models/components/fieldvaluepair.d.ts.map +1 -1
  85. package/models/components/fieldvaluepair.js +11 -1
  86. package/models/components/fieldvaluepair.js.map +1 -1
  87. package/models/components/host.d.ts +12 -0
  88. package/models/components/host.d.ts.map +1 -1
  89. package/models/components/host.js +7 -0
  90. package/models/components/host.js.map +1 -1
  91. package/models/components/index.d.ts +21 -0
  92. package/models/components/index.d.ts.map +1 -1
  93. package/models/components/index.js +21 -0
  94. package/models/components/index.js.map +1 -1
  95. package/models/components/networkclassification.d.ts +27 -0
  96. package/models/components/networkclassification.d.ts.map +1 -0
  97. package/models/components/networkclassification.js +60 -0
  98. package/models/components/networkclassification.js.map +1 -0
  99. package/models/components/networkmobileinfo.d.ts +21 -0
  100. package/models/components/networkmobileinfo.d.ts.map +1 -0
  101. package/models/components/networkmobileinfo.js +57 -0
  102. package/models/components/networkmobileinfo.js.map +1 -0
  103. package/models/components/privacy.d.ts +39 -0
  104. package/models/components/privacy.d.ts.map +1 -0
  105. package/models/components/privacy.js +64 -0
  106. package/models/components/privacy.js.map +1 -0
  107. package/models/components/privacytorinfo.d.ts +11 -0
  108. package/models/components/privacytorinfo.d.ts.map +1 -0
  109. package/models/components/privacytorinfo.js +51 -0
  110. package/models/components/privacytorinfo.js.map +1 -0
  111. package/models/components/privacytorinforelay.d.ts +140 -0
  112. package/models/components/privacytorinforelay.d.ts.map +1 -0
  113. package/models/components/privacytorinforelay.js +114 -0
  114. package/models/components/privacytorinforelay.js.map +1 -0
  115. package/models/components/privacytorinforelayexitpolicysummary.d.ts +17 -0
  116. package/models/components/privacytorinforelayexitpolicysummary.d.ts.map +1 -0
  117. package/models/components/privacytorinforelayexitpolicysummary.js +51 -0
  118. package/models/components/privacytorinforelayexitpolicysummary.js.map +1 -0
  119. package/models/components/reputation.d.ts +26 -0
  120. package/models/components/reputation.d.ts.map +1 -0
  121. package/models/components/reputation.js +71 -0
  122. package/models/components/reputation.js.map +1 -0
  123. package/models/components/reputationevidence.d.ts +17 -0
  124. package/models/components/reputationevidence.d.ts.map +1 -0
  125. package/models/components/reputationevidence.js +65 -0
  126. package/models/components/reputationevidence.js.map +1 -0
  127. package/models/components/reputationevidenceexternalsignal.d.ts +23 -0
  128. package/models/components/reputationevidenceexternalsignal.d.ts.map +1 -0
  129. package/models/components/reputationevidenceexternalsignal.js +62 -0
  130. package/models/components/reputationevidenceexternalsignal.js.map +1 -0
  131. package/models/components/reputationevidencefieldvalue.d.ts +11 -0
  132. package/models/components/reputationevidencefieldvalue.d.ts.map +1 -0
  133. package/models/components/reputationevidencefieldvalue.js +51 -0
  134. package/models/components/reputationevidencefieldvalue.js.map +1 -0
  135. package/models/components/reputationevidencethreat.d.ts +12 -0
  136. package/models/components/reputationevidencethreat.d.ts.map +1 -0
  137. package/models/components/reputationevidencethreat.js +59 -0
  138. package/models/components/reputationevidencethreat.js.map +1 -0
  139. package/models/components/responseenvelopecenseyejob.d.ts +11 -0
  140. package/models/components/responseenvelopecenseyejob.d.ts.map +1 -0
  141. package/models/components/responseenvelopecenseyejob.js +51 -0
  142. package/models/components/responseenvelopecenseyejob.js.map +1 -0
  143. package/models/components/responseenvelopecenseyeresultsresponse.d.ts +11 -0
  144. package/models/components/responseenvelopecenseyeresultsresponse.d.ts.map +1 -0
  145. package/models/components/responseenvelopecenseyeresultsresponse.js +51 -0
  146. package/models/components/responseenvelopecenseyeresultsresponse.js.map +1 -0
  147. package/models/components/sapient.d.ts +15 -0
  148. package/models/components/sapient.d.ts.map +1 -0
  149. package/models/components/sapient.js +60 -0
  150. package/models/components/sapient.js.map +1 -0
  151. package/models/components/sapienterror.d.ts +11 -0
  152. package/models/components/sapienterror.d.ts.map +1 -0
  153. package/models/components/sapienterror.js +56 -0
  154. package/models/components/sapienterror.js.map +1 -0
  155. package/models/components/sapientregistrationack.d.ts +11 -0
  156. package/models/components/sapientregistrationack.d.ts.map +1 -0
  157. package/models/components/sapientregistrationack.js +56 -0
  158. package/models/components/sapientregistrationack.js.map +1 -0
  159. package/models/components/searchvaluecountsinputbody.d.ts +1 -1
  160. package/models/components/service.d.ts +2 -0
  161. package/models/components/service.d.ts.map +1 -1
  162. package/models/components/service.js +2 -0
  163. package/models/components/service.js.map +1 -1
  164. package/models/components/servicescan.d.ts +2 -0
  165. package/models/components/servicescan.d.ts.map +1 -1
  166. package/models/components/servicescan.js +2 -0
  167. package/models/components/servicescan.js.map +1 -1
  168. package/models/components/servicesonhostresponse.d.ts +6 -0
  169. package/models/components/servicesonhostresponse.d.ts.map +1 -1
  170. package/models/components/servicesonhostresponse.js +3 -4
  171. package/models/components/servicesonhostresponse.js.map +1 -1
  172. package/models/operations/index.d.ts +3 -0
  173. package/models/operations/index.d.ts.map +1 -1
  174. package/models/operations/index.js +3 -0
  175. package/models/operations/index.js.map +1 -1
  176. package/models/operations/v3threathuntingcenseyejobresults.d.ts +45 -0
  177. package/models/operations/v3threathuntingcenseyejobresults.d.ts.map +1 -0
  178. package/models/operations/v3threathuntingcenseyejobresults.js +76 -0
  179. package/models/operations/v3threathuntingcenseyejobresults.js.map +1 -0
  180. package/models/operations/v3threathuntingcenseyejobscreate.d.ts +32 -0
  181. package/models/operations/v3threathuntingcenseyejobscreate.d.ts.map +1 -0
  182. package/models/operations/v3threathuntingcenseyejobscreate.js +72 -0
  183. package/models/operations/v3threathuntingcenseyejobscreate.js.map +1 -0
  184. package/models/operations/v3threathuntingcenseyejobsget.d.ts +35 -0
  185. package/models/operations/v3threathuntingcenseyejobsget.d.ts.map +1 -0
  186. package/models/operations/v3threathuntingcenseyejobsget.js +72 -0
  187. package/models/operations/v3threathuntingcenseyejobsget.js.map +1 -0
  188. package/package.json +1 -1
  189. package/sdk/threathunting.d.ts +22 -1
  190. package/sdk/threathunting.d.ts.map +1 -1
  191. package/sdk/threathunting.js +31 -1
  192. package/sdk/threathunting.js.map +1 -1
  193. package/src/funcs/accountManagementGetMemberCreditUsage.ts +0 -1
  194. package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +0 -1
  195. package/src/funcs/accountManagementGetOrganizationCredits.ts +0 -1
  196. package/src/funcs/accountManagementGetOrganizationDetails.ts +0 -1
  197. package/src/funcs/accountManagementInviteUserToOrganization.ts +0 -1
  198. package/src/funcs/accountManagementListOrganizationMembers.ts +0 -1
  199. package/src/funcs/accountManagementRemoveOrganizationMember.ts +0 -1
  200. package/src/funcs/accountManagementUpdateOrganizationMember.ts +0 -1
  201. package/src/funcs/collectionsAggregate.ts +0 -1
  202. package/src/funcs/collectionsDelete.ts +0 -1
  203. package/src/funcs/collectionsGet.ts +0 -1
  204. package/src/funcs/collectionsListEvents.ts +0 -1
  205. package/src/funcs/collectionsSearch.ts +0 -1
  206. package/src/funcs/collectionsUpdate.ts +0 -1
  207. package/src/funcs/globalDataGetCertificate.ts +0 -1
  208. package/src/funcs/globalDataGetCertificateRaw.ts +0 -1
  209. package/src/funcs/globalDataGetHost.ts +0 -1
  210. package/src/funcs/globalDataGetHostTimeline.ts +0 -1
  211. package/src/funcs/globalDataGetTrackedScan.ts +0 -1
  212. package/src/funcs/globalDataGetWebProperty.ts +0 -1
  213. package/src/funcs/globalDataListServicesOnHost.ts +0 -1
  214. package/src/funcs/threatHuntingCreateCenseyeJob.ts +195 -0
  215. package/src/funcs/threatHuntingGetCenseyeJob.ts +200 -0
  216. package/src/funcs/threatHuntingGetCenseyeJobResults.ts +202 -0
  217. package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +0 -1
  218. package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +0 -1
  219. package/src/funcs/threatHuntingValueCounts.ts +1 -1
  220. package/src/lib/config.ts +4 -4
  221. package/src/lib/encodings.ts +23 -4
  222. package/src/lib/files.ts +22 -0
  223. package/src/lib/matchers.ts +3 -2
  224. package/src/lib/sdks.ts +7 -5
  225. package/src/lib/security.ts +1 -2
  226. package/src/lib/url.ts +16 -14
  227. package/src/models/components/censeyejob.ts +106 -0
  228. package/src/models/components/censeyeresult.ts +48 -0
  229. package/src/models/components/censeyeresultsresponse.ts +45 -0
  230. package/src/models/components/censeyetarget.ts +77 -0
  231. package/src/models/components/countcondition.ts +1 -1
  232. package/src/models/components/createcenseyejobinputbody.ts +36 -0
  233. package/src/models/components/fieldvaluepair.ts +21 -0
  234. package/src/models/components/host.ts +19 -0
  235. package/src/models/components/index.ts +21 -0
  236. package/src/models/components/networkclassification.ts +60 -0
  237. package/src/models/components/networkmobileinfo.ts +49 -0
  238. package/src/models/components/privacy.ts +73 -0
  239. package/src/models/components/privacytorinfo.ts +35 -0
  240. package/src/models/components/privacytorinforelay.ts +227 -0
  241. package/src/models/components/privacytorinforelayexitpolicysummary.ts +40 -0
  242. package/src/models/components/reputation.ts +66 -0
  243. package/src/models/components/reputationevidence.ts +63 -0
  244. package/src/models/components/reputationevidenceexternalsignal.ts +50 -0
  245. package/src/models/components/reputationevidencefieldvalue.ts +33 -0
  246. package/src/models/components/reputationevidencethreat.ts +42 -0
  247. package/src/models/components/responseenvelopecenseyejob.ts +32 -0
  248. package/src/models/components/responseenvelopecenseyeresultsresponse.ts +36 -0
  249. package/src/models/components/sapient.ts +44 -0
  250. package/src/models/components/sapienterror.ts +38 -0
  251. package/src/models/components/sapientregistrationack.ts +38 -0
  252. package/src/models/components/searchvaluecountsinputbody.ts +1 -1
  253. package/src/models/components/service.ts +3 -0
  254. package/src/models/components/servicescan.ts +3 -0
  255. package/src/models/components/servicesonhostresponse.ts +9 -4
  256. package/src/models/operations/index.ts +3 -0
  257. package/src/models/operations/v3threathuntingcenseyejobresults.ts +107 -0
  258. package/src/models/operations/v3threathuntingcenseyejobscreate.ts +91 -0
  259. package/src/models/operations/v3threathuntingcenseyejobsget.ts +87 -0
  260. package/src/sdk/threathunting.ts +55 -1
  261. package/tests/sdk.test.ts +412 -259
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.V3ThreathuntingCenseyeJobsCreateResponse$inboundSchema = exports.V3ThreathuntingCenseyeJobsCreateRequest$outboundSchema = void 0;
40
+ exports.v3ThreathuntingCenseyeJobsCreateRequestToJSON = v3ThreathuntingCenseyeJobsCreateRequestToJSON;
41
+ exports.v3ThreathuntingCenseyeJobsCreateResponseFromJSON = v3ThreathuntingCenseyeJobsCreateResponseFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const components = __importStar(require("../components/index.js"));
46
+ /** @internal */
47
+ exports.V3ThreathuntingCenseyeJobsCreateRequest$outboundSchema = z.object({
48
+ organizationId: z.string().optional(),
49
+ createCenseyeJobInputBody: components.CreateCenseyeJobInputBody$outboundSchema,
50
+ }).transform((v) => {
51
+ return (0, primitives_js_1.remap)(v, {
52
+ organizationId: "organization_id",
53
+ createCenseyeJobInputBody: "CreateCenseyeJobInputBody",
54
+ });
55
+ });
56
+ function v3ThreathuntingCenseyeJobsCreateRequestToJSON(v3ThreathuntingCenseyeJobsCreateRequest) {
57
+ return JSON.stringify(exports.V3ThreathuntingCenseyeJobsCreateRequest$outboundSchema.parse(v3ThreathuntingCenseyeJobsCreateRequest));
58
+ }
59
+ /** @internal */
60
+ exports.V3ThreathuntingCenseyeJobsCreateResponse$inboundSchema = z.object({
61
+ Headers: z.record(z.array(z.string())).default({}),
62
+ Result: components.ResponseEnvelopeCenseyeJob$inboundSchema,
63
+ }).transform((v) => {
64
+ return (0, primitives_js_1.remap)(v, {
65
+ "Headers": "headers",
66
+ "Result": "result",
67
+ });
68
+ });
69
+ function v3ThreathuntingCenseyeJobsCreateResponseFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingCenseyeJobsCreateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingCenseyeJobsCreateResponse' from JSON`);
71
+ }
72
+ //# sourceMappingURL=v3threathuntingcenseyejobscreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3threathuntingcenseyejobscreate.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingcenseyejobscreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,sGASC;AAiBD,4GAcC;AAtFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA0BrD,gBAAgB;AACH,QAAA,sDAAsD,GAI/D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,yBAAyB,EACvB,UAAU,CAAC,wCAAwC;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,yBAAyB,EAAE,2BAA2B;KACvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6CAA6C,CAC3D,uCACyC;IAEzC,OAAO,IAAI,CAAC,SAAS,CACnB,8DAAsD,CAAC,KAAK,CAC1D,uCAAuC,CACxC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,sDAAsD,GAI/D,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,UAAU,CAAC,wCAAwC;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gDAAgD,CAC9D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,8DAAsD,CAAC,KAAK,CAC1D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,sEAAsE,CACvE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type V3ThreathuntingCenseyeJobsGetGlobals = {
6
+ organizationId?: string | undefined;
7
+ };
8
+ export type V3ThreathuntingCenseyeJobsGetRequest = {
9
+ /**
10
+ * 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-find-and-use-your-organization-id-optional) for more information.
11
+ */
12
+ organizationId?: string | undefined;
13
+ /**
14
+ * The unique identifier of the CensEye job.
15
+ */
16
+ jobId: string;
17
+ };
18
+ export type V3ThreathuntingCenseyeJobsGetResponse = {
19
+ headers: {
20
+ [k: string]: Array<string>;
21
+ };
22
+ result: components.ResponseEnvelopeCenseyeJob;
23
+ };
24
+ /** @internal */
25
+ export type V3ThreathuntingCenseyeJobsGetRequest$Outbound = {
26
+ organization_id?: string | undefined;
27
+ job_id: string;
28
+ };
29
+ /** @internal */
30
+ export declare const V3ThreathuntingCenseyeJobsGetRequest$outboundSchema: z.ZodType<V3ThreathuntingCenseyeJobsGetRequest$Outbound, z.ZodTypeDef, V3ThreathuntingCenseyeJobsGetRequest>;
31
+ export declare function v3ThreathuntingCenseyeJobsGetRequestToJSON(v3ThreathuntingCenseyeJobsGetRequest: V3ThreathuntingCenseyeJobsGetRequest): string;
32
+ /** @internal */
33
+ export declare const V3ThreathuntingCenseyeJobsGetResponse$inboundSchema: z.ZodType<V3ThreathuntingCenseyeJobsGetResponse, z.ZodTypeDef, unknown>;
34
+ export declare function v3ThreathuntingCenseyeJobsGetResponseFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingCenseyeJobsGetResponse, SDKValidationError>;
35
+ //# sourceMappingURL=v3threathuntingcenseyejobsget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3threathuntingcenseyejobsget.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingcenseyejobsget.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oCAAoC,GAAG;IACjD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,0BAA0B,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CASpC,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.V3ThreathuntingCenseyeJobsGetResponse$inboundSchema = exports.V3ThreathuntingCenseyeJobsGetRequest$outboundSchema = void 0;
40
+ exports.v3ThreathuntingCenseyeJobsGetRequestToJSON = v3ThreathuntingCenseyeJobsGetRequestToJSON;
41
+ exports.v3ThreathuntingCenseyeJobsGetResponseFromJSON = v3ThreathuntingCenseyeJobsGetResponseFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const components = __importStar(require("../components/index.js"));
46
+ /** @internal */
47
+ exports.V3ThreathuntingCenseyeJobsGetRequest$outboundSchema = z.object({
48
+ organizationId: z.string().optional(),
49
+ jobId: z.string(),
50
+ }).transform((v) => {
51
+ return (0, primitives_js_1.remap)(v, {
52
+ organizationId: "organization_id",
53
+ jobId: "job_id",
54
+ });
55
+ });
56
+ function v3ThreathuntingCenseyeJobsGetRequestToJSON(v3ThreathuntingCenseyeJobsGetRequest) {
57
+ return JSON.stringify(exports.V3ThreathuntingCenseyeJobsGetRequest$outboundSchema.parse(v3ThreathuntingCenseyeJobsGetRequest));
58
+ }
59
+ /** @internal */
60
+ exports.V3ThreathuntingCenseyeJobsGetResponse$inboundSchema = z.object({
61
+ Headers: z.record(z.array(z.string())).default({}),
62
+ Result: components.ResponseEnvelopeCenseyeJob$inboundSchema,
63
+ }).transform((v) => {
64
+ return (0, primitives_js_1.remap)(v, {
65
+ "Headers": "headers",
66
+ "Result": "result",
67
+ });
68
+ });
69
+ function v3ThreathuntingCenseyeJobsGetResponseFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingCenseyeJobsGetResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingCenseyeJobsGetResponse' from JSON`);
71
+ }
72
+ //# sourceMappingURL=v3threathuntingcenseyejobsget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3threathuntingcenseyejobsget.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingcenseyejobsget.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,gGAQC;AAiBD,sGASC;AAlFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA6BrD,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,UAAU,CAAC,wCAAwC;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@censys/platform-sdk",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -1,6 +1,27 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
2
  import * as operations from "../models/operations/index.js";
3
3
  export declare class ThreatHunting extends ClientSDK {
4
+ /**
5
+ * CensEye: Create a pivot analysis job
6
+ *
7
+ * @remarks
8
+ * Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
9
+ */
10
+ createCenseyeJob(request: operations.V3ThreathuntingCenseyeJobsCreateRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingCenseyeJobsCreateResponse>;
11
+ /**
12
+ * CensEye: Get job status
13
+ *
14
+ * @remarks
15
+ * Retrieve the current status of a CensEye pivot analysis job. Use this to poll for completion before fetching results.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.
16
+ */
17
+ getCenseyeJob(request: operations.V3ThreathuntingCenseyeJobsGetRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingCenseyeJobsGetResponse>;
18
+ /**
19
+ * CensEye: Get job results
20
+ *
21
+ * @remarks
22
+ * Retrieve the results of a completed CensEye pivot analysis job. Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.
23
+ */
24
+ getCenseyeJobResults(request: operations.V3ThreathuntingCenseyeJobResultsRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingCenseyeJobResultsResponse>;
4
25
  /**
5
26
  * Get host history for a certificate
6
27
  *
@@ -33,7 +54,7 @@ export declare class ThreatHunting extends ClientSDK {
33
54
  * CensEye: Retrieve value counts to discover pivots
34
55
  *
35
56
  * @remarks
36
- * Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country=”United States”` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Threat Hunting Module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
57
+ * Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Threat Hunting Module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
37
58
  */
38
59
  valueCounts(request: operations.V3ThreathuntingValueCountsRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingValueCountsResponse>;
39
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"threathunting.d.ts","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,kCAAkC,CACtC,OAAO,EACL,UAAU,CAAC,wDAAwD,EACrE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,yDAAyD,CACrE;IAQD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
1
+ {"version":3,"file":"threathunting.d.ts","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQ/D;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQ/D;;;;;OAKG;IACG,kCAAkC,CACtC,OAAO,EACL,UAAU,CAAC,wDAAwD,EACrE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,yDAAyD,CACrE;IAQD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;IAQ5D;;;;;OAKG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;IAQtD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
@@ -4,7 +4,10 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ThreatHunting = void 0;
7
+ const threatHuntingCreateCenseyeJob_js_1 = require("../funcs/threatHuntingCreateCenseyeJob.js");
7
8
  const threatHuntingCreateTrackedScan_js_1 = require("../funcs/threatHuntingCreateTrackedScan.js");
9
+ const threatHuntingGetCenseyeJob_js_1 = require("../funcs/threatHuntingGetCenseyeJob.js");
10
+ const threatHuntingGetCenseyeJobResults_js_1 = require("../funcs/threatHuntingGetCenseyeJobResults.js");
8
11
  const threatHuntingGetHostObservationsWithCertificate_js_1 = require("../funcs/threatHuntingGetHostObservationsWithCertificate.js");
9
12
  const threatHuntingGetTrackedScanThreatHunting_js_1 = require("../funcs/threatHuntingGetTrackedScanThreatHunting.js");
10
13
  const threatHuntingListThreats_js_1 = require("../funcs/threatHuntingListThreats.js");
@@ -12,6 +15,33 @@ const threatHuntingValueCounts_js_1 = require("../funcs/threatHuntingValueCounts
12
15
  const sdks_js_1 = require("../lib/sdks.js");
13
16
  const fp_js_1 = require("../types/fp.js");
14
17
  class ThreatHunting extends sdks_js_1.ClientSDK {
18
+ /**
19
+ * CensEye: Create a pivot analysis job
20
+ *
21
+ * @remarks
22
+ * Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts [default pivot fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
23
+ */
24
+ async createCenseyeJob(request, options) {
25
+ return (0, fp_js_1.unwrapAsync)((0, threatHuntingCreateCenseyeJob_js_1.threatHuntingCreateCenseyeJob)(this, request, options));
26
+ }
27
+ /**
28
+ * CensEye: Get job status
29
+ *
30
+ * @remarks
31
+ * Retrieve the current status of a CensEye pivot analysis job. Use this to poll for completion before fetching results.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.
32
+ */
33
+ async getCenseyeJob(request, options) {
34
+ return (0, fp_js_1.unwrapAsync)((0, threatHuntingGetCenseyeJob_js_1.threatHuntingGetCenseyeJob)(this, request, options));
35
+ }
36
+ /**
37
+ * CensEye: Get job results
38
+ *
39
+ * @remarks
40
+ * Retrieve the results of a completed CensEye pivot analysis job. Each result contains a count and the field-value pairs that were analyzed. Results may be empty if the job is still running.<br><br>Results are paginated. Use the `next_page_token` from the response to fetch subsequent pages.<br><br>To use this endpoint, your organization must have access to the Threat Hunting module.
41
+ */
42
+ async getCenseyeJobResults(request, options) {
43
+ return (0, fp_js_1.unwrapAsync)((0, threatHuntingGetCenseyeJobResults_js_1.threatHuntingGetCenseyeJobResults)(this, request, options));
44
+ }
15
45
  /**
16
46
  * Get host history for a certificate
17
47
  *
@@ -52,7 +82,7 @@ class ThreatHunting extends sdks_js_1.ClientSDK {
52
82
  * CensEye: Retrieve value counts to discover pivots
53
83
  *
54
84
  * @remarks
55
- * Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country=”United States”` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Threat Hunting Module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
85
+ * Get counts of web assets for specific field-value pairs and combinations of field-value pairs. This is similar to the [CensEye functionality](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#/) available in the Platform web UI, but it allows you to define specific fields of interest rather than the [default fields](https://docs.censys.com/docs/platform-threat-hunting-use-censeye-to-build-detections#default-pivot-fields) leveraged by the tool in the UI.<br><br>Each array can only target fields within the same nested object and may contain at most 5 field-value pairs. For example, you can combine `host.services.port=80` and `host.services.protocol=SSH` in the same array, but you cannot combine `host.services.port=80` and `host.location.country="United States"` in the same array. You can input multiple arrays of objects in each API call.<br><br>To use this endpoint, your organization must have access to the Threat Hunting Module. This endpoint costs 1 credit per count condition (array of objects) included in the API call.
56
86
  */
57
87
  async valueCounts(request, options) {
58
88
  return (0, fp_js_1.unwrapAsync)((0, threatHuntingValueCounts_js_1.threatHuntingValueCounts)(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"threathunting.js","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kGAA4F;AAC5F,oIAA8H;AAC9H,sHAAgH;AAChH,sFAAgF;AAChF,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;OAKG;IACH,KAAK,CAAC,kCAAkC,CACtC,OACqE,EACrE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,oGAA+C,EAChE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sFAAwC,EACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxFD,sCAwFC"}
1
+ {"version":3,"file":"threathunting.js","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gGAA0F;AAC1F,kGAA4F;AAC5F,0FAAoF;AACpF,wGAAkG;AAClG,oIAA8H;AAC9H,sHAAgH;AAChH,sFAAgF;AAChF,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wEAAiC,EAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kCAAkC,CACtC,OACqE,EACrE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,oGAA+C,EAChE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sFAAwC,EACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA3ID,sCA2IC"}
@@ -102,7 +102,6 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
-
106
105
  const path = pathToFunc(
107
106
  "/v3/accounts/organizations/{organization_id}/members/{user_id}/credits/usage",
108
107
  )(pathParams);
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc(
104
103
  "/v3/accounts/organizations/{organization_id}/credits/usage",
105
104
  )(pathParams);
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc(
104
103
  "/v3/accounts/organizations/{organization_id}/credits",
105
104
  )(pathParams);
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/accounts/organizations/{organization_id}")(
104
103
  pathParams,
105
104
  );
@@ -110,7 +110,6 @@ async function $do(
110
110
  charEncoding: "percent",
111
111
  }),
112
112
  };
113
-
114
113
  const path = pathToFunc(
115
114
  "/v3/accounts/organizations/{organization_id}/invitations",
116
115
  )(pathParams);
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc(
104
103
  "/v3/accounts/organizations/{organization_id}/members",
105
104
  )(pathParams);
@@ -112,7 +112,6 @@ async function $do(
112
112
  charEncoding: "percent",
113
113
  }),
114
114
  };
115
-
116
115
  const path = pathToFunc(
117
116
  "/v3/accounts/organizations/{organization_id}/members/{user_id}",
118
117
  )(pathParams);
@@ -114,7 +114,6 @@ async function $do(
114
114
  charEncoding: "percent",
115
115
  }),
116
116
  };
117
-
118
117
  const path = pathToFunc(
119
118
  "/v3/accounts/organizations/{organization_id}/members/{user_id}",
120
119
  )(pathParams);
@@ -101,7 +101,6 @@ async function $do(
101
101
  charEncoding: "percent",
102
102
  }),
103
103
  };
104
-
105
104
  const path = pathToFunc("/v3/collections/{collection_uid}/search/aggregate")(
106
105
  pathParams,
107
106
  );
@@ -102,7 +102,6 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
-
106
105
  const path = pathToFunc("/v3/collections/{collection_uid}")(pathParams);
107
106
 
108
107
  const query = encodeFormQuery({
@@ -97,7 +97,6 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
-
101
100
  const path = pathToFunc("/v3/collections/{collection_uid}")(pathParams);
102
101
 
103
102
  const query = encodeFormQuery({
@@ -97,7 +97,6 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
-
101
100
  const path = pathToFunc("/v3/collections/{collection_uid}/events")(
102
101
  pathParams,
103
102
  );
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/collections/{collection_uid}/search/query")(
104
103
  pathParams,
105
104
  );
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/collections/{collection_uid}")(pathParams);
104
103
 
105
104
  const query = encodeFormQuery({
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/global/asset/certificate/{certificate_id}")(
104
103
  pathParams,
105
104
  );
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/global/asset/certificate/{certificate_id}/raw")(
104
103
  pathParams,
105
104
  );
@@ -97,7 +97,6 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
-
101
100
  const path = pathToFunc("/v3/global/asset/host/{host_id}")(pathParams);
102
101
 
103
102
  const query = encodeFormQuery({
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/global/asset/host/{host_id}/timeline")(
104
103
  pathParams,
105
104
  );
@@ -97,7 +97,6 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
-
101
100
  const path = pathToFunc("/v3/global/scans/{scan_id}")(pathParams);
102
101
 
103
102
  const query = encodeFormQuery({
@@ -99,7 +99,6 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
-
103
102
  const path = pathToFunc("/v3/global/asset/webproperty/{webproperty_id}")(
104
103
  pathParams,
105
104
  );
@@ -97,7 +97,6 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
-
101
100
  const path = pathToFunc(
102
101
  "/v3/global/asset/host/{host_id}/observations/services",
103
102
  )(pathParams);