@ayurak/aribot-cli 1.3.1 → 1.3.3

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/cli.js CHANGED
@@ -405,7 +405,7 @@ program
405
405
  try {
406
406
  // Resolve short UUID to full UUID
407
407
  const fullId = await resolveDiagramId(diagramId);
408
- await apiRequest(`/v2/threat-modeling/diagrams/${fullId}/generate-threats/`, {
408
+ await apiRequest(`/v2/threat-modeling/diagrams/${fullId}/analyze-threats/`, {
409
409
  method: 'POST'
410
410
  });
411
411
  spinner.text = 'Processing...';
package/dist/sdk.js CHANGED
@@ -234,7 +234,7 @@ class ThreatModelingResource {
234
234
  return data.threats || data.results || [];
235
235
  }
236
236
  async generateThreats(diagramId, options = {}) {
237
- await this.client.request('POST', `/v2/threat-modeling/diagrams/${diagramId}/generate-threats/`);
237
+ await this.client.request('POST', `/v2/threat-modeling/diagrams/${diagramId}/analyze-threats/`);
238
238
  if (options.waitForCompletion !== false) {
239
239
  const timeout = options.timeout || 120000;
240
240
  const start = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayurak/aribot-cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "type": "module",
5
5
  "description": "Aribot - Economic, Regulatory & Security APIs for Modern Applications. Advanced multi-framework threat modeling (STRIDE, PASTA, NIST, Aristiun), 100+ compliance standards, Cloud Security, FinOps, and Red Team automation.",
6
6
  "main": "dist/index.js",
package/src/cli.ts CHANGED
@@ -457,7 +457,7 @@ program
457
457
  // Resolve short UUID to full UUID
458
458
  const fullId = await resolveDiagramId(diagramId);
459
459
 
460
- await apiRequest(`/v2/threat-modeling/diagrams/${fullId}/generate-threats/`, {
460
+ await apiRequest(`/v2/threat-modeling/diagrams/${fullId}/analyze-threats/`, {
461
461
  method: 'POST'
462
462
  });
463
463
 
package/src/sdk.ts CHANGED
@@ -356,7 +356,7 @@ class ThreatModelingResource {
356
356
  diagramId: string,
357
357
  options: { waitForCompletion?: boolean; timeout?: number } = {}
358
358
  ): Promise<Diagram> {
359
- await this.client.request('POST', `/v2/threat-modeling/diagrams/${diagramId}/generate-threats/`);
359
+ await this.client.request('POST', `/v2/threat-modeling/diagrams/${diagramId}/analyze-threats/`);
360
360
 
361
361
  if (options.waitForCompletion !== false) {
362
362
  const timeout = options.timeout || 120000;