@soat/sdk 0.35.0 → 0.37.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 +6 -4
- package/dist/index.d.cts +88 -44
- package/dist/index.d.mts +88 -44
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1044,7 +1044,7 @@ var AiProviders = class {
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* Upsert per-provider price overrides
|
|
1046
1046
|
*
|
|
1047
|
-
* Upserts price overrides for this AI provider instance, keyed on (model, effective_from). The provider slug is taken from the AI provider itself, so only the model, rates, and effective_from are supplied. Authorized by the caller's access to the provider's project. `effective_from` must be in the future — past prices are immutable, so ship
|
|
1047
|
+
* Upserts price overrides for this AI provider instance, keyed on (model, effective_from). The provider slug is taken from the AI provider itself, so only the model, rates, and effective_from are supplied. Authorized by the caller's access to the provider's project. `effective_from` must be in the future once the (model, component) has a price row — past prices are immutable, so corrections ship as new future-dated rows. A first price for a (model, component) nothing prices yet may be dated now or earlier, so a new provider is never live and unpriced.
|
|
1048
1048
|
*
|
|
1049
1049
|
*/
|
|
1050
1050
|
static updateAiProviderPrices(options) {
|
|
@@ -2317,6 +2317,8 @@ var Formations = class {
|
|
|
2317
2317
|
*
|
|
2318
2318
|
* A **template-shape** error is refused with `400`. A **deploy** failure is not: the operation ran, so the formation is returned with `200` and `status: "failed"`, and `error` explains why. Read `status` — a `2xx` here means the deploy was attempted, not that it worked. The `builtin` CLI exits non-zero on that body so `update-formation && …` does not lie.
|
|
2319
2319
|
*
|
|
2320
|
+
* A deploy that replaced a resource and could not delete the superseded one answers `status: "active"` with `error.code: "FORMATION_REPLACE_CLEANUP_FAILED"` — the desired state is realised, and `error.meta.failures` names every resource still live. The next deploy retries the disposal.
|
|
2321
|
+
*
|
|
2320
2322
|
*/
|
|
2321
2323
|
static updateFormation(options) {
|
|
2322
2324
|
return (options.client ?? client).put({
|
|
@@ -3162,7 +3164,7 @@ var Projects = class {
|
|
|
3162
3164
|
/**
|
|
3163
3165
|
* Update a project
|
|
3164
3166
|
*
|
|
3165
|
-
* Updates a project's name, its attached guardrails (`guardrail_ids` — the project-scope baseline governing every tool call by every agent in the project), its orchestration concurrency limit (`max_concurrent_runs`), its continuation-chain ceiling (`max_chain_generations`), its inherited model route (`default_model_route_id`), its read-auditing opt-in (`audit_reads_enabled`), its trace-content retention window (`trace_content_retention_days`), and/or its zero-retention setting (`trace_content_mode`). At least one field is required. Requires admin role. Detaching a guardrail (removing an id) additionally requires guardrails:DetachGuardrail.
|
|
3167
|
+
* Updates a project's name, its attached guardrails (`guardrail_ids` — the project-scope baseline governing every tool call by every agent in the project), its orchestration concurrency limit (`max_concurrent_runs`), its continuation-chain ceiling (`max_chain_generations`), its orchestration nesting bound (`max_run_depth`), its inherited model route (`default_model_route_id`), its read-auditing opt-in (`audit_reads_enabled`), its trace-content retention window (`trace_content_retention_days`), and/or its zero-retention setting (`trace_content_mode`). At least one field is required. Requires admin role. Detaching a guardrail (removing an id) additionally requires guardrails:DetachGuardrail.
|
|
3166
3168
|
*/
|
|
3167
3169
|
static updateProject(options) {
|
|
3168
3170
|
return (options.client ?? client).patch({
|
|
@@ -3189,7 +3191,7 @@ var Projects = class {
|
|
|
3189
3191
|
/**
|
|
3190
3192
|
* Upsert a project's price rows
|
|
3191
3193
|
*
|
|
3192
|
-
* Upserts project + provider-slug price rows, keyed on (provider, model, effective_from). A row covers all of the project's instances of that provider slug. Authorized by the caller's access to the project. `effective_from` must be in the future — past prices are immutable, so ship
|
|
3194
|
+
* Upserts project + provider-slug price rows, keyed on (provider, model, effective_from). A row covers all of the project's instances of that provider slug. Authorized by the caller's access to the project. `effective_from` must be in the future once the (provider, model, component) is priced — past prices are immutable, so corrections ship as new future-dated rows. A first price, with no row for the project or the global default, may be dated now or earlier.
|
|
3193
3195
|
*
|
|
3194
3196
|
*/
|
|
3195
3197
|
static updateProjectPrices(options) {
|
|
@@ -3963,7 +3965,7 @@ var Usage = class {
|
|
|
3963
3965
|
/**
|
|
3964
3966
|
* Upsert price-book rows
|
|
3965
3967
|
*
|
|
3966
|
-
* Upserts price rows keyed on (provider, model, effective_from). Admin only. `effective_from` must be in the future — past prices are immutable so recorded costs stay explainable; ship corrections as new future-dated rows.
|
|
3968
|
+
* Upserts price rows keyed on (provider, model, effective_from). Admin only. `effective_from` must be in the future once the (provider, model, component) is priced — past prices are immutable so recorded costs stay explainable; ship corrections as new future-dated rows. A first price, with no row in this scope or any broader one, may be dated now or earlier.
|
|
3967
3969
|
*
|
|
3968
3970
|
*/
|
|
3969
3971
|
static upsertPriceBook(options) {
|