@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.
Files changed (60) hide show
  1. package/docs/sdks/collections/README.md +1 -1
  2. package/docs/sdks/globaldata/README.md +19 -3
  3. package/funcs/collectionsUpdate.d.ts +1 -1
  4. package/funcs/collectionsUpdate.js +1 -1
  5. package/funcs/globalDataGetCertificate.js +3 -1
  6. package/funcs/globalDataGetCertificate.js.map +1 -1
  7. package/funcs/globalDataGetHost.js +3 -1
  8. package/funcs/globalDataGetHost.js.map +1 -1
  9. package/funcs/globalDataGetHostEnrichment.js +3 -1
  10. package/funcs/globalDataGetHostEnrichment.js.map +1 -1
  11. package/funcs/globalDataGetWebProperty.js +2 -0
  12. package/funcs/globalDataGetWebProperty.js.map +1 -1
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +4 -4
  15. package/lib/config.js +4 -4
  16. package/models/components/collection.d.ts +18 -1
  17. package/models/components/collection.d.ts.map +1 -1
  18. package/models/components/collection.js +11 -1
  19. package/models/components/collection.js.map +1 -1
  20. package/models/components/crudcreateinputbody.d.ts +19 -0
  21. package/models/components/crudcreateinputbody.d.ts.map +1 -1
  22. package/models/components/crudcreateinputbody.js +11 -1
  23. package/models/components/crudcreateinputbody.js.map +1 -1
  24. package/models/components/crudupdateinputbody.d.ts +19 -0
  25. package/models/components/crudupdateinputbody.d.ts.map +1 -1
  26. package/models/components/crudupdateinputbody.js +11 -1
  27. package/models/components/crudupdateinputbody.js.map +1 -1
  28. package/models/operations/v3globaldataassetcertificate.d.ts +10 -0
  29. package/models/operations/v3globaldataassetcertificate.d.ts.map +1 -1
  30. package/models/operations/v3globaldataassetcertificate.js +3 -0
  31. package/models/operations/v3globaldataassetcertificate.js.map +1 -1
  32. package/models/operations/v3globaldataassethost.d.ts +10 -0
  33. package/models/operations/v3globaldataassethost.d.ts.map +1 -1
  34. package/models/operations/v3globaldataassethost.js +3 -0
  35. package/models/operations/v3globaldataassethost.js.map +1 -1
  36. package/models/operations/v3globaldataassethostenrichment.d.ts +10 -0
  37. package/models/operations/v3globaldataassethostenrichment.d.ts.map +1 -1
  38. package/models/operations/v3globaldataassethostenrichment.js +3 -0
  39. package/models/operations/v3globaldataassethostenrichment.js.map +1 -1
  40. package/models/operations/v3globaldataassetwebproperty.d.ts +10 -0
  41. package/models/operations/v3globaldataassetwebproperty.d.ts.map +1 -1
  42. package/models/operations/v3globaldataassetwebproperty.js +3 -0
  43. package/models/operations/v3globaldataassetwebproperty.js.map +1 -1
  44. package/package.json +2 -2
  45. package/sdk/collections.d.ts +1 -1
  46. package/sdk/collections.js +1 -1
  47. package/src/funcs/collectionsUpdate.ts +1 -1
  48. package/src/funcs/globalDataGetCertificate.ts +3 -1
  49. package/src/funcs/globalDataGetHost.ts +3 -1
  50. package/src/funcs/globalDataGetHostEnrichment.ts +3 -1
  51. package/src/funcs/globalDataGetWebProperty.ts +2 -0
  52. package/src/lib/config.ts +4 -4
  53. package/src/models/components/collection.ts +25 -1
  54. package/src/models/components/crudcreateinputbody.ts +26 -0
  55. package/src/models/components/crudupdateinputbody.ts +26 -0
  56. package/src/models/operations/v3globaldataassetcertificate.ts +13 -0
  57. package/src/models/operations/v3globaldataassethost.ts +13 -0
  58. package/src/models/operations/v3globaldataassethostenrichment.ts +13 -0
  59. package/src/models/operations/v3globaldataassetwebproperty.ts +13 -0
  60. package/src/sdk/collections.ts +1 -1
@@ -26,6 +26,14 @@ export type V3GlobaldataAssetWebpropertyRequest = {
26
26
  * 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
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 V3GlobaldataAssetWebpropertyResponse = {
@@ -38,6 +46,8 @@ export type V3GlobaldataAssetWebpropertyRequest$Outbound = {
38
46
  organization_id?: string | undefined;
39
47
  webproperty_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 V3GlobaldataAssetWebpropertyRequest$outboundSchema: z.ZodType<
49
59
  organizationId: z.string().optional(),
50
60
  webpropertyId: 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
  webpropertyId: "webproperty_id",
56
68
  atTime: "at_time",
69
+ excludeFields: "exclude_fields",
57
70
  });
58
71
  });
59
72
 
@@ -92,7 +92,7 @@ export class Collections extends ClientSDK {
92
92
  * Update a collection
93
93
  *
94
94
  * @remarks
95
- * Update a collection's name, description, and/or query.<br><br>This endpoint does not cost credits to execute.
95
+ * Update a collection's name, description, query, and/or privacy.<br><br>This endpoint does not cost credits to execute.
96
96
  */
97
97
  async update(
98
98
  request: operations.V3CollectionsCrudUpdateRequest,