@naturali/sdk 0.278.1 → 0.280.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 CHANGED
@@ -4337,7 +4337,7 @@ var Models = class {
4337
4337
  * List models
4338
4338
  *
4339
4339
  * Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status.
4340
- * Every model listed here is available to any project with a `provider: "naturali"` [AI provider](/docs/api/ai-providers/create-ai-provider) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
4340
+ * Every model listed here is served to every project through naturali's shared provider, the first entry of its [AI provider listing](/docs/api/ai-providers/list-ai-providers) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
4341
4341
  *
4342
4342
  */
4343
4343
  static listModels(options) {
package/dist/index.d.cts CHANGED
@@ -5469,7 +5469,7 @@ type PlaybookResourceProperties = {
5469
5469
  };
5470
5470
  type ResourceDeclaration = {
5471
5471
  /**
5472
- * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused, including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose: validate answers `valid: false`, plan and deploy `400 VALIDATION_FAILED`.
5472
+ * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus three naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server` and `webhook` (naturali's own webhook rather than the runtime's). `naturali_ai_provider` is refused: name naturali's shared provider by id. Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused, including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose: validate answers `valid: false`, plan and deploy `400 VALIDATION_FAILED`.
5473
5473
  *
5474
5474
  * This is deliberately not an enum: a deployment operator can register additional resource types backed by their own handler, and those are declared here exactly like a built-in one. The set a given deployment accepts is authoritative in the server, which rejects an unregistered type with `VALIDATION_FAILED` and lists what it does support.
5475
5475
  *
@@ -5812,7 +5812,7 @@ type McpServerResourceProperties = {
5812
5812
  daily_call_limit?: number;
5813
5813
  };
5814
5814
  /**
5815
- * A provider running on naturali's own model access, named by a catalog model.
5815
+ * Not declarable: a template names naturali's shared provider by id. A declaration a formation still holds is released on its next deploy.
5816
5816
  */
5817
5817
  type NaturaliAiProviderResourceProperties = {
5818
5818
  name?: string;
@@ -7159,12 +7159,12 @@ type Model = {
7159
7159
  */
7160
7160
  streaming: boolean;
7161
7161
  /**
7162
- * Lifecycle status, from the provider's own listing at the last sync. A model the provider stops listing — or reports as legacy or deprecated — flips to `deprecated` and stays in the catalog, so a project already generating on it can see what happened to it. A `deprecated` model cannot be chosen as the `default_model` of a new `provider: "naturali"` provider.
7162
+ * Lifecycle status, from the provider's own listing at the last sync. A model the provider stops listing — or reports as legacy or deprecated — flips to `deprecated` and stays in the catalog, so a project already generating on it can see what happened to it.
7163
7163
  *
7164
7164
  */
7165
7165
  status: 'available' | 'deprecated';
7166
7166
  /**
7167
- * What generating on this model costs in credit, in USD per token: the figure the managed provider's price book holds, `/usage` reports as `cost_usd` and the balance is debited. Always present: a model naturali cannot price is not in this catalog. Refreshed by the daily sync.
7167
+ * What generating on this model costs in credit, in USD per token: the figure the shared provider's price book holds, `/usage` reports as `cost_usd` and the balance is debited. Always present: a model naturali cannot price is not in this catalog. Refreshed by the daily sync.
7168
7168
  *
7169
7169
  */
7170
7170
  pricing: {
@@ -13438,7 +13438,7 @@ type ListAiProvidersResponses = {
13438
13438
  data?: Array<{
13439
13439
  id?: string;
13440
13440
  name?: string;
13441
- provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13441
+ provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13442
13442
  default_model?: string;
13443
13443
  /**
13444
13444
  * Secret ID containing API credentials, or null when the record links none.
@@ -13484,7 +13484,7 @@ type CreateAiProviderData = {
13484
13484
  /**
13485
13485
  * LLM provider
13486
13486
  */
13487
- provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13487
+ provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13488
13488
  /**
13489
13489
  * Default model to use
13490
13490
  */
@@ -13752,7 +13752,7 @@ type UpdateAiProviderData = {
13752
13752
  /**
13753
13753
  * LLM provider
13754
13754
  */
13755
- provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13755
+ provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13756
13756
  default_model?: string;
13757
13757
  secret_id?: string | null;
13758
13758
  base_url?: string;
@@ -39135,7 +39135,7 @@ export declare class Models {
39135
39135
  * List models
39136
39136
  *
39137
39137
  * Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status.
39138
- * Every model listed here is available to any project with a `provider: "naturali"` [AI provider](/docs/api/ai-providers/create-ai-provider) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
39138
+ * Every model listed here is served to every project through naturali's shared provider, the first entry of its [AI provider listing](/docs/api/ai-providers/list-ai-providers) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
39139
39139
  *
39140
39140
  */
39141
39141
  static listModels<ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>): RequestResult<ListModelsResponses, ListModelsErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -5469,7 +5469,7 @@ type PlaybookResourceProperties = {
5469
5469
  };
5470
5470
  type ResourceDeclaration = {
5471
5471
  /**
5472
- * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus four naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server`, `naturali_ai_provider` and `webhook` (naturali's own webhook rather than the runtime's). Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused, including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose: validate answers `valid: false`, plan and deploy `400 VALIDATION_FAILED`.
5472
+ * Resource type. The types this API accepts are `ai_provider`, `tool`, `agent`, `actor`, `collection`, `conversation`, `dataset`, `dataset_item`, `decider`, `document`, `file`, `guardrail`, `ingestion_rule`, `memory_store`, `memory`, `memory_rule`, `metadata_schema`, `model_route`, `eval`, `oauth_client`, `orchestration`, `playbook`, `policy`, `quota`, `secret`, `session`, `trigger` and `workflow` — plus three naturali registers itself and handles through its own lifecycle: `channel`, `mcp_server` and `webhook` (naturali's own webhook rather than the runtime's). `naturali_ai_provider` is refused: name naturali's shared provider by id. Each type's properties are its `<Type>ResourceProperties` schema in this document; a write-only property is never stored with the resource or read back. A template naming any other type is refused, including the runtime's own `api_key`, `chat` and `project_price` types, which this API does not expose: validate answers `valid: false`, plan and deploy `400 VALIDATION_FAILED`.
5473
5473
  *
5474
5474
  * This is deliberately not an enum: a deployment operator can register additional resource types backed by their own handler, and those are declared here exactly like a built-in one. The set a given deployment accepts is authoritative in the server, which rejects an unregistered type with `VALIDATION_FAILED` and lists what it does support.
5475
5475
  *
@@ -5812,7 +5812,7 @@ type McpServerResourceProperties = {
5812
5812
  daily_call_limit?: number;
5813
5813
  };
5814
5814
  /**
5815
- * A provider running on naturali's own model access, named by a catalog model.
5815
+ * Not declarable: a template names naturali's shared provider by id. A declaration a formation still holds is released on its next deploy.
5816
5816
  */
5817
5817
  type NaturaliAiProviderResourceProperties = {
5818
5818
  name?: string;
@@ -7159,12 +7159,12 @@ type Model = {
7159
7159
  */
7160
7160
  streaming: boolean;
7161
7161
  /**
7162
- * Lifecycle status, from the provider's own listing at the last sync. A model the provider stops listing — or reports as legacy or deprecated — flips to `deprecated` and stays in the catalog, so a project already generating on it can see what happened to it. A `deprecated` model cannot be chosen as the `default_model` of a new `provider: "naturali"` provider.
7162
+ * Lifecycle status, from the provider's own listing at the last sync. A model the provider stops listing — or reports as legacy or deprecated — flips to `deprecated` and stays in the catalog, so a project already generating on it can see what happened to it.
7163
7163
  *
7164
7164
  */
7165
7165
  status: 'available' | 'deprecated';
7166
7166
  /**
7167
- * What generating on this model costs in credit, in USD per token: the figure the managed provider's price book holds, `/usage` reports as `cost_usd` and the balance is debited. Always present: a model naturali cannot price is not in this catalog. Refreshed by the daily sync.
7167
+ * What generating on this model costs in credit, in USD per token: the figure the shared provider's price book holds, `/usage` reports as `cost_usd` and the balance is debited. Always present: a model naturali cannot price is not in this catalog. Refreshed by the daily sync.
7168
7168
  *
7169
7169
  */
7170
7170
  pricing: {
@@ -13438,7 +13438,7 @@ type ListAiProvidersResponses = {
13438
13438
  data?: Array<{
13439
13439
  id?: string;
13440
13440
  name?: string;
13441
- provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13441
+ provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13442
13442
  default_model?: string;
13443
13443
  /**
13444
13444
  * Secret ID containing API credentials, or null when the record links none.
@@ -13484,7 +13484,7 @@ type CreateAiProviderData = {
13484
13484
  /**
13485
13485
  * LLM provider
13486
13486
  */
13487
- provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13487
+ provider: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13488
13488
  /**
13489
13489
  * Default model to use
13490
13490
  */
@@ -13752,7 +13752,7 @@ type UpdateAiProviderData = {
13752
13752
  /**
13753
13753
  * LLM provider
13754
13754
  */
13755
- provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom' | 'naturali';
13755
+ provider?: 'openai' | 'anthropic' | 'google' | 'xai' | 'groq' | 'ollama' | 'azure' | 'bedrock' | 'vertex' | 'gateway' | 'custom';
13756
13756
  default_model?: string;
13757
13757
  secret_id?: string | null;
13758
13758
  base_url?: string;
@@ -39135,7 +39135,7 @@ export declare class Models {
39135
39135
  * List models
39136
39136
  *
39137
39137
  * Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status.
39138
- * Every model listed here is available to any project with a `provider: "naturali"` [AI provider](/docs/api/ai-providers/create-ai-provider) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
39138
+ * Every model listed here is served to every project through naturali's shared provider, the first entry of its [AI provider listing](/docs/api/ai-providers/list-ai-providers) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
39139
39139
  *
39140
39140
  */
39141
39141
  static listModels<ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>): RequestResult<ListModelsResponses, ListModelsErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -4336,7 +4336,7 @@ var Models = class {
4336
4336
  * List models
4337
4337
  *
4338
4338
  * Lists the models naturali offers, sorted by name. Filter by vendor, input/output modality or lifecycle status.
4339
- * Every model listed here is available to any project with a `provider: "naturali"` [AI provider](/docs/api/ai-providers/create-ai-provider) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
4339
+ * Every model listed here is served to every project through naturali's shared provider, the first entry of its [AI provider listing](/docs/api/ai-providers/list-ai-providers) — there is no second class to filter for. Models naturali cannot serve (unpriced, or producing something other than text) are not in this catalog; to generate on one of those, register your own credentials as an [AI provider](/docs/api/ai-providers/create-ai-provider) and ask that provider what it serves with [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}/models`](/docs/api/ai-providers/list-ai-provider-models).
4340
4340
  *
4341
4341
  */
4342
4342
  static listModels(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.278.1",
3
+ "version": "0.280.0",
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.278.1",
41
+ "@naturali/api": "0.280.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",