@ayurak/aribot-cli 1.3.2 → 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/sdk.js +1 -1
- package/package.json +1 -1
- package/src/sdk.ts +1 -1
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}/
|
|
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.
|
|
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/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}/
|
|
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;
|