@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.mjs CHANGED
@@ -627,7 +627,7 @@ var Activity = class {
627
627
  /**
628
628
  * Export the activity feed as NDJSON
629
629
  *
630
- * 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` is required: the export is per-project by design. Filters behave exactly as they do on the list endpoint.
630
+ * 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.
631
631
  */
632
632
  static exportActivity(options) {
633
633
  return (options.client ?? client).get({
@@ -1407,7 +1407,7 @@ var AgentVersions = class {
1407
1407
  *
1408
1408
  * 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.
1409
1409
  *
1410
- * 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.
1410
+ * 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.
1411
1411
  *
1412
1412
  */
1413
1413
  static promoteAgentRelease(options) {
@@ -1474,7 +1474,7 @@ var AiProviders = class {
1474
1474
  *
1475
1475
  * Deletes an AI provider configuration.
1476
1476
  *
1477
- * Live references — agents and model routes whose targets name this provider — 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 and usage/generation records — also block with `409` unless `force=true`, which deletes the provider's price overrides and unlinks its usage history, preserving those rows: each usage event keeps the provider's id as its `ai_provider_id`. 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.
1477
+ * 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.
1478
1478
  *
1479
1479
  */
1480
1480
  static deleteAiProvider(options) {
@@ -1486,7 +1486,8 @@ var AiProviders = class {
1486
1486
  /**
1487
1487
  * Get an AI provider
1488
1488
  *
1489
- * Returns a specific AI provider configuration
1489
+ * 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.
1490
+ *
1490
1491
  */
1491
1492
  static getAiProvider(options) {
1492
1493
  return (options.client ?? client).get({
@@ -1879,7 +1880,7 @@ var AuditLog = class {
1879
1880
  /**
1880
1881
  * Export audit entries as NDJSON
1881
1882
  *
1882
- * 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` is required: the export is per-project by design. Filters behave exactly as they do on the list endpoint.
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. 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.
1883
1884
  */
1884
1885
  static exportAuditEntries(options) {
1885
1886
  return (options.client ?? client).get({
@@ -2560,7 +2561,7 @@ var Documents = class {
2560
2561
  /**
2561
2562
  * Export documents as NDJSON
2562
2563
  *
2563
- * 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` is required: the export is per-project by design. 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.
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. 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.
2564
2565
  */
2565
2566
  static exportDocuments(options) {
2566
2567
  return (options.client ?? client).get({
@@ -4778,7 +4779,7 @@ var Playbooks = class {
4778
4779
  *
4779
4780
  * 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.
4780
4781
  *
4781
- * 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.
4782
+ * 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.
4782
4783
  */
4783
4784
  static validatePlaybook(options) {
4784
4785
  return (options.client ?? client).post({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.276.2",
3
+ "version": "0.276.4",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.276.2",
41
+ "@naturali/api": "0.276.4",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",