@veltrosecurity/sdk 0.31.2 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -189,6 +189,8 @@ declare class ChadAiCopilot extends Resource {
|
|
|
189
189
|
explainAlert<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
190
190
|
/** POST /api/ai/copilot/explain-rule — Explain Rule. */
|
|
191
191
|
explainRule<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
192
|
+
/** POST /api/ai/copilot/explore-query — Generate Explore Query. */
|
|
193
|
+
generateExploreQuery<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
192
194
|
/** POST /api/ai/copilot/generate-rule — Generate Rule. */
|
|
193
195
|
generateRule<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
194
196
|
/** POST /api/ai/copilot/suggest-exceptions — Suggest Exceptions. */
|
|
@@ -1910,6 +1912,6 @@ declare class VeltroClient {
|
|
|
1910
1912
|
* No runtime dependencies: the transport is `fetch`.
|
|
1911
1913
|
*/
|
|
1912
1914
|
|
|
1913
|
-
declare const VERSION = "0.
|
|
1915
|
+
declare const VERSION = "0.32.1";
|
|
1914
1916
|
|
|
1915
1917
|
export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
|
package/dist/index.d.ts
CHANGED
|
@@ -189,6 +189,8 @@ declare class ChadAiCopilot extends Resource {
|
|
|
189
189
|
explainAlert<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
190
190
|
/** POST /api/ai/copilot/explain-rule — Explain Rule. */
|
|
191
191
|
explainRule<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
192
|
+
/** POST /api/ai/copilot/explore-query — Generate Explore Query. */
|
|
193
|
+
generateExploreQuery<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
192
194
|
/** POST /api/ai/copilot/generate-rule — Generate Rule. */
|
|
193
195
|
generateRule<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
194
196
|
/** POST /api/ai/copilot/suggest-exceptions — Suggest Exceptions. */
|
|
@@ -1910,6 +1912,6 @@ declare class VeltroClient {
|
|
|
1910
1912
|
* No runtime dependencies: the transport is `fetch`.
|
|
1911
1913
|
*/
|
|
1912
1914
|
|
|
1913
|
-
declare const VERSION = "0.
|
|
1915
|
+
declare const VERSION = "0.32.1";
|
|
1914
1916
|
|
|
1915
1917
|
export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
|
|
|
4
4
|
var DEFAULT_RETRIES = 2;
|
|
5
5
|
var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
6
6
|
var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
|
|
7
|
-
var USER_AGENT = "veltro-sdk/0.
|
|
7
|
+
var USER_AGENT = "veltro-sdk/0.32.1 (+https://github.com/veltrosecurity/veltro)";
|
|
8
8
|
var VeltroError = class extends Error {
|
|
9
9
|
constructor(message) {
|
|
10
10
|
super(message);
|
|
@@ -507,6 +507,10 @@ var ChadAiCopilot = class extends Resource {
|
|
|
507
507
|
explainRule(options = {}) {
|
|
508
508
|
return this.request("POST", "/api/ai/copilot/explain-rule", options);
|
|
509
509
|
}
|
|
510
|
+
/** POST /api/ai/copilot/explore-query — Generate Explore Query. */
|
|
511
|
+
generateExploreQuery(options = {}) {
|
|
512
|
+
return this.request("POST", "/api/ai/copilot/explore-query", options);
|
|
513
|
+
}
|
|
510
514
|
/** POST /api/ai/copilot/generate-rule — Generate Rule. */
|
|
511
515
|
generateRule(options = {}) {
|
|
512
516
|
return this.request("POST", "/api/ai/copilot/generate-rule", options);
|
|
@@ -3482,7 +3486,7 @@ var VeltroClient = class _VeltroClient {
|
|
|
3482
3486
|
};
|
|
3483
3487
|
|
|
3484
3488
|
// src/index.ts
|
|
3485
|
-
var VERSION = "0.
|
|
3489
|
+
var VERSION = "0.32.1";
|
|
3486
3490
|
export {
|
|
3487
3491
|
BearerToken,
|
|
3488
3492
|
ChadClient,
|