@naturali/sdk 0.77.1 → 0.78.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
@@ -2965,7 +2965,7 @@ var Models = class {
2965
2965
  /**
2966
2966
  * Enable naturali models
2967
2967
  *
2968
- * Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
2968
+ * Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project per source, not per model, and calling it again for the same source returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
2969
2969
  *
2970
2970
  */
2971
2971
  static enableManagedModels(options) {
package/dist/index.d.cts CHANGED
@@ -12972,7 +12972,13 @@ type GetModelResponse = GetModelResponses[keyof GetModelResponses];
12972
12972
  type EnableManagedModelsData = {
12973
12973
  body?: {
12974
12974
  /**
12975
- * Provider configuration name. Defaults to `naturali`.
12975
+ * Which catalog source to enable. A managed provider serves the models of one source, so a project that wants both enables both — each call returns its own provider, and each is priced only for the models it can actually serve.
12976
+ *
12977
+ */
12978
+ provider?: 'bedrock' | 'vertex';
12979
+ /**
12980
+ * Provider configuration name. Defaults to `naturali` for `bedrock` and `naturali-<provider>` for every other source, so a project that enables more than one keeps them apart.
12981
+ *
12976
12982
  */
12977
12983
  name?: string;
12978
12984
  /**
@@ -17876,7 +17882,7 @@ declare class Models {
17876
17882
  /**
17877
17883
  * Enable naturali models
17878
17884
  *
17879
- * Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
17885
+ * Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project per source, not per model, and calling it again for the same source returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
17880
17886
  *
17881
17887
  */
17882
17888
  static enableManagedModels<ThrowOnError extends boolean = false>(options: Options<EnableManagedModelsData, ThrowOnError>): RequestResult<EnableManagedModelsResponses, EnableManagedModelsErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -12972,7 +12972,13 @@ type GetModelResponse = GetModelResponses[keyof GetModelResponses];
12972
12972
  type EnableManagedModelsData = {
12973
12973
  body?: {
12974
12974
  /**
12975
- * Provider configuration name. Defaults to `naturali`.
12975
+ * Which catalog source to enable. A managed provider serves the models of one source, so a project that wants both enables both — each call returns its own provider, and each is priced only for the models it can actually serve.
12976
+ *
12977
+ */
12978
+ provider?: 'bedrock' | 'vertex';
12979
+ /**
12980
+ * Provider configuration name. Defaults to `naturali` for `bedrock` and `naturali-<provider>` for every other source, so a project that enables more than one keeps them apart.
12981
+ *
12976
12982
  */
12977
12983
  name?: string;
12978
12984
  /**
@@ -17876,7 +17882,7 @@ declare class Models {
17876
17882
  /**
17877
17883
  * Enable naturali models
17878
17884
  *
17879
- * Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
17885
+ * Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project per source, not per model, and calling it again for the same source returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
17880
17886
  *
17881
17887
  */
17882
17888
  static enableManagedModels<ThrowOnError extends boolean = false>(options: Options<EnableManagedModelsData, ThrowOnError>): RequestResult<EnableManagedModelsResponses, EnableManagedModelsErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -2964,7 +2964,7 @@ var Models = class {
2964
2964
  /**
2965
2965
  * Enable naturali models
2966
2966
  *
2967
- * Provisions the project's managed provider — the one provider through which every model the catalog marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project, not per model, and calling it again returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
2967
+ * Provisions the project's managed provider for one catalog source (`bedrock` by default) — the provider through which every model that source marks `managed: true` is available. It needs no credentials of yours (it runs on naturali's own model access) and is priced from the catalog for all managed models the moment it is created, so any of them is usable from an agent's `model` field — set it to the catalog's `provider_model` — and metered from the first generation. Models that join the catalog later are priced onto the provider automatically by the daily sync; enabling is a one-time act per project per source, not per model, and calling it again for the same source returns the existing provider as a `200` instead of creating a duplicate. The created resource is an ordinary provider: read, update and delete it through [`GET /v1/projects/{project_id}/ai-providers/{ai_provider_id}`](/docs/api/ai-providers/get-ai-provider) like any other. Requires the `admin` role in the project.
2968
2968
  *
2969
2969
  */
2970
2970
  static enableManagedModels(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.77.1",
3
+ "version": "0.78.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.77.1"
40
+ "@naturali/api": "0.78.0"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",