@soat/sdk 0.42.0 → 0.43.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 +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2969,7 +2969,7 @@ var Orchestrations = class {
|
|
|
2969
2969
|
/**
|
|
2970
2970
|
* List orchestration runs
|
|
2971
2971
|
*
|
|
2972
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
2972
|
+
* 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.
|
|
2973
2973
|
*
|
|
2974
2974
|
* 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.
|
|
2975
2975
|
*/
|
|
@@ -3244,7 +3244,7 @@ var Quotas = class {
|
|
|
3244
3244
|
/**
|
|
3245
3245
|
* Create a quota
|
|
3246
3246
|
*
|
|
3247
|
-
* 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.
|
|
3247
|
+
* 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.
|
|
3248
3248
|
*/
|
|
3249
3249
|
static createQuota(options) {
|
|
3250
3250
|
return (options.client ?? client).post({
|
|
@@ -3551,7 +3551,7 @@ var Tasks = class {
|
|
|
3551
3551
|
/**
|
|
3552
3552
|
* List tasks
|
|
3553
3553
|
*
|
|
3554
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3554
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3555
3555
|
*/
|
|
3556
3556
|
static listTasks(options) {
|
|
3557
3557
|
return (options?.client ?? client).get({
|
package/dist/index.d.cts
CHANGED
|
@@ -3099,7 +3099,7 @@ type WorkflowResourceProperties = {
|
|
|
3099
3099
|
} | null;
|
|
3100
3100
|
};
|
|
3101
3101
|
/**
|
|
3102
|
-
* 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 `
|
|
3102
|
+
* 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).
|
|
3103
3103
|
*/
|
|
3104
3104
|
type QuotaResourceProperties = {
|
|
3105
3105
|
/**
|
|
@@ -3130,6 +3130,10 @@ type QuotaResourceProperties = {
|
|
|
3130
3130
|
* 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.
|
|
3131
3131
|
*/
|
|
3132
3132
|
on_unpriced?: 'block' | 'allow';
|
|
3133
|
+
/**
|
|
3134
|
+
* 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.
|
|
3135
|
+
*/
|
|
3136
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
3133
3137
|
};
|
|
3134
3138
|
/**
|
|
3135
3139
|
* 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.
|
|
@@ -5045,6 +5049,10 @@ type Quota = {
|
|
|
5045
5049
|
window?: 'rolling_1m' | 'rolling_1h' | 'rolling_24h' | 'calendar_month';
|
|
5046
5050
|
limit?: number;
|
|
5047
5051
|
mode?: 'enforce' | 'monitor';
|
|
5052
|
+
/**
|
|
5053
|
+
* The meter a cost_usd cap answers for. Null is every priced meter, which is what a quota created without one carries.
|
|
5054
|
+
*/
|
|
5055
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage' | null;
|
|
5048
5056
|
/**
|
|
5049
5057
|
* 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.
|
|
5050
5058
|
*/
|
|
@@ -13675,6 +13683,12 @@ type ListOrchestrationRunsData = {
|
|
|
13675
13683
|
* Contradicting `parent_orchestration_run_id` with `nested=false` is a `400`; any value other than `true` or `false` is a `400`.
|
|
13676
13684
|
*/
|
|
13677
13685
|
nested?: boolean;
|
|
13686
|
+
/**
|
|
13687
|
+
* 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.
|
|
13688
|
+
*
|
|
13689
|
+
* 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`.
|
|
13690
|
+
*/
|
|
13691
|
+
status?: Array<'queued' | 'running' | 'sleeping' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled' | 'expired'>;
|
|
13678
13692
|
/**
|
|
13679
13693
|
* Maximum number of results to return
|
|
13680
13694
|
*/
|
|
@@ -14459,6 +14473,10 @@ type CreateQuotaData = {
|
|
|
14459
14473
|
* 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.
|
|
14460
14474
|
*/
|
|
14461
14475
|
on_unpriced?: 'block' | 'allow';
|
|
14476
|
+
/**
|
|
14477
|
+
* 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.
|
|
14478
|
+
*/
|
|
14479
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
14462
14480
|
};
|
|
14463
14481
|
path?: never;
|
|
14464
14482
|
query?: never;
|
|
@@ -15334,6 +15352,12 @@ type ListTasksData = {
|
|
|
15334
15352
|
workflow_id?: string;
|
|
15335
15353
|
state?: string;
|
|
15336
15354
|
status?: 'open' | 'closed';
|
|
15355
|
+
/**
|
|
15356
|
+
* 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".
|
|
15357
|
+
*
|
|
15358
|
+
* A value outside the enum, empty string included, is a `400`.
|
|
15359
|
+
*/
|
|
15360
|
+
automation_status?: Array<'running' | 'completed' | 'failed' | 'unrouted' | 'paused' | 'none'>;
|
|
15337
15361
|
assignee?: string;
|
|
15338
15362
|
/**
|
|
15339
15363
|
* Maximum number of results to return
|
|
@@ -18672,7 +18696,7 @@ declare class Orchestrations {
|
|
|
18672
18696
|
/**
|
|
18673
18697
|
* List orchestration runs
|
|
18674
18698
|
*
|
|
18675
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
18699
|
+
* 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.
|
|
18676
18700
|
*
|
|
18677
18701
|
* 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.
|
|
18678
18702
|
*/
|
|
@@ -18811,7 +18835,7 @@ declare class Quotas {
|
|
|
18811
18835
|
/**
|
|
18812
18836
|
* Create a quota
|
|
18813
18837
|
*
|
|
18814
|
-
* 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.
|
|
18838
|
+
* 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.
|
|
18815
18839
|
*/
|
|
18816
18840
|
static createQuota<ThrowOnError extends boolean = false>(options: Options<CreateQuotaData, ThrowOnError>): RequestResult<CreateQuotaResponses, CreateQuotaErrors, ThrowOnError>;
|
|
18817
18841
|
/**
|
|
@@ -18960,7 +18984,7 @@ declare class Tasks {
|
|
|
18960
18984
|
/**
|
|
18961
18985
|
* List tasks
|
|
18962
18986
|
*
|
|
18963
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
18987
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
18964
18988
|
*/
|
|
18965
18989
|
static listTasks<ThrowOnError extends boolean = false>(options?: Options<ListTasksData, ThrowOnError>): RequestResult<ListTasksResponses, ListTasksErrors, ThrowOnError>;
|
|
18966
18990
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -3099,7 +3099,7 @@ type WorkflowResourceProperties = {
|
|
|
3099
3099
|
} | null;
|
|
3100
3100
|
};
|
|
3101
3101
|
/**
|
|
3102
|
-
* 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 `
|
|
3102
|
+
* 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).
|
|
3103
3103
|
*/
|
|
3104
3104
|
type QuotaResourceProperties = {
|
|
3105
3105
|
/**
|
|
@@ -3130,6 +3130,10 @@ type QuotaResourceProperties = {
|
|
|
3130
3130
|
* 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.
|
|
3131
3131
|
*/
|
|
3132
3132
|
on_unpriced?: 'block' | 'allow';
|
|
3133
|
+
/**
|
|
3134
|
+
* 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.
|
|
3135
|
+
*/
|
|
3136
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
3133
3137
|
};
|
|
3134
3138
|
/**
|
|
3135
3139
|
* 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.
|
|
@@ -5045,6 +5049,10 @@ type Quota = {
|
|
|
5045
5049
|
window?: 'rolling_1m' | 'rolling_1h' | 'rolling_24h' | 'calendar_month';
|
|
5046
5050
|
limit?: number;
|
|
5047
5051
|
mode?: 'enforce' | 'monitor';
|
|
5052
|
+
/**
|
|
5053
|
+
* The meter a cost_usd cap answers for. Null is every priced meter, which is what a quota created without one carries.
|
|
5054
|
+
*/
|
|
5055
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage' | null;
|
|
5048
5056
|
/**
|
|
5049
5057
|
* 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.
|
|
5050
5058
|
*/
|
|
@@ -13675,6 +13683,12 @@ type ListOrchestrationRunsData = {
|
|
|
13675
13683
|
* Contradicting `parent_orchestration_run_id` with `nested=false` is a `400`; any value other than `true` or `false` is a `400`.
|
|
13676
13684
|
*/
|
|
13677
13685
|
nested?: boolean;
|
|
13686
|
+
/**
|
|
13687
|
+
* 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.
|
|
13688
|
+
*
|
|
13689
|
+
* 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`.
|
|
13690
|
+
*/
|
|
13691
|
+
status?: Array<'queued' | 'running' | 'sleeping' | 'awaiting_input' | 'succeeded' | 'failed' | 'cancelled' | 'expired'>;
|
|
13678
13692
|
/**
|
|
13679
13693
|
* Maximum number of results to return
|
|
13680
13694
|
*/
|
|
@@ -14459,6 +14473,10 @@ type CreateQuotaData = {
|
|
|
14459
14473
|
* 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.
|
|
14460
14474
|
*/
|
|
14461
14475
|
on_unpriced?: 'block' | 'allow';
|
|
14476
|
+
/**
|
|
14477
|
+
* 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.
|
|
14478
|
+
*/
|
|
14479
|
+
meter_type?: 'llm_tokens' | 'compute_execution' | 'api_request' | 'storage';
|
|
14462
14480
|
};
|
|
14463
14481
|
path?: never;
|
|
14464
14482
|
query?: never;
|
|
@@ -15334,6 +15352,12 @@ type ListTasksData = {
|
|
|
15334
15352
|
workflow_id?: string;
|
|
15335
15353
|
state?: string;
|
|
15336
15354
|
status?: 'open' | 'closed';
|
|
15355
|
+
/**
|
|
15356
|
+
* 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".
|
|
15357
|
+
*
|
|
15358
|
+
* A value outside the enum, empty string included, is a `400`.
|
|
15359
|
+
*/
|
|
15360
|
+
automation_status?: Array<'running' | 'completed' | 'failed' | 'unrouted' | 'paused' | 'none'>;
|
|
15337
15361
|
assignee?: string;
|
|
15338
15362
|
/**
|
|
15339
15363
|
* Maximum number of results to return
|
|
@@ -18672,7 +18696,7 @@ declare class Orchestrations {
|
|
|
18672
18696
|
/**
|
|
18673
18697
|
* List orchestration runs
|
|
18674
18698
|
*
|
|
18675
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
18699
|
+
* 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.
|
|
18676
18700
|
*
|
|
18677
18701
|
* 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.
|
|
18678
18702
|
*/
|
|
@@ -18811,7 +18835,7 @@ declare class Quotas {
|
|
|
18811
18835
|
/**
|
|
18812
18836
|
* Create a quota
|
|
18813
18837
|
*
|
|
18814
|
-
* 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.
|
|
18838
|
+
* 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.
|
|
18815
18839
|
*/
|
|
18816
18840
|
static createQuota<ThrowOnError extends boolean = false>(options: Options<CreateQuotaData, ThrowOnError>): RequestResult<CreateQuotaResponses, CreateQuotaErrors, ThrowOnError>;
|
|
18817
18841
|
/**
|
|
@@ -18960,7 +18984,7 @@ declare class Tasks {
|
|
|
18960
18984
|
/**
|
|
18961
18985
|
* List tasks
|
|
18962
18986
|
*
|
|
18963
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
18987
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
18964
18988
|
*/
|
|
18965
18989
|
static listTasks<ThrowOnError extends boolean = false>(options?: Options<ListTasksData, ThrowOnError>): RequestResult<ListTasksResponses, ListTasksErrors, ThrowOnError>;
|
|
18966
18990
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2968,7 +2968,7 @@ var Orchestrations = class {
|
|
|
2968
2968
|
/**
|
|
2969
2969
|
* List orchestration runs
|
|
2970
2970
|
*
|
|
2971
|
-
* Returns orchestration runs the caller can access, optionally filtered by orchestration, by parent run, or by whether the run has a parent at all.
|
|
2971
|
+
* 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.
|
|
2972
2972
|
*
|
|
2973
2973
|
* 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.
|
|
2974
2974
|
*/
|
|
@@ -3243,7 +3243,7 @@ var Quotas = class {
|
|
|
3243
3243
|
/**
|
|
3244
3244
|
* Create a quota
|
|
3245
3245
|
*
|
|
3246
|
-
* 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.
|
|
3246
|
+
* 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.
|
|
3247
3247
|
*/
|
|
3248
3248
|
static createQuota(options) {
|
|
3249
3249
|
return (options.client ?? client).post({
|
|
@@ -3550,7 +3550,7 @@ var Tasks = class {
|
|
|
3550
3550
|
/**
|
|
3551
3551
|
* List tasks
|
|
3552
3552
|
*
|
|
3553
|
-
* Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3553
|
+
* Lists tasks (the board query). Filter by workflow, state, status, automation status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.
|
|
3554
3554
|
*/
|
|
3555
3555
|
static listTasks(options) {
|
|
3556
3556
|
return (options?.client ?? client).get({
|