@soat/sdk 0.15.8 → 0.15.9
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 +6 -3
- package/dist/index.d.mts +6 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2763,7 +2763,7 @@ var Tasks = class {
|
|
|
2763
2763
|
/**
|
|
2764
2764
|
* Update a task
|
|
2765
2765
|
*
|
|
2766
|
-
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition.
|
|
2766
|
+
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition. `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved, so setting one field never discards values an on_enter automation wrote (e.g. `last_result`). The merged payload is validated against the workflow's `payload_schema`.
|
|
2767
2767
|
*/
|
|
2768
2768
|
static updateTask(options) {
|
|
2769
2769
|
return (options.client ?? client).patch({
|
package/dist/index.d.cts
CHANGED
|
@@ -3604,7 +3604,7 @@ type Task = {
|
|
|
3604
3604
|
active_dispatch?: {
|
|
3605
3605
|
[key: string]: unknown;
|
|
3606
3606
|
} | null;
|
|
3607
|
-
automation_status?: 'running' | 'completed' | 'failed';
|
|
3607
|
+
automation_status?: 'running' | 'completed' | 'failed' | 'unrouted';
|
|
3608
3608
|
entered_state_at?: Date;
|
|
3609
3609
|
created_at?: Date;
|
|
3610
3610
|
updated_at?: Date;
|
|
@@ -3633,6 +3633,9 @@ type CreateTaskRequest = {
|
|
|
3633
3633
|
};
|
|
3634
3634
|
type UpdateTaskRequest = {
|
|
3635
3635
|
title?: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Partial payload, shallow-merged over the existing payload. Omitted keys are preserved; provided keys overwrite. The merged result must satisfy the workflow's payload_schema.
|
|
3638
|
+
*/
|
|
3636
3639
|
payload?: {
|
|
3637
3640
|
[key: string]: unknown;
|
|
3638
3641
|
};
|
|
@@ -4469,7 +4472,7 @@ type WorkflowTransition = {
|
|
|
4469
4472
|
[key: string]: unknown;
|
|
4470
4473
|
} | null;
|
|
4471
4474
|
/**
|
|
4472
|
-
* Reserved (Phase 3): gate the transition behind an approval.
|
|
4475
|
+
* Reserved (Phase 3): gate the transition behind an approval. Not enforced yet — setting this to `true` is rejected at validation with `WORKFLOW_VALIDATION_FAILED` until approval-gated transitions ship.
|
|
4473
4476
|
*/
|
|
4474
4477
|
requires_approval?: boolean;
|
|
4475
4478
|
[key: string]: unknown;
|
|
@@ -13310,7 +13313,7 @@ declare class Tasks {
|
|
|
13310
13313
|
/**
|
|
13311
13314
|
* Update a task
|
|
13312
13315
|
*
|
|
13313
|
-
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition.
|
|
13316
|
+
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition. `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved, so setting one field never discards values an on_enter automation wrote (e.g. `last_result`). The merged payload is validated against the workflow's `payload_schema`.
|
|
13314
13317
|
*/
|
|
13315
13318
|
static updateTask<ThrowOnError extends boolean = false>(options: Options<UpdateTaskData, ThrowOnError>): RequestResult<UpdateTaskResponses, UpdateTaskErrors, ThrowOnError>;
|
|
13316
13319
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -3604,7 +3604,7 @@ type Task = {
|
|
|
3604
3604
|
active_dispatch?: {
|
|
3605
3605
|
[key: string]: unknown;
|
|
3606
3606
|
} | null;
|
|
3607
|
-
automation_status?: 'running' | 'completed' | 'failed';
|
|
3607
|
+
automation_status?: 'running' | 'completed' | 'failed' | 'unrouted';
|
|
3608
3608
|
entered_state_at?: Date;
|
|
3609
3609
|
created_at?: Date;
|
|
3610
3610
|
updated_at?: Date;
|
|
@@ -3633,6 +3633,9 @@ type CreateTaskRequest = {
|
|
|
3633
3633
|
};
|
|
3634
3634
|
type UpdateTaskRequest = {
|
|
3635
3635
|
title?: string;
|
|
3636
|
+
/**
|
|
3637
|
+
* Partial payload, shallow-merged over the existing payload. Omitted keys are preserved; provided keys overwrite. The merged result must satisfy the workflow's payload_schema.
|
|
3638
|
+
*/
|
|
3636
3639
|
payload?: {
|
|
3637
3640
|
[key: string]: unknown;
|
|
3638
3641
|
};
|
|
@@ -4469,7 +4472,7 @@ type WorkflowTransition = {
|
|
|
4469
4472
|
[key: string]: unknown;
|
|
4470
4473
|
} | null;
|
|
4471
4474
|
/**
|
|
4472
|
-
* Reserved (Phase 3): gate the transition behind an approval.
|
|
4475
|
+
* Reserved (Phase 3): gate the transition behind an approval. Not enforced yet — setting this to `true` is rejected at validation with `WORKFLOW_VALIDATION_FAILED` until approval-gated transitions ship.
|
|
4473
4476
|
*/
|
|
4474
4477
|
requires_approval?: boolean;
|
|
4475
4478
|
[key: string]: unknown;
|
|
@@ -13310,7 +13313,7 @@ declare class Tasks {
|
|
|
13310
13313
|
/**
|
|
13311
13314
|
* Update a task
|
|
13312
13315
|
*
|
|
13313
|
-
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition.
|
|
13316
|
+
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition. `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved, so setting one field never discards values an on_enter automation wrote (e.g. `last_result`). The merged payload is validated against the workflow's `payload_schema`.
|
|
13314
13317
|
*/
|
|
13315
13318
|
static updateTask<ThrowOnError extends boolean = false>(options: Options<UpdateTaskData, ThrowOnError>): RequestResult<UpdateTaskResponses, UpdateTaskErrors, ThrowOnError>;
|
|
13316
13319
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2762,7 +2762,7 @@ var Tasks = class {
|
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Update a task
|
|
2764
2764
|
*
|
|
2765
|
-
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition.
|
|
2765
|
+
* Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition. `payload` is shallow-merged over the existing payload (PATCH semantics): keys the request omits are preserved, so setting one field never discards values an on_enter automation wrote (e.g. `last_result`). The merged payload is validated against the workflow's `payload_schema`.
|
|
2766
2766
|
*/
|
|
2767
2767
|
static updateTask(options) {
|
|
2768
2768
|
return (options.client ?? client).patch({
|