novyx 2.6.0 → 2.6.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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -10
- package/dist/index.mjs +8 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -208,7 +208,7 @@ declare class Novyx {
|
|
|
208
208
|
auditExport(format?: string): Promise<Response>;
|
|
209
209
|
auditVerify(): Promise<Record<string, any>>;
|
|
210
210
|
traceCreate(agentId: string, sessionId?: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
|
|
211
|
-
traceStep(traceId: string, stepType: string,
|
|
211
|
+
traceStep(traceId: string, stepType: string, content: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
|
|
212
212
|
traceComplete(traceId: string): Promise<Record<string, any>>;
|
|
213
213
|
traceVerify(traceId: string): Promise<Record<string, any>>;
|
|
214
214
|
usage(): Promise<Record<string, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ declare class Novyx {
|
|
|
208
208
|
auditExport(format?: string): Promise<Response>;
|
|
209
209
|
auditVerify(): Promise<Record<string, any>>;
|
|
210
210
|
traceCreate(agentId: string, sessionId?: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
|
|
211
|
-
traceStep(traceId: string, stepType: string,
|
|
211
|
+
traceStep(traceId: string, stepType: string, content: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
|
|
212
212
|
traceComplete(traceId: string): Promise<Record<string, any>>;
|
|
213
213
|
traceVerify(traceId: string): Promise<Record<string, any>>;
|
|
214
214
|
usage(): Promise<Record<string, any>>;
|
package/dist/index.js
CHANGED
|
@@ -369,21 +369,19 @@ var Novyx = class {
|
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
async traceStep(traceId, stepType,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
});
|
|
372
|
+
async traceStep(traceId, stepType, content, metadata) {
|
|
373
|
+
const body = {
|
|
374
|
+
type: stepType,
|
|
375
|
+
content
|
|
376
|
+
};
|
|
377
|
+
if (metadata) body.metadata = metadata;
|
|
378
|
+
return this._request("POST", `/v1/traces/${traceId}/steps`, { body });
|
|
381
379
|
}
|
|
382
380
|
async traceComplete(traceId) {
|
|
383
381
|
return this._request("POST", `/v1/traces/${traceId}/complete`);
|
|
384
382
|
}
|
|
385
383
|
async traceVerify(traceId) {
|
|
386
|
-
return this._request("
|
|
384
|
+
return this._request("POST", `/v1/traces/${traceId}/verify`);
|
|
387
385
|
}
|
|
388
386
|
// ========================================================================
|
|
389
387
|
// Usage & Plans
|
package/dist/index.mjs
CHANGED
|
@@ -336,21 +336,19 @@ var Novyx = class {
|
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
async traceStep(traceId, stepType,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
347
|
-
});
|
|
339
|
+
async traceStep(traceId, stepType, content, metadata) {
|
|
340
|
+
const body = {
|
|
341
|
+
type: stepType,
|
|
342
|
+
content
|
|
343
|
+
};
|
|
344
|
+
if (metadata) body.metadata = metadata;
|
|
345
|
+
return this._request("POST", `/v1/traces/${traceId}/steps`, { body });
|
|
348
346
|
}
|
|
349
347
|
async traceComplete(traceId) {
|
|
350
348
|
return this._request("POST", `/v1/traces/${traceId}/complete`);
|
|
351
349
|
}
|
|
352
350
|
async traceVerify(traceId) {
|
|
353
|
-
return this._request("
|
|
351
|
+
return this._request("POST", `/v1/traces/${traceId}/verify`);
|
|
354
352
|
}
|
|
355
353
|
// ========================================================================
|
|
356
354
|
// Usage & Plans
|