@naturali/sdk 0.276.2 → 0.276.4
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 +8 -7
- package/dist/index.d.cts +102 -28
- package/dist/index.d.mts +102 -28
- package/dist/index.mjs +8 -7
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -628,7 +628,7 @@ var Activity = class {
|
|
|
628
628
|
/**
|
|
629
629
|
* Export the activity feed as NDJSON
|
|
630
630
|
*
|
|
631
|
-
* Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. `project_id`
|
|
631
|
+
* Streams a project's activity entries as newline-delimited JSON — one entry object per line, **oldest first**, where the feed itself reads newest first: a feed answers what just happened, and a file is read start to end. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.
|
|
632
632
|
*/
|
|
633
633
|
static exportActivity(options) {
|
|
634
634
|
return (options.client ?? client).get({
|
|
@@ -1408,7 +1408,7 @@ var AgentVersions = class {
|
|
|
1408
1408
|
*
|
|
1409
1409
|
* Makes the canary version's config the agent's live config and clears the release. The canary is pinned by version, so an edit that landed mid-rollout is not promoted in its place — it stays an unreleased draft in the version history.
|
|
1410
1410
|
*
|
|
1411
|
-
* When the release carries a `promotion_gate`, the newest `completed` run of the eval it names that was recorded against this agent (`agent_id`) and pinned to the canary version (`agent_version`) must read `verdict: supported`. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `verdict` and `verdict_reasons` when there is one, and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.
|
|
1411
|
+
* When the release carries a `promotion_gate`, the newest `completed` run of the eval it names that was recorded against this agent (`agent_id`) and pinned to the canary version (`agent_version`) must read `verdict: supported`. A newer run revokes an older one. Otherwise the call is a `409`, whose `meta` names that run's `eval_run_id`, `claim`, `verdict` and `verdict_reasons` when there is one, and the rollout is left running untouched. The run that cleared the gate is recorded as `eval_run_id` on the version that goes live.
|
|
1412
1412
|
*
|
|
1413
1413
|
*/
|
|
1414
1414
|
static promoteAgentRelease(options) {
|
|
@@ -1475,7 +1475,7 @@ var AiProviders = class {
|
|
|
1475
1475
|
*
|
|
1476
1476
|
* Deletes an AI provider configuration.
|
|
1477
1477
|
*
|
|
1478
|
-
* Live references — agents
|
|
1478
|
+
* Live references — the provider project's agents, model routes whose targets name this provider, and providers whose `model_aliases` forward to it (`meta.ai_provider_ids`) — always block deletion with `409 AI_PROVIDER_HAS_DEPENDENTS`; `force` does not override them, so delete or repoint those resources first. Soft dependents — price overrides, usage/generation records and shares another project has accepted — also block with `409` unless `force=true`, which deletes the provider's price overrides, revokes its shares and unlinks its usage history, preserving those rows: each usage event keeps the provider's id as its `ai_provider_id`. A grantee project's agents pinned to the provider fall back to that project's default route. The `409` body's `error.meta` reports the counts, a sample of offending IDs, and a `forcible` flag that is `true` when a `force=true` retry would succeed.
|
|
1479
1479
|
*
|
|
1480
1480
|
*/
|
|
1481
1481
|
static deleteAiProvider(options) {
|
|
@@ -1487,7 +1487,8 @@ var AiProviders = class {
|
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Get an AI provider
|
|
1489
1489
|
*
|
|
1490
|
-
* Returns a specific AI provider configuration
|
|
1490
|
+
* Returns a specific AI provider configuration. A credential scoped to a project the provider is shared with, through an accepted share, reads its `id`, `name`, `provider`, `default_model` and `model_alias_names` only.
|
|
1491
|
+
*
|
|
1491
1492
|
*/
|
|
1492
1493
|
static getAiProvider(options) {
|
|
1493
1494
|
return (options.client ?? client).get({
|
|
@@ -1880,7 +1881,7 @@ var AuditLog = class {
|
|
|
1880
1881
|
/**
|
|
1881
1882
|
* Export audit entries as NDJSON
|
|
1882
1883
|
*
|
|
1883
|
-
* Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. `project_id`
|
|
1884
|
+
* Streams a project's audit-log entries as newline-delimited JSON — one entry object per line, oldest first — for archival before the retention window expires, or for shipping into an external system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. Filters behave exactly as they do on the list endpoint.
|
|
1884
1885
|
*/
|
|
1885
1886
|
static exportAuditEntries(options) {
|
|
1886
1887
|
return (options.client ?? client).get({
|
|
@@ -2561,7 +2562,7 @@ var Documents = class {
|
|
|
2561
2562
|
/**
|
|
2562
2563
|
* Export documents as NDJSON
|
|
2563
2564
|
*
|
|
2564
|
-
* Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. `project_id`
|
|
2565
|
+
* Streams a project's documents as newline-delimited JSON — one document object per line, oldest first — for archiving the corpus or shipping it into another system. The export is per-project: `project_id` names it, or a project-bound credential implies its own. The rows are the rows the listing returns for the same caller, so a policy that hides a document hides it here too, and withdrawn documents and the reserved `/.system/` root are left out.
|
|
2565
2566
|
*/
|
|
2566
2567
|
static exportDocuments(options) {
|
|
2567
2568
|
return (options.client ?? client).get({
|
|
@@ -4779,7 +4780,7 @@ var Playbooks = class {
|
|
|
4779
4780
|
*
|
|
4780
4781
|
* Answers what a create or update would be told about a definition, without writing: `valid`, and every graph problem it holds. A definition whose shape cannot be read is `400 VALIDATION_FAILED`, as on a write.
|
|
4781
4782
|
*
|
|
4782
|
-
* With `project_id`, the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4783
|
+
* With a project (`project_id`, or the one a project-bound credential names), the references are checked too, as a write there would check them: the upstreams against that project's playbooks, and each executor the caller may start must exist (`EXECUTOR_NOT_FOUND`) and name an action its `mcp` tool allows (`EXECUTOR_ACTION_REQUIRED`, `EXECUTOR_ACTION_UNAVAILABLE`) and not be a `client` tool (`EXECUTOR_TOOL_UNSUPPORTED`), and each transformation's tool must not be a `client` or `mcp` tool (`TRANSFORMATION_TOOL_UNSUPPORTED`). The caller needs both `playbooks:ValidatePlaybook` and `playbooks:ListPlaybooks` on the project. Without it, only the definition's own graph is checked.
|
|
4783
4784
|
*/
|
|
4784
4785
|
static validatePlaybook(options) {
|
|
4785
4786
|
return (options.client ?? client).post({
|