@censys/platform-sdk 0.8.0 → 0.9.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.
- package/README.md +10 -6
- package/docs/sdks/accountmanagement/README.md +72 -2
- package/docs/sdks/collections/README.md +0 -1
- package/docs/sdks/globaldata/README.md +0 -1
- package/docs/sdks/threathunting/README.md +78 -1
- package/examples/package-lock.json +1 -1
- package/funcs/accountManagementGetOrganizationCredits.d.ts +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js +1 -1
- package/funcs/accountManagementGetUserCredits.d.ts +18 -0
- package/funcs/accountManagementGetUserCredits.d.ts.map +1 -0
- package/funcs/accountManagementGetUserCredits.js +112 -0
- package/funcs/accountManagementGetUserCredits.js.map +1 -0
- package/funcs/threatHuntingListThreats.d.ts +18 -0
- package/funcs/threatHuntingListThreats.d.ts.map +1 -0
- package/funcs/threatHuntingListThreats.js +130 -0
- package/funcs/threatHuntingListThreats.js.map +1 -0
- 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 +12 -1
- package/lib/encodings.js.map +1 -1
- package/models/components/cobaltstrikeconfig.d.ts +1 -0
- package/models/components/cobaltstrikeconfig.d.ts.map +1 -1
- package/models/components/cobaltstrikeconfig.js +2 -0
- package/models/components/cobaltstrikeconfig.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/responseenvelopethreatslistresponse.d.ts +11 -0
- package/models/components/responseenvelopethreatslistresponse.d.ts.map +1 -0
- package/models/components/responseenvelopethreatslistresponse.js +51 -0
- package/models/components/responseenvelopethreatslistresponse.js.map +1 -0
- package/models/components/responseenvelopeusercredits.d.ts +11 -0
- package/models/components/responseenvelopeusercredits.d.ts.map +1 -0
- package/models/components/responseenvelopeusercredits.js +51 -0
- package/models/components/responseenvelopeusercredits.js.map +1 -0
- package/models/components/threatlistitem.d.ts +42 -0
- package/models/components/threatlistitem.d.ts.map +1 -0
- package/models/components/threatlistitem.js +66 -0
- package/models/components/threatlistitem.js.map +1 -0
- package/models/components/threatreference.d.ts +13 -0
- package/models/components/threatreference.d.ts.map +1 -0
- package/models/components/threatreference.js +50 -0
- package/models/components/threatreference.js.map +1 -0
- package/models/components/threatslistresponse.d.ts +14 -0
- package/models/components/threatslistresponse.d.ts.map +1 -0
- package/models/components/threatslistresponse.js +51 -0
- package/models/components/threatslistresponse.js.map +1 -0
- package/models/components/usercredits.d.ts +17 -0
- package/models/components/usercredits.d.ts.map +1 -0
- package/models/components/usercredits.js +57 -0
- package/models/components/usercredits.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3accountmanagementusercredits.d.ts +14 -0
- package/models/operations/v3accountmanagementusercredits.d.ts.map +1 -0
- package/models/operations/v3accountmanagementusercredits.js +58 -0
- package/models/operations/v3accountmanagementusercredits.js.map +1 -0
- package/models/operations/v3globaldatasearchaggregate.d.ts +1 -1
- package/models/operations/v3globaldatasearchquery.d.ts +1 -1
- package/models/operations/v3threathuntingthreatslist.d.ts +35 -0
- package/models/operations/v3threathuntingthreatslist.d.ts.map +1 -0
- package/models/operations/v3threathuntingthreatslist.js +71 -0
- package/models/operations/v3threathuntingthreatslist.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accountmanagement.d.ts +8 -1
- package/sdk/accountmanagement.d.ts.map +1 -1
- package/sdk/accountmanagement.js +11 -1
- package/sdk/accountmanagement.js.map +1 -1
- package/sdk/threathunting.d.ts +7 -0
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +10 -0
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/accountManagementGetOrganizationCredits.ts +1 -1
- package/src/funcs/accountManagementGetUserCredits.ts +163 -0
- package/src/funcs/threatHuntingListThreats.ts +187 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +17 -3
- package/src/models/components/cobaltstrikeconfig.ts +3 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/responseenvelopethreatslistresponse.ts +36 -0
- package/src/models/components/responseenvelopeusercredits.ts +32 -0
- package/src/models/components/threatlistitem.ts +81 -0
- package/src/models/components/threatreference.ts +34 -0
- package/src/models/components/threatslistresponse.ts +38 -0
- package/src/models/components/usercredits.ts +45 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/v3accountmanagementusercredits.ts +41 -0
- package/src/models/operations/v3globaldatasearchaggregate.ts +1 -1
- package/src/models/operations/v3globaldatasearchquery.ts +1 -1
- package/src/models/operations/v3threathuntingthreatslist.ts +86 -0
- package/src/sdk/accountmanagement.ts +17 -1
- package/src/sdk/threathunting.ts +18 -0
- package/src/types/enums.ts +38 -9
- package/src/types/index.ts +2 -2
- package/src/types/unrecognized.ts +35 -0
- package/tsconfig.json +1 -2
- package/types/enums.d.ts +8 -11
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +59 -3
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +16 -3
- package/types/index.js.map +1 -1
- package/types/unrecognized.d.ts +16 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +34 -0
- package/types/unrecognized.js.map +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ThreatReference = {
|
|
5
|
+
/**
|
|
6
|
+
* URL reference link for the threat.
|
|
7
|
+
*/
|
|
8
|
+
link: string;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const ThreatReference$inboundSchema: z.ZodType<ThreatReference, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function threatReferenceFromJSON(jsonString: string): SafeParseResult<ThreatReference, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=threatreference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threatreference.d.ts","sourceRoot":"","sources":["../../src/models/components/threatreference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.ThreatReference$inboundSchema = void 0;
|
|
40
|
+
exports.threatReferenceFromJSON = threatReferenceFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.ThreatReference$inboundSchema = z.object({
|
|
45
|
+
link: z.string(),
|
|
46
|
+
});
|
|
47
|
+
function threatReferenceFromJSON(jsonString) {
|
|
48
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThreatReference$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreatReference' from JSON`);
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=threatreference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threatreference.js","sourceRoot":"","sources":["../../src/models/components/threatreference.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBH,0DAQC;AA7BD,0CAA4B;AAC5B,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ThreatListItem } from "./threatlistitem.js";
|
|
5
|
+
export type ThreatsListResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* List of active threats observed on the platform.
|
|
8
|
+
*/
|
|
9
|
+
threats: Array<ThreatListItem> | null;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const ThreatsListResponse$inboundSchema: z.ZodType<ThreatsListResponse, z.ZodTypeDef, unknown>;
|
|
13
|
+
export declare function threatsListResponseFromJSON(jsonString: string): SafeParseResult<ThreatsListResponse, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=threatslistresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threatslistresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/threatslistresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ThreatsListResponse$inboundSchema = void 0;
|
|
40
|
+
exports.threatsListResponseFromJSON = threatsListResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const threatlistitem_js_1 = require("./threatlistitem.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.ThreatsListResponse$inboundSchema = z.object({
|
|
46
|
+
threats: z.nullable(z.array(threatlistitem_js_1.ThreatListItem$inboundSchema)),
|
|
47
|
+
});
|
|
48
|
+
function threatsListResponseFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThreatsListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThreatsListResponse' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=threatslistresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threatslistresponse.js","sourceRoot":"","sources":["../../src/models/components/threatslistresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,kEAQC;AAjCD,0CAA4B;AAC5B,qDAAiD;AAGjD,2DAG6B;AAS7B,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gDAA4B,CAAC,CAAC;CAC3D,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type UserCredits = {
|
|
5
|
+
/**
|
|
6
|
+
* The current credit balance for the user.
|
|
7
|
+
*/
|
|
8
|
+
balance: number;
|
|
9
|
+
/**
|
|
10
|
+
* The date that the user's credits will be reset.
|
|
11
|
+
*/
|
|
12
|
+
resetsAt?: Date | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const UserCredits$inboundSchema: z.ZodType<UserCredits, z.ZodTypeDef, unknown>;
|
|
16
|
+
export declare function userCreditsFromJSON(jsonString: string): SafeParseResult<UserCredits, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=usercredits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usercredits.d.ts","sourceRoot":"","sources":["../../src/models/components/usercredits.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.UserCredits$inboundSchema = void 0;
|
|
40
|
+
exports.userCreditsFromJSON = userCreditsFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.UserCredits$inboundSchema = z.object({
|
|
46
|
+
balance: z.number().int(),
|
|
47
|
+
resets_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
48
|
+
.optional(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
"resets_at": "resetsAt",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
function userCreditsFromJSON(jsonString) {
|
|
55
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UserCredits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserCredits' from JSON`);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=usercredits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usercredits.js","sourceRoot":"","sources":["../../src/models/components/usercredits.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCH,kDAQC;AAxCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAejD,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from "./v3accountmanagementorgcreditsusage.js";
|
|
|
6
6
|
export * from "./v3accountmanagementorgdetails.js";
|
|
7
7
|
export * from "./v3accountmanagementremoveorgmember.js";
|
|
8
8
|
export * from "./v3accountmanagementupdateorgmember.js";
|
|
9
|
+
export * from "./v3accountmanagementusercredits.js";
|
|
9
10
|
export * from "./v3collectionscrudcreate.js";
|
|
10
11
|
export * from "./v3collectionscruddelete.js";
|
|
11
12
|
export * from "./v3collectionscrudget.js";
|
|
@@ -31,5 +32,6 @@ export * from "./v3globaldatasearchquery.js";
|
|
|
31
32
|
export * from "./v3threathuntinggethostobservationswithcertificate.js";
|
|
32
33
|
export * from "./v3threathuntingscansdiscovery.js";
|
|
33
34
|
export * from "./v3threathuntingscansget.js";
|
|
35
|
+
export * from "./v3threathuntingthreatslist.js";
|
|
34
36
|
export * from "./v3threathuntingvaluecounts.js";
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wDAAwD,CAAC;AACvE,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wDAAwD,CAAC;AACvE,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC"}
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./v3accountmanagementorgcreditsusage.js"), exports);
|
|
|
25
25
|
__exportStar(require("./v3accountmanagementorgdetails.js"), exports);
|
|
26
26
|
__exportStar(require("./v3accountmanagementremoveorgmember.js"), exports);
|
|
27
27
|
__exportStar(require("./v3accountmanagementupdateorgmember.js"), exports);
|
|
28
|
+
__exportStar(require("./v3accountmanagementusercredits.js"), exports);
|
|
28
29
|
__exportStar(require("./v3collectionscrudcreate.js"), exports);
|
|
29
30
|
__exportStar(require("./v3collectionscruddelete.js"), exports);
|
|
30
31
|
__exportStar(require("./v3collectionscrudget.js"), exports);
|
|
@@ -50,5 +51,6 @@ __exportStar(require("./v3globaldatasearchquery.js"), exports);
|
|
|
50
51
|
__exportStar(require("./v3threathuntinggethostobservationswithcertificate.js"), exports);
|
|
51
52
|
__exportStar(require("./v3threathuntingscansdiscovery.js"), exports);
|
|
52
53
|
__exportStar(require("./v3threathuntingscansget.js"), exports);
|
|
54
|
+
__exportStar(require("./v3threathuntingthreatslist.js"), exports);
|
|
53
55
|
__exportStar(require("./v3threathuntingvaluecounts.js"), exports);
|
|
54
56
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,0EAAwD;AACxD,yEAAuD;AACvD,6EAA2D;AAC3D,qEAAmD;AACnD,0EAAwD;AACxD,qEAAmD;AACnD,0EAAwD;AACxD,0EAAwD;AACxD,+DAA6C;AAC7C,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,oEAAkD;AAClD,gEAA8C;AAC9C,oEAAkD;AAClD,4EAA0D;AAC1D,+EAA6D;AAC7D,uEAAqD;AACrD,6DAA2C;AAC3C,qEAAmD;AACnD,qEAAmD;AACnD,oEAAkD;AAClD,4EAA0D;AAC1D,4DAA0C;AAC1C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,yFAAuE;AACvE,qEAAmD;AACnD,+DAA6C;AAC7C,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,0EAAwD;AACxD,yEAAuD;AACvD,6EAA2D;AAC3D,qEAAmD;AACnD,0EAAwD;AACxD,qEAAmD;AACnD,0EAAwD;AACxD,0EAAwD;AACxD,sEAAoD;AACpD,+DAA6C;AAC7C,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,+DAA6C;AAC7C,oEAAkD;AAClD,gEAA8C;AAC9C,oEAAkD;AAClD,4EAA0D;AAC1D,+EAA6D;AAC7D,uEAAqD;AACrD,6DAA2C;AAC3C,qEAAmD;AACnD,qEAAmD;AACnD,oEAAkD;AAClD,4EAA0D;AAC1D,4DAA0C;AAC1C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,yFAAuE;AACvE,qEAAmD;AACnD,+DAA6C;AAC7C,kEAAgD;AAChD,kEAAgD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 V3AccountmanagementUserCreditsResponse = {
|
|
6
|
+
headers: {
|
|
7
|
+
[k: string]: Array<string>;
|
|
8
|
+
};
|
|
9
|
+
result: components.ResponseEnvelopeUserCredits;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const V3AccountmanagementUserCreditsResponse$inboundSchema: z.ZodType<V3AccountmanagementUserCreditsResponse, z.ZodTypeDef, unknown>;
|
|
13
|
+
export declare function v3AccountmanagementUserCreditsResponseFromJSON(jsonString: string): SafeParseResult<V3AccountmanagementUserCreditsResponse, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=v3accountmanagementusercredits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3accountmanagementusercredits.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3accountmanagementusercredits.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,sCAAsC,GAAG;IACnD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,2BAA2B,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,8CAA8C,CAC5D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,CAO7E"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.V3AccountmanagementUserCreditsResponse$inboundSchema = void 0;
|
|
40
|
+
exports.v3AccountmanagementUserCreditsResponseFromJSON = v3AccountmanagementUserCreditsResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const components = __importStar(require("../components/index.js"));
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.V3AccountmanagementUserCreditsResponse$inboundSchema = z.object({
|
|
47
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
48
|
+
Result: components.ResponseEnvelopeUserCredits$inboundSchema,
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
"Headers": "headers",
|
|
52
|
+
"Result": "result",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
function v3AccountmanagementUserCreditsResponseFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3AccountmanagementUserCreditsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3AccountmanagementUserCreditsResponse' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=v3accountmanagementusercredits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3accountmanagementusercredits.js","sourceRoot":"","sources":["../../src/models/operations/v3accountmanagementusercredits.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,wGASC;AApCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAQrD,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,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,yCAAyC;CAC7D,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,8CAA8C,CAC5D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,4DAAoD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,oEAAoE,CACrE,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ export type V3GlobaldataSearchAggregateGlobals = {
|
|
|
7
7
|
};
|
|
8
8
|
export type V3GlobaldataSearchAggregateRequest = {
|
|
9
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.
|
|
10
|
+
* The ID of a Censys organization to associate the request with. If omitted, the request will be processed using the authenticated user's free wallet where applicable. 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
11
|
*/
|
|
12
12
|
organizationId?: string | undefined;
|
|
13
13
|
searchAggregateInputBody: components.SearchAggregateInputBody;
|
|
@@ -7,7 +7,7 @@ export type V3GlobaldataSearchQueryGlobals = {
|
|
|
7
7
|
};
|
|
8
8
|
export type V3GlobaldataSearchQueryRequest = {
|
|
9
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.
|
|
10
|
+
* The ID of a Censys organization to associate the request with. If omitted, the request will be processed using the authenticated user's free wallet where applicable. 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
11
|
*/
|
|
12
12
|
organizationId?: string | undefined;
|
|
13
13
|
searchQueryInputBody: components.SearchQueryInputBody;
|
|
@@ -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 V3ThreathuntingThreatsListGlobals = {
|
|
6
|
+
organizationId?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type V3ThreathuntingThreatsListRequest = {
|
|
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
|
+
* Optional CenQL filter to constrain threats list
|
|
15
|
+
*/
|
|
16
|
+
query?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type V3ThreathuntingThreatsListResponse = {
|
|
19
|
+
headers: {
|
|
20
|
+
[k: string]: Array<string>;
|
|
21
|
+
};
|
|
22
|
+
result: components.ResponseEnvelopeThreatsListResponse;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type V3ThreathuntingThreatsListRequest$Outbound = {
|
|
26
|
+
organization_id?: string | undefined;
|
|
27
|
+
query?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
/** @internal */
|
|
30
|
+
export declare const V3ThreathuntingThreatsListRequest$outboundSchema: z.ZodType<V3ThreathuntingThreatsListRequest$Outbound, z.ZodTypeDef, V3ThreathuntingThreatsListRequest>;
|
|
31
|
+
export declare function v3ThreathuntingThreatsListRequestToJSON(v3ThreathuntingThreatsListRequest: V3ThreathuntingThreatsListRequest): string;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const V3ThreathuntingThreatsListResponse$inboundSchema: z.ZodType<V3ThreathuntingThreatsListResponse, z.ZodTypeDef, unknown>;
|
|
34
|
+
export declare function v3ThreathuntingThreatsListResponseFromJSON(jsonString: string): SafeParseResult<V3ThreathuntingThreatsListResponse, SDKValidationError>;
|
|
35
|
+
//# sourceMappingURL=v3threathuntingthreatslist.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntingthreatslist.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingthreatslist.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,iCAAiC,GAAG;IAC9C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,mCAAmC,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAQjC,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.V3ThreathuntingThreatsListResponse$inboundSchema = exports.V3ThreathuntingThreatsListRequest$outboundSchema = void 0;
|
|
40
|
+
exports.v3ThreathuntingThreatsListRequestToJSON = v3ThreathuntingThreatsListRequestToJSON;
|
|
41
|
+
exports.v3ThreathuntingThreatsListResponseFromJSON = v3ThreathuntingThreatsListResponseFromJSON;
|
|
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.V3ThreathuntingThreatsListRequest$outboundSchema = z.object({
|
|
48
|
+
organizationId: z.string().optional(),
|
|
49
|
+
query: z.string().optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
organizationId: "organization_id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
function v3ThreathuntingThreatsListRequestToJSON(v3ThreathuntingThreatsListRequest) {
|
|
56
|
+
return JSON.stringify(exports.V3ThreathuntingThreatsListRequest$outboundSchema.parse(v3ThreathuntingThreatsListRequest));
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.V3ThreathuntingThreatsListResponse$inboundSchema = z.object({
|
|
60
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
61
|
+
Result: components.ResponseEnvelopeThreatsListResponse$inboundSchema,
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
"Headers": "headers",
|
|
65
|
+
"Result": "result",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
function v3ThreathuntingThreatsListResponseFromJSON(jsonString) {
|
|
69
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V3ThreathuntingThreatsListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3ThreathuntingThreatsListResponse' from JSON`);
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=v3threathuntingthreatslist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3threathuntingthreatslist.js","sourceRoot":"","sources":["../../src/models/operations/v3threathuntingthreatslist.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;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AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export declare class AccountManagement extends ClientSDK {
|
|
|
15
15
|
*/
|
|
16
16
|
getOrganizationDetails(request: operations.V3AccountmanagementOrgDetailsRequest, options?: RequestOptions): Promise<operations.V3AccountmanagementOrgDetailsResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Get organization credit
|
|
18
|
+
* Get organization credit details
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
* Retrieve credit balance and expiration information for an organization. <br><br>Credits expire 12 months after they are acquired.<br><br>This endpoint does not cost any credits to execute.
|
|
@@ -69,5 +69,12 @@ export declare class AccountManagement extends ClientSDK {
|
|
|
69
69
|
* Retrieve credit consumption information for an organization member for a specific day.<br><br>This endpoint does not cost any credits to execute.
|
|
70
70
|
*/
|
|
71
71
|
getMemberCreditUsage(request: operations.V3AccountmanagementMemberCreditsUsageRequest, options?: RequestOptions): Promise<operations.V3AccountmanagementMemberCreditsUsageResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Get Free user credit details
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Retrieve your Free user account credit balance and refresh information. To retrieve the credit balance for a Starter or Enterprise account, use the [get organization credit details endpoint](https://docs.censys.com/reference/v3-accountmanagement-org-credits).<br><br>This endpoint does not cost any credits to execute.
|
|
77
|
+
*/
|
|
78
|
+
getUserCredits(options?: RequestOptions): Promise<operations.V3AccountmanagementUserCreditsResponse>;
|
|
72
79
|
}
|
|
73
80
|
//# sourceMappingURL=accountmanagement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountmanagement.d.ts","sourceRoot":"","sources":["../src/sdk/accountmanagement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accountmanagement.d.ts","sourceRoot":"","sources":["../src/sdk/accountmanagement.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,kCAAkC,EACnC,MAAM,uDAAuD,CAAC;AAE/D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AAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,yCAAyC,EAC7D,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,kCAAkC,CAAC;KAC3D,GACA,OAAO,CACR,UAAU,CAAC,0CAA0C,GAAG,SAAS,CAClE;IAQD;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,yCAAyC,EAC7D,OAAO,CAAC,EAAE,cAAc,GAAG;QACzB,oBAAoB,CAAC,EAAE,kCAAkC,CAAC;KAC3D,GACA,OAAO,CACR,UAAU,CAAC,0CAA0C,GAAG,SAAS,CAClE;IAQD;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6CAA6C,CAAC;IAQpE;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;CAM9D"}
|
package/sdk/accountmanagement.js
CHANGED
|
@@ -8,6 +8,7 @@ const accountManagementGetMemberCreditUsage_js_1 = require("../funcs/accountMana
|
|
|
8
8
|
const accountManagementGetOrganizationCredits_js_1 = require("../funcs/accountManagementGetOrganizationCredits.js");
|
|
9
9
|
const accountManagementGetOrganizationCreditUsage_js_1 = require("../funcs/accountManagementGetOrganizationCreditUsage.js");
|
|
10
10
|
const accountManagementGetOrganizationDetails_js_1 = require("../funcs/accountManagementGetOrganizationDetails.js");
|
|
11
|
+
const accountManagementGetUserCredits_js_1 = require("../funcs/accountManagementGetUserCredits.js");
|
|
11
12
|
const accountManagementInviteUserToOrganization_js_1 = require("../funcs/accountManagementInviteUserToOrganization.js");
|
|
12
13
|
const accountManagementListOrganizationMembers_js_1 = require("../funcs/accountManagementListOrganizationMembers.js");
|
|
13
14
|
const accountManagementRemoveOrganizationMember_js_1 = require("../funcs/accountManagementRemoveOrganizationMember.js");
|
|
@@ -31,7 +32,7 @@ class AccountManagement extends sdks_js_1.ClientSDK {
|
|
|
31
32
|
return (0, fp_js_1.unwrapAsync)((0, accountManagementGetOrganizationDetails_js_1.accountManagementGetOrganizationDetails)(this, request, options));
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
|
-
* Get organization credit
|
|
35
|
+
* Get organization credit details
|
|
35
36
|
*
|
|
36
37
|
* @remarks
|
|
37
38
|
* Retrieve credit balance and expiration information for an organization. <br><br>Credits expire 12 months after they are acquired.<br><br>This endpoint does not cost any credits to execute.
|
|
@@ -93,6 +94,15 @@ class AccountManagement extends sdks_js_1.ClientSDK {
|
|
|
93
94
|
async getMemberCreditUsage(request, options) {
|
|
94
95
|
return (0, fp_js_1.unwrapAsync)((0, accountManagementGetMemberCreditUsage_js_1.accountManagementGetMemberCreditUsage)(this, request, options));
|
|
95
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Get Free user credit details
|
|
99
|
+
*
|
|
100
|
+
* @remarks
|
|
101
|
+
* Retrieve your Free user account credit balance and refresh information. To retrieve the credit balance for a Starter or Enterprise account, use the [get organization credit details endpoint](https://docs.censys.com/reference/v3-accountmanagement-org-credits).<br><br>This endpoint does not cost any credits to execute.
|
|
102
|
+
*/
|
|
103
|
+
async getUserCredits(options) {
|
|
104
|
+
return (0, fp_js_1.unwrapAsync)((0, accountManagementGetUserCredits_js_1.accountManagementGetUserCredits)(this, options));
|
|
105
|
+
}
|
|
96
106
|
}
|
|
97
107
|
exports.AccountManagement = AccountManagement;
|
|
98
108
|
//# sourceMappingURL=accountmanagement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountmanagement.js","sourceRoot":"","sources":["../src/sdk/accountmanagement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,4HAAsH;AACtH,oHAA8G;AAC9G,wHAG+D;AAC/D,sHAAgH;AAChH,wHAG+D;AAC/D,wHAG+D;AAC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AAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAA6D,EAC7D,OAEC;QAID,OAAO,IAAA,mBAAW,EAAC,IAAA,wFAAyC,EAC1D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gFAAqC,EACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"accountmanagement.js","sourceRoot":"","sources":["../src/sdk/accountmanagement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gHAA0G;AAC1G,oHAA8G;AAC9G,4HAAsH;AACtH,oHAA8G;AAC9G,oGAA8F;AAC9F,wHAG+D;AAC/D,sHAAgH;AAChH,wHAG+D;AAC/D,wHAG+D;AAC/D,4CAA2D;AAE3D,0CAA6C;AAE7C,sHAA2G;AAAlG,kKAAA,kCAAkC,OAAA;AAE3C,sHAA2G;AAAlG,kKAAA,kCAAkC,OAAA;AAE3C,sHAA2G;AAAlG,kKAAA,kCAAkC,OAAA;AAE3C,MAAa,iBAAkB,SAAQ,mBAAS;IAC9C;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oFAAuC,EACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9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22,13 @@ export declare class ThreatHunting extends ClientSDK {
|
|
|
22
22
|
* Retrieve the current status of a scan by its ID. This endpoint works for both [Live Discovery scans](https://docs.censys.com/reference/v3-threathunting-scans-discovery#/) and [Live Rescans](https://docs.censys.com/reference/v3-globaldata-scans-rescan#/).<br><br>If the scan was successful, perform a lookup on the target asset to retrieve detailed scan information.<br><br>This endpoint is available to all Enterprise customers. This endpoint does not cost any credits to execute.
|
|
23
23
|
*/
|
|
24
24
|
getTrackedScanThreatHunting(request: operations.V3ThreathuntingScansGetRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingScansGetResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* List active threats
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Retrieve a list of active threats observed by Censys by aggregating threat IDs across hosts and web properties. Threats are active if their fingerprint has been identified on hosts or web properties by Censys scans. This information is also available on the [Explore Threats page in the Platform web UI](https://platform.censys.io/threats).
|
|
30
|
+
*/
|
|
31
|
+
listThreats(request: operations.V3ThreathuntingThreatsListRequest, options?: RequestOptions): Promise<operations.V3ThreathuntingThreatsListResponse>;
|
|
25
32
|
/**
|
|
26
33
|
* CensEye: Retrieve value counts to discover pivots
|
|
27
34
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threathunting.d.ts","sourceRoot":"","sources":["../src/sdk/threathunting.ts"],"names":[],"mappings":"
|
|
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"}
|