@naturali/sdk 0.104.0 → 0.106.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
@@ -3450,6 +3450,8 @@ var Projects = class {
3450
3450
  *
3451
3451
  * Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
3452
3452
  *
3453
+ * A new project starts at the content-retention window your plan sets (`trace_content_retention_days`); `PATCH` it to anything shorter.
3454
+ *
3453
3455
  */
3454
3456
  static createProject(options) {
3455
3457
  return (options.client ?? client).post({
@@ -3494,6 +3496,8 @@ var Projects = class {
3494
3496
  * Requires the `admin` role in the project (an `owner` has it too).
3495
3497
  * The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
3496
3498
  *
3499
+ * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
3500
+ *
3497
3501
  */
3498
3502
  static updateProject(options) {
3499
3503
  return (options.client ?? client).patch({
package/dist/index.d.cts CHANGED
@@ -5337,6 +5337,8 @@ type ProjectUpdate = {
5337
5337
  /**
5338
5338
  * Days of trace and generation content retention before the daily sweep purges it. Send `null` to disable retention (content is then kept until purged on demand). Omitting the field leaves the current window unchanged — `null` and absent are different instructions.
5339
5339
  *
5340
+ * Bounded by your plan: a window longer than the plan allows, and `null` on any plan that sets a window, respond `403` `plan_limit_reached`.
5341
+ *
5340
5342
  */
5341
5343
  trace_content_retention_days?: number | null;
5342
5344
  /**
@@ -20296,6 +20298,8 @@ declare class Projects {
20296
20298
  *
20297
20299
  * Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
20298
20300
  *
20301
+ * A new project starts at the content-retention window your plan sets (`trace_content_retention_days`); `PATCH` it to anything shorter.
20302
+ *
20299
20303
  */
20300
20304
  static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError>;
20301
20305
  /**
@@ -20321,6 +20325,8 @@ declare class Projects {
20321
20325
  * Requires the `admin` role in the project (an `owner` has it too).
20322
20326
  * The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
20323
20327
  *
20328
+ * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
20329
+ *
20324
20330
  */
20325
20331
  static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>;
20326
20332
  /**
package/dist/index.d.mts CHANGED
@@ -5337,6 +5337,8 @@ type ProjectUpdate = {
5337
5337
  /**
5338
5338
  * Days of trace and generation content retention before the daily sweep purges it. Send `null` to disable retention (content is then kept until purged on demand). Omitting the field leaves the current window unchanged — `null` and absent are different instructions.
5339
5339
  *
5340
+ * Bounded by your plan: a window longer than the plan allows, and `null` on any plan that sets a window, respond `403` `plan_limit_reached`.
5341
+ *
5340
5342
  */
5341
5343
  trace_content_retention_days?: number | null;
5342
5344
  /**
@@ -20296,6 +20298,8 @@ declare class Projects {
20296
20298
  *
20297
20299
  * Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
20298
20300
  *
20301
+ * A new project starts at the content-retention window your plan sets (`trace_content_retention_days`); `PATCH` it to anything shorter.
20302
+ *
20299
20303
  */
20300
20304
  static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError>;
20301
20305
  /**
@@ -20321,6 +20325,8 @@ declare class Projects {
20321
20325
  * Requires the `admin` role in the project (an `owner` has it too).
20322
20326
  * The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
20323
20327
  *
20328
+ * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
20329
+ *
20324
20330
  */
20325
20331
  static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>;
20326
20332
  /**
package/dist/index.mjs CHANGED
@@ -3449,6 +3449,8 @@ var Projects = class {
3449
3449
  *
3450
3450
  * Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
3451
3451
  *
3452
+ * A new project starts at the content-retention window your plan sets (`trace_content_retention_days`); `PATCH` it to anything shorter.
3453
+ *
3452
3454
  */
3453
3455
  static createProject(options) {
3454
3456
  return (options.client ?? client).post({
@@ -3493,6 +3495,8 @@ var Projects = class {
3493
3495
  * Requires the `admin` role in the project (an `owner` has it too).
3494
3496
  * The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
3495
3497
  *
3498
+ * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
3499
+ *
3496
3500
  */
3497
3501
  static updateProject(options) {
3498
3502
  return (options.client ?? client).patch({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.104.0",
3
+ "version": "0.106.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.104.0"
40
+ "@naturali/api": "0.106.0"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",