@naturali/sdk 0.56.4 → 0.56.5

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
@@ -1591,7 +1591,7 @@ var Models = class {
1591
1591
  /**
1592
1592
  * List models
1593
1593
  *
1594
- * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality or status.
1594
+ * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality, status, or `managed` — the last being the axis that decides whether a model is usable without BYOK credentials, so `?managed=true&status=available` is the set an agent can run on today.
1595
1595
  *
1596
1596
  */
1597
1597
  static listModels(options) {
@@ -1808,6 +1808,10 @@ var Projects = class {
1808
1808
  }
1809
1809
  /**
1810
1810
  * Get a project
1811
+ *
1812
+ * Returns one project. An id you do not own — including one that does not exist — responds `404`, not `403`: the API never confirms that an id exists elsewhere.
1813
+ * `403` is reserved for the one case where there is nothing to hide: a project you *do* own, addressed with a credential scoped to a different one. There the wrong-credential message is what makes the failure fixable.
1814
+ *
1811
1815
  */
1812
1816
  static getProject(options) {
1813
1817
  return (options.client ?? client).get({
package/dist/index.d.cts CHANGED
@@ -6831,6 +6831,10 @@ type GetProjectErrors = {
6831
6831
  * Missing or invalid credentials.
6832
6832
  */
6833
6833
  401: ErrorResponse;
6834
+ /**
6835
+ * Authenticated, but not permitted to act on this key.
6836
+ */
6837
+ 403: ErrorResponse;
6834
6838
  /**
6835
6839
  * The resource does not exist (existence is not leaked).
6836
6840
  */
@@ -9327,7 +9331,7 @@ declare class Models {
9327
9331
  /**
9328
9332
  * List models
9329
9333
  *
9330
- * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality or status.
9334
+ * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality, status, or `managed` — the last being the axis that decides whether a model is usable without BYOK credentials, so `?managed=true&status=available` is the set an agent can run on today.
9331
9335
  *
9332
9336
  */
9333
9337
  static listModels<ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>): RequestResult<ListModelsResponses, ListModelsErrors, ThrowOnError>;
@@ -9435,6 +9439,10 @@ declare class Projects {
9435
9439
  static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>;
9436
9440
  /**
9437
9441
  * Get a project
9442
+ *
9443
+ * Returns one project. An id you do not own — including one that does not exist — responds `404`, not `403`: the API never confirms that an id exists elsewhere.
9444
+ * `403` is reserved for the one case where there is nothing to hide: a project you *do* own, addressed with a credential scoped to a different one. There the wrong-credential message is what makes the failure fixable.
9445
+ *
9438
9446
  */
9439
9447
  static getProject<ThrowOnError extends boolean = false>(options: Options<GetProjectData, ThrowOnError>): RequestResult<GetProjectResponses, GetProjectErrors, ThrowOnError>;
9440
9448
  /**
package/dist/index.d.mts CHANGED
@@ -6831,6 +6831,10 @@ type GetProjectErrors = {
6831
6831
  * Missing or invalid credentials.
6832
6832
  */
6833
6833
  401: ErrorResponse;
6834
+ /**
6835
+ * Authenticated, but not permitted to act on this key.
6836
+ */
6837
+ 403: ErrorResponse;
6834
6838
  /**
6835
6839
  * The resource does not exist (existence is not leaked).
6836
6840
  */
@@ -9327,7 +9331,7 @@ declare class Models {
9327
9331
  /**
9328
9332
  * List models
9329
9333
  *
9330
- * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality or status.
9334
+ * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality, status, or `managed` — the last being the axis that decides whether a model is usable without BYOK credentials, so `?managed=true&status=available` is the set an agent can run on today.
9331
9335
  *
9332
9336
  */
9333
9337
  static listModels<ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>): RequestResult<ListModelsResponses, ListModelsErrors, ThrowOnError>;
@@ -9435,6 +9439,10 @@ declare class Projects {
9435
9439
  static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>;
9436
9440
  /**
9437
9441
  * Get a project
9442
+ *
9443
+ * Returns one project. An id you do not own — including one that does not exist — responds `404`, not `403`: the API never confirms that an id exists elsewhere.
9444
+ * `403` is reserved for the one case where there is nothing to hide: a project you *do* own, addressed with a credential scoped to a different one. There the wrong-credential message is what makes the failure fixable.
9445
+ *
9438
9446
  */
9439
9447
  static getProject<ThrowOnError extends boolean = false>(options: Options<GetProjectData, ThrowOnError>): RequestResult<GetProjectResponses, GetProjectErrors, ThrowOnError>;
9440
9448
  /**
package/dist/index.mjs CHANGED
@@ -1590,7 +1590,7 @@ var Models = class {
1590
1590
  /**
1591
1591
  * List models
1592
1592
  *
1593
- * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality or status.
1593
+ * Lists catalog models, newest sources merged and sorted by id. Filter by vendor, provider, output/input modality, status, or `managed` — the last being the axis that decides whether a model is usable without BYOK credentials, so `?managed=true&status=available` is the set an agent can run on today.
1594
1594
  *
1595
1595
  */
1596
1596
  static listModels(options) {
@@ -1807,6 +1807,10 @@ var Projects = class {
1807
1807
  }
1808
1808
  /**
1809
1809
  * Get a project
1810
+ *
1811
+ * Returns one project. An id you do not own — including one that does not exist — responds `404`, not `403`: the API never confirms that an id exists elsewhere.
1812
+ * `403` is reserved for the one case where there is nothing to hide: a project you *do* own, addressed with a credential scoped to a different one. There the wrong-credential message is what makes the failure fixable.
1813
+ *
1810
1814
  */
1811
1815
  static getProject(options) {
1812
1816
  return (options.client ?? client).get({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.56.4",
3
+ "version": "0.56.5",
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.56.4"
40
+ "@naturali/api": "0.56.5"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",