@naturali/sdk 0.116.0 → 0.117.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 -3
- package/dist/index.d.cts +28 -4
- package/dist/index.d.mts +28 -4
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3359,7 +3359,7 @@ var Orchestrations = class {
|
|
|
3359
3359
|
/**
|
|
3360
3360
|
* List orchestration runs
|
|
3361
3361
|
*
|
|
3362
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
3362
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all.
|
|
3363
3363
|
*
|
|
3364
3364
|
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
3365
3365
|
*/
|
|
@@ -3574,7 +3574,7 @@ var Quotas = class {
|
|
|
3574
3574
|
/**
|
|
3575
3575
|
* Create a quota
|
|
3576
3576
|
*
|
|
3577
|
-
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
3577
|
+
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
3578
3578
|
*/
|
|
3579
3579
|
static createQuota(options) {
|
|
3580
3580
|
return (options.client ?? client).post({
|
|
@@ -3881,7 +3881,7 @@ var Tasks = class {
|
|
|
3881
3881
|
/**
|
|
3882
3882
|
* List tasks
|
|
3883
3883
|
*
|
|
3884
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3884
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3885
3885
|
*/
|
|
3886
3886
|
static listTasks(options) {
|
|
3887
3887
|
return (options.client ?? client).get({
|
package/dist/index.d.cts
CHANGED
|
@@ -3605,7 +3605,7 @@ type WorkflowResourceProperties = {
|
|
|
3605
3605
|
} | null;
|
|
3606
3606
|
};
|
|
3607
3607
|
/**
|
|
3608
|
-
* Creates a quota — a project-scoped cap that blocks (`enforce`) or reports (`monitor`) when a windowed aggregate is exceeded. `requests` quotas are enforced by the request middleware; `tokens`/`cost_usd` quotas at the pre-generation check. Mirrors the quotas REST contract; `scope`, `metric`, and `
|
|
3608
|
+
* Creates a quota — a project-scoped cap that blocks (`enforce`) or reports (`monitor`) when a windowed aggregate is exceeded. `requests` quotas are enforced by the request middleware; `tokens`/`cost_usd` quotas at the pre-generation check. Mirrors the quotas REST contract; `scope`, `metric`, `window`, and `meter_type` are immutable after creation (only `limit`, `mode`, and `on_unpriced` update).
|
|
3609
3609
|
*/
|
|
3610
3610
|
type QuotaResourceProperties = {
|
|
3611
3611
|
/**
|
|
@@ -3636,6 +3636,10 @@ type QuotaResourceProperties = {
|
|
|
3636
3636
|
* Only for metric cost_usd. What an enforce quota does over a pricing blackout — block (the default) refuses generations with 409 QUOTA_UNENFORCEABLE, allow accepts the unmeasurable spend. See the quotas REST contract.
|
|
3637
3637
|
*/
|
|
3638
3638
|
on_unpriced?: 'block' | 'allow';
|
|
3639
|
+
/**
|
|
3640
|
+
* Only for metric cost_usd. The meter this cap answers for; omit it and the cap sums every priced meter. See the quotas REST contract.
|
|
3641
|
+
*/
|
|
3642
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
3639
3643
|
};
|
|
3640
3644
|
/**
|
|
3641
3645
|
* Creates a guardrail — an action-class document (`class`/`guard`) that gates tool-call autonomy. Attach it to a tool or agent via that resource's `guardrail_ids` (a `{ "ref": … }` to this resource in the same template resolves to its physical id at deploy time). Mirrors the guardrails REST contract; `class`/`default_class`/`guard`/`escalate` are flattened here from the REST API's single `document` object.
|
|
@@ -5501,6 +5505,10 @@ type Quota = {
|
|
|
5501
5505
|
window?: 'rolling_1m' | 'rolling_1h' | 'rolling_24h' | 'calendar_month';
|
|
5502
5506
|
limit?: number;
|
|
5503
5507
|
mode?: 'enforce' | 'monitor';
|
|
5508
|
+
/**
|
|
5509
|
+
* The meter a cost_usd cap answers for. Null is every priced meter, which is what a quota created without one carries.
|
|
5510
|
+
*/
|
|
5511
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage' | null;
|
|
5504
5512
|
/**
|
|
5505
5513
|
* Pricing posture of a cost_usd quota over an unpriced blackout — block refuses generations, allow lets them through (the quota_unpriced exception is filed either way, and for a partly priced window, which no posture refuses). Null for metrics with no pricing dependency.
|
|
5506
5514
|
*/
|
|
@@ -15570,6 +15578,12 @@ type ListOrchestrationRunsData = {
|
|
|
15570
15578
|
* Contradicting `parent_orchestration_run_id` with `nested=false` is a `400`; any value other than `true` or `false` is a `400`.
|
|
15571
15579
|
*/
|
|
15572
15580
|
nested?: boolean;
|
|
15581
|
+
/**
|
|
15582
|
+
* Filter by run status. Repeat the parameter to OR values — `status=queued&status=running&status=sleeping&status=awaiting_input` is the set still driving, which is how a caller finds live work without paging every run the project ever started.
|
|
15583
|
+
*
|
|
15584
|
+
* There is no `non_terminal` shorthand on purpose: which statuses count as live is the caller's policy. A value outside the enum, empty string included, is a `400`.
|
|
15585
|
+
*/
|
|
15586
|
+
status?: Array<'queued' | 'running' | 'sleeping' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled' | 'expired'>;
|
|
15573
15587
|
/**
|
|
15574
15588
|
* Maximum number of results to return
|
|
15575
15589
|
*/
|
|
@@ -16186,6 +16200,10 @@ type CreateQuotaData = {
|
|
|
16186
16200
|
* Only for metric cost_usd (400 on any other metric). What an enforce quota does when the current window is a pricing blackout — several metered llm_tokens events, none of them priced, so the aggregate is 0 however much was actually spent. Platform meters such as compute_execution are read for the aggregate but never for this verdict. block (the default) refuses new generations with 409 QUOTA_UNENFORCEABLE until pricing is configured; allow accepts the unmeasurable spend explicitly. Either way a quota_unpriced exception is filed. monitor-mode quotas never block regardless. A partly priced window is not a blackout: no posture refuses it, it is enforced on its priced total, and it files the same exception.
|
|
16187
16201
|
*/
|
|
16188
16202
|
on_unpriced?: 'block' | 'allow';
|
|
16203
|
+
/**
|
|
16204
|
+
* Only for metric cost_usd (400 on any other metric). The meter this cap answers for. Omit it and the cap sums every priced meter, which is the existing behaviour; name one and only that meter's cost counts, so an AI spend cap is not consumed by platform meters the operator prices (and vice versa). Part of the quota's identity, so two meter scopes can share a scope/metric/window and neither conflicts with an unscoped cap. Immutable after creation — replace the quota to change it.
|
|
16205
|
+
*/
|
|
16206
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
16189
16207
|
};
|
|
16190
16208
|
path: {
|
|
16191
16209
|
/**
|
|
@@ -17163,6 +17181,12 @@ type ListTasksData = {
|
|
|
17163
17181
|
workflow_id?: string;
|
|
17164
17182
|
state?: string;
|
|
17165
17183
|
status?: 'open' | 'closed';
|
|
17184
|
+
/**
|
|
17185
|
+
* Filter by the current state's dispatch status. Repeat the parameter to OR values. `none` selects the tasks whose `automation_status` is `null` — the ones that never entered a state with an automation. It is a value a task really holds, so it is a value of the filter too; the parameter's own absence already means "every task".
|
|
17186
|
+
*
|
|
17187
|
+
* A value outside the enum, empty string included, is a `400`.
|
|
17188
|
+
*/
|
|
17189
|
+
automation_status?: Array<'running' | 'completed' | 'failed' | 'unrouted' | 'paused' | 'none'>;
|
|
17166
17190
|
assignee?: string;
|
|
17167
17191
|
/**
|
|
17168
17192
|
* Maximum number of results to return
|
|
@@ -20419,7 +20443,7 @@ declare class Orchestrations {
|
|
|
20419
20443
|
/**
|
|
20420
20444
|
* List orchestration runs
|
|
20421
20445
|
*
|
|
20422
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
20446
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all.
|
|
20423
20447
|
*
|
|
20424
20448
|
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
20425
20449
|
*/
|
|
@@ -20539,7 +20563,7 @@ declare class Quotas {
|
|
|
20539
20563
|
/**
|
|
20540
20564
|
* Create a quota
|
|
20541
20565
|
*
|
|
20542
|
-
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
20566
|
+
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
20543
20567
|
*/
|
|
20544
20568
|
static createQuota<ThrowOnError extends boolean = false>(options: Options<CreateQuotaData, ThrowOnError>): RequestResult<CreateQuotaResponses, CreateQuotaErrors, ThrowOnError>;
|
|
20545
20569
|
/**
|
|
@@ -20688,7 +20712,7 @@ declare class Tasks {
|
|
|
20688
20712
|
/**
|
|
20689
20713
|
* List tasks
|
|
20690
20714
|
*
|
|
20691
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
20715
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
20692
20716
|
*/
|
|
20693
20717
|
static listTasks<ThrowOnError extends boolean = false>(options: Options<ListTasksData, ThrowOnError>): RequestResult<ListTasksResponses, ListTasksErrors, ThrowOnError>;
|
|
20694
20718
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -3605,7 +3605,7 @@ type WorkflowResourceProperties = {
|
|
|
3605
3605
|
} | null;
|
|
3606
3606
|
};
|
|
3607
3607
|
/**
|
|
3608
|
-
* Creates a quota — a project-scoped cap that blocks (`enforce`) or reports (`monitor`) when a windowed aggregate is exceeded. `requests` quotas are enforced by the request middleware; `tokens`/`cost_usd` quotas at the pre-generation check. Mirrors the quotas REST contract; `scope`, `metric`, and `
|
|
3608
|
+
* Creates a quota — a project-scoped cap that blocks (`enforce`) or reports (`monitor`) when a windowed aggregate is exceeded. `requests` quotas are enforced by the request middleware; `tokens`/`cost_usd` quotas at the pre-generation check. Mirrors the quotas REST contract; `scope`, `metric`, `window`, and `meter_type` are immutable after creation (only `limit`, `mode`, and `on_unpriced` update).
|
|
3609
3609
|
*/
|
|
3610
3610
|
type QuotaResourceProperties = {
|
|
3611
3611
|
/**
|
|
@@ -3636,6 +3636,10 @@ type QuotaResourceProperties = {
|
|
|
3636
3636
|
* Only for metric cost_usd. What an enforce quota does over a pricing blackout — block (the default) refuses generations with 409 QUOTA_UNENFORCEABLE, allow accepts the unmeasurable spend. See the quotas REST contract.
|
|
3637
3637
|
*/
|
|
3638
3638
|
on_unpriced?: 'block' | 'allow';
|
|
3639
|
+
/**
|
|
3640
|
+
* Only for metric cost_usd. The meter this cap answers for; omit it and the cap sums every priced meter. See the quotas REST contract.
|
|
3641
|
+
*/
|
|
3642
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
3639
3643
|
};
|
|
3640
3644
|
/**
|
|
3641
3645
|
* Creates a guardrail — an action-class document (`class`/`guard`) that gates tool-call autonomy. Attach it to a tool or agent via that resource's `guardrail_ids` (a `{ "ref": … }` to this resource in the same template resolves to its physical id at deploy time). Mirrors the guardrails REST contract; `class`/`default_class`/`guard`/`escalate` are flattened here from the REST API's single `document` object.
|
|
@@ -5501,6 +5505,10 @@ type Quota = {
|
|
|
5501
5505
|
window?: 'rolling_1m' | 'rolling_1h' | 'rolling_24h' | 'calendar_month';
|
|
5502
5506
|
limit?: number;
|
|
5503
5507
|
mode?: 'enforce' | 'monitor';
|
|
5508
|
+
/**
|
|
5509
|
+
* The meter a cost_usd cap answers for. Null is every priced meter, which is what a quota created without one carries.
|
|
5510
|
+
*/
|
|
5511
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage' | null;
|
|
5504
5512
|
/**
|
|
5505
5513
|
* Pricing posture of a cost_usd quota over an unpriced blackout — block refuses generations, allow lets them through (the quota_unpriced exception is filed either way, and for a partly priced window, which no posture refuses). Null for metrics with no pricing dependency.
|
|
5506
5514
|
*/
|
|
@@ -15570,6 +15578,12 @@ type ListOrchestrationRunsData = {
|
|
|
15570
15578
|
* Contradicting `parent_orchestration_run_id` with `nested=false` is a `400`; any value other than `true` or `false` is a `400`.
|
|
15571
15579
|
*/
|
|
15572
15580
|
nested?: boolean;
|
|
15581
|
+
/**
|
|
15582
|
+
* Filter by run status. Repeat the parameter to OR values — `status=queued&status=running&status=sleeping&status=awaiting_input` is the set still driving, which is how a caller finds live work without paging every run the project ever started.
|
|
15583
|
+
*
|
|
15584
|
+
* There is no `non_terminal` shorthand on purpose: which statuses count as live is the caller's policy. A value outside the enum, empty string included, is a `400`.
|
|
15585
|
+
*/
|
|
15586
|
+
status?: Array<'queued' | 'running' | 'sleeping' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled' | 'expired'>;
|
|
15573
15587
|
/**
|
|
15574
15588
|
* Maximum number of results to return
|
|
15575
15589
|
*/
|
|
@@ -16186,6 +16200,10 @@ type CreateQuotaData = {
|
|
|
16186
16200
|
* Only for metric cost_usd (400 on any other metric). What an enforce quota does when the current window is a pricing blackout — several metered llm_tokens events, none of them priced, so the aggregate is 0 however much was actually spent. Platform meters such as compute_execution are read for the aggregate but never for this verdict. block (the default) refuses new generations with 409 QUOTA_UNENFORCEABLE until pricing is configured; allow accepts the unmeasurable spend explicitly. Either way a quota_unpriced exception is filed. monitor-mode quotas never block regardless. A partly priced window is not a blackout: no posture refuses it, it is enforced on its priced total, and it files the same exception.
|
|
16187
16201
|
*/
|
|
16188
16202
|
on_unpriced?: 'block' | 'allow';
|
|
16203
|
+
/**
|
|
16204
|
+
* Only for metric cost_usd (400 on any other metric). The meter this cap answers for. Omit it and the cap sums every priced meter, which is the existing behaviour; name one and only that meter's cost counts, so an AI spend cap is not consumed by platform meters the operator prices (and vice versa). Part of the quota's identity, so two meter scopes can share a scope/metric/window and neither conflicts with an unscoped cap. Immutable after creation — replace the quota to change it.
|
|
16205
|
+
*/
|
|
16206
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
16189
16207
|
};
|
|
16190
16208
|
path: {
|
|
16191
16209
|
/**
|
|
@@ -17163,6 +17181,12 @@ type ListTasksData = {
|
|
|
17163
17181
|
workflow_id?: string;
|
|
17164
17182
|
state?: string;
|
|
17165
17183
|
status?: 'open' | 'closed';
|
|
17184
|
+
/**
|
|
17185
|
+
* Filter by the current state's dispatch status. Repeat the parameter to OR values. `none` selects the tasks whose `automation_status` is `null` — the ones that never entered a state with an automation. It is a value a task really holds, so it is a value of the filter too; the parameter's own absence already means "every task".
|
|
17186
|
+
*
|
|
17187
|
+
* A value outside the enum, empty string included, is a `400`.
|
|
17188
|
+
*/
|
|
17189
|
+
automation_status?: Array<'running' | 'completed' | 'failed' | 'unrouted' | 'paused' | 'none'>;
|
|
17166
17190
|
assignee?: string;
|
|
17167
17191
|
/**
|
|
17168
17192
|
* Maximum number of results to return
|
|
@@ -20419,7 +20443,7 @@ declare class Orchestrations {
|
|
|
20419
20443
|
/**
|
|
20420
20444
|
* List orchestration runs
|
|
20421
20445
|
*
|
|
20422
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
20446
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all.
|
|
20423
20447
|
*
|
|
20424
20448
|
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
20425
20449
|
*/
|
|
@@ -20539,7 +20563,7 @@ declare class Quotas {
|
|
|
20539
20563
|
/**
|
|
20540
20564
|
* Create a quota
|
|
20541
20565
|
*
|
|
20542
|
-
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
20566
|
+
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
20543
20567
|
*/
|
|
20544
20568
|
static createQuota<ThrowOnError extends boolean = false>(options: Options<CreateQuotaData, ThrowOnError>): RequestResult<CreateQuotaResponses, CreateQuotaErrors, ThrowOnError>;
|
|
20545
20569
|
/**
|
|
@@ -20688,7 +20712,7 @@ declare class Tasks {
|
|
|
20688
20712
|
/**
|
|
20689
20713
|
* List tasks
|
|
20690
20714
|
*
|
|
20691
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
20715
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
20692
20716
|
*/
|
|
20693
20717
|
static listTasks<ThrowOnError extends boolean = false>(options: Options<ListTasksData, ThrowOnError>): RequestResult<ListTasksResponses, ListTasksErrors, ThrowOnError>;
|
|
20694
20718
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -3358,7 +3358,7 @@ var Orchestrations = class {
|
|
|
3358
3358
|
/**
|
|
3359
3359
|
* List orchestration runs
|
|
3360
3360
|
*
|
|
3361
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
3361
|
+
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, by status, or by whether the run has a parent at all.
|
|
3362
3362
|
*
|
|
3363
3363
|
* Note when aggregating: a run's `usage` covers its whole subtree, so summing it over a list that contains both a parent and its children counts the children more than once. Pass `nested=false` to sum over runs a caller started.
|
|
3364
3364
|
*/
|
|
@@ -3573,7 +3573,7 @@ var Quotas = class {
|
|
|
3573
3573
|
/**
|
|
3574
3574
|
* Create a quota
|
|
3575
3575
|
*
|
|
3576
|
-
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.
|
|
3576
|
+
* Creates a project-scoped quota. `requests` is valid for `scope: project`/`api_key`; `tokens` and `cost_usd` are valid for `scope: project`/`agent`/`actor`. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An `actor` quota caps one end user's spend, matched from the generation's session; a null `scope_ref` means one budget *per* actor rather than a pooled project total. A `cost_usd` quota may name one `meter_type` to cap; omitting it caps every priced meter. A duplicate quota (same project, scope, scope_ref, metric, window, meter_type) is rejected with 409.
|
|
3577
3577
|
*/
|
|
3578
3578
|
static createQuota(options) {
|
|
3579
3579
|
return (options.client ?? client).post({
|
|
@@ -3880,7 +3880,7 @@ var Tasks = class {
|
|
|
3880
3880
|
/**
|
|
3881
3881
|
* List tasks
|
|
3882
3882
|
*
|
|
3883
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3883
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3884
3884
|
*/
|
|
3885
3885
|
static listTasks(options) {
|
|
3886
3886
|
return (options.client ?? client).get({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.117.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.
|
|
40
|
+
"@naturali/api": "0.117.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|