@soat/sdk 0.15.11 → 0.15.12
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.cjs +158 -0
- package/dist/index.d.cts +830 -23
- package/dist/index.d.mts +830 -23
- package/dist/index.mjs +156 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1063,6 +1063,30 @@ var Approvals = class {
|
|
|
1063
1063
|
});
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
|
+
var AuditLog = class {
|
|
1067
|
+
/**
|
|
1068
|
+
* List audit entries
|
|
1069
|
+
*
|
|
1070
|
+
* Returns audit-log entries visible to the caller, newest first. All filters are optional and combine with AND. `resource_srn` is a prefix match (e.g. `soat:{project}:secret:` matches every secret action); every other filter is exact.
|
|
1071
|
+
*/
|
|
1072
|
+
static listAuditEntries(options) {
|
|
1073
|
+
return (options?.client ?? client).get({
|
|
1074
|
+
url: "/api/v1/audit-log",
|
|
1075
|
+
...options
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Get an audit entry
|
|
1080
|
+
*
|
|
1081
|
+
* Returns a single audit-log entry, including its `detail` payload
|
|
1082
|
+
*/
|
|
1083
|
+
static getAuditEntry(options) {
|
|
1084
|
+
return (options.client ?? client).get({
|
|
1085
|
+
url: "/api/v1/audit-log/{entry_id}",
|
|
1086
|
+
...options
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
};
|
|
1066
1090
|
var Chats = class {
|
|
1067
1091
|
/**
|
|
1068
1092
|
* List chats
|
|
@@ -1618,6 +1642,56 @@ var Embeddings = class {
|
|
|
1618
1642
|
});
|
|
1619
1643
|
}
|
|
1620
1644
|
};
|
|
1645
|
+
var Exceptions = class {
|
|
1646
|
+
/**
|
|
1647
|
+
* List exception items
|
|
1648
|
+
*
|
|
1649
|
+
* Returns exception items for a project, filterable by status, severity, and kind.
|
|
1650
|
+
*/
|
|
1651
|
+
static listExceptions(options) {
|
|
1652
|
+
return (options?.client ?? client).get({
|
|
1653
|
+
url: "/api/v1/exceptions",
|
|
1654
|
+
...options
|
|
1655
|
+
});
|
|
1656
|
+
}
|
|
1657
|
+
/**
|
|
1658
|
+
* Get an exception item
|
|
1659
|
+
*
|
|
1660
|
+
* Returns a single exception item with its full detail.
|
|
1661
|
+
*/
|
|
1662
|
+
static getException(options) {
|
|
1663
|
+
return (options.client ?? client).get({
|
|
1664
|
+
url: "/api/v1/exceptions/{exception_id}",
|
|
1665
|
+
...options
|
|
1666
|
+
});
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Acknowledge an exception item
|
|
1670
|
+
*
|
|
1671
|
+
* Moves the item to `acknowledged` ("someone is on it"), recording who. A no-op that returns the item unchanged when already acknowledged; rejected when already resolved.
|
|
1672
|
+
*/
|
|
1673
|
+
static acknowledgeException(options) {
|
|
1674
|
+
return (options.client ?? client).post({
|
|
1675
|
+
url: "/api/v1/exceptions/{exception_id}/acknowledge",
|
|
1676
|
+
...options
|
|
1677
|
+
});
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Resolve an exception item
|
|
1681
|
+
*
|
|
1682
|
+
* Moves the item to `resolved` ("fixed"), recording who and an optional note.
|
|
1683
|
+
*/
|
|
1684
|
+
static resolveException(options) {
|
|
1685
|
+
return (options.client ?? client).post({
|
|
1686
|
+
url: "/api/v1/exceptions/{exception_id}/resolve",
|
|
1687
|
+
...options,
|
|
1688
|
+
headers: {
|
|
1689
|
+
"Content-Type": "application/json",
|
|
1690
|
+
...options.headers
|
|
1691
|
+
}
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1621
1695
|
var Files = class {
|
|
1622
1696
|
/**
|
|
1623
1697
|
* List all files
|
|
@@ -2312,6 +2386,22 @@ var Orchestrations = class {
|
|
|
2312
2386
|
});
|
|
2313
2387
|
}
|
|
2314
2388
|
/**
|
|
2389
|
+
* Get orchestration queue stats
|
|
2390
|
+
*
|
|
2391
|
+
* Returns a point-in-time snapshot of the orchestration run queue: how many tasks are waiting to be claimed (`queue_depth`), how many are currently claimed with a valid lease (`claimed_tasks`), the age of the oldest waiting task, recent claim-latency percentiles over a rolling in-process window, and a per-project breakdown. Intended for admin/operator policies; guarded by `orchestrations:GetQueueStats`. A project-scoped caller sees only their own projects under `per_project`.
|
|
2392
|
+
*
|
|
2393
|
+
*/
|
|
2394
|
+
static getQueueStats(options) {
|
|
2395
|
+
return (options?.client ?? client).get({
|
|
2396
|
+
security: [{
|
|
2397
|
+
scheme: "bearer",
|
|
2398
|
+
type: "http"
|
|
2399
|
+
}],
|
|
2400
|
+
url: "/api/v1/orchestrations/queue/stats",
|
|
2401
|
+
...options
|
|
2402
|
+
});
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2315
2405
|
* Delete an orchestration
|
|
2316
2406
|
*
|
|
2317
2407
|
* Deletes an orchestration definition and all its runs.
|
|
@@ -2588,6 +2678,71 @@ var Projects = class {
|
|
|
2588
2678
|
});
|
|
2589
2679
|
}
|
|
2590
2680
|
};
|
|
2681
|
+
var Quotas = class {
|
|
2682
|
+
/**
|
|
2683
|
+
* List quotas
|
|
2684
|
+
*
|
|
2685
|
+
* Returns the quotas defined in a project
|
|
2686
|
+
*/
|
|
2687
|
+
static listQuotas(options) {
|
|
2688
|
+
return (options?.client ?? client).get({
|
|
2689
|
+
url: "/api/v1/quotas",
|
|
2690
|
+
...options
|
|
2691
|
+
});
|
|
2692
|
+
}
|
|
2693
|
+
/**
|
|
2694
|
+
* Create a quota
|
|
2695
|
+
*
|
|
2696
|
+
* Creates a project-scoped quota. `scope: agent` with `metric: requests` and `scope: api_key` with `metric: tokens`/`cost_usd` are both rejected with 400 (no attribution exists to enforce them). A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
2697
|
+
*/
|
|
2698
|
+
static createQuota(options) {
|
|
2699
|
+
return (options.client ?? client).post({
|
|
2700
|
+
url: "/api/v1/quotas",
|
|
2701
|
+
...options,
|
|
2702
|
+
headers: {
|
|
2703
|
+
"Content-Type": "application/json",
|
|
2704
|
+
...options.headers
|
|
2705
|
+
}
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
/**
|
|
2709
|
+
* Delete a quota
|
|
2710
|
+
*
|
|
2711
|
+
* Deletes a quota and drops its window counters
|
|
2712
|
+
*/
|
|
2713
|
+
static deleteQuota(options) {
|
|
2714
|
+
return (options.client ?? client).delete({
|
|
2715
|
+
url: "/api/v1/quotas/{quota_id}",
|
|
2716
|
+
...options
|
|
2717
|
+
});
|
|
2718
|
+
}
|
|
2719
|
+
/**
|
|
2720
|
+
* Get a quota
|
|
2721
|
+
*
|
|
2722
|
+
* Returns a specific quota, including current window usage
|
|
2723
|
+
*/
|
|
2724
|
+
static getQuota(options) {
|
|
2725
|
+
return (options.client ?? client).get({
|
|
2726
|
+
url: "/api/v1/quotas/{quota_id}",
|
|
2727
|
+
...options
|
|
2728
|
+
});
|
|
2729
|
+
}
|
|
2730
|
+
/**
|
|
2731
|
+
* Update a quota
|
|
2732
|
+
*
|
|
2733
|
+
* Updates a quota's limit and/or mode. Other fields are immutable.
|
|
2734
|
+
*/
|
|
2735
|
+
static updateQuota(options) {
|
|
2736
|
+
return (options.client ?? client).patch({
|
|
2737
|
+
url: "/api/v1/quotas/{quota_id}",
|
|
2738
|
+
...options,
|
|
2739
|
+
headers: {
|
|
2740
|
+
"Content-Type": "application/json",
|
|
2741
|
+
...options.headers
|
|
2742
|
+
}
|
|
2743
|
+
});
|
|
2744
|
+
}
|
|
2745
|
+
};
|
|
2591
2746
|
var Secrets = class {
|
|
2592
2747
|
/**
|
|
2593
2748
|
* List secrets
|
|
@@ -3636,11 +3791,13 @@ exports.Agents = Agents;
|
|
|
3636
3791
|
exports.AiProviders = AiProviders;
|
|
3637
3792
|
exports.ApiKeys = ApiKeys;
|
|
3638
3793
|
exports.Approvals = Approvals;
|
|
3794
|
+
exports.AuditLog = AuditLog;
|
|
3639
3795
|
exports.Chats = Chats;
|
|
3640
3796
|
exports.Conversations = Conversations;
|
|
3641
3797
|
exports.Discussions = Discussions;
|
|
3642
3798
|
exports.Documents = Documents;
|
|
3643
3799
|
exports.Embeddings = Embeddings;
|
|
3800
|
+
exports.Exceptions = Exceptions;
|
|
3644
3801
|
exports.Files = Files;
|
|
3645
3802
|
exports.Formations = Formations;
|
|
3646
3803
|
exports.Generations = Generations;
|
|
@@ -3652,6 +3809,7 @@ exports.MemoryEntries = MemoryEntries;
|
|
|
3652
3809
|
exports.Orchestrations = Orchestrations;
|
|
3653
3810
|
exports.Policies = Policies;
|
|
3654
3811
|
exports.Projects = Projects;
|
|
3812
|
+
exports.Quotas = Quotas;
|
|
3655
3813
|
exports.Secrets = Secrets;
|
|
3656
3814
|
exports.Sessions = Sessions;
|
|
3657
3815
|
exports.SoatClient = SoatClient;
|