@soat/sdk 0.73.1 → 0.74.0
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 +43 -3
- package/dist/index.d.cts +392 -163
- package/dist/index.d.mts +392 -163
- package/dist/index.mjs +43 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1038,6 +1038,7 @@ var AiProviders = class {
|
|
|
1038
1038
|
* Listing resolves credentials the same way generation does, so a record that can generate can list. The API-key types (`openai`, `groq`, `xai`, `gateway`, `custom`, `anthropic`, `google`) use the record's linked secret and cannot list without one. `bedrock` and `vertex` use the linked secret — IAM keys or a Bedrock API key, a Google service-account key. A record with no `secret_id` would fall back to the server's own credentials (the AWS default credential chain, Google Application Default Credentials); it can list only on a deployment that allows a record to use them, and returns `400 AI_PROVIDER_MISCONFIGURED` otherwise.
|
|
1039
1039
|
* A Vertex record needs no `config.project` when its secret is a service-account key, since the key file names its own project. A Vertex record in express mode (API key) cannot list at all: the publisher-model listing rejects API keys and needs a credential that asserts a principal, so it returns `400 MODEL_LISTING_UNSUPPORTED`.
|
|
1040
1040
|
* The Vertex answer is the publisher catalogue the record's `config.location` region serves. The project behind the credential is billed and quota'd for the call but does not filter the result, so a listed model may still be unavailable to that project at generation time.
|
|
1041
|
+
* The provider answers its whole catalogue in one call; `q`, `limit` and `offset` narrow and page what it returned. A request without `limit` gets the first 50 models.
|
|
1041
1042
|
*
|
|
1042
1043
|
*/
|
|
1043
1044
|
static listAiProviderModels(options) {
|
|
@@ -2707,6 +2708,18 @@ var Generations = class {
|
|
|
2707
2708
|
});
|
|
2708
2709
|
}
|
|
2709
2710
|
/**
|
|
2711
|
+
* List the memory writes a generation made
|
|
2712
|
+
*
|
|
2713
|
+
* Every memory write this turn made, oldest first: each memory rule's firings and the agent's own `write_memory` calls alike. The rows behind the generation's per-rule `extraction` counts. Reading them is reading the generation (`generations:GetGeneration`).
|
|
2714
|
+
*
|
|
2715
|
+
*/
|
|
2716
|
+
static listGenerationMemoryAssertions(options) {
|
|
2717
|
+
return (options.client ?? client).get({
|
|
2718
|
+
url: "/api/v1/generations/{generation_id}/memory-assertions",
|
|
2719
|
+
...options
|
|
2720
|
+
});
|
|
2721
|
+
}
|
|
2722
|
+
/**
|
|
2710
2723
|
* Get a generation's transcript
|
|
2711
2724
|
*
|
|
2712
2725
|
* Returns one generation's turn read back as an ordered sequence of steps: what it was asked, each model step with its tool calls and results, and how it ended.
|
|
@@ -3457,8 +3470,8 @@ var Orchestrations = class {
|
|
|
3457
3470
|
/**
|
|
3458
3471
|
* Get orchestration queue stats
|
|
3459
3472
|
*
|
|
3460
|
-
* 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
|
|
3461
|
-
* Every figure is scoped to what the caller may see. A project-scoped caller gets `
|
|
3473
|
+
* 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. The per-project breakdown is listed by `GET /api/v1/orchestrations/queue/stats/projects`. Intended for admin/operator policies; guarded by `orchestrations:GetQueueStats`.
|
|
3474
|
+
* Every figure is scoped to what the caller may see. A project-scoped caller gets `queue_depth` and `claimed_tasks` summed over their own projects, and `null` for `oldest_queued_age_seconds` and the `claim_latency_ms` percentiles — both describe the whole deployment and cannot be narrowed, so they are withheld rather than approximated. An unrestricted caller (the action granted on every project) gets the deployment-wide figures.
|
|
3462
3475
|
*
|
|
3463
3476
|
*/
|
|
3464
3477
|
static getQueueStats(options) {
|
|
@@ -3472,6 +3485,22 @@ var Orchestrations = class {
|
|
|
3472
3485
|
});
|
|
3473
3486
|
}
|
|
3474
3487
|
/**
|
|
3488
|
+
* List the projects with queued orchestration work
|
|
3489
|
+
*
|
|
3490
|
+
* One row per project with any queued or claimed task, ordered by project ID: the per-project breakdown of `GET /api/v1/orchestrations/queue/stats`. A project-scoped caller sees its own projects only. Guarded by `orchestrations:GetQueueStats`.
|
|
3491
|
+
*
|
|
3492
|
+
*/
|
|
3493
|
+
static listQueueStatsProjects(options) {
|
|
3494
|
+
return (options?.client ?? client).get({
|
|
3495
|
+
security: [{
|
|
3496
|
+
scheme: "bearer",
|
|
3497
|
+
type: "http"
|
|
3498
|
+
}],
|
|
3499
|
+
url: "/api/v1/orchestrations/queue/stats/projects",
|
|
3500
|
+
...options
|
|
3501
|
+
});
|
|
3502
|
+
}
|
|
3503
|
+
/**
|
|
3475
3504
|
* Delete an orchestration
|
|
3476
3505
|
*
|
|
3477
3506
|
* Deletes an orchestration definition and all its runs.
|
|
@@ -3645,6 +3674,17 @@ var Orchestrations = class {
|
|
|
3645
3674
|
...options
|
|
3646
3675
|
});
|
|
3647
3676
|
}
|
|
3677
|
+
/**
|
|
3678
|
+
* List a run's node executions
|
|
3679
|
+
*
|
|
3680
|
+
* The run's per-node execution records, oldest first: one per node attempt, retries and skipped nodes included. Each captures the resolved input, output, status and error of that attempt — the orchestration analogue of an LLM trace. Reading them is reading the run (`orchestrations:GetRun`).
|
|
3681
|
+
*/
|
|
3682
|
+
static listOrchestrationRunNodeExecutions(options) {
|
|
3683
|
+
return (options.client ?? client).get({
|
|
3684
|
+
url: "/api/v1/orchestration-runs/{orchestration_run_id}/node-executions",
|
|
3685
|
+
...options
|
|
3686
|
+
});
|
|
3687
|
+
}
|
|
3648
3688
|
};
|
|
3649
3689
|
var Policies = class {
|
|
3650
3690
|
/**
|
|
@@ -4556,7 +4596,7 @@ var Traces = class {
|
|
|
4556
4596
|
/**
|
|
4557
4597
|
* Get trace tree
|
|
4558
4598
|
*
|
|
4559
|
-
* Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace.
|
|
4599
|
+
* Returns the full execution tree rooted at the given trace (or its root if the given trace is a child). Each node represents one agent's execution session. The `children` array contains traces triggered by sub-agent tool calls from that trace. A node's generations are listed by `GET /api/v1/generations?trace_id=`, and a node's direct children page by `GET /api/v1/traces?parent_trace_id=`.
|
|
4560
4600
|
*
|
|
4561
4601
|
*/
|
|
4562
4602
|
static getTraceTree(options) {
|