@naturali/sdk 0.272.0 → 0.273.1

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
@@ -5260,7 +5260,7 @@ var Projects = class {
5260
5260
  *
5261
5261
  * Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
5262
5262
  * What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
5263
- * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
5263
+ * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.
5264
5264
  *
5265
5265
  */
5266
5266
  static pauseProject(options) {
@@ -5276,7 +5276,7 @@ var Projects = class {
5276
5276
  /**
5277
5277
  * Resume a project
5278
5278
  *
5279
- * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.
5279
+ * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.
5280
5280
  *
5281
5281
  */
5282
5282
  static resumeProject(options) {
@@ -5471,7 +5471,7 @@ var Projects = class {
5471
5471
  /**
5472
5472
  * List usage thresholds
5473
5473
  *
5474
- * The spend alerts this project has set. A threshold fires the usage.threshold_crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
5474
+ * The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
5475
5475
  *
5476
5476
  */
5477
5477
  static listProjectUsageThresholds(options) {
@@ -5483,7 +5483,7 @@ var Projects = class {
5483
5483
  /**
5484
5484
  * Set a usage threshold
5485
5485
  *
5486
- * Creates an alert on this project's windowed usage. Crossing it fires usage.threshold_crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
5486
+ * Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
5487
5487
  *
5488
5488
  * Requires the admin role: an alerting rule belongs to the account that pays, not to one member.
5489
5489
  *
package/dist/index.d.cts CHANGED
@@ -2951,7 +2951,7 @@ type ConversationMessage = {
2951
2951
  [key: string]: unknown;
2952
2952
  } | null;
2953
2953
  /**
2954
- * The channel provider's id for an inbound message — the `provider_message_id` its `message.received` event carried. Null for a reply.
2954
+ * The channel provider's id for an inbound message — the `provider_message_id` its `messages.received` event carried. Null for a reply.
2955
2955
  *
2956
2956
  */
2957
2957
  provider_message_id?: string | null;
@@ -10294,9 +10294,9 @@ type UserPlanChange = {
10294
10294
  * A naturali event type. Its values are what this API emits — deliberately only the events it can itself cause, so no declared name is one that never fires. It grows as modules land.
10295
10295
  *
10296
10296
  */
10297
- type EventType = 'conversation.started' | 'message.received' | 'generation.completed' | 'generation.failed' | 'usage.threshold_crossed' | 'project.paused' | 'project.resumed' | 'decision.completed' | 'decision.failed' | 'task.created' | 'task.transitioned' | 'task.closed' | 'task.migrated' | 'task.stalled' | 'task.paused' | 'task.resumed' | 'task.approval_failed' | 'task.automation_retrying' | 'task.automation_rejected' | 'task.automation_unrouted' | 'task.unblocked' | 'approval.created' | 'approval.approved' | 'approval.rejected' | 'approval.expired' | 'exception.created';
10297
+ type EventType = 'conversations.started' | 'messages.received' | 'generations.completed' | 'generations.failed' | 'usage_thresholds.crossed' | 'projects.paused' | 'projects.resumed' | 'decisions.completed' | 'decisions.failed' | 'tasks.created' | 'tasks.transitioned' | 'tasks.closed' | 'tasks.migrated' | 'tasks.stalled' | 'tasks.paused' | 'tasks.resumed' | 'tasks.approval_failed' | 'tasks.automation_retrying' | 'tasks.automation_rejected' | 'tasks.automation_unrouted' | 'tasks.unblocked' | 'approvals.created' | 'approvals.approved' | 'approvals.rejected' | 'approvals.expired' | 'exceptions.created';
10298
10298
  /**
10299
- * Which events this endpoint receives. Each entry is an exact type (`generation.completed`), a resource wildcard (`generation.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.
10299
+ * Which events this endpoint receives. Each entry is an exact type (`generations.completed`), a resource wildcard (`generations.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.
10300
10300
  *
10301
10301
  */
10302
10302
  type EventSubscription = Array<string>;
@@ -10321,7 +10321,7 @@ type Event = {
10321
10321
  */
10322
10322
  resource_id: string;
10323
10323
  /**
10324
- * The resource, shaped exactly as its own API returns it — a `generation.completed` payload carries the same object `getGeneration` would.
10324
+ * The resource, shaped exactly as its own API returns it — a `generations.completed` payload carries the same object `getGeneration` would.
10325
10325
  *
10326
10326
  */
10327
10327
  data: {
@@ -39406,14 +39406,14 @@ export declare class Projects {
39406
39406
  *
39407
39407
  * Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
39408
39408
  * What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
39409
- * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
39409
+ * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.
39410
39410
  *
39411
39411
  */
39412
39412
  static pauseProject<ThrowOnError extends boolean = false>(options: Options<PauseProjectData, ThrowOnError>): RequestResult<PauseProjectResponses, PauseProjectErrors, ThrowOnError>;
39413
39413
  /**
39414
39414
  * Resume a project
39415
39415
  *
39416
- * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.
39416
+ * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.
39417
39417
  *
39418
39418
  */
39419
39419
  static resumeProject<ThrowOnError extends boolean = false>(options: Options<ResumeProjectData, ThrowOnError>): RequestResult<ResumeProjectResponses, ResumeProjectErrors, ThrowOnError>;
@@ -39526,14 +39526,14 @@ export declare class Projects {
39526
39526
  /**
39527
39527
  * List usage thresholds
39528
39528
  *
39529
- * The spend alerts this project has set. A threshold fires the usage.threshold_crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
39529
+ * The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
39530
39530
  *
39531
39531
  */
39532
39532
  static listProjectUsageThresholds<ThrowOnError extends boolean = false>(options: Options<ListProjectUsageThresholdsData, ThrowOnError>): RequestResult<ListProjectUsageThresholdsResponses, ListProjectUsageThresholdsErrors, ThrowOnError>;
39533
39533
  /**
39534
39534
  * Set a usage threshold
39535
39535
  *
39536
- * Creates an alert on this project's windowed usage. Crossing it fires usage.threshold_crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
39536
+ * Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
39537
39537
  *
39538
39538
  * Requires the admin role: an alerting rule belongs to the account that pays, not to one member.
39539
39539
  *
package/dist/index.d.mts CHANGED
@@ -2951,7 +2951,7 @@ type ConversationMessage = {
2951
2951
  [key: string]: unknown;
2952
2952
  } | null;
2953
2953
  /**
2954
- * The channel provider's id for an inbound message — the `provider_message_id` its `message.received` event carried. Null for a reply.
2954
+ * The channel provider's id for an inbound message — the `provider_message_id` its `messages.received` event carried. Null for a reply.
2955
2955
  *
2956
2956
  */
2957
2957
  provider_message_id?: string | null;
@@ -10294,9 +10294,9 @@ type UserPlanChange = {
10294
10294
  * A naturali event type. Its values are what this API emits — deliberately only the events it can itself cause, so no declared name is one that never fires. It grows as modules land.
10295
10295
  *
10296
10296
  */
10297
- type EventType = 'conversation.started' | 'message.received' | 'generation.completed' | 'generation.failed' | 'usage.threshold_crossed' | 'project.paused' | 'project.resumed' | 'decision.completed' | 'decision.failed' | 'task.created' | 'task.transitioned' | 'task.closed' | 'task.migrated' | 'task.stalled' | 'task.paused' | 'task.resumed' | 'task.approval_failed' | 'task.automation_retrying' | 'task.automation_rejected' | 'task.automation_unrouted' | 'task.unblocked' | 'approval.created' | 'approval.approved' | 'approval.rejected' | 'approval.expired' | 'exception.created';
10297
+ type EventType = 'conversations.started' | 'messages.received' | 'generations.completed' | 'generations.failed' | 'usage_thresholds.crossed' | 'projects.paused' | 'projects.resumed' | 'decisions.completed' | 'decisions.failed' | 'tasks.created' | 'tasks.transitioned' | 'tasks.closed' | 'tasks.migrated' | 'tasks.stalled' | 'tasks.paused' | 'tasks.resumed' | 'tasks.approval_failed' | 'tasks.automation_retrying' | 'tasks.automation_rejected' | 'tasks.automation_unrouted' | 'tasks.unblocked' | 'approvals.created' | 'approvals.approved' | 'approvals.rejected' | 'approvals.expired' | 'exceptions.created';
10298
10298
  /**
10299
- * Which events this endpoint receives. Each entry is an exact type (`generation.completed`), a resource wildcard (`generation.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.
10299
+ * Which events this endpoint receives. Each entry is an exact type (`generations.completed`), a resource wildcard (`generations.*`), or `*` for everything. A bare resource name (`generation`) matches nothing and is rejected.
10300
10300
  *
10301
10301
  */
10302
10302
  type EventSubscription = Array<string>;
@@ -10321,7 +10321,7 @@ type Event = {
10321
10321
  */
10322
10322
  resource_id: string;
10323
10323
  /**
10324
- * The resource, shaped exactly as its own API returns it — a `generation.completed` payload carries the same object `getGeneration` would.
10324
+ * The resource, shaped exactly as its own API returns it — a `generations.completed` payload carries the same object `getGeneration` would.
10325
10325
  *
10326
10326
  */
10327
10327
  data: {
@@ -39406,14 +39406,14 @@ export declare class Projects {
39406
39406
  *
39407
39407
  * Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
39408
39408
  * What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
39409
- * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
39409
+ * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.
39410
39410
  *
39411
39411
  */
39412
39412
  static pauseProject<ThrowOnError extends boolean = false>(options: Options<PauseProjectData, ThrowOnError>): RequestResult<PauseProjectResponses, PauseProjectErrors, ThrowOnError>;
39413
39413
  /**
39414
39414
  * Resume a project
39415
39415
  *
39416
- * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.
39416
+ * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.
39417
39417
  *
39418
39418
  */
39419
39419
  static resumeProject<ThrowOnError extends boolean = false>(options: Options<ResumeProjectData, ThrowOnError>): RequestResult<ResumeProjectResponses, ResumeProjectErrors, ThrowOnError>;
@@ -39526,14 +39526,14 @@ export declare class Projects {
39526
39526
  /**
39527
39527
  * List usage thresholds
39528
39528
  *
39529
- * The spend alerts this project has set. A threshold fires the usage.threshold_crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
39529
+ * The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
39530
39530
  *
39531
39531
  */
39532
39532
  static listProjectUsageThresholds<ThrowOnError extends boolean = false>(options: Options<ListProjectUsageThresholdsData, ThrowOnError>): RequestResult<ListProjectUsageThresholdsResponses, ListProjectUsageThresholdsErrors, ThrowOnError>;
39533
39533
  /**
39534
39534
  * Set a usage threshold
39535
39535
  *
39536
- * Creates an alert on this project's windowed usage. Crossing it fires usage.threshold_crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
39536
+ * Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
39537
39537
  *
39538
39538
  * Requires the admin role: an alerting rule belongs to the account that pays, not to one member.
39539
39539
  *
package/dist/index.mjs CHANGED
@@ -5259,7 +5259,7 @@ var Projects = class {
5259
5259
  *
5260
5260
  * Stops everything the project runs, with one call. From the moment it answers, nothing new starts: generations, tool calls, orchestration runs, eval runs and trigger fires in the project respond `409` with `PROJECT_PAUSED`, and so does resuming a single run or task the pause holds. A channel keeps receiving messages and answers each with a neutral "can't reply right now" line.
5261
5261
  * What is already in motion is parked, not discarded: live orchestration runs pause at their next checkpoint, open tasks stop dispatching, schedule triggers stop firing and queued eval items wait. A generation already running finishes. Reads and configuration changes keep working.
5262
- * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `project.paused`. Requires the `admin` role.
5262
+ * Idempotent: pausing a paused project answers it unchanged and keeps the first `reason`. Emits `projects.paused`. Requires the `admin` role.
5263
5263
  *
5264
5264
  */
5265
5265
  static pauseProject(options) {
@@ -5275,7 +5275,7 @@ var Projects = class {
5275
5275
  /**
5276
5276
  * Resume a project
5277
5277
  *
5278
- * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `project.resumed`. Requires the `admin` role.
5278
+ * Lifts the project's pause and hands back exactly what it held: the runs and tasks it parked resume, and schedule triggers fire again from their next occurrence after now — an occurrence that fell due while paused is not fired late. A run or task paused on its own before the project was paused stays paused. Emits `projects.resumed`. Requires the `admin` role.
5279
5279
  *
5280
5280
  */
5281
5281
  static resumeProject(options) {
@@ -5470,7 +5470,7 @@ var Projects = class {
5470
5470
  /**
5471
5471
  * List usage thresholds
5472
5472
  *
5473
- * The spend alerts this project has set. A threshold fires the usage.threshold_crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
5473
+ * The spend alerts this project has set. A threshold fires the usage_thresholds.crossed event when the project's windowed usage crosses it, so one is only useful alongside a webhook subscribed to that event.
5474
5474
  *
5475
5475
  */
5476
5476
  static listProjectUsageThresholds(options) {
@@ -5482,7 +5482,7 @@ var Projects = class {
5482
5482
  /**
5483
5483
  * Set a usage threshold
5484
5484
  *
5485
- * Creates an alert on this project's windowed usage. Crossing it fires usage.threshold_crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
5485
+ * Creates an alert on this project's windowed usage. Crossing it fires usage_thresholds.crossed once per window — a calendar_month threshold fires at most once in a month, and a rolling_24h one re-arms when the windowed total falls back below 90% of the threshold, so a total hovering at the line does not alert repeatedly.
5486
5486
  *
5487
5487
  * Requires the admin role: an alerting rule belongs to the account that pays, not to one member.
5488
5488
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.272.0",
3
+ "version": "0.273.1",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.272.0",
41
+ "@naturali/api": "0.273.1",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",