@soat/sdk 0.18.6 → 0.19.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 +1 -1
- package/dist/index.d.cts +58 -19
- package/dist/index.d.mts +58 -19
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2849,7 +2849,7 @@ var Projects = class {
|
|
|
2849
2849
|
/**
|
|
2850
2850
|
* Update a project
|
|
2851
2851
|
*
|
|
2852
|
-
* 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 inherited model route (`default_model_route_id`),
|
|
2852
|
+
* 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 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.
|
|
2853
2853
|
*/
|
|
2854
2854
|
static updateProject(options) {
|
|
2855
2855
|
return (options.client ?? client).patch({
|
package/dist/index.d.cts
CHANGED
|
@@ -538,6 +538,10 @@ type Agent = {
|
|
|
538
538
|
* When true, only one open session per actor_id is allowed for this agent. Creating a second open session for the same actor returns 409.
|
|
539
539
|
*/
|
|
540
540
|
single_session_per_actor?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Agent-scope zero-retention setting. `null` (the default) inherits the project's `trace_content_mode`; `none` means this agent's trace and generation content is never persisted. An agent may tighten a storing project to `none` but cannot loosen a `none` project back to `full`.
|
|
543
|
+
*/
|
|
544
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
541
545
|
/**
|
|
542
546
|
* Current config version. Starts at 1 and increments on every write that changes the config; each increment archives the new config as an `AgentVersion`. A write that changes nothing leaves it untouched.
|
|
543
547
|
*/
|
|
@@ -732,6 +736,10 @@ type CreateAgentRequest = {
|
|
|
732
736
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
733
737
|
*/
|
|
734
738
|
single_session_per_actor?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Zero-retention opt-in for this agent. `null` inherits the project's setting; `none` means trace and generation content is never written. Setting `full` under a project whose own mode is `none` is refused with 400 — the project is a floor an agent may only tighten.
|
|
741
|
+
*/
|
|
742
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
735
743
|
/**
|
|
736
744
|
* Optional tag for the config version this write archives (e.g. `initial`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change.
|
|
737
745
|
*/
|
|
@@ -832,6 +840,10 @@ type UpdateAgentRequest = {
|
|
|
832
840
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
833
841
|
*/
|
|
834
842
|
single_session_per_actor?: boolean | null;
|
|
843
|
+
/**
|
|
844
|
+
* Zero-retention opt-in for this agent. `null` inherits the project's setting; `none` means trace and generation content is never written. Setting `full` under a project whose own mode is `none` is refused with 400.
|
|
845
|
+
*/
|
|
846
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
835
847
|
/**
|
|
836
848
|
* Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.
|
|
837
849
|
*/
|
|
@@ -1242,7 +1254,7 @@ type AuditEntry = {
|
|
|
1242
1254
|
/**
|
|
1243
1255
|
* Principal kind; null for platform-originated entries (those are identified by their `action`, e.g. `quotas:MonitorBreach`)
|
|
1244
1256
|
*/
|
|
1245
|
-
principal_type?: 'user' | 'api_key';
|
|
1257
|
+
principal_type?: 'user' | 'api_key' | null;
|
|
1246
1258
|
/**
|
|
1247
1259
|
* Public id of the principal (`user_…` or `key_…`); null for platform-originated entries
|
|
1248
1260
|
*/
|
|
@@ -1548,7 +1560,7 @@ type ParticipantInput = {
|
|
|
1548
1560
|
/**
|
|
1549
1561
|
* Provider-native reasoning effort for this participant's turns.
|
|
1550
1562
|
*/
|
|
1551
|
-
effort?: 'low' | 'medium' | 'high';
|
|
1563
|
+
effort?: 'low' | 'medium' | 'high' | null;
|
|
1552
1564
|
};
|
|
1553
1565
|
type ParticipantRecord = {
|
|
1554
1566
|
id?: string;
|
|
@@ -1593,13 +1605,14 @@ type DiscussionRunRecord = {
|
|
|
1593
1605
|
outcome?: string | null;
|
|
1594
1606
|
conversation_id?: string | null;
|
|
1595
1607
|
outcome_document_id?: string | null;
|
|
1596
|
-
started_by?: {
|
|
1597
|
-
[key: string]: unknown;
|
|
1598
|
-
} | null;
|
|
1599
1608
|
/**
|
|
1600
|
-
*
|
|
1609
|
+
* Type of the principal that invoked the run. Read-only: derived from the authenticated caller, never accepted from a request body.
|
|
1601
1610
|
*/
|
|
1602
|
-
|
|
1611
|
+
started_by_principal_type?: 'user' | 'api_key' | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* Public id of the principal that invoked the run — the API key's own id (`key_…`) when a key was used, otherwise the user's (`user_…`). Read-only, like `started_by_principal_type`.
|
|
1614
|
+
*/
|
|
1615
|
+
started_by_principal_id?: string | null;
|
|
1603
1616
|
completed_at?: Date | null;
|
|
1604
1617
|
created_at?: Date;
|
|
1605
1618
|
updated_at?: Date;
|
|
@@ -1638,17 +1651,17 @@ type DocumentRecord = {
|
|
|
1638
1651
|
*/
|
|
1639
1652
|
content?: string | null;
|
|
1640
1653
|
/**
|
|
1641
|
-
* The chunk strategy the document was last (re-)ingested with.
|
|
1654
|
+
* The chunk strategy the document was last (re-)ingested with. Absent when the default (`whole`) was used — the mapper omits the key rather than sending `null`.
|
|
1642
1655
|
*/
|
|
1643
1656
|
chunk_strategy?: 'page' | 'whole' | 'size';
|
|
1644
1657
|
/**
|
|
1645
|
-
* Window size in characters used when `chunk_strategy=size`.
|
|
1658
|
+
* Window size in characters used when `chunk_strategy=size`. Absent otherwise.
|
|
1646
1659
|
*/
|
|
1647
|
-
chunk_size?: number
|
|
1660
|
+
chunk_size?: number;
|
|
1648
1661
|
/**
|
|
1649
|
-
* Overlap in characters between consecutive windows used when `chunk_strategy=size`.
|
|
1662
|
+
* Overlap in characters between consecutive windows used when `chunk_strategy=size`. Absent otherwise.
|
|
1650
1663
|
*/
|
|
1651
|
-
chunk_overlap?: number
|
|
1664
|
+
chunk_overlap?: number;
|
|
1652
1665
|
created_at?: Date;
|
|
1653
1666
|
updated_at?: Date;
|
|
1654
1667
|
};
|
|
@@ -2052,6 +2065,10 @@ type AgentResourceProperties = {
|
|
|
2052
2065
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
2053
2066
|
*/
|
|
2054
2067
|
single_session_per_actor?: boolean | null;
|
|
2068
|
+
/**
|
|
2069
|
+
* Agent-scope zero-retention setting (`full` or `none`). `null` inherits the project's setting. `full` is refused when the project's own mode is `none`.
|
|
2070
|
+
*/
|
|
2071
|
+
trace_content_mode?: string | null;
|
|
2055
2072
|
/**
|
|
2056
2073
|
* Knowledge retrieval configuration. When set, relevant documents and memory entries are injected into every generation.
|
|
2057
2074
|
*/
|
|
@@ -2853,7 +2870,7 @@ type GuardrailResourceProperties = {
|
|
|
2853
2870
|
/**
|
|
2854
2871
|
* How tool-fetched context combines with the caller-supplied context.
|
|
2855
2872
|
*/
|
|
2856
|
-
context_mode?: 'merge' | 'replace';
|
|
2873
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
2857
2874
|
};
|
|
2858
2875
|
type ResourceDeclaration = {
|
|
2859
2876
|
/**
|
|
@@ -2870,7 +2887,7 @@ type ResourceDeclaration = {
|
|
|
2870
2887
|
*/
|
|
2871
2888
|
depends_on?: Array<string> | null;
|
|
2872
2889
|
/**
|
|
2873
|
-
* Controls what happens to the physical resource when it is removed from the stack. `delete` (default) deletes the physical resource. `retain` keeps the physical resource alive and only removes the formation record.
|
|
2890
|
+
* Controls what happens to the physical resource when it is removed from the stack. `delete` (default) deletes the physical resource. `retain` keeps the physical resource alive and only removes the formation record. Omit it to get `delete`; an explicit `null` is rejected.
|
|
2874
2891
|
*
|
|
2875
2892
|
*/
|
|
2876
2893
|
deletion_policy?: 'delete' | 'retain';
|
|
@@ -3249,7 +3266,7 @@ type Guardrail = {
|
|
|
3249
3266
|
* How tool-fetched context combines with the caller-supplied context.
|
|
3250
3267
|
*
|
|
3251
3268
|
*/
|
|
3252
|
-
context_mode?: 'merge' | 'replace';
|
|
3269
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
3253
3270
|
created_at?: Date;
|
|
3254
3271
|
updated_at?: Date;
|
|
3255
3272
|
};
|
|
@@ -3322,7 +3339,7 @@ type UpdateGuardrailRequest = {
|
|
|
3322
3339
|
description?: string | null;
|
|
3323
3340
|
document?: GuardrailDocument;
|
|
3324
3341
|
context_tool_id?: string | null;
|
|
3325
|
-
context_mode?: 'merge' | 'replace';
|
|
3342
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
3326
3343
|
};
|
|
3327
3344
|
type IngestionRule = {
|
|
3328
3345
|
id?: string;
|
|
@@ -4047,6 +4064,14 @@ type ProjectRecord = {
|
|
|
4047
4064
|
* Whether `GET` requests naming this project are recorded in the audit log. `false` by default — v1 audits mutations only.
|
|
4048
4065
|
*/
|
|
4049
4066
|
audit_reads_enabled?: boolean;
|
|
4067
|
+
/**
|
|
4068
|
+
* Days of trace/generation content retention before the daily sweep purges it. `null` means retention is disabled (the default) and content is kept until purged on demand.
|
|
4069
|
+
*/
|
|
4070
|
+
trace_content_retention_days?: number | null;
|
|
4071
|
+
/**
|
|
4072
|
+
* Whether trace/generation content is persisted. `full` by default; `none` is zero-retention — content is never written for any agent in this project.
|
|
4073
|
+
*/
|
|
4074
|
+
trace_content_mode?: 'full' | 'none';
|
|
4050
4075
|
created_at?: Date;
|
|
4051
4076
|
updated_at?: Date;
|
|
4052
4077
|
};
|
|
@@ -4387,7 +4412,10 @@ type Task = {
|
|
|
4387
4412
|
active_dispatch?: {
|
|
4388
4413
|
[key: string]: unknown;
|
|
4389
4414
|
} | null;
|
|
4390
|
-
|
|
4415
|
+
/**
|
|
4416
|
+
* Status of the current state's dispatch. `null` until a state with an automation is entered.
|
|
4417
|
+
*/
|
|
4418
|
+
automation_status?: 'running' | 'completed' | 'failed' | 'unrouted' | null;
|
|
4391
4419
|
/**
|
|
4392
4420
|
* The name of a `requires_approval` transition parked awaiting a human decision. Non-null while an ApprovalItem gates the move; the task stays in its current state and no other transition may fire until the approval resolves.
|
|
4393
4421
|
*/
|
|
@@ -10475,7 +10503,10 @@ type UpdateIngestionRuleData = {
|
|
|
10475
10503
|
} | null;
|
|
10476
10504
|
native_extraction?: 'first' | 'skip';
|
|
10477
10505
|
file_delivery?: 'base64' | 'download_url';
|
|
10478
|
-
|
|
10506
|
+
/**
|
|
10507
|
+
* Send `null` to clear the rule's override and fall back to the per-request default.
|
|
10508
|
+
*/
|
|
10509
|
+
chunk_strategy?: 'page' | 'whole' | 'size' | null;
|
|
10479
10510
|
chunk_size?: number | null;
|
|
10480
10511
|
chunk_overlap?: number | null;
|
|
10481
10512
|
metadata?: {
|
|
@@ -12015,6 +12046,14 @@ type UpdateProjectData = {
|
|
|
12015
12046
|
* Opt the project into read auditing. When true, `GET` requests that name this project are recorded in the audit log alongside mutations. Defaults to `false`.
|
|
12016
12047
|
*/
|
|
12017
12048
|
audit_reads_enabled?: boolean;
|
|
12049
|
+
/**
|
|
12050
|
+
* How long trace and generation content is kept before the daily retention sweep content-purges it. `null` (the default) disables retention; otherwise an integer >= 1. The sweep uses the same purge path as `DELETE /traces/{trace_id}/content`, so the row survives as an auditable skeleton with `content_redacted_at` set.
|
|
12051
|
+
*/
|
|
12052
|
+
trace_content_retention_days?: number | null;
|
|
12053
|
+
/**
|
|
12054
|
+
* Whether trace and generation content is persisted at all. `full` (the default) stores it; `none` is zero-retention — content is never written, for every agent in the project. An agent may tighten this to `none` on its own but cannot loosen a `none` project back to `full`.
|
|
12055
|
+
*/
|
|
12056
|
+
trace_content_mode?: 'full' | 'none';
|
|
12018
12057
|
};
|
|
12019
12058
|
path: {
|
|
12020
12059
|
/**
|
|
@@ -15996,7 +16035,7 @@ declare class Projects {
|
|
|
15996
16035
|
/**
|
|
15997
16036
|
* Update a project
|
|
15998
16037
|
*
|
|
15999
|
-
* 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 inherited model route (`default_model_route_id`),
|
|
16038
|
+
* 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 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.
|
|
16000
16039
|
*/
|
|
16001
16040
|
static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>;
|
|
16002
16041
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -538,6 +538,10 @@ type Agent = {
|
|
|
538
538
|
* When true, only one open session per actor_id is allowed for this agent. Creating a second open session for the same actor returns 409.
|
|
539
539
|
*/
|
|
540
540
|
single_session_per_actor?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* Agent-scope zero-retention setting. `null` (the default) inherits the project's `trace_content_mode`; `none` means this agent's trace and generation content is never persisted. An agent may tighten a storing project to `none` but cannot loosen a `none` project back to `full`.
|
|
543
|
+
*/
|
|
544
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
541
545
|
/**
|
|
542
546
|
* Current config version. Starts at 1 and increments on every write that changes the config; each increment archives the new config as an `AgentVersion`. A write that changes nothing leaves it untouched.
|
|
543
547
|
*/
|
|
@@ -732,6 +736,10 @@ type CreateAgentRequest = {
|
|
|
732
736
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
733
737
|
*/
|
|
734
738
|
single_session_per_actor?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Zero-retention opt-in for this agent. `null` inherits the project's setting; `none` means trace and generation content is never written. Setting `full` under a project whose own mode is `none` is refused with 400 — the project is a floor an agent may only tighten.
|
|
741
|
+
*/
|
|
742
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
735
743
|
/**
|
|
736
744
|
* Optional tag for the config version this write archives (e.g. `initial`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change.
|
|
737
745
|
*/
|
|
@@ -832,6 +840,10 @@ type UpdateAgentRequest = {
|
|
|
832
840
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
833
841
|
*/
|
|
834
842
|
single_session_per_actor?: boolean | null;
|
|
843
|
+
/**
|
|
844
|
+
* Zero-retention opt-in for this agent. `null` inherits the project's setting; `none` means trace and generation content is never written. Setting `full` under a project whose own mode is `none` is refused with 400.
|
|
845
|
+
*/
|
|
846
|
+
trace_content_mode?: 'full' | 'none' | null;
|
|
835
847
|
/**
|
|
836
848
|
* Optional tag for the config version this write archives (e.g. `pre-tone-change`). Annotates the version only — it is not stored on the agent and is not part of the config, so labelling a change is never itself a change. Ignored when the write changes nothing, since no version is created.
|
|
837
849
|
*/
|
|
@@ -1242,7 +1254,7 @@ type AuditEntry = {
|
|
|
1242
1254
|
/**
|
|
1243
1255
|
* Principal kind; null for platform-originated entries (those are identified by their `action`, e.g. `quotas:MonitorBreach`)
|
|
1244
1256
|
*/
|
|
1245
|
-
principal_type?: 'user' | 'api_key';
|
|
1257
|
+
principal_type?: 'user' | 'api_key' | null;
|
|
1246
1258
|
/**
|
|
1247
1259
|
* Public id of the principal (`user_…` or `key_…`); null for platform-originated entries
|
|
1248
1260
|
*/
|
|
@@ -1548,7 +1560,7 @@ type ParticipantInput = {
|
|
|
1548
1560
|
/**
|
|
1549
1561
|
* Provider-native reasoning effort for this participant's turns.
|
|
1550
1562
|
*/
|
|
1551
|
-
effort?: 'low' | 'medium' | 'high';
|
|
1563
|
+
effort?: 'low' | 'medium' | 'high' | null;
|
|
1552
1564
|
};
|
|
1553
1565
|
type ParticipantRecord = {
|
|
1554
1566
|
id?: string;
|
|
@@ -1593,13 +1605,14 @@ type DiscussionRunRecord = {
|
|
|
1593
1605
|
outcome?: string | null;
|
|
1594
1606
|
conversation_id?: string | null;
|
|
1595
1607
|
outcome_document_id?: string | null;
|
|
1596
|
-
started_by?: {
|
|
1597
|
-
[key: string]: unknown;
|
|
1598
|
-
} | null;
|
|
1599
1608
|
/**
|
|
1600
|
-
*
|
|
1609
|
+
* Type of the principal that invoked the run. Read-only: derived from the authenticated caller, never accepted from a request body.
|
|
1601
1610
|
*/
|
|
1602
|
-
|
|
1611
|
+
started_by_principal_type?: 'user' | 'api_key' | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* Public id of the principal that invoked the run — the API key's own id (`key_…`) when a key was used, otherwise the user's (`user_…`). Read-only, like `started_by_principal_type`.
|
|
1614
|
+
*/
|
|
1615
|
+
started_by_principal_id?: string | null;
|
|
1603
1616
|
completed_at?: Date | null;
|
|
1604
1617
|
created_at?: Date;
|
|
1605
1618
|
updated_at?: Date;
|
|
@@ -1638,17 +1651,17 @@ type DocumentRecord = {
|
|
|
1638
1651
|
*/
|
|
1639
1652
|
content?: string | null;
|
|
1640
1653
|
/**
|
|
1641
|
-
* The chunk strategy the document was last (re-)ingested with.
|
|
1654
|
+
* The chunk strategy the document was last (re-)ingested with. Absent when the default (`whole`) was used — the mapper omits the key rather than sending `null`.
|
|
1642
1655
|
*/
|
|
1643
1656
|
chunk_strategy?: 'page' | 'whole' | 'size';
|
|
1644
1657
|
/**
|
|
1645
|
-
* Window size in characters used when `chunk_strategy=size`.
|
|
1658
|
+
* Window size in characters used when `chunk_strategy=size`. Absent otherwise.
|
|
1646
1659
|
*/
|
|
1647
|
-
chunk_size?: number
|
|
1660
|
+
chunk_size?: number;
|
|
1648
1661
|
/**
|
|
1649
|
-
* Overlap in characters between consecutive windows used when `chunk_strategy=size`.
|
|
1662
|
+
* Overlap in characters between consecutive windows used when `chunk_strategy=size`. Absent otherwise.
|
|
1650
1663
|
*/
|
|
1651
|
-
chunk_overlap?: number
|
|
1664
|
+
chunk_overlap?: number;
|
|
1652
1665
|
created_at?: Date;
|
|
1653
1666
|
updated_at?: Date;
|
|
1654
1667
|
};
|
|
@@ -2052,6 +2065,10 @@ type AgentResourceProperties = {
|
|
|
2052
2065
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
2053
2066
|
*/
|
|
2054
2067
|
single_session_per_actor?: boolean | null;
|
|
2068
|
+
/**
|
|
2069
|
+
* Agent-scope zero-retention setting (`full` or `none`). `null` inherits the project's setting. `full` is refused when the project's own mode is `none`.
|
|
2070
|
+
*/
|
|
2071
|
+
trace_content_mode?: string | null;
|
|
2055
2072
|
/**
|
|
2056
2073
|
* Knowledge retrieval configuration. When set, relevant documents and memory entries are injected into every generation.
|
|
2057
2074
|
*/
|
|
@@ -2853,7 +2870,7 @@ type GuardrailResourceProperties = {
|
|
|
2853
2870
|
/**
|
|
2854
2871
|
* How tool-fetched context combines with the caller-supplied context.
|
|
2855
2872
|
*/
|
|
2856
|
-
context_mode?: 'merge' | 'replace';
|
|
2873
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
2857
2874
|
};
|
|
2858
2875
|
type ResourceDeclaration = {
|
|
2859
2876
|
/**
|
|
@@ -2870,7 +2887,7 @@ type ResourceDeclaration = {
|
|
|
2870
2887
|
*/
|
|
2871
2888
|
depends_on?: Array<string> | null;
|
|
2872
2889
|
/**
|
|
2873
|
-
* Controls what happens to the physical resource when it is removed from the stack. `delete` (default) deletes the physical resource. `retain` keeps the physical resource alive and only removes the formation record.
|
|
2890
|
+
* Controls what happens to the physical resource when it is removed from the stack. `delete` (default) deletes the physical resource. `retain` keeps the physical resource alive and only removes the formation record. Omit it to get `delete`; an explicit `null` is rejected.
|
|
2874
2891
|
*
|
|
2875
2892
|
*/
|
|
2876
2893
|
deletion_policy?: 'delete' | 'retain';
|
|
@@ -3249,7 +3266,7 @@ type Guardrail = {
|
|
|
3249
3266
|
* How tool-fetched context combines with the caller-supplied context.
|
|
3250
3267
|
*
|
|
3251
3268
|
*/
|
|
3252
|
-
context_mode?: 'merge' | 'replace';
|
|
3269
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
3253
3270
|
created_at?: Date;
|
|
3254
3271
|
updated_at?: Date;
|
|
3255
3272
|
};
|
|
@@ -3322,7 +3339,7 @@ type UpdateGuardrailRequest = {
|
|
|
3322
3339
|
description?: string | null;
|
|
3323
3340
|
document?: GuardrailDocument;
|
|
3324
3341
|
context_tool_id?: string | null;
|
|
3325
|
-
context_mode?: 'merge' | 'replace';
|
|
3342
|
+
context_mode?: 'merge' | 'replace' | null;
|
|
3326
3343
|
};
|
|
3327
3344
|
type IngestionRule = {
|
|
3328
3345
|
id?: string;
|
|
@@ -4047,6 +4064,14 @@ type ProjectRecord = {
|
|
|
4047
4064
|
* Whether `GET` requests naming this project are recorded in the audit log. `false` by default — v1 audits mutations only.
|
|
4048
4065
|
*/
|
|
4049
4066
|
audit_reads_enabled?: boolean;
|
|
4067
|
+
/**
|
|
4068
|
+
* Days of trace/generation content retention before the daily sweep purges it. `null` means retention is disabled (the default) and content is kept until purged on demand.
|
|
4069
|
+
*/
|
|
4070
|
+
trace_content_retention_days?: number | null;
|
|
4071
|
+
/**
|
|
4072
|
+
* Whether trace/generation content is persisted. `full` by default; `none` is zero-retention — content is never written for any agent in this project.
|
|
4073
|
+
*/
|
|
4074
|
+
trace_content_mode?: 'full' | 'none';
|
|
4050
4075
|
created_at?: Date;
|
|
4051
4076
|
updated_at?: Date;
|
|
4052
4077
|
};
|
|
@@ -4387,7 +4412,10 @@ type Task = {
|
|
|
4387
4412
|
active_dispatch?: {
|
|
4388
4413
|
[key: string]: unknown;
|
|
4389
4414
|
} | null;
|
|
4390
|
-
|
|
4415
|
+
/**
|
|
4416
|
+
* Status of the current state's dispatch. `null` until a state with an automation is entered.
|
|
4417
|
+
*/
|
|
4418
|
+
automation_status?: 'running' | 'completed' | 'failed' | 'unrouted' | null;
|
|
4391
4419
|
/**
|
|
4392
4420
|
* The name of a `requires_approval` transition parked awaiting a human decision. Non-null while an ApprovalItem gates the move; the task stays in its current state and no other transition may fire until the approval resolves.
|
|
4393
4421
|
*/
|
|
@@ -10475,7 +10503,10 @@ type UpdateIngestionRuleData = {
|
|
|
10475
10503
|
} | null;
|
|
10476
10504
|
native_extraction?: 'first' | 'skip';
|
|
10477
10505
|
file_delivery?: 'base64' | 'download_url';
|
|
10478
|
-
|
|
10506
|
+
/**
|
|
10507
|
+
* Send `null` to clear the rule's override and fall back to the per-request default.
|
|
10508
|
+
*/
|
|
10509
|
+
chunk_strategy?: 'page' | 'whole' | 'size' | null;
|
|
10479
10510
|
chunk_size?: number | null;
|
|
10480
10511
|
chunk_overlap?: number | null;
|
|
10481
10512
|
metadata?: {
|
|
@@ -12015,6 +12046,14 @@ type UpdateProjectData = {
|
|
|
12015
12046
|
* Opt the project into read auditing. When true, `GET` requests that name this project are recorded in the audit log alongside mutations. Defaults to `false`.
|
|
12016
12047
|
*/
|
|
12017
12048
|
audit_reads_enabled?: boolean;
|
|
12049
|
+
/**
|
|
12050
|
+
* How long trace and generation content is kept before the daily retention sweep content-purges it. `null` (the default) disables retention; otherwise an integer >= 1. The sweep uses the same purge path as `DELETE /traces/{trace_id}/content`, so the row survives as an auditable skeleton with `content_redacted_at` set.
|
|
12051
|
+
*/
|
|
12052
|
+
trace_content_retention_days?: number | null;
|
|
12053
|
+
/**
|
|
12054
|
+
* Whether trace and generation content is persisted at all. `full` (the default) stores it; `none` is zero-retention — content is never written, for every agent in the project. An agent may tighten this to `none` on its own but cannot loosen a `none` project back to `full`.
|
|
12055
|
+
*/
|
|
12056
|
+
trace_content_mode?: 'full' | 'none';
|
|
12018
12057
|
};
|
|
12019
12058
|
path: {
|
|
12020
12059
|
/**
|
|
@@ -15996,7 +16035,7 @@ declare class Projects {
|
|
|
15996
16035
|
/**
|
|
15997
16036
|
* Update a project
|
|
15998
16037
|
*
|
|
15999
|
-
* 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 inherited model route (`default_model_route_id`),
|
|
16038
|
+
* 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 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.
|
|
16000
16039
|
*/
|
|
16001
16040
|
static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>;
|
|
16002
16041
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2848,7 +2848,7 @@ var Projects = class {
|
|
|
2848
2848
|
/**
|
|
2849
2849
|
* Update a project
|
|
2850
2850
|
*
|
|
2851
|
-
* 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 inherited model route (`default_model_route_id`),
|
|
2851
|
+
* 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 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.
|
|
2852
2852
|
*/
|
|
2853
2853
|
static updateProject(options) {
|
|
2854
2854
|
return (options.client ?? client).patch({
|