@veltrosecurity/sdk 0.20.0 → 0.23.0

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.d.cts CHANGED
@@ -916,6 +916,8 @@ declare class ChadRules extends Resource {
916
916
  listRuleExceptions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
917
917
  /** GET /api/rules/{rule_id}/transitions — List Rule Transitions. */
918
918
  listRuleTransitions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
919
+ /** GET /api/rules/{rule_id}/versions — List Rule Versions. */
920
+ listRuleVersions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
919
921
  /** POST /api/rules/{rule_id}/canary — Place Rule In Canary. */
920
922
  placeRuleInCanary<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
921
923
  /** POST /api/rules/{rule_id}/exceptions/preview — Preview Rule Exception. */
@@ -1908,6 +1910,6 @@ declare class VeltroClient {
1908
1910
  * No runtime dependencies: the transport is `fetch`.
1909
1911
  */
1910
1912
 
1911
- declare const VERSION = "0.20.0";
1913
+ declare const VERSION = "0.23.0";
1912
1914
 
1913
1915
  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
@@ -916,6 +916,8 @@ declare class ChadRules extends Resource {
916
916
  listRuleExceptions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
917
917
  /** GET /api/rules/{rule_id}/transitions — List Rule Transitions. */
918
918
  listRuleTransitions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
919
+ /** GET /api/rules/{rule_id}/versions — List Rule Versions. */
920
+ listRuleVersions<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
919
921
  /** POST /api/rules/{rule_id}/canary — Place Rule In Canary. */
920
922
  placeRuleInCanary<T = unknown>(ruleId: string, options?: RequestOptions): Promise<T>;
921
923
  /** POST /api/rules/{rule_id}/exceptions/preview — Preview Rule Exception. */
@@ -1908,6 +1910,6 @@ declare class VeltroClient {
1908
1910
  * No runtime dependencies: the transport is `fetch`.
1909
1911
  */
1910
1912
 
1911
- declare const VERSION = "0.20.0";
1913
+ declare const VERSION = "0.23.0";
1912
1914
 
1913
1915
  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.20.0 (+https://github.com/veltrosecurity/veltro)";
7
+ var USER_AGENT = "veltro-sdk/0.23.0 (+https://github.com/veltrosecurity/veltro)";
8
8
  var VeltroError = class extends Error {
9
9
  constructor(message) {
10
10
  super(message);
@@ -1797,6 +1797,10 @@ var ChadRules = class extends Resource {
1797
1797
  listRuleTransitions(ruleId, options = {}) {
1798
1798
  return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/transitions`, options);
1799
1799
  }
1800
+ /** GET /api/rules/{rule_id}/versions — List Rule Versions. */
1801
+ listRuleVersions(ruleId, options = {}) {
1802
+ return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/versions`, options);
1803
+ }
1800
1804
  /** POST /api/rules/{rule_id}/canary — Place Rule In Canary. */
1801
1805
  placeRuleInCanary(ruleId, options = {}) {
1802
1806
  return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/canary`, options);
@@ -3478,7 +3482,7 @@ var VeltroClient = class _VeltroClient {
3478
3482
  };
3479
3483
 
3480
3484
  // src/index.ts
3481
- var VERSION = "0.20.0";
3485
+ var VERSION = "0.23.0";
3482
3486
  export {
3483
3487
  BearerToken,
3484
3488
  ChadClient,