@seclai/sdk 1.1.3 → 1.1.4

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/README.md CHANGED
@@ -104,7 +104,7 @@ or set environment variables:
104
104
 
105
105
  Online API documentation (latest):
106
106
 
107
- https://seclai.github.io/seclai-javascript/1.1.3/
107
+ https://seclai.github.io/seclai-javascript/1.1.4/
108
108
 
109
109
  ## Resources
110
110
 
package/dist/index.cjs CHANGED
@@ -797,6 +797,21 @@ var Seclai = class {
797
797
  await this.request("DELETE", `/agents/${agentId}`);
798
798
  }
799
799
  // ═══════════════════════════════════════════════════════════════════════════
800
+ // Agent Export
801
+ // ═══════════════════════════════════════════════════════════════════════════
802
+ /**
803
+ * Export an agent definition as a portable JSON snapshot.
804
+ *
805
+ * @param agentId - Agent identifier.
806
+ * @param download - When true (default), the server sets Content-Disposition: attachment.
807
+ * @returns The exported agent snapshot.
808
+ */
809
+ async exportAgent(agentId, download = true) {
810
+ return await this.request("GET", `/agents/${agentId}/export`, {
811
+ query: { download }
812
+ });
813
+ }
814
+ // ═══════════════════════════════════════════════════════════════════════════
800
815
  // Agent Definitions
801
816
  // ═══════════════════════════════════════════════════════════════════════════
802
817
  /**