@censys/platform-sdk 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/docs/sdks/adversaryinvestigation/README.md +1 -1
- package/docs/sdks/threathunting/README.md +84 -1
- package/funcs/accountManagementGetMemberCreditUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetMemberCreditUsage.js +2 -1
- package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js +2 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js +2 -1
- package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.js +2 -1
- package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
- package/funcs/accountManagementGetUserCredits.d.ts.map +1 -1
- package/funcs/accountManagementGetUserCredits.js +2 -1
- package/funcs/accountManagementGetUserCredits.js.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.js +2 -1
- package/funcs/accountManagementGetUserCreditsUsage.js.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.d.ts.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.js +2 -1
- package/funcs/accountManagementInviteUserToOrganization.js.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.d.ts.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.js +2 -1
- package/funcs/accountManagementListOrganizationMembers.js.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.d.ts.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.js +2 -1
- package/funcs/accountManagementRemoveOrganizationMember.js.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.d.ts.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.js +2 -1
- package/funcs/accountManagementUpdateOrganizationMember.js.map +1 -1
- package/funcs/collectionsAggregate.d.ts.map +1 -1
- package/funcs/collectionsAggregate.js +2 -1
- package/funcs/collectionsAggregate.js.map +1 -1
- package/funcs/collectionsCreate.d.ts.map +1 -1
- package/funcs/collectionsCreate.js +2 -1
- package/funcs/collectionsCreate.js.map +1 -1
- package/funcs/collectionsDelete.d.ts.map +1 -1
- package/funcs/collectionsDelete.js +2 -1
- package/funcs/collectionsDelete.js.map +1 -1
- package/funcs/collectionsGet.d.ts.map +1 -1
- package/funcs/collectionsGet.js +2 -1
- package/funcs/collectionsGet.js.map +1 -1
- package/funcs/collectionsList.d.ts.map +1 -1
- package/funcs/collectionsList.js +2 -1
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/collectionsListEvents.d.ts.map +1 -1
- package/funcs/collectionsListEvents.js +2 -1
- package/funcs/collectionsListEvents.js.map +1 -1
- package/funcs/collectionsSearch.d.ts.map +1 -1
- package/funcs/collectionsSearch.js +2 -1
- package/funcs/collectionsSearch.js.map +1 -1
- package/funcs/collectionsUpdate.d.ts.map +1 -1
- package/funcs/collectionsUpdate.js +2 -1
- package/funcs/collectionsUpdate.js.map +1 -1
- package/funcs/globalDataAggregate.d.ts.map +1 -1
- package/funcs/globalDataAggregate.js +2 -1
- package/funcs/globalDataAggregate.js.map +1 -1
- package/funcs/globalDataConvertLegacySearchQueries.d.ts.map +1 -1
- package/funcs/globalDataConvertLegacySearchQueries.js +2 -1
- package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -1
- package/funcs/globalDataCreateTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataCreateTrackedScan.js +2 -1
- package/funcs/globalDataCreateTrackedScan.js.map +1 -1
- package/funcs/globalDataGetCertificate.d.ts.map +1 -1
- package/funcs/globalDataGetCertificate.js +2 -1
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetCertificateRaw.d.ts.map +1 -1
- package/funcs/globalDataGetCertificateRaw.js +2 -1
- package/funcs/globalDataGetCertificateRaw.js.map +1 -1
- package/funcs/globalDataGetCertificates.d.ts.map +1 -1
- package/funcs/globalDataGetCertificates.js +2 -1
- package/funcs/globalDataGetCertificates.js.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.d.ts.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.js +2 -1
- package/funcs/globalDataGetCertificatesRaw.js.map +1 -1
- package/funcs/globalDataGetHost.d.ts.map +1 -1
- package/funcs/globalDataGetHost.js +2 -1
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostTimeline.d.ts.map +1 -1
- package/funcs/globalDataGetHostTimeline.js +2 -1
- package/funcs/globalDataGetHostTimeline.js.map +1 -1
- package/funcs/globalDataGetHosts.d.ts.map +1 -1
- package/funcs/globalDataGetHosts.js +2 -1
- package/funcs/globalDataGetHosts.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataGetTrackedScan.js +2 -1
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperties.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperties.js +2 -1
- package/funcs/globalDataGetWebProperties.js.map +1 -1
- package/funcs/globalDataGetWebProperty.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperty.js +2 -1
- package/funcs/globalDataGetWebProperty.js.map +1 -1
- package/funcs/globalDataListServicesOnHost.d.ts.map +1 -1
- package/funcs/globalDataListServicesOnHost.js +2 -1
- package/funcs/globalDataListServicesOnHost.js.map +1 -1
- package/funcs/globalDataSearch.d.ts.map +1 -1
- package/funcs/globalDataSearch.js +2 -1
- package/funcs/globalDataSearch.js.map +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.d.ts +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.d.ts.map +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.js +3 -2
- package/funcs/threatHuntingCreateCenseyeJob.js.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.js +2 -1
- package/funcs/threatHuntingCreateTrackedScan.js.map +1 -1
- package/funcs/threatHuntingGetCenseyeJob.d.ts.map +1 -1
- package/funcs/threatHuntingGetCenseyeJob.js +2 -1
- package/funcs/threatHuntingGetCenseyeJob.js.map +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts.map +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.js +2 -1
- package/funcs/threatHuntingGetCenseyeJobResults.js.map +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts.map +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +2 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js +2 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -1
- package/funcs/threatHuntingListCenseyeJobs.d.ts +18 -0
- package/funcs/threatHuntingListCenseyeJobs.d.ts.map +1 -0
- package/funcs/threatHuntingListCenseyeJobs.js +134 -0
- package/funcs/threatHuntingListCenseyeJobs.js.map +1 -0
- package/funcs/threatHuntingListThreats.d.ts.map +1 -1
- package/funcs/threatHuntingListThreats.js +2 -1
- package/funcs/threatHuntingListThreats.js.map +1 -1
- package/funcs/threatHuntingValueCounts.d.ts.map +1 -1
- package/funcs/threatHuntingValueCounts.js +2 -1
- package/funcs/threatHuntingValueCounts.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +7 -0
- package/lib/encodings.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -4
- package/lib/sdks.js.map +1 -1
- package/models/components/censeyejobslistresponse.d.ts +18 -0
- package/models/components/censeyejobslistresponse.d.ts.map +1 -0
- package/models/components/censeyejobslistresponse.js +57 -0
- package/models/components/censeyejobslistresponse.js.map +1 -0
- package/models/components/endpointscan.d.ts +2 -0
- package/models/components/endpointscan.d.ts.map +1 -1
- package/models/components/endpointscan.js +2 -0
- package/models/components/endpointscan.js.map +1 -1
- package/models/components/endpointscanstate.d.ts +2 -0
- package/models/components/endpointscanstate.d.ts.map +1 -1
- package/models/components/endpointscanstate.js +2 -0
- package/models/components/endpointscanstate.js.map +1 -1
- package/models/components/greynoise.d.ts +4 -0
- package/models/components/greynoise.d.ts.map +1 -1
- package/models/components/greynoise.js +6 -0
- package/models/components/greynoise.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/mcp.d.ts +18 -0
- package/models/components/mcp.d.ts.map +1 -0
- package/models/components/mcp.js +66 -0
- package/models/components/mcp.js.map +1 -0
- package/models/components/mcpprompt.d.ts +10 -0
- package/models/components/mcpprompt.d.ts.map +1 -0
- package/models/components/mcpprompt.js +50 -0
- package/models/components/mcpprompt.js.map +1 -0
- package/models/components/mcpresource.d.ts +14 -0
- package/models/components/mcpresource.d.ts.map +1 -0
- package/models/components/mcpresource.js +59 -0
- package/models/components/mcpresource.js.map +1 -0
- package/models/components/mcptool.d.ts +11 -0
- package/models/components/mcptool.d.ts.map +1 -0
- package/models/components/mcptool.js +51 -0
- package/models/components/mcptool.js.map +1 -0
- package/models/components/responseenvelopecenseyejobslistresponse.d.ts +11 -0
- package/models/components/responseenvelopecenseyejobslistresponse.d.ts.map +1 -0
- package/models/components/responseenvelopecenseyejobslistresponse.js +51 -0
- package/models/components/responseenvelopecenseyejobslistresponse.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3threathuntingcenseyejobslist.d.ts +55 -0
- package/models/operations/v3threathuntingcenseyejobslist.d.ts.map +1 -0
- package/models/operations/v3threathuntingcenseyejobslist.js +80 -0
- package/models/operations/v3threathuntingcenseyejobslist.js.map +1 -0
- package/package.json +1 -1
- package/sdk/adversaryinvestigation.d.ts +1 -1
- package/sdk/adversaryinvestigation.js +1 -1
- package/sdk/threathunting.d.ts +8 -1
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +11 -1
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/accountManagementGetMemberCreditUsage.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationCredits.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationDetails.ts +3 -1
- package/src/funcs/accountManagementGetUserCredits.ts +3 -1
- package/src/funcs/accountManagementGetUserCreditsUsage.ts +3 -1
- package/src/funcs/accountManagementInviteUserToOrganization.ts +3 -1
- package/src/funcs/accountManagementListOrganizationMembers.ts +3 -1
- package/src/funcs/accountManagementRemoveOrganizationMember.ts +3 -1
- package/src/funcs/accountManagementUpdateOrganizationMember.ts +3 -1
- package/src/funcs/collectionsAggregate.ts +3 -1
- package/src/funcs/collectionsCreate.ts +3 -1
- package/src/funcs/collectionsDelete.ts +3 -1
- package/src/funcs/collectionsGet.ts +3 -1
- package/src/funcs/collectionsList.ts +3 -1
- package/src/funcs/collectionsListEvents.ts +3 -1
- package/src/funcs/collectionsSearch.ts +3 -1
- package/src/funcs/collectionsUpdate.ts +3 -1
- package/src/funcs/globalDataAggregate.ts +3 -1
- package/src/funcs/globalDataConvertLegacySearchQueries.ts +3 -1
- package/src/funcs/globalDataCreateTrackedScan.ts +3 -1
- package/src/funcs/globalDataGetCertificate.ts +3 -1
- package/src/funcs/globalDataGetCertificateRaw.ts +3 -1
- package/src/funcs/globalDataGetCertificates.ts +3 -1
- package/src/funcs/globalDataGetCertificatesRaw.ts +3 -1
- package/src/funcs/globalDataGetHost.ts +3 -1
- package/src/funcs/globalDataGetHostTimeline.ts +3 -1
- package/src/funcs/globalDataGetHosts.ts +3 -1
- package/src/funcs/globalDataGetTrackedScan.ts +3 -1
- package/src/funcs/globalDataGetWebProperties.ts +3 -1
- package/src/funcs/globalDataGetWebProperty.ts +3 -1
- package/src/funcs/globalDataListServicesOnHost.ts +3 -1
- package/src/funcs/globalDataSearch.ts +3 -1
- package/src/funcs/threatHuntingCreateCenseyeJob.ts +4 -2
- package/src/funcs/threatHuntingCreateTrackedScan.ts +3 -1
- package/src/funcs/threatHuntingGetCenseyeJob.ts +3 -1
- package/src/funcs/threatHuntingGetCenseyeJobResults.ts +3 -1
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +3 -1
- package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +3 -1
- package/src/funcs/threatHuntingListCenseyeJobs.ts +199 -0
- package/src/funcs/threatHuntingListThreats.ts +3 -1
- package/src/funcs/threatHuntingValueCounts.ts +3 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +9 -0
- package/src/lib/sdks.ts +3 -6
- package/src/models/components/censeyejobslistresponse.ts +45 -0
- package/src/models/components/endpointscan.ts +3 -0
- package/src/models/components/endpointscanstate.ts +3 -0
- package/src/models/components/greynoise.ts +10 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/mcp.ts +48 -0
- package/src/models/components/mcpprompt.ts +31 -0
- package/src/models/components/mcpresource.ts +44 -0
- package/src/models/components/mcptool.ts +30 -0
- package/src/models/components/responseenvelopecenseyejobslistresponse.ts +41 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v3threathuntingcenseyejobslist.ts +115 -0
- package/src/sdk/adversaryinvestigation.ts +1 -1
- package/src/sdk/threathunting.ts +19 -1
|
@@ -25,6 +25,7 @@ export * from "./basicconstraints.js";
|
|
|
25
25
|
export * from "./cabforganizationid.js";
|
|
26
26
|
export * from "./capabilities.js";
|
|
27
27
|
export * from "./censeyejob.js";
|
|
28
|
+
export * from "./censeyejobslistresponse.js";
|
|
28
29
|
export * from "./censeyeresult.js";
|
|
29
30
|
export * from "./censeyeresultsresponse.js";
|
|
30
31
|
export * from "./censeyetarget.js";
|
|
@@ -261,6 +262,10 @@ export * from "./lpdmessage.js";
|
|
|
261
262
|
export * from "./matchedservice.js";
|
|
262
263
|
export * from "./mavlink.js";
|
|
263
264
|
export * from "./mavlinkframe.js";
|
|
265
|
+
export * from "./mcp.js";
|
|
266
|
+
export * from "./mcpprompt.js";
|
|
267
|
+
export * from "./mcpresource.js";
|
|
268
|
+
export * from "./mcptool.js";
|
|
264
269
|
export * from "./mdns.js";
|
|
265
270
|
export * from "./mdnsresult.js";
|
|
266
271
|
export * from "./mediacapabilities.js";
|
|
@@ -409,6 +414,7 @@ export * from "./reputationevidenceexternalsignal.js";
|
|
|
409
414
|
export * from "./reputationevidencefieldvalue.js";
|
|
410
415
|
export * from "./reputationevidencethreat.js";
|
|
411
416
|
export * from "./responseenvelopecenseyejob.js";
|
|
417
|
+
export * from "./responseenvelopecenseyejobslistresponse.js";
|
|
412
418
|
export * from "./responseenvelopecenseyeresultsresponse.js";
|
|
413
419
|
export * from "./responseenvelopecertificateasset.js";
|
|
414
420
|
export * from "./responseenvelopecollection.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { McpPrompt, McpPrompt$inboundSchema } from "./mcpprompt.js";
|
|
11
|
+
import { McpResource, McpResource$inboundSchema } from "./mcpresource.js";
|
|
12
|
+
import { McpTool, McpTool$inboundSchema } from "./mcptool.js";
|
|
13
|
+
|
|
14
|
+
export type Mcp = {
|
|
15
|
+
prompts?: Array<McpPrompt> | null | undefined;
|
|
16
|
+
protocolVersion?: string | undefined;
|
|
17
|
+
resources?: Array<McpResource> | null | undefined;
|
|
18
|
+
serverName?: string | undefined;
|
|
19
|
+
serverVersion?: string | undefined;
|
|
20
|
+
tools?: Array<McpTool> | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const Mcp$inboundSchema: z.ZodType<Mcp, z.ZodTypeDef, unknown> = z
|
|
25
|
+
.object({
|
|
26
|
+
prompts: z.nullable(z.array(McpPrompt$inboundSchema)).optional(),
|
|
27
|
+
protocol_version: z.string().optional(),
|
|
28
|
+
resources: z.nullable(z.array(McpResource$inboundSchema)).optional(),
|
|
29
|
+
server_name: z.string().optional(),
|
|
30
|
+
server_version: z.string().optional(),
|
|
31
|
+
tools: z.nullable(z.array(McpTool$inboundSchema)).optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"protocol_version": "protocolVersion",
|
|
35
|
+
"server_name": "serverName",
|
|
36
|
+
"server_version": "serverVersion",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function mcpFromJSON(
|
|
41
|
+
jsonString: string,
|
|
42
|
+
): SafeParseResult<Mcp, SDKValidationError> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) => Mcp$inboundSchema.parse(JSON.parse(x)),
|
|
46
|
+
`Failed to parse 'Mcp' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type McpPrompt = {
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const McpPrompt$inboundSchema: z.ZodType<
|
|
16
|
+
McpPrompt,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
name: z.string().optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function mcpPromptFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<McpPrompt, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => McpPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'McpPrompt' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type McpResource = {
|
|
12
|
+
content?: string | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
mimeType?: string | undefined;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
uri?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const McpResource$inboundSchema: z.ZodType<
|
|
21
|
+
McpResource,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
content: z.string().optional(),
|
|
26
|
+
description: z.string().optional(),
|
|
27
|
+
mime_type: z.string().optional(),
|
|
28
|
+
name: z.string().optional(),
|
|
29
|
+
uri: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"mime_type": "mimeType",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function mcpResourceFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<McpResource, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => McpResource$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'McpResource' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type McpTool = {
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const McpTool$inboundSchema: z.ZodType<McpTool, z.ZodTypeDef, unknown> =
|
|
17
|
+
z.object({
|
|
18
|
+
description: z.string().optional(),
|
|
19
|
+
name: z.string().optional(),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export function mcpToolFromJSON(
|
|
23
|
+
jsonString: string,
|
|
24
|
+
): SafeParseResult<McpTool, SDKValidationError> {
|
|
25
|
+
return safeParse(
|
|
26
|
+
jsonString,
|
|
27
|
+
(x) => McpTool$inboundSchema.parse(JSON.parse(x)),
|
|
28
|
+
`Failed to parse 'McpTool' from JSON`,
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CenseyeJobsListResponse,
|
|
11
|
+
CenseyeJobsListResponse$inboundSchema,
|
|
12
|
+
} from "./censeyejobslistresponse.js";
|
|
13
|
+
|
|
14
|
+
export type ResponseEnvelopeCenseyeJobsListResponse = {
|
|
15
|
+
result?: CenseyeJobsListResponse | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ResponseEnvelopeCenseyeJobsListResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ResponseEnvelopeCenseyeJobsListResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
result: CenseyeJobsListResponse$inboundSchema.optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function responseEnvelopeCenseyeJobsListResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<
|
|
30
|
+
ResponseEnvelopeCenseyeJobsListResponse,
|
|
31
|
+
SDKValidationError
|
|
32
|
+
> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) =>
|
|
36
|
+
ResponseEnvelopeCenseyeJobsListResponse$inboundSchema.parse(
|
|
37
|
+
JSON.parse(x),
|
|
38
|
+
),
|
|
39
|
+
`Failed to parse 'ResponseEnvelopeCenseyeJobsListResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -38,6 +38,7 @@ export * from "./v3globaldataserviceonhost.js";
|
|
|
38
38
|
export * from "./v3threathuntingcenseyejobresults.js";
|
|
39
39
|
export * from "./v3threathuntingcenseyejobscreate.js";
|
|
40
40
|
export * from "./v3threathuntingcenseyejobsget.js";
|
|
41
|
+
export * from "./v3threathuntingcenseyejobslist.js";
|
|
41
42
|
export * from "./v3threathuntinggethostobservationswithcertificate.js";
|
|
42
43
|
export * from "./v3threathuntingscansdiscovery.js";
|
|
43
44
|
export * from "./v3threathuntingscansget.js";
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 V3ThreathuntingCenseyeJobsListGlobals = {
|
|
13
|
+
organizationId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type V3ThreathuntingCenseyeJobsListRequest = {
|
|
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-find-and-use-your-organization-id-optional) for more information.
|
|
19
|
+
*/
|
|
20
|
+
organizationId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Number of results per page (max 100)
|
|
23
|
+
*/
|
|
24
|
+
pageSize?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Pagination token from previous response
|
|
27
|
+
*/
|
|
28
|
+
pageToken?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filter by host IP address.
|
|
31
|
+
*/
|
|
32
|
+
hostId?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filter by web property (hostname:port).
|
|
35
|
+
*/
|
|
36
|
+
webpropertyId?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Filter by certificate SHA-256 fingerprint.
|
|
39
|
+
*/
|
|
40
|
+
certificateId?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type V3ThreathuntingCenseyeJobsListResponse = {
|
|
44
|
+
headers: { [k: string]: Array<string> };
|
|
45
|
+
result: components.ResponseEnvelopeCenseyeJobsListResponse;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type V3ThreathuntingCenseyeJobsListRequest$Outbound = {
|
|
50
|
+
organization_id?: string | undefined;
|
|
51
|
+
page_size: number;
|
|
52
|
+
page_token?: string | undefined;
|
|
53
|
+
host_id?: string | undefined;
|
|
54
|
+
webproperty_id?: string | undefined;
|
|
55
|
+
certificate_id?: string | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const V3ThreathuntingCenseyeJobsListRequest$outboundSchema: z.ZodType<
|
|
60
|
+
V3ThreathuntingCenseyeJobsListRequest$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
V3ThreathuntingCenseyeJobsListRequest
|
|
63
|
+
> = z.object({
|
|
64
|
+
organizationId: z.string().optional(),
|
|
65
|
+
pageSize: z.number().int().default(100),
|
|
66
|
+
pageToken: z.string().optional(),
|
|
67
|
+
hostId: z.string().optional(),
|
|
68
|
+
webpropertyId: z.string().optional(),
|
|
69
|
+
certificateId: z.string().optional(),
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
organizationId: "organization_id",
|
|
73
|
+
pageSize: "page_size",
|
|
74
|
+
pageToken: "page_token",
|
|
75
|
+
hostId: "host_id",
|
|
76
|
+
webpropertyId: "webproperty_id",
|
|
77
|
+
certificateId: "certificate_id",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function v3ThreathuntingCenseyeJobsListRequestToJSON(
|
|
82
|
+
v3ThreathuntingCenseyeJobsListRequest: V3ThreathuntingCenseyeJobsListRequest,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
V3ThreathuntingCenseyeJobsListRequest$outboundSchema.parse(
|
|
86
|
+
v3ThreathuntingCenseyeJobsListRequest,
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const V3ThreathuntingCenseyeJobsListResponse$inboundSchema: z.ZodType<
|
|
93
|
+
V3ThreathuntingCenseyeJobsListResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
98
|
+
Result: components.ResponseEnvelopeCenseyeJobsListResponse$inboundSchema,
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
"Headers": "headers",
|
|
102
|
+
"Result": "result",
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export function v3ThreathuntingCenseyeJobsListResponseFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<V3ThreathuntingCenseyeJobsListResponse, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) =>
|
|
112
|
+
V3ThreathuntingCenseyeJobsListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'V3ThreathuntingCenseyeJobsListResponse' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
@@ -18,7 +18,7 @@ export class AdversaryInvestigation extends ClientSDK {
|
|
|
18
18
|
* CensEye: Create a pivot analysis job
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
|
-
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts 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 Adversary Investigation module.
|
|
21
|
+
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts 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 Adversary Investigation 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.
|
|
22
22
|
*/
|
|
23
23
|
async createCenseyeJob(
|
|
24
24
|
request: operations.V3ThreathuntingCenseyeJobsCreateRequest,
|
package/src/sdk/threathunting.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { threatHuntingGetCenseyeJob } from "../funcs/threatHuntingGetCenseyeJob.
|
|
|
8
8
|
import { threatHuntingGetCenseyeJobResults } from "../funcs/threatHuntingGetCenseyeJobResults.js";
|
|
9
9
|
import { threatHuntingGetHostObservationsWithCertificate } from "../funcs/threatHuntingGetHostObservationsWithCertificate.js";
|
|
10
10
|
import { threatHuntingGetTrackedScanThreatHunting } from "../funcs/threatHuntingGetTrackedScanThreatHunting.js";
|
|
11
|
+
import { threatHuntingListCenseyeJobs } from "../funcs/threatHuntingListCenseyeJobs.js";
|
|
11
12
|
import { threatHuntingListThreats } from "../funcs/threatHuntingListThreats.js";
|
|
12
13
|
import { threatHuntingValueCounts } from "../funcs/threatHuntingValueCounts.js";
|
|
13
14
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -15,11 +16,28 @@ import * as operations from "../models/operations/index.js";
|
|
|
15
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
17
|
|
|
17
18
|
export class ThreatHunting extends ClientSDK {
|
|
19
|
+
/**
|
|
20
|
+
* CensEye: List jobs
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* List CensEye pivot analysis jobs for the current organization. Results are paginated. Optionally filter by asset (host, web property, or certificate).
|
|
24
|
+
*/
|
|
25
|
+
async listCenseyeJobs(
|
|
26
|
+
request: operations.V3ThreathuntingCenseyeJobsListRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<operations.V3ThreathuntingCenseyeJobsListResponse> {
|
|
29
|
+
return unwrapAsync(threatHuntingListCenseyeJobs(
|
|
30
|
+
this,
|
|
31
|
+
request,
|
|
32
|
+
options,
|
|
33
|
+
));
|
|
34
|
+
}
|
|
35
|
+
|
|
18
36
|
/**
|
|
19
37
|
* CensEye: Create a pivot analysis job
|
|
20
38
|
*
|
|
21
39
|
* @remarks
|
|
22
|
-
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts 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 Adversary Investigation module.
|
|
40
|
+
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts 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 Adversary Investigation 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
41
|
*/
|
|
24
42
|
async createCenseyeJob(
|
|
25
43
|
request: operations.V3ThreathuntingCenseyeJobsCreateRequest,
|