@soat/sdk 0.90.0 → 0.91.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.d.cts +19 -1
- package/dist/index.d.mts +19 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7369,6 +7369,10 @@ type CreateTaskRequest = {
|
|
|
7369
7369
|
[key: string]: unknown;
|
|
7370
7370
|
};
|
|
7371
7371
|
assignee?: string | null;
|
|
7372
|
+
/**
|
|
7373
|
+
* The create's deduplication key, unique within the project and claimed for as long as the task it created exists. The same key with the same body returns that task as it is now (`200`) instead of creating a second one; with a different body it is `409 IDEMPOTENCY_KEY_REUSED`. A create that fails claims no key. Equivalent to the `Idempotency-Key` header.
|
|
7374
|
+
*/
|
|
7375
|
+
idempotency_key?: string;
|
|
7372
7376
|
/**
|
|
7373
7377
|
* Name of a declared workflow state to create the task in directly, instead of the workflow's `initial` state. Must name a state declared on the workflow, or the request is rejected with `TASK_STATE_NOT_FOUND` (400). Defaults to the `initial` state.
|
|
7374
7378
|
*/
|
|
@@ -21680,13 +21684,19 @@ type ListTasksResponses = {
|
|
|
21680
21684
|
type ListTasksResponse = ListTasksResponses[keyof ListTasksResponses];
|
|
21681
21685
|
type CreateTaskData = {
|
|
21682
21686
|
body: CreateTaskRequest;
|
|
21687
|
+
headers?: {
|
|
21688
|
+
/**
|
|
21689
|
+
* The request's deduplication key. Equivalent to `idempotency_key` in the request body; sending both with different values is `400 VALIDATION_FAILED`. A non-empty string of at most 255 characters.
|
|
21690
|
+
*/
|
|
21691
|
+
'Idempotency-Key'?: string;
|
|
21692
|
+
};
|
|
21683
21693
|
path?: never;
|
|
21684
21694
|
query?: never;
|
|
21685
21695
|
url: '/api/v1/tasks';
|
|
21686
21696
|
};
|
|
21687
21697
|
type CreateTaskErrors = {
|
|
21688
21698
|
/**
|
|
21689
|
-
* Bad request — invalid payload (`TASK_PAYLOAD_INVALID`),
|
|
21699
|
+
* Bad request — invalid payload (`TASK_PAYLOAD_INVALID`), `state` does not name a declared state of the workflow (`TASK_STATE_NOT_FOUND`), or an invalid idempotency key (`VALIDATION_FAILED`)
|
|
21690
21700
|
*/
|
|
21691
21701
|
400: unknown;
|
|
21692
21702
|
/**
|
|
@@ -21701,8 +21711,16 @@ type CreateTaskErrors = {
|
|
|
21701
21711
|
* Workflow not found
|
|
21702
21712
|
*/
|
|
21703
21713
|
404: unknown;
|
|
21714
|
+
/**
|
|
21715
|
+
* The idempotency key names a task created by a different request (`IDEMPOTENCY_KEY_REUSED`)
|
|
21716
|
+
*/
|
|
21717
|
+
409: unknown;
|
|
21704
21718
|
};
|
|
21705
21719
|
type CreateTaskResponses = {
|
|
21720
|
+
/**
|
|
21721
|
+
* The idempotency key already names a task created by the same request; that task is returned as it is now and no second task is created
|
|
21722
|
+
*/
|
|
21723
|
+
200: Task;
|
|
21706
21724
|
/**
|
|
21707
21725
|
* Task created
|
|
21708
21726
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -7369,6 +7369,10 @@ type CreateTaskRequest = {
|
|
|
7369
7369
|
[key: string]: unknown;
|
|
7370
7370
|
};
|
|
7371
7371
|
assignee?: string | null;
|
|
7372
|
+
/**
|
|
7373
|
+
* The create's deduplication key, unique within the project and claimed for as long as the task it created exists. The same key with the same body returns that task as it is now (`200`) instead of creating a second one; with a different body it is `409 IDEMPOTENCY_KEY_REUSED`. A create that fails claims no key. Equivalent to the `Idempotency-Key` header.
|
|
7374
|
+
*/
|
|
7375
|
+
idempotency_key?: string;
|
|
7372
7376
|
/**
|
|
7373
7377
|
* Name of a declared workflow state to create the task in directly, instead of the workflow's `initial` state. Must name a state declared on the workflow, or the request is rejected with `TASK_STATE_NOT_FOUND` (400). Defaults to the `initial` state.
|
|
7374
7378
|
*/
|
|
@@ -21680,13 +21684,19 @@ type ListTasksResponses = {
|
|
|
21680
21684
|
type ListTasksResponse = ListTasksResponses[keyof ListTasksResponses];
|
|
21681
21685
|
type CreateTaskData = {
|
|
21682
21686
|
body: CreateTaskRequest;
|
|
21687
|
+
headers?: {
|
|
21688
|
+
/**
|
|
21689
|
+
* The request's deduplication key. Equivalent to `idempotency_key` in the request body; sending both with different values is `400 VALIDATION_FAILED`. A non-empty string of at most 255 characters.
|
|
21690
|
+
*/
|
|
21691
|
+
'Idempotency-Key'?: string;
|
|
21692
|
+
};
|
|
21683
21693
|
path?: never;
|
|
21684
21694
|
query?: never;
|
|
21685
21695
|
url: '/api/v1/tasks';
|
|
21686
21696
|
};
|
|
21687
21697
|
type CreateTaskErrors = {
|
|
21688
21698
|
/**
|
|
21689
|
-
* Bad request — invalid payload (`TASK_PAYLOAD_INVALID`),
|
|
21699
|
+
* Bad request — invalid payload (`TASK_PAYLOAD_INVALID`), `state` does not name a declared state of the workflow (`TASK_STATE_NOT_FOUND`), or an invalid idempotency key (`VALIDATION_FAILED`)
|
|
21690
21700
|
*/
|
|
21691
21701
|
400: unknown;
|
|
21692
21702
|
/**
|
|
@@ -21701,8 +21711,16 @@ type CreateTaskErrors = {
|
|
|
21701
21711
|
* Workflow not found
|
|
21702
21712
|
*/
|
|
21703
21713
|
404: unknown;
|
|
21714
|
+
/**
|
|
21715
|
+
* The idempotency key names a task created by a different request (`IDEMPOTENCY_KEY_REUSED`)
|
|
21716
|
+
*/
|
|
21717
|
+
409: unknown;
|
|
21704
21718
|
};
|
|
21705
21719
|
type CreateTaskResponses = {
|
|
21720
|
+
/**
|
|
21721
|
+
* The idempotency key already names a task created by the same request; that task is returned as it is now and no second task is created
|
|
21722
|
+
*/
|
|
21723
|
+
200: Task;
|
|
21706
21724
|
/**
|
|
21707
21725
|
* Task created
|
|
21708
21726
|
*/
|