@naturali/sdk 0.157.1 → 0.158.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 +1 -1
- package/dist/index.d.cts +16 -4
- package/dist/index.d.mts +16 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1095,7 +1095,7 @@ var Admin = class {
|
|
|
1095
1095
|
*
|
|
1096
1096
|
* Puts the account on a rung of the infra ladder. Needs the `admin` role.
|
|
1097
1097
|
* `PUT` because an account is on exactly one rung at a time, but the change is **recorded rather than overwritten**: the plan history is append-only and the newest line is the account's plan. Setting the rung it already holds still writes a line — a re-confirmation is an act worth a record, and the `reason` given with it would otherwise have nowhere to go. Read the history back with `GET` on this path.
|
|
1098
|
-
*
|
|
1098
|
+
* An upgrade takes effect at once. A downgrade is the same call with a lower rung and takes effect when the month turns: until then `plan` stays the rung held and `next_plan` names the new one. At the turn, active channels past the new rung's allowance are disabled, oldest first; an upgrade re-enables them.
|
|
1099
1099
|
* A rung whose content-retention window a contract sets — `enterprise` — **requires `retention_days`**, since nothing else can answer what that window is and an unanswered one bounds nothing. Every other rung sets its own and refuses the field.
|
|
1100
1100
|
*
|
|
1101
1101
|
*/
|
package/dist/index.d.cts
CHANGED
|
@@ -541,9 +541,13 @@ type User = {
|
|
|
541
541
|
};
|
|
542
542
|
type AdminUser = User & {
|
|
543
543
|
/**
|
|
544
|
-
* The rung
|
|
544
|
+
* The rung in effect: the highest the account held this month. `free` for an account with no subscription. It gates the feature lines and the resource counts of the pricing table.
|
|
545
545
|
*/
|
|
546
546
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
547
|
+
/**
|
|
548
|
+
* The rung the account moves to when the month turns; differs from `plan` only while a downgrade is pending.
|
|
549
|
+
*/
|
|
550
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
547
551
|
/**
|
|
548
552
|
* The longest content-retention window this account's projects may keep content for, in days. On a plan whose window a contract sets, this is the figure recorded with the grant; `null` means nothing bounds it. Resolved the same way the refusal is — the widest window held during the current billing cycle.
|
|
549
553
|
*/
|
|
@@ -616,9 +620,13 @@ type PlanEvent = {
|
|
|
616
620
|
type PlanEventPage = {
|
|
617
621
|
data: Array<PlanEvent>;
|
|
618
622
|
/**
|
|
619
|
-
* The rung
|
|
623
|
+
* The rung in effect: the highest held this month, or `free` when the account has no history.
|
|
620
624
|
*/
|
|
621
625
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
626
|
+
/**
|
|
627
|
+
* The newest line: the rung the account moves to when the month turns.
|
|
628
|
+
*/
|
|
629
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
622
630
|
/**
|
|
623
631
|
* Pass as `cursor` for the next page; null on the last page.
|
|
624
632
|
*/
|
|
@@ -7771,9 +7779,13 @@ type UserUpdate = {
|
|
|
7771
7779
|
};
|
|
7772
7780
|
type UserBilling = {
|
|
7773
7781
|
/**
|
|
7774
|
-
* The rung of the infra subscription this account
|
|
7782
|
+
* The rung of the infra subscription in effect for this account: the highest it held this month. `free` for an account with no subscription, which is also the least-privileged rung. It gates the feature lines and the resource counts of the pricing table.
|
|
7775
7783
|
*/
|
|
7776
7784
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
7785
|
+
/**
|
|
7786
|
+
* The rung the account moves to when the month turns. It differs from `plan` only while a downgrade is pending: a downgrade takes effect at the end of the month, an upgrade at once.
|
|
7787
|
+
*/
|
|
7788
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
7777
7789
|
/**
|
|
7778
7790
|
* The longest window a project of this account may keep trace and generation content for, in days. A `PATCH` asking for a wider one — `null` included, which keeps content indefinitely — is refused with `403 plan_limit_reached`; anything shorter is always allowed. On a plan whose window a contract sets, this is that contract's figure, and `null` means nothing bounds it. A plan change that shortens the window applies at the end of the billing cycle, so this reads as the widest window held during the current one.
|
|
7779
7791
|
*/
|
|
@@ -23645,7 +23657,7 @@ export declare class Admin {
|
|
|
23645
23657
|
*
|
|
23646
23658
|
* Puts the account on a rung of the infra ladder. Needs the `admin` role.
|
|
23647
23659
|
* `PUT` because an account is on exactly one rung at a time, but the change is **recorded rather than overwritten**: the plan history is append-only and the newest line is the account's plan. Setting the rung it already holds still writes a line — a re-confirmation is an act worth a record, and the `reason` given with it would otherwise have nowhere to go. Read the history back with `GET` on this path.
|
|
23648
|
-
*
|
|
23660
|
+
* An upgrade takes effect at once. A downgrade is the same call with a lower rung and takes effect when the month turns: until then `plan` stays the rung held and `next_plan` names the new one. At the turn, active channels past the new rung's allowance are disabled, oldest first; an upgrade re-enables them.
|
|
23649
23661
|
* A rung whose content-retention window a contract sets — `enterprise` — **requires `retention_days`**, since nothing else can answer what that window is and an unanswered one bounds nothing. Every other rung sets its own and refuses the field.
|
|
23650
23662
|
*
|
|
23651
23663
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -541,9 +541,13 @@ type User = {
|
|
|
541
541
|
};
|
|
542
542
|
type AdminUser = User & {
|
|
543
543
|
/**
|
|
544
|
-
* The rung
|
|
544
|
+
* The rung in effect: the highest the account held this month. `free` for an account with no subscription. It gates the feature lines and the resource counts of the pricing table.
|
|
545
545
|
*/
|
|
546
546
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
547
|
+
/**
|
|
548
|
+
* The rung the account moves to when the month turns; differs from `plan` only while a downgrade is pending.
|
|
549
|
+
*/
|
|
550
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
547
551
|
/**
|
|
548
552
|
* The longest content-retention window this account's projects may keep content for, in days. On a plan whose window a contract sets, this is the figure recorded with the grant; `null` means nothing bounds it. Resolved the same way the refusal is — the widest window held during the current billing cycle.
|
|
549
553
|
*/
|
|
@@ -616,9 +620,13 @@ type PlanEvent = {
|
|
|
616
620
|
type PlanEventPage = {
|
|
617
621
|
data: Array<PlanEvent>;
|
|
618
622
|
/**
|
|
619
|
-
* The rung
|
|
623
|
+
* The rung in effect: the highest held this month, or `free` when the account has no history.
|
|
620
624
|
*/
|
|
621
625
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
626
|
+
/**
|
|
627
|
+
* The newest line: the rung the account moves to when the month turns.
|
|
628
|
+
*/
|
|
629
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
622
630
|
/**
|
|
623
631
|
* Pass as `cursor` for the next page; null on the last page.
|
|
624
632
|
*/
|
|
@@ -7771,9 +7779,13 @@ type UserUpdate = {
|
|
|
7771
7779
|
};
|
|
7772
7780
|
type UserBilling = {
|
|
7773
7781
|
/**
|
|
7774
|
-
* The rung of the infra subscription this account
|
|
7782
|
+
* The rung of the infra subscription in effect for this account: the highest it held this month. `free` for an account with no subscription, which is also the least-privileged rung. It gates the feature lines and the resource counts of the pricing table.
|
|
7775
7783
|
*/
|
|
7776
7784
|
plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
7785
|
+
/**
|
|
7786
|
+
* The rung the account moves to when the month turns. It differs from `plan` only while a downgrade is pending: a downgrade takes effect at the end of the month, an upgrade at once.
|
|
7787
|
+
*/
|
|
7788
|
+
next_plan: 'free' | 'pro' | 'business' | 'enterprise';
|
|
7777
7789
|
/**
|
|
7778
7790
|
* The longest window a project of this account may keep trace and generation content for, in days. A `PATCH` asking for a wider one — `null` included, which keeps content indefinitely — is refused with `403 plan_limit_reached`; anything shorter is always allowed. On a plan whose window a contract sets, this is that contract's figure, and `null` means nothing bounds it. A plan change that shortens the window applies at the end of the billing cycle, so this reads as the widest window held during the current one.
|
|
7779
7791
|
*/
|
|
@@ -23645,7 +23657,7 @@ export declare class Admin {
|
|
|
23645
23657
|
*
|
|
23646
23658
|
* Puts the account on a rung of the infra ladder. Needs the `admin` role.
|
|
23647
23659
|
* `PUT` because an account is on exactly one rung at a time, but the change is **recorded rather than overwritten**: the plan history is append-only and the newest line is the account's plan. Setting the rung it already holds still writes a line — a re-confirmation is an act worth a record, and the `reason` given with it would otherwise have nowhere to go. Read the history back with `GET` on this path.
|
|
23648
|
-
*
|
|
23660
|
+
* An upgrade takes effect at once. A downgrade is the same call with a lower rung and takes effect when the month turns: until then `plan` stays the rung held and `next_plan` names the new one. At the turn, active channels past the new rung's allowance are disabled, oldest first; an upgrade re-enables them.
|
|
23649
23661
|
* A rung whose content-retention window a contract sets — `enterprise` — **requires `retention_days`**, since nothing else can answer what that window is and an unanswered one bounds nothing. Every other rung sets its own and refuses the field.
|
|
23650
23662
|
*
|
|
23651
23663
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1094,7 +1094,7 @@ var Admin = class {
|
|
|
1094
1094
|
*
|
|
1095
1095
|
* Puts the account on a rung of the infra ladder. Needs the `admin` role.
|
|
1096
1096
|
* `PUT` because an account is on exactly one rung at a time, but the change is **recorded rather than overwritten**: the plan history is append-only and the newest line is the account's plan. Setting the rung it already holds still writes a line — a re-confirmation is an act worth a record, and the `reason` given with it would otherwise have nowhere to go. Read the history back with `GET` on this path.
|
|
1097
|
-
*
|
|
1097
|
+
* An upgrade takes effect at once. A downgrade is the same call with a lower rung and takes effect when the month turns: until then `plan` stays the rung held and `next_plan` names the new one. At the turn, active channels past the new rung's allowance are disabled, oldest first; an upgrade re-enables them.
|
|
1098
1098
|
* A rung whose content-retention window a contract sets — `enterprise` — **requires `retention_days`**, since nothing else can answer what that window is and an unanswered one bounds nothing. Every other rung sets its own and refuses the field.
|
|
1099
1099
|
*
|
|
1100
1100
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.158.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
34
|
-
"@naturali/api": "0.
|
|
34
|
+
"@naturali/api": "0.158.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|