@crimson-crawler/crimson-crawler-client 4.1.1

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 (41) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +14 -0
  3. package/README.md +940 -0
  4. package/dist/.package-build.json +29 -0
  5. package/dist/_generated/client.gen.cjs +11 -0
  6. package/dist/_generated/client.gen.d.cts +15 -0
  7. package/dist/_generated/client.gen.d.ts +15 -0
  8. package/dist/_generated/client.gen.js +2 -0
  9. package/dist/_generated/index.cjs +140 -0
  10. package/dist/_generated/index.d.cts +3 -0
  11. package/dist/_generated/index.d.ts +3 -0
  12. package/dist/_generated/index.js +3 -0
  13. package/dist/_generated/sdk.gen.cjs +140 -0
  14. package/dist/_generated/sdk.gen.d.cts +946 -0
  15. package/dist/_generated/sdk.gen.d.ts +946 -0
  16. package/dist/_generated/sdk.gen.js +3 -0
  17. package/dist/_generated/types.gen.cjs +2 -0
  18. package/dist/_generated/types.gen.d.cts +9950 -0
  19. package/dist/_generated/types.gen.d.ts +9950 -0
  20. package/dist/_generated/types.gen.js +1 -0
  21. package/dist/chunk-2X3CCE46.js +294 -0
  22. package/dist/chunk-4CXMKUDH.cjs +783 -0
  23. package/dist/chunk-4HSWOQA6.cjs +328 -0
  24. package/dist/chunk-4PCL3ANB.cjs +190 -0
  25. package/dist/chunk-75ZPJI57.cjs +9 -0
  26. package/dist/chunk-C53EHGN4.js +170 -0
  27. package/dist/chunk-MLKGABMK.js +7 -0
  28. package/dist/chunk-QU4MM663.js +780 -0
  29. package/dist/index.cjs +2507 -0
  30. package/dist/index.d.cts +1283 -0
  31. package/dist/index.d.ts +1283 -0
  32. package/dist/index.js +2487 -0
  33. package/dist/presets-BMN8jy08.d.cts +110 -0
  34. package/dist/presets-BMN8jy08.d.ts +110 -0
  35. package/dist/presets.cjs +79 -0
  36. package/dist/presets.d.cts +1 -0
  37. package/dist/presets.d.ts +1 -0
  38. package/dist/presets.js +2 -0
  39. package/dist/types.gen-ObPczyUH.d.cts +327 -0
  40. package/dist/types.gen-ObPczyUH.d.ts +327 -0
  41. package/package.json +131 -0
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Default `include=[...]` presets for the Crimson Crawler enrichment endpoints.
3
+ *
4
+ * The API's `include` parameter controls which enrichment layers run on a
5
+ * request. These constants encode the most common shapes so consumers do not
6
+ * have to memorize them.
7
+ */
8
+ /**
9
+ * Full CVE → CWE → CAPEC → ATT&CK → TIE chain plus MISP, knowledge base, and web context.
10
+ *
11
+ * This is the recon-agent default. Returns the complete enrichment surface in
12
+ * one round trip. Latency is the highest of any preset (~5-30s on cold cache,
13
+ * sub-second on warm cache).
14
+ */
15
+ declare const CVE_FULL_WALK: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web"];
16
+ /** Quick CVE artifact-enrichment — score, exploit probability, KEV status. No chain walk. */
17
+ declare const CVE_FAST: readonly ["details", "epss", "kev"];
18
+ /** Full walk plus AI summary and adversary attribution. Use for report generation. */
19
+ declare const CVE_NARRATIVE: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web", "summary", "groups", "campaigns"];
20
+ /** IOC → MISP → linked techniques → groups, plus knowledge base and web. */
21
+ declare const IOC_FULL_WALK: readonly ["misp_attributes", "techniques", "groups", "knowledgebase", "web"];
22
+ /** IOC lookup against MISP feeds only — no technique resolution. */
23
+ declare const IOC_FAST: readonly ["misp_attributes"];
24
+ /** CWE → CAPEC → ATT&CK with TIE predictions. Use when starting from a weakness. */
25
+ declare const CWE_FULL_WALK: readonly ["capecs", "techniques", "tie"];
26
+ /** Technique enrichment with TIE, adversary attribution, and Navigator JSON. */
27
+ declare const TECHNIQUE_FULL: readonly ["details", "tie", "groups", "software", "campaigns", "navigator"];
28
+ /**
29
+ * Full product/version walk: matched CVEs with severity, exploit signals, weakness
30
+ * mapping, ATT&CK techniques, threat predictions, MISP events, knowledge base, and web context.
31
+ */
32
+ declare const PRODUCT_FULL: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web"];
33
+ /**
34
+ * Full open-source-package walk: OSV.dev advisories (severity, affected/fixed ranges,
35
+ * references) plus each aliased CVE enriched through the CWE → CAPEC → ATT&CK + EPSS/KEV
36
+ * chain. The package-ecosystem analogue of {@link PRODUCT_FULL}.
37
+ */
38
+ declare const PACKAGE_FULL: readonly ["details", "severity", "affected", "references", "epss", "kev", "cwe", "capec", "techniques", "tie"];
39
+ /**
40
+ * ATLAS adversarial-ML technique walk: technique details, linked ATT&CK techniques,
41
+ * TIE predictions, and the adversary graph (groups, software, campaigns) plus Navigator JSON.
42
+ */
43
+ declare const ATLAS_FULL: readonly ["details", "techniques", "tie", "groups", "software", "campaigns", "navigator"];
44
+ /**
45
+ * Campaign walk: campaign profile, its techniques with TIE predictions, the groups and
46
+ * tooling behind it, the CVEs it exploited, and Navigator JSON.
47
+ */
48
+ declare const CAMPAIGN_FULL: readonly ["details", "techniques", "tie", "groups", "software", "cves", "navigator"];
49
+ /**
50
+ * CAPEC attack-pattern walk: pattern details, mapped ATT&CK techniques with TIE
51
+ * predictions, exploitable CVEs, and the adversary graph plus Navigator JSON.
52
+ */
53
+ declare const CAPEC_FULL: readonly ["details", "techniques", "tie", "cves", "groups", "software", "campaigns", "navigator"];
54
+ /**
55
+ * D3FEND defensive-technique walk: countermeasure details, the offensive techniques it
56
+ * counters, plus knowledge base and web context.
57
+ *
58
+ * Shorter than the other `*_FULL` presets by design — D3FEND has no adversary-graph
59
+ * layers, so knowledge base and web context are the only meaningful additions.
60
+ */
61
+ declare const DEFEND_FULL: readonly ["details", "techniques", "knowledgebase", "web"];
62
+ /**
63
+ * DISARM disinformation-technique walk: technique details, its countermeasures, mapped
64
+ * ATT&CK techniques with TIE predictions, and the adversary graph plus Navigator JSON.
65
+ */
66
+ declare const DISARM_FULL: readonly ["details", "countermeasures", "techniques", "tie", "groups", "software", "campaigns", "navigator"];
67
+ /**
68
+ * Threat-actor walk: group profile, techniques and tooling with TIE predictions, its
69
+ * campaigns and exploited CVEs, targeted sectors and regions, plus Navigator JSON.
70
+ */
71
+ declare const GROUP_FULL: readonly ["details", "techniques", "software", "tie", "campaigns", "cves", "sectors", "locations", "navigator"];
72
+ /**
73
+ * Regional threat-landscape walk: region details, active groups and their techniques with
74
+ * TIE predictions, tooling, campaigns, affected sectors, plus Navigator JSON.
75
+ */
76
+ declare const LOCATION_FULL: readonly ["details", "groups", "techniques", "tie", "software", "campaigns", "sectors", "navigator"];
77
+ /**
78
+ * Sector threat-landscape walk: sector details, the groups targeting it and their techniques
79
+ * with TIE predictions, tooling, campaigns, affected regions, plus Navigator JSON.
80
+ */
81
+ declare const SECTOR_FULL: readonly ["details", "groups", "techniques", "tie", "software", "campaigns", "locations", "navigator"];
82
+ /**
83
+ * Malware/tool walk: software details, the techniques it implements with TIE predictions,
84
+ * the groups and campaigns using it, the CVEs it exploits, plus Navigator JSON.
85
+ */
86
+ declare const SOFTWARE_FULL: readonly ["details", "techniques", "tie", "groups", "campaigns", "cves", "navigator"];
87
+
88
+ declare const presets_ATLAS_FULL: typeof ATLAS_FULL;
89
+ declare const presets_CAMPAIGN_FULL: typeof CAMPAIGN_FULL;
90
+ declare const presets_CAPEC_FULL: typeof CAPEC_FULL;
91
+ declare const presets_CVE_FAST: typeof CVE_FAST;
92
+ declare const presets_CVE_FULL_WALK: typeof CVE_FULL_WALK;
93
+ declare const presets_CVE_NARRATIVE: typeof CVE_NARRATIVE;
94
+ declare const presets_CWE_FULL_WALK: typeof CWE_FULL_WALK;
95
+ declare const presets_DEFEND_FULL: typeof DEFEND_FULL;
96
+ declare const presets_DISARM_FULL: typeof DISARM_FULL;
97
+ declare const presets_GROUP_FULL: typeof GROUP_FULL;
98
+ declare const presets_IOC_FAST: typeof IOC_FAST;
99
+ declare const presets_IOC_FULL_WALK: typeof IOC_FULL_WALK;
100
+ declare const presets_LOCATION_FULL: typeof LOCATION_FULL;
101
+ declare const presets_PACKAGE_FULL: typeof PACKAGE_FULL;
102
+ declare const presets_PRODUCT_FULL: typeof PRODUCT_FULL;
103
+ declare const presets_SECTOR_FULL: typeof SECTOR_FULL;
104
+ declare const presets_SOFTWARE_FULL: typeof SOFTWARE_FULL;
105
+ declare const presets_TECHNIQUE_FULL: typeof TECHNIQUE_FULL;
106
+ declare namespace presets {
107
+ export { presets_ATLAS_FULL as ATLAS_FULL, presets_CAMPAIGN_FULL as CAMPAIGN_FULL, presets_CAPEC_FULL as CAPEC_FULL, presets_CVE_FAST as CVE_FAST, presets_CVE_FULL_WALK as CVE_FULL_WALK, presets_CVE_NARRATIVE as CVE_NARRATIVE, presets_CWE_FULL_WALK as CWE_FULL_WALK, presets_DEFEND_FULL as DEFEND_FULL, presets_DISARM_FULL as DISARM_FULL, presets_GROUP_FULL as GROUP_FULL, presets_IOC_FAST as IOC_FAST, presets_IOC_FULL_WALK as IOC_FULL_WALK, presets_LOCATION_FULL as LOCATION_FULL, presets_PACKAGE_FULL as PACKAGE_FULL, presets_PRODUCT_FULL as PRODUCT_FULL, presets_SECTOR_FULL as SECTOR_FULL, presets_SOFTWARE_FULL as SOFTWARE_FULL, presets_TECHNIQUE_FULL as TECHNIQUE_FULL };
108
+ }
109
+
110
+ export { ATLAS_FULL as A, CAMPAIGN_FULL as C, DEFEND_FULL as D, GROUP_FULL as G, IOC_FAST as I, LOCATION_FULL as L, PACKAGE_FULL as P, SECTOR_FULL as S, TECHNIQUE_FULL as T, CAPEC_FULL as a, CVE_FAST as b, CVE_FULL_WALK as c, CVE_NARRATIVE as d, CWE_FULL_WALK as e, DISARM_FULL as f, IOC_FULL_WALK as g, PRODUCT_FULL as h, SOFTWARE_FULL as i, presets as p };
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Default `include=[...]` presets for the Crimson Crawler enrichment endpoints.
3
+ *
4
+ * The API's `include` parameter controls which enrichment layers run on a
5
+ * request. These constants encode the most common shapes so consumers do not
6
+ * have to memorize them.
7
+ */
8
+ /**
9
+ * Full CVE → CWE → CAPEC → ATT&CK → TIE chain plus MISP, knowledge base, and web context.
10
+ *
11
+ * This is the recon-agent default. Returns the complete enrichment surface in
12
+ * one round trip. Latency is the highest of any preset (~5-30s on cold cache,
13
+ * sub-second on warm cache).
14
+ */
15
+ declare const CVE_FULL_WALK: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web"];
16
+ /** Quick CVE artifact-enrichment — score, exploit probability, KEV status. No chain walk. */
17
+ declare const CVE_FAST: readonly ["details", "epss", "kev"];
18
+ /** Full walk plus AI summary and adversary attribution. Use for report generation. */
19
+ declare const CVE_NARRATIVE: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web", "summary", "groups", "campaigns"];
20
+ /** IOC → MISP → linked techniques → groups, plus knowledge base and web. */
21
+ declare const IOC_FULL_WALK: readonly ["misp_attributes", "techniques", "groups", "knowledgebase", "web"];
22
+ /** IOC lookup against MISP feeds only — no technique resolution. */
23
+ declare const IOC_FAST: readonly ["misp_attributes"];
24
+ /** CWE → CAPEC → ATT&CK with TIE predictions. Use when starting from a weakness. */
25
+ declare const CWE_FULL_WALK: readonly ["capecs", "techniques", "tie"];
26
+ /** Technique enrichment with TIE, adversary attribution, and Navigator JSON. */
27
+ declare const TECHNIQUE_FULL: readonly ["details", "tie", "groups", "software", "campaigns", "navigator"];
28
+ /**
29
+ * Full product/version walk: matched CVEs with severity, exploit signals, weakness
30
+ * mapping, ATT&CK techniques, threat predictions, MISP events, knowledge base, and web context.
31
+ */
32
+ declare const PRODUCT_FULL: readonly ["details", "epss", "kev", "cwe", "capec", "techniques", "tie", "misp", "knowledgebase", "web"];
33
+ /**
34
+ * Full open-source-package walk: OSV.dev advisories (severity, affected/fixed ranges,
35
+ * references) plus each aliased CVE enriched through the CWE → CAPEC → ATT&CK + EPSS/KEV
36
+ * chain. The package-ecosystem analogue of {@link PRODUCT_FULL}.
37
+ */
38
+ declare const PACKAGE_FULL: readonly ["details", "severity", "affected", "references", "epss", "kev", "cwe", "capec", "techniques", "tie"];
39
+ /**
40
+ * ATLAS adversarial-ML technique walk: technique details, linked ATT&CK techniques,
41
+ * TIE predictions, and the adversary graph (groups, software, campaigns) plus Navigator JSON.
42
+ */
43
+ declare const ATLAS_FULL: readonly ["details", "techniques", "tie", "groups", "software", "campaigns", "navigator"];
44
+ /**
45
+ * Campaign walk: campaign profile, its techniques with TIE predictions, the groups and
46
+ * tooling behind it, the CVEs it exploited, and Navigator JSON.
47
+ */
48
+ declare const CAMPAIGN_FULL: readonly ["details", "techniques", "tie", "groups", "software", "cves", "navigator"];
49
+ /**
50
+ * CAPEC attack-pattern walk: pattern details, mapped ATT&CK techniques with TIE
51
+ * predictions, exploitable CVEs, and the adversary graph plus Navigator JSON.
52
+ */
53
+ declare const CAPEC_FULL: readonly ["details", "techniques", "tie", "cves", "groups", "software", "campaigns", "navigator"];
54
+ /**
55
+ * D3FEND defensive-technique walk: countermeasure details, the offensive techniques it
56
+ * counters, plus knowledge base and web context.
57
+ *
58
+ * Shorter than the other `*_FULL` presets by design — D3FEND has no adversary-graph
59
+ * layers, so knowledge base and web context are the only meaningful additions.
60
+ */
61
+ declare const DEFEND_FULL: readonly ["details", "techniques", "knowledgebase", "web"];
62
+ /**
63
+ * DISARM disinformation-technique walk: technique details, its countermeasures, mapped
64
+ * ATT&CK techniques with TIE predictions, and the adversary graph plus Navigator JSON.
65
+ */
66
+ declare const DISARM_FULL: readonly ["details", "countermeasures", "techniques", "tie", "groups", "software", "campaigns", "navigator"];
67
+ /**
68
+ * Threat-actor walk: group profile, techniques and tooling with TIE predictions, its
69
+ * campaigns and exploited CVEs, targeted sectors and regions, plus Navigator JSON.
70
+ */
71
+ declare const GROUP_FULL: readonly ["details", "techniques", "software", "tie", "campaigns", "cves", "sectors", "locations", "navigator"];
72
+ /**
73
+ * Regional threat-landscape walk: region details, active groups and their techniques with
74
+ * TIE predictions, tooling, campaigns, affected sectors, plus Navigator JSON.
75
+ */
76
+ declare const LOCATION_FULL: readonly ["details", "groups", "techniques", "tie", "software", "campaigns", "sectors", "navigator"];
77
+ /**
78
+ * Sector threat-landscape walk: sector details, the groups targeting it and their techniques
79
+ * with TIE predictions, tooling, campaigns, affected regions, plus Navigator JSON.
80
+ */
81
+ declare const SECTOR_FULL: readonly ["details", "groups", "techniques", "tie", "software", "campaigns", "locations", "navigator"];
82
+ /**
83
+ * Malware/tool walk: software details, the techniques it implements with TIE predictions,
84
+ * the groups and campaigns using it, the CVEs it exploits, plus Navigator JSON.
85
+ */
86
+ declare const SOFTWARE_FULL: readonly ["details", "techniques", "tie", "groups", "campaigns", "cves", "navigator"];
87
+
88
+ declare const presets_ATLAS_FULL: typeof ATLAS_FULL;
89
+ declare const presets_CAMPAIGN_FULL: typeof CAMPAIGN_FULL;
90
+ declare const presets_CAPEC_FULL: typeof CAPEC_FULL;
91
+ declare const presets_CVE_FAST: typeof CVE_FAST;
92
+ declare const presets_CVE_FULL_WALK: typeof CVE_FULL_WALK;
93
+ declare const presets_CVE_NARRATIVE: typeof CVE_NARRATIVE;
94
+ declare const presets_CWE_FULL_WALK: typeof CWE_FULL_WALK;
95
+ declare const presets_DEFEND_FULL: typeof DEFEND_FULL;
96
+ declare const presets_DISARM_FULL: typeof DISARM_FULL;
97
+ declare const presets_GROUP_FULL: typeof GROUP_FULL;
98
+ declare const presets_IOC_FAST: typeof IOC_FAST;
99
+ declare const presets_IOC_FULL_WALK: typeof IOC_FULL_WALK;
100
+ declare const presets_LOCATION_FULL: typeof LOCATION_FULL;
101
+ declare const presets_PACKAGE_FULL: typeof PACKAGE_FULL;
102
+ declare const presets_PRODUCT_FULL: typeof PRODUCT_FULL;
103
+ declare const presets_SECTOR_FULL: typeof SECTOR_FULL;
104
+ declare const presets_SOFTWARE_FULL: typeof SOFTWARE_FULL;
105
+ declare const presets_TECHNIQUE_FULL: typeof TECHNIQUE_FULL;
106
+ declare namespace presets {
107
+ export { presets_ATLAS_FULL as ATLAS_FULL, presets_CAMPAIGN_FULL as CAMPAIGN_FULL, presets_CAPEC_FULL as CAPEC_FULL, presets_CVE_FAST as CVE_FAST, presets_CVE_FULL_WALK as CVE_FULL_WALK, presets_CVE_NARRATIVE as CVE_NARRATIVE, presets_CWE_FULL_WALK as CWE_FULL_WALK, presets_DEFEND_FULL as DEFEND_FULL, presets_DISARM_FULL as DISARM_FULL, presets_GROUP_FULL as GROUP_FULL, presets_IOC_FAST as IOC_FAST, presets_IOC_FULL_WALK as IOC_FULL_WALK, presets_LOCATION_FULL as LOCATION_FULL, presets_PACKAGE_FULL as PACKAGE_FULL, presets_PRODUCT_FULL as PRODUCT_FULL, presets_SECTOR_FULL as SECTOR_FULL, presets_SOFTWARE_FULL as SOFTWARE_FULL, presets_TECHNIQUE_FULL as TECHNIQUE_FULL };
108
+ }
109
+
110
+ export { ATLAS_FULL as A, CAMPAIGN_FULL as C, DEFEND_FULL as D, GROUP_FULL as G, IOC_FAST as I, LOCATION_FULL as L, PACKAGE_FULL as P, SECTOR_FULL as S, TECHNIQUE_FULL as T, CAPEC_FULL as a, CVE_FAST as b, CVE_FULL_WALK as c, CVE_NARRATIVE as d, CWE_FULL_WALK as e, DISARM_FULL as f, IOC_FULL_WALK as g, PRODUCT_FULL as h, SOFTWARE_FULL as i, presets as p };
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ var chunk4PCL3ANB_cjs = require('./chunk-4PCL3ANB.cjs');
4
+ require('./chunk-75ZPJI57.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "ATLAS_FULL", {
9
+ enumerable: true,
10
+ get: function () { return chunk4PCL3ANB_cjs.ATLAS_FULL; }
11
+ });
12
+ Object.defineProperty(exports, "CAMPAIGN_FULL", {
13
+ enumerable: true,
14
+ get: function () { return chunk4PCL3ANB_cjs.CAMPAIGN_FULL; }
15
+ });
16
+ Object.defineProperty(exports, "CAPEC_FULL", {
17
+ enumerable: true,
18
+ get: function () { return chunk4PCL3ANB_cjs.CAPEC_FULL; }
19
+ });
20
+ Object.defineProperty(exports, "CVE_FAST", {
21
+ enumerable: true,
22
+ get: function () { return chunk4PCL3ANB_cjs.CVE_FAST; }
23
+ });
24
+ Object.defineProperty(exports, "CVE_FULL_WALK", {
25
+ enumerable: true,
26
+ get: function () { return chunk4PCL3ANB_cjs.CVE_FULL_WALK; }
27
+ });
28
+ Object.defineProperty(exports, "CVE_NARRATIVE", {
29
+ enumerable: true,
30
+ get: function () { return chunk4PCL3ANB_cjs.CVE_NARRATIVE; }
31
+ });
32
+ Object.defineProperty(exports, "CWE_FULL_WALK", {
33
+ enumerable: true,
34
+ get: function () { return chunk4PCL3ANB_cjs.CWE_FULL_WALK; }
35
+ });
36
+ Object.defineProperty(exports, "DEFEND_FULL", {
37
+ enumerable: true,
38
+ get: function () { return chunk4PCL3ANB_cjs.DEFEND_FULL; }
39
+ });
40
+ Object.defineProperty(exports, "DISARM_FULL", {
41
+ enumerable: true,
42
+ get: function () { return chunk4PCL3ANB_cjs.DISARM_FULL; }
43
+ });
44
+ Object.defineProperty(exports, "GROUP_FULL", {
45
+ enumerable: true,
46
+ get: function () { return chunk4PCL3ANB_cjs.GROUP_FULL; }
47
+ });
48
+ Object.defineProperty(exports, "IOC_FAST", {
49
+ enumerable: true,
50
+ get: function () { return chunk4PCL3ANB_cjs.IOC_FAST; }
51
+ });
52
+ Object.defineProperty(exports, "IOC_FULL_WALK", {
53
+ enumerable: true,
54
+ get: function () { return chunk4PCL3ANB_cjs.IOC_FULL_WALK; }
55
+ });
56
+ Object.defineProperty(exports, "LOCATION_FULL", {
57
+ enumerable: true,
58
+ get: function () { return chunk4PCL3ANB_cjs.LOCATION_FULL; }
59
+ });
60
+ Object.defineProperty(exports, "PACKAGE_FULL", {
61
+ enumerable: true,
62
+ get: function () { return chunk4PCL3ANB_cjs.PACKAGE_FULL; }
63
+ });
64
+ Object.defineProperty(exports, "PRODUCT_FULL", {
65
+ enumerable: true,
66
+ get: function () { return chunk4PCL3ANB_cjs.PRODUCT_FULL; }
67
+ });
68
+ Object.defineProperty(exports, "SECTOR_FULL", {
69
+ enumerable: true,
70
+ get: function () { return chunk4PCL3ANB_cjs.SECTOR_FULL; }
71
+ });
72
+ Object.defineProperty(exports, "SOFTWARE_FULL", {
73
+ enumerable: true,
74
+ get: function () { return chunk4PCL3ANB_cjs.SOFTWARE_FULL; }
75
+ });
76
+ Object.defineProperty(exports, "TECHNIQUE_FULL", {
77
+ enumerable: true,
78
+ get: function () { return chunk4PCL3ANB_cjs.TECHNIQUE_FULL; }
79
+ });
@@ -0,0 +1 @@
1
+ export { A as ATLAS_FULL, C as CAMPAIGN_FULL, a as CAPEC_FULL, b as CVE_FAST, c as CVE_FULL_WALK, d as CVE_NARRATIVE, e as CWE_FULL_WALK, D as DEFEND_FULL, f as DISARM_FULL, G as GROUP_FULL, I as IOC_FAST, g as IOC_FULL_WALK, L as LOCATION_FULL, P as PACKAGE_FULL, h as PRODUCT_FULL, S as SECTOR_FULL, i as SOFTWARE_FULL, T as TECHNIQUE_FULL } from './presets-BMN8jy08.cjs';
@@ -0,0 +1 @@
1
+ export { A as ATLAS_FULL, C as CAMPAIGN_FULL, a as CAPEC_FULL, b as CVE_FAST, c as CVE_FULL_WALK, d as CVE_NARRATIVE, e as CWE_FULL_WALK, D as DEFEND_FULL, f as DISARM_FULL, G as GROUP_FULL, I as IOC_FAST, g as IOC_FULL_WALK, L as LOCATION_FULL, P as PACKAGE_FULL, h as PRODUCT_FULL, S as SECTOR_FULL, i as SOFTWARE_FULL, T as TECHNIQUE_FULL } from './presets-BMN8jy08.js';
@@ -0,0 +1,2 @@
1
+ export { ATLAS_FULL, CAMPAIGN_FULL, CAPEC_FULL, CVE_FAST, CVE_FULL_WALK, CVE_NARRATIVE, CWE_FULL_WALK, DEFEND_FULL, DISARM_FULL, GROUP_FULL, IOC_FAST, IOC_FULL_WALK, LOCATION_FULL, PACKAGE_FULL, PRODUCT_FULL, SECTOR_FULL, SOFTWARE_FULL, TECHNIQUE_FULL } from './chunk-C53EHGN4.js';
2
+ import './chunk-MLKGABMK.js';
@@ -0,0 +1,327 @@
1
+ type AuthToken = string | undefined;
2
+ interface Auth {
3
+ /**
4
+ * Which part of the request do we use to send the auth?
5
+ *
6
+ * @default 'header'
7
+ */
8
+ in?: 'header' | 'query' | 'cookie';
9
+ /**
10
+ * A unique identifier for the security scheme.
11
+ *
12
+ * Defined only when there are multiple security schemes whose `Auth`
13
+ * shape would otherwise be identical.
14
+ */
15
+ key?: string;
16
+ /**
17
+ * Header or query parameter name.
18
+ *
19
+ * @default 'Authorization'
20
+ */
21
+ name?: string;
22
+ scheme?: 'basic' | 'bearer';
23
+ type: 'apiKey' | 'http';
24
+ }
25
+
26
+ interface SerializerOptions<T> {
27
+ /**
28
+ * @default true
29
+ */
30
+ explode: boolean;
31
+ style: T;
32
+ }
33
+ type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
34
+ type ObjectStyle = 'form' | 'deepObject';
35
+
36
+ type QuerySerializer = (query: Record<string, unknown>) => string;
37
+ type BodySerializer = (body: unknown) => unknown;
38
+ type QuerySerializerOptionsObject = {
39
+ allowReserved?: boolean;
40
+ array?: Partial<SerializerOptions<ArrayStyle>>;
41
+ object?: Partial<SerializerOptions<ObjectStyle>>;
42
+ };
43
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
44
+ /**
45
+ * Per-parameter serialization overrides. When provided, these settings
46
+ * override the global array/object settings for specific parameter names.
47
+ */
48
+ parameters?: Record<string, QuerySerializerOptionsObject>;
49
+ };
50
+
51
+ type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
52
+ type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
53
+ /**
54
+ * Returns the final request URL.
55
+ */
56
+ buildUrl: BuildUrlFn;
57
+ getConfig: () => Config;
58
+ request: RequestFn;
59
+ setConfig: (config: Config) => Config;
60
+ } & {
61
+ [K in HttpMethod]: MethodFn;
62
+ } & ([SseFn] extends [never] ? {
63
+ sse?: never;
64
+ } : {
65
+ sse: {
66
+ [K in HttpMethod]: SseFn;
67
+ };
68
+ });
69
+ interface Config$1 {
70
+ /**
71
+ * Auth token or a function returning auth token. The resolved value will be
72
+ * added to the request payload as defined by its `security` array.
73
+ */
74
+ auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
75
+ /**
76
+ * A function for serializing request body parameter. By default,
77
+ * {@link JSON.stringify()} will be used.
78
+ */
79
+ bodySerializer?: BodySerializer | null;
80
+ /**
81
+ * An object containing any HTTP headers that you want to pre-populate your
82
+ * `Headers` object with.
83
+ *
84
+ * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
85
+ */
86
+ headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
87
+ /**
88
+ * The request method.
89
+ *
90
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
91
+ */
92
+ method?: Uppercase<HttpMethod>;
93
+ /**
94
+ * A function for serializing request query parameters. By default, arrays
95
+ * will be exploded in form style, objects will be exploded in deepObject
96
+ * style, and reserved characters are percent-encoded.
97
+ *
98
+ * This method will have no effect if the native `paramsSerializer()` Axios
99
+ * API function is used.
100
+ *
101
+ * {@link https://swagger.io/docs/specification/serialization/#query View examples}
102
+ */
103
+ querySerializer?: QuerySerializer | QuerySerializerOptions;
104
+ /**
105
+ * A function validating request data. This is useful if you want to ensure
106
+ * the request conforms to the desired shape, so it can be safely sent to
107
+ * the server.
108
+ */
109
+ requestValidator?: (data: unknown) => Promise<unknown>;
110
+ /**
111
+ * A function transforming response data before it's returned. This is useful
112
+ * for post-processing data, e.g., converting ISO strings into Date objects.
113
+ */
114
+ responseTransformer?: (data: unknown) => Promise<unknown>;
115
+ /**
116
+ * A function validating response data. This is useful if you want to ensure
117
+ * the response conforms to the desired shape, so it can be safely passed to
118
+ * the transformers and returned to the user.
119
+ */
120
+ responseValidator?: (data: unknown) => Promise<unknown>;
121
+ }
122
+ /**
123
+ * Arbitrary metadata passed through the `meta` request option.
124
+ */
125
+ interface ClientMeta {
126
+ }
127
+
128
+ type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
129
+ /**
130
+ * Fetch API implementation. You can use this option to provide a custom
131
+ * fetch instance.
132
+ *
133
+ * @default globalThis.fetch
134
+ */
135
+ fetch?: typeof fetch;
136
+ /**
137
+ * Implementing clients can call request interceptors inside this hook.
138
+ */
139
+ onRequest?: (url: string, init: RequestInit) => Promise<Request>;
140
+ /**
141
+ * Callback invoked when a network or parsing error occurs during streaming.
142
+ *
143
+ * This option applies only if the endpoint returns a stream of events.
144
+ *
145
+ * @param error The error that occurred.
146
+ */
147
+ onSseError?: (error: unknown) => void;
148
+ /**
149
+ * Callback invoked when an event is streamed from the server.
150
+ *
151
+ * This option applies only if the endpoint returns a stream of events.
152
+ *
153
+ * @param event Event streamed from the server.
154
+ * @returns Nothing (void).
155
+ */
156
+ onSseEvent?: (event: StreamEvent<TData>) => void;
157
+ serializedBody?: RequestInit['body'];
158
+ /**
159
+ * Default retry delay in milliseconds.
160
+ *
161
+ * This option applies only if the endpoint returns a stream of events.
162
+ *
163
+ * @default 3000
164
+ */
165
+ sseDefaultRetryDelay?: number;
166
+ /**
167
+ * Maximum number of retry attempts before giving up.
168
+ */
169
+ sseMaxRetryAttempts?: number;
170
+ /**
171
+ * Maximum retry delay in milliseconds.
172
+ *
173
+ * Applies only when exponential backoff is used.
174
+ *
175
+ * This option applies only if the endpoint returns a stream of events.
176
+ *
177
+ * @default 30000
178
+ */
179
+ sseMaxRetryDelay?: number;
180
+ /**
181
+ * Optional sleep function for retry backoff.
182
+ *
183
+ * Defaults to using `setTimeout`.
184
+ */
185
+ sseSleepFn?: (ms: number) => Promise<void>;
186
+ url: string;
187
+ };
188
+ interface StreamEvent<TData = unknown> {
189
+ data: TData;
190
+ event?: string;
191
+ id?: string;
192
+ retry?: number;
193
+ }
194
+ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
195
+ stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
196
+ };
197
+
198
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
199
+ /** response may be undefined due to a network error where no response object is produced */
200
+ response: Res | undefined,
201
+ /** request may be undefined, because error may be from building the request object itself */
202
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
203
+ type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
204
+ type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
205
+ declare class Interceptors<Interceptor> {
206
+ fns: Array<Interceptor | null>;
207
+ clear(): void;
208
+ eject(id: number | Interceptor): void;
209
+ exists(id: number | Interceptor): boolean;
210
+ getInterceptorIndex(id: number | Interceptor): number;
211
+ update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
212
+ use(fn: Interceptor): number;
213
+ }
214
+ interface Middleware<Req, Res, Err, Options> {
215
+ error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
216
+ request: Interceptors<ReqInterceptor<Req, Options>>;
217
+ response: Interceptors<ResInterceptor<Res, Req, Options>>;
218
+ }
219
+
220
+ type ResponseStyle = 'data' | 'fields';
221
+ interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
222
+ /**
223
+ * Base URL for all requests made by this client.
224
+ */
225
+ baseUrl?: T['baseUrl'];
226
+ /**
227
+ * Fetch API implementation. You can use this option to provide a custom
228
+ * fetch instance.
229
+ *
230
+ * @default globalThis.fetch
231
+ */
232
+ fetch?: typeof fetch;
233
+ /**
234
+ * Please don't use the Fetch client for Next.js applications. The `next`
235
+ * options won't have any effect.
236
+ *
237
+ * Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
238
+ */
239
+ next?: never;
240
+ /**
241
+ * Return the response data parsed in a specified format. By default, `auto`
242
+ * will infer the appropriate method from the `Content-Type` response header.
243
+ * You can override this behavior with any of the {@link Body} methods.
244
+ * Select `stream` if you don't want to parse response data at all.
245
+ *
246
+ * @default 'auto'
247
+ */
248
+ parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
249
+ /**
250
+ * Should we return only data or multiple fields (data, error, response, etc.)?
251
+ *
252
+ * @default 'fields'
253
+ */
254
+ responseStyle?: ResponseStyle;
255
+ /**
256
+ * Throw an error instead of returning it in the response?
257
+ *
258
+ * @default false
259
+ */
260
+ throwOnError?: T['throwOnError'];
261
+ }
262
+ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
263
+ responseStyle: TResponseStyle;
264
+ throwOnError: ThrowOnError;
265
+ }>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
266
+ /**
267
+ * Any body that you want to add to your request.
268
+ *
269
+ * {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
270
+ */
271
+ body?: unknown;
272
+ path?: Record<string, unknown>;
273
+ query?: Record<string, unknown>;
274
+ /**
275
+ * Security mechanism(s) to use for the request.
276
+ */
277
+ security?: ReadonlyArray<Auth>;
278
+ url: Url;
279
+ }
280
+ interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
281
+ headers: Headers;
282
+ serializedBody?: string;
283
+ }
284
+ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
285
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
286
+ request: Request;
287
+ response: Response;
288
+ }> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
289
+ data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
290
+ error: undefined;
291
+ } | {
292
+ data: undefined;
293
+ error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
294
+ }) & {
295
+ /** request may be undefined, because error may be from building the request object itself */
296
+ request?: Request;
297
+ /** response may be undefined, because error may be from building the request object itself or from a network error */
298
+ response?: Response;
299
+ }>;
300
+ interface ClientOptions {
301
+ baseUrl?: string;
302
+ responseStyle?: ResponseStyle;
303
+ throwOnError?: boolean;
304
+ }
305
+ type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
306
+ type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData>>;
307
+ type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
308
+ type BuildUrlFn = <TData extends {
309
+ body?: unknown;
310
+ path?: Record<string, unknown>;
311
+ query?: Record<string, unknown>;
312
+ url: string;
313
+ }>(options: TData & Options<TData>) => string;
314
+ type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
315
+ interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
316
+ };
317
+ interface TDataShape {
318
+ body?: unknown;
319
+ headers?: unknown;
320
+ path?: unknown;
321
+ query?: unknown;
322
+ url: string;
323
+ }
324
+ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
325
+ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
326
+
327
+ export type { ClientOptions as C, Options as O, RequestResult as R, TDataShape as T, Config as a, Client as b, ClientMeta as c };