@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.mjs
CHANGED
|
@@ -1043,7 +1043,7 @@ var AiProviders = class {
|
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Upsert per-provider price overrides
|
|
1045
1045
|
*
|
|
1046
|
-
* 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
|
|
1046
|
+
* 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.
|
|
1047
1047
|
*
|
|
1048
1048
|
*/
|
|
1049
1049
|
static updateAiProviderPrices(options) {
|
|
@@ -2316,6 +2316,8 @@ var Formations = class {
|
|
|
2316
2316
|
*
|
|
2317
2317
|
* 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.
|
|
2318
2318
|
*
|
|
2319
|
+
* 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.
|
|
2320
|
+
*
|
|
2319
2321
|
*/
|
|
2320
2322
|
static updateFormation(options) {
|
|
2321
2323
|
return (options.client ?? client).put({
|
|
@@ -3161,7 +3163,7 @@ var Projects = class {
|
|
|
3161
3163
|
/**
|
|
3162
3164
|
* Update a project
|
|
3163
3165
|
*
|
|
3164
|
-
* 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.
|
|
3166
|
+
* 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.
|
|
3165
3167
|
*/
|
|
3166
3168
|
static updateProject(options) {
|
|
3167
3169
|
return (options.client ?? client).patch({
|
|
@@ -3188,7 +3190,7 @@ var Projects = class {
|
|
|
3188
3190
|
/**
|
|
3189
3191
|
* Upsert a project's price rows
|
|
3190
3192
|
*
|
|
3191
|
-
* 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
|
|
3193
|
+
* 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.
|
|
3192
3194
|
*
|
|
3193
3195
|
*/
|
|
3194
3196
|
static updateProjectPrices(options) {
|
|
@@ -3962,7 +3964,7 @@ var Usage = class {
|
|
|
3962
3964
|
/**
|
|
3963
3965
|
* Upsert price-book rows
|
|
3964
3966
|
*
|
|
3965
|
-
* 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.
|
|
3967
|
+
* 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.
|
|
3966
3968
|
*
|
|
3967
3969
|
*/
|
|
3968
3970
|
static upsertPriceBook(options) {
|