@epilot/sdk 2.9.4 → 2.10.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/definitions/ai-agents-runtime.json +1 -1
- package/definitions/ai-agents.json +63 -936
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +213 -2
- package/definitions/workflow-runtime.json +1 -1
- package/definitions/workflow.json +60 -445
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/{ai-agents-runtime-EA23HCCP.js → ai-agents-runtime-25YRUJHI.js} +1 -1
- package/dist/{ai-agents-runtime-WZ3EI3NH.cjs → ai-agents-runtime-TILIO3UM.cjs} +2 -2
- package/dist/{ai-agents.d-D-7bTH-9.d.cts → ai-agents.d-CC5IjXrs.d.cts} +5 -506
- package/dist/{ai-agents.d-D-7bTH-9.d.ts → ai-agents.d-CC5IjXrs.d.ts} +5 -506
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +8 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +2 -2
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +8 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +2 -2
- package/dist/chunk-7WGJSGWE.js +14 -0
- package/dist/chunk-FARDEGPH.cjs +14 -0
- package/dist/chunk-JENQHXFI.js +14 -0
- package/dist/{chunk-522LYPPW.js → chunk-KQKBSWGI.js} +1 -1
- package/dist/{chunk-LNVAFYGS.cjs → chunk-OJGUX5TG.cjs} +6 -6
- package/dist/{chunk-PM25LLET.cjs → chunk-QNZPOA54.cjs} +1 -1
- package/dist/{chunk-J4ZE3ANW.js → chunk-XH5F3S6Y.js} +6 -6
- package/dist/chunk-YISO22FS.cjs +14 -0
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/integration-toolkit-DUMRNE6A.cjs +7 -0
- package/dist/integration-toolkit-IK7KA76K.js +7 -0
- package/dist/{integration-toolkit-runtime-FR6RZS5O.cjs → integration-toolkit-runtime-4LHEPGGC.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-I2O6QP5G.js → integration-toolkit-runtime-5K3AAC63.js} +1 -1
- package/dist/{integration-toolkit.d-DUZ_fiuf.d.cts → integration-toolkit.d-BVe_MBBi.d.cts} +162 -3
- package/dist/{integration-toolkit.d-DUZ_fiuf.d.ts → integration-toolkit.d-BVe_MBBi.d.ts} +162 -3
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/workflow-3WBD74WR.js +7 -0
- package/dist/workflow-WIUZ5TOX.cjs +7 -0
- package/dist/{workflow-runtime-L5HMFISV.js → workflow-runtime-DNTQDYPQ.js} +1 -1
- package/dist/{workflow-runtime-LMGACZP4.cjs → workflow-runtime-VKFESVFX.cjs} +2 -2
- package/dist/{workflow.d-eFv0ecBi.d.ts → workflow.d-CMSKt8oN.d.cts} +81 -745
- package/dist/{workflow.d-eFv0ecBi.d.cts → workflow.d-CMSKt8oN.d.ts} +81 -745
- package/docs/ai-agents.md +23 -641
- package/docs/integration-toolkit.md +133 -0
- package/docs/workflow.md +47 -247
- package/package.json +12 -11
- package/dist/ai-agents-D6C5TXLD.cjs +0 -7
- package/dist/ai-agents-Y6PH53PH.js +0 -7
- package/dist/chunk-3CNCQJOJ.js +0 -14
- package/dist/chunk-BRWY3QHG.js +0 -14
- package/dist/chunk-ILIHCSNO.cjs +0 -14
- package/dist/chunk-YEBEA6XU.cjs +0 -14
- package/dist/integration-toolkit-TL3BQ6FJ.cjs +0 -7
- package/dist/integration-toolkit-X3Y4OFVW.js +0 -7
- package/dist/workflow-7OU2YEEI.cjs +0 -7
- package/dist/workflow-IVKCWS44.js +0 -7
|
@@ -95,10 +95,6 @@ declare namespace Components {
|
|
|
95
95
|
*/
|
|
96
96
|
execution_status?: string;
|
|
97
97
|
error_reason?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Server-computed outcome read from the agent execution's structured_output (e.g. assigned, recommended, no_eligible_partner, missing_input). When the outcome means the work is not really done (no_eligible_partner, missing_input) the task is held as the current task instead of auto-completing, so the phase does not advance.
|
|
100
|
-
*/
|
|
101
|
-
outcome?: string;
|
|
102
98
|
}
|
|
103
99
|
export interface AiAgentTask {
|
|
104
100
|
id: TaskId;
|
|
@@ -232,14 +228,6 @@ declare namespace Components {
|
|
|
232
228
|
*
|
|
233
229
|
*/
|
|
234
230
|
AutomationInputContext;
|
|
235
|
-
/**
|
|
236
|
-
* Internal — number of times flow-healing-service has attempted to re-trigger this task's lost automation dispatch. Used to cap retries and avoid an indefinite heal-on-every-read storm against a deterministically-failing automation flow.
|
|
237
|
-
*/
|
|
238
|
-
heal_attempts?: number;
|
|
239
|
-
/**
|
|
240
|
-
* Internal — timestamp of the most recent heal attempt for this task. flow-healing-service uses this as a per-task debounce gate so the heal cannot fire more than once per HEAL_RETRY_COOLDOWN_MS regardless of how often the flow execution is read.
|
|
241
|
-
*/
|
|
242
|
-
last_heal_attempted_at?: string; // date-time
|
|
243
231
|
}
|
|
244
232
|
/**
|
|
245
233
|
* Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.
|
|
@@ -473,26 +461,6 @@ declare namespace Components {
|
|
|
473
461
|
* The id of the created schedule
|
|
474
462
|
*/
|
|
475
463
|
schedule_id?: string;
|
|
476
|
-
/**
|
|
477
|
-
* The resolved absolute timestamp (ISO 8601, UTC) at which the task is
|
|
478
|
-
* armed to run. Set by the backend when the schedule is armed and the
|
|
479
|
-
* task transitions to SCHEDULED. Absent while the task is still
|
|
480
|
-
* pending/unscheduled.
|
|
481
|
-
*
|
|
482
|
-
* Note: intentionally typed as plain `string` (not
|
|
483
|
-
* `format: date-time`). `schedule` is embedded in the AutomationTask /
|
|
484
|
-
* DecisionTask schemas; if a future request body ever accepts a task
|
|
485
|
-
* (or schedule) and `safeParse`s it, `format: date-time` would make
|
|
486
|
-
* openapi-zod-client emit `z.string().datetime({ offset: true })` and
|
|
487
|
-
* reject any round-tripped value that is empty or tz-less — the exact
|
|
488
|
-
* mechanism behind the May 2026 due_date incident (513ed597 added the
|
|
489
|
-
* format, ee574b43 activated it via an unrelated regen; see commit
|
|
490
|
-
* 2c91ff35). This field is server-written via `toISOString()` so it is
|
|
491
|
-
* always a valid UTC instant; the datetime validator adds no
|
|
492
|
-
* protection, only latent risk.
|
|
493
|
-
*
|
|
494
|
-
*/
|
|
495
|
-
scheduled_at?: string;
|
|
496
464
|
}
|
|
497
465
|
/**
|
|
498
466
|
* Set due date for the task based on a dynamic condition
|
|
@@ -623,18 +591,8 @@ declare namespace Components {
|
|
|
623
591
|
entityAttribute: string;
|
|
624
592
|
};
|
|
625
593
|
}
|
|
626
|
-
/**
|
|
627
|
-
* Standard error response returned when an API request fails.
|
|
628
|
-
* Contains a human-readable message describing the error.
|
|
629
|
-
*
|
|
630
|
-
*/
|
|
631
594
|
export interface ErrorResp {
|
|
632
|
-
|
|
633
|
-
* Human-readable description of the error that occurred
|
|
634
|
-
* example:
|
|
635
|
-
* Validation failed: workflowId is required
|
|
636
|
-
*/
|
|
637
|
-
message: string;
|
|
595
|
+
message?: string;
|
|
638
596
|
}
|
|
639
597
|
export interface EvaluationSource {
|
|
640
598
|
/**
|
|
@@ -648,34 +606,6 @@ declare namespace Components {
|
|
|
648
606
|
attribute_type?: "string" | "text" | "number" | "boolean" | "date" | "datetime" | "tags" | "country" | "email" | "phone" | "product" | "price" | "status" | "relation" | "multiselect" | "select" | "radio" | "relation_user" | "purpose" | "label" | "message_email_address";
|
|
649
607
|
attribute_repeatable?: boolean;
|
|
650
608
|
attribute_operation?: "all" | "updated" | "added" | "deleted";
|
|
651
|
-
/**
|
|
652
|
-
* Multi-attribute mode. When present and length > 1, the statement is
|
|
653
|
-
* evaluated against every listed attribute and combined via
|
|
654
|
-
* `attributes_match`. All listed attributes must share the same
|
|
655
|
-
* `attribute_type`. Mutually exclusive with `attribute_sub_field`,
|
|
656
|
-
* `date_offset`, and `attribute_operation`. When absent or length === 1,
|
|
657
|
-
* the legacy `attribute` field is used.
|
|
658
|
-
*
|
|
659
|
-
*/
|
|
660
|
-
attributes?: [
|
|
661
|
-
string?,
|
|
662
|
-
string?,
|
|
663
|
-
string?,
|
|
664
|
-
string?,
|
|
665
|
-
string?,
|
|
666
|
-
string?,
|
|
667
|
-
string?,
|
|
668
|
-
string?,
|
|
669
|
-
string?,
|
|
670
|
-
string?
|
|
671
|
-
];
|
|
672
|
-
/**
|
|
673
|
-
* Inner connector across `attributes`. `any` (default) means at least
|
|
674
|
-
* one attribute must satisfy the operator; `all` means every attribute
|
|
675
|
-
* must satisfy it. Ignored when `attributes` is absent or has length < 2.
|
|
676
|
-
*
|
|
677
|
-
*/
|
|
678
|
-
attributes_match?: "any" | "all";
|
|
679
609
|
/**
|
|
680
610
|
* For complex attribute types, specifies which sub-field to extract (e.g., 'address', 'name', 'email_type')
|
|
681
611
|
*/
|
|
@@ -752,10 +682,6 @@ declare namespace Components {
|
|
|
752
682
|
contexts: FlowContext[];
|
|
753
683
|
crt_tasks: {
|
|
754
684
|
id?: TaskId;
|
|
755
|
-
/**
|
|
756
|
-
* Timestamp when this task entered crt_tasks (i.e. became current). Used by the flow-healing-service as the authoritative gate for "has this PENDING task been stuck long enough to heal?". Using the task's own analytics.status_updated_at as the gate produced false positives because transitioning a task INTO crt_tasks does not change its status — so that timestamp can be hours old for a freshly-current task.
|
|
757
|
-
*/
|
|
758
|
-
crt_since?: string; // date-time
|
|
759
685
|
}[];
|
|
760
686
|
phases?: Phase[];
|
|
761
687
|
tasks: Task[];
|
|
@@ -944,17 +870,7 @@ declare namespace Components {
|
|
|
944
870
|
due_date_config?: /* Set due date for the task based on a dynamic condition */ DueDateConfig;
|
|
945
871
|
assigned_to?: /* The user ids or variable assignments */ Assignees;
|
|
946
872
|
}
|
|
947
|
-
/**
|
|
948
|
-
* Request payload for updating a task within a flow execution.
|
|
949
|
-
* All fields are optional; only provided fields will be updated.
|
|
950
|
-
*
|
|
951
|
-
*/
|
|
952
873
|
export interface PatchTaskReq {
|
|
953
|
-
/**
|
|
954
|
-
* Display name of the task
|
|
955
|
-
* example:
|
|
956
|
-
* Review customer application
|
|
957
|
-
*/
|
|
958
874
|
name?: string;
|
|
959
875
|
status?: /**
|
|
960
876
|
* **Note**: "UNASSIGNED" and "ASSIGNED" are deprecated and will be removed in a future version. Please use "PENDING" instead. Status values for workflow execution steps/tasks:
|
|
@@ -973,37 +889,14 @@ declare namespace Components {
|
|
|
973
889
|
*/
|
|
974
890
|
StepStatus;
|
|
975
891
|
/**
|
|
976
|
-
* Explicit due date for the task. Takes precedence over
|
|
977
|
-
* due_date_config if both are provided.
|
|
978
|
-
*
|
|
979
|
-
* Note: intentionally typed as plain `string` (not
|
|
980
|
-
* `format: date-time`). For day/week/month-precision due
|
|
981
|
-
* dates the server stores a "floating" datetime without a
|
|
982
|
-
* timezone designator (e.g. `2026-05-28T00:00:00.000`) so
|
|
983
|
-
* that the UI can render it as a date in the user's local
|
|
984
|
-
* timezone without shifting the displayed day. Tightening
|
|
985
|
-
* this to `format: date-time` causes openapi-zod-client to
|
|
986
|
-
* emit `z.string().datetime({ offset: true })` in
|
|
987
|
-
* `validators-generated.ts`, which then trips
|
|
988
|
-
* `safeParse(body)` in `patch-task.ts` whenever the
|
|
989
|
-
* sidebar sends a stored task back with a tz-less
|
|
990
|
-
* `due_date`. See commit 4aca299c (Aug 2024) for the
|
|
991
|
-
* original date-only display rationale and the May 2026
|
|
992
|
-
* incident (513ed597 added the format, ee574b43
|
|
993
|
-
* unintentionally activated it via an unrelated regen) for
|
|
994
|
-
* the history. Long-term, day-precision due dates should
|
|
995
|
-
* migrate to a separate `format: date` field.
|
|
996
|
-
*
|
|
997
892
|
* example:
|
|
998
|
-
*
|
|
893
|
+
* 2021-04-27T12:00:00.000Z
|
|
999
894
|
*/
|
|
1000
895
|
due_date?: string;
|
|
1001
896
|
due_date_config?: /* Set due date for the task based on a dynamic condition */ DueDateConfig;
|
|
1002
897
|
assigned_to?: /* The user ids or variable assignments */ Assignees;
|
|
1003
898
|
/**
|
|
1004
|
-
*
|
|
1005
|
-
* Disabled tasks cannot have their status changed until re-enabled.
|
|
1006
|
-
*
|
|
899
|
+
* flag for controlling enabled/disabled state of the task
|
|
1007
900
|
*/
|
|
1008
901
|
enabled?: boolean;
|
|
1009
902
|
automation_config?: AutomationInfo;
|
|
@@ -1015,37 +908,17 @@ declare namespace Components {
|
|
|
1015
908
|
*/
|
|
1016
909
|
partner?: /* Details regarding partner for the workflow step */ PartnerDetails;
|
|
1017
910
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* to follow when completing the task. The condition ID must match one of the
|
|
1020
|
-
* conditions defined on the decision task.
|
|
1021
|
-
*
|
|
1022
|
-
* example:
|
|
1023
|
-
* cond_branch_approved
|
|
911
|
+
* Condition to evaluate as true for a decision task with a manual trigger mode
|
|
1024
912
|
*/
|
|
1025
913
|
next_condition_id?: string;
|
|
1026
914
|
/**
|
|
1027
|
-
*
|
|
1028
|
-
*
|
|
1029
|
-
* - `
|
|
1030
|
-
*
|
|
1031
|
-
* - `false` (default): Updates only this task without affecting workflow position
|
|
1032
|
-
* or other tasks
|
|
1033
|
-
*
|
|
1034
|
-
* **Important:** This parameter is silently ignored when:
|
|
1035
|
-
* - Patching the current task
|
|
1036
|
-
* - Patching future tasks (tasks that haven't been reached yet)
|
|
915
|
+
* When patching an already completed/skipped task that comes before the current task, this flag controls whether to revert the execution:
|
|
916
|
+
* - `true`: The patched task becomes the current task AND all succeeding tasks are reset to PENDING (full revert)
|
|
917
|
+
* - `false` or omitted (undefined): The task is updated but the current task does not change and no downstream tasks are affected
|
|
918
|
+
* This parameter is silently ignored when patching the current task or future tasks.
|
|
1037
919
|
*
|
|
1038
920
|
*/
|
|
1039
921
|
revert_execution?: boolean;
|
|
1040
|
-
/**
|
|
1041
|
-
* Request-only signal indicating the task is being completed as a
|
|
1042
|
-
* result of the user submitting the task's linked journey (journey
|
|
1043
|
-
* auto-completion). When `true` and the task transitions to
|
|
1044
|
-
* `COMPLETED`, the activity log records a journey-specific message
|
|
1045
|
-
* instead of the generic completion message. Not persisted on the task.
|
|
1046
|
-
*
|
|
1047
|
-
*/
|
|
1048
|
-
completed_via_journey?: boolean;
|
|
1049
922
|
}
|
|
1050
923
|
export interface Phase {
|
|
1051
924
|
id: PhaseId;
|
|
@@ -1101,26 +974,6 @@ declare namespace Components {
|
|
|
1101
974
|
* The id of the created schedule
|
|
1102
975
|
*/
|
|
1103
976
|
schedule_id?: string;
|
|
1104
|
-
/**
|
|
1105
|
-
* The resolved absolute timestamp (ISO 8601, UTC) at which the task is
|
|
1106
|
-
* armed to run. Set by the backend when the schedule is armed and the
|
|
1107
|
-
* task transitions to SCHEDULED. Absent while the task is still
|
|
1108
|
-
* pending/unscheduled.
|
|
1109
|
-
*
|
|
1110
|
-
* Note: intentionally typed as plain `string` (not
|
|
1111
|
-
* `format: date-time`). `schedule` is embedded in the AutomationTask /
|
|
1112
|
-
* DecisionTask schemas; if a future request body ever accepts a task
|
|
1113
|
-
* (or schedule) and `safeParse`s it, `format: date-time` would make
|
|
1114
|
-
* openapi-zod-client emit `z.string().datetime({ offset: true })` and
|
|
1115
|
-
* reject any round-tripped value that is empty or tz-less — the exact
|
|
1116
|
-
* mechanism behind the May 2026 due_date incident (513ed597 added the
|
|
1117
|
-
* format, ee574b43 activated it via an unrelated regen; see commit
|
|
1118
|
-
* 2c91ff35). This field is server-written via `toISOString()` so it is
|
|
1119
|
-
* always a valid UTC instant; the datetime validator adds no
|
|
1120
|
-
* protection, only latent risk.
|
|
1121
|
-
*
|
|
1122
|
-
*/
|
|
1123
|
-
scheduled_at?: string;
|
|
1124
977
|
}
|
|
1125
978
|
export interface SearchExecutionsReq {
|
|
1126
979
|
name?: string;
|
|
@@ -1328,35 +1181,15 @@ declare namespace Components {
|
|
|
1328
1181
|
assignedTo?: string[];
|
|
1329
1182
|
}
|
|
1330
1183
|
export type SectionStatus = "OPEN" | "IN_PROGRESS" | "COMPLETED";
|
|
1331
|
-
/**
|
|
1332
|
-
* Request payload for starting a new flow execution from a template.
|
|
1333
|
-
*
|
|
1334
|
-
*/
|
|
1335
1184
|
export interface StartFlowReq {
|
|
1336
|
-
/**
|
|
1337
|
-
* The unique identifier of the flow template (definition) to instantiate.
|
|
1338
|
-
* The template must exist and be accessible within the organization.
|
|
1339
|
-
*
|
|
1340
|
-
* example:
|
|
1341
|
-
* tpl_abc123def456
|
|
1342
|
-
*/
|
|
1343
1185
|
flow_template_id: string;
|
|
1344
1186
|
trigger?: FlowTrigger;
|
|
1345
|
-
/**
|
|
1346
|
-
* Entity references that this execution is linked to. At least one context
|
|
1347
|
-
* is required. The primary context (is_primary: true) is used for condition
|
|
1348
|
-
* evaluation and data mapping.
|
|
1349
|
-
*
|
|
1350
|
-
*/
|
|
1351
1187
|
contexts: [
|
|
1352
1188
|
FlowContext,
|
|
1353
1189
|
...FlowContext[]
|
|
1354
1190
|
];
|
|
1355
1191
|
/**
|
|
1356
|
-
*
|
|
1357
|
-
* Only phases/tasks tagged with matching purposes will be active. If empty or omitted,
|
|
1358
|
-
* all phases and tasks from the template are included.
|
|
1359
|
-
*
|
|
1192
|
+
* An array of purposes to filter workflow phases.
|
|
1360
1193
|
*/
|
|
1361
1194
|
purposes?: string[];
|
|
1362
1195
|
}
|
|
@@ -1654,7 +1487,7 @@ declare namespace Components {
|
|
|
1654
1487
|
}
|
|
1655
1488
|
export type TaskId = string;
|
|
1656
1489
|
export type TaskType = "MANUAL" | "AUTOMATION" | "DECISION" | "AI_AGENT";
|
|
1657
|
-
export type TimeUnit = "minutes" | "hours" | "days" | "weeks" | "months"
|
|
1490
|
+
export type TimeUnit = "minutes" | "hours" | "days" | "weeks" | "months";
|
|
1658
1491
|
export type TriggerMode = "manual" | "automatic";
|
|
1659
1492
|
export type TriggerType = "MANUAL" | "AUTOMATIC";
|
|
1660
1493
|
export interface UpdateEntityAttributes {
|
|
@@ -2168,24 +2001,9 @@ declare namespace Paths {
|
|
|
2168
2001
|
export type RequestBody = Components.Schemas.AddTaskReq;
|
|
2169
2002
|
namespace Responses {
|
|
2170
2003
|
export type $201 = Components.Schemas.Task;
|
|
2171
|
-
export type $400 =
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
*
|
|
2175
|
-
*/
|
|
2176
|
-
Components.Schemas.ErrorResp;
|
|
2177
|
-
export type $401 = /**
|
|
2178
|
-
* Standard error response returned when an API request fails.
|
|
2179
|
-
* Contains a human-readable message describing the error.
|
|
2180
|
-
*
|
|
2181
|
-
*/
|
|
2182
|
-
Components.Schemas.ErrorResp;
|
|
2183
|
-
export type $500 = /**
|
|
2184
|
-
* Standard error response returned when an API request fails.
|
|
2185
|
-
* Contains a human-readable message describing the error.
|
|
2186
|
-
*
|
|
2187
|
-
*/
|
|
2188
|
-
Components.Schemas.ErrorResp;
|
|
2004
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2005
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2006
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2189
2007
|
}
|
|
2190
2008
|
}
|
|
2191
2009
|
namespace CancelSchedule {
|
|
@@ -2200,30 +2018,10 @@ declare namespace Paths {
|
|
|
2200
2018
|
namespace Responses {
|
|
2201
2019
|
export interface $204 {
|
|
2202
2020
|
}
|
|
2203
|
-
export type $400 =
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
*/
|
|
2208
|
-
Components.Schemas.ErrorResp;
|
|
2209
|
-
export type $401 = /**
|
|
2210
|
-
* Standard error response returned when an API request fails.
|
|
2211
|
-
* Contains a human-readable message describing the error.
|
|
2212
|
-
*
|
|
2213
|
-
*/
|
|
2214
|
-
Components.Schemas.ErrorResp;
|
|
2215
|
-
export type $404 = /**
|
|
2216
|
-
* Standard error response returned when an API request fails.
|
|
2217
|
-
* Contains a human-readable message describing the error.
|
|
2218
|
-
*
|
|
2219
|
-
*/
|
|
2220
|
-
Components.Schemas.ErrorResp;
|
|
2221
|
-
export type $500 = /**
|
|
2222
|
-
* Standard error response returned when an API request fails.
|
|
2223
|
-
* Contains a human-readable message describing the error.
|
|
2224
|
-
*
|
|
2225
|
-
*/
|
|
2226
|
-
Components.Schemas.ErrorResp;
|
|
2021
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2022
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2023
|
+
export type $404 = Components.Schemas.ErrorResp;
|
|
2024
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2227
2025
|
}
|
|
2228
2026
|
}
|
|
2229
2027
|
namespace CancelTaskSchedule {
|
|
@@ -2238,30 +2036,10 @@ declare namespace Paths {
|
|
|
2238
2036
|
namespace Responses {
|
|
2239
2037
|
export interface $204 {
|
|
2240
2038
|
}
|
|
2241
|
-
export type $400 =
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
*/
|
|
2246
|
-
Components.Schemas.ErrorResp;
|
|
2247
|
-
export type $401 = /**
|
|
2248
|
-
* Standard error response returned when an API request fails.
|
|
2249
|
-
* Contains a human-readable message describing the error.
|
|
2250
|
-
*
|
|
2251
|
-
*/
|
|
2252
|
-
Components.Schemas.ErrorResp;
|
|
2253
|
-
export type $404 = /**
|
|
2254
|
-
* Standard error response returned when an API request fails.
|
|
2255
|
-
* Contains a human-readable message describing the error.
|
|
2256
|
-
*
|
|
2257
|
-
*/
|
|
2258
|
-
Components.Schemas.ErrorResp;
|
|
2259
|
-
export type $500 = /**
|
|
2260
|
-
* Standard error response returned when an API request fails.
|
|
2261
|
-
* Contains a human-readable message describing the error.
|
|
2262
|
-
*
|
|
2263
|
-
*/
|
|
2264
|
-
Components.Schemas.ErrorResp;
|
|
2039
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2040
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2041
|
+
export type $404 = Components.Schemas.ErrorResp;
|
|
2042
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2265
2043
|
}
|
|
2266
2044
|
}
|
|
2267
2045
|
namespace CreateExecution {
|
|
@@ -2337,24 +2115,9 @@ declare namespace Paths {
|
|
|
2337
2115
|
* }
|
|
2338
2116
|
*/
|
|
2339
2117
|
Components.Schemas.WorkflowExecution;
|
|
2340
|
-
export type $400 =
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
*
|
|
2344
|
-
*/
|
|
2345
|
-
Components.Schemas.ErrorResp;
|
|
2346
|
-
export type $401 = /**
|
|
2347
|
-
* Standard error response returned when an API request fails.
|
|
2348
|
-
* Contains a human-readable message describing the error.
|
|
2349
|
-
*
|
|
2350
|
-
*/
|
|
2351
|
-
Components.Schemas.ErrorResp;
|
|
2352
|
-
export type $500 = /**
|
|
2353
|
-
* Standard error response returned when an API request fails.
|
|
2354
|
-
* Contains a human-readable message describing the error.
|
|
2355
|
-
*
|
|
2356
|
-
*/
|
|
2357
|
-
Components.Schemas.ErrorResp;
|
|
2118
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2119
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2120
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2358
2121
|
}
|
|
2359
2122
|
}
|
|
2360
2123
|
namespace CreateStep {
|
|
@@ -2367,24 +2130,9 @@ declare namespace Paths {
|
|
|
2367
2130
|
export type RequestBody = Components.Schemas.CreateStepReq;
|
|
2368
2131
|
namespace Responses {
|
|
2369
2132
|
export type $201 = Components.Schemas.Step;
|
|
2370
|
-
export type $400 =
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
*
|
|
2374
|
-
*/
|
|
2375
|
-
Components.Schemas.ErrorResp;
|
|
2376
|
-
export type $401 = /**
|
|
2377
|
-
* Standard error response returned when an API request fails.
|
|
2378
|
-
* Contains a human-readable message describing the error.
|
|
2379
|
-
*
|
|
2380
|
-
*/
|
|
2381
|
-
Components.Schemas.ErrorResp;
|
|
2382
|
-
export type $500 = /**
|
|
2383
|
-
* Standard error response returned when an API request fails.
|
|
2384
|
-
* Contains a human-readable message describing the error.
|
|
2385
|
-
*
|
|
2386
|
-
*/
|
|
2387
|
-
Components.Schemas.ErrorResp;
|
|
2133
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2134
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2135
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2388
2136
|
}
|
|
2389
2137
|
}
|
|
2390
2138
|
namespace DeleteExecution {
|
|
@@ -2397,12 +2145,7 @@ declare namespace Paths {
|
|
|
2397
2145
|
namespace Responses {
|
|
2398
2146
|
export interface $204 {
|
|
2399
2147
|
}
|
|
2400
|
-
export type $401 =
|
|
2401
|
-
* Standard error response returned when an API request fails.
|
|
2402
|
-
* Contains a human-readable message describing the error.
|
|
2403
|
-
*
|
|
2404
|
-
*/
|
|
2405
|
-
Components.Schemas.ErrorResp;
|
|
2148
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2406
2149
|
export interface $404 {
|
|
2407
2150
|
}
|
|
2408
2151
|
}
|
|
@@ -2441,12 +2184,7 @@ declare namespace Paths {
|
|
|
2441
2184
|
namespace Responses {
|
|
2442
2185
|
export interface $204 {
|
|
2443
2186
|
}
|
|
2444
|
-
export type $500 =
|
|
2445
|
-
* Standard error response returned when an API request fails.
|
|
2446
|
-
* Contains a human-readable message describing the error.
|
|
2447
|
-
*
|
|
2448
|
-
*/
|
|
2449
|
-
Components.Schemas.ErrorResp;
|
|
2187
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2450
2188
|
}
|
|
2451
2189
|
}
|
|
2452
2190
|
namespace ExecuteTask {
|
|
@@ -2460,24 +2198,9 @@ declare namespace Paths {
|
|
|
2460
2198
|
}
|
|
2461
2199
|
namespace Responses {
|
|
2462
2200
|
export type $200 = Components.Schemas.Task;
|
|
2463
|
-
export type $400 =
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
*
|
|
2467
|
-
*/
|
|
2468
|
-
Components.Schemas.ErrorResp;
|
|
2469
|
-
export type $401 = /**
|
|
2470
|
-
* Standard error response returned when an API request fails.
|
|
2471
|
-
* Contains a human-readable message describing the error.
|
|
2472
|
-
*
|
|
2473
|
-
*/
|
|
2474
|
-
Components.Schemas.ErrorResp;
|
|
2475
|
-
export type $500 = /**
|
|
2476
|
-
* Standard error response returned when an API request fails.
|
|
2477
|
-
* Contains a human-readable message describing the error.
|
|
2478
|
-
*
|
|
2479
|
-
*/
|
|
2480
|
-
Components.Schemas.ErrorResp;
|
|
2201
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2202
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2203
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2481
2204
|
}
|
|
2482
2205
|
}
|
|
2483
2206
|
namespace GetClosingReasonExecution {
|
|
@@ -2489,12 +2212,7 @@ declare namespace Paths {
|
|
|
2489
2212
|
}
|
|
2490
2213
|
namespace Responses {
|
|
2491
2214
|
export type $200 = Components.Schemas.ClosingReasonResp;
|
|
2492
|
-
export type $500 =
|
|
2493
|
-
* Standard error response returned when an API request fails.
|
|
2494
|
-
* Contains a human-readable message describing the error.
|
|
2495
|
-
*
|
|
2496
|
-
*/
|
|
2497
|
-
Components.Schemas.ErrorResp;
|
|
2215
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2498
2216
|
}
|
|
2499
2217
|
}
|
|
2500
2218
|
namespace GetExecution {
|
|
@@ -2558,12 +2276,7 @@ declare namespace Paths {
|
|
|
2558
2276
|
* }
|
|
2559
2277
|
*/
|
|
2560
2278
|
Components.Schemas.WorkflowExecution;
|
|
2561
|
-
export type $500 =
|
|
2562
|
-
* Standard error response returned when an API request fails.
|
|
2563
|
-
* Contains a human-readable message describing the error.
|
|
2564
|
-
*
|
|
2565
|
-
*/
|
|
2566
|
-
Components.Schemas.ErrorResp;
|
|
2279
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2567
2280
|
}
|
|
2568
2281
|
}
|
|
2569
2282
|
namespace GetExecutions {
|
|
@@ -2620,12 +2333,7 @@ declare namespace Paths {
|
|
|
2620
2333
|
* }
|
|
2621
2334
|
*/
|
|
2622
2335
|
Components.Schemas.WorkflowExecutionSlim[];
|
|
2623
|
-
export type $500 =
|
|
2624
|
-
* Standard error response returned when an API request fails.
|
|
2625
|
-
* Contains a human-readable message describing the error.
|
|
2626
|
-
*
|
|
2627
|
-
*/
|
|
2628
|
-
Components.Schemas.ErrorResp;
|
|
2336
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2629
2337
|
}
|
|
2630
2338
|
}
|
|
2631
2339
|
namespace GetFlowExecution {
|
|
@@ -2661,12 +2369,7 @@ declare namespace Paths {
|
|
|
2661
2369
|
}
|
|
2662
2370
|
export interface $404 {
|
|
2663
2371
|
}
|
|
2664
|
-
export type $500 =
|
|
2665
|
-
* Standard error response returned when an API request fails.
|
|
2666
|
-
* Contains a human-readable message describing the error.
|
|
2667
|
-
*
|
|
2668
|
-
*/
|
|
2669
|
-
Components.Schemas.ErrorResp;
|
|
2372
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2670
2373
|
}
|
|
2671
2374
|
}
|
|
2672
2375
|
namespace PatchPhase {
|
|
@@ -2681,24 +2384,9 @@ declare namespace Paths {
|
|
|
2681
2384
|
export type RequestBody = Components.Schemas.PatchPhaseReq;
|
|
2682
2385
|
namespace Responses {
|
|
2683
2386
|
export type $200 = Components.Schemas.Phase;
|
|
2684
|
-
export type $400 =
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
*
|
|
2688
|
-
*/
|
|
2689
|
-
Components.Schemas.ErrorResp;
|
|
2690
|
-
export type $401 = /**
|
|
2691
|
-
* Standard error response returned when an API request fails.
|
|
2692
|
-
* Contains a human-readable message describing the error.
|
|
2693
|
-
*
|
|
2694
|
-
*/
|
|
2695
|
-
Components.Schemas.ErrorResp;
|
|
2696
|
-
export type $500 = /**
|
|
2697
|
-
* Standard error response returned when an API request fails.
|
|
2698
|
-
* Contains a human-readable message describing the error.
|
|
2699
|
-
*
|
|
2700
|
-
*/
|
|
2701
|
-
Components.Schemas.ErrorResp;
|
|
2387
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2388
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2389
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2702
2390
|
}
|
|
2703
2391
|
}
|
|
2704
2392
|
namespace PatchTask {
|
|
@@ -2710,81 +2398,12 @@ declare namespace Paths {
|
|
|
2710
2398
|
execution_id: Parameters.ExecutionId;
|
|
2711
2399
|
task_id: Parameters.TaskId;
|
|
2712
2400
|
}
|
|
2713
|
-
export type RequestBody =
|
|
2714
|
-
* Request payload for updating a task within a flow execution.
|
|
2715
|
-
* All fields are optional; only provided fields will be updated.
|
|
2716
|
-
*
|
|
2717
|
-
*/
|
|
2718
|
-
Components.Schemas.PatchTaskReq;
|
|
2401
|
+
export type RequestBody = Components.Schemas.PatchTaskReq;
|
|
2719
2402
|
namespace Responses {
|
|
2720
2403
|
export type $200 = Components.Schemas.Task;
|
|
2721
|
-
export type $400 =
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
*
|
|
2725
|
-
*/
|
|
2726
|
-
Components.Schemas.ErrorResp;
|
|
2727
|
-
export type $401 = /**
|
|
2728
|
-
* Standard error response returned when an API request fails.
|
|
2729
|
-
* Contains a human-readable message describing the error.
|
|
2730
|
-
*
|
|
2731
|
-
*/
|
|
2732
|
-
Components.Schemas.ErrorResp;
|
|
2733
|
-
export type $404 = /**
|
|
2734
|
-
* Standard error response returned when an API request fails.
|
|
2735
|
-
* Contains a human-readable message describing the error.
|
|
2736
|
-
*
|
|
2737
|
-
*/
|
|
2738
|
-
Components.Schemas.ErrorResp;
|
|
2739
|
-
export type $500 = /**
|
|
2740
|
-
* Standard error response returned when an API request fails.
|
|
2741
|
-
* Contains a human-readable message describing the error.
|
|
2742
|
-
*
|
|
2743
|
-
*/
|
|
2744
|
-
Components.Schemas.ErrorResp;
|
|
2745
|
-
}
|
|
2746
|
-
}
|
|
2747
|
-
namespace ReconcileAutomationTask {
|
|
2748
|
-
namespace Parameters {
|
|
2749
|
-
export type ExecutionId = string;
|
|
2750
|
-
export type TaskId = string;
|
|
2751
|
-
}
|
|
2752
|
-
export interface PathParameters {
|
|
2753
|
-
execution_id: Parameters.ExecutionId;
|
|
2754
|
-
task_id: Parameters.TaskId;
|
|
2755
|
-
}
|
|
2756
|
-
namespace Responses {
|
|
2757
|
-
export type $200 = Components.Schemas.FlowExecution;
|
|
2758
|
-
export type $400 = /**
|
|
2759
|
-
* Standard error response returned when an API request fails.
|
|
2760
|
-
* Contains a human-readable message describing the error.
|
|
2761
|
-
*
|
|
2762
|
-
*/
|
|
2763
|
-
Components.Schemas.ErrorResp;
|
|
2764
|
-
export type $401 = /**
|
|
2765
|
-
* Standard error response returned when an API request fails.
|
|
2766
|
-
* Contains a human-readable message describing the error.
|
|
2767
|
-
*
|
|
2768
|
-
*/
|
|
2769
|
-
Components.Schemas.ErrorResp;
|
|
2770
|
-
export type $403 = /**
|
|
2771
|
-
* Standard error response returned when an API request fails.
|
|
2772
|
-
* Contains a human-readable message describing the error.
|
|
2773
|
-
*
|
|
2774
|
-
*/
|
|
2775
|
-
Components.Schemas.ErrorResp;
|
|
2776
|
-
export type $404 = /**
|
|
2777
|
-
* Standard error response returned when an API request fails.
|
|
2778
|
-
* Contains a human-readable message describing the error.
|
|
2779
|
-
*
|
|
2780
|
-
*/
|
|
2781
|
-
Components.Schemas.ErrorResp;
|
|
2782
|
-
export type $500 = /**
|
|
2783
|
-
* Standard error response returned when an API request fails.
|
|
2784
|
-
* Contains a human-readable message describing the error.
|
|
2785
|
-
*
|
|
2786
|
-
*/
|
|
2787
|
-
Components.Schemas.ErrorResp;
|
|
2404
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2405
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2406
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2788
2407
|
}
|
|
2789
2408
|
}
|
|
2790
2409
|
namespace RunTaskAutomation {
|
|
@@ -2798,24 +2417,9 @@ declare namespace Paths {
|
|
|
2798
2417
|
}
|
|
2799
2418
|
namespace Responses {
|
|
2800
2419
|
export type $200 = Components.Schemas.AutomationTask;
|
|
2801
|
-
export type $400 =
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
*
|
|
2805
|
-
*/
|
|
2806
|
-
Components.Schemas.ErrorResp;
|
|
2807
|
-
export type $401 = /**
|
|
2808
|
-
* Standard error response returned when an API request fails.
|
|
2809
|
-
* Contains a human-readable message describing the error.
|
|
2810
|
-
*
|
|
2811
|
-
*/
|
|
2812
|
-
Components.Schemas.ErrorResp;
|
|
2813
|
-
export type $500 = /**
|
|
2814
|
-
* Standard error response returned when an API request fails.
|
|
2815
|
-
* Contains a human-readable message describing the error.
|
|
2816
|
-
*
|
|
2817
|
-
*/
|
|
2818
|
-
Components.Schemas.ErrorResp;
|
|
2420
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2421
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2422
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2819
2423
|
}
|
|
2820
2424
|
}
|
|
2821
2425
|
namespace RunTaskScheduleNow {
|
|
@@ -2829,54 +2433,19 @@ declare namespace Paths {
|
|
|
2829
2433
|
}
|
|
2830
2434
|
namespace Responses {
|
|
2831
2435
|
export type $200 = Components.Schemas.Task;
|
|
2832
|
-
export type $400 =
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
*/
|
|
2837
|
-
Components.Schemas.ErrorResp;
|
|
2838
|
-
export type $401 = /**
|
|
2839
|
-
* Standard error response returned when an API request fails.
|
|
2840
|
-
* Contains a human-readable message describing the error.
|
|
2841
|
-
*
|
|
2842
|
-
*/
|
|
2843
|
-
Components.Schemas.ErrorResp;
|
|
2844
|
-
export type $404 = /**
|
|
2845
|
-
* Standard error response returned when an API request fails.
|
|
2846
|
-
* Contains a human-readable message describing the error.
|
|
2847
|
-
*
|
|
2848
|
-
*/
|
|
2849
|
-
Components.Schemas.ErrorResp;
|
|
2850
|
-
export type $500 = /**
|
|
2851
|
-
* Standard error response returned when an API request fails.
|
|
2852
|
-
* Contains a human-readable message describing the error.
|
|
2853
|
-
*
|
|
2854
|
-
*/
|
|
2855
|
-
Components.Schemas.ErrorResp;
|
|
2436
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2437
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2438
|
+
export type $404 = Components.Schemas.ErrorResp;
|
|
2439
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2856
2440
|
}
|
|
2857
2441
|
}
|
|
2858
2442
|
namespace SearchExecutions {
|
|
2859
2443
|
export type RequestBody = Components.Schemas.SearchExecutionsReq;
|
|
2860
2444
|
namespace Responses {
|
|
2861
2445
|
export type $200 = Components.Schemas.SearchExecutionsResp;
|
|
2862
|
-
export type $400 =
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
*
|
|
2866
|
-
*/
|
|
2867
|
-
Components.Schemas.ErrorResp;
|
|
2868
|
-
export type $401 = /**
|
|
2869
|
-
* Standard error response returned when an API request fails.
|
|
2870
|
-
* Contains a human-readable message describing the error.
|
|
2871
|
-
*
|
|
2872
|
-
*/
|
|
2873
|
-
Components.Schemas.ErrorResp;
|
|
2874
|
-
export type $500 = /**
|
|
2875
|
-
* Standard error response returned when an API request fails.
|
|
2876
|
-
* Contains a human-readable message describing the error.
|
|
2877
|
-
*
|
|
2878
|
-
*/
|
|
2879
|
-
Components.Schemas.ErrorResp;
|
|
2446
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2447
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2448
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2880
2449
|
}
|
|
2881
2450
|
}
|
|
2882
2451
|
namespace SearchFlowExecutions {
|
|
@@ -2885,80 +2454,33 @@ declare namespace Paths {
|
|
|
2885
2454
|
export interface $200 {
|
|
2886
2455
|
results?: Components.Schemas.FlowExecution[];
|
|
2887
2456
|
}
|
|
2888
|
-
export type $400 =
|
|
2889
|
-
* Standard error response returned when an API request fails.
|
|
2890
|
-
* Contains a human-readable message describing the error.
|
|
2891
|
-
*
|
|
2892
|
-
*/
|
|
2893
|
-
Components.Schemas.ErrorResp;
|
|
2457
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2894
2458
|
export interface $401 {
|
|
2895
2459
|
}
|
|
2896
2460
|
export interface $403 {
|
|
2897
2461
|
}
|
|
2898
|
-
export type $500 =
|
|
2899
|
-
* Standard error response returned when an API request fails.
|
|
2900
|
-
* Contains a human-readable message describing the error.
|
|
2901
|
-
*
|
|
2902
|
-
*/
|
|
2903
|
-
Components.Schemas.ErrorResp;
|
|
2462
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2904
2463
|
}
|
|
2905
2464
|
}
|
|
2906
2465
|
namespace SearchSteps {
|
|
2907
2466
|
export type RequestBody = Components.Schemas.SearchStepsReq;
|
|
2908
2467
|
namespace Responses {
|
|
2909
2468
|
export type $200 = Components.Schemas.SearchStepsResp;
|
|
2910
|
-
export type $400 =
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
*
|
|
2914
|
-
*/
|
|
2915
|
-
Components.Schemas.ErrorResp;
|
|
2916
|
-
export type $401 = /**
|
|
2917
|
-
* Standard error response returned when an API request fails.
|
|
2918
|
-
* Contains a human-readable message describing the error.
|
|
2919
|
-
*
|
|
2920
|
-
*/
|
|
2921
|
-
Components.Schemas.ErrorResp;
|
|
2922
|
-
export type $500 = /**
|
|
2923
|
-
* Standard error response returned when an API request fails.
|
|
2924
|
-
* Contains a human-readable message describing the error.
|
|
2925
|
-
*
|
|
2926
|
-
*/
|
|
2927
|
-
Components.Schemas.ErrorResp;
|
|
2469
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2470
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2471
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2928
2472
|
}
|
|
2929
2473
|
}
|
|
2930
2474
|
namespace StartFlowExecution {
|
|
2931
|
-
export type RequestBody =
|
|
2932
|
-
* Request payload for starting a new flow execution from a template.
|
|
2933
|
-
*
|
|
2934
|
-
*/
|
|
2935
|
-
Components.Schemas.StartFlowReq;
|
|
2475
|
+
export type RequestBody = Components.Schemas.StartFlowReq;
|
|
2936
2476
|
namespace Responses {
|
|
2937
2477
|
export type $201 = Components.Schemas.FlowExecution;
|
|
2938
|
-
export type $400 =
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
Components.Schemas.ErrorResp;
|
|
2944
|
-
export type $401 = /**
|
|
2945
|
-
* Standard error response returned when an API request fails.
|
|
2946
|
-
* Contains a human-readable message describing the error.
|
|
2947
|
-
*
|
|
2948
|
-
*/
|
|
2949
|
-
Components.Schemas.ErrorResp;
|
|
2950
|
-
export type $403 = /**
|
|
2951
|
-
* Standard error response returned when an API request fails.
|
|
2952
|
-
* Contains a human-readable message describing the error.
|
|
2953
|
-
*
|
|
2954
|
-
*/
|
|
2955
|
-
Components.Schemas.ErrorResp;
|
|
2956
|
-
export type $500 = /**
|
|
2957
|
-
* Standard error response returned when an API request fails.
|
|
2958
|
-
* Contains a human-readable message describing the error.
|
|
2959
|
-
*
|
|
2960
|
-
*/
|
|
2961
|
-
Components.Schemas.ErrorResp;
|
|
2478
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2479
|
+
export interface $401 {
|
|
2480
|
+
}
|
|
2481
|
+
export interface $403 {
|
|
2482
|
+
}
|
|
2483
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2962
2484
|
}
|
|
2963
2485
|
}
|
|
2964
2486
|
namespace UpdateExecution {
|
|
@@ -2972,12 +2494,7 @@ declare namespace Paths {
|
|
|
2972
2494
|
namespace Responses {
|
|
2973
2495
|
export interface $204 {
|
|
2974
2496
|
}
|
|
2975
|
-
export type $500 =
|
|
2976
|
-
* Standard error response returned when an API request fails.
|
|
2977
|
-
* Contains a human-readable message describing the error.
|
|
2978
|
-
*
|
|
2979
|
-
*/
|
|
2980
|
-
Components.Schemas.ErrorResp;
|
|
2497
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
2981
2498
|
}
|
|
2982
2499
|
}
|
|
2983
2500
|
namespace UpdateStep {
|
|
@@ -2992,24 +2509,9 @@ declare namespace Paths {
|
|
|
2992
2509
|
export type RequestBody = Components.Schemas.UpdateStepReq;
|
|
2993
2510
|
namespace Responses {
|
|
2994
2511
|
export type $200 = Components.Schemas.Step;
|
|
2995
|
-
export type $400 =
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
*
|
|
2999
|
-
*/
|
|
3000
|
-
Components.Schemas.ErrorResp;
|
|
3001
|
-
export type $401 = /**
|
|
3002
|
-
* Standard error response returned when an API request fails.
|
|
3003
|
-
* Contains a human-readable message describing the error.
|
|
3004
|
-
*
|
|
3005
|
-
*/
|
|
3006
|
-
Components.Schemas.ErrorResp;
|
|
3007
|
-
export type $500 = /**
|
|
3008
|
-
* Standard error response returned when an API request fails.
|
|
3009
|
-
* Contains a human-readable message describing the error.
|
|
3010
|
-
*
|
|
3011
|
-
*/
|
|
3012
|
-
Components.Schemas.ErrorResp;
|
|
2512
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
2513
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
2514
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
3013
2515
|
}
|
|
3014
2516
|
}
|
|
3015
2517
|
}
|
|
@@ -3029,13 +2531,7 @@ interface OperationMethods {
|
|
|
3029
2531
|
/**
|
|
3030
2532
|
* createExecution - createExecution
|
|
3031
2533
|
*
|
|
3032
|
-
*
|
|
3033
|
-
*
|
|
3034
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `POST /v2/flows/executions` instead.
|
|
3035
|
-
*
|
|
3036
|
-
* The workflow definition specifies the structure (sections and steps) of the workflow.
|
|
3037
|
-
* When created, the execution instantiates all steps and begins tracking progress.
|
|
3038
|
-
*
|
|
2534
|
+
* Create a Workflow Execution. Start a new workflow execution, based on a workflow definition (template).
|
|
3039
2535
|
*/
|
|
3040
2536
|
'createExecution'(
|
|
3041
2537
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -3045,10 +2541,7 @@ interface OperationMethods {
|
|
|
3045
2541
|
/**
|
|
3046
2542
|
* getExecution - getExecution
|
|
3047
2543
|
*
|
|
3048
|
-
*
|
|
3049
|
-
*
|
|
3050
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `GET /v2/flows/executions/{execution_id}` instead.
|
|
3051
|
-
*
|
|
2544
|
+
* Get a full workflow execution, included steps information, by execution id.
|
|
3052
2545
|
*/
|
|
3053
2546
|
'getExecution'(
|
|
3054
2547
|
parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
|
|
@@ -3088,16 +2581,7 @@ interface OperationMethods {
|
|
|
3088
2581
|
/**
|
|
3089
2582
|
* updateStep - updateStep
|
|
3090
2583
|
*
|
|
3091
|
-
*
|
|
3092
|
-
*
|
|
3093
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `PATCH /v2/flows/executions/{execution_id}/tasks/{task_id}` instead.
|
|
3094
|
-
*
|
|
3095
|
-
* **Common use cases:**
|
|
3096
|
-
* - Mark a step as completed or skipped
|
|
3097
|
-
* - Assign or reassign users to a step
|
|
3098
|
-
* - Update step due dates (static or dynamic)
|
|
3099
|
-
* - Reorder steps within a section
|
|
3100
|
-
*
|
|
2584
|
+
* Patches various changes to a workflow execution step.
|
|
3101
2585
|
*/
|
|
3102
2586
|
'updateStep'(
|
|
3103
2587
|
parameters?: Parameters<Paths.UpdateStep.PathParameters> | null,
|
|
@@ -3150,20 +2634,7 @@ interface OperationMethods {
|
|
|
3150
2634
|
/**
|
|
3151
2635
|
* startFlowExecution - startFlowExecution
|
|
3152
2636
|
*
|
|
3153
|
-
* Starts a new Flow Execution based on a flow template
|
|
3154
|
-
*
|
|
3155
|
-
* The flow template defines the structure of the workflow including phases, tasks, edges (transitions),
|
|
3156
|
-
* and automation configurations. When started, the execution creates runtime instances of all tasks
|
|
3157
|
-
* and begins processing from the initial task(s).
|
|
3158
|
-
*
|
|
3159
|
-
* **Required fields:**
|
|
3160
|
-
* - `flow_template_id`: The ID of the flow template to instantiate
|
|
3161
|
-
* - `contexts`: At least one entity context to link the execution to
|
|
3162
|
-
*
|
|
3163
|
-
* **Optional fields:**
|
|
3164
|
-
* - `trigger`: Specifies how the execution was triggered (manual or automatic)
|
|
3165
|
-
* - `purposes`: Filter which phases/tasks are included based on taxonomy purposes
|
|
3166
|
-
*
|
|
2637
|
+
* Starts a new Flow Execution based on a flow template.
|
|
3167
2638
|
*/
|
|
3168
2639
|
'startFlowExecution'(
|
|
3169
2640
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -3173,16 +2644,7 @@ interface OperationMethods {
|
|
|
3173
2644
|
/**
|
|
3174
2645
|
* getFlowExecution - getFlowExecution
|
|
3175
2646
|
*
|
|
3176
|
-
*
|
|
3177
|
-
*
|
|
3178
|
-
* The response includes:
|
|
3179
|
-
* - **Execution metadata**: ID, name, status, timestamps, assignees
|
|
3180
|
-
* - **Phases**: Organizational groupings of tasks with progress tracking
|
|
3181
|
-
* - **Tasks**: Individual work items with their status, assignees, and configurations
|
|
3182
|
-
* - **Edges**: Connections between tasks defining the workflow graph
|
|
3183
|
-
* - **Analytics**: Timing information (started, completed, closed timestamps)
|
|
3184
|
-
* - **Contexts**: Linked entity references
|
|
3185
|
-
*
|
|
2647
|
+
* Get a full flow execution, included tasks, phases, edges & analytics.
|
|
3186
2648
|
*/
|
|
3187
2649
|
'getFlowExecution'(
|
|
3188
2650
|
parameters?: Parameters<Paths.GetFlowExecution.PathParameters> | null,
|
|
@@ -3222,26 +2684,7 @@ interface OperationMethods {
|
|
|
3222
2684
|
/**
|
|
3223
2685
|
* patchTask - patchTask
|
|
3224
2686
|
*
|
|
3225
|
-
*
|
|
3226
|
-
*
|
|
3227
|
-
* **Common use cases:**
|
|
3228
|
-
* - Mark a task as completed or skipped
|
|
3229
|
-
* - Assign or reassign users to a task
|
|
3230
|
-
* - Update task due dates
|
|
3231
|
-
* - Enable or disable a task
|
|
3232
|
-
* - Revert execution to a previous task
|
|
3233
|
-
*
|
|
3234
|
-
* **Status transitions:**
|
|
3235
|
-
* - `PENDING` -> `IN_PROGRESS`: User starts working on the task
|
|
3236
|
-
* - `IN_PROGRESS` -> `COMPLETED`: User finishes the task
|
|
3237
|
-
* - `PENDING` or `IN_PROGRESS` -> `SKIPPED`: Task is bypassed
|
|
3238
|
-
* - `COMPLETED` or `SKIPPED` -> `PENDING`: Task is reopened (with revert_execution flag)
|
|
3239
|
-
*
|
|
3240
|
-
* **Reverting execution:**
|
|
3241
|
-
* When updating a task that was already completed/skipped and comes before the current task,
|
|
3242
|
-
* use `revert_execution: true` to reset the flow back to that point. All subsequent tasks
|
|
3243
|
-
* will be reset to PENDING status.
|
|
3244
|
-
*
|
|
2687
|
+
* Changes various attributes of a flow task, like assignees, status, due date, etc.
|
|
3245
2688
|
*/
|
|
3246
2689
|
'patchTask'(
|
|
3247
2690
|
parameters?: Parameters<Paths.PatchTask.PathParameters> | null,
|
|
@@ -3298,29 +2741,6 @@ interface OperationMethods {
|
|
|
3298
2741
|
data?: any,
|
|
3299
2742
|
config?: AxiosRequestConfig
|
|
3300
2743
|
): OperationResponse<Paths.CancelTaskSchedule.Responses.$204>
|
|
3301
|
-
/**
|
|
3302
|
-
* reconcileAutomationTask - reconcileAutomationTask
|
|
3303
|
-
*
|
|
3304
|
-
* Reconciles an automation task's status against its linked automation execution.
|
|
3305
|
-
*
|
|
3306
|
-
* Looks the task up by id (whether or not it is currently a `crt_task`),
|
|
3307
|
-
* fetches its automation execution, and — if the automation has reached a
|
|
3308
|
-
* terminal state (success/failed/skipped) — corrects the task's `status`,
|
|
3309
|
-
* `automation_config` and `analytics` to match and persists them. If the
|
|
3310
|
-
* task is the current task and the flow is still active, the flow is
|
|
3311
|
-
* advanced; otherwise only the task record is corrected.
|
|
3312
|
-
*
|
|
3313
|
-
* Used by the "Refresh status" action to recover a task left `IN_PROGRESS`
|
|
3314
|
-
* after a missed or clobbered completion event. No-op (returns the
|
|
3315
|
-
* execution unchanged) when the task is already terminal or the automation
|
|
3316
|
-
* is still running.
|
|
3317
|
-
*
|
|
3318
|
-
*/
|
|
3319
|
-
'reconcileAutomationTask'(
|
|
3320
|
-
parameters?: Parameters<Paths.ReconcileAutomationTask.PathParameters> | null,
|
|
3321
|
-
data?: any,
|
|
3322
|
-
config?: AxiosRequestConfig
|
|
3323
|
-
): OperationResponse<Paths.ReconcileAutomationTask.Responses.$200>
|
|
3324
2744
|
/**
|
|
3325
2745
|
* runTaskScheduleNow - runTaskScheduleNow
|
|
3326
2746
|
*
|
|
@@ -3361,13 +2781,7 @@ interface PathsDictionary {
|
|
|
3361
2781
|
/**
|
|
3362
2782
|
* createExecution - createExecution
|
|
3363
2783
|
*
|
|
3364
|
-
*
|
|
3365
|
-
*
|
|
3366
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `POST /v2/flows/executions` instead.
|
|
3367
|
-
*
|
|
3368
|
-
* The workflow definition specifies the structure (sections and steps) of the workflow.
|
|
3369
|
-
* When created, the execution instantiates all steps and begins tracking progress.
|
|
3370
|
-
*
|
|
2784
|
+
* Create a Workflow Execution. Start a new workflow execution, based on a workflow definition (template).
|
|
3371
2785
|
*/
|
|
3372
2786
|
'post'(
|
|
3373
2787
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -3379,10 +2793,7 @@ interface PathsDictionary {
|
|
|
3379
2793
|
/**
|
|
3380
2794
|
* getExecution - getExecution
|
|
3381
2795
|
*
|
|
3382
|
-
*
|
|
3383
|
-
*
|
|
3384
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `GET /v2/flows/executions/{execution_id}` instead.
|
|
3385
|
-
*
|
|
2796
|
+
* Get a full workflow execution, included steps information, by execution id.
|
|
3386
2797
|
*/
|
|
3387
2798
|
'get'(
|
|
3388
2799
|
parameters?: Parameters<Paths.GetExecution.PathParameters> | null,
|
|
@@ -3426,16 +2837,7 @@ interface PathsDictionary {
|
|
|
3426
2837
|
/**
|
|
3427
2838
|
* updateStep - updateStep
|
|
3428
2839
|
*
|
|
3429
|
-
*
|
|
3430
|
-
*
|
|
3431
|
-
* **Note:** This is the legacy V1 API. For new integrations, use `PATCH /v2/flows/executions/{execution_id}/tasks/{task_id}` instead.
|
|
3432
|
-
*
|
|
3433
|
-
* **Common use cases:**
|
|
3434
|
-
* - Mark a step as completed or skipped
|
|
3435
|
-
* - Assign or reassign users to a step
|
|
3436
|
-
* - Update step due dates (static or dynamic)
|
|
3437
|
-
* - Reorder steps within a section
|
|
3438
|
-
*
|
|
2840
|
+
* Patches various changes to a workflow execution step.
|
|
3439
2841
|
*/
|
|
3440
2842
|
'patch'(
|
|
3441
2843
|
parameters?: Parameters<Paths.UpdateStep.PathParameters> | null,
|
|
@@ -3496,20 +2898,7 @@ interface PathsDictionary {
|
|
|
3496
2898
|
/**
|
|
3497
2899
|
* startFlowExecution - startFlowExecution
|
|
3498
2900
|
*
|
|
3499
|
-
* Starts a new Flow Execution based on a flow template
|
|
3500
|
-
*
|
|
3501
|
-
* The flow template defines the structure of the workflow including phases, tasks, edges (transitions),
|
|
3502
|
-
* and automation configurations. When started, the execution creates runtime instances of all tasks
|
|
3503
|
-
* and begins processing from the initial task(s).
|
|
3504
|
-
*
|
|
3505
|
-
* **Required fields:**
|
|
3506
|
-
* - `flow_template_id`: The ID of the flow template to instantiate
|
|
3507
|
-
* - `contexts`: At least one entity context to link the execution to
|
|
3508
|
-
*
|
|
3509
|
-
* **Optional fields:**
|
|
3510
|
-
* - `trigger`: Specifies how the execution was triggered (manual or automatic)
|
|
3511
|
-
* - `purposes`: Filter which phases/tasks are included based on taxonomy purposes
|
|
3512
|
-
*
|
|
2901
|
+
* Starts a new Flow Execution based on a flow template.
|
|
3513
2902
|
*/
|
|
3514
2903
|
'post'(
|
|
3515
2904
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
@@ -3521,16 +2910,7 @@ interface PathsDictionary {
|
|
|
3521
2910
|
/**
|
|
3522
2911
|
* getFlowExecution - getFlowExecution
|
|
3523
2912
|
*
|
|
3524
|
-
*
|
|
3525
|
-
*
|
|
3526
|
-
* The response includes:
|
|
3527
|
-
* - **Execution metadata**: ID, name, status, timestamps, assignees
|
|
3528
|
-
* - **Phases**: Organizational groupings of tasks with progress tracking
|
|
3529
|
-
* - **Tasks**: Individual work items with their status, assignees, and configurations
|
|
3530
|
-
* - **Edges**: Connections between tasks defining the workflow graph
|
|
3531
|
-
* - **Analytics**: Timing information (started, completed, closed timestamps)
|
|
3532
|
-
* - **Contexts**: Linked entity references
|
|
3533
|
-
*
|
|
2913
|
+
* Get a full flow execution, included tasks, phases, edges & analytics.
|
|
3534
2914
|
*/
|
|
3535
2915
|
'get'(
|
|
3536
2916
|
parameters?: Parameters<Paths.GetFlowExecution.PathParameters> | null,
|
|
@@ -3574,26 +2954,7 @@ interface PathsDictionary {
|
|
|
3574
2954
|
/**
|
|
3575
2955
|
* patchTask - patchTask
|
|
3576
2956
|
*
|
|
3577
|
-
*
|
|
3578
|
-
*
|
|
3579
|
-
* **Common use cases:**
|
|
3580
|
-
* - Mark a task as completed or skipped
|
|
3581
|
-
* - Assign or reassign users to a task
|
|
3582
|
-
* - Update task due dates
|
|
3583
|
-
* - Enable or disable a task
|
|
3584
|
-
* - Revert execution to a previous task
|
|
3585
|
-
*
|
|
3586
|
-
* **Status transitions:**
|
|
3587
|
-
* - `PENDING` -> `IN_PROGRESS`: User starts working on the task
|
|
3588
|
-
* - `IN_PROGRESS` -> `COMPLETED`: User finishes the task
|
|
3589
|
-
* - `PENDING` or `IN_PROGRESS` -> `SKIPPED`: Task is bypassed
|
|
3590
|
-
* - `COMPLETED` or `SKIPPED` -> `PENDING`: Task is reopened (with revert_execution flag)
|
|
3591
|
-
*
|
|
3592
|
-
* **Reverting execution:**
|
|
3593
|
-
* When updating a task that was already completed/skipped and comes before the current task,
|
|
3594
|
-
* use `revert_execution: true` to reset the flow back to that point. All subsequent tasks
|
|
3595
|
-
* will be reset to PENDING status.
|
|
3596
|
-
*
|
|
2957
|
+
* Changes various attributes of a flow task, like assignees, status, due date, etc.
|
|
3597
2958
|
*/
|
|
3598
2959
|
'patch'(
|
|
3599
2960
|
parameters?: Parameters<Paths.PatchTask.PathParameters> | null,
|
|
@@ -3661,31 +3022,6 @@ interface PathsDictionary {
|
|
|
3661
3022
|
config?: AxiosRequestConfig
|
|
3662
3023
|
): OperationResponse<Paths.CancelTaskSchedule.Responses.$204>
|
|
3663
3024
|
}
|
|
3664
|
-
['/v2/flows/executions/{execution_id}/tasks/{task_id}/reconcile-automation']: {
|
|
3665
|
-
/**
|
|
3666
|
-
* reconcileAutomationTask - reconcileAutomationTask
|
|
3667
|
-
*
|
|
3668
|
-
* Reconciles an automation task's status against its linked automation execution.
|
|
3669
|
-
*
|
|
3670
|
-
* Looks the task up by id (whether or not it is currently a `crt_task`),
|
|
3671
|
-
* fetches its automation execution, and — if the automation has reached a
|
|
3672
|
-
* terminal state (success/failed/skipped) — corrects the task's `status`,
|
|
3673
|
-
* `automation_config` and `analytics` to match and persists them. If the
|
|
3674
|
-
* task is the current task and the flow is still active, the flow is
|
|
3675
|
-
* advanced; otherwise only the task record is corrected.
|
|
3676
|
-
*
|
|
3677
|
-
* Used by the "Refresh status" action to recover a task left `IN_PROGRESS`
|
|
3678
|
-
* after a missed or clobbered completion event. No-op (returns the
|
|
3679
|
-
* execution unchanged) when the task is already terminal or the automation
|
|
3680
|
-
* is still running.
|
|
3681
|
-
*
|
|
3682
|
-
*/
|
|
3683
|
-
'post'(
|
|
3684
|
-
parameters?: Parameters<Paths.ReconcileAutomationTask.PathParameters> | null,
|
|
3685
|
-
data?: any,
|
|
3686
|
-
config?: AxiosRequestConfig
|
|
3687
|
-
): OperationResponse<Paths.ReconcileAutomationTask.Responses.$200>
|
|
3688
|
-
}
|
|
3689
3025
|
['/v2/flows/executions/{execution_id}/tasks/{task_id}/schedule/run-now']: {
|
|
3690
3026
|
/**
|
|
3691
3027
|
* runTaskScheduleNow - runTaskScheduleNow
|