@censys/platform-sdk 0.12.13 → 0.12.14
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/docs/sdks/collections/README.md +1 -1
- package/docs/sdks/globaldata/README.md +19 -3
- package/funcs/collectionsUpdate.d.ts +1 -1
- package/funcs/collectionsUpdate.js +1 -1
- package/funcs/globalDataGetCertificate.js +3 -1
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetHost.js +3 -1
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostEnrichment.js +3 -1
- package/funcs/globalDataGetHostEnrichment.js.map +1 -1
- package/funcs/globalDataGetWebProperty.js +2 -0
- package/funcs/globalDataGetWebProperty.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/collection.d.ts +18 -1
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +11 -1
- package/models/components/collection.js.map +1 -1
- package/models/components/crudcreateinputbody.d.ts +19 -0
- package/models/components/crudcreateinputbody.d.ts.map +1 -1
- package/models/components/crudcreateinputbody.js +11 -1
- package/models/components/crudcreateinputbody.js.map +1 -1
- package/models/components/crudupdateinputbody.d.ts +19 -0
- package/models/components/crudupdateinputbody.d.ts.map +1 -1
- package/models/components/crudupdateinputbody.js +11 -1
- package/models/components/crudupdateinputbody.js.map +1 -1
- package/models/operations/v3globaldataassetcertificate.d.ts +10 -0
- package/models/operations/v3globaldataassetcertificate.d.ts.map +1 -1
- package/models/operations/v3globaldataassetcertificate.js +3 -0
- package/models/operations/v3globaldataassetcertificate.js.map +1 -1
- package/models/operations/v3globaldataassethost.d.ts +10 -0
- package/models/operations/v3globaldataassethost.d.ts.map +1 -1
- package/models/operations/v3globaldataassethost.js +3 -0
- package/models/operations/v3globaldataassethost.js.map +1 -1
- package/models/operations/v3globaldataassethostenrichment.d.ts +10 -0
- package/models/operations/v3globaldataassethostenrichment.d.ts.map +1 -1
- package/models/operations/v3globaldataassethostenrichment.js +3 -0
- package/models/operations/v3globaldataassethostenrichment.js.map +1 -1
- package/models/operations/v3globaldataassetwebproperty.d.ts +10 -0
- package/models/operations/v3globaldataassetwebproperty.d.ts.map +1 -1
- package/models/operations/v3globaldataassetwebproperty.js +3 -0
- package/models/operations/v3globaldataassetwebproperty.js.map +1 -1
- package/package.json +2 -2
- package/sdk/collections.d.ts +1 -1
- package/sdk/collections.js +1 -1
- package/src/funcs/collectionsUpdate.ts +1 -1
- package/src/funcs/globalDataGetCertificate.ts +3 -1
- package/src/funcs/globalDataGetHost.ts +3 -1
- package/src/funcs/globalDataGetHostEnrichment.ts +3 -1
- package/src/funcs/globalDataGetWebProperty.ts +2 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/collection.ts +25 -1
- package/src/models/components/crudcreateinputbody.ts +26 -0
- package/src/models/components/crudupdateinputbody.ts +26 -0
- package/src/models/operations/v3globaldataassetcertificate.ts +13 -0
- package/src/models/operations/v3globaldataassethost.ts +13 -0
- package/src/models/operations/v3globaldataassethostenrichment.ts +13 -0
- package/src/models/operations/v3globaldataassetwebproperty.ts +13 -0
- package/src/sdk/collections.ts +1 -1
|
@@ -47,10 +47,13 @@ const components = __importStar(require("../components/index.js"));
|
|
|
47
47
|
exports.V3GlobaldataAssetCertificateRequest$outboundSchema = z.object({
|
|
48
48
|
organizationId: z.string().optional(),
|
|
49
49
|
certificateId: z.string(),
|
|
50
|
+
fields: z.string().optional(),
|
|
51
|
+
excludeFields: z.string().optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return (0, primitives_js_1.remap)(v, {
|
|
52
54
|
organizationId: "organization_id",
|
|
53
55
|
certificateId: "certificate_id",
|
|
56
|
+
excludeFields: "exclude_fields",
|
|
54
57
|
});
|
|
55
58
|
});
|
|
56
59
|
function v3GlobaldataAssetCertificateRequestToJSON(v3GlobaldataAssetCertificateRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassetcertificate.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetcertificate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v3globaldataassetcertificate.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetcertificate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,8FAQC;AAiBD,oGASC;AA/FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAuCrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,0DAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,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,8CAA8C;CAClE,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,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -18,6 +18,14 @@ export type V3GlobaldataAssetHostRequest = {
|
|
|
18
18
|
* RFC3339 Timestamp to view a host at a specific point in time. Must be a valid RFC3339 string. Ensure that you suffix the date with T00:00:00Z or a specific time.
|
|
19
19
|
*/
|
|
20
20
|
atTime?: Date | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
23
|
+
*/
|
|
24
|
+
fields?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
27
|
+
*/
|
|
28
|
+
excludeFields?: string | undefined;
|
|
21
29
|
};
|
|
22
30
|
export type V3GlobaldataAssetHostResponse = {
|
|
23
31
|
headers: {
|
|
@@ -30,6 +38,8 @@ export type V3GlobaldataAssetHostRequest$Outbound = {
|
|
|
30
38
|
organization_id?: string | undefined;
|
|
31
39
|
host_id: string;
|
|
32
40
|
at_time?: string | undefined;
|
|
41
|
+
fields?: string | undefined;
|
|
42
|
+
exclude_fields?: string | undefined;
|
|
33
43
|
};
|
|
34
44
|
/** @internal */
|
|
35
45
|
export declare const V3GlobaldataAssetHostRequest$outboundSchema: z.ZodType<V3GlobaldataAssetHostRequest$Outbound, z.ZodTypeDef, V3GlobaldataAssetHostRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassethost.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethost.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,4BAA4B,GAAG;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"v3globaldataassethost.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethost.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,4BAA4B,GAAG;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,yBAAyB,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAc5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -48,11 +48,14 @@ exports.V3GlobaldataAssetHostRequest$outboundSchema = z.object({
|
|
|
48
48
|
organizationId: z.string().optional(),
|
|
49
49
|
hostId: z.string(),
|
|
50
50
|
atTime: z.date().transform(v => v.toISOString()).optional(),
|
|
51
|
+
fields: z.string().optional(),
|
|
52
|
+
excludeFields: z.string().optional(),
|
|
51
53
|
}).transform((v) => {
|
|
52
54
|
return (0, primitives_js_1.remap)(v, {
|
|
53
55
|
organizationId: "organization_id",
|
|
54
56
|
hostId: "host_id",
|
|
55
57
|
atTime: "at_time",
|
|
58
|
+
excludeFields: "exclude_fields",
|
|
56
59
|
});
|
|
57
60
|
});
|
|
58
61
|
function v3GlobaldataAssetHostRequestToJSON(v3GlobaldataAssetHostRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassethost.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethost.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v3globaldataassethost.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethost.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,gFAQC;AAiBD,sFAQC;AArGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA4CrD,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,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,uCAAuC;CAC3D,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,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -14,6 +14,14 @@ export type V3GlobaldataAssetHostEnrichmentRequest = {
|
|
|
14
14
|
* The IP address of a host.
|
|
15
15
|
*/
|
|
16
16
|
hostIp: string;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
19
|
+
*/
|
|
20
|
+
fields?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
23
|
+
*/
|
|
24
|
+
excludeFields?: string | undefined;
|
|
17
25
|
};
|
|
18
26
|
export type V3GlobaldataAssetHostEnrichmentResponse = {
|
|
19
27
|
headers: {
|
|
@@ -25,6 +33,8 @@ export type V3GlobaldataAssetHostEnrichmentResponse = {
|
|
|
25
33
|
export type V3GlobaldataAssetHostEnrichmentRequest$Outbound = {
|
|
26
34
|
organization_id?: string | undefined;
|
|
27
35
|
host_ip: string;
|
|
36
|
+
fields?: string | undefined;
|
|
37
|
+
exclude_fields?: string | undefined;
|
|
28
38
|
};
|
|
29
39
|
/** @internal */
|
|
30
40
|
export declare const V3GlobaldataAssetHostEnrichmentRequest$outboundSchema: z.ZodType<V3GlobaldataAssetHostEnrichmentRequest$Outbound, z.ZodTypeDef, V3GlobaldataAssetHostEnrichmentRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassethostenrichment.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethostenrichment.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,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"v3globaldataassethostenrichment.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethostenrichment.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,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,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,+CAA+C,GAAG;IAC5D,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,sCAAsC,CAYtC,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,sCAAsC,EACpC,sCAAsC,GACvC,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA"}
|
|
@@ -47,10 +47,13 @@ const components = __importStar(require("../components/index.js"));
|
|
|
47
47
|
exports.V3GlobaldataAssetHostEnrichmentRequest$outboundSchema = z.object({
|
|
48
48
|
organizationId: z.string().optional(),
|
|
49
49
|
hostIp: z.string(),
|
|
50
|
+
fields: z.string().optional(),
|
|
51
|
+
excludeFields: z.string().optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return (0, primitives_js_1.remap)(v, {
|
|
52
54
|
organizationId: "organization_id",
|
|
53
55
|
hostIp: "host_ip",
|
|
56
|
+
excludeFields: "exclude_fields",
|
|
54
57
|
});
|
|
55
58
|
});
|
|
56
59
|
function v3GlobaldataAssetHostEnrichmentRequestToJSON(v3GlobaldataAssetHostEnrichmentRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassethostenrichment.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethostenrichment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v3globaldataassethostenrichment.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassethostenrichment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,oGASC;AAiBD,0GAcC;AArGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAuCrD,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4CAA4C,CAC1D,sCACwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,6DAAqD,CAAC,KAAK,CACzD,sCAAsC,CACvC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,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,iDAAiD;CACrE,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,+CAA+C,CAC7D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6DAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
|
|
@@ -18,6 +18,14 @@ export type V3GlobaldataAssetWebpropertyRequest = {
|
|
|
18
18
|
* RFC3339 Timestamp to view a webproperty at a specific point in time. Must be a valid RFC3339 string. Ensure that you suffix the date with T00:00:00Z or a specific time
|
|
19
19
|
*/
|
|
20
20
|
atTime?: Date | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
23
|
+
*/
|
|
24
|
+
fields?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
27
|
+
*/
|
|
28
|
+
excludeFields?: string | undefined;
|
|
21
29
|
};
|
|
22
30
|
export type V3GlobaldataAssetWebpropertyResponse = {
|
|
23
31
|
headers: {
|
|
@@ -30,6 +38,8 @@ export type V3GlobaldataAssetWebpropertyRequest$Outbound = {
|
|
|
30
38
|
organization_id?: string | undefined;
|
|
31
39
|
webproperty_id: string;
|
|
32
40
|
at_time?: string | undefined;
|
|
41
|
+
fields?: string | undefined;
|
|
42
|
+
exclude_fields?: string | undefined;
|
|
33
43
|
};
|
|
34
44
|
/** @internal */
|
|
35
45
|
export declare const V3GlobaldataAssetWebpropertyRequest$outboundSchema: z.ZodType<V3GlobaldataAssetWebpropertyRequest$Outbound, z.ZodTypeDef, V3GlobaldataAssetWebpropertyRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassetwebproperty.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.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,mCAAmC,GAAG;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"v3globaldataassetwebproperty.d.ts","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.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,mCAAmC,GAAG;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,gCAAgC,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GAAG;IACzD,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAcnC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -48,11 +48,14 @@ exports.V3GlobaldataAssetWebpropertyRequest$outboundSchema = z.object({
|
|
|
48
48
|
organizationId: z.string().optional(),
|
|
49
49
|
webpropertyId: z.string(),
|
|
50
50
|
atTime: z.date().transform(v => v.toISOString()).optional(),
|
|
51
|
+
fields: z.string().optional(),
|
|
52
|
+
excludeFields: z.string().optional(),
|
|
51
53
|
}).transform((v) => {
|
|
52
54
|
return (0, primitives_js_1.remap)(v, {
|
|
53
55
|
organizationId: "organization_id",
|
|
54
56
|
webpropertyId: "webproperty_id",
|
|
55
57
|
atTime: "at_time",
|
|
58
|
+
excludeFields: "exclude_fields",
|
|
56
59
|
});
|
|
57
60
|
});
|
|
58
61
|
function v3GlobaldataAssetWebpropertyRequestToJSON(v3GlobaldataAssetWebpropertyRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3globaldataassetwebproperty.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v3globaldataassetwebproperty.js","sourceRoot":"","sources":["../../src/models/operations/v3globaldataassetwebproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,8FAQC;AAiBD,oGASC;AAtGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA4CrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,0DAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,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,8CAA8C;CAClE,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,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@censys/platform-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"typescript-eslint": "^8.26.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"zod": "^3.25.0 || ^4.
|
|
27
|
+
"zod": "^3.25.0 || ^4.6.6"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/sdk/collections.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare class Collections extends ClientSDK {
|
|
|
37
37
|
* Update a collection
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Update a collection's name, description, and/or
|
|
40
|
+
* Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.V3CollectionsCrudUpdateRequest, options?: RequestOptions): Promise<operations.V3CollectionsCrudUpdateResponse>;
|
|
43
43
|
/**
|
package/sdk/collections.js
CHANGED
|
@@ -57,7 +57,7 @@ class Collections extends sdks_js_1.ClientSDK {
|
|
|
57
57
|
* Update a collection
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
|
-
* Update a collection's name, description, and/or
|
|
60
|
+
* Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
|
|
61
61
|
*/
|
|
62
62
|
async update(request, options) {
|
|
63
63
|
return (0, fp_js_1.unwrapAsync)((0, collectionsUpdate_js_1.collectionsUpdate)(this, request, options));
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Update a collection
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Update a collection's name, description, and/or
|
|
33
|
+
* Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
|
|
34
34
|
*/
|
|
35
35
|
export function collectionsUpdate(
|
|
36
36
|
client: SDKCore,
|
|
@@ -105,6 +105,8 @@ async function $do(
|
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
const query = encodeFormQuery({
|
|
108
|
+
"exclude_fields": payload.exclude_fields,
|
|
109
|
+
"fields": payload.fields,
|
|
108
110
|
"organization_id": payload.organization_id
|
|
109
111
|
?? client._options.organizationId,
|
|
110
112
|
}, { explode: false });
|
|
@@ -185,7 +187,7 @@ async function $do(
|
|
|
185
187
|
key: "Result",
|
|
186
188
|
}),
|
|
187
189
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
188
|
-
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
190
|
+
M.jsonErr([400, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
189
191
|
ctype: "application/problem+json",
|
|
190
192
|
}),
|
|
191
193
|
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -102,6 +102,8 @@ async function $do(
|
|
|
102
102
|
|
|
103
103
|
const query = encodeFormQuery({
|
|
104
104
|
"at_time": payload.at_time,
|
|
105
|
+
"exclude_fields": payload.exclude_fields,
|
|
106
|
+
"fields": payload.fields,
|
|
105
107
|
"organization_id": payload.organization_id
|
|
106
108
|
?? client._options.organizationId,
|
|
107
109
|
}, { explode: false });
|
|
@@ -182,7 +184,7 @@ async function $do(
|
|
|
182
184
|
key: "Result",
|
|
183
185
|
}),
|
|
184
186
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
185
|
-
M.jsonErr([400, 403, 404], errors.ErrorModel$inboundSchema, {
|
|
187
|
+
M.jsonErr([400, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
186
188
|
ctype: "application/problem+json",
|
|
187
189
|
}),
|
|
188
190
|
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
@@ -105,6 +105,8 @@ async function $do(
|
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
const query = encodeFormQuery({
|
|
108
|
+
"exclude_fields": payload.exclude_fields,
|
|
109
|
+
"fields": payload.fields,
|
|
108
110
|
"organization_id": payload.organization_id
|
|
109
111
|
?? client._options.organizationId,
|
|
110
112
|
}, { explode: false });
|
|
@@ -189,7 +191,7 @@ async function $do(
|
|
|
189
191
|
},
|
|
190
192
|
),
|
|
191
193
|
M.jsonErr(401, errors.AuthenticationError$inboundSchema),
|
|
192
|
-
M.jsonErr([400, 403, 404, 409], errors.ErrorModel$inboundSchema, {
|
|
194
|
+
M.jsonErr([400, 403, 404, 409, 422], errors.ErrorModel$inboundSchema, {
|
|
193
195
|
ctype: "application/problem+json",
|
|
194
196
|
}),
|
|
195
197
|
M.jsonErr(429, errors.ErrorModel$inboundSchema, {
|
|
@@ -106,6 +106,8 @@ async function $do(
|
|
|
106
106
|
|
|
107
107
|
const query = encodeFormQuery({
|
|
108
108
|
"at_time": payload.at_time,
|
|
109
|
+
"exclude_fields": payload.exclude_fields,
|
|
110
|
+
"fields": payload.fields,
|
|
109
111
|
"organization_id": payload.organization_id
|
|
110
112
|
?? client._options.organizationId,
|
|
111
113
|
}, { explode: false });
|
package/src/lib/config.ts
CHANGED
|
@@ -65,9 +65,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
|
|
66
66
|
export const SDK_METADATA = {
|
|
67
67
|
language: "typescript",
|
|
68
|
-
openapiDocVersion: "1.0.
|
|
69
|
-
sdkVersion: "0.12.
|
|
70
|
-
genVersion: "2.
|
|
68
|
+
openapiDocVersion: "1.0.163",
|
|
69
|
+
sdkVersion: "0.12.14",
|
|
70
|
+
genVersion: "2.961.1",
|
|
71
71
|
userAgent:
|
|
72
|
-
"speakeasy-sdk/typescript 0.12.
|
|
72
|
+
"speakeasy-sdk/typescript 0.12.14 2.961.1 1.0.163 @censys/platform-sdk",
|
|
73
73
|
} as const;
|
|
@@ -10,6 +10,18 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
15
|
+
*/
|
|
16
|
+
export const CollectionPrivacy = {
|
|
17
|
+
Private: "private",
|
|
18
|
+
Shared: "shared",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
22
|
+
*/
|
|
23
|
+
export type CollectionPrivacy = OpenEnum<typeof CollectionPrivacy>;
|
|
24
|
+
|
|
13
25
|
export const CollectionStatus = {
|
|
14
26
|
Unspecified: "unspecified",
|
|
15
27
|
Populating: "populating",
|
|
@@ -34,12 +46,16 @@ export type Collection = {
|
|
|
34
46
|
addedAssets24Hours: number;
|
|
35
47
|
createTime: Date;
|
|
36
48
|
/**
|
|
37
|
-
* The ID of
|
|
49
|
+
* The ID of the user or service account that created the collection.
|
|
38
50
|
*/
|
|
39
51
|
createdBy?: string | undefined;
|
|
40
52
|
description: string;
|
|
41
53
|
id: string;
|
|
42
54
|
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
57
|
+
*/
|
|
58
|
+
privacy: CollectionPrivacy;
|
|
43
59
|
query: string;
|
|
44
60
|
removedAssets24Hours: number;
|
|
45
61
|
status: CollectionStatus;
|
|
@@ -47,6 +63,13 @@ export type Collection = {
|
|
|
47
63
|
totalAssets: number;
|
|
48
64
|
};
|
|
49
65
|
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CollectionPrivacy$inboundSchema: z.ZodType<
|
|
68
|
+
CollectionPrivacy,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = openEnums.inboundSchema(CollectionPrivacy);
|
|
72
|
+
|
|
50
73
|
/** @internal */
|
|
51
74
|
export const CollectionStatus$inboundSchema: z.ZodType<
|
|
52
75
|
CollectionStatus,
|
|
@@ -75,6 +98,7 @@ export const Collection$inboundSchema: z.ZodType<
|
|
|
75
98
|
description: z.string(),
|
|
76
99
|
id: z.string(),
|
|
77
100
|
name: z.string(),
|
|
101
|
+
privacy: CollectionPrivacy$inboundSchema,
|
|
78
102
|
query: z.string(),
|
|
79
103
|
removed_assets_24_hours: z.number().int(),
|
|
80
104
|
status: CollectionStatus$inboundSchema,
|
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
10
|
+
*/
|
|
11
|
+
export const CrudCreateInputBodyPrivacy = {
|
|
12
|
+
Private: "private",
|
|
13
|
+
Shared: "shared",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
17
|
+
*/
|
|
18
|
+
export type CrudCreateInputBodyPrivacy = ClosedEnum<
|
|
19
|
+
typeof CrudCreateInputBodyPrivacy
|
|
20
|
+
>;
|
|
6
21
|
|
|
7
22
|
export type CrudCreateInputBody = {
|
|
8
23
|
/**
|
|
@@ -13,16 +28,26 @@ export type CrudCreateInputBody = {
|
|
|
13
28
|
* name of the collection
|
|
14
29
|
*/
|
|
15
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
33
|
+
*/
|
|
34
|
+
privacy?: CrudCreateInputBodyPrivacy | undefined;
|
|
16
35
|
/**
|
|
17
36
|
* query string to search upon to build the collection
|
|
18
37
|
*/
|
|
19
38
|
query: string;
|
|
20
39
|
};
|
|
21
40
|
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const CrudCreateInputBodyPrivacy$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof CrudCreateInputBodyPrivacy
|
|
44
|
+
> = z.nativeEnum(CrudCreateInputBodyPrivacy);
|
|
45
|
+
|
|
22
46
|
/** @internal */
|
|
23
47
|
export type CrudCreateInputBody$Outbound = {
|
|
24
48
|
description?: string | undefined;
|
|
25
49
|
name: string;
|
|
50
|
+
privacy: string;
|
|
26
51
|
query: string;
|
|
27
52
|
};
|
|
28
53
|
|
|
@@ -34,6 +59,7 @@ export const CrudCreateInputBody$outboundSchema: z.ZodType<
|
|
|
34
59
|
> = z.object({
|
|
35
60
|
description: z.string().optional(),
|
|
36
61
|
name: z.string(),
|
|
62
|
+
privacy: CrudCreateInputBodyPrivacy$outboundSchema.default("private"),
|
|
37
63
|
query: z.string(),
|
|
38
64
|
});
|
|
39
65
|
|
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
10
|
+
*/
|
|
11
|
+
export const CrudUpdateInputBodyPrivacy = {
|
|
12
|
+
Private: "private",
|
|
13
|
+
Shared: "shared",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
17
|
+
*/
|
|
18
|
+
export type CrudUpdateInputBodyPrivacy = ClosedEnum<
|
|
19
|
+
typeof CrudUpdateInputBodyPrivacy
|
|
20
|
+
>;
|
|
6
21
|
|
|
7
22
|
export type CrudUpdateInputBody = {
|
|
8
23
|
/**
|
|
@@ -13,16 +28,26 @@ export type CrudUpdateInputBody = {
|
|
|
13
28
|
* name of the collection
|
|
14
29
|
*/
|
|
15
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Collection visibility. `private` collections are visible to their creator and organization admins. `shared` collections are also visible to all organization members. Only the creator and organization admins can edit a collection.
|
|
33
|
+
*/
|
|
34
|
+
privacy?: CrudUpdateInputBodyPrivacy | undefined;
|
|
16
35
|
/**
|
|
17
36
|
* query string to search upon to build the collection
|
|
18
37
|
*/
|
|
19
38
|
query: string;
|
|
20
39
|
};
|
|
21
40
|
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const CrudUpdateInputBodyPrivacy$outboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof CrudUpdateInputBodyPrivacy
|
|
44
|
+
> = z.nativeEnum(CrudUpdateInputBodyPrivacy);
|
|
45
|
+
|
|
22
46
|
/** @internal */
|
|
23
47
|
export type CrudUpdateInputBody$Outbound = {
|
|
24
48
|
description?: string | undefined;
|
|
25
49
|
name: string;
|
|
50
|
+
privacy?: string | undefined;
|
|
26
51
|
query: string;
|
|
27
52
|
};
|
|
28
53
|
|
|
@@ -34,6 +59,7 @@ export const CrudUpdateInputBody$outboundSchema: z.ZodType<
|
|
|
34
59
|
> = z.object({
|
|
35
60
|
description: z.string().optional(),
|
|
36
61
|
name: z.string(),
|
|
62
|
+
privacy: CrudUpdateInputBodyPrivacy$outboundSchema.optional(),
|
|
37
63
|
query: z.string(),
|
|
38
64
|
});
|
|
39
65
|
|
|
@@ -22,6 +22,14 @@ export type V3GlobaldataAssetCertificateRequest = {
|
|
|
22
22
|
* The SHA-256 certificate fingerprint.
|
|
23
23
|
*/
|
|
24
24
|
certificateId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
27
|
+
*/
|
|
28
|
+
fields?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
31
|
+
*/
|
|
32
|
+
excludeFields?: string | undefined;
|
|
25
33
|
};
|
|
26
34
|
|
|
27
35
|
export type V3GlobaldataAssetCertificateResponse = {
|
|
@@ -33,6 +41,8 @@ export type V3GlobaldataAssetCertificateResponse = {
|
|
|
33
41
|
export type V3GlobaldataAssetCertificateRequest$Outbound = {
|
|
34
42
|
organization_id?: string | undefined;
|
|
35
43
|
certificate_id: string;
|
|
44
|
+
fields?: string | undefined;
|
|
45
|
+
exclude_fields?: string | undefined;
|
|
36
46
|
};
|
|
37
47
|
|
|
38
48
|
/** @internal */
|
|
@@ -43,10 +53,13 @@ export const V3GlobaldataAssetCertificateRequest$outboundSchema: z.ZodType<
|
|
|
43
53
|
> = z.object({
|
|
44
54
|
organizationId: z.string().optional(),
|
|
45
55
|
certificateId: z.string(),
|
|
56
|
+
fields: z.string().optional(),
|
|
57
|
+
excludeFields: z.string().optional(),
|
|
46
58
|
}).transform((v) => {
|
|
47
59
|
return remap$(v, {
|
|
48
60
|
organizationId: "organization_id",
|
|
49
61
|
certificateId: "certificate_id",
|
|
62
|
+
excludeFields: "exclude_fields",
|
|
50
63
|
});
|
|
51
64
|
});
|
|
52
65
|
|
|
@@ -26,6 +26,14 @@ export type V3GlobaldataAssetHostRequest = {
|
|
|
26
26
|
* RFC3339 Timestamp to view a host at a specific point in time. Must be a valid RFC3339 string. Ensure that you suffix the date with T00:00:00Z or a specific time.
|
|
27
27
|
*/
|
|
28
28
|
atTime?: Date | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
31
|
+
*/
|
|
32
|
+
fields?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
35
|
+
*/
|
|
36
|
+
excludeFields?: string | undefined;
|
|
29
37
|
};
|
|
30
38
|
|
|
31
39
|
export type V3GlobaldataAssetHostResponse = {
|
|
@@ -38,6 +46,8 @@ export type V3GlobaldataAssetHostRequest$Outbound = {
|
|
|
38
46
|
organization_id?: string | undefined;
|
|
39
47
|
host_id: string;
|
|
40
48
|
at_time?: string | undefined;
|
|
49
|
+
fields?: string | undefined;
|
|
50
|
+
exclude_fields?: string | undefined;
|
|
41
51
|
};
|
|
42
52
|
|
|
43
53
|
/** @internal */
|
|
@@ -49,11 +59,14 @@ export const V3GlobaldataAssetHostRequest$outboundSchema: z.ZodType<
|
|
|
49
59
|
organizationId: z.string().optional(),
|
|
50
60
|
hostId: z.string(),
|
|
51
61
|
atTime: z.date().transform(v => v.toISOString()).optional(),
|
|
62
|
+
fields: z.string().optional(),
|
|
63
|
+
excludeFields: z.string().optional(),
|
|
52
64
|
}).transform((v) => {
|
|
53
65
|
return remap$(v, {
|
|
54
66
|
organizationId: "organization_id",
|
|
55
67
|
hostId: "host_id",
|
|
56
68
|
atTime: "at_time",
|
|
69
|
+
excludeFields: "exclude_fields",
|
|
57
70
|
});
|
|
58
71
|
});
|
|
59
72
|
|
|
@@ -22,6 +22,14 @@ export type V3GlobaldataAssetHostEnrichmentRequest = {
|
|
|
22
22
|
* The IP address of a host.
|
|
23
23
|
*/
|
|
24
24
|
hostIp: string;
|
|
25
|
+
/**
|
|
26
|
+
* Comma-separated list of fields to include in the response, in dot notation (for example `services.port`). Repeated fields are filtered per element. Omit the parameter or pass `*` to return every field. Unknown fields are rejected.
|
|
27
|
+
*/
|
|
28
|
+
fields?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Comma-separated list of fields to exclude from the response, in dot notation (for example `services.banner`). Repeated fields are filtered per element. Unknown fields are rejected. Cannot be used together with `fields`.
|
|
31
|
+
*/
|
|
32
|
+
excludeFields?: string | undefined;
|
|
25
33
|
};
|
|
26
34
|
|
|
27
35
|
export type V3GlobaldataAssetHostEnrichmentResponse = {
|
|
@@ -33,6 +41,8 @@ export type V3GlobaldataAssetHostEnrichmentResponse = {
|
|
|
33
41
|
export type V3GlobaldataAssetHostEnrichmentRequest$Outbound = {
|
|
34
42
|
organization_id?: string | undefined;
|
|
35
43
|
host_ip: string;
|
|
44
|
+
fields?: string | undefined;
|
|
45
|
+
exclude_fields?: string | undefined;
|
|
36
46
|
};
|
|
37
47
|
|
|
38
48
|
/** @internal */
|
|
@@ -43,10 +53,13 @@ export const V3GlobaldataAssetHostEnrichmentRequest$outboundSchema: z.ZodType<
|
|
|
43
53
|
> = z.object({
|
|
44
54
|
organizationId: z.string().optional(),
|
|
45
55
|
hostIp: z.string(),
|
|
56
|
+
fields: z.string().optional(),
|
|
57
|
+
excludeFields: z.string().optional(),
|
|
46
58
|
}).transform((v) => {
|
|
47
59
|
return remap$(v, {
|
|
48
60
|
organizationId: "organization_id",
|
|
49
61
|
hostIp: "host_ip",
|
|
62
|
+
excludeFields: "exclude_fields",
|
|
50
63
|
});
|
|
51
64
|
});
|
|
52
65
|
|