@naturali/sdk 0.152.0 → 0.153.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 +3 -1
- package/dist/index.d.cts +15 -2
- package/dist/index.d.mts +15 -2
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4915,7 +4915,9 @@ var Users = class {
|
|
|
4915
4915
|
/**
|
|
4916
4916
|
* Update the current user
|
|
4917
4917
|
*
|
|
4918
|
-
* Edits the account's display name
|
|
4918
|
+
* Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name.
|
|
4919
|
+
*
|
|
4920
|
+
* With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.
|
|
4919
4921
|
*
|
|
4920
4922
|
*/
|
|
4921
4923
|
static updateCurrentUser(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -524,6 +524,10 @@ type User = {
|
|
|
524
524
|
* Roles on naturali itself, not on a project. Empty for almost every account; `admin` marks a naturali operator.
|
|
525
525
|
*/
|
|
526
526
|
roles: Array<'admin'>;
|
|
527
|
+
/**
|
|
528
|
+
* Whether the account is emailed when its model credit, runs or indexed storage reaches 75%, 90% and 100%. On for a new account.
|
|
529
|
+
*/
|
|
530
|
+
usage_alerts: boolean;
|
|
527
531
|
created_at: Date;
|
|
528
532
|
};
|
|
529
533
|
type AdminUser = User & {
|
|
@@ -7497,11 +7501,18 @@ type TriggerFiringListResponse = {
|
|
|
7497
7501
|
limit?: number;
|
|
7498
7502
|
offset?: number;
|
|
7499
7503
|
};
|
|
7504
|
+
/**
|
|
7505
|
+
* Send at least one field.
|
|
7506
|
+
*/
|
|
7500
7507
|
type UserUpdate = {
|
|
7501
7508
|
/**
|
|
7502
7509
|
* Display name; null clears it.
|
|
7503
7510
|
*/
|
|
7504
|
-
name
|
|
7511
|
+
name?: string | null;
|
|
7512
|
+
/**
|
|
7513
|
+
* Email the account at 75%, 90% and 100% of its model credit, runs and indexed storage.
|
|
7514
|
+
*/
|
|
7515
|
+
usage_alerts?: boolean;
|
|
7505
7516
|
};
|
|
7506
7517
|
type UserBilling = {
|
|
7507
7518
|
/**
|
|
@@ -24714,7 +24725,9 @@ export declare class Users {
|
|
|
24714
24725
|
/**
|
|
24715
24726
|
* Update the current user
|
|
24716
24727
|
*
|
|
24717
|
-
* Edits the account's display name
|
|
24728
|
+
* Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name.
|
|
24729
|
+
*
|
|
24730
|
+
* With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.
|
|
24718
24731
|
*
|
|
24719
24732
|
*/
|
|
24720
24733
|
static updateCurrentUser<ThrowOnError extends boolean = false>(options: Options<UpdateCurrentUserData, ThrowOnError>): RequestResult<UpdateCurrentUserResponses, UpdateCurrentUserErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -524,6 +524,10 @@ type User = {
|
|
|
524
524
|
* Roles on naturali itself, not on a project. Empty for almost every account; `admin` marks a naturali operator.
|
|
525
525
|
*/
|
|
526
526
|
roles: Array<'admin'>;
|
|
527
|
+
/**
|
|
528
|
+
* Whether the account is emailed when its model credit, runs or indexed storage reaches 75%, 90% and 100%. On for a new account.
|
|
529
|
+
*/
|
|
530
|
+
usage_alerts: boolean;
|
|
527
531
|
created_at: Date;
|
|
528
532
|
};
|
|
529
533
|
type AdminUser = User & {
|
|
@@ -7497,11 +7501,18 @@ type TriggerFiringListResponse = {
|
|
|
7497
7501
|
limit?: number;
|
|
7498
7502
|
offset?: number;
|
|
7499
7503
|
};
|
|
7504
|
+
/**
|
|
7505
|
+
* Send at least one field.
|
|
7506
|
+
*/
|
|
7500
7507
|
type UserUpdate = {
|
|
7501
7508
|
/**
|
|
7502
7509
|
* Display name; null clears it.
|
|
7503
7510
|
*/
|
|
7504
|
-
name
|
|
7511
|
+
name?: string | null;
|
|
7512
|
+
/**
|
|
7513
|
+
* Email the account at 75%, 90% and 100% of its model credit, runs and indexed storage.
|
|
7514
|
+
*/
|
|
7515
|
+
usage_alerts?: boolean;
|
|
7505
7516
|
};
|
|
7506
7517
|
type UserBilling = {
|
|
7507
7518
|
/**
|
|
@@ -24714,7 +24725,9 @@ export declare class Users {
|
|
|
24714
24725
|
/**
|
|
24715
24726
|
* Update the current user
|
|
24716
24727
|
*
|
|
24717
|
-
* Edits the account's display name
|
|
24728
|
+
* Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name.
|
|
24729
|
+
*
|
|
24730
|
+
* With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.
|
|
24718
24731
|
*
|
|
24719
24732
|
*/
|
|
24720
24733
|
static updateCurrentUser<ThrowOnError extends boolean = false>(options: Options<UpdateCurrentUserData, ThrowOnError>): RequestResult<UpdateCurrentUserResponses, UpdateCurrentUserErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -4914,7 +4914,9 @@ var Users = class {
|
|
|
4914
4914
|
/**
|
|
4915
4915
|
* Update the current user
|
|
4916
4916
|
*
|
|
4917
|
-
* Edits the account's display name
|
|
4917
|
+
* Edits the account's display name and whether it receives usage alerts. At least one field is required, so a request that misspelled a field is rejected rather than answered with a silent 200. Send `name: null` to clear the name.
|
|
4918
|
+
*
|
|
4919
|
+
* With `usage_alerts` on, the account is emailed once each time its model credit, its runs this month or its indexed storage reaches 75%, 90% and 100%. Credit is measured as the share spent this month of what the month had available, so a top-up lowers it. Usage falling back below a level re-arms that level. Figures are read every 15 minutes, so an alert can arrive up to that long after the crossing.
|
|
4918
4920
|
*
|
|
4919
4921
|
*/
|
|
4920
4922
|
static updateCurrentUser(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.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.153.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|