@smplkit/sdk 3.0.25 → 3.0.26
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -61,6 +61,15 @@ interface HttpHeader {
|
|
|
61
61
|
name: string;
|
|
62
62
|
value: string;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Supported SIEM forwarder destination types.
|
|
66
|
+
*
|
|
67
|
+
* ADR-047 §2.12. Mirrors the OpenAPI ``ForwarderType`` enum so callers
|
|
68
|
+
* see autocomplete and the compiler rejects typos at build time. The
|
|
69
|
+
* runtime values are a subset of the published constant
|
|
70
|
+
* {@link FORWARDER_TYPES} for callers that need to iterate.
|
|
71
|
+
*/
|
|
72
|
+
type ForwarderType = "http" | "datadog" | "splunk_hec" | "sumo_logic" | "new_relic" | "honeycomb" | "elastic";
|
|
64
73
|
interface ForwarderHttp {
|
|
65
74
|
method: string;
|
|
66
75
|
url: string;
|
|
@@ -76,7 +85,7 @@ interface Forwarder {
|
|
|
76
85
|
id: string;
|
|
77
86
|
name: string;
|
|
78
87
|
slug: string;
|
|
79
|
-
forwarderType:
|
|
88
|
+
forwarderType: ForwarderType;
|
|
80
89
|
enabled: boolean;
|
|
81
90
|
filter: Record<string, unknown> | null;
|
|
82
91
|
transform: string | null;
|
|
@@ -90,7 +99,7 @@ interface Forwarder {
|
|
|
90
99
|
}
|
|
91
100
|
interface CreateForwarderInput {
|
|
92
101
|
name: string;
|
|
93
|
-
forwarderType:
|
|
102
|
+
forwarderType: ForwarderType;
|
|
94
103
|
http: ForwarderHttp;
|
|
95
104
|
enabled?: boolean;
|
|
96
105
|
filter?: Record<string, unknown>;
|
|
@@ -100,7 +109,7 @@ interface CreateForwarderInput {
|
|
|
100
109
|
interface UpdateForwarderInput extends CreateForwarderInput {
|
|
101
110
|
}
|
|
102
111
|
interface ListForwardersParams {
|
|
103
|
-
forwarderType?:
|
|
112
|
+
forwarderType?: ForwarderType;
|
|
104
113
|
enabled?: boolean;
|
|
105
114
|
pageSize?: number;
|
|
106
115
|
pageAfter?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,15 @@ interface HttpHeader {
|
|
|
61
61
|
name: string;
|
|
62
62
|
value: string;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Supported SIEM forwarder destination types.
|
|
66
|
+
*
|
|
67
|
+
* ADR-047 §2.12. Mirrors the OpenAPI ``ForwarderType`` enum so callers
|
|
68
|
+
* see autocomplete and the compiler rejects typos at build time. The
|
|
69
|
+
* runtime values are a subset of the published constant
|
|
70
|
+
* {@link FORWARDER_TYPES} for callers that need to iterate.
|
|
71
|
+
*/
|
|
72
|
+
type ForwarderType = "http" | "datadog" | "splunk_hec" | "sumo_logic" | "new_relic" | "honeycomb" | "elastic";
|
|
64
73
|
interface ForwarderHttp {
|
|
65
74
|
method: string;
|
|
66
75
|
url: string;
|
|
@@ -76,7 +85,7 @@ interface Forwarder {
|
|
|
76
85
|
id: string;
|
|
77
86
|
name: string;
|
|
78
87
|
slug: string;
|
|
79
|
-
forwarderType:
|
|
88
|
+
forwarderType: ForwarderType;
|
|
80
89
|
enabled: boolean;
|
|
81
90
|
filter: Record<string, unknown> | null;
|
|
82
91
|
transform: string | null;
|
|
@@ -90,7 +99,7 @@ interface Forwarder {
|
|
|
90
99
|
}
|
|
91
100
|
interface CreateForwarderInput {
|
|
92
101
|
name: string;
|
|
93
|
-
forwarderType:
|
|
102
|
+
forwarderType: ForwarderType;
|
|
94
103
|
http: ForwarderHttp;
|
|
95
104
|
enabled?: boolean;
|
|
96
105
|
filter?: Record<string, unknown>;
|
|
@@ -100,7 +109,7 @@ interface CreateForwarderInput {
|
|
|
100
109
|
interface UpdateForwarderInput extends CreateForwarderInput {
|
|
101
110
|
}
|
|
102
111
|
interface ListForwardersParams {
|
|
103
|
-
forwarderType?:
|
|
112
|
+
forwarderType?: ForwarderType;
|
|
104
113
|
enabled?: boolean;
|
|
105
114
|
pageSize?: number;
|
|
106
115
|
pageAfter?: string;
|
package/dist/index.js
CHANGED
|
@@ -16807,7 +16807,7 @@ function _forwarderFromResource(resource) {
|
|
|
16807
16807
|
id: resource.id,
|
|
16808
16808
|
name: String(a.name ?? ""),
|
|
16809
16809
|
slug: String(a.slug ?? ""),
|
|
16810
|
-
forwarderType:
|
|
16810
|
+
forwarderType: a.forwarder_type,
|
|
16811
16811
|
enabled: Boolean(a.enabled ?? true),
|
|
16812
16812
|
filter: a.filter ?? null,
|
|
16813
16813
|
transform: a.transform ?? null,
|