@veltrosecurity/sdk 0.0.0 → 0.15.7
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/LICENSE +202 -0
- package/README.md +115 -1
- package/dist/index.cjs +3674 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1981 -0
- package/dist/index.d.ts +1981 -0
- package/dist/index.js +3624 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,3624 @@
|
|
|
1
|
+
// src/http.ts
|
|
2
|
+
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
3
|
+
var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
|
|
4
|
+
var DEFAULT_RETRIES = 2;
|
|
5
|
+
var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
6
|
+
var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
|
|
7
|
+
var USER_AGENT = "veltro-sdk/0.15.7 (+https://github.com/veltrosecurity/veltro)";
|
|
8
|
+
var VeltroError = class extends Error {
|
|
9
|
+
constructor(message) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.name = "VeltroError";
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var VeltroTransportError = class extends VeltroError {
|
|
15
|
+
constructor(message) {
|
|
16
|
+
super(message);
|
|
17
|
+
this.name = "VeltroTransportError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var VeltroResponseTooLargeError = class extends VeltroError {
|
|
21
|
+
constructor(message) {
|
|
22
|
+
super(message);
|
|
23
|
+
this.name = "VeltroResponseTooLargeError";
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var VeltroApiError = class extends VeltroError {
|
|
27
|
+
status;
|
|
28
|
+
method;
|
|
29
|
+
url;
|
|
30
|
+
code;
|
|
31
|
+
detail;
|
|
32
|
+
body;
|
|
33
|
+
constructor(args) {
|
|
34
|
+
const code = args.code ? ` ${args.code}` : "";
|
|
35
|
+
const detail = args.detail ? `: ${args.detail}` : "";
|
|
36
|
+
super(`${args.method} ${args.url} -> HTTP ${args.status}${code}${detail}`);
|
|
37
|
+
this.name = "VeltroApiError";
|
|
38
|
+
this.status = args.status;
|
|
39
|
+
this.method = args.method;
|
|
40
|
+
this.url = args.url;
|
|
41
|
+
this.code = args.code ?? null;
|
|
42
|
+
this.detail = args.detail ?? "";
|
|
43
|
+
this.body = args.body;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function quoteSegment(value) {
|
|
47
|
+
return encodeURIComponent(String(value));
|
|
48
|
+
}
|
|
49
|
+
function encodeParams(params) {
|
|
50
|
+
if (!params) return "";
|
|
51
|
+
const search = new URLSearchParams();
|
|
52
|
+
for (const [key, value] of Object.entries(params)) {
|
|
53
|
+
if (value === null || value === void 0) continue;
|
|
54
|
+
if (Array.isArray(value)) {
|
|
55
|
+
for (const item of value) search.append(key, String(item));
|
|
56
|
+
} else {
|
|
57
|
+
search.append(key, String(value));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return search.toString();
|
|
61
|
+
}
|
|
62
|
+
function errorFields(payload) {
|
|
63
|
+
if (payload && typeof payload === "object") {
|
|
64
|
+
const record = payload;
|
|
65
|
+
const error = record.error;
|
|
66
|
+
if (error && typeof error === "object") {
|
|
67
|
+
const inner = error;
|
|
68
|
+
return {
|
|
69
|
+
code: inner.code ? String(inner.code) : null,
|
|
70
|
+
detail: inner.message ? String(inner.message) : ""
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
if (typeof error === "string") return { code: null, detail: error };
|
|
74
|
+
const detail = record.detail;
|
|
75
|
+
if (detail && typeof detail === "object") {
|
|
76
|
+
const inner = detail;
|
|
77
|
+
const code = inner.code ?? inner.error;
|
|
78
|
+
return {
|
|
79
|
+
code: code ? String(code) : null,
|
|
80
|
+
detail: String(inner.message ?? inner.detail ?? "")
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (typeof detail === "string") return { code: null, detail };
|
|
84
|
+
if (Array.isArray(detail)) {
|
|
85
|
+
return { code: null, detail: JSON.stringify(detail).slice(0, 500) };
|
|
86
|
+
}
|
|
87
|
+
if (typeof record.message === "string") {
|
|
88
|
+
return { code: null, detail: record.message };
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (typeof payload === "string") return { code: null, detail: payload.slice(0, 500) };
|
|
92
|
+
return { code: null, detail: "" };
|
|
93
|
+
}
|
|
94
|
+
async function readCapped(response, limit, method, url) {
|
|
95
|
+
const body = response.body;
|
|
96
|
+
if (!body) return "";
|
|
97
|
+
const reader = body.getReader();
|
|
98
|
+
const chunks = [];
|
|
99
|
+
let read = 0;
|
|
100
|
+
for (; ; ) {
|
|
101
|
+
const { done, value } = await reader.read();
|
|
102
|
+
if (done) break;
|
|
103
|
+
if (value) {
|
|
104
|
+
read += value.byteLength;
|
|
105
|
+
if (read > limit) {
|
|
106
|
+
await reader.cancel().catch(() => void 0);
|
|
107
|
+
throw new VeltroResponseTooLargeError(
|
|
108
|
+
`${method} ${url} -> response exceeded maxResponseBytes=${limit}`
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
chunks.push(value);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const merged = new Uint8Array(read);
|
|
115
|
+
let offset = 0;
|
|
116
|
+
for (const chunk of chunks) {
|
|
117
|
+
merged.set(chunk, offset);
|
|
118
|
+
offset += chunk.byteLength;
|
|
119
|
+
}
|
|
120
|
+
return new TextDecoder().decode(merged);
|
|
121
|
+
}
|
|
122
|
+
function decode(text, contentType) {
|
|
123
|
+
if (!text) return null;
|
|
124
|
+
if (contentType.includes("json")) {
|
|
125
|
+
try {
|
|
126
|
+
return JSON.parse(text);
|
|
127
|
+
} catch {
|
|
128
|
+
return text;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return text;
|
|
132
|
+
}
|
|
133
|
+
function backoffMs(attempt, retryAfter) {
|
|
134
|
+
if (retryAfter) {
|
|
135
|
+
const seconds = Number(retryAfter);
|
|
136
|
+
if (Number.isFinite(seconds) && seconds >= 0) return Math.min(3e4, seconds * 1e3);
|
|
137
|
+
}
|
|
138
|
+
return Math.min(8e3, 250 * 2 ** attempt);
|
|
139
|
+
}
|
|
140
|
+
function canRetry(method, headers) {
|
|
141
|
+
return RETRY_METHODS.has(method) || Boolean(headers.get("idempotency-key")?.trim());
|
|
142
|
+
}
|
|
143
|
+
var Transport = class {
|
|
144
|
+
baseUrl;
|
|
145
|
+
auth;
|
|
146
|
+
timeoutMs;
|
|
147
|
+
retries;
|
|
148
|
+
maxResponseBytes;
|
|
149
|
+
extraHeaders;
|
|
150
|
+
fetchImpl;
|
|
151
|
+
sleep;
|
|
152
|
+
constructor(baseUrl, options = {}) {
|
|
153
|
+
if (!baseUrl) throw new Error("baseUrl is required");
|
|
154
|
+
this.baseUrl = baseUrl.replace(/\/+$/, "");
|
|
155
|
+
this.auth = options.auth;
|
|
156
|
+
this.timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
157
|
+
this.retries = Math.max(0, options.retries ?? DEFAULT_RETRIES);
|
|
158
|
+
this.maxResponseBytes = options.maxResponseBytes ?? DEFAULT_MAX_RESPONSE_BYTES;
|
|
159
|
+
this.extraHeaders = options.headers ?? {};
|
|
160
|
+
this.fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis);
|
|
161
|
+
this.sleep = options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
162
|
+
}
|
|
163
|
+
urlFor(path, params) {
|
|
164
|
+
const suffix = path.startsWith("/") ? path : `/${path}`;
|
|
165
|
+
const query = encodeParams(params);
|
|
166
|
+
return query ? `${this.baseUrl}${suffix}?${query}` : `${this.baseUrl}${suffix}`;
|
|
167
|
+
}
|
|
168
|
+
async request(method, path, options = {}) {
|
|
169
|
+
if (options.json !== void 0 && options.body !== void 0) {
|
|
170
|
+
throw new Error("pass either json or body, not both");
|
|
171
|
+
}
|
|
172
|
+
const url = this.urlFor(path, options.params);
|
|
173
|
+
const upper = method.toUpperCase();
|
|
174
|
+
let body = options.body;
|
|
175
|
+
const attempts = this.retries + 1;
|
|
176
|
+
let lastError;
|
|
177
|
+
for (let attempt = 0; attempt < attempts; attempt += 1) {
|
|
178
|
+
const headers = new Headers({
|
|
179
|
+
Accept: "application/json",
|
|
180
|
+
"User-Agent": USER_AGENT,
|
|
181
|
+
...this.extraHeaders
|
|
182
|
+
});
|
|
183
|
+
if (options.json !== void 0) {
|
|
184
|
+
body = JSON.stringify(options.json);
|
|
185
|
+
headers.set("Content-Type", "application/json");
|
|
186
|
+
}
|
|
187
|
+
if (this.auth) await this.auth.apply(upper, url, headers);
|
|
188
|
+
for (const [key, value] of Object.entries(options.headers ?? {})) {
|
|
189
|
+
headers.set(key, value);
|
|
190
|
+
}
|
|
191
|
+
const controller = new AbortController();
|
|
192
|
+
const timeout = setTimeout(
|
|
193
|
+
() => controller.abort(),
|
|
194
|
+
options.timeoutMs ?? this.timeoutMs
|
|
195
|
+
);
|
|
196
|
+
const onAbort = () => controller.abort();
|
|
197
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
198
|
+
let response;
|
|
199
|
+
try {
|
|
200
|
+
response = await this.fetchImpl(url, {
|
|
201
|
+
method: upper,
|
|
202
|
+
headers,
|
|
203
|
+
body,
|
|
204
|
+
signal: controller.signal,
|
|
205
|
+
redirect: "manual"
|
|
206
|
+
});
|
|
207
|
+
} catch (cause) {
|
|
208
|
+
const error = new VeltroTransportError(
|
|
209
|
+
`${upper} ${url}: ${cause instanceof Error ? cause.message : String(cause)}`
|
|
210
|
+
);
|
|
211
|
+
if (attempt < attempts - 1 && canRetry(upper, headers)) {
|
|
212
|
+
lastError = error;
|
|
213
|
+
await this.sleep(backoffMs(attempt, null));
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
throw error;
|
|
217
|
+
} finally {
|
|
218
|
+
clearTimeout(timeout);
|
|
219
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
220
|
+
}
|
|
221
|
+
const contentType = response.headers.get("content-type") ?? "";
|
|
222
|
+
const text = await readCapped(response, this.maxResponseBytes, upper, url);
|
|
223
|
+
if (!response.ok) {
|
|
224
|
+
const payload = decode(text, contentType);
|
|
225
|
+
const { code, detail } = errorFields(payload);
|
|
226
|
+
const error = new VeltroApiError({
|
|
227
|
+
status: response.status,
|
|
228
|
+
method: upper,
|
|
229
|
+
url,
|
|
230
|
+
code,
|
|
231
|
+
detail,
|
|
232
|
+
body: payload
|
|
233
|
+
});
|
|
234
|
+
if (RETRY_STATUSES.has(response.status) && attempt < attempts - 1 && canRetry(upper, headers)) {
|
|
235
|
+
lastError = error;
|
|
236
|
+
await this.sleep(backoffMs(attempt, response.headers.get("retry-after")));
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
throw error;
|
|
240
|
+
}
|
|
241
|
+
if (options.raw) return text;
|
|
242
|
+
return decode(text, contentType);
|
|
243
|
+
}
|
|
244
|
+
throw lastError ?? new VeltroTransportError(`${upper} ${url}: no attempt was made`);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var Resource = class {
|
|
248
|
+
transport;
|
|
249
|
+
constructor(transport) {
|
|
250
|
+
this.transport = transport;
|
|
251
|
+
}
|
|
252
|
+
request(method, path, options = {}) {
|
|
253
|
+
return this.transport.request(method, path, options);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
// src/auth.ts
|
|
258
|
+
var SESSION_COOKIE_PREFIX = "authjs.session-token";
|
|
259
|
+
var LOGIN_MAX_RESPONSE_BYTES = 1024 * 1024;
|
|
260
|
+
function mask(secret) {
|
|
261
|
+
return secret.length <= 8 ? "***" : `${secret.slice(0, 4)}\u2026*** (len ${secret.length})`;
|
|
262
|
+
}
|
|
263
|
+
var NoAuth = class {
|
|
264
|
+
apply() {
|
|
265
|
+
}
|
|
266
|
+
toString() {
|
|
267
|
+
return "NoAuth()";
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
var BearerToken = class {
|
|
271
|
+
token;
|
|
272
|
+
constructor(token) {
|
|
273
|
+
if (!token?.trim()) throw new Error("token is required");
|
|
274
|
+
this.token = token.trim();
|
|
275
|
+
}
|
|
276
|
+
apply(_method, _url, headers) {
|
|
277
|
+
headers.set("Authorization", `Bearer ${this.token}`);
|
|
278
|
+
}
|
|
279
|
+
toString() {
|
|
280
|
+
return `BearerToken(${mask(this.token)})`;
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
function cookieKey(cookie) {
|
|
284
|
+
return `${cookie.domain}\0${cookie.path}\0${cookie.name}`;
|
|
285
|
+
}
|
|
286
|
+
function defaultCookiePath(pathname) {
|
|
287
|
+
const cut = pathname.lastIndexOf("/");
|
|
288
|
+
const derived = cut === -1 ? "" : pathname.slice(0, cut);
|
|
289
|
+
return derived === "" ? "/" : derived;
|
|
290
|
+
}
|
|
291
|
+
function pathMatches(cookiePath, requestPath) {
|
|
292
|
+
if (cookiePath === "/" || requestPath === cookiePath) return true;
|
|
293
|
+
if (!requestPath.startsWith(cookiePath)) return false;
|
|
294
|
+
return cookiePath.endsWith("/") || requestPath[cookiePath.length] === "/";
|
|
295
|
+
}
|
|
296
|
+
function cookieMatches(cookie, target) {
|
|
297
|
+
if (cookie.secure && target.protocol !== "https:") return false;
|
|
298
|
+
const host = target.hostname.toLowerCase();
|
|
299
|
+
const domainOk = cookie.hostOnly ? host === cookie.domain : host === cookie.domain || host.endsWith(`.${cookie.domain}`);
|
|
300
|
+
if (!domainOk) return false;
|
|
301
|
+
return pathMatches(cookie.path, target.pathname || "/");
|
|
302
|
+
}
|
|
303
|
+
var SuiteSession = class {
|
|
304
|
+
identityUrl;
|
|
305
|
+
email;
|
|
306
|
+
password;
|
|
307
|
+
timeoutMs;
|
|
308
|
+
fetchImpl;
|
|
309
|
+
cookies = /* @__PURE__ */ new Map();
|
|
310
|
+
loggedIn = false;
|
|
311
|
+
inFlight = null;
|
|
312
|
+
constructor(identityUrl, email, password, options = {}) {
|
|
313
|
+
if (!identityUrl) throw new Error("identityUrl is required");
|
|
314
|
+
const parsed = new URL(identityUrl);
|
|
315
|
+
if (parsed.protocol !== "https:" && !options.allowInsecureTransport) {
|
|
316
|
+
throw new Error(
|
|
317
|
+
"refusing to send suite credentials over plain HTTP; pass allowInsecureTransport only for a loopback deployment"
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
this.identityUrl = identityUrl.replace(/\/+$/, "");
|
|
321
|
+
this.email = email;
|
|
322
|
+
this.password = password;
|
|
323
|
+
this.timeoutMs = options.timeoutMs ?? 3e4;
|
|
324
|
+
this.fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Attach the session cookie only where RFC 6265 says it belongs.
|
|
328
|
+
*
|
|
329
|
+
* The suite gateway serves CHAD, Warden and VectorFlow under the identity
|
|
330
|
+
* origin's own path prefixes, so a correctly scoped cookie still reaches all
|
|
331
|
+
* three. A product client pointed at some other origin gets no credential
|
|
332
|
+
* instead of the suite session — the same guarantee `redirect: "manual"`
|
|
333
|
+
* gives on the login leg, applied to the steady state.
|
|
334
|
+
*/
|
|
335
|
+
async apply(_method, url, headers) {
|
|
336
|
+
if (!this.loggedIn) await this.login();
|
|
337
|
+
const cookie = this.cookieHeaderFor(url);
|
|
338
|
+
if (cookie) headers.set("Cookie", cookie);
|
|
339
|
+
}
|
|
340
|
+
/** Mint a suite session. Concurrent callers share one login. */
|
|
341
|
+
async login() {
|
|
342
|
+
if (this.inFlight) return this.inFlight;
|
|
343
|
+
this.inFlight = this.performLogin().finally(() => {
|
|
344
|
+
this.inFlight = null;
|
|
345
|
+
});
|
|
346
|
+
return this.inFlight;
|
|
347
|
+
}
|
|
348
|
+
/** Drop the current session and log in again. */
|
|
349
|
+
async refresh() {
|
|
350
|
+
this.cookies.clear();
|
|
351
|
+
this.loggedIn = false;
|
|
352
|
+
await this.login();
|
|
353
|
+
}
|
|
354
|
+
async performLogin() {
|
|
355
|
+
const csrf = await this.csrfToken();
|
|
356
|
+
const payload = await this.call("POST", "/api/auth/login", {
|
|
357
|
+
headers: { "Content-Type": "application/json", "x-csrf-token": csrf },
|
|
358
|
+
body: JSON.stringify({ email: this.email, password: this.password })
|
|
359
|
+
});
|
|
360
|
+
const hasSession = [...this.cookies.values()].some(
|
|
361
|
+
(cookie) => cookie.name.startsWith(SESSION_COOKIE_PREFIX)
|
|
362
|
+
);
|
|
363
|
+
if (!hasSession) {
|
|
364
|
+
throw new VeltroApiError({
|
|
365
|
+
status: 200,
|
|
366
|
+
method: "POST",
|
|
367
|
+
url: `${this.identityUrl}/api/auth/login`,
|
|
368
|
+
code: "suite_login_no_session_cookie",
|
|
369
|
+
detail: "the identity authority accepted the login but set no session cookie",
|
|
370
|
+
body: payload
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
this.loggedIn = true;
|
|
374
|
+
}
|
|
375
|
+
async csrfToken() {
|
|
376
|
+
const payload = await this.call("GET", "/api/auth/csrf", {});
|
|
377
|
+
const token = payload && typeof payload === "object" ? String(
|
|
378
|
+
payload.csrfToken ?? payload.csrf_token ?? ""
|
|
379
|
+
) : "";
|
|
380
|
+
if (!token) {
|
|
381
|
+
throw new VeltroApiError({
|
|
382
|
+
status: 200,
|
|
383
|
+
method: "GET",
|
|
384
|
+
url: `${this.identityUrl}/api/auth/csrf`,
|
|
385
|
+
code: "suite_login_no_csrf_token",
|
|
386
|
+
detail: "the identity authority returned no CSRF token",
|
|
387
|
+
body: payload
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
return token;
|
|
391
|
+
}
|
|
392
|
+
async call(method, path, init) {
|
|
393
|
+
const url = `${this.identityUrl}${path}`;
|
|
394
|
+
const headers = new Headers({
|
|
395
|
+
Accept: "application/json",
|
|
396
|
+
"User-Agent": USER_AGENT,
|
|
397
|
+
...init.headers ?? {}
|
|
398
|
+
});
|
|
399
|
+
const cookie = this.cookieHeaderFor(url);
|
|
400
|
+
if (cookie) headers.set("Cookie", cookie);
|
|
401
|
+
const controller = new AbortController();
|
|
402
|
+
const timeout = setTimeout(() => controller.abort(), this.timeoutMs);
|
|
403
|
+
let response;
|
|
404
|
+
try {
|
|
405
|
+
response = await this.fetchImpl(url, {
|
|
406
|
+
method,
|
|
407
|
+
headers,
|
|
408
|
+
body: init.body,
|
|
409
|
+
signal: controller.signal,
|
|
410
|
+
redirect: "manual"
|
|
411
|
+
});
|
|
412
|
+
} catch (cause) {
|
|
413
|
+
throw new VeltroTransportError(
|
|
414
|
+
`${method} ${url}: ${cause instanceof Error ? cause.message : String(cause)}`
|
|
415
|
+
);
|
|
416
|
+
} finally {
|
|
417
|
+
clearTimeout(timeout);
|
|
418
|
+
}
|
|
419
|
+
const text = await readCapped(response, LOGIN_MAX_RESPONSE_BYTES, method, url);
|
|
420
|
+
if (!response.ok) {
|
|
421
|
+
let detail = "";
|
|
422
|
+
try {
|
|
423
|
+
const decoded = JSON.parse(text);
|
|
424
|
+
detail = String(decoded.error ?? decoded.detail ?? "");
|
|
425
|
+
} catch {
|
|
426
|
+
detail = "";
|
|
427
|
+
}
|
|
428
|
+
throw new VeltroApiError({
|
|
429
|
+
status: response.status,
|
|
430
|
+
method,
|
|
431
|
+
url,
|
|
432
|
+
code: "suite_login_refused",
|
|
433
|
+
detail
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
this.absorbCookies(response.headers, url);
|
|
437
|
+
if (!text) return null;
|
|
438
|
+
try {
|
|
439
|
+
return JSON.parse(text);
|
|
440
|
+
} catch {
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
/** Longest cookie path first, as `http.cookiejar` orders a request's jar. */
|
|
445
|
+
cookieHeaderFor(url) {
|
|
446
|
+
let target;
|
|
447
|
+
try {
|
|
448
|
+
target = new URL(url);
|
|
449
|
+
} catch {
|
|
450
|
+
return "";
|
|
451
|
+
}
|
|
452
|
+
return [...this.cookies.values()].filter((cookie) => cookieMatches(cookie, target)).sort((left, right) => right.path.length - left.path.length).map((cookie) => `${cookie.name}=${cookie.value}`).join("; ");
|
|
453
|
+
}
|
|
454
|
+
absorbCookies(headers, requestUrl) {
|
|
455
|
+
const raw = typeof headers.getSetCookie === "function" ? headers.getSetCookie() : [headers.get("set-cookie")].filter((value) => Boolean(value));
|
|
456
|
+
const origin = new URL(requestUrl);
|
|
457
|
+
const requestHost = origin.hostname.toLowerCase();
|
|
458
|
+
const effectiveHost = requestHost.includes(".") ? requestHost : `${requestHost}.local`;
|
|
459
|
+
for (const entry of raw) {
|
|
460
|
+
const [pair, ...attributes] = entry.split(";");
|
|
461
|
+
const index = pair.indexOf("=");
|
|
462
|
+
if (index <= 0) continue;
|
|
463
|
+
const name = pair.slice(0, index).trim();
|
|
464
|
+
const value = pair.slice(index + 1).trim();
|
|
465
|
+
let domain = "";
|
|
466
|
+
let path = "";
|
|
467
|
+
let secure = false;
|
|
468
|
+
for (const attribute of attributes) {
|
|
469
|
+
const split = attribute.indexOf("=");
|
|
470
|
+
const key = (split === -1 ? attribute : attribute.slice(0, split)).trim().toLowerCase();
|
|
471
|
+
const attributeValue = split === -1 ? "" : attribute.slice(split + 1).trim();
|
|
472
|
+
if (key === "domain") domain = attributeValue.replace(/^\./, "").toLowerCase();
|
|
473
|
+
else if (key === "path") path = attributeValue;
|
|
474
|
+
else if (key === "secure") secure = true;
|
|
475
|
+
}
|
|
476
|
+
if (domain) {
|
|
477
|
+
if (requestHost !== domain && !requestHost.endsWith(`.${domain}`)) continue;
|
|
478
|
+
if (!domain.includes(".") && !effectiveHost.endsWith(".local")) continue;
|
|
479
|
+
}
|
|
480
|
+
const cookie = {
|
|
481
|
+
name,
|
|
482
|
+
value,
|
|
483
|
+
domain: domain || requestHost,
|
|
484
|
+
hostOnly: domain === "",
|
|
485
|
+
path: path || defaultCookiePath(origin.pathname),
|
|
486
|
+
secure
|
|
487
|
+
};
|
|
488
|
+
if (value === "" || value === "deleted") {
|
|
489
|
+
this.cookies.delete(cookieKey(cookie));
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
this.cookies.set(cookieKey(cookie), cookie);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
toString() {
|
|
496
|
+
return `SuiteSession(${this.identityUrl}, ${this.email}, password=***, loggedIn=${this.loggedIn})`;
|
|
497
|
+
}
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
// src/operations.ts
|
|
501
|
+
var ChadAiCopilot = class extends Resource {
|
|
502
|
+
/** POST /api/ai/copilot/explain-alert — Explain Alert. */
|
|
503
|
+
explainAlert(options = {}) {
|
|
504
|
+
return this.request("POST", "/api/ai/copilot/explain-alert", options);
|
|
505
|
+
}
|
|
506
|
+
/** POST /api/ai/copilot/explain-rule — Explain Rule. */
|
|
507
|
+
explainRule(options = {}) {
|
|
508
|
+
return this.request("POST", "/api/ai/copilot/explain-rule", options);
|
|
509
|
+
}
|
|
510
|
+
/** POST /api/ai/copilot/generate-rule — Generate Rule. */
|
|
511
|
+
generateRule(options = {}) {
|
|
512
|
+
return this.request("POST", "/api/ai/copilot/generate-rule", options);
|
|
513
|
+
}
|
|
514
|
+
/** POST /api/ai/copilot/suggest-exceptions — Suggest Exceptions. */
|
|
515
|
+
suggestExceptions(options = {}) {
|
|
516
|
+
return this.request("POST", "/api/ai/copilot/suggest-exceptions", options);
|
|
517
|
+
}
|
|
518
|
+
/** POST /api/ai/copilot/suggest-field-mappings — Suggest Rule Field Mappings. */
|
|
519
|
+
suggestRuleFieldMappings(options = {}) {
|
|
520
|
+
return this.request("POST", "/api/ai/copilot/suggest-field-mappings", options);
|
|
521
|
+
}
|
|
522
|
+
/** POST /api/ai/copilot/summarize-alert — Summarize Alert. */
|
|
523
|
+
summarizeAlert(options = {}) {
|
|
524
|
+
return this.request("POST", "/api/ai/copilot/summarize-alert", options);
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
var ChadAlerts = class extends Resource {
|
|
528
|
+
/** POST /api/alerts/{alert_id}/assign — Assign Alert. */
|
|
529
|
+
assign(alertId, options = {}) {
|
|
530
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/assign`, options);
|
|
531
|
+
}
|
|
532
|
+
/** POST /api/alerts/bulk/delete — Bulk Delete Alerts. */
|
|
533
|
+
bulkDelete(options = {}) {
|
|
534
|
+
return this.request("POST", "/api/alerts/bulk/delete", options);
|
|
535
|
+
}
|
|
536
|
+
/** POST /api/alerts/bulk/status — Bulk Update Alert Status. */
|
|
537
|
+
bulkUpdateAlertStatus(options = {}) {
|
|
538
|
+
return this.request("POST", "/api/alerts/bulk/status", options);
|
|
539
|
+
}
|
|
540
|
+
/** POST /api/alerts/bulk/status-by-query — Bulk Update Alert Status By Query. */
|
|
541
|
+
bulkUpdateAlertStatusByQuery(options = {}) {
|
|
542
|
+
return this.request("POST", "/api/alerts/bulk/status-by-query", options);
|
|
543
|
+
}
|
|
544
|
+
/** POST /api/alerts/{alert_id}/comments — Create Alert Comment. */
|
|
545
|
+
createAlertComment(alertId, options = {}) {
|
|
546
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/comments`, options);
|
|
547
|
+
}
|
|
548
|
+
/** DELETE /api/alerts/{alert_id} — Delete Alert. */
|
|
549
|
+
delete(alertId, options = {}) {
|
|
550
|
+
return this.request("DELETE", `/api/alerts/${quoteSegment(alertId)}`, options);
|
|
551
|
+
}
|
|
552
|
+
/** DELETE /api/alerts/{alert_id}/comments/{comment_id} — Delete Alert Comment. */
|
|
553
|
+
deleteAlertComment(alertId, commentId, options = {}) {
|
|
554
|
+
return this.request("DELETE", `/api/alerts/${quoteSegment(alertId)}/comments/${quoteSegment(commentId)}`, options);
|
|
555
|
+
}
|
|
556
|
+
/** POST /api/alerts/{alert_id}/escalate-to-warden — Escalate Alert To Warden. */
|
|
557
|
+
escalateAlertToWarden(alertId, options = {}) {
|
|
558
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/escalate-to-warden`, options);
|
|
559
|
+
}
|
|
560
|
+
/** GET /api/alerts/{alert_id} — Get Alert. */
|
|
561
|
+
get(alertId, options = {}) {
|
|
562
|
+
return this.request("GET", `/api/alerts/${quoteSegment(alertId)}`, options);
|
|
563
|
+
}
|
|
564
|
+
/** GET /api/alerts/counts — Get Alert Counts. */
|
|
565
|
+
getAlertCounts(options = {}) {
|
|
566
|
+
return this.request("GET", "/api/alerts/counts", options);
|
|
567
|
+
}
|
|
568
|
+
/** GET /api/alerts/{alert_id}/disposition — Get Alert Disposition. */
|
|
569
|
+
getAlertDisposition(alertId, options = {}) {
|
|
570
|
+
return this.request("GET", `/api/alerts/${quoteSegment(alertId)}/disposition`, options);
|
|
571
|
+
}
|
|
572
|
+
/** GET /api/alerts/{alert_id}/related — Get Related Alerts. */
|
|
573
|
+
getRelated(alertId, options = {}) {
|
|
574
|
+
return this.request("GET", `/api/alerts/${quoteSegment(alertId)}/related`, options);
|
|
575
|
+
}
|
|
576
|
+
/** GET /api/alerts — List Alerts. */
|
|
577
|
+
list(options = {}) {
|
|
578
|
+
return this.request("GET", "/api/alerts", options);
|
|
579
|
+
}
|
|
580
|
+
/** GET /api/alerts/{alert_id}/comments — List Alert Comments. */
|
|
581
|
+
listAlertComments(alertId, options = {}) {
|
|
582
|
+
return this.request("GET", `/api/alerts/${quoteSegment(alertId)}/comments`, options);
|
|
583
|
+
}
|
|
584
|
+
/** GET /api/alerts/assignable-users — List Assignable Users. */
|
|
585
|
+
listAssignableUsers(options = {}) {
|
|
586
|
+
return this.request("GET", "/api/alerts/assignable-users", options);
|
|
587
|
+
}
|
|
588
|
+
/** PUT /api/alerts/{alert_id}/disposition — Record Alert Disposition. */
|
|
589
|
+
recordAlertDisposition(alertId, options = {}) {
|
|
590
|
+
return this.request("PUT", `/api/alerts/${quoteSegment(alertId)}/disposition`, options);
|
|
591
|
+
}
|
|
592
|
+
/** POST /api/alerts/{alert_id}/unassign — Unassign Alert. */
|
|
593
|
+
unassign(alertId, options = {}) {
|
|
594
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/unassign`, options);
|
|
595
|
+
}
|
|
596
|
+
/** PATCH /api/alerts/{alert_id}/comments/{comment_id} — Update Alert Comment. */
|
|
597
|
+
updateAlertComment(alertId, commentId, options = {}) {
|
|
598
|
+
return this.request("PATCH", `/api/alerts/${quoteSegment(alertId)}/comments/${quoteSegment(commentId)}`, options);
|
|
599
|
+
}
|
|
600
|
+
/** PATCH /api/alerts/{alert_id}/status — Update Alert Status. */
|
|
601
|
+
updateAlertStatus(alertId, options = {}) {
|
|
602
|
+
return this.request("PATCH", `/api/alerts/${quoteSegment(alertId)}/status`, options);
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
var ChadApiKeys = class extends Resource {
|
|
606
|
+
/** POST /api/api-keys — Create Api Key. */
|
|
607
|
+
create(options = {}) {
|
|
608
|
+
return this.request("POST", "/api/api-keys", options);
|
|
609
|
+
}
|
|
610
|
+
/** DELETE /api/api-keys/{key_id} — Delete Api Key. */
|
|
611
|
+
delete(keyId, options = {}) {
|
|
612
|
+
return this.request("DELETE", `/api/api-keys/${quoteSegment(keyId)}`, options);
|
|
613
|
+
}
|
|
614
|
+
/** GET /api/api-keys/{key_id} — Get Api Key. */
|
|
615
|
+
get(keyId, options = {}) {
|
|
616
|
+
return this.request("GET", `/api/api-keys/${quoteSegment(keyId)}`, options);
|
|
617
|
+
}
|
|
618
|
+
/** GET /api/api-keys — List Api Keys. */
|
|
619
|
+
list(options = {}) {
|
|
620
|
+
return this.request("GET", "/api/api-keys", options);
|
|
621
|
+
}
|
|
622
|
+
/** PATCH /api/api-keys/{key_id} — Update Api Key. */
|
|
623
|
+
update(keyId, options = {}) {
|
|
624
|
+
return this.request("PATCH", `/api/api-keys/${quoteSegment(keyId)}`, options);
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
var ChadAttack = class extends Resource {
|
|
628
|
+
/** GET /api/attack/coverage — Get Coverage. */
|
|
629
|
+
getCoverage(options = {}) {
|
|
630
|
+
return this.request("GET", "/api/attack/coverage", options);
|
|
631
|
+
}
|
|
632
|
+
/** GET /api/attack/coverage/simulated — Get Simulated Coverage. */
|
|
633
|
+
getSimulatedCoverage(options = {}) {
|
|
634
|
+
return this.request("GET", "/api/attack/coverage/simulated", options);
|
|
635
|
+
}
|
|
636
|
+
/** GET /api/attack/sync/status — Get Sync Status. */
|
|
637
|
+
getSyncStatus(options = {}) {
|
|
638
|
+
return this.request("GET", "/api/attack/sync/status", options);
|
|
639
|
+
}
|
|
640
|
+
/** GET /api/attack/techniques/{technique_id} — Get Technique. */
|
|
641
|
+
getTechnique(techniqueId, options = {}) {
|
|
642
|
+
return this.request("GET", `/api/attack/techniques/${quoteSegment(techniqueId)}`, options);
|
|
643
|
+
}
|
|
644
|
+
/** GET /api/attack/techniques — Get Techniques. */
|
|
645
|
+
getTechniques(options = {}) {
|
|
646
|
+
return this.request("GET", "/api/attack/techniques", options);
|
|
647
|
+
}
|
|
648
|
+
/** POST /api/attack/coverage/simulate — Simulate Pack Coverage. */
|
|
649
|
+
simulatePackCoverage(options = {}) {
|
|
650
|
+
return this.request("POST", "/api/attack/coverage/simulate", options);
|
|
651
|
+
}
|
|
652
|
+
/** POST /api/attack/sync — Sync Attack Data. */
|
|
653
|
+
syncAttackData(options = {}) {
|
|
654
|
+
return this.request("POST", "/api/attack/sync", options);
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
var ChadAttackNarratives = class extends Resource {
|
|
658
|
+
/** POST /api/attack-narratives/{narrative_id}/dismiss — Dismiss Narrative. */
|
|
659
|
+
dismissNarrative(narrativeId, options = {}) {
|
|
660
|
+
return this.request("POST", `/api/attack-narratives/${quoteSegment(narrativeId)}/dismiss`, options);
|
|
661
|
+
}
|
|
662
|
+
/** GET /api/attack-narratives/{narrative_id} — Get Narrative. */
|
|
663
|
+
getNarrative(narrativeId, options = {}) {
|
|
664
|
+
return this.request("GET", `/api/attack-narratives/${quoteSegment(narrativeId)}`, options);
|
|
665
|
+
}
|
|
666
|
+
/** GET /api/attack-narratives — List Narratives. */
|
|
667
|
+
listNarratives(options = {}) {
|
|
668
|
+
return this.request("GET", "/api/attack-narratives", options);
|
|
669
|
+
}
|
|
670
|
+
/** POST /api/attack-narratives/{narrative_id}/promote — Promote Narrative. */
|
|
671
|
+
promoteNarrative(narrativeId, options = {}) {
|
|
672
|
+
return this.request("POST", `/api/attack-narratives/${quoteSegment(narrativeId)}/promote`, options);
|
|
673
|
+
}
|
|
674
|
+
/** POST /api/attack-narratives/discover — Run Discovery. */
|
|
675
|
+
runDiscovery(options = {}) {
|
|
676
|
+
return this.request("POST", "/api/attack-narratives/discover", options);
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
var ChadAudit = class extends Resource {
|
|
680
|
+
/** GET /api/audit/export/chain — Export Audit Chain. */
|
|
681
|
+
exportAuditChain(options = {}) {
|
|
682
|
+
return this.request("GET", "/api/audit/export/chain", options);
|
|
683
|
+
}
|
|
684
|
+
/** GET /api/audit/export — Export Audit Logs. */
|
|
685
|
+
exportAuditLogs(options = {}) {
|
|
686
|
+
return this.request("GET", "/api/audit/export", options);
|
|
687
|
+
}
|
|
688
|
+
/** GET /api/audit/actions — List Audit Actions. */
|
|
689
|
+
listAuditActions(options = {}) {
|
|
690
|
+
return this.request("GET", "/api/audit/actions", options);
|
|
691
|
+
}
|
|
692
|
+
/** GET /api/audit — List Audit Logs. */
|
|
693
|
+
listAuditLogs(options = {}) {
|
|
694
|
+
return this.request("GET", "/api/audit", options);
|
|
695
|
+
}
|
|
696
|
+
/** GET /api/audit/resource-types — List Resource Types. */
|
|
697
|
+
listResourceTypes(options = {}) {
|
|
698
|
+
return this.request("GET", "/api/audit/resource-types", options);
|
|
699
|
+
}
|
|
700
|
+
/** POST /api/audit/log — Log Access Denied. */
|
|
701
|
+
logAccessDenied(options = {}) {
|
|
702
|
+
return this.request("POST", "/api/audit/log", options);
|
|
703
|
+
}
|
|
704
|
+
/** GET /api/audit/suite-feed — Suite Audit Feed. */
|
|
705
|
+
suiteAuditFeed(options = {}) {
|
|
706
|
+
return this.request("GET", "/api/audit/suite-feed", options);
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
var ChadAuditSettings = class extends Resource {
|
|
710
|
+
/** GET /api/audit-settings — Read Audit Settings. */
|
|
711
|
+
read(options = {}) {
|
|
712
|
+
return this.request("GET", "/api/audit-settings", options);
|
|
713
|
+
}
|
|
714
|
+
/** POST /api/audit-settings/test-forward — Test Forward. */
|
|
715
|
+
testForward(options = {}) {
|
|
716
|
+
return this.request("POST", "/api/audit-settings/test-forward", options);
|
|
717
|
+
}
|
|
718
|
+
/** PUT /api/audit-settings — Update Audit Settings. */
|
|
719
|
+
update(options = {}) {
|
|
720
|
+
return this.request("PUT", "/api/audit-settings", options);
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
var ChadAuthorityRevisions = class extends Resource {
|
|
724
|
+
/** POST /api/authority/revisions — Ingest Authority Revisions. */
|
|
725
|
+
ingest(options = {}) {
|
|
726
|
+
return this.request("POST", "/api/authority/revisions", options);
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
var ChadCircuitBreakers = class extends Resource {
|
|
730
|
+
/** GET /api/circuit-breakers — List Circuit Breakers. */
|
|
731
|
+
list(options = {}) {
|
|
732
|
+
return this.request("GET", "/api/circuit-breakers", options);
|
|
733
|
+
}
|
|
734
|
+
/** POST /api/circuit-breakers/{service_name}/reset — Reset Circuit Breaker. */
|
|
735
|
+
reset(serviceName, options = {}) {
|
|
736
|
+
return this.request("POST", `/api/circuit-breakers/${quoteSegment(serviceName)}/reset`, options);
|
|
737
|
+
}
|
|
738
|
+
};
|
|
739
|
+
var ChadCompliance = class extends Resource {
|
|
740
|
+
/** GET /api/compliance/frameworks/{framework}/coverage.csv — Export Coverage Csv. */
|
|
741
|
+
exportCoverageCsv(framework, options = {}) {
|
|
742
|
+
return this.request("GET", `/api/compliance/frameworks/${quoteSegment(framework)}/coverage.csv`, options);
|
|
743
|
+
}
|
|
744
|
+
/** GET /api/compliance/frameworks/{framework}/coverage — Get Coverage. */
|
|
745
|
+
getCoverage(framework, options = {}) {
|
|
746
|
+
return this.request("GET", `/api/compliance/frameworks/${quoteSegment(framework)}/coverage`, options);
|
|
747
|
+
}
|
|
748
|
+
/** GET /api/compliance/coverage — Get Coverage Overview. */
|
|
749
|
+
getCoverageOverview(options = {}) {
|
|
750
|
+
return this.request("GET", "/api/compliance/coverage", options);
|
|
751
|
+
}
|
|
752
|
+
/** GET /api/compliance/frameworks/{framework}/report — Get Coverage Report. */
|
|
753
|
+
getCoverageReport(framework, options = {}) {
|
|
754
|
+
return this.request("GET", `/api/compliance/frameworks/${quoteSegment(framework)}/report`, options);
|
|
755
|
+
}
|
|
756
|
+
/** GET /api/compliance/rules/{rule_id}/mappings — Get Rule Mappings. */
|
|
757
|
+
getRuleMappings(ruleId, options = {}) {
|
|
758
|
+
return this.request("GET", `/api/compliance/rules/${quoteSegment(ruleId)}/mappings`, options);
|
|
759
|
+
}
|
|
760
|
+
/** GET /api/compliance/frameworks/{framework}/controls — List Controls. */
|
|
761
|
+
listControls(framework, options = {}) {
|
|
762
|
+
return this.request("GET", `/api/compliance/frameworks/${quoteSegment(framework)}/controls`, options);
|
|
763
|
+
}
|
|
764
|
+
/** GET /api/compliance/frameworks — List Frameworks. */
|
|
765
|
+
listFrameworks(options = {}) {
|
|
766
|
+
return this.request("GET", "/api/compliance/frameworks", options);
|
|
767
|
+
}
|
|
768
|
+
/** POST /api/compliance/frameworks/{framework}/controls/{control_id}/rules — Map Rule To Control. */
|
|
769
|
+
mapRuleToControl(framework, controlId, options = {}) {
|
|
770
|
+
return this.request("POST", `/api/compliance/frameworks/${quoteSegment(framework)}/controls/${quoteSegment(controlId)}/rules`, options);
|
|
771
|
+
}
|
|
772
|
+
/** PUT /api/compliance/rules/{rule_id}/mappings — Put Rule Mappings. */
|
|
773
|
+
putRuleMappings(ruleId, options = {}) {
|
|
774
|
+
return this.request("PUT", `/api/compliance/rules/${quoteSegment(ruleId)}/mappings`, options);
|
|
775
|
+
}
|
|
776
|
+
/** DELETE /api/compliance/frameworks/{framework}/controls/{control_id}/rules/{rule_id} — Unmap Rule From Control. */
|
|
777
|
+
unmapRuleFromControl(framework, controlId, ruleId, options = {}) {
|
|
778
|
+
return this.request("DELETE", `/api/compliance/frameworks/${quoteSegment(framework)}/controls/${quoteSegment(controlId)}/rules/${quoteSegment(ruleId)}`, options);
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
var ChadContentUpdates = class extends Resource {
|
|
782
|
+
/** POST /api/content-updates/subscriptions/{subscription_id}/accept-upstream — Accept Upstream. */
|
|
783
|
+
acceptUpstream(subscriptionId, options = {}) {
|
|
784
|
+
return this.request("POST", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}/accept-upstream`, options);
|
|
785
|
+
}
|
|
786
|
+
/** POST /api/content-updates/subscriptions — Create Subscription. */
|
|
787
|
+
createSubscription(options = {}) {
|
|
788
|
+
return this.request("POST", "/api/content-updates/subscriptions", options);
|
|
789
|
+
}
|
|
790
|
+
/** POST /api/content-updates/subscriptions/{subscription_id}/keep-local — Keep Local. */
|
|
791
|
+
keepLocal(subscriptionId, options = {}) {
|
|
792
|
+
return this.request("POST", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}/keep-local`, options);
|
|
793
|
+
}
|
|
794
|
+
/** GET /api/content-updates/subscriptions/{subscription_id}/rules — List Subscription Rules. */
|
|
795
|
+
listSubscriptionRules(subscriptionId, options = {}) {
|
|
796
|
+
return this.request("GET", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}/rules`, options);
|
|
797
|
+
}
|
|
798
|
+
/** GET /api/content-updates/subscriptions — List Subscriptions. */
|
|
799
|
+
listSubscriptions(options = {}) {
|
|
800
|
+
return this.request("GET", "/api/content-updates/subscriptions", options);
|
|
801
|
+
}
|
|
802
|
+
/** POST /api/content-updates/subscriptions/{subscription_id}/merge — Merge Update. */
|
|
803
|
+
mergeUpdate(subscriptionId, options = {}) {
|
|
804
|
+
return this.request("POST", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}/merge`, options);
|
|
805
|
+
}
|
|
806
|
+
/** POST /api/content-updates/subscriptions/{subscription_id}/sync — Sync Subscription. */
|
|
807
|
+
syncSubscription(subscriptionId, options = {}) {
|
|
808
|
+
return this.request("POST", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}/sync`, options);
|
|
809
|
+
}
|
|
810
|
+
/** PATCH /api/content-updates/subscriptions/{subscription_id} — Update Subscription. */
|
|
811
|
+
updateSubscription(subscriptionId, options = {}) {
|
|
812
|
+
return this.request("PATCH", `/api/content-updates/subscriptions/${quoteSegment(subscriptionId)}`, options);
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
var ChadCorrelation = class extends Resource {
|
|
816
|
+
/** POST /api/correlation-rules/bulk/snooze — Bulk Snooze Correlation Rules. */
|
|
817
|
+
bulkSnoozeCorrelationRules(options = {}) {
|
|
818
|
+
return this.request("POST", "/api/correlation-rules/bulk/snooze", options);
|
|
819
|
+
}
|
|
820
|
+
/** POST /api/correlation-rules/bulk/unsnooze — Bulk Unsnooze Correlation Rules. */
|
|
821
|
+
bulkUnsnoozeCorrelationRules(options = {}) {
|
|
822
|
+
return this.request("POST", "/api/correlation-rules/bulk/unsnooze", options);
|
|
823
|
+
}
|
|
824
|
+
/** POST /api/correlation-rules — Create Correlation Rule. */
|
|
825
|
+
createCorrelationRule(options = {}) {
|
|
826
|
+
return this.request("POST", "/api/correlation-rules", options);
|
|
827
|
+
}
|
|
828
|
+
/** POST /api/correlation-rules/{rule_id}/comments — Create Correlation Rule Comment. */
|
|
829
|
+
createCorrelationRuleComment(ruleId, options = {}) {
|
|
830
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/comments`, options);
|
|
831
|
+
}
|
|
832
|
+
/** DELETE /api/correlation-rules/{rule_id} — Delete Correlation Rule. */
|
|
833
|
+
deleteCorrelationRule(ruleId, options = {}) {
|
|
834
|
+
return this.request("DELETE", `/api/correlation-rules/${quoteSegment(ruleId)}`, options);
|
|
835
|
+
}
|
|
836
|
+
/** POST /api/correlation-rules/{rule_id}/deploy — Deploy Correlation Rule. */
|
|
837
|
+
deployCorrelationRule(ruleId, options = {}) {
|
|
838
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/deploy`, options);
|
|
839
|
+
}
|
|
840
|
+
/** GET /api/correlation-rules/common-log-fields — Get Common Log Fields. */
|
|
841
|
+
getCommonLogFields(options = {}) {
|
|
842
|
+
return this.request("GET", "/api/correlation-rules/common-log-fields", options);
|
|
843
|
+
}
|
|
844
|
+
/** GET /api/correlation-rules/common-sigma-fields — Get Common Sigma Fields. */
|
|
845
|
+
getCommonSigmaFields(options = {}) {
|
|
846
|
+
return this.request("GET", "/api/correlation-rules/common-sigma-fields", options);
|
|
847
|
+
}
|
|
848
|
+
/** GET /api/correlation-rules/{rule_id} — Get Correlation Rule. */
|
|
849
|
+
getCorrelationRule(ruleId, options = {}) {
|
|
850
|
+
return this.request("GET", `/api/correlation-rules/${quoteSegment(ruleId)}`, options);
|
|
851
|
+
}
|
|
852
|
+
/** GET /api/correlation-rules/{rule_id}/activity — Get Correlation Rule Activity. */
|
|
853
|
+
getCorrelationRuleActivity(ruleId, options = {}) {
|
|
854
|
+
return this.request("GET", `/api/correlation-rules/${quoteSegment(ruleId)}/activity`, options);
|
|
855
|
+
}
|
|
856
|
+
/** GET /api/correlation-rules/{rule_id}/comments — List Correlation Rule Comments. */
|
|
857
|
+
listCorrelationRuleComments(ruleId, options = {}) {
|
|
858
|
+
return this.request("GET", `/api/correlation-rules/${quoteSegment(ruleId)}/comments`, options);
|
|
859
|
+
}
|
|
860
|
+
/** GET /api/correlation-rules/{rule_id}/versions — List Correlation Rule Versions. */
|
|
861
|
+
listCorrelationRuleVersions(ruleId, options = {}) {
|
|
862
|
+
return this.request("GET", `/api/correlation-rules/${quoteSegment(ruleId)}/versions`, options);
|
|
863
|
+
}
|
|
864
|
+
/** GET /api/correlation-rules — List Correlation Rules. */
|
|
865
|
+
listCorrelationRules(options = {}) {
|
|
866
|
+
return this.request("GET", "/api/correlation-rules", options);
|
|
867
|
+
}
|
|
868
|
+
/** POST /api/correlation-rules/{correlation_id}/rollback/{version_number} — Rollback Correlation Rule. */
|
|
869
|
+
rollbackCorrelationRule(correlationId, versionNumber, options = {}) {
|
|
870
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(correlationId)}/rollback/${quoteSegment(versionNumber)}`, options);
|
|
871
|
+
}
|
|
872
|
+
/** POST /api/correlation-rules/{rule_id}/snooze — Snooze Correlation Rule. */
|
|
873
|
+
snoozeCorrelationRule(ruleId, options = {}) {
|
|
874
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/snooze`, options);
|
|
875
|
+
}
|
|
876
|
+
/** POST /api/correlation-rules/{rule_id}/test-historical — Test Correlation Historical. */
|
|
877
|
+
testCorrelationHistorical(ruleId, options = {}) {
|
|
878
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/test-historical`, options);
|
|
879
|
+
}
|
|
880
|
+
/** POST /api/correlation-rules/{rule_id}/undeploy — Undeploy Correlation Rule. */
|
|
881
|
+
undeployCorrelationRule(ruleId, options = {}) {
|
|
882
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/undeploy`, options);
|
|
883
|
+
}
|
|
884
|
+
/** POST /api/correlation-rules/{rule_id}/unsnooze — Unsnooze Correlation Rule. */
|
|
885
|
+
unsnoozeCorrelationRule(ruleId, options = {}) {
|
|
886
|
+
return this.request("POST", `/api/correlation-rules/${quoteSegment(ruleId)}/unsnooze`, options);
|
|
887
|
+
}
|
|
888
|
+
/** PATCH /api/correlation-rules/{rule_id} — Update Correlation Rule. */
|
|
889
|
+
updateCorrelationRule(ruleId, options = {}) {
|
|
890
|
+
return this.request("PATCH", `/api/correlation-rules/${quoteSegment(ruleId)}`, options);
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
var ChadDashboards = class extends Resource {
|
|
894
|
+
/** POST /api/dashboards/{dashboard_id}/clone — Clone Dashboard. */
|
|
895
|
+
clone(dashboardId, options = {}) {
|
|
896
|
+
return this.request("POST", `/api/dashboards/${quoteSegment(dashboardId)}/clone`, options);
|
|
897
|
+
}
|
|
898
|
+
/** POST /api/dashboards — Create Dashboard. */
|
|
899
|
+
create(options = {}) {
|
|
900
|
+
return this.request("POST", "/api/dashboards", options);
|
|
901
|
+
}
|
|
902
|
+
/** DELETE /api/dashboards/{dashboard_id} — Delete Dashboard. */
|
|
903
|
+
delete(dashboardId, options = {}) {
|
|
904
|
+
return this.request("DELETE", `/api/dashboards/${quoteSegment(dashboardId)}`, options);
|
|
905
|
+
}
|
|
906
|
+
/** GET /api/dashboards/{dashboard_id} — Get Dashboard. */
|
|
907
|
+
get(dashboardId, options = {}) {
|
|
908
|
+
return this.request("GET", `/api/dashboards/${quoteSegment(dashboardId)}`, options);
|
|
909
|
+
}
|
|
910
|
+
/** GET /api/dashboards/{dashboard_id}/data — Get Dashboard Data. */
|
|
911
|
+
getDashboardData(dashboardId, options = {}) {
|
|
912
|
+
return this.request("GET", `/api/dashboards/${quoteSegment(dashboardId)}/data`, options);
|
|
913
|
+
}
|
|
914
|
+
/** GET /api/dashboards — List Dashboards. */
|
|
915
|
+
list(options = {}) {
|
|
916
|
+
return this.request("GET", "/api/dashboards", options);
|
|
917
|
+
}
|
|
918
|
+
/** GET /api/dashboards/widget-kinds — List Widget Kinds. */
|
|
919
|
+
listWidgetKinds(options = {}) {
|
|
920
|
+
return this.request("GET", "/api/dashboards/widget-kinds", options);
|
|
921
|
+
}
|
|
922
|
+
/** PUT /api/dashboards/{dashboard_id} — Update Dashboard. */
|
|
923
|
+
update(dashboardId, options = {}) {
|
|
924
|
+
return this.request("PUT", `/api/dashboards/${quoteSegment(dashboardId)}`, options);
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
var ChadDataSources = class extends Resource {
|
|
928
|
+
/** POST /api/data-sources/{data_source_id}/purge/requests/{request_id}/approve — Approve Data Source Purge Request. */
|
|
929
|
+
approveDataSourcePurgeRequest(dataSourceId, requestId, options = {}) {
|
|
930
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/purge/requests/${quoteSegment(requestId)}/approve`, options);
|
|
931
|
+
}
|
|
932
|
+
/** POST /api/data-sources/{data_source_id}/purge/requests/{request_id}/cancel — Cancel Data Source Purge Request. */
|
|
933
|
+
cancelDataSourcePurgeRequest(dataSourceId, requestId, options = {}) {
|
|
934
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/purge/requests/${quoteSegment(requestId)}/cancel`, options);
|
|
935
|
+
}
|
|
936
|
+
/** POST /api/data-sources — Create Data Source. */
|
|
937
|
+
create(options = {}) {
|
|
938
|
+
return this.request("POST", "/api/data-sources", options);
|
|
939
|
+
}
|
|
940
|
+
/** DELETE /api/data-sources/{data_source_id} — Delete Data Source. */
|
|
941
|
+
delete(dataSourceId, options = {}) {
|
|
942
|
+
return this.request("DELETE", `/api/data-sources/${quoteSegment(dataSourceId)}`, options);
|
|
943
|
+
}
|
|
944
|
+
/** POST /api/data-sources/{data_source_id}/disable — Disable Data Source. */
|
|
945
|
+
disable(dataSourceId, options = {}) {
|
|
946
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/disable`, options);
|
|
947
|
+
}
|
|
948
|
+
/** POST /api/data-sources/{data_source_id}/purge/requests — File Data Source Purge Request. */
|
|
949
|
+
fileDataSourcePurgeRequest(dataSourceId, options = {}) {
|
|
950
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/purge/requests`, options);
|
|
951
|
+
}
|
|
952
|
+
/** GET /api/data-sources/{data_source_id} — Get Data Source. */
|
|
953
|
+
get(dataSourceId, options = {}) {
|
|
954
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}`, options);
|
|
955
|
+
}
|
|
956
|
+
/** GET /api/data-sources/{data_source_id}/enrichments — Get Data Source Enrichments. */
|
|
957
|
+
getDataSourceEnrichments(dataSourceId, options = {}) {
|
|
958
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}/enrichments`, options);
|
|
959
|
+
}
|
|
960
|
+
/** GET /api/data-sources/{data_source_id}/fields — Get Data Source Fields. */
|
|
961
|
+
getDataSourceFields(dataSourceId, options = {}) {
|
|
962
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}/fields`, options);
|
|
963
|
+
}
|
|
964
|
+
/** GET /api/data-sources/{data_source_id}/time-fields — Get Data Source Time Fields. */
|
|
965
|
+
getDataSourceTimeFields(dataSourceId, options = {}) {
|
|
966
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}/time-fields`, options);
|
|
967
|
+
}
|
|
968
|
+
/** GET /api/data-sources/{data_source_id}/trace — Get Data Source Trace. */
|
|
969
|
+
getDataSourceTrace(dataSourceId, options = {}) {
|
|
970
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}/trace`, options);
|
|
971
|
+
}
|
|
972
|
+
/** POST /api/data-sources/{data_source_id}/trace/test-event — Inject Data Source Test Event. */
|
|
973
|
+
injectDataSourceTestEvent(dataSourceId, options = {}) {
|
|
974
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/trace/test-event`, options);
|
|
975
|
+
}
|
|
976
|
+
/** GET /api/data-sources — List Data Sources. */
|
|
977
|
+
list(options = {}) {
|
|
978
|
+
return this.request("GET", "/api/data-sources", options);
|
|
979
|
+
}
|
|
980
|
+
/** GET /api/data-sources/{data_source_id}/purge/requests — List Data Source Purge Requests. */
|
|
981
|
+
listDataSourcePurgeRequests(dataSourceId, options = {}) {
|
|
982
|
+
return this.request("GET", `/api/data-sources/${quoteSegment(dataSourceId)}/purge/requests`, options);
|
|
983
|
+
}
|
|
984
|
+
/** POST /api/data-sources/{data_source_id}/purge/preview — Preview Data Source Purge. */
|
|
985
|
+
previewDataSourcePurge(dataSourceId, options = {}) {
|
|
986
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/purge/preview`, options);
|
|
987
|
+
}
|
|
988
|
+
/** POST /api/data-sources/{data_source_id}/regenerate-token — Regenerate Auth Token. */
|
|
989
|
+
regenerateAuthToken(dataSourceId, options = {}) {
|
|
990
|
+
return this.request("POST", `/api/data-sources/${quoteSegment(dataSourceId)}/regenerate-token`, options);
|
|
991
|
+
}
|
|
992
|
+
/** PATCH /api/data-sources/{data_source_id} — Update Data Source. */
|
|
993
|
+
update(dataSourceId, options = {}) {
|
|
994
|
+
return this.request("PATCH", `/api/data-sources/${quoteSegment(dataSourceId)}`, options);
|
|
995
|
+
}
|
|
996
|
+
/** PUT /api/data-sources/{data_source_id}/enrichments — Update Data Source Enrichments. */
|
|
997
|
+
updateDataSourceEnrichments(dataSourceId, options = {}) {
|
|
998
|
+
return this.request("PUT", `/api/data-sources/${quoteSegment(dataSourceId)}/enrichments`, options);
|
|
999
|
+
}
|
|
1000
|
+
/** POST /api/data-sources/validate — Validate Pattern. */
|
|
1001
|
+
validatePattern(options = {}) {
|
|
1002
|
+
return this.request("POST", "/api/data-sources/validate", options);
|
|
1003
|
+
}
|
|
1004
|
+
/** POST /api/data-sources/validate-ti-selection — Validate Ti Selection Endpoint. */
|
|
1005
|
+
validateTiSelectionEndpoint(options = {}) {
|
|
1006
|
+
return this.request("POST", "/api/data-sources/validate-ti-selection", options);
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
var ChadDeploymentRequests = class extends Resource {
|
|
1010
|
+
/** POST /api/deployment-requests/{request_id}/approve — Approve Deployment Request. */
|
|
1011
|
+
approve(requestId, options = {}) {
|
|
1012
|
+
return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/approve`, options);
|
|
1013
|
+
}
|
|
1014
|
+
/** POST /api/deployment-requests/{request_id}/cancel — Cancel Deployment Request. */
|
|
1015
|
+
cancel(requestId, options = {}) {
|
|
1016
|
+
return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/cancel`, options);
|
|
1017
|
+
}
|
|
1018
|
+
/** GET /api/deployment-requests/stats — Deployment Request Stats. */
|
|
1019
|
+
deploymentRequestStats(options = {}) {
|
|
1020
|
+
return this.request("GET", "/api/deployment-requests/stats", options);
|
|
1021
|
+
}
|
|
1022
|
+
/** POST /api/deployment-requests — File Deployment Request. */
|
|
1023
|
+
file(options = {}) {
|
|
1024
|
+
return this.request("POST", "/api/deployment-requests", options);
|
|
1025
|
+
}
|
|
1026
|
+
/** GET /api/deployment-requests/{request_id} — Get Deployment Request. */
|
|
1027
|
+
get(requestId, options = {}) {
|
|
1028
|
+
return this.request("GET", `/api/deployment-requests/${quoteSegment(requestId)}`, options);
|
|
1029
|
+
}
|
|
1030
|
+
/** GET /api/deployment-requests — List Deployment Requests. */
|
|
1031
|
+
list(options = {}) {
|
|
1032
|
+
return this.request("GET", "/api/deployment-requests", options);
|
|
1033
|
+
}
|
|
1034
|
+
/** POST /api/deployment-requests/{request_id}/reject — Reject Deployment Request. */
|
|
1035
|
+
reject(requestId, options = {}) {
|
|
1036
|
+
return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/reject`, options);
|
|
1037
|
+
}
|
|
1038
|
+
/** POST /api/deployment-requests/{request_id}/resubmit — Resubmit Deployment Request. */
|
|
1039
|
+
resubmit(requestId, options = {}) {
|
|
1040
|
+
return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/resubmit`, options);
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
var ChadDetectionPacks = class extends Resource {
|
|
1044
|
+
/** GET /api/detection-packs/{name} — Get Installed Pack. */
|
|
1045
|
+
getInstalledPack(name, options = {}) {
|
|
1046
|
+
return this.request("GET", `/api/detection-packs/${quoteSegment(name)}`, options);
|
|
1047
|
+
}
|
|
1048
|
+
/** POST /api/detection-packs/import — Import Detection Pack. */
|
|
1049
|
+
import(options = {}) {
|
|
1050
|
+
return this.request("POST", "/api/detection-packs/import", options);
|
|
1051
|
+
}
|
|
1052
|
+
/** POST /api/detection-packs/import/preview — Preview Detection Pack Import. */
|
|
1053
|
+
previewDetectionPackImport(options = {}) {
|
|
1054
|
+
return this.request("POST", "/api/detection-packs/import/preview", options);
|
|
1055
|
+
}
|
|
1056
|
+
/** POST /api/detection-packs/upgrade/preview — Preview Detection Pack Upgrade. */
|
|
1057
|
+
previewDetectionPackUpgrade(options = {}) {
|
|
1058
|
+
return this.request("POST", "/api/detection-packs/upgrade/preview", options);
|
|
1059
|
+
}
|
|
1060
|
+
/** POST /api/detection-packs/upgrade — Upgrade Detection Pack. */
|
|
1061
|
+
upgrade(options = {}) {
|
|
1062
|
+
return this.request("POST", "/api/detection-packs/upgrade", options);
|
|
1063
|
+
}
|
|
1064
|
+
};
|
|
1065
|
+
var ChadDiagnostics = class extends Resource {
|
|
1066
|
+
/** GET /api/diagnostics — Get Diagnostics. */
|
|
1067
|
+
get(options = {}) {
|
|
1068
|
+
return this.request("GET", "/api/diagnostics", options);
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
var ChadEnrichmentWebhooks = class extends Resource {
|
|
1072
|
+
/** POST /api/enrichment-webhooks — Create Enrichment Webhook. */
|
|
1073
|
+
create(options = {}) {
|
|
1074
|
+
return this.request("POST", "/api/enrichment-webhooks", options);
|
|
1075
|
+
}
|
|
1076
|
+
/** DELETE /api/enrichment-webhooks/{webhook_id} — Delete Enrichment Webhook. */
|
|
1077
|
+
delete(webhookId, options = {}) {
|
|
1078
|
+
return this.request("DELETE", `/api/enrichment-webhooks/${quoteSegment(webhookId)}`, options);
|
|
1079
|
+
}
|
|
1080
|
+
/** GET /api/enrichment-webhooks/{webhook_id} — Get Enrichment Webhook. */
|
|
1081
|
+
get(webhookId, options = {}) {
|
|
1082
|
+
return this.request("GET", `/api/enrichment-webhooks/${quoteSegment(webhookId)}`, options);
|
|
1083
|
+
}
|
|
1084
|
+
/** GET /api/enrichment-webhooks — List Enrichment Webhooks. */
|
|
1085
|
+
list(options = {}) {
|
|
1086
|
+
return this.request("GET", "/api/enrichment-webhooks", options);
|
|
1087
|
+
}
|
|
1088
|
+
/** POST /api/enrichment-webhooks/{webhook_id}/test — Test Enrichment Webhook. */
|
|
1089
|
+
test(webhookId, options = {}) {
|
|
1090
|
+
return this.request("POST", `/api/enrichment-webhooks/${quoteSegment(webhookId)}/test`, options);
|
|
1091
|
+
}
|
|
1092
|
+
/** POST /api/enrichment-webhooks/test — Test Webhook Url. */
|
|
1093
|
+
testWebhookUrl(options = {}) {
|
|
1094
|
+
return this.request("POST", "/api/enrichment-webhooks/test", options);
|
|
1095
|
+
}
|
|
1096
|
+
/** PATCH /api/enrichment-webhooks/{webhook_id} — Update Enrichment Webhook. */
|
|
1097
|
+
update(webhookId, options = {}) {
|
|
1098
|
+
return this.request("PATCH", `/api/enrichment-webhooks/${quoteSegment(webhookId)}`, options);
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
var ChadEntities = class extends Resource {
|
|
1102
|
+
/** GET /api/entities/{entity_type}/{value} — Get Entity. */
|
|
1103
|
+
get(entityType, value, options = {}) {
|
|
1104
|
+
return this.request("GET", `/api/entities/${quoteSegment(entityType)}/${quoteSegment(value)}`, options);
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
var ChadEnvironments = class extends Resource {
|
|
1108
|
+
/** POST /api/environments — Create Environment. */
|
|
1109
|
+
create(options = {}) {
|
|
1110
|
+
return this.request("POST", "/api/environments", options);
|
|
1111
|
+
}
|
|
1112
|
+
/** DELETE /api/environments/{environment_id} — Delete Environment. */
|
|
1113
|
+
delete(environmentId, options = {}) {
|
|
1114
|
+
return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}`, options);
|
|
1115
|
+
}
|
|
1116
|
+
/** DELETE /api/environments/{environment_id}/git — Disconnect Env Git. */
|
|
1117
|
+
disconnectEnvGit(environmentId, options = {}) {
|
|
1118
|
+
return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}/git`, options);
|
|
1119
|
+
}
|
|
1120
|
+
/** GET /api/environments/{environment_id} — Get Environment. */
|
|
1121
|
+
get(environmentId, options = {}) {
|
|
1122
|
+
return this.request("GET", `/api/environments/${quoteSegment(environmentId)}`, options);
|
|
1123
|
+
}
|
|
1124
|
+
/** GET /api/environments/{environment_id}/git — Get Env Git Config. */
|
|
1125
|
+
getEnvGitConfig(environmentId, options = {}) {
|
|
1126
|
+
return this.request("GET", `/api/environments/${quoteSegment(environmentId)}/git`, options);
|
|
1127
|
+
}
|
|
1128
|
+
/** GET /api/environments — List Environments. */
|
|
1129
|
+
list(options = {}) {
|
|
1130
|
+
return this.request("GET", "/api/environments", options);
|
|
1131
|
+
}
|
|
1132
|
+
/** POST /api/environments/{target_id}/promote — Promote Rules. */
|
|
1133
|
+
promoteRules(targetId, options = {}) {
|
|
1134
|
+
return this.request("POST", `/api/environments/${quoteSegment(targetId)}/promote`, options);
|
|
1135
|
+
}
|
|
1136
|
+
/** PUT /api/environments/{environment_id}/git — Set Env Git Config. */
|
|
1137
|
+
setEnvGitConfig(environmentId, options = {}) {
|
|
1138
|
+
return this.request("PUT", `/api/environments/${quoteSegment(environmentId)}/git`, options);
|
|
1139
|
+
}
|
|
1140
|
+
/** POST /api/environments/{environment_id}/git/test — Test Env Git Config. */
|
|
1141
|
+
testEnvGitConfig(environmentId, options = {}) {
|
|
1142
|
+
return this.request("POST", `/api/environments/${quoteSegment(environmentId)}/git/test`, options);
|
|
1143
|
+
}
|
|
1144
|
+
/** PATCH /api/environments/{environment_id} — Update Environment. */
|
|
1145
|
+
update(environmentId, options = {}) {
|
|
1146
|
+
return this.request("PATCH", `/api/environments/${quoteSegment(environmentId)}`, options);
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
var ChadExplore = class extends Resource {
|
|
1150
|
+
/** GET /api/explore/capabilities — Explore Capabilities. */
|
|
1151
|
+
exploreCapabilities(options = {}) {
|
|
1152
|
+
return this.request("GET", "/api/explore/capabilities", options);
|
|
1153
|
+
}
|
|
1154
|
+
/** POST /api/explore/export — Explore Export. */
|
|
1155
|
+
exploreExport(options = {}) {
|
|
1156
|
+
return this.request("POST", "/api/explore/export", options);
|
|
1157
|
+
}
|
|
1158
|
+
/** POST /api/explore/query — Explore Query. */
|
|
1159
|
+
exploreQuery(options = {}) {
|
|
1160
|
+
return this.request("POST", "/api/explore/query", options);
|
|
1161
|
+
}
|
|
1162
|
+
/** GET /api/explore/data-sources — List Explore Data Sources. */
|
|
1163
|
+
listExploreDataSources(options = {}) {
|
|
1164
|
+
return this.request("GET", "/api/explore/data-sources", options);
|
|
1165
|
+
}
|
|
1166
|
+
/** POST /api/explore/sigma-from-filters — Sigma From Filters. */
|
|
1167
|
+
sigmaFromFilters(options = {}) {
|
|
1168
|
+
return this.request("POST", "/api/explore/sigma-from-filters", options);
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
var ChadExport = class extends Resource {
|
|
1172
|
+
/** GET /api/export/rules — Export All Rules. */
|
|
1173
|
+
exportAllRules(options = {}) {
|
|
1174
|
+
return this.request("GET", "/api/export/rules", options);
|
|
1175
|
+
}
|
|
1176
|
+
/** POST /api/export/rules/bulk — Export Bulk Rules. */
|
|
1177
|
+
exportBulkRules(options = {}) {
|
|
1178
|
+
return this.request("POST", "/api/export/rules/bulk", options);
|
|
1179
|
+
}
|
|
1180
|
+
/** GET /api/export/config — Export Config. */
|
|
1181
|
+
exportConfig(options = {}) {
|
|
1182
|
+
return this.request("GET", "/api/export/config", options);
|
|
1183
|
+
}
|
|
1184
|
+
/** GET /api/export/rules/{rule_id} — Export Single Rule. */
|
|
1185
|
+
exportSingleRule(ruleId, options = {}) {
|
|
1186
|
+
return this.request("GET", `/api/export/rules/${quoteSegment(ruleId)}`, options);
|
|
1187
|
+
}
|
|
1188
|
+
/** POST /api/export/config/import — Import Config. */
|
|
1189
|
+
importConfig(options = {}) {
|
|
1190
|
+
return this.request("POST", "/api/export/config/import", options);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
var ChadFieldMappings = class extends Resource {
|
|
1194
|
+
/** POST /api/field-mappings/auto-map — Auto Map Field Mappings. */
|
|
1195
|
+
autoMap(options = {}) {
|
|
1196
|
+
return this.request("POST", "/api/field-mappings/auto-map", options);
|
|
1197
|
+
}
|
|
1198
|
+
/** POST /api/field-mappings — Create Field Mapping. */
|
|
1199
|
+
create(options = {}) {
|
|
1200
|
+
return this.request("POST", "/api/field-mappings", options);
|
|
1201
|
+
}
|
|
1202
|
+
/** DELETE /api/field-mappings/{mapping_id} — Delete Field Mapping. */
|
|
1203
|
+
delete(mappingId, options = {}) {
|
|
1204
|
+
return this.request("DELETE", `/api/field-mappings/${quoteSegment(mappingId)}`, options);
|
|
1205
|
+
}
|
|
1206
|
+
/** GET /api/field-mappings/onboarding — Field Mapping Onboarding Context. */
|
|
1207
|
+
fieldMappingOnboardingContext(options = {}) {
|
|
1208
|
+
return this.request("GET", "/api/field-mappings/onboarding", options);
|
|
1209
|
+
}
|
|
1210
|
+
/** POST /api/field-mappings/scorecard — Field Mapping Scorecard. */
|
|
1211
|
+
fieldMappingScorecard(options = {}) {
|
|
1212
|
+
return this.request("POST", "/api/field-mappings/scorecard", options);
|
|
1213
|
+
}
|
|
1214
|
+
/** GET /api/field-mappings/{mapping_id} — Get Field Mapping. */
|
|
1215
|
+
get(mappingId, options = {}) {
|
|
1216
|
+
return this.request("GET", `/api/field-mappings/${quoteSegment(mappingId)}`, options);
|
|
1217
|
+
}
|
|
1218
|
+
/** POST /api/field-mappings/import — Import Field Mappings. */
|
|
1219
|
+
import(options = {}) {
|
|
1220
|
+
return this.request("POST", "/api/field-mappings/import", options);
|
|
1221
|
+
}
|
|
1222
|
+
/** GET /api/field-mappings/families — List Mapping Families. */
|
|
1223
|
+
listMappingFamilies(options = {}) {
|
|
1224
|
+
return this.request("GET", "/api/field-mappings/families", options);
|
|
1225
|
+
}
|
|
1226
|
+
/** GET /api/field-mappings — List Mappings. */
|
|
1227
|
+
listMappings(options = {}) {
|
|
1228
|
+
return this.request("GET", "/api/field-mappings", options);
|
|
1229
|
+
}
|
|
1230
|
+
/** POST /api/field-mappings/suggest — Suggest Field Mappings. */
|
|
1231
|
+
suggest(options = {}) {
|
|
1232
|
+
return this.request("POST", "/api/field-mappings/suggest", options);
|
|
1233
|
+
}
|
|
1234
|
+
/** PUT /api/field-mappings/{mapping_id} — Update Field Mapping. */
|
|
1235
|
+
update(mappingId, options = {}) {
|
|
1236
|
+
return this.request("PUT", `/api/field-mappings/${quoteSegment(mappingId)}`, options);
|
|
1237
|
+
}
|
|
1238
|
+
};
|
|
1239
|
+
var ChadGitops = class extends Resource {
|
|
1240
|
+
/** GET /api/gitops/inbound — Get Inbound Flag. */
|
|
1241
|
+
getInboundFlag(options = {}) {
|
|
1242
|
+
return this.request("GET", "/api/gitops/inbound", options);
|
|
1243
|
+
}
|
|
1244
|
+
/** POST /api/gitops/webhook — Gitops Webhook. */
|
|
1245
|
+
gitopsWebhook(options = {}) {
|
|
1246
|
+
return this.request("POST", "/api/gitops/webhook", options);
|
|
1247
|
+
}
|
|
1248
|
+
/** POST /api/gitops/environments/{env_id}/import — Import Apply. */
|
|
1249
|
+
importApply(envId, options = {}) {
|
|
1250
|
+
return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import`, options);
|
|
1251
|
+
}
|
|
1252
|
+
/** POST /api/gitops/environments/{env_id}/import-preview — Import Preview. */
|
|
1253
|
+
importPreview(envId, options = {}) {
|
|
1254
|
+
return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import-preview`, options);
|
|
1255
|
+
}
|
|
1256
|
+
/** PUT /api/gitops/inbound — Set Inbound Flag. */
|
|
1257
|
+
setInboundFlag(options = {}) {
|
|
1258
|
+
return this.request("PUT", "/api/gitops/inbound", options);
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
var ChadHealth = class extends Resource {
|
|
1262
|
+
/** POST /api/health/cluster/clear-cache — Cluster Clear Cache. */
|
|
1263
|
+
clusterClearCache(options = {}) {
|
|
1264
|
+
return this.request("POST", "/api/health/cluster/clear-cache", options);
|
|
1265
|
+
}
|
|
1266
|
+
/** POST /api/health/cluster/reindex — Cluster Reindex. */
|
|
1267
|
+
clusterReindex(options = {}) {
|
|
1268
|
+
return this.request("POST", "/api/health/cluster/reindex", options);
|
|
1269
|
+
}
|
|
1270
|
+
/** POST /api/health/cluster/retry-failed-shards — Cluster Retry Failed Shards. */
|
|
1271
|
+
clusterRetryFailedShards(options = {}) {
|
|
1272
|
+
return this.request("POST", "/api/health/cluster/retry-failed-shards", options);
|
|
1273
|
+
}
|
|
1274
|
+
/** GET /api/health/authority-revision — Get Authority Revision Health. */
|
|
1275
|
+
getAuthorityRevision(options = {}) {
|
|
1276
|
+
return this.request("GET", "/api/health/authority-revision", options);
|
|
1277
|
+
}
|
|
1278
|
+
/** GET /api/health/cluster — Get Cluster Health. */
|
|
1279
|
+
getCluster(options = {}) {
|
|
1280
|
+
return this.request("GET", "/api/health/cluster", options);
|
|
1281
|
+
}
|
|
1282
|
+
/** GET /api/health/indices/{data_source_id} — Get Data Source Health. */
|
|
1283
|
+
getDataSource(dataSourceId, options = {}) {
|
|
1284
|
+
return this.request("GET", `/api/health/indices/${quoteSegment(dataSourceId)}`, options);
|
|
1285
|
+
}
|
|
1286
|
+
/** GET /api/health/intervals — Get Health Intervals. */
|
|
1287
|
+
getHealthIntervals(options = {}) {
|
|
1288
|
+
return this.request("GET", "/api/health/intervals", options);
|
|
1289
|
+
}
|
|
1290
|
+
/** GET /api/health/settings — Get Health Settings. */
|
|
1291
|
+
getHealthSettings(options = {}) {
|
|
1292
|
+
return this.request("GET", "/api/health/settings", options);
|
|
1293
|
+
}
|
|
1294
|
+
/** GET /api/health/status — Get Health Status. */
|
|
1295
|
+
getHealthStatus(options = {}) {
|
|
1296
|
+
return this.request("GET", "/api/health/status", options);
|
|
1297
|
+
}
|
|
1298
|
+
/** GET /api/health/indices/{data_source_id}/history — Get Index Health History. */
|
|
1299
|
+
getIndexHealthHistory(dataSourceId, options = {}) {
|
|
1300
|
+
return this.request("GET", `/api/health/indices/${quoteSegment(dataSourceId)}/history`, options);
|
|
1301
|
+
}
|
|
1302
|
+
/** GET /api/health/opensearch — Get Opensearch Health. */
|
|
1303
|
+
getOpensearch(options = {}) {
|
|
1304
|
+
return this.request("GET", "/api/health/opensearch", options);
|
|
1305
|
+
}
|
|
1306
|
+
/** GET /api/health/pull-mode — Get Pull Mode Health. */
|
|
1307
|
+
getPullMode(options = {}) {
|
|
1308
|
+
return this.request("GET", "/api/health/pull-mode", options);
|
|
1309
|
+
}
|
|
1310
|
+
/** GET /api/health/pull-mode/settings — Get Pull Mode Settings. */
|
|
1311
|
+
getPullModeSettings(options = {}) {
|
|
1312
|
+
return this.request("GET", "/api/health/pull-mode/settings", options);
|
|
1313
|
+
}
|
|
1314
|
+
/** GET /api/health/secrets-backend — Get Secrets Backend Health. */
|
|
1315
|
+
getSecretsBackend(options = {}) {
|
|
1316
|
+
return this.request("GET", "/api/health/secrets-backend", options);
|
|
1317
|
+
}
|
|
1318
|
+
/** GET /api/health/indices — List Index Health. */
|
|
1319
|
+
listIndex(options = {}) {
|
|
1320
|
+
return this.request("GET", "/api/health/indices", options);
|
|
1321
|
+
}
|
|
1322
|
+
/** POST /api/health/test/{service_type} — Test Service Health. */
|
|
1323
|
+
testService(serviceType, options = {}) {
|
|
1324
|
+
return this.request("POST", `/api/health/test/${quoteSegment(serviceType)}`, options);
|
|
1325
|
+
}
|
|
1326
|
+
/** PUT /api/health/intervals — Update Health Intervals. */
|
|
1327
|
+
updateHealthIntervals(options = {}) {
|
|
1328
|
+
return this.request("PUT", "/api/health/intervals", options);
|
|
1329
|
+
}
|
|
1330
|
+
/** PUT /api/health/settings — Update Health Settings. */
|
|
1331
|
+
updateHealthSettings(options = {}) {
|
|
1332
|
+
return this.request("PUT", "/api/health/settings", options);
|
|
1333
|
+
}
|
|
1334
|
+
/** PUT /api/health/pull-mode/settings — Update Pull Mode Settings. */
|
|
1335
|
+
updatePullModeSettings(options = {}) {
|
|
1336
|
+
return this.request("PUT", "/api/health/pull-mode/settings", options);
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
var ChadHolds = class extends Resource {
|
|
1340
|
+
/** POST /api/holds — Create Hold Endpoint. */
|
|
1341
|
+
createHoldEndpoint(options = {}) {
|
|
1342
|
+
return this.request("POST", "/api/holds", options);
|
|
1343
|
+
}
|
|
1344
|
+
/** GET /api/holds/{hold_id} — Get Hold. */
|
|
1345
|
+
get(holdId, options = {}) {
|
|
1346
|
+
return this.request("GET", `/api/holds/${quoteSegment(holdId)}`, options);
|
|
1347
|
+
}
|
|
1348
|
+
/** GET /api/holds — List Holds. */
|
|
1349
|
+
list(options = {}) {
|
|
1350
|
+
return this.request("GET", "/api/holds", options);
|
|
1351
|
+
}
|
|
1352
|
+
/** POST /api/holds/{hold_id}/release — Release Hold Endpoint. */
|
|
1353
|
+
releaseHoldEndpoint(holdId, options = {}) {
|
|
1354
|
+
return this.request("POST", `/api/holds/${quoteSegment(holdId)}/release`, options);
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
var ChadHunts = class extends Resource {
|
|
1358
|
+
/** POST /api/hunts — Create Hunt. */
|
|
1359
|
+
create(options = {}) {
|
|
1360
|
+
return this.request("POST", "/api/hunts", options);
|
|
1361
|
+
}
|
|
1362
|
+
/** DELETE /api/hunts/{hunt_id} — Delete Hunt. */
|
|
1363
|
+
delete(huntId, options = {}) {
|
|
1364
|
+
return this.request("DELETE", `/api/hunts/${quoteSegment(huntId)}`, options);
|
|
1365
|
+
}
|
|
1366
|
+
/** GET /api/hunts/{hunt_id} — Get Hunt. */
|
|
1367
|
+
get(huntId, options = {}) {
|
|
1368
|
+
return this.request("GET", `/api/hunts/${quoteSegment(huntId)}`, options);
|
|
1369
|
+
}
|
|
1370
|
+
/** GET /api/hunts — List Hunts. */
|
|
1371
|
+
list(options = {}) {
|
|
1372
|
+
return this.request("GET", "/api/hunts", options);
|
|
1373
|
+
}
|
|
1374
|
+
/** POST /api/hunts/{hunt_id}/run — Run Hunt Now. */
|
|
1375
|
+
runHuntNow(huntId, options = {}) {
|
|
1376
|
+
return this.request("POST", `/api/hunts/${quoteSegment(huntId)}/run`, options);
|
|
1377
|
+
}
|
|
1378
|
+
/** PUT /api/hunts/{hunt_id} — Update Hunt. */
|
|
1379
|
+
update(huntId, options = {}) {
|
|
1380
|
+
return this.request("PUT", `/api/hunts/${quoteSegment(huntId)}`, options);
|
|
1381
|
+
}
|
|
1382
|
+
};
|
|
1383
|
+
var ChadIndicators = class extends Resource {
|
|
1384
|
+
/** POST /api/indicators/bulk-expire — Bulk Expire Indicators. */
|
|
1385
|
+
bulkExpire(options = {}) {
|
|
1386
|
+
return this.request("POST", "/api/indicators/bulk-expire", options);
|
|
1387
|
+
}
|
|
1388
|
+
/** POST /api/indicators — Create Indicator. */
|
|
1389
|
+
create(options = {}) {
|
|
1390
|
+
return this.request("POST", "/api/indicators", options);
|
|
1391
|
+
}
|
|
1392
|
+
/** DELETE /api/indicators/{indicator_id} — Delete Indicator. */
|
|
1393
|
+
delete(indicatorId, options = {}) {
|
|
1394
|
+
return this.request("DELETE", `/api/indicators/${quoteSegment(indicatorId)}`, options);
|
|
1395
|
+
}
|
|
1396
|
+
/** GET /api/indicators/export — Export Indicators. */
|
|
1397
|
+
export(options = {}) {
|
|
1398
|
+
return this.request("GET", "/api/indicators/export", options);
|
|
1399
|
+
}
|
|
1400
|
+
/** GET /api/indicators/{indicator_id} — Get Indicator. */
|
|
1401
|
+
get(indicatorId, options = {}) {
|
|
1402
|
+
return this.request("GET", `/api/indicators/${quoteSegment(indicatorId)}`, options);
|
|
1403
|
+
}
|
|
1404
|
+
/** POST /api/indicators/import — Import Indicators. */
|
|
1405
|
+
import(options = {}) {
|
|
1406
|
+
return this.request("POST", "/api/indicators/import", options);
|
|
1407
|
+
}
|
|
1408
|
+
/** GET /api/indicators — List Indicators. */
|
|
1409
|
+
list(options = {}) {
|
|
1410
|
+
return this.request("GET", "/api/indicators", options);
|
|
1411
|
+
}
|
|
1412
|
+
};
|
|
1413
|
+
var ChadJira = class extends Resource {
|
|
1414
|
+
/** DELETE /api/jira — Delete Jira Config. */
|
|
1415
|
+
deleteJiraConfig(options = {}) {
|
|
1416
|
+
return this.request("DELETE", "/api/jira", options);
|
|
1417
|
+
}
|
|
1418
|
+
/** GET /api/jira — Get Jira Config. */
|
|
1419
|
+
getJiraConfig(options = {}) {
|
|
1420
|
+
return this.request("GET", "/api/jira", options);
|
|
1421
|
+
}
|
|
1422
|
+
/** GET /api/jira/issue-types/{project_key} — Get Jira Issue Types. */
|
|
1423
|
+
getJiraIssueTypes(projectKey, options = {}) {
|
|
1424
|
+
return this.request("GET", `/api/jira/issue-types/${quoteSegment(projectKey)}`, options);
|
|
1425
|
+
}
|
|
1426
|
+
/** GET /api/jira/projects — Get Jira Projects. */
|
|
1427
|
+
getJiraProjects(options = {}) {
|
|
1428
|
+
return this.request("GET", "/api/jira/projects", options);
|
|
1429
|
+
}
|
|
1430
|
+
/** POST /api/jira/test — Test Jira Connection. */
|
|
1431
|
+
testJiraConnection(options = {}) {
|
|
1432
|
+
return this.request("POST", "/api/jira/test", options);
|
|
1433
|
+
}
|
|
1434
|
+
/** POST /api/jira/test-saved — Test Saved Jira Connection. */
|
|
1435
|
+
testSavedJiraConnection(options = {}) {
|
|
1436
|
+
return this.request("POST", "/api/jira/test-saved", options);
|
|
1437
|
+
}
|
|
1438
|
+
/** PUT /api/jira — Update Jira Config. */
|
|
1439
|
+
updateJiraConfig(options = {}) {
|
|
1440
|
+
return this.request("PUT", "/api/jira", options);
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
var ChadMetrics = class extends Resource {
|
|
1444
|
+
/** GET /api/metrics — Metrics. */
|
|
1445
|
+
metrics(options = {}) {
|
|
1446
|
+
return this.request("GET", "/api/metrics", options);
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
var ChadMisp = class extends Resource {
|
|
1450
|
+
/** GET /api/misp/events/{event_id}/iocs — Get Event Iocs. */
|
|
1451
|
+
getEventIocs(eventId, options = {}) {
|
|
1452
|
+
return this.request("GET", `/api/misp/events/${quoteSegment(eventId)}/iocs`, options);
|
|
1453
|
+
}
|
|
1454
|
+
/** GET /api/misp/events/{event_id}/iocs/{ioc_type} — Get Event Iocs By Type. */
|
|
1455
|
+
getEventIocsByType(eventId, iocType, options = {}) {
|
|
1456
|
+
return this.request("GET", `/api/misp/events/${quoteSegment(eventId)}/iocs/${quoteSegment(iocType)}`, options);
|
|
1457
|
+
}
|
|
1458
|
+
/** GET /api/misp/status — Get Misp Status. */
|
|
1459
|
+
getMispStatus(options = {}) {
|
|
1460
|
+
return this.request("GET", "/api/misp/status", options);
|
|
1461
|
+
}
|
|
1462
|
+
/** GET /api/misp/rules/{rule_id}/misp-info — Get Rule Misp Info. */
|
|
1463
|
+
getRuleMispInfo(ruleId, options = {}) {
|
|
1464
|
+
return this.request("GET", `/api/misp/rules/${quoteSegment(ruleId)}/misp-info`, options);
|
|
1465
|
+
}
|
|
1466
|
+
/** GET /api/misp/supported-types — Get Supported Ioc Types. */
|
|
1467
|
+
getSupportedIocTypes(options = {}) {
|
|
1468
|
+
return this.request("GET", "/api/misp/supported-types", options);
|
|
1469
|
+
}
|
|
1470
|
+
/** POST /api/misp/import-rule — Import Rule. */
|
|
1471
|
+
importRule(options = {}) {
|
|
1472
|
+
return this.request("POST", "/api/misp/import-rule", options);
|
|
1473
|
+
}
|
|
1474
|
+
/** GET /api/misp/events — Search Events. */
|
|
1475
|
+
searchEvents(options = {}) {
|
|
1476
|
+
return this.request("GET", "/api/misp/events", options);
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
var ChadMispFeedback = class extends Resource {
|
|
1480
|
+
/** POST /api/misp/feedback/event — Create Event. */
|
|
1481
|
+
createEvent(options = {}) {
|
|
1482
|
+
return this.request("POST", "/api/misp/feedback/event", options);
|
|
1483
|
+
}
|
|
1484
|
+
/** GET /api/misp/feedback/promotions/{promotion_id} — Get Promotion. */
|
|
1485
|
+
getPromotion(promotionId, options = {}) {
|
|
1486
|
+
return this.request("GET", `/api/misp/feedback/promotions/${quoteSegment(promotionId)}`, options);
|
|
1487
|
+
}
|
|
1488
|
+
/** GET /api/misp/feedback/promotions — List Promotions. */
|
|
1489
|
+
listPromotions(options = {}) {
|
|
1490
|
+
return this.request("GET", "/api/misp/feedback/promotions", options);
|
|
1491
|
+
}
|
|
1492
|
+
/** POST /api/misp/feedback/sighting — Record Sighting. */
|
|
1493
|
+
recordSighting(options = {}) {
|
|
1494
|
+
return this.request("POST", "/api/misp/feedback/sighting", options);
|
|
1495
|
+
}
|
|
1496
|
+
/** POST /api/misp/feedback/promotions/{promotion_id}/retry — Retry Promotion. */
|
|
1497
|
+
retryPromotion(promotionId, options = {}) {
|
|
1498
|
+
return this.request("POST", `/api/misp/feedback/promotions/${quoteSegment(promotionId)}/retry`, options);
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
var ChadMispSync = class extends Resource {
|
|
1502
|
+
/** GET /api/misp/sync/config — Get Sync Config. */
|
|
1503
|
+
getSyncConfig(options = {}) {
|
|
1504
|
+
return this.request("GET", "/api/misp/sync/config", options);
|
|
1505
|
+
}
|
|
1506
|
+
/** GET /api/misp/sync/status — Get Sync Status. */
|
|
1507
|
+
getSyncStatus(options = {}) {
|
|
1508
|
+
return this.request("GET", "/api/misp/sync/status", options);
|
|
1509
|
+
}
|
|
1510
|
+
/** POST /api/misp/sync/trigger — Trigger Sync. */
|
|
1511
|
+
triggerSync(options = {}) {
|
|
1512
|
+
return this.request("POST", "/api/misp/sync/trigger", options);
|
|
1513
|
+
}
|
|
1514
|
+
/** PUT /api/misp/sync/config — Update Sync Config. */
|
|
1515
|
+
updateSyncConfig(options = {}) {
|
|
1516
|
+
return this.request("PUT", "/api/misp/sync/config", options);
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1519
|
+
var ChadMode = class extends Resource {
|
|
1520
|
+
/** GET /api/mode — Get Mode. */
|
|
1521
|
+
get(options = {}) {
|
|
1522
|
+
return this.request("GET", "/api/mode", options);
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
var ChadNotifications = class extends Resource {
|
|
1526
|
+
/** GET /api/notifications/settings — Get Mandatory Comments Settings. */
|
|
1527
|
+
getMandatoryCommentsSettings(options = {}) {
|
|
1528
|
+
return this.request("GET", "/api/notifications/settings", options);
|
|
1529
|
+
}
|
|
1530
|
+
/** GET /api/notifications/settings/public — Get Mandatory Comments Settings Public. */
|
|
1531
|
+
getMandatoryCommentsSettingsPublic(options = {}) {
|
|
1532
|
+
return this.request("GET", "/api/notifications/settings/public", options);
|
|
1533
|
+
}
|
|
1534
|
+
/** GET /api/notifications — Get Notification Settings. */
|
|
1535
|
+
getNotificationSettings(options = {}) {
|
|
1536
|
+
return this.request("GET", "/api/notifications", options);
|
|
1537
|
+
}
|
|
1538
|
+
/** GET /api/notifications/recent — Get Recent Notifications. */
|
|
1539
|
+
getRecent(options = {}) {
|
|
1540
|
+
return this.request("GET", "/api/notifications/recent", options);
|
|
1541
|
+
}
|
|
1542
|
+
/** PUT /api/notifications/alerts — Update Alert Notification. */
|
|
1543
|
+
updateAlert(options = {}) {
|
|
1544
|
+
return this.request("PUT", "/api/notifications/alerts", options);
|
|
1545
|
+
}
|
|
1546
|
+
/** PUT /api/notifications/settings — Update Mandatory Comments Settings. */
|
|
1547
|
+
updateMandatoryCommentsSettings(options = {}) {
|
|
1548
|
+
return this.request("PUT", "/api/notifications/settings", options);
|
|
1549
|
+
}
|
|
1550
|
+
/** PUT /api/notifications/system — Update System Notification. */
|
|
1551
|
+
updateSystem(options = {}) {
|
|
1552
|
+
return this.request("PUT", "/api/notifications/system", options);
|
|
1553
|
+
}
|
|
1554
|
+
};
|
|
1555
|
+
var ChadOverlays = class extends Resource {
|
|
1556
|
+
/** POST /api/overlays/{overlay_id}/versions — Add Overlay Version. */
|
|
1557
|
+
addOverlayVersion(overlayId, options = {}) {
|
|
1558
|
+
return this.request("POST", `/api/overlays/${quoteSegment(overlayId)}/versions`, options);
|
|
1559
|
+
}
|
|
1560
|
+
/** POST /api/overlays/bind — Bind Overlays. */
|
|
1561
|
+
bind(options = {}) {
|
|
1562
|
+
return this.request("POST", "/api/overlays/bind", options);
|
|
1563
|
+
}
|
|
1564
|
+
/** GET /api/overlays/rules/{rule_id}/bound — Bound Overlays. */
|
|
1565
|
+
bound(ruleId, options = {}) {
|
|
1566
|
+
return this.request("GET", `/api/overlays/rules/${quoteSegment(ruleId)}/bound`, options);
|
|
1567
|
+
}
|
|
1568
|
+
/** POST /api/overlays — Create Overlay. */
|
|
1569
|
+
create(options = {}) {
|
|
1570
|
+
return this.request("POST", "/api/overlays", options);
|
|
1571
|
+
}
|
|
1572
|
+
/** GET /api/overlays/rules/{rule_id}/effective — Effective Overlays. */
|
|
1573
|
+
effective(ruleId, options = {}) {
|
|
1574
|
+
return this.request("GET", `/api/overlays/rules/${quoteSegment(ruleId)}/effective`, options);
|
|
1575
|
+
}
|
|
1576
|
+
/** GET /api/overlays/{overlay_id} — Get Overlay. */
|
|
1577
|
+
get(overlayId, options = {}) {
|
|
1578
|
+
return this.request("GET", `/api/overlays/${quoteSegment(overlayId)}`, options);
|
|
1579
|
+
}
|
|
1580
|
+
/** GET /api/overlays — List Overlays. */
|
|
1581
|
+
list(options = {}) {
|
|
1582
|
+
return this.request("GET", "/api/overlays", options);
|
|
1583
|
+
}
|
|
1584
|
+
};
|
|
1585
|
+
var ChadPermissions = class extends Resource {
|
|
1586
|
+
/** GET /api/permissions — Get Permissions. */
|
|
1587
|
+
get(options = {}) {
|
|
1588
|
+
return this.request("GET", "/api/permissions", options);
|
|
1589
|
+
}
|
|
1590
|
+
/** PUT /api/permissions — Update Permission. */
|
|
1591
|
+
update(options = {}) {
|
|
1592
|
+
return this.request("PUT", "/api/permissions", options);
|
|
1593
|
+
}
|
|
1594
|
+
};
|
|
1595
|
+
var ChadQueue = class extends Resource {
|
|
1596
|
+
/** DELETE /api/queue/dead-letter — Clear Dead Letter. */
|
|
1597
|
+
clearDeadLetter(options = {}) {
|
|
1598
|
+
return this.request("DELETE", "/api/queue/dead-letter", options);
|
|
1599
|
+
}
|
|
1600
|
+
/** DELETE /api/queue/dead-letter/{message_id} — Delete Dead Letter Message. */
|
|
1601
|
+
deleteDeadLetterMessage(messageId, options = {}) {
|
|
1602
|
+
return this.request("DELETE", `/api/queue/dead-letter/${quoteSegment(messageId)}`, options);
|
|
1603
|
+
}
|
|
1604
|
+
/** GET /api/queue/dead-letter — Get Dead Letter Messages. */
|
|
1605
|
+
getDeadLetterMessages(options = {}) {
|
|
1606
|
+
return this.request("GET", "/api/queue/dead-letter", options);
|
|
1607
|
+
}
|
|
1608
|
+
/** GET /api/queue/stats — Get Queue Stats. */
|
|
1609
|
+
getQueueStats(options = {}) {
|
|
1610
|
+
return this.request("GET", "/api/queue/stats", options);
|
|
1611
|
+
}
|
|
1612
|
+
/** GET /api/queue/settings — Get Settings. */
|
|
1613
|
+
getSettings(options = {}) {
|
|
1614
|
+
return this.request("GET", "/api/queue/settings", options);
|
|
1615
|
+
}
|
|
1616
|
+
/** POST /api/queue/dead-letter/retry — Retry Dead Letter. */
|
|
1617
|
+
retryDeadLetter(options = {}) {
|
|
1618
|
+
return this.request("POST", "/api/queue/dead-letter/retry", options);
|
|
1619
|
+
}
|
|
1620
|
+
/** POST /api/queue/dead-letter/{message_id}/retry — Retry Dead Letter Message. */
|
|
1621
|
+
retryDeadLetterMessage(messageId, options = {}) {
|
|
1622
|
+
return this.request("POST", `/api/queue/dead-letter/${quoteSegment(messageId)}/retry`, options);
|
|
1623
|
+
}
|
|
1624
|
+
/** PUT /api/queue/settings — Update Settings. */
|
|
1625
|
+
updateSettings(options = {}) {
|
|
1626
|
+
return this.request("PUT", "/api/queue/settings", options);
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
var ChadReportSchedules = class extends Resource {
|
|
1630
|
+
/** POST /api/report-schedules — Create Schedule. */
|
|
1631
|
+
createSchedule(options = {}) {
|
|
1632
|
+
return this.request("POST", "/api/report-schedules", options);
|
|
1633
|
+
}
|
|
1634
|
+
/** DELETE /api/report-schedules/{schedule_id} — Delete Schedule. */
|
|
1635
|
+
deleteSchedule(scheduleId, options = {}) {
|
|
1636
|
+
return this.request("DELETE", `/api/report-schedules/${quoteSegment(scheduleId)}`, options);
|
|
1637
|
+
}
|
|
1638
|
+
/** GET /api/report-schedules — List Schedules. */
|
|
1639
|
+
listSchedules(options = {}) {
|
|
1640
|
+
return this.request("GET", "/api/report-schedules", options);
|
|
1641
|
+
}
|
|
1642
|
+
/** GET /api/report-schedules/preview — Preview Report. */
|
|
1643
|
+
previewReport(options = {}) {
|
|
1644
|
+
return this.request("GET", "/api/report-schedules/preview", options);
|
|
1645
|
+
}
|
|
1646
|
+
/** POST /api/report-schedules/{schedule_id}/run — Run Schedule Now. */
|
|
1647
|
+
runScheduleNow(scheduleId, options = {}) {
|
|
1648
|
+
return this.request("POST", `/api/report-schedules/${quoteSegment(scheduleId)}/run`, options);
|
|
1649
|
+
}
|
|
1650
|
+
/** PUT /api/report-schedules/{schedule_id} — Update Schedule. */
|
|
1651
|
+
updateSchedule(scheduleId, options = {}) {
|
|
1652
|
+
return this.request("PUT", `/api/report-schedules/${quoteSegment(scheduleId)}`, options);
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
var ChadReports = class extends Resource {
|
|
1656
|
+
/** POST /api/reports/attack-coverage — Export Attack Coverage. */
|
|
1657
|
+
exportAttackCoverage(options = {}) {
|
|
1658
|
+
return this.request("POST", "/api/reports/attack-coverage", options);
|
|
1659
|
+
}
|
|
1660
|
+
/** POST /api/reports/attack-coverage/navigator — Export Attack Navigator. */
|
|
1661
|
+
exportAttackNavigator(options = {}) {
|
|
1662
|
+
return this.request("POST", "/api/reports/attack-coverage/navigator", options);
|
|
1663
|
+
}
|
|
1664
|
+
/** POST /api/reports/alerts/summary — Generate Alert Summary Report. */
|
|
1665
|
+
generateAlertSummary(options = {}) {
|
|
1666
|
+
return this.request("POST", "/api/reports/alerts/summary", options);
|
|
1667
|
+
}
|
|
1668
|
+
/** POST /api/reports/rules/coverage — Generate Rule Coverage Report. */
|
|
1669
|
+
generateRuleCoverage(options = {}) {
|
|
1670
|
+
return this.request("POST", "/api/reports/rules/coverage", options);
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
var ChadRetentionPolicy = class extends Resource {
|
|
1674
|
+
/** DELETE /api/retention-policy/{environment_id}/{retention_class} — Clear Retention Override. */
|
|
1675
|
+
clearRetentionOverride(environmentId, retentionClass, options = {}) {
|
|
1676
|
+
return this.request("DELETE", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
|
|
1677
|
+
}
|
|
1678
|
+
/** GET /api/retention-policy/detection/preview — Detection Retention Preview. */
|
|
1679
|
+
detectionRetentionPreview(options = {}) {
|
|
1680
|
+
return this.request("GET", "/api/retention-policy/detection/preview", options);
|
|
1681
|
+
}
|
|
1682
|
+
/** POST /api/retention-policy/detection/purge — Detection Retention Purge. */
|
|
1683
|
+
detectionRetentionPurge(options = {}) {
|
|
1684
|
+
return this.request("POST", "/api/retention-policy/detection/purge", options);
|
|
1685
|
+
}
|
|
1686
|
+
/** GET /api/retention-policy — List Retention Matrix. */
|
|
1687
|
+
listRetentionMatrix(options = {}) {
|
|
1688
|
+
return this.request("GET", "/api/retention-policy", options);
|
|
1689
|
+
}
|
|
1690
|
+
/** PUT /api/retention-policy/{environment_id}/{retention_class} — Set Retention Override. */
|
|
1691
|
+
setRetentionOverride(environmentId, retentionClass, options = {}) {
|
|
1692
|
+
return this.request("PUT", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1695
|
+
var ChadRuleCi = class extends Resource {
|
|
1696
|
+
/** POST /api/rule-ci/check — Check Rule Yaml. */
|
|
1697
|
+
checkRuleYaml(options = {}) {
|
|
1698
|
+
return this.request("POST", "/api/rule-ci/check", options);
|
|
1699
|
+
}
|
|
1700
|
+
/** POST /api/rule-ci/{rule_id}/check — Check Stored Rule. */
|
|
1701
|
+
checkStoredRule(ruleId, options = {}) {
|
|
1702
|
+
return this.request("POST", `/api/rule-ci/${quoteSegment(ruleId)}/check`, options);
|
|
1703
|
+
}
|
|
1704
|
+
};
|
|
1705
|
+
var ChadRulePackConflicts = class extends Resource {
|
|
1706
|
+
/** GET /api/rule-pack-conflicts — List Rule Pack Conflicts. */
|
|
1707
|
+
list(options = {}) {
|
|
1708
|
+
return this.request("GET", "/api/rule-pack-conflicts", options);
|
|
1709
|
+
}
|
|
1710
|
+
/** POST /api/rule-pack-conflicts/{conflict_id}/resolve — Resolve Rule Pack Conflict. */
|
|
1711
|
+
resolve(conflictId, options = {}) {
|
|
1712
|
+
return this.request("POST", `/api/rule-pack-conflicts/${quoteSegment(conflictId)}/resolve`, options);
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
var ChadRules = class extends Resource {
|
|
1716
|
+
/** POST /api/rules/bulk/delete — Bulk Delete Rules. */
|
|
1717
|
+
bulkDelete(options = {}) {
|
|
1718
|
+
return this.request("POST", "/api/rules/bulk/delete", options);
|
|
1719
|
+
}
|
|
1720
|
+
/** POST /api/rules/bulk/deploy — Bulk Deploy Rules. */
|
|
1721
|
+
bulkDeploy(options = {}) {
|
|
1722
|
+
return this.request("POST", "/api/rules/bulk/deploy", options);
|
|
1723
|
+
}
|
|
1724
|
+
/** POST /api/rules/bulk/snooze — Bulk Snooze Rules. */
|
|
1725
|
+
bulkSnooze(options = {}) {
|
|
1726
|
+
return this.request("POST", "/api/rules/bulk/snooze", options);
|
|
1727
|
+
}
|
|
1728
|
+
/** POST /api/rules/bulk/undeploy — Bulk Undeploy Rules. */
|
|
1729
|
+
bulkUndeploy(options = {}) {
|
|
1730
|
+
return this.request("POST", "/api/rules/bulk/undeploy", options);
|
|
1731
|
+
}
|
|
1732
|
+
/** POST /api/rules/bulk/unsnooze — Bulk Unsnooze Rules. */
|
|
1733
|
+
bulkUnsnooze(options = {}) {
|
|
1734
|
+
return this.request("POST", "/api/rules/bulk/unsnooze", options);
|
|
1735
|
+
}
|
|
1736
|
+
/** POST /api/rules/check-deployment-eligibility — Check Deployment Eligibility. */
|
|
1737
|
+
checkDeploymentEligibility(options = {}) {
|
|
1738
|
+
return this.request("POST", "/api/rules/check-deployment-eligibility", options);
|
|
1739
|
+
}
|
|
1740
|
+
/** POST /api/rules/check-title — Check Title Availability. */
|
|
1741
|
+
checkTitleAvailability(options = {}) {
|
|
1742
|
+
return this.request("POST", "/api/rules/check-title", options);
|
|
1743
|
+
}
|
|
1744
|
+
/** POST /api/rules — Create Rule. */
|
|
1745
|
+
create(options = {}) {
|
|
1746
|
+
return this.request("POST", "/api/rules", options);
|
|
1747
|
+
}
|
|
1748
|
+
/** POST /api/rules/{rule_id}/comments — Create Rule Comment. */
|
|
1749
|
+
createRuleComment(ruleId, options = {}) {
|
|
1750
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/comments`, options);
|
|
1751
|
+
}
|
|
1752
|
+
/** POST /api/rules/{rule_id}/exceptions — Create Rule Exception. */
|
|
1753
|
+
createRuleException(ruleId, options = {}) {
|
|
1754
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/exceptions`, options);
|
|
1755
|
+
}
|
|
1756
|
+
/** DELETE /api/rules/{rule_id} — Delete Rule. */
|
|
1757
|
+
delete(ruleId, options = {}) {
|
|
1758
|
+
return this.request("DELETE", `/api/rules/${quoteSegment(ruleId)}`, options);
|
|
1759
|
+
}
|
|
1760
|
+
/** DELETE /api/rules/{rule_id}/exceptions/{exception_id} — Delete Rule Exception. */
|
|
1761
|
+
deleteRuleException(ruleId, exceptionId, options = {}) {
|
|
1762
|
+
return this.request("DELETE", `/api/rules/${quoteSegment(ruleId)}/exceptions/${quoteSegment(exceptionId)}`, options);
|
|
1763
|
+
}
|
|
1764
|
+
/** POST /api/rules/{rule_id}/canary/demote — Demote Canary Endpoint. */
|
|
1765
|
+
demoteCanaryEndpoint(ruleId, options = {}) {
|
|
1766
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/canary/demote`, options);
|
|
1767
|
+
}
|
|
1768
|
+
/** POST /api/rules/{rule_id}/deploy — Deploy Rule. */
|
|
1769
|
+
deploy(ruleId, options = {}) {
|
|
1770
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/deploy`, options);
|
|
1771
|
+
}
|
|
1772
|
+
/** GET /api/rules/{rule_id}/deploy-preview — Deploy Preview. */
|
|
1773
|
+
deployPreview(ruleId, options = {}) {
|
|
1774
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/deploy-preview`, options);
|
|
1775
|
+
}
|
|
1776
|
+
/** GET /api/rules/{rule_id}/export — Export Rule. */
|
|
1777
|
+
export(ruleId, options = {}) {
|
|
1778
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/export`, options);
|
|
1779
|
+
}
|
|
1780
|
+
/** GET /api/rules/{rule_id} — Get Rule. */
|
|
1781
|
+
get(ruleId, options = {}) {
|
|
1782
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}`, options);
|
|
1783
|
+
}
|
|
1784
|
+
/** GET /api/rules/{rule_id}/canary — Get Canary Status. */
|
|
1785
|
+
getCanaryStatus(ruleId, options = {}) {
|
|
1786
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/canary`, options);
|
|
1787
|
+
}
|
|
1788
|
+
/** GET /api/rules/index-fields/{data_source_id} — Get Data Source Fields. */
|
|
1789
|
+
getDataSourceFields(dataSourceId, options = {}) {
|
|
1790
|
+
return this.request("GET", `/api/rules/index-fields/${quoteSegment(dataSourceId)}`, options);
|
|
1791
|
+
}
|
|
1792
|
+
/** GET /api/rules/{rule_id}/linked-correlations — Get Linked Correlations. */
|
|
1793
|
+
getLinkedCorrelations(ruleId, options = {}) {
|
|
1794
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/linked-correlations`, options);
|
|
1795
|
+
}
|
|
1796
|
+
/** GET /api/rules/{rule_id}/activity — Get Rule Activity. */
|
|
1797
|
+
getRuleActivity(ruleId, options = {}) {
|
|
1798
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/activity`, options);
|
|
1799
|
+
}
|
|
1800
|
+
/** GET /api/rules/{rule_id}/fields — Get Rule Fields. */
|
|
1801
|
+
getRuleFields(ruleId, options = {}) {
|
|
1802
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/fields`, options);
|
|
1803
|
+
}
|
|
1804
|
+
/** GET /api/rules/settings — Get Rule Settings. */
|
|
1805
|
+
getRuleSettings(options = {}) {
|
|
1806
|
+
return this.request("GET", "/api/rules/settings", options);
|
|
1807
|
+
}
|
|
1808
|
+
/** GET /api/rules/{rule_id}/versions/{version_number} — Get Rule Version. */
|
|
1809
|
+
getRuleVersion(ruleId, versionNumber, options = {}) {
|
|
1810
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/versions/${quoteSegment(versionNumber)}`, options);
|
|
1811
|
+
}
|
|
1812
|
+
/** GET /api/rules/{rule_id}/shadow — Get Shadow Results Endpoint. */
|
|
1813
|
+
getShadowResultsEndpoint(ruleId, options = {}) {
|
|
1814
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/shadow`, options);
|
|
1815
|
+
}
|
|
1816
|
+
/** GET /api/rules — List Rules. */
|
|
1817
|
+
list(options = {}) {
|
|
1818
|
+
return this.request("GET", "/api/rules", options);
|
|
1819
|
+
}
|
|
1820
|
+
/** GET /api/rules/{rule_id}/comments — List Rule Comments. */
|
|
1821
|
+
listRuleComments(ruleId, options = {}) {
|
|
1822
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/comments`, options);
|
|
1823
|
+
}
|
|
1824
|
+
/** GET /api/rules/{rule_id}/exceptions — List Rule Exceptions. */
|
|
1825
|
+
listRuleExceptions(ruleId, options = {}) {
|
|
1826
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/exceptions`, options);
|
|
1827
|
+
}
|
|
1828
|
+
/** GET /api/rules/{rule_id}/transitions — List Rule Transitions. */
|
|
1829
|
+
listRuleTransitions(ruleId, options = {}) {
|
|
1830
|
+
return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/transitions`, options);
|
|
1831
|
+
}
|
|
1832
|
+
/** POST /api/rules/{rule_id}/canary — Place Rule In Canary. */
|
|
1833
|
+
placeRuleInCanary(ruleId, options = {}) {
|
|
1834
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/canary`, options);
|
|
1835
|
+
}
|
|
1836
|
+
/** POST /api/rules/{rule_id}/exceptions/preview — Preview Rule Exception. */
|
|
1837
|
+
previewRuleException(ruleId, options = {}) {
|
|
1838
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/exceptions/preview`, options);
|
|
1839
|
+
}
|
|
1840
|
+
/** POST /api/rules/{rule_id}/canary/promote — Promote Canary Endpoint. */
|
|
1841
|
+
promoteCanaryEndpoint(ruleId, options = {}) {
|
|
1842
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/canary/promote`, options);
|
|
1843
|
+
}
|
|
1844
|
+
/** POST /api/rules/{rule_id}/replace — Replace Rule. */
|
|
1845
|
+
replace(ruleId, options = {}) {
|
|
1846
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/replace`, options);
|
|
1847
|
+
}
|
|
1848
|
+
/** POST /api/rules/{rule_id}/rollback/{version_number} — Rollback Rule. */
|
|
1849
|
+
rollback(ruleId, versionNumber, options = {}) {
|
|
1850
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/rollback/${quoteSegment(versionNumber)}`, options);
|
|
1851
|
+
}
|
|
1852
|
+
/** POST /api/rules/{rule_id}/rollback-redeploy/{version_number} — Rollback Redeploy Rule. */
|
|
1853
|
+
rollbackRedeploy(ruleId, versionNumber, options = {}) {
|
|
1854
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/rollback-redeploy/${quoteSegment(versionNumber)}`, options);
|
|
1855
|
+
}
|
|
1856
|
+
/** POST /api/rules/{rule_id}/shadow — Shadow Deploy Rule. */
|
|
1857
|
+
shadowDeploy(ruleId, options = {}) {
|
|
1858
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/shadow`, options);
|
|
1859
|
+
}
|
|
1860
|
+
/** POST /api/rules/{rule_id}/snooze — Snooze Rule. */
|
|
1861
|
+
snooze(ruleId, options = {}) {
|
|
1862
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/snooze`, options);
|
|
1863
|
+
}
|
|
1864
|
+
/** POST /api/rules/{rule_id}/stage — Stage Rule. */
|
|
1865
|
+
stage(ruleId, options = {}) {
|
|
1866
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/stage`, options);
|
|
1867
|
+
}
|
|
1868
|
+
/** POST /api/rules/test — Test Rule. */
|
|
1869
|
+
test(options = {}) {
|
|
1870
|
+
return this.request("POST", "/api/rules/test", options);
|
|
1871
|
+
}
|
|
1872
|
+
/** POST /api/rules/{rule_id}/test-historical — Test Rule Historical. */
|
|
1873
|
+
testRuleHistorical(ruleId, options = {}) {
|
|
1874
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/test-historical`, options);
|
|
1875
|
+
}
|
|
1876
|
+
/** POST /api/rules/{rule_id}/undeploy — Undeploy Rule. */
|
|
1877
|
+
undeploy(ruleId, options = {}) {
|
|
1878
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/undeploy`, options);
|
|
1879
|
+
}
|
|
1880
|
+
/** POST /api/rules/{rule_id}/unsnooze — Unsnooze Rule. */
|
|
1881
|
+
unsnooze(ruleId, options = {}) {
|
|
1882
|
+
return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/unsnooze`, options);
|
|
1883
|
+
}
|
|
1884
|
+
/** PATCH /api/rules/{rule_id} — Update Rule. */
|
|
1885
|
+
update(ruleId, options = {}) {
|
|
1886
|
+
return this.request("PATCH", `/api/rules/${quoteSegment(ruleId)}`, options);
|
|
1887
|
+
}
|
|
1888
|
+
/** PATCH /api/rules/{rule_id}/exceptions/{exception_id} — Update Rule Exception. */
|
|
1889
|
+
updateRuleException(ruleId, exceptionId, options = {}) {
|
|
1890
|
+
return this.request("PATCH", `/api/rules/${quoteSegment(ruleId)}/exceptions/${quoteSegment(exceptionId)}`, options);
|
|
1891
|
+
}
|
|
1892
|
+
/** PATCH /api/rules/{rule_id}/noise-breaker — Update Rule Noise Breaker. */
|
|
1893
|
+
updateRuleNoiseBreaker(ruleId, options = {}) {
|
|
1894
|
+
return this.request("PATCH", `/api/rules/${quoteSegment(ruleId)}/noise-breaker`, options);
|
|
1895
|
+
}
|
|
1896
|
+
/** PUT /api/rules/settings — Update Rule Settings. */
|
|
1897
|
+
updateRuleSettings(options = {}) {
|
|
1898
|
+
return this.request("PUT", "/api/rules/settings", options);
|
|
1899
|
+
}
|
|
1900
|
+
/** PATCH /api/rules/{rule_id}/threshold — Update Rule Threshold. */
|
|
1901
|
+
updateRuleThreshold(ruleId, options = {}) {
|
|
1902
|
+
return this.request("PATCH", `/api/rules/${quoteSegment(ruleId)}/threshold`, options);
|
|
1903
|
+
}
|
|
1904
|
+
/** POST /api/rules/validate — Validate Rule. */
|
|
1905
|
+
validate(options = {}) {
|
|
1906
|
+
return this.request("POST", "/api/rules/validate", options);
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
var ChadRuntimeContracts = class extends Resource {
|
|
1910
|
+
/** GET /api/contracts — Get Runtime Contracts. */
|
|
1911
|
+
get(options = {}) {
|
|
1912
|
+
return this.request("GET", "/api/contracts", options);
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
var ChadSavedViews = class extends Resource {
|
|
1916
|
+
/** POST /api/saved-views — Create Saved View. */
|
|
1917
|
+
create(options = {}) {
|
|
1918
|
+
return this.request("POST", "/api/saved-views", options);
|
|
1919
|
+
}
|
|
1920
|
+
/** DELETE /api/saved-views/{view_id} — Delete Saved View. */
|
|
1921
|
+
delete(viewId, options = {}) {
|
|
1922
|
+
return this.request("DELETE", `/api/saved-views/${quoteSegment(viewId)}`, options);
|
|
1923
|
+
}
|
|
1924
|
+
/** GET /api/saved-views — List Saved Views. */
|
|
1925
|
+
list(options = {}) {
|
|
1926
|
+
return this.request("GET", "/api/saved-views", options);
|
|
1927
|
+
}
|
|
1928
|
+
/** PUT /api/saved-views/{view_id} — Update Saved View. */
|
|
1929
|
+
update(viewId, options = {}) {
|
|
1930
|
+
return this.request("PUT", `/api/saved-views/${quoteSegment(viewId)}`, options);
|
|
1931
|
+
}
|
|
1932
|
+
};
|
|
1933
|
+
var ChadSettings = class extends Resource {
|
|
1934
|
+
/** GET /api/settings/version/check — Check For Updates. */
|
|
1935
|
+
checkForUpdates(options = {}) {
|
|
1936
|
+
return this.request("GET", "/api/settings/version/check", options);
|
|
1937
|
+
}
|
|
1938
|
+
/** POST /api/settings/version/check-now — Check For Updates Now. */
|
|
1939
|
+
checkForUpdatesNow(options = {}) {
|
|
1940
|
+
return this.request("POST", "/api/settings/version/check-now", options);
|
|
1941
|
+
}
|
|
1942
|
+
/** POST /api/settings/geoip/download — Download Geoip Database. */
|
|
1943
|
+
downloadGeoipDatabase(options = {}) {
|
|
1944
|
+
return this.request("POST", "/api/settings/geoip/download", options);
|
|
1945
|
+
}
|
|
1946
|
+
/** GET /api/settings/ai/status — Get Ai Status. */
|
|
1947
|
+
getAiStatus(options = {}) {
|
|
1948
|
+
return this.request("GET", "/api/settings/ai/status", options);
|
|
1949
|
+
}
|
|
1950
|
+
/** GET /api/settings/alert-clustering — Get Alert Clustering Settings. */
|
|
1951
|
+
getAlertClustering(options = {}) {
|
|
1952
|
+
return this.request("GET", "/api/settings/alert-clustering", options);
|
|
1953
|
+
}
|
|
1954
|
+
/** GET /api/settings/explore — Get Explore Settings. */
|
|
1955
|
+
getExplore(options = {}) {
|
|
1956
|
+
return this.request("GET", "/api/settings/explore", options);
|
|
1957
|
+
}
|
|
1958
|
+
/** GET /api/settings/geoip — Get Geoip Settings. */
|
|
1959
|
+
getGeoip(options = {}) {
|
|
1960
|
+
return this.request("GET", "/api/settings/geoip", options);
|
|
1961
|
+
}
|
|
1962
|
+
/** GET /api/settings/opensearch/status — Get Opensearch Status. */
|
|
1963
|
+
getOpensearchStatus(options = {}) {
|
|
1964
|
+
return this.request("GET", "/api/settings/opensearch/status", options);
|
|
1965
|
+
}
|
|
1966
|
+
/** GET /api/settings/security — Get Security Settings. */
|
|
1967
|
+
getSecurity(options = {}) {
|
|
1968
|
+
return this.request("GET", "/api/settings/security", options);
|
|
1969
|
+
}
|
|
1970
|
+
/** GET /api/settings/version — Get Version. */
|
|
1971
|
+
getVersion(options = {}) {
|
|
1972
|
+
return this.request("GET", "/api/settings/version", options);
|
|
1973
|
+
}
|
|
1974
|
+
/** GET /api/settings/version-cleanup — Get Version Cleanup Settings. */
|
|
1975
|
+
getVersionCleanup(options = {}) {
|
|
1976
|
+
return this.request("GET", "/api/settings/version-cleanup", options);
|
|
1977
|
+
}
|
|
1978
|
+
/** GET /api/settings — List Settings. */
|
|
1979
|
+
list(options = {}) {
|
|
1980
|
+
return this.request("GET", "/api/settings", options);
|
|
1981
|
+
}
|
|
1982
|
+
/** POST /api/settings/opensearch — Save Opensearch Config. */
|
|
1983
|
+
saveOpensearchConfig(options = {}) {
|
|
1984
|
+
return this.request("POST", "/api/settings/opensearch", options);
|
|
1985
|
+
}
|
|
1986
|
+
/** POST /api/settings/ai/test — Test Ai Connection. */
|
|
1987
|
+
testAiConnection(options = {}) {
|
|
1988
|
+
return this.request("POST", "/api/settings/ai/test", options);
|
|
1989
|
+
}
|
|
1990
|
+
/** POST /api/settings/geoip/test — Test Geoip Lookup. */
|
|
1991
|
+
testGeoipLookup(options = {}) {
|
|
1992
|
+
return this.request("POST", "/api/settings/geoip/test", options);
|
|
1993
|
+
}
|
|
1994
|
+
/** POST /api/settings/test-index-pattern — Test Index Pattern. */
|
|
1995
|
+
testIndexPattern(options = {}) {
|
|
1996
|
+
return this.request("POST", "/api/settings/test-index-pattern", options);
|
|
1997
|
+
}
|
|
1998
|
+
/** POST /api/settings/opensearch/test — Test Opensearch Connection. */
|
|
1999
|
+
testOpensearchConnection(options = {}) {
|
|
2000
|
+
return this.request("POST", "/api/settings/opensearch/test", options);
|
|
2001
|
+
}
|
|
2002
|
+
/** POST /api/settings/webhooks/test — Test Webhook. */
|
|
2003
|
+
testWebhook(options = {}) {
|
|
2004
|
+
return this.request("POST", "/api/settings/webhooks/test", options);
|
|
2005
|
+
}
|
|
2006
|
+
/** PUT /api/settings/{key} — Update Setting. */
|
|
2007
|
+
update(key, options = {}) {
|
|
2008
|
+
return this.request("PUT", `/api/settings/${quoteSegment(key)}`, options);
|
|
2009
|
+
}
|
|
2010
|
+
/** PUT /api/settings/alert-clustering — Update Alert Clustering Settings. */
|
|
2011
|
+
updateAlertClustering(options = {}) {
|
|
2012
|
+
return this.request("PUT", "/api/settings/alert-clustering", options);
|
|
2013
|
+
}
|
|
2014
|
+
/** PUT /api/settings/explore — Update Explore Settings. */
|
|
2015
|
+
updateExplore(options = {}) {
|
|
2016
|
+
return this.request("PUT", "/api/settings/explore", options);
|
|
2017
|
+
}
|
|
2018
|
+
/** PUT /api/settings/geoip — Update Geoip Settings. */
|
|
2019
|
+
updateGeoip(options = {}) {
|
|
2020
|
+
return this.request("PUT", "/api/settings/geoip", options);
|
|
2021
|
+
}
|
|
2022
|
+
/** PUT /api/settings/security — Update Security Settings. */
|
|
2023
|
+
updateSecurity(options = {}) {
|
|
2024
|
+
return this.request("PUT", "/api/settings/security", options);
|
|
2025
|
+
}
|
|
2026
|
+
/** PUT /api/settings/version-cleanup — Update Version Cleanup Settings. */
|
|
2027
|
+
updateVersionCleanup(options = {}) {
|
|
2028
|
+
return this.request("PUT", "/api/settings/version-cleanup", options);
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
2031
|
+
var ChadSla = class extends Resource {
|
|
2032
|
+
/** GET /api/sla-policy — Read Sla Policy. */
|
|
2033
|
+
readSlaPolicy(options = {}) {
|
|
2034
|
+
return this.request("GET", "/api/sla-policy", options);
|
|
2035
|
+
}
|
|
2036
|
+
/** PUT /api/sla-policy — Update Sla Policy. */
|
|
2037
|
+
updateSlaPolicy(options = {}) {
|
|
2038
|
+
return this.request("PUT", "/api/sla-policy", options);
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
var ChadStats = class extends Resource {
|
|
2042
|
+
/** GET /api/stats/alerts-timeseries — Get Alert Timeseries. */
|
|
2043
|
+
getAlertTimeseries(options = {}) {
|
|
2044
|
+
return this.request("GET", "/api/stats/alerts-timeseries", options);
|
|
2045
|
+
}
|
|
2046
|
+
/** GET /api/stats/dashboard — Get Dashboard Stats. */
|
|
2047
|
+
getDashboard(options = {}) {
|
|
2048
|
+
return this.request("GET", "/api/stats/dashboard", options);
|
|
2049
|
+
}
|
|
2050
|
+
/** GET /api/stats/ioc-matches — Get Ioc Match Stats. */
|
|
2051
|
+
getIocMatch(options = {}) {
|
|
2052
|
+
return this.request("GET", "/api/stats/ioc-matches", options);
|
|
2053
|
+
}
|
|
2054
|
+
/** GET /api/stats/rule-precision — Get Rule Precision Stats. */
|
|
2055
|
+
getRulePrecision(options = {}) {
|
|
2056
|
+
return this.request("GET", "/api/stats/rule-precision", options);
|
|
2057
|
+
}
|
|
2058
|
+
/** GET /api/stats/health — Get System Health. */
|
|
2059
|
+
getSystemHealth(options = {}) {
|
|
2060
|
+
return this.request("GET", "/api/stats/health", options);
|
|
2061
|
+
}
|
|
2062
|
+
};
|
|
2063
|
+
var ChadStorage = class extends Resource {
|
|
2064
|
+
/** GET /api/storage/snapshot-repository — Get Snapshot Repository. */
|
|
2065
|
+
getSnapshotRepository(options = {}) {
|
|
2066
|
+
return this.request("GET", "/api/storage/snapshot-repository", options);
|
|
2067
|
+
}
|
|
2068
|
+
/** GET /api/storage/lifecycle — Get Storage Lifecycle. */
|
|
2069
|
+
getStorageLifecycle(options = {}) {
|
|
2070
|
+
return this.request("GET", "/api/storage/lifecycle", options);
|
|
2071
|
+
}
|
|
2072
|
+
/** PUT /api/storage/snapshot-repository — Put Snapshot Repository. */
|
|
2073
|
+
putSnapshotRepository(options = {}) {
|
|
2074
|
+
return this.request("PUT", "/api/storage/snapshot-repository", options);
|
|
2075
|
+
}
|
|
2076
|
+
/** PUT /api/storage/lifecycle — Put Storage Lifecycle. */
|
|
2077
|
+
putStorageLifecycle(options = {}) {
|
|
2078
|
+
return this.request("PUT", "/api/storage/lifecycle", options);
|
|
2079
|
+
}
|
|
2080
|
+
};
|
|
2081
|
+
var ChadSuite = class extends Resource {
|
|
2082
|
+
/** GET /api/suite/status — Suite Status. */
|
|
2083
|
+
suiteStatus(options = {}) {
|
|
2084
|
+
return this.request("GET", "/api/suite/status", options);
|
|
2085
|
+
}
|
|
2086
|
+
};
|
|
2087
|
+
var ChadSystemLogs = class extends Resource {
|
|
2088
|
+
/** GET /api/system-logs/stats — Get System Log Stats. */
|
|
2089
|
+
getSystemLogStats(options = {}) {
|
|
2090
|
+
return this.request("GET", "/api/system-logs/stats", options);
|
|
2091
|
+
}
|
|
2092
|
+
/** GET /api/system-logs — List System Logs. */
|
|
2093
|
+
list(options = {}) {
|
|
2094
|
+
return this.request("GET", "/api/system-logs", options);
|
|
2095
|
+
}
|
|
2096
|
+
/** DELETE /api/system-logs — Purge System Logs. */
|
|
2097
|
+
purge(options = {}) {
|
|
2098
|
+
return this.request("DELETE", "/api/system-logs", options);
|
|
2099
|
+
}
|
|
2100
|
+
};
|
|
2101
|
+
var ChadTeams = class extends Resource {
|
|
2102
|
+
/** GET /api/teams — List Teams. */
|
|
2103
|
+
list(options = {}) {
|
|
2104
|
+
return this.request("GET", "/api/teams", options);
|
|
2105
|
+
}
|
|
2106
|
+
/** GET /api/teams/{team_id}/members — List Team Members. */
|
|
2107
|
+
listTeamMembers(teamId, options = {}) {
|
|
2108
|
+
return this.request("GET", `/api/teams/${quoteSegment(teamId)}/members`, options);
|
|
2109
|
+
}
|
|
2110
|
+
};
|
|
2111
|
+
var ChadThreatIntelligence = class extends Resource {
|
|
2112
|
+
/** DELETE /api/ti/{source_type} — Delete Ti Source. */
|
|
2113
|
+
deleteTiSource(sourceType, options = {}) {
|
|
2114
|
+
return this.request("DELETE", `/api/ti/${quoteSegment(sourceType)}`, options);
|
|
2115
|
+
}
|
|
2116
|
+
/** GET /api/ti/automation/config — Get Ti Automation. */
|
|
2117
|
+
getTiAutomation(options = {}) {
|
|
2118
|
+
return this.request("GET", "/api/ti/automation/config", options);
|
|
2119
|
+
}
|
|
2120
|
+
/** GET /api/ti/{source_type} — Get Ti Source. */
|
|
2121
|
+
getTiSource(sourceType, options = {}) {
|
|
2122
|
+
return this.request("GET", `/api/ti/${quoteSegment(sourceType)}`, options);
|
|
2123
|
+
}
|
|
2124
|
+
/** GET /api/ti — List Ti Sources. */
|
|
2125
|
+
listTiSources(options = {}) {
|
|
2126
|
+
return this.request("GET", "/api/ti", options);
|
|
2127
|
+
}
|
|
2128
|
+
/** POST /api/ti/{source_type}/test-saved — Test Saved Ti Source. */
|
|
2129
|
+
testSavedTiSource(sourceType, options = {}) {
|
|
2130
|
+
return this.request("POST", `/api/ti/${quoteSegment(sourceType)}/test-saved`, options);
|
|
2131
|
+
}
|
|
2132
|
+
/** POST /api/ti/{source_type}/test — Test Ti Source. */
|
|
2133
|
+
testTiSource(sourceType, options = {}) {
|
|
2134
|
+
return this.request("POST", `/api/ti/${quoteSegment(sourceType)}/test`, options);
|
|
2135
|
+
}
|
|
2136
|
+
/** PUT /api/ti/automation/config — Update Ti Automation. */
|
|
2137
|
+
updateTiAutomation(options = {}) {
|
|
2138
|
+
return this.request("PUT", "/api/ti/automation/config", options);
|
|
2139
|
+
}
|
|
2140
|
+
/** PUT /api/ti/{source_type} — Update Ti Source. */
|
|
2141
|
+
updateTiSource(sourceType, options = {}) {
|
|
2142
|
+
return this.request("PUT", `/api/ti/${quoteSegment(sourceType)}`, options);
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
var ChadTimelines = class extends Resource {
|
|
2146
|
+
/** POST /api/timelines/{timeline_id}/items — Add Item. */
|
|
2147
|
+
addItem(timelineId, options = {}) {
|
|
2148
|
+
return this.request("POST", `/api/timelines/${quoteSegment(timelineId)}/items`, options);
|
|
2149
|
+
}
|
|
2150
|
+
/** POST /api/timelines/{timeline_id}/members — Add Member. */
|
|
2151
|
+
addMember(timelineId, options = {}) {
|
|
2152
|
+
return this.request("POST", `/api/timelines/${quoteSegment(timelineId)}/members`, options);
|
|
2153
|
+
}
|
|
2154
|
+
/** POST /api/timelines — Create Timeline. */
|
|
2155
|
+
create(options = {}) {
|
|
2156
|
+
return this.request("POST", "/api/timelines", options);
|
|
2157
|
+
}
|
|
2158
|
+
/** DELETE /api/timelines/{timeline_id} — Delete Timeline. */
|
|
2159
|
+
delete(timelineId, options = {}) {
|
|
2160
|
+
return this.request("DELETE", `/api/timelines/${quoteSegment(timelineId)}`, options);
|
|
2161
|
+
}
|
|
2162
|
+
/** DELETE /api/timelines/{timeline_id}/items/{item_id} — Delete Item. */
|
|
2163
|
+
deleteItem(timelineId, itemId, options = {}) {
|
|
2164
|
+
return this.request("DELETE", `/api/timelines/${quoteSegment(timelineId)}/items/${quoteSegment(itemId)}`, options);
|
|
2165
|
+
}
|
|
2166
|
+
/** POST /api/timelines/{timeline_id}/escalate — Escalate Timeline. */
|
|
2167
|
+
escalate(timelineId, options = {}) {
|
|
2168
|
+
return this.request("POST", `/api/timelines/${quoteSegment(timelineId)}/escalate`, options);
|
|
2169
|
+
}
|
|
2170
|
+
/** GET /api/timelines/{timeline_id} — Get Timeline. */
|
|
2171
|
+
get(timelineId, options = {}) {
|
|
2172
|
+
return this.request("GET", `/api/timelines/${quoteSegment(timelineId)}`, options);
|
|
2173
|
+
}
|
|
2174
|
+
/** GET /api/timelines — List Timelines. */
|
|
2175
|
+
list(options = {}) {
|
|
2176
|
+
return this.request("GET", "/api/timelines", options);
|
|
2177
|
+
}
|
|
2178
|
+
/** GET /api/timelines/collaborator-candidates — List Collaborator Candidates. */
|
|
2179
|
+
listCollaboratorCandidates(options = {}) {
|
|
2180
|
+
return this.request("GET", "/api/timelines/collaborator-candidates", options);
|
|
2181
|
+
}
|
|
2182
|
+
/** GET /api/timelines/{timeline_id}/members — List Members. */
|
|
2183
|
+
listMembers(timelineId, options = {}) {
|
|
2184
|
+
return this.request("GET", `/api/timelines/${quoteSegment(timelineId)}/members`, options);
|
|
2185
|
+
}
|
|
2186
|
+
/** DELETE /api/timelines/{timeline_id}/members/{user_id} — Remove Member. */
|
|
2187
|
+
removeMember(timelineId, userId, options = {}) {
|
|
2188
|
+
return this.request("DELETE", `/api/timelines/${quoteSegment(timelineId)}/members/${quoteSegment(userId)}`, options);
|
|
2189
|
+
}
|
|
2190
|
+
/** PUT /api/timelines/{timeline_id} — Update Timeline. */
|
|
2191
|
+
update(timelineId, options = {}) {
|
|
2192
|
+
return this.request("PUT", `/api/timelines/${quoteSegment(timelineId)}`, options);
|
|
2193
|
+
}
|
|
2194
|
+
/** PATCH /api/timelines/{timeline_id}/items/{item_id} — Update Item. */
|
|
2195
|
+
updateItem(timelineId, itemId, options = {}) {
|
|
2196
|
+
return this.request("PATCH", `/api/timelines/${quoteSegment(timelineId)}/items/${quoteSegment(itemId)}`, options);
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
var ChadTuning = class extends Resource {
|
|
2200
|
+
/** POST /api/tuning/proposals/{proposal_id}/accept — Accept Tuning Proposal. */
|
|
2201
|
+
acceptTuningProposal(proposalId, options = {}) {
|
|
2202
|
+
return this.request("POST", `/api/tuning/proposals/${quoteSegment(proposalId)}/accept`, options);
|
|
2203
|
+
}
|
|
2204
|
+
/** POST /api/tuning/proposals — Create Tuning Proposal. */
|
|
2205
|
+
createTuningProposal(options = {}) {
|
|
2206
|
+
return this.request("POST", "/api/tuning/proposals", options);
|
|
2207
|
+
}
|
|
2208
|
+
/** GET /api/tuning/proposals/{proposal_id} — Get Tuning Proposal. */
|
|
2209
|
+
getTuningProposal(proposalId, options = {}) {
|
|
2210
|
+
return this.request("GET", `/api/tuning/proposals/${quoteSegment(proposalId)}`, options);
|
|
2211
|
+
}
|
|
2212
|
+
/** GET /api/tuning/proposals — List Tuning Proposals. */
|
|
2213
|
+
listTuningProposals(options = {}) {
|
|
2214
|
+
return this.request("GET", "/api/tuning/proposals", options);
|
|
2215
|
+
}
|
|
2216
|
+
/** POST /api/tuning/proposals/{proposal_id}/reject — Reject Tuning Proposal. */
|
|
2217
|
+
rejectTuningProposal(proposalId, options = {}) {
|
|
2218
|
+
return this.request("POST", `/api/tuning/proposals/${quoteSegment(proposalId)}/reject`, options);
|
|
2219
|
+
}
|
|
2220
|
+
/** GET /api/tuning/metrics — Rule Quality Metrics. */
|
|
2221
|
+
ruleQualityMetrics(options = {}) {
|
|
2222
|
+
return this.request("GET", "/api/tuning/metrics", options);
|
|
2223
|
+
}
|
|
2224
|
+
/** PATCH /api/tuning/proposals/{proposal_id} — Update Tuning Proposal. */
|
|
2225
|
+
updateTuningProposal(proposalId, options = {}) {
|
|
2226
|
+
return this.request("PATCH", `/api/tuning/proposals/${quoteSegment(proposalId)}`, options);
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
var ChadUsers = class extends Resource {
|
|
2230
|
+
/** GET /api/users — List Users. */
|
|
2231
|
+
list(options = {}) {
|
|
2232
|
+
return this.request("GET", "/api/users", options);
|
|
2233
|
+
}
|
|
2234
|
+
};
|
|
2235
|
+
var ChadWarden = class extends Resource {
|
|
2236
|
+
/** POST /api/warden/bindings — Create Warden Binding. */
|
|
2237
|
+
createWardenBinding(options = {}) {
|
|
2238
|
+
return this.request("POST", "/api/warden/bindings", options);
|
|
2239
|
+
}
|
|
2240
|
+
/** DELETE /api/warden/bindings/{binding_id} — Delete Warden Binding. */
|
|
2241
|
+
deleteWardenBinding(bindingId, options = {}) {
|
|
2242
|
+
return this.request("DELETE", `/api/warden/bindings/${quoteSegment(bindingId)}`, options);
|
|
2243
|
+
}
|
|
2244
|
+
/** GET /api/warden/alert/{alert_id}/linked-case — Get Alert Linked Case. */
|
|
2245
|
+
getAlertLinkedCase(alertId, options = {}) {
|
|
2246
|
+
return this.request("GET", `/api/warden/alert/${quoteSegment(alertId)}/linked-case`, options);
|
|
2247
|
+
}
|
|
2248
|
+
/** GET /api/warden/config — Get Warden Config. */
|
|
2249
|
+
getWardenConfig(options = {}) {
|
|
2250
|
+
return this.request("GET", "/api/warden/config", options);
|
|
2251
|
+
}
|
|
2252
|
+
/** GET /api/warden/related-cases — List Related Cases. */
|
|
2253
|
+
listRelatedCases(options = {}) {
|
|
2254
|
+
return this.request("GET", "/api/warden/related-cases", options);
|
|
2255
|
+
}
|
|
2256
|
+
/** GET /api/warden/bindings — List Warden Bindings. */
|
|
2257
|
+
listWardenBindings(options = {}) {
|
|
2258
|
+
return this.request("GET", "/api/warden/bindings", options);
|
|
2259
|
+
}
|
|
2260
|
+
/** POST /api/warden/test — Test Warden Connection. */
|
|
2261
|
+
testWardenConnection(options = {}) {
|
|
2262
|
+
return this.request("POST", "/api/warden/test", options);
|
|
2263
|
+
}
|
|
2264
|
+
/** PATCH /api/warden/bindings/{binding_id} — Update Warden Binding. */
|
|
2265
|
+
updateWardenBinding(bindingId, options = {}) {
|
|
2266
|
+
return this.request("PATCH", `/api/warden/bindings/${quoteSegment(bindingId)}`, options);
|
|
2267
|
+
}
|
|
2268
|
+
/** PUT /api/warden/config — Update Warden Config. */
|
|
2269
|
+
updateWardenConfig(options = {}) {
|
|
2270
|
+
return this.request("PUT", "/api/warden/config", options);
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
var ChadWebhooks = class extends Resource {
|
|
2274
|
+
/** POST /api/webhooks — Create Webhook. */
|
|
2275
|
+
create(options = {}) {
|
|
2276
|
+
return this.request("POST", "/api/webhooks", options);
|
|
2277
|
+
}
|
|
2278
|
+
/** DELETE /api/webhooks/{webhook_id} — Delete Webhook. */
|
|
2279
|
+
delete(webhookId, options = {}) {
|
|
2280
|
+
return this.request("DELETE", `/api/webhooks/${quoteSegment(webhookId)}`, options);
|
|
2281
|
+
}
|
|
2282
|
+
/** GET /api/webhooks/{webhook_id} — Get Webhook. */
|
|
2283
|
+
get(webhookId, options = {}) {
|
|
2284
|
+
return this.request("GET", `/api/webhooks/${quoteSegment(webhookId)}`, options);
|
|
2285
|
+
}
|
|
2286
|
+
/** GET /api/webhooks — List Webhooks. */
|
|
2287
|
+
list(options = {}) {
|
|
2288
|
+
return this.request("GET", "/api/webhooks", options);
|
|
2289
|
+
}
|
|
2290
|
+
/** POST /api/webhooks/{webhook_id}/test — Test Webhook. */
|
|
2291
|
+
test(webhookId, options = {}) {
|
|
2292
|
+
return this.request("POST", `/api/webhooks/${quoteSegment(webhookId)}/test`, options);
|
|
2293
|
+
}
|
|
2294
|
+
/** PATCH /api/webhooks/{webhook_id} — Update Webhook. */
|
|
2295
|
+
update(webhookId, options = {}) {
|
|
2296
|
+
return this.request("PATCH", `/api/webhooks/${quoteSegment(webhookId)}`, options);
|
|
2297
|
+
}
|
|
2298
|
+
};
|
|
2299
|
+
var VectorflowAlerts = class extends Resource {
|
|
2300
|
+
/** POST /api/v1/alerts/rules — Create alert rule. */
|
|
2301
|
+
createAlertRule(options = {}) {
|
|
2302
|
+
return this.request("POST", "/api/v1/alerts/rules", options);
|
|
2303
|
+
}
|
|
2304
|
+
/** GET /api/v1/alerts/rules — List alert rules. */
|
|
2305
|
+
listAlertRules(options = {}) {
|
|
2306
|
+
return this.request("GET", "/api/v1/alerts/rules", options);
|
|
2307
|
+
}
|
|
2308
|
+
};
|
|
2309
|
+
var VectorflowAudit = class extends Resource {
|
|
2310
|
+
/** GET /api/v1/audit — List audit events. */
|
|
2311
|
+
listAuditEvents(options = {}) {
|
|
2312
|
+
return this.request("GET", "/api/v1/audit", options);
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
var VectorflowDeployRequests = class extends Resource {
|
|
2316
|
+
/** POST /api/v1/deploy-requests/{id}/approve — Approve deploy request. */
|
|
2317
|
+
approve(id, options = {}) {
|
|
2318
|
+
return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/approve`, options);
|
|
2319
|
+
}
|
|
2320
|
+
/** GET /api/v1/deploy-requests — List deploy requests. */
|
|
2321
|
+
list(options = {}) {
|
|
2322
|
+
return this.request("GET", "/api/v1/deploy-requests", options);
|
|
2323
|
+
}
|
|
2324
|
+
/** POST /api/v1/deploy-requests/{id}/reject — Reject deploy request. */
|
|
2325
|
+
reject(id, options = {}) {
|
|
2326
|
+
return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/reject`, options);
|
|
2327
|
+
}
|
|
2328
|
+
};
|
|
2329
|
+
var VectorflowEnvironments = class extends Resource {
|
|
2330
|
+
/** GET /api/v1/environments — List environments. */
|
|
2331
|
+
list(options = {}) {
|
|
2332
|
+
return this.request("GET", "/api/v1/environments", options);
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
var VectorflowFleet = class extends Resource {
|
|
2336
|
+
/** GET /api/v1/fleet/overview — Fleet overview. */
|
|
2337
|
+
getFleetOverview(options = {}) {
|
|
2338
|
+
return this.request("GET", "/api/v1/fleet/overview", options);
|
|
2339
|
+
}
|
|
2340
|
+
};
|
|
2341
|
+
var VectorflowNodeGroups = class extends Resource {
|
|
2342
|
+
/** POST /api/v1/node-groups — Create node group. */
|
|
2343
|
+
create(options = {}) {
|
|
2344
|
+
return this.request("POST", "/api/v1/node-groups", options);
|
|
2345
|
+
}
|
|
2346
|
+
/** GET /api/v1/node-groups — List node groups. */
|
|
2347
|
+
list(options = {}) {
|
|
2348
|
+
return this.request("GET", "/api/v1/node-groups", options);
|
|
2349
|
+
}
|
|
2350
|
+
};
|
|
2351
|
+
var VectorflowNodes = class extends Resource {
|
|
2352
|
+
/** POST /api/v1/nodes — Register node. */
|
|
2353
|
+
create(options = {}) {
|
|
2354
|
+
return this.request("POST", "/api/v1/nodes", options);
|
|
2355
|
+
}
|
|
2356
|
+
/** DELETE /api/v1/nodes/{id} — Remove node. */
|
|
2357
|
+
delete(id, options = {}) {
|
|
2358
|
+
return this.request("DELETE", `/api/v1/nodes/${quoteSegment(id)}`, options);
|
|
2359
|
+
}
|
|
2360
|
+
/** GET /api/v1/nodes/{id} — Get node. */
|
|
2361
|
+
get(id, options = {}) {
|
|
2362
|
+
return this.request("GET", `/api/v1/nodes/${quoteSegment(id)}`, options);
|
|
2363
|
+
}
|
|
2364
|
+
/** GET /api/v1/nodes/{id}/metrics — Get node metrics. */
|
|
2365
|
+
getNodeMetrics(id, options = {}) {
|
|
2366
|
+
return this.request("GET", `/api/v1/nodes/${quoteSegment(id)}/metrics`, options);
|
|
2367
|
+
}
|
|
2368
|
+
/** GET /api/v1/nodes — List nodes. */
|
|
2369
|
+
list(options = {}) {
|
|
2370
|
+
return this.request("GET", "/api/v1/nodes", options);
|
|
2371
|
+
}
|
|
2372
|
+
/** POST /api/v1/nodes/{id}/maintenance — Toggle maintenance mode. */
|
|
2373
|
+
toggleMaintenance(id, options = {}) {
|
|
2374
|
+
return this.request("POST", `/api/v1/nodes/${quoteSegment(id)}/maintenance`, options);
|
|
2375
|
+
}
|
|
2376
|
+
/** PUT /api/v1/nodes/{id}/labels — Update node labels. */
|
|
2377
|
+
updateNodeLabels(id, options = {}) {
|
|
2378
|
+
return this.request("PUT", `/api/v1/nodes/${quoteSegment(id)}/labels`, options);
|
|
2379
|
+
}
|
|
2380
|
+
};
|
|
2381
|
+
var VectorflowPipelines = class extends Resource {
|
|
2382
|
+
/** POST /api/v1/pipelines/{id}/edges — Add edge to pipeline. */
|
|
2383
|
+
addPipelineEdge(id, options = {}) {
|
|
2384
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/edges`, options);
|
|
2385
|
+
}
|
|
2386
|
+
/** POST /api/v1/pipelines/{id}/nodes — Add node to pipeline. */
|
|
2387
|
+
addPipelineNode(id, options = {}) {
|
|
2388
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/nodes`, options);
|
|
2389
|
+
}
|
|
2390
|
+
/** POST /api/v1/pipelines — Create pipeline. */
|
|
2391
|
+
create(options = {}) {
|
|
2392
|
+
return this.request("POST", "/api/v1/pipelines", options);
|
|
2393
|
+
}
|
|
2394
|
+
/** DELETE /api/v1/pipelines/{id} — Delete pipeline. */
|
|
2395
|
+
delete(id, options = {}) {
|
|
2396
|
+
return this.request("DELETE", `/api/v1/pipelines/${quoteSegment(id)}`, options);
|
|
2397
|
+
}
|
|
2398
|
+
/** DELETE /api/v1/pipelines/{id}/edges/{edgeId} — Remove edge from pipeline. */
|
|
2399
|
+
deletePipelineEdge(id, edgeId, options = {}) {
|
|
2400
|
+
return this.request("DELETE", `/api/v1/pipelines/${quoteSegment(id)}/edges/${quoteSegment(edgeId)}`, options);
|
|
2401
|
+
}
|
|
2402
|
+
/** DELETE /api/v1/pipelines/{id}/nodes/{nodeId} — Remove node from pipeline. */
|
|
2403
|
+
deletePipelineNode(id, nodeId, options = {}) {
|
|
2404
|
+
return this.request("DELETE", `/api/v1/pipelines/${quoteSegment(id)}/nodes/${quoteSegment(nodeId)}`, options);
|
|
2405
|
+
}
|
|
2406
|
+
/** POST /api/v1/pipelines/{id}/deploy — Deploy pipeline. */
|
|
2407
|
+
deploy(id, options = {}) {
|
|
2408
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/deploy`, options);
|
|
2409
|
+
}
|
|
2410
|
+
/** GET /api/v1/pipelines/{id} — Get pipeline. */
|
|
2411
|
+
get(id, options = {}) {
|
|
2412
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}`, options);
|
|
2413
|
+
}
|
|
2414
|
+
/** GET /api/v1/pipelines/{id}/config — Get generated YAML config. */
|
|
2415
|
+
getPipelineConfig(id, options = {}) {
|
|
2416
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}/config`, options);
|
|
2417
|
+
}
|
|
2418
|
+
/** GET /api/v1/pipelines/{id}/health — Get pipeline health. */
|
|
2419
|
+
getPipelineHealth(id, options = {}) {
|
|
2420
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}/health`, options);
|
|
2421
|
+
}
|
|
2422
|
+
/** GET /api/v1/pipelines/{id}/logs — Get pipeline logs. */
|
|
2423
|
+
getPipelineLogs(id, options = {}) {
|
|
2424
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}/logs`, options);
|
|
2425
|
+
}
|
|
2426
|
+
/** GET /api/v1/pipelines/{id}/metrics — Get pipeline metrics. */
|
|
2427
|
+
getPipelineMetrics(id, options = {}) {
|
|
2428
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}/metrics`, options);
|
|
2429
|
+
}
|
|
2430
|
+
/** POST /api/v1/pipelines/import — Import pipeline from YAML. */
|
|
2431
|
+
import(options = {}) {
|
|
2432
|
+
return this.request("POST", "/api/v1/pipelines/import", options);
|
|
2433
|
+
}
|
|
2434
|
+
/** GET /api/v1/pipelines — List pipelines. */
|
|
2435
|
+
list(options = {}) {
|
|
2436
|
+
return this.request("GET", "/api/v1/pipelines", options);
|
|
2437
|
+
}
|
|
2438
|
+
/** GET /api/v1/pipelines/{id}/versions — List pipeline versions. */
|
|
2439
|
+
listPipelineVersions(id, options = {}) {
|
|
2440
|
+
return this.request("GET", `/api/v1/pipelines/${quoteSegment(id)}/versions`, options);
|
|
2441
|
+
}
|
|
2442
|
+
/** POST /api/v1/pipelines/{id}/promote — Promote pipeline. */
|
|
2443
|
+
promote(id, options = {}) {
|
|
2444
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/promote`, options);
|
|
2445
|
+
}
|
|
2446
|
+
/** POST /api/v1/pipelines/{id}/rollback — Rollback pipeline. */
|
|
2447
|
+
rollback(id, options = {}) {
|
|
2448
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/rollback`, options);
|
|
2449
|
+
}
|
|
2450
|
+
/** POST /api/v1/pipelines/{id}/undeploy — Undeploy pipeline. */
|
|
2451
|
+
undeploy(id, options = {}) {
|
|
2452
|
+
return this.request("POST", `/api/v1/pipelines/${quoteSegment(id)}/undeploy`, options);
|
|
2453
|
+
}
|
|
2454
|
+
/** PUT /api/v1/pipelines/{id} — Update pipeline metadata. */
|
|
2455
|
+
update(id, options = {}) {
|
|
2456
|
+
return this.request("PUT", `/api/v1/pipelines/${quoteSegment(id)}`, options);
|
|
2457
|
+
}
|
|
2458
|
+
/** PUT /api/v1/pipelines/{id}/nodes/{nodeId} — Update node config. */
|
|
2459
|
+
updatePipelineNode(id, nodeId, options = {}) {
|
|
2460
|
+
return this.request("PUT", `/api/v1/pipelines/${quoteSegment(id)}/nodes/${quoteSegment(nodeId)}`, options);
|
|
2461
|
+
}
|
|
2462
|
+
};
|
|
2463
|
+
var VectorflowSecrets = class extends Resource {
|
|
2464
|
+
/** POST /api/v1/secrets — Create secret. */
|
|
2465
|
+
create(options = {}) {
|
|
2466
|
+
return this.request("POST", "/api/v1/secrets", options);
|
|
2467
|
+
}
|
|
2468
|
+
/** DELETE /api/v1/secrets — Delete secret. */
|
|
2469
|
+
delete(options = {}) {
|
|
2470
|
+
return this.request("DELETE", "/api/v1/secrets", options);
|
|
2471
|
+
}
|
|
2472
|
+
/** GET /api/v1/secrets — List secrets. */
|
|
2473
|
+
list(options = {}) {
|
|
2474
|
+
return this.request("GET", "/api/v1/secrets", options);
|
|
2475
|
+
}
|
|
2476
|
+
/** PUT /api/v1/secrets — Update secret. */
|
|
2477
|
+
update(options = {}) {
|
|
2478
|
+
return this.request("PUT", "/api/v1/secrets", options);
|
|
2479
|
+
}
|
|
2480
|
+
};
|
|
2481
|
+
var WardenActions = class extends Resource {
|
|
2482
|
+
/** GET /api/actions — Get Actions. */
|
|
2483
|
+
get(options = {}) {
|
|
2484
|
+
return this.request("GET", "/api/actions", options);
|
|
2485
|
+
}
|
|
2486
|
+
};
|
|
2487
|
+
var WardenAiAuthoring = class extends Resource {
|
|
2488
|
+
/** POST /api/ai/runbook-drafts — Draft Runbook. */
|
|
2489
|
+
draftRunbook(options = {}) {
|
|
2490
|
+
return this.request("POST", "/api/ai/runbook-drafts", options);
|
|
2491
|
+
}
|
|
2492
|
+
/** POST /api/ai/runs/{run_id}/explanation — Explain Run. */
|
|
2493
|
+
explainRun(runId, options = {}) {
|
|
2494
|
+
return this.request("POST", `/api/ai/runs/${quoteSegment(runId)}/explanation`, options);
|
|
2495
|
+
}
|
|
2496
|
+
};
|
|
2497
|
+
var WardenAiSettings = class extends Resource {
|
|
2498
|
+
/** GET /api/settings/ai — Get Ai Config. */
|
|
2499
|
+
getAiConfig(options = {}) {
|
|
2500
|
+
return this.request("GET", "/api/settings/ai", options);
|
|
2501
|
+
}
|
|
2502
|
+
/** GET /api/settings/ai/status — Get Ai Status. */
|
|
2503
|
+
getAiStatus(options = {}) {
|
|
2504
|
+
return this.request("GET", "/api/settings/ai/status", options);
|
|
2505
|
+
}
|
|
2506
|
+
/** PUT /api/settings/ai — Put Ai Config. */
|
|
2507
|
+
putAiConfig(options = {}) {
|
|
2508
|
+
return this.request("PUT", "/api/settings/ai", options);
|
|
2509
|
+
}
|
|
2510
|
+
/** POST /api/settings/ai/test — Test Ai Config. */
|
|
2511
|
+
testAiConfig(options = {}) {
|
|
2512
|
+
return this.request("POST", "/api/settings/ai/test", options);
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
var WardenAiTriage = class extends Resource {
|
|
2516
|
+
/** GET /api/cases/{case_id}/ai-triage — Get Ai Triage. */
|
|
2517
|
+
get(caseId, options = {}) {
|
|
2518
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/ai-triage`, options);
|
|
2519
|
+
}
|
|
2520
|
+
/** POST /api/cases/{case_id}/ai-triage — Run Ai Triage. */
|
|
2521
|
+
run(caseId, options = {}) {
|
|
2522
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/ai-triage`, options);
|
|
2523
|
+
}
|
|
2524
|
+
/** POST /api/cases/{case_id}/ai-triage/feedback — Submit Ai Triage Feedback. */
|
|
2525
|
+
submitAiTriageFeedback(caseId, options = {}) {
|
|
2526
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/ai-triage/feedback`, options);
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
var WardenAlerts = class extends Resource {
|
|
2530
|
+
/** POST /api/alerts/backfill — Backfill Alerts. */
|
|
2531
|
+
backfill(options = {}) {
|
|
2532
|
+
return this.request("POST", "/api/alerts/backfill", options);
|
|
2533
|
+
}
|
|
2534
|
+
/** POST /api/alerts — Create Alert. */
|
|
2535
|
+
create(options = {}) {
|
|
2536
|
+
return this.request("POST", "/api/alerts", options);
|
|
2537
|
+
}
|
|
2538
|
+
/** POST /api/alerts/{alert_id}/dismiss — Dismiss Alert. */
|
|
2539
|
+
dismiss(alertId, options = {}) {
|
|
2540
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/dismiss`, options);
|
|
2541
|
+
}
|
|
2542
|
+
/** POST /api/alerts/{alert_id}/escalate — Escalate Alert. */
|
|
2543
|
+
escalate(alertId, options = {}) {
|
|
2544
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/escalate`, options);
|
|
2545
|
+
}
|
|
2546
|
+
/** POST /api/alerts/{alert_id}/link — Link Alert. */
|
|
2547
|
+
link(alertId, options = {}) {
|
|
2548
|
+
return this.request("POST", `/api/alerts/${quoteSegment(alertId)}/link`, options);
|
|
2549
|
+
}
|
|
2550
|
+
/** GET /api/alerts — List Alerts. */
|
|
2551
|
+
list(options = {}) {
|
|
2552
|
+
return this.request("GET", "/api/alerts", options);
|
|
2553
|
+
}
|
|
2554
|
+
};
|
|
2555
|
+
var WardenApprovalPolicy = class extends Resource {
|
|
2556
|
+
/** POST /api/approval-policy/exceptions — Create Exception. */
|
|
2557
|
+
createException(options = {}) {
|
|
2558
|
+
return this.request("POST", "/api/approval-policy/exceptions", options);
|
|
2559
|
+
}
|
|
2560
|
+
/** GET /api/approval-policy/exceptions — List Exceptions. */
|
|
2561
|
+
listExceptions(options = {}) {
|
|
2562
|
+
return this.request("GET", "/api/approval-policy/exceptions", options);
|
|
2563
|
+
}
|
|
2564
|
+
/** POST /api/approval-policy/exceptions/{exception_id}/revoke — Revoke Exception. */
|
|
2565
|
+
revokeException(exceptionId, options = {}) {
|
|
2566
|
+
return this.request("POST", `/api/approval-policy/exceptions/${quoteSegment(exceptionId)}/revoke`, options);
|
|
2567
|
+
}
|
|
2568
|
+
};
|
|
2569
|
+
var WardenApprovals = class extends Resource {
|
|
2570
|
+
/** GET /api/approvals — List Approvals. */
|
|
2571
|
+
list(options = {}) {
|
|
2572
|
+
return this.request("GET", "/api/approvals", options);
|
|
2573
|
+
}
|
|
2574
|
+
};
|
|
2575
|
+
var WardenAudit = class extends Resource {
|
|
2576
|
+
/** GET /api/audit — List Audit. */
|
|
2577
|
+
list(options = {}) {
|
|
2578
|
+
return this.request("GET", "/api/audit", options);
|
|
2579
|
+
}
|
|
2580
|
+
/** GET /api/audit/actors — List Audit Actors. */
|
|
2581
|
+
listAuditActors(options = {}) {
|
|
2582
|
+
return this.request("GET", "/api/audit/actors", options);
|
|
2583
|
+
}
|
|
2584
|
+
/** GET /api/audit/verify — Verify Audit Chain. */
|
|
2585
|
+
verifyAuditChain(options = {}) {
|
|
2586
|
+
return this.request("GET", "/api/audit/verify", options);
|
|
2587
|
+
}
|
|
2588
|
+
};
|
|
2589
|
+
var WardenAuthorityRevisions = class extends Resource {
|
|
2590
|
+
/** POST /api/authority/revisions — Ingest Authority Revisions. */
|
|
2591
|
+
ingest(options = {}) {
|
|
2592
|
+
return this.request("POST", "/api/authority/revisions", options);
|
|
2593
|
+
}
|
|
2594
|
+
};
|
|
2595
|
+
var WardenBindings = class extends Resource {
|
|
2596
|
+
/** POST /api/bindings — Create Binding. */
|
|
2597
|
+
create(options = {}) {
|
|
2598
|
+
return this.request("POST", "/api/bindings", options);
|
|
2599
|
+
}
|
|
2600
|
+
/** DELETE /api/bindings/{binding_id} — Delete Binding. */
|
|
2601
|
+
delete(bindingId, options = {}) {
|
|
2602
|
+
return this.request("DELETE", `/api/bindings/${quoteSegment(bindingId)}`, options);
|
|
2603
|
+
}
|
|
2604
|
+
/** GET /api/bindings — List Bindings. */
|
|
2605
|
+
list(options = {}) {
|
|
2606
|
+
return this.request("GET", "/api/bindings", options);
|
|
2607
|
+
}
|
|
2608
|
+
/** PATCH /api/bindings/{binding_id} — Update Binding. */
|
|
2609
|
+
update(bindingId, options = {}) {
|
|
2610
|
+
return this.request("PATCH", `/api/bindings/${quoteSegment(bindingId)}`, options);
|
|
2611
|
+
}
|
|
2612
|
+
};
|
|
2613
|
+
var WardenCapacity = class extends Resource {
|
|
2614
|
+
/** GET /api/capacity — Capacity Status. */
|
|
2615
|
+
capacityStatus(options = {}) {
|
|
2616
|
+
return this.request("GET", "/api/capacity", options);
|
|
2617
|
+
}
|
|
2618
|
+
};
|
|
2619
|
+
var WardenCasePolicies = class extends Resource {
|
|
2620
|
+
/** POST /api/case-policies — Create Policy. */
|
|
2621
|
+
createPolicy(options = {}) {
|
|
2622
|
+
return this.request("POST", "/api/case-policies", options);
|
|
2623
|
+
}
|
|
2624
|
+
/** DELETE /api/case-policies/{policy_id} — Delete Policy. */
|
|
2625
|
+
deletePolicy(policyId, options = {}) {
|
|
2626
|
+
return this.request("DELETE", `/api/case-policies/${quoteSegment(policyId)}`, options);
|
|
2627
|
+
}
|
|
2628
|
+
/** GET /api/case-policies — List Policies. */
|
|
2629
|
+
listPolicies(options = {}) {
|
|
2630
|
+
return this.request("GET", "/api/case-policies", options);
|
|
2631
|
+
}
|
|
2632
|
+
/** POST /api/case-policies/migrate — Migrate Case Policies. */
|
|
2633
|
+
migrate(options = {}) {
|
|
2634
|
+
return this.request("POST", "/api/case-policies/migrate", options);
|
|
2635
|
+
}
|
|
2636
|
+
/** PATCH /api/case-policies/{policy_id} — Update Policy. */
|
|
2637
|
+
updatePolicy(policyId, options = {}) {
|
|
2638
|
+
return this.request("PATCH", `/api/case-policies/${quoteSegment(policyId)}`, options);
|
|
2639
|
+
}
|
|
2640
|
+
};
|
|
2641
|
+
var WardenCaseTemplates = class extends Resource {
|
|
2642
|
+
/** POST /api/case-templates — Create Template. */
|
|
2643
|
+
createTemplate(options = {}) {
|
|
2644
|
+
return this.request("POST", "/api/case-templates", options);
|
|
2645
|
+
}
|
|
2646
|
+
/** DELETE /api/case-templates/{template_id} — Delete Template. */
|
|
2647
|
+
deleteTemplate(templateId, options = {}) {
|
|
2648
|
+
return this.request("DELETE", `/api/case-templates/${quoteSegment(templateId)}`, options);
|
|
2649
|
+
}
|
|
2650
|
+
/** GET /api/case-templates/{template_id} — Get Template. */
|
|
2651
|
+
getTemplate(templateId, options = {}) {
|
|
2652
|
+
return this.request("GET", `/api/case-templates/${quoteSegment(templateId)}`, options);
|
|
2653
|
+
}
|
|
2654
|
+
/** GET /api/case-templates — List Templates. */
|
|
2655
|
+
listTemplates(options = {}) {
|
|
2656
|
+
return this.request("GET", "/api/case-templates", options);
|
|
2657
|
+
}
|
|
2658
|
+
/** PUT /api/case-templates/{template_id} — Update Template. */
|
|
2659
|
+
updateTemplate(templateId, options = {}) {
|
|
2660
|
+
return this.request("PUT", `/api/case-templates/${quoteSegment(templateId)}`, options);
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
var WardenCases = class extends Resource {
|
|
2664
|
+
/** POST /api/cases/{case_id}/acknowledge — Acknowledge Case. */
|
|
2665
|
+
acknowledge(caseId, options = {}) {
|
|
2666
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/acknowledge`, options);
|
|
2667
|
+
}
|
|
2668
|
+
/** POST /api/cases/{case_id}/evidence — Add Case Evidence. */
|
|
2669
|
+
addCaseEvidence(caseId, options = {}) {
|
|
2670
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/evidence`, options);
|
|
2671
|
+
}
|
|
2672
|
+
/** POST /api/cases/{case_id}/members — Add Case Member. */
|
|
2673
|
+
addCaseMember(caseId, options = {}) {
|
|
2674
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/members`, options);
|
|
2675
|
+
}
|
|
2676
|
+
/** POST /api/cases/{case_id}/observables — Add Case Observable. */
|
|
2677
|
+
addCaseObservable(caseId, options = {}) {
|
|
2678
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/observables`, options);
|
|
2679
|
+
}
|
|
2680
|
+
/** POST /api/cases/{case_id}/tasks — Add Case Task. */
|
|
2681
|
+
addCaseTask(caseId, options = {}) {
|
|
2682
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/tasks`, options);
|
|
2683
|
+
}
|
|
2684
|
+
/** POST /api/cases/{case_id}/comments — Add Comment. */
|
|
2685
|
+
addComment(caseId, options = {}) {
|
|
2686
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/comments`, options);
|
|
2687
|
+
}
|
|
2688
|
+
/** POST /api/cases/{case_id}/tasks/{task_id}/comments — Add Task Comment. */
|
|
2689
|
+
addTaskComment(caseId, taskId, options = {}) {
|
|
2690
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/tasks/${quoteSegment(taskId)}/comments`, options);
|
|
2691
|
+
}
|
|
2692
|
+
/** POST /api/cases/{case_id}/apply-template — Apply Case Template. */
|
|
2693
|
+
applyCaseTemplate(caseId, options = {}) {
|
|
2694
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/apply-template`, options);
|
|
2695
|
+
}
|
|
2696
|
+
/** POST /api/cases/{case_id}/assign — Assign Case. */
|
|
2697
|
+
assign(caseId, options = {}) {
|
|
2698
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/assign`, options);
|
|
2699
|
+
}
|
|
2700
|
+
/** GET /api/cases/assignable-users — Assignable Users. */
|
|
2701
|
+
assignableUsers(options = {}) {
|
|
2702
|
+
return this.request("GET", "/api/cases/assignable-users", options);
|
|
2703
|
+
}
|
|
2704
|
+
/** GET /api/cases/{case_id}/links — Case Link Graph. */
|
|
2705
|
+
caseLinkGraph(caseId, options = {}) {
|
|
2706
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/links`, options);
|
|
2707
|
+
}
|
|
2708
|
+
/** GET /api/cases/{case_id}/presence — Case Presence. */
|
|
2709
|
+
casePresence(caseId, options = {}) {
|
|
2710
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/presence`, options);
|
|
2711
|
+
}
|
|
2712
|
+
/** GET /api/cases/{case_id}/timeline — Case Timeline. */
|
|
2713
|
+
caseTimeline(caseId, options = {}) {
|
|
2714
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/timeline`, options);
|
|
2715
|
+
}
|
|
2716
|
+
/** GET /api/cases/{case_id}/war-room — Case War Room. */
|
|
2717
|
+
caseWarRoom(caseId, options = {}) {
|
|
2718
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/war-room`, options);
|
|
2719
|
+
}
|
|
2720
|
+
/** POST /api/cases/{case_id}/status — Change Case Status. */
|
|
2721
|
+
changeCaseStatus(caseId, options = {}) {
|
|
2722
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/status`, options);
|
|
2723
|
+
}
|
|
2724
|
+
/** POST /api/cases — Create Case. */
|
|
2725
|
+
create(options = {}) {
|
|
2726
|
+
return this.request("POST", "/api/cases", options);
|
|
2727
|
+
}
|
|
2728
|
+
/** POST /api/cases/{case_id}/links — Create Case Link. */
|
|
2729
|
+
createCaseLink(caseId, options = {}) {
|
|
2730
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/links`, options);
|
|
2731
|
+
}
|
|
2732
|
+
/** POST /api/cases/{case_id}/portal-shares — Create Portal Share. */
|
|
2733
|
+
createPortalShare(caseId, options = {}) {
|
|
2734
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/portal-shares`, options);
|
|
2735
|
+
}
|
|
2736
|
+
/** DELETE /api/cases/{case_id}/observables/{observable_id} — Delete Case Observable. */
|
|
2737
|
+
deleteCaseObservable(caseId, observableId, options = {}) {
|
|
2738
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/observables/${quoteSegment(observableId)}`, options);
|
|
2739
|
+
}
|
|
2740
|
+
/** DELETE /api/cases/{case_id}/comments/{comment_id} — Delete Comment. */
|
|
2741
|
+
deleteComment(caseId, commentId, options = {}) {
|
|
2742
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/comments/${quoteSegment(commentId)}`, options);
|
|
2743
|
+
}
|
|
2744
|
+
/** DELETE /api/cases/{case_id}/tasks/{task_id}/comments/{comment_id} — Delete Task Comment. */
|
|
2745
|
+
deleteTaskComment(caseId, taskId, commentId, options = {}) {
|
|
2746
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/tasks/${quoteSegment(taskId)}/comments/${quoteSegment(commentId)}`, options);
|
|
2747
|
+
}
|
|
2748
|
+
/** GET /api/cases/{case_id}/attachments/{attachment_id}/download — Download Attachment. */
|
|
2749
|
+
downloadAttachment(caseId, attachmentId, options = {}) {
|
|
2750
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/attachments/${quoteSegment(attachmentId)}/download`, options);
|
|
2751
|
+
}
|
|
2752
|
+
/** GET /api/cases/{case_id}/evidence-package — Export Evidence Package. */
|
|
2753
|
+
exportEvidencePackage(caseId, options = {}) {
|
|
2754
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/evidence-package`, options);
|
|
2755
|
+
}
|
|
2756
|
+
/** GET /api/cases/{case_id} — Get Case. */
|
|
2757
|
+
get(caseId, options = {}) {
|
|
2758
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}`, options);
|
|
2759
|
+
}
|
|
2760
|
+
/** POST /api/cases/{case_id}/alerts/{alert_id} — Link Case Alert. */
|
|
2761
|
+
linkCaseAlert(caseId, alertId, options = {}) {
|
|
2762
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/alerts/${quoteSegment(alertId)}`, options);
|
|
2763
|
+
}
|
|
2764
|
+
/** GET /api/cases — List Cases. */
|
|
2765
|
+
list(options = {}) {
|
|
2766
|
+
return this.request("GET", "/api/cases", options);
|
|
2767
|
+
}
|
|
2768
|
+
/** GET /api/cases/{case_id}/attachments — List Attachments. */
|
|
2769
|
+
listAttachments(caseId, options = {}) {
|
|
2770
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/attachments`, options);
|
|
2771
|
+
}
|
|
2772
|
+
/** GET /api/cases/{case_id}/alerts — List Case Alerts. */
|
|
2773
|
+
listCaseAlerts(caseId, options = {}) {
|
|
2774
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/alerts`, options);
|
|
2775
|
+
}
|
|
2776
|
+
/** GET /api/cases/{case_id}/members — List Case Members. */
|
|
2777
|
+
listCaseMembers(caseId, options = {}) {
|
|
2778
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/members`, options);
|
|
2779
|
+
}
|
|
2780
|
+
/** GET /api/cases/{case_id}/runs — List Case Runs. */
|
|
2781
|
+
listCaseRuns(caseId, options = {}) {
|
|
2782
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/runs`, options);
|
|
2783
|
+
}
|
|
2784
|
+
/** GET /api/cases/{case_id}/evidence — List Evidence. */
|
|
2785
|
+
listEvidence(caseId, options = {}) {
|
|
2786
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/evidence`, options);
|
|
2787
|
+
}
|
|
2788
|
+
/** GET /api/cases/{case_id}/observables — List Observables. */
|
|
2789
|
+
listObservables(caseId, options = {}) {
|
|
2790
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/observables`, options);
|
|
2791
|
+
}
|
|
2792
|
+
/** GET /api/cases/{case_id}/portal-shares — List Portal Shares. */
|
|
2793
|
+
listPortalShares(caseId, options = {}) {
|
|
2794
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/portal-shares`, options);
|
|
2795
|
+
}
|
|
2796
|
+
/** GET /api/cases/{case_id}/tasks/{task_id}/comments — List Task Comments. */
|
|
2797
|
+
listTaskComments(caseId, taskId, options = {}) {
|
|
2798
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/tasks/${quoteSegment(taskId)}/comments`, options);
|
|
2799
|
+
}
|
|
2800
|
+
/** GET /api/cases/{case_id}/tasks — List Tasks. */
|
|
2801
|
+
listTasks(caseId, options = {}) {
|
|
2802
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/tasks`, options);
|
|
2803
|
+
}
|
|
2804
|
+
/** POST /api/cases/{case_id}/merge — Merge Cases. */
|
|
2805
|
+
merge(caseId, options = {}) {
|
|
2806
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/merge`, options);
|
|
2807
|
+
}
|
|
2808
|
+
/** PATCH /api/cases/{case_id}/tasks/{task_id} — Patch Case Task. */
|
|
2809
|
+
patchCaseTask(caseId, taskId, options = {}) {
|
|
2810
|
+
return this.request("PATCH", `/api/cases/${quoteSegment(caseId)}/tasks/${quoteSegment(taskId)}`, options);
|
|
2811
|
+
}
|
|
2812
|
+
/** DELETE /api/cases/{case_id}/members/{member_user_id} — Remove Case Member. */
|
|
2813
|
+
removeCaseMember(caseId, memberUserId, options = {}) {
|
|
2814
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/members/${quoteSegment(memberUserId)}`, options);
|
|
2815
|
+
}
|
|
2816
|
+
/** POST /api/cases/{case_id}/feedback-stages/{stage_id}/retry — Retry Feedback Stage. */
|
|
2817
|
+
retryFeedbackStage(caseId, stageId, options = {}) {
|
|
2818
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/feedback-stages/${quoteSegment(stageId)}/retry`, options);
|
|
2819
|
+
}
|
|
2820
|
+
/** DELETE /api/cases/{case_id}/portal-shares/{share_id} — Revoke Portal Share. */
|
|
2821
|
+
revokePortalShare(caseId, shareId, options = {}) {
|
|
2822
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/portal-shares/${quoteSegment(shareId)}`, options);
|
|
2823
|
+
}
|
|
2824
|
+
/** POST /api/cases/{case_id}/runbooks/{slug}/run — Run Case Runbook. */
|
|
2825
|
+
runCaseRunbook(caseId, slug, options = {}) {
|
|
2826
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/runbooks/${quoteSegment(slug)}/run`, options);
|
|
2827
|
+
}
|
|
2828
|
+
/** DELETE /api/cases/{case_id}/alerts/{alert_id} — Unlink Case Alert. */
|
|
2829
|
+
unlinkCaseAlert(caseId, alertId, options = {}) {
|
|
2830
|
+
return this.request("DELETE", `/api/cases/${quoteSegment(caseId)}/alerts/${quoteSegment(alertId)}`, options);
|
|
2831
|
+
}
|
|
2832
|
+
/** PUT /api/cases/{case_id} — Update Case. */
|
|
2833
|
+
update(caseId, options = {}) {
|
|
2834
|
+
return this.request("PUT", `/api/cases/${quoteSegment(caseId)}`, options);
|
|
2835
|
+
}
|
|
2836
|
+
/** POST /api/cases/{case_id}/attachments — Upload Attachment. */
|
|
2837
|
+
uploadAttachment(caseId, options = {}) {
|
|
2838
|
+
return this.request("POST", `/api/cases/${quoteSegment(caseId)}/attachments`, options);
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
2841
|
+
var WardenConnections = class extends Resource {
|
|
2842
|
+
/** POST /api/connections — Create Connection. */
|
|
2843
|
+
create(options = {}) {
|
|
2844
|
+
return this.request("POST", "/api/connections", options);
|
|
2845
|
+
}
|
|
2846
|
+
/** DELETE /api/connections/{connection_id} — Delete Connection. */
|
|
2847
|
+
delete(connectionId, options = {}) {
|
|
2848
|
+
return this.request("DELETE", `/api/connections/${quoteSegment(connectionId)}`, options);
|
|
2849
|
+
}
|
|
2850
|
+
/** DELETE /api/connections/{connection_id}/fixtures/{action_name} — Delete Connection Fixture. */
|
|
2851
|
+
deleteConnectionFixture(connectionId, actionName, options = {}) {
|
|
2852
|
+
return this.request("DELETE", `/api/connections/${quoteSegment(connectionId)}/fixtures/${quoteSegment(actionName)}`, options);
|
|
2853
|
+
}
|
|
2854
|
+
/** GET /api/connections/{connection_id} — Get Connection. */
|
|
2855
|
+
get(connectionId, options = {}) {
|
|
2856
|
+
return this.request("GET", `/api/connections/${quoteSegment(connectionId)}`, options);
|
|
2857
|
+
}
|
|
2858
|
+
/** GET /api/connections — List Connections. */
|
|
2859
|
+
list(options = {}) {
|
|
2860
|
+
return this.request("GET", "/api/connections", options);
|
|
2861
|
+
}
|
|
2862
|
+
/** GET /api/connections/{connection_id}/fixtures — List Connection Fixtures. */
|
|
2863
|
+
listConnectionFixtures(connectionId, options = {}) {
|
|
2864
|
+
return this.request("GET", `/api/connections/${quoteSegment(connectionId)}/fixtures`, options);
|
|
2865
|
+
}
|
|
2866
|
+
/** POST /api/connections/{connection_id}/rotate — Rotate Connection Secret. */
|
|
2867
|
+
rotateConnectionSecret(connectionId, options = {}) {
|
|
2868
|
+
return this.request("POST", `/api/connections/${quoteSegment(connectionId)}/rotate`, options);
|
|
2869
|
+
}
|
|
2870
|
+
/** POST /api/connections/{connection_id}/test — Test Connection. */
|
|
2871
|
+
test(connectionId, options = {}) {
|
|
2872
|
+
return this.request("POST", `/api/connections/${quoteSegment(connectionId)}/test`, options);
|
|
2873
|
+
}
|
|
2874
|
+
/** PUT /api/connections/{connection_id} — Update Connection. */
|
|
2875
|
+
update(connectionId, options = {}) {
|
|
2876
|
+
return this.request("PUT", `/api/connections/${quoteSegment(connectionId)}`, options);
|
|
2877
|
+
}
|
|
2878
|
+
/** PUT /api/connections/{connection_id}/fixtures/{action_name} — Upsert Connection Fixture. */
|
|
2879
|
+
upsertConnectionFixture(connectionId, actionName, options = {}) {
|
|
2880
|
+
return this.request("PUT", `/api/connections/${quoteSegment(connectionId)}/fixtures/${quoteSegment(actionName)}`, options);
|
|
2881
|
+
}
|
|
2882
|
+
};
|
|
2883
|
+
var WardenCustomActions = class extends Resource {
|
|
2884
|
+
/** POST /api/custom-actions — Create Custom Action. */
|
|
2885
|
+
create(options = {}) {
|
|
2886
|
+
return this.request("POST", "/api/custom-actions", options);
|
|
2887
|
+
}
|
|
2888
|
+
/** DELETE /api/custom-actions/{definition_id} — Delete Custom Action. */
|
|
2889
|
+
delete(definitionId, options = {}) {
|
|
2890
|
+
return this.request("DELETE", `/api/custom-actions/${quoteSegment(definitionId)}`, options);
|
|
2891
|
+
}
|
|
2892
|
+
/** GET /api/custom-actions/{definition_id} — Get Custom Action. */
|
|
2893
|
+
get(definitionId, options = {}) {
|
|
2894
|
+
return this.request("GET", `/api/custom-actions/${quoteSegment(definitionId)}`, options);
|
|
2895
|
+
}
|
|
2896
|
+
/** POST /api/custom-actions/import/openapi — Import Openapi Document. */
|
|
2897
|
+
importOpenapiDocument(options = {}) {
|
|
2898
|
+
return this.request("POST", "/api/custom-actions/import/openapi", options);
|
|
2899
|
+
}
|
|
2900
|
+
/** GET /api/custom-actions — List Custom Actions. */
|
|
2901
|
+
list(options = {}) {
|
|
2902
|
+
return this.request("GET", "/api/custom-actions", options);
|
|
2903
|
+
}
|
|
2904
|
+
/** POST /api/custom-actions/preview — Preview Custom Action. */
|
|
2905
|
+
preview(options = {}) {
|
|
2906
|
+
return this.request("POST", "/api/custom-actions/preview", options);
|
|
2907
|
+
}
|
|
2908
|
+
/** POST /api/custom-actions/test — Test Custom Action Connection. */
|
|
2909
|
+
testCustomActionConnection(options = {}) {
|
|
2910
|
+
return this.request("POST", "/api/custom-actions/test", options);
|
|
2911
|
+
}
|
|
2912
|
+
/** PUT /api/custom-actions/{definition_id} — Update Custom Action. */
|
|
2913
|
+
update(definitionId, options = {}) {
|
|
2914
|
+
return this.request("PUT", `/api/custom-actions/${quoteSegment(definitionId)}`, options);
|
|
2915
|
+
}
|
|
2916
|
+
};
|
|
2917
|
+
var WardenDiagnostics = class extends Resource {
|
|
2918
|
+
/** GET /api/diagnostics — Diagnostics. */
|
|
2919
|
+
diagnostics(options = {}) {
|
|
2920
|
+
return this.request("GET", "/api/diagnostics", options);
|
|
2921
|
+
}
|
|
2922
|
+
};
|
|
2923
|
+
var WardenEvents = class extends Resource {
|
|
2924
|
+
/** POST /api/events/chad — Accept one CHAD alert-delivery envelope. */
|
|
2925
|
+
chad(options = {}) {
|
|
2926
|
+
return this.request("POST", "/api/events/chad", options);
|
|
2927
|
+
}
|
|
2928
|
+
};
|
|
2929
|
+
var WardenIntakeRules = class extends Resource {
|
|
2930
|
+
/** POST /api/intake-rules — Create Rule. */
|
|
2931
|
+
createRule(options = {}) {
|
|
2932
|
+
return this.request("POST", "/api/intake-rules", options);
|
|
2933
|
+
}
|
|
2934
|
+
/** DELETE /api/intake-rules/{rule_id} — Delete Rule. */
|
|
2935
|
+
deleteRule(ruleId, options = {}) {
|
|
2936
|
+
return this.request("DELETE", `/api/intake-rules/${quoteSegment(ruleId)}`, options);
|
|
2937
|
+
}
|
|
2938
|
+
/** GET /api/intake-rules — List Rules. */
|
|
2939
|
+
listRules(options = {}) {
|
|
2940
|
+
return this.request("GET", "/api/intake-rules", options);
|
|
2941
|
+
}
|
|
2942
|
+
/** POST /api/intake-rules/test-recent — Test Recent Intakes. */
|
|
2943
|
+
testRecentIntakes(options = {}) {
|
|
2944
|
+
return this.request("POST", "/api/intake-rules/test-recent", options);
|
|
2945
|
+
}
|
|
2946
|
+
/** POST /api/intake-rules/test — Test Rule Set. */
|
|
2947
|
+
testRuleSet(options = {}) {
|
|
2948
|
+
return this.request("POST", "/api/intake-rules/test", options);
|
|
2949
|
+
}
|
|
2950
|
+
/** PATCH /api/intake-rules/{rule_id} — Update Rule. */
|
|
2951
|
+
updateRule(ruleId, options = {}) {
|
|
2952
|
+
return this.request("PATCH", `/api/intake-rules/${quoteSegment(ruleId)}`, options);
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2955
|
+
var WardenIntegrationPacks = class extends Resource {
|
|
2956
|
+
/** GET /api/integration-packs/export — Export Integration Pack. */
|
|
2957
|
+
export(options = {}) {
|
|
2958
|
+
return this.request("GET", "/api/integration-packs/export", options);
|
|
2959
|
+
}
|
|
2960
|
+
/** POST /api/integration-packs/import — Import Integration Pack. */
|
|
2961
|
+
import(options = {}) {
|
|
2962
|
+
return this.request("POST", "/api/integration-packs/import", options);
|
|
2963
|
+
}
|
|
2964
|
+
/** POST /api/integration-packs/registry/{pack_id}/install — Install Registry Pack. */
|
|
2965
|
+
installRegistryPack(packId, options = {}) {
|
|
2966
|
+
return this.request("POST", `/api/integration-packs/registry/${quoteSegment(packId)}/install`, options);
|
|
2967
|
+
}
|
|
2968
|
+
/** GET /api/integration-packs/registry — List Registry Packs. */
|
|
2969
|
+
listRegistryPacks(options = {}) {
|
|
2970
|
+
return this.request("GET", "/api/integration-packs/registry", options);
|
|
2971
|
+
}
|
|
2972
|
+
/** POST /api/integration-packs/import/preview — Preview Integration Pack Import. */
|
|
2973
|
+
previewIntegrationPackImport(options = {}) {
|
|
2974
|
+
return this.request("POST", "/api/integration-packs/import/preview", options);
|
|
2975
|
+
}
|
|
2976
|
+
/** POST /api/integration-packs/upgrade/preview — Preview Integration Pack Upgrade. */
|
|
2977
|
+
previewIntegrationPackUpgrade(options = {}) {
|
|
2978
|
+
return this.request("POST", "/api/integration-packs/upgrade/preview", options);
|
|
2979
|
+
}
|
|
2980
|
+
/** POST /api/integration-packs/registry/{pack_id}/preview — Preview Registry Pack. */
|
|
2981
|
+
previewRegistryPack(packId, options = {}) {
|
|
2982
|
+
return this.request("POST", `/api/integration-packs/registry/${quoteSegment(packId)}/preview`, options);
|
|
2983
|
+
}
|
|
2984
|
+
/** POST /api/integration-packs/registry/{pack_id}/test — Test Registry Pack. */
|
|
2985
|
+
testRegistryPack(packId, options = {}) {
|
|
2986
|
+
return this.request("POST", `/api/integration-packs/registry/${quoteSegment(packId)}/test`, options);
|
|
2987
|
+
}
|
|
2988
|
+
/** POST /api/integration-packs/upgrade — Upgrade Integration Pack. */
|
|
2989
|
+
upgrade(options = {}) {
|
|
2990
|
+
return this.request("POST", "/api/integration-packs/upgrade", options);
|
|
2991
|
+
}
|
|
2992
|
+
/** POST /api/integration-packs/registry/{pack_id}/upgrade — Upgrade Registry Pack. */
|
|
2993
|
+
upgradeRegistryPack(packId, options = {}) {
|
|
2994
|
+
return this.request("POST", `/api/integration-packs/registry/${quoteSegment(packId)}/upgrade`, options);
|
|
2995
|
+
}
|
|
2996
|
+
};
|
|
2997
|
+
var WardenMetrics = class extends Resource {
|
|
2998
|
+
/** GET /api/metrics/gate — Gate. */
|
|
2999
|
+
gate(options = {}) {
|
|
3000
|
+
return this.request("GET", "/api/metrics/gate", options);
|
|
3001
|
+
}
|
|
3002
|
+
/** GET /api/metrics/overview — Overview. */
|
|
3003
|
+
overview(options = {}) {
|
|
3004
|
+
return this.request("GET", "/api/metrics/overview", options);
|
|
3005
|
+
}
|
|
3006
|
+
/** GET /api/metrics/soc — Soc Metrics. */
|
|
3007
|
+
soc(options = {}) {
|
|
3008
|
+
return this.request("GET", "/api/metrics/soc", options);
|
|
3009
|
+
}
|
|
3010
|
+
};
|
|
3011
|
+
var WardenNotifications = class extends Resource {
|
|
3012
|
+
/** GET /api/settings/notifications — Get Notification Config. */
|
|
3013
|
+
getNotificationConfig(options = {}) {
|
|
3014
|
+
return this.request("GET", "/api/settings/notifications", options);
|
|
3015
|
+
}
|
|
3016
|
+
/** GET /api/notifications — List My Notifications. */
|
|
3017
|
+
listMy(options = {}) {
|
|
3018
|
+
return this.request("GET", "/api/notifications", options);
|
|
3019
|
+
}
|
|
3020
|
+
/** POST /api/notifications/read — Mark Notifications Read. */
|
|
3021
|
+
markNotificationsRead(options = {}) {
|
|
3022
|
+
return this.request("POST", "/api/notifications/read", options);
|
|
3023
|
+
}
|
|
3024
|
+
/** PUT /api/settings/notifications — Update Notification Config. */
|
|
3025
|
+
updateNotificationConfig(options = {}) {
|
|
3026
|
+
return this.request("PUT", "/api/settings/notifications", options);
|
|
3027
|
+
}
|
|
3028
|
+
};
|
|
3029
|
+
var WardenPermissions = class extends Resource {
|
|
3030
|
+
/** GET /api/permissions — Get Permissions. */
|
|
3031
|
+
get(options = {}) {
|
|
3032
|
+
return this.request("GET", "/api/permissions", options);
|
|
3033
|
+
}
|
|
3034
|
+
/** PUT /api/permissions — Update Permission. */
|
|
3035
|
+
update(options = {}) {
|
|
3036
|
+
return this.request("PUT", "/api/permissions", options);
|
|
3037
|
+
}
|
|
3038
|
+
};
|
|
3039
|
+
var WardenRelatedCases = class extends Resource {
|
|
3040
|
+
/** GET /api/related-cases — Related Cases. */
|
|
3041
|
+
relatedCases(options = {}) {
|
|
3042
|
+
return this.request("GET", "/api/related-cases", options);
|
|
3043
|
+
}
|
|
3044
|
+
};
|
|
3045
|
+
var WardenReports = class extends Resource {
|
|
3046
|
+
/** POST /api/reports/schedules — Create Schedule. */
|
|
3047
|
+
createSchedule(options = {}) {
|
|
3048
|
+
return this.request("POST", "/api/reports/schedules", options);
|
|
3049
|
+
}
|
|
3050
|
+
/** POST /api/reports/templates — Create Template. */
|
|
3051
|
+
createTemplate(options = {}) {
|
|
3052
|
+
return this.request("POST", "/api/reports/templates", options);
|
|
3053
|
+
}
|
|
3054
|
+
/** DELETE /api/reports/schedules/{schedule_id} — Delete Schedule. */
|
|
3055
|
+
deleteSchedule(scheduleId, options = {}) {
|
|
3056
|
+
return this.request("DELETE", `/api/reports/schedules/${quoteSegment(scheduleId)}`, options);
|
|
3057
|
+
}
|
|
3058
|
+
/** DELETE /api/reports/templates/{template_id} — Delete Template. */
|
|
3059
|
+
deleteTemplate(templateId, options = {}) {
|
|
3060
|
+
return this.request("DELETE", `/api/reports/templates/${quoteSegment(templateId)}`, options);
|
|
3061
|
+
}
|
|
3062
|
+
/** GET /api/reports/runs/{run_id}/download — Download Run. */
|
|
3063
|
+
downloadRun(runId, options = {}) {
|
|
3064
|
+
return this.request("GET", `/api/reports/runs/${quoteSegment(runId)}/download`, options);
|
|
3065
|
+
}
|
|
3066
|
+
/** POST /api/reports/templates/{template_id}/generate — Generate. */
|
|
3067
|
+
generate(templateId, options = {}) {
|
|
3068
|
+
return this.request("POST", `/api/reports/templates/${quoteSegment(templateId)}/generate`, options);
|
|
3069
|
+
}
|
|
3070
|
+
/** GET /api/reports/templates/{template_id} — Get Template. */
|
|
3071
|
+
getTemplate(templateId, options = {}) {
|
|
3072
|
+
return this.request("GET", `/api/reports/templates/${quoteSegment(templateId)}`, options);
|
|
3073
|
+
}
|
|
3074
|
+
/** GET /api/reports/runs — List Runs. */
|
|
3075
|
+
listRuns(options = {}) {
|
|
3076
|
+
return this.request("GET", "/api/reports/runs", options);
|
|
3077
|
+
}
|
|
3078
|
+
/** GET /api/reports/schedules — List Schedules. */
|
|
3079
|
+
listSchedules(options = {}) {
|
|
3080
|
+
return this.request("GET", "/api/reports/schedules", options);
|
|
3081
|
+
}
|
|
3082
|
+
/** GET /api/reports/templates — List Templates. */
|
|
3083
|
+
listTemplates(options = {}) {
|
|
3084
|
+
return this.request("GET", "/api/reports/templates", options);
|
|
3085
|
+
}
|
|
3086
|
+
/** GET /api/reports/preview/{template_id} — Preview Markdown. */
|
|
3087
|
+
previewMarkdown(templateId, options = {}) {
|
|
3088
|
+
return this.request("GET", `/api/reports/preview/${quoteSegment(templateId)}`, options);
|
|
3089
|
+
}
|
|
3090
|
+
/** PUT /api/reports/schedules/{schedule_id} — Update Schedule. */
|
|
3091
|
+
updateSchedule(scheduleId, options = {}) {
|
|
3092
|
+
return this.request("PUT", `/api/reports/schedules/${quoteSegment(scheduleId)}`, options);
|
|
3093
|
+
}
|
|
3094
|
+
/** PUT /api/reports/templates/{template_id} — Update Template. */
|
|
3095
|
+
updateTemplate(templateId, options = {}) {
|
|
3096
|
+
return this.request("PUT", `/api/reports/templates/${quoteSegment(templateId)}`, options);
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3099
|
+
var WardenResponsePolicy = class extends Resource {
|
|
3100
|
+
/** GET /api/response-policy — Get Response Policy. */
|
|
3101
|
+
get(options = {}) {
|
|
3102
|
+
return this.request("GET", "/api/response-policy", options);
|
|
3103
|
+
}
|
|
3104
|
+
/** PUT /api/response-policy — Put Response Policy. */
|
|
3105
|
+
put(options = {}) {
|
|
3106
|
+
return this.request("PUT", "/api/response-policy", options);
|
|
3107
|
+
}
|
|
3108
|
+
};
|
|
3109
|
+
var WardenRetention = class extends Resource {
|
|
3110
|
+
/** GET /api/retention — Retention Status. */
|
|
3111
|
+
retentionStatus(options = {}) {
|
|
3112
|
+
return this.request("GET", "/api/retention", options);
|
|
3113
|
+
}
|
|
3114
|
+
};
|
|
3115
|
+
var WardenRunbooks = class extends Resource {
|
|
3116
|
+
/** POST /api/runbooks/{slug}/debug — Debug Runbook. */
|
|
3117
|
+
debug(slug, options = {}) {
|
|
3118
|
+
return this.request("POST", `/api/runbooks/${quoteSegment(slug)}/debug`, options);
|
|
3119
|
+
}
|
|
3120
|
+
/** POST /api/runbooks/{slug}/disable — Disable Runbook. */
|
|
3121
|
+
disable(slug, options = {}) {
|
|
3122
|
+
return this.request("POST", `/api/runbooks/${quoteSegment(slug)}/disable`, options);
|
|
3123
|
+
}
|
|
3124
|
+
/** POST /api/runbooks/{slug}/enable — Enable Runbook. */
|
|
3125
|
+
enable(slug, options = {}) {
|
|
3126
|
+
return this.request("POST", `/api/runbooks/${quoteSegment(slug)}/enable`, options);
|
|
3127
|
+
}
|
|
3128
|
+
/** GET /api/runbooks/{slug} — Get Runbook. */
|
|
3129
|
+
get(slug, options = {}) {
|
|
3130
|
+
return this.request("GET", `/api/runbooks/${quoteSegment(slug)}`, options);
|
|
3131
|
+
}
|
|
3132
|
+
/** GET /api/runbooks — List Runbooks. */
|
|
3133
|
+
list(options = {}) {
|
|
3134
|
+
return this.request("GET", "/api/runbooks", options);
|
|
3135
|
+
}
|
|
3136
|
+
/** POST /api/runbooks/{slug}/versions/{version}/review — Review Runbook Version. */
|
|
3137
|
+
reviewRunbookVersion(slug, version, options = {}) {
|
|
3138
|
+
return this.request("POST", `/api/runbooks/${quoteSegment(slug)}/versions/${quoteSegment(version)}/review`, options);
|
|
3139
|
+
}
|
|
3140
|
+
/** POST /api/runbooks/{slug} — Save Runbook. */
|
|
3141
|
+
save(slug, options = {}) {
|
|
3142
|
+
return this.request("POST", `/api/runbooks/${quoteSegment(slug)}`, options);
|
|
3143
|
+
}
|
|
3144
|
+
/** POST /api/runbooks/sync — Sync Runbooks. */
|
|
3145
|
+
sync(options = {}) {
|
|
3146
|
+
return this.request("POST", "/api/runbooks/sync", options);
|
|
3147
|
+
}
|
|
3148
|
+
/** GET /api/runbooks/trigger-options — Trigger Options. */
|
|
3149
|
+
triggerOptions(options = {}) {
|
|
3150
|
+
return this.request("GET", "/api/runbooks/trigger-options", options);
|
|
3151
|
+
}
|
|
3152
|
+
/** POST /api/runbooks/trigger-preview — Trigger Preview. */
|
|
3153
|
+
triggerPreview(options = {}) {
|
|
3154
|
+
return this.request("POST", "/api/runbooks/trigger-preview", options);
|
|
3155
|
+
}
|
|
3156
|
+
/** POST /api/runbooks/validate — Validate Runbook. */
|
|
3157
|
+
validate(options = {}) {
|
|
3158
|
+
return this.request("POST", "/api/runbooks/validate", options);
|
|
3159
|
+
}
|
|
3160
|
+
};
|
|
3161
|
+
var WardenRuns = class extends Resource {
|
|
3162
|
+
/** POST /api/runs/{run_id}/approve — Approve Run. */
|
|
3163
|
+
approve(runId, options = {}) {
|
|
3164
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/approve`, options);
|
|
3165
|
+
}
|
|
3166
|
+
/** POST /api/runs/{run_id}/cancel — Cancel Run. */
|
|
3167
|
+
cancel(runId, options = {}) {
|
|
3168
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/cancel`, options);
|
|
3169
|
+
}
|
|
3170
|
+
/** POST /api/runs/{run_id}/debug/continue — Debug Continue. */
|
|
3171
|
+
debugContinue(runId, options = {}) {
|
|
3172
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/debug/continue`, options);
|
|
3173
|
+
}
|
|
3174
|
+
/** POST /api/runs/{run_id}/deny — Deny Run. */
|
|
3175
|
+
deny(runId, options = {}) {
|
|
3176
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/deny`, options);
|
|
3177
|
+
}
|
|
3178
|
+
/** GET /api/runs/{run_id} — Get Run. */
|
|
3179
|
+
get(runId, options = {}) {
|
|
3180
|
+
return this.request("GET", `/api/runs/${quoteSegment(runId)}`, options);
|
|
3181
|
+
}
|
|
3182
|
+
/** GET /api/runs/{run_id}/log — Get Run Log. */
|
|
3183
|
+
getRunLog(runId, options = {}) {
|
|
3184
|
+
return this.request("GET", `/api/runs/${quoteSegment(runId)}/log`, options);
|
|
3185
|
+
}
|
|
3186
|
+
/** GET /api/runs — List Runs. */
|
|
3187
|
+
list(options = {}) {
|
|
3188
|
+
return this.request("GET", "/api/runs", options);
|
|
3189
|
+
}
|
|
3190
|
+
/** POST /api/runs/{run_id}/response-effects/{effect_id}/override — Override Response Effect. */
|
|
3191
|
+
overrideResponseEffect(runId, effectId, options = {}) {
|
|
3192
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/response-effects/${quoteSegment(effectId)}/override`, options);
|
|
3193
|
+
}
|
|
3194
|
+
/** POST /api/runs/{run_id}/response-effects/{effect_id}/reverse — Reverse Response Effect. */
|
|
3195
|
+
reverseResponseEffect(runId, effectId, options = {}) {
|
|
3196
|
+
return this.request("POST", `/api/runs/${quoteSegment(runId)}/response-effects/${quoteSegment(effectId)}/reverse`, options);
|
|
3197
|
+
}
|
|
3198
|
+
/** GET /api/runs/chain/verify — Verify Chain Endpoint. */
|
|
3199
|
+
verifyChainEndpoint(options = {}) {
|
|
3200
|
+
return this.request("GET", "/api/runs/chain/verify", options);
|
|
3201
|
+
}
|
|
3202
|
+
};
|
|
3203
|
+
var WardenSla = class extends Resource {
|
|
3204
|
+
/** POST /api/sla-policies — Create Policy. */
|
|
3205
|
+
createPolicy(options = {}) {
|
|
3206
|
+
return this.request("POST", "/api/sla-policies", options);
|
|
3207
|
+
}
|
|
3208
|
+
/** DELETE /api/sla-policies/{policy_id} — Delete Policy. */
|
|
3209
|
+
deletePolicy(policyId, options = {}) {
|
|
3210
|
+
return this.request("DELETE", `/api/sla-policies/${quoteSegment(policyId)}`, options);
|
|
3211
|
+
}
|
|
3212
|
+
/** GET /api/sla-policies/{policy_id} — Get Policy. */
|
|
3213
|
+
getPolicy(policyId, options = {}) {
|
|
3214
|
+
return this.request("GET", `/api/sla-policies/${quoteSegment(policyId)}`, options);
|
|
3215
|
+
}
|
|
3216
|
+
/** GET /api/sla-policies — List Policies. */
|
|
3217
|
+
listPolicies(options = {}) {
|
|
3218
|
+
return this.request("GET", "/api/sla-policies", options);
|
|
3219
|
+
}
|
|
3220
|
+
/** PUT /api/sla-policies/{policy_id} — Update Policy. */
|
|
3221
|
+
updatePolicy(policyId, options = {}) {
|
|
3222
|
+
return this.request("PUT", `/api/sla-policies/${quoteSegment(policyId)}`, options);
|
|
3223
|
+
}
|
|
3224
|
+
};
|
|
3225
|
+
var WardenTeams = class extends Resource {
|
|
3226
|
+
/** GET /api/teams — My Teams. */
|
|
3227
|
+
my(options = {}) {
|
|
3228
|
+
return this.request("GET", "/api/teams", options);
|
|
3229
|
+
}
|
|
3230
|
+
};
|
|
3231
|
+
var WardenTickets = class extends Resource {
|
|
3232
|
+
/** GET /api/tickets/{link_id} — Get Ticket Link. */
|
|
3233
|
+
getTicketLink(linkId, options = {}) {
|
|
3234
|
+
return this.request("GET", `/api/tickets/${quoteSegment(linkId)}`, options);
|
|
3235
|
+
}
|
|
3236
|
+
/** GET /api/cases/{case_id}/tickets — List Case Tickets. */
|
|
3237
|
+
listCase(caseId, options = {}) {
|
|
3238
|
+
return this.request("GET", `/api/cases/${quoteSegment(caseId)}/tickets`, options);
|
|
3239
|
+
}
|
|
3240
|
+
};
|
|
3241
|
+
var WardenWebhookSources = class extends Resource {
|
|
3242
|
+
/** POST /api/webhook-sources — Create Webhook Source. */
|
|
3243
|
+
create(options = {}) {
|
|
3244
|
+
return this.request("POST", "/api/webhook-sources", options);
|
|
3245
|
+
}
|
|
3246
|
+
/** DELETE /api/webhook-sources/{source_id} — Delete Webhook Source. */
|
|
3247
|
+
delete(sourceId, options = {}) {
|
|
3248
|
+
return this.request("DELETE", `/api/webhook-sources/${quoteSegment(sourceId)}`, options);
|
|
3249
|
+
}
|
|
3250
|
+
/** GET /api/webhook-sources — List Webhook Sources. */
|
|
3251
|
+
list(options = {}) {
|
|
3252
|
+
return this.request("GET", "/api/webhook-sources", options);
|
|
3253
|
+
}
|
|
3254
|
+
/** POST /api/webhook-sources/{source_id}/rotate — Rotate Webhook Source Token. */
|
|
3255
|
+
rotateWebhookSourceToken(sourceId, options = {}) {
|
|
3256
|
+
return this.request("POST", `/api/webhook-sources/${quoteSegment(sourceId)}/rotate`, options);
|
|
3257
|
+
}
|
|
3258
|
+
/** PATCH /api/webhook-sources/{source_id} — Update Webhook Source. */
|
|
3259
|
+
update(sourceId, options = {}) {
|
|
3260
|
+
return this.request("PATCH", `/api/webhook-sources/${quoteSegment(sourceId)}`, options);
|
|
3261
|
+
}
|
|
3262
|
+
};
|
|
3263
|
+
var ChadResources = class {
|
|
3264
|
+
aiCopilot;
|
|
3265
|
+
alerts;
|
|
3266
|
+
apiKeys;
|
|
3267
|
+
attack;
|
|
3268
|
+
attackNarratives;
|
|
3269
|
+
audit;
|
|
3270
|
+
auditSettings;
|
|
3271
|
+
authorityRevisions;
|
|
3272
|
+
circuitBreakers;
|
|
3273
|
+
compliance;
|
|
3274
|
+
contentUpdates;
|
|
3275
|
+
correlation;
|
|
3276
|
+
dashboards;
|
|
3277
|
+
dataSources;
|
|
3278
|
+
deploymentRequests;
|
|
3279
|
+
detectionPacks;
|
|
3280
|
+
diagnostics;
|
|
3281
|
+
enrichmentWebhooks;
|
|
3282
|
+
entities;
|
|
3283
|
+
environments;
|
|
3284
|
+
explore;
|
|
3285
|
+
export;
|
|
3286
|
+
fieldMappings;
|
|
3287
|
+
gitops;
|
|
3288
|
+
health;
|
|
3289
|
+
holds;
|
|
3290
|
+
hunts;
|
|
3291
|
+
indicators;
|
|
3292
|
+
jira;
|
|
3293
|
+
metrics;
|
|
3294
|
+
misp;
|
|
3295
|
+
mispFeedback;
|
|
3296
|
+
mispSync;
|
|
3297
|
+
mode;
|
|
3298
|
+
notifications;
|
|
3299
|
+
overlays;
|
|
3300
|
+
permissions;
|
|
3301
|
+
queue;
|
|
3302
|
+
reportSchedules;
|
|
3303
|
+
reports;
|
|
3304
|
+
retentionPolicy;
|
|
3305
|
+
ruleCi;
|
|
3306
|
+
rulePackConflicts;
|
|
3307
|
+
rules;
|
|
3308
|
+
runtimeContracts;
|
|
3309
|
+
savedViews;
|
|
3310
|
+
settings;
|
|
3311
|
+
sla;
|
|
3312
|
+
stats;
|
|
3313
|
+
storage;
|
|
3314
|
+
suite;
|
|
3315
|
+
systemLogs;
|
|
3316
|
+
teams;
|
|
3317
|
+
threatIntelligence;
|
|
3318
|
+
timelines;
|
|
3319
|
+
tuning;
|
|
3320
|
+
users;
|
|
3321
|
+
warden;
|
|
3322
|
+
webhooks;
|
|
3323
|
+
constructor(transport) {
|
|
3324
|
+
this.aiCopilot = new ChadAiCopilot(transport);
|
|
3325
|
+
this.alerts = new ChadAlerts(transport);
|
|
3326
|
+
this.apiKeys = new ChadApiKeys(transport);
|
|
3327
|
+
this.attack = new ChadAttack(transport);
|
|
3328
|
+
this.attackNarratives = new ChadAttackNarratives(transport);
|
|
3329
|
+
this.audit = new ChadAudit(transport);
|
|
3330
|
+
this.auditSettings = new ChadAuditSettings(transport);
|
|
3331
|
+
this.authorityRevisions = new ChadAuthorityRevisions(transport);
|
|
3332
|
+
this.circuitBreakers = new ChadCircuitBreakers(transport);
|
|
3333
|
+
this.compliance = new ChadCompliance(transport);
|
|
3334
|
+
this.contentUpdates = new ChadContentUpdates(transport);
|
|
3335
|
+
this.correlation = new ChadCorrelation(transport);
|
|
3336
|
+
this.dashboards = new ChadDashboards(transport);
|
|
3337
|
+
this.dataSources = new ChadDataSources(transport);
|
|
3338
|
+
this.deploymentRequests = new ChadDeploymentRequests(transport);
|
|
3339
|
+
this.detectionPacks = new ChadDetectionPacks(transport);
|
|
3340
|
+
this.diagnostics = new ChadDiagnostics(transport);
|
|
3341
|
+
this.enrichmentWebhooks = new ChadEnrichmentWebhooks(transport);
|
|
3342
|
+
this.entities = new ChadEntities(transport);
|
|
3343
|
+
this.environments = new ChadEnvironments(transport);
|
|
3344
|
+
this.explore = new ChadExplore(transport);
|
|
3345
|
+
this.export = new ChadExport(transport);
|
|
3346
|
+
this.fieldMappings = new ChadFieldMappings(transport);
|
|
3347
|
+
this.gitops = new ChadGitops(transport);
|
|
3348
|
+
this.health = new ChadHealth(transport);
|
|
3349
|
+
this.holds = new ChadHolds(transport);
|
|
3350
|
+
this.hunts = new ChadHunts(transport);
|
|
3351
|
+
this.indicators = new ChadIndicators(transport);
|
|
3352
|
+
this.jira = new ChadJira(transport);
|
|
3353
|
+
this.metrics = new ChadMetrics(transport);
|
|
3354
|
+
this.misp = new ChadMisp(transport);
|
|
3355
|
+
this.mispFeedback = new ChadMispFeedback(transport);
|
|
3356
|
+
this.mispSync = new ChadMispSync(transport);
|
|
3357
|
+
this.mode = new ChadMode(transport);
|
|
3358
|
+
this.notifications = new ChadNotifications(transport);
|
|
3359
|
+
this.overlays = new ChadOverlays(transport);
|
|
3360
|
+
this.permissions = new ChadPermissions(transport);
|
|
3361
|
+
this.queue = new ChadQueue(transport);
|
|
3362
|
+
this.reportSchedules = new ChadReportSchedules(transport);
|
|
3363
|
+
this.reports = new ChadReports(transport);
|
|
3364
|
+
this.retentionPolicy = new ChadRetentionPolicy(transport);
|
|
3365
|
+
this.ruleCi = new ChadRuleCi(transport);
|
|
3366
|
+
this.rulePackConflicts = new ChadRulePackConflicts(transport);
|
|
3367
|
+
this.rules = new ChadRules(transport);
|
|
3368
|
+
this.runtimeContracts = new ChadRuntimeContracts(transport);
|
|
3369
|
+
this.savedViews = new ChadSavedViews(transport);
|
|
3370
|
+
this.settings = new ChadSettings(transport);
|
|
3371
|
+
this.sla = new ChadSla(transport);
|
|
3372
|
+
this.stats = new ChadStats(transport);
|
|
3373
|
+
this.storage = new ChadStorage(transport);
|
|
3374
|
+
this.suite = new ChadSuite(transport);
|
|
3375
|
+
this.systemLogs = new ChadSystemLogs(transport);
|
|
3376
|
+
this.teams = new ChadTeams(transport);
|
|
3377
|
+
this.threatIntelligence = new ChadThreatIntelligence(transport);
|
|
3378
|
+
this.timelines = new ChadTimelines(transport);
|
|
3379
|
+
this.tuning = new ChadTuning(transport);
|
|
3380
|
+
this.users = new ChadUsers(transport);
|
|
3381
|
+
this.warden = new ChadWarden(transport);
|
|
3382
|
+
this.webhooks = new ChadWebhooks(transport);
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
3385
|
+
var VectorflowResources = class {
|
|
3386
|
+
alerts;
|
|
3387
|
+
audit;
|
|
3388
|
+
deployRequests;
|
|
3389
|
+
environments;
|
|
3390
|
+
fleet;
|
|
3391
|
+
nodeGroups;
|
|
3392
|
+
nodes;
|
|
3393
|
+
pipelines;
|
|
3394
|
+
secrets;
|
|
3395
|
+
constructor(transport) {
|
|
3396
|
+
this.alerts = new VectorflowAlerts(transport);
|
|
3397
|
+
this.audit = new VectorflowAudit(transport);
|
|
3398
|
+
this.deployRequests = new VectorflowDeployRequests(transport);
|
|
3399
|
+
this.environments = new VectorflowEnvironments(transport);
|
|
3400
|
+
this.fleet = new VectorflowFleet(transport);
|
|
3401
|
+
this.nodeGroups = new VectorflowNodeGroups(transport);
|
|
3402
|
+
this.nodes = new VectorflowNodes(transport);
|
|
3403
|
+
this.pipelines = new VectorflowPipelines(transport);
|
|
3404
|
+
this.secrets = new VectorflowSecrets(transport);
|
|
3405
|
+
}
|
|
3406
|
+
};
|
|
3407
|
+
var WardenResources = class {
|
|
3408
|
+
actions;
|
|
3409
|
+
aiAuthoring;
|
|
3410
|
+
aiSettings;
|
|
3411
|
+
aiTriage;
|
|
3412
|
+
alerts;
|
|
3413
|
+
approvalPolicy;
|
|
3414
|
+
approvals;
|
|
3415
|
+
audit;
|
|
3416
|
+
authorityRevisions;
|
|
3417
|
+
bindings;
|
|
3418
|
+
capacity;
|
|
3419
|
+
casePolicies;
|
|
3420
|
+
caseTemplates;
|
|
3421
|
+
cases;
|
|
3422
|
+
connections;
|
|
3423
|
+
customActions;
|
|
3424
|
+
diagnostics;
|
|
3425
|
+
events;
|
|
3426
|
+
intakeRules;
|
|
3427
|
+
integrationPacks;
|
|
3428
|
+
metrics;
|
|
3429
|
+
notifications;
|
|
3430
|
+
permissions;
|
|
3431
|
+
relatedCases;
|
|
3432
|
+
reports;
|
|
3433
|
+
responsePolicy;
|
|
3434
|
+
retention;
|
|
3435
|
+
runbooks;
|
|
3436
|
+
runs;
|
|
3437
|
+
sla;
|
|
3438
|
+
teams;
|
|
3439
|
+
tickets;
|
|
3440
|
+
webhookSources;
|
|
3441
|
+
constructor(transport) {
|
|
3442
|
+
this.actions = new WardenActions(transport);
|
|
3443
|
+
this.aiAuthoring = new WardenAiAuthoring(transport);
|
|
3444
|
+
this.aiSettings = new WardenAiSettings(transport);
|
|
3445
|
+
this.aiTriage = new WardenAiTriage(transport);
|
|
3446
|
+
this.alerts = new WardenAlerts(transport);
|
|
3447
|
+
this.approvalPolicy = new WardenApprovalPolicy(transport);
|
|
3448
|
+
this.approvals = new WardenApprovals(transport);
|
|
3449
|
+
this.audit = new WardenAudit(transport);
|
|
3450
|
+
this.authorityRevisions = new WardenAuthorityRevisions(transport);
|
|
3451
|
+
this.bindings = new WardenBindings(transport);
|
|
3452
|
+
this.capacity = new WardenCapacity(transport);
|
|
3453
|
+
this.casePolicies = new WardenCasePolicies(transport);
|
|
3454
|
+
this.caseTemplates = new WardenCaseTemplates(transport);
|
|
3455
|
+
this.cases = new WardenCases(transport);
|
|
3456
|
+
this.connections = new WardenConnections(transport);
|
|
3457
|
+
this.customActions = new WardenCustomActions(transport);
|
|
3458
|
+
this.diagnostics = new WardenDiagnostics(transport);
|
|
3459
|
+
this.events = new WardenEvents(transport);
|
|
3460
|
+
this.intakeRules = new WardenIntakeRules(transport);
|
|
3461
|
+
this.integrationPacks = new WardenIntegrationPacks(transport);
|
|
3462
|
+
this.metrics = new WardenMetrics(transport);
|
|
3463
|
+
this.notifications = new WardenNotifications(transport);
|
|
3464
|
+
this.permissions = new WardenPermissions(transport);
|
|
3465
|
+
this.relatedCases = new WardenRelatedCases(transport);
|
|
3466
|
+
this.reports = new WardenReports(transport);
|
|
3467
|
+
this.responsePolicy = new WardenResponsePolicy(transport);
|
|
3468
|
+
this.retention = new WardenRetention(transport);
|
|
3469
|
+
this.runbooks = new WardenRunbooks(transport);
|
|
3470
|
+
this.runs = new WardenRuns(transport);
|
|
3471
|
+
this.sla = new WardenSla(transport);
|
|
3472
|
+
this.teams = new WardenTeams(transport);
|
|
3473
|
+
this.tickets = new WardenTickets(transport);
|
|
3474
|
+
this.webhookSources = new WardenWebhookSources(transport);
|
|
3475
|
+
}
|
|
3476
|
+
};
|
|
3477
|
+
|
|
3478
|
+
// src/client.ts
|
|
3479
|
+
var SUITE_PREFIXES = {
|
|
3480
|
+
chad: "/chad",
|
|
3481
|
+
warden: "/warden",
|
|
3482
|
+
vectorflow: "/vectorflow"
|
|
3483
|
+
};
|
|
3484
|
+
var MissingCredentialError = class extends VeltroError {
|
|
3485
|
+
constructor(product, reason, member) {
|
|
3486
|
+
super(`${product}: ${reason} (asked for \`${member}\`)`);
|
|
3487
|
+
this.name = "MissingCredentialError";
|
|
3488
|
+
}
|
|
3489
|
+
};
|
|
3490
|
+
var ChadClient = class extends ChadResources {
|
|
3491
|
+
baseUrl;
|
|
3492
|
+
constructor(baseUrl, options = {}) {
|
|
3493
|
+
const transport = new Transport(baseUrl, {
|
|
3494
|
+
auth: options.auth ?? new NoAuth(),
|
|
3495
|
+
timeoutMs: options.timeoutMs,
|
|
3496
|
+
retries: options.retries,
|
|
3497
|
+
maxResponseBytes: options.maxResponseBytes,
|
|
3498
|
+
fetchImpl: options.fetchImpl
|
|
3499
|
+
});
|
|
3500
|
+
super(transport);
|
|
3501
|
+
this.baseUrl = transport.baseUrl;
|
|
3502
|
+
}
|
|
3503
|
+
};
|
|
3504
|
+
var WardenClient = class extends WardenResources {
|
|
3505
|
+
baseUrl;
|
|
3506
|
+
constructor(baseUrl, options = {}) {
|
|
3507
|
+
const transport = new Transport(baseUrl, {
|
|
3508
|
+
auth: options.auth ?? new NoAuth(),
|
|
3509
|
+
timeoutMs: options.timeoutMs,
|
|
3510
|
+
retries: options.retries,
|
|
3511
|
+
maxResponseBytes: options.maxResponseBytes,
|
|
3512
|
+
fetchImpl: options.fetchImpl
|
|
3513
|
+
});
|
|
3514
|
+
super(transport);
|
|
3515
|
+
this.baseUrl = transport.baseUrl;
|
|
3516
|
+
}
|
|
3517
|
+
};
|
|
3518
|
+
var VectorFlowClient = class extends VectorflowResources {
|
|
3519
|
+
baseUrl;
|
|
3520
|
+
constructor(baseUrl, options = {}) {
|
|
3521
|
+
const transport = new Transport(baseUrl, {
|
|
3522
|
+
auth: options.auth ?? new NoAuth(),
|
|
3523
|
+
timeoutMs: options.timeoutMs,
|
|
3524
|
+
retries: options.retries,
|
|
3525
|
+
maxResponseBytes: options.maxResponseBytes,
|
|
3526
|
+
fetchImpl: options.fetchImpl
|
|
3527
|
+
});
|
|
3528
|
+
super(transport);
|
|
3529
|
+
this.baseUrl = transport.baseUrl;
|
|
3530
|
+
}
|
|
3531
|
+
};
|
|
3532
|
+
function unavailable(product, reason) {
|
|
3533
|
+
return new Proxy(
|
|
3534
|
+
{},
|
|
3535
|
+
{
|
|
3536
|
+
get(_target, member) {
|
|
3537
|
+
if (member === "toString" || member === Symbol.toStringTag) {
|
|
3538
|
+
return () => `<${product} unavailable: ${reason}>`;
|
|
3539
|
+
}
|
|
3540
|
+
throw new MissingCredentialError(product, reason, String(member));
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
);
|
|
3544
|
+
}
|
|
3545
|
+
var VeltroClient = class _VeltroClient {
|
|
3546
|
+
baseUrl;
|
|
3547
|
+
session;
|
|
3548
|
+
chad;
|
|
3549
|
+
warden;
|
|
3550
|
+
vectorflow;
|
|
3551
|
+
constructor(baseUrl, options = {}) {
|
|
3552
|
+
if (!baseUrl) throw new Error("baseUrl is required");
|
|
3553
|
+
this.baseUrl = baseUrl.replace(/\/+$/, "");
|
|
3554
|
+
this.session = options.session;
|
|
3555
|
+
const chadAuth = options.chadAuth ?? options.session;
|
|
3556
|
+
const wardenAuth = options.wardenAuth ?? options.session;
|
|
3557
|
+
const vectorflowAuth = options.vectorflowAuth ?? (options.vectorflowKey ? new BearerToken(options.vectorflowKey) : void 0);
|
|
3558
|
+
const shared = {
|
|
3559
|
+
timeoutMs: options.timeoutMs,
|
|
3560
|
+
retries: options.retries,
|
|
3561
|
+
fetchImpl: options.fetchImpl
|
|
3562
|
+
};
|
|
3563
|
+
this.chad = chadAuth ? new ChadClient(`${this.baseUrl}${SUITE_PREFIXES.chad}`, {
|
|
3564
|
+
auth: chadAuth,
|
|
3565
|
+
...shared
|
|
3566
|
+
}) : unavailable(
|
|
3567
|
+
"chad",
|
|
3568
|
+
"no credential: pass a suite session (VeltroClient.login) or chadAuth: new BearerToken(<personal access token>)"
|
|
3569
|
+
);
|
|
3570
|
+
this.warden = wardenAuth ? new WardenClient(`${this.baseUrl}${SUITE_PREFIXES.warden}`, {
|
|
3571
|
+
auth: wardenAuth,
|
|
3572
|
+
...shared
|
|
3573
|
+
}) : unavailable(
|
|
3574
|
+
"warden",
|
|
3575
|
+
"no credential: pass a suite session (VeltroClient.login) or wardenAuth: new BearerToken(...)"
|
|
3576
|
+
);
|
|
3577
|
+
this.vectorflow = vectorflowAuth ? new VectorFlowClient(`${this.baseUrl}${SUITE_PREFIXES.vectorflow}`, {
|
|
3578
|
+
auth: vectorflowAuth,
|
|
3579
|
+
...shared
|
|
3580
|
+
}) : unavailable(
|
|
3581
|
+
"vectorflow",
|
|
3582
|
+
"REST v1 accepts only an environment-scoped service-account key; pass vectorflowKey: 'vf_live_\u2026'"
|
|
3583
|
+
);
|
|
3584
|
+
}
|
|
3585
|
+
/** Mint a suite session at `baseUrl` and bind all three products. */
|
|
3586
|
+
static async login(baseUrl, email, password, options = {}) {
|
|
3587
|
+
const session = new SuiteSession(baseUrl, email, password, {
|
|
3588
|
+
allowInsecureTransport: options.allowInsecureTransport,
|
|
3589
|
+
fetchImpl: options.fetchImpl
|
|
3590
|
+
});
|
|
3591
|
+
await session.login();
|
|
3592
|
+
return new _VeltroClient(baseUrl, { ...options, session });
|
|
3593
|
+
}
|
|
3594
|
+
};
|
|
3595
|
+
|
|
3596
|
+
// src/index.ts
|
|
3597
|
+
var VERSION = "0.15.7";
|
|
3598
|
+
export {
|
|
3599
|
+
BearerToken,
|
|
3600
|
+
ChadClient,
|
|
3601
|
+
ChadResources,
|
|
3602
|
+
DEFAULT_MAX_RESPONSE_BYTES,
|
|
3603
|
+
DEFAULT_RETRIES,
|
|
3604
|
+
DEFAULT_TIMEOUT_MS,
|
|
3605
|
+
MissingCredentialError,
|
|
3606
|
+
NoAuth,
|
|
3607
|
+
Resource,
|
|
3608
|
+
SESSION_COOKIE_PREFIX,
|
|
3609
|
+
SUITE_PREFIXES,
|
|
3610
|
+
SuiteSession,
|
|
3611
|
+
Transport,
|
|
3612
|
+
VERSION,
|
|
3613
|
+
VectorFlowClient,
|
|
3614
|
+
VectorflowResources,
|
|
3615
|
+
VeltroApiError,
|
|
3616
|
+
VeltroClient,
|
|
3617
|
+
VeltroError,
|
|
3618
|
+
VeltroResponseTooLargeError,
|
|
3619
|
+
VeltroTransportError,
|
|
3620
|
+
WardenClient,
|
|
3621
|
+
WardenResources,
|
|
3622
|
+
quoteSegment
|
|
3623
|
+
};
|
|
3624
|
+
//# sourceMappingURL=index.js.map
|