@tryvira/sdk 0.1.99 → 0.1.101
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 +1 -1
- package/dist/sdks/js-client.d.ts +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Compound execution plans can be persisted with `saveCompoundTaskPlan(plan, {idem
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install @tryvira/sdk@0.1.
|
|
18
|
+
npm install @tryvira/sdk@0.1.101
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Configure the organization, project, and environment for every request. Keep the API
|
package/dist/sdks/js-client.d.ts
CHANGED
|
@@ -454,7 +454,18 @@ export interface TaskRunChildEvidence {
|
|
|
454
454
|
}>;
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
+
export type TaskRunCommercialUsagePreview = Readonly<{
|
|
458
|
+
status: "SHADOW_NOT_BILLABLE";
|
|
459
|
+
unit: "task_run";
|
|
460
|
+
quantity: 1;
|
|
461
|
+
admittedAt: string;
|
|
462
|
+
source: "first-admitted-root-event";
|
|
463
|
+
}> | Readonly<{
|
|
464
|
+
status: "SHADOW_UNAVAILABLE";
|
|
465
|
+
}>;
|
|
457
466
|
export interface TaskRunEvidence {
|
|
467
|
+
/** Optional measurement only. Not an invoice, quota decision or execution permission. */
|
|
468
|
+
commercialUsagePreview?: TaskRunCommercialUsagePreview;
|
|
458
469
|
taskRunId: string;
|
|
459
470
|
mode: TaskRunMode;
|
|
460
471
|
status: string;
|
|
@@ -735,7 +746,7 @@ export interface AICreditReservationResult {
|
|
|
735
746
|
reservation: AICreditReservationRecord;
|
|
736
747
|
source: "atomic-ai-credit-admission";
|
|
737
748
|
}
|
|
738
|
-
export type AICreditBudgetScope = "organization" | "organization_unit" | "project" | "ai_system";
|
|
749
|
+
export type AICreditBudgetScope = "organization" | "organization_unit" | "project" | "ai_system" | "usage_feature";
|
|
739
750
|
export interface AICreditBudget {
|
|
740
751
|
id: string;
|
|
741
752
|
organizationId: string;
|