@vitrina/api 16.1.0 → 17.0.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 +234 -5
- package/dist/index.d.ts +234 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -177056,10 +177056,88 @@ interface paths {
|
|
|
177056
177056
|
* "label": "Llamada de cobranza"
|
|
177057
177057
|
* },
|
|
177058
177058
|
* {
|
|
177059
|
+
* "situation": null,
|
|
177060
|
+
* "config_ref": null,
|
|
177061
|
+
* "key": "call-1-outcome",
|
|
177062
|
+
* "kind": "condition",
|
|
177063
|
+
* "position": 3,
|
|
177064
|
+
* "wait": {
|
|
177065
|
+
* "type": "duration",
|
|
177066
|
+
* "value": 0,
|
|
177067
|
+
* "unit": "hours",
|
|
177068
|
+
* "from": "previous_step",
|
|
177069
|
+
* "from_step": "step-2",
|
|
177070
|
+
* "hours": 0
|
|
177071
|
+
* },
|
|
177072
|
+
* "test": "call_outcome",
|
|
177073
|
+
* "ai_prompt": null,
|
|
177074
|
+
* "branches": [
|
|
177075
|
+
* {
|
|
177076
|
+
* "key": "promised_pay",
|
|
177077
|
+
* "label": "Prometió pagar",
|
|
177078
|
+
* "to": "promise-1-wait"
|
|
177079
|
+
* },
|
|
177080
|
+
* {
|
|
177081
|
+
* "key": "no_answer",
|
|
177082
|
+
* "label": "No contestó",
|
|
177083
|
+
* "to": "step-3"
|
|
177084
|
+
* }
|
|
177085
|
+
* ],
|
|
177086
|
+
* "default_branch": "no_answer",
|
|
177087
|
+
* "label": "¿Cómo salió la llamada?"
|
|
177088
|
+
* },
|
|
177089
|
+
* {
|
|
177090
|
+
* "situation": null,
|
|
177091
|
+
* "config_ref": null,
|
|
177092
|
+
* "key": "promise-1-wait",
|
|
177093
|
+
* "kind": "wait_until",
|
|
177094
|
+
* "position": 4,
|
|
177095
|
+
* "until": {
|
|
177096
|
+
* "kind": "date_field",
|
|
177097
|
+
* "field": "promised_date"
|
|
177098
|
+
* },
|
|
177099
|
+
* "timeout": {
|
|
177100
|
+
* "value": 14,
|
|
177101
|
+
* "unit": "days"
|
|
177102
|
+
* },
|
|
177103
|
+
* "label": "Esperar hasta la fecha prometida"
|
|
177104
|
+
* },
|
|
177105
|
+
* {
|
|
177106
|
+
* "situation": null,
|
|
177107
|
+
* "config_ref": null,
|
|
177108
|
+
* "key": "paid-1",
|
|
177109
|
+
* "kind": "condition",
|
|
177110
|
+
* "position": 5,
|
|
177111
|
+
* "wait": {
|
|
177112
|
+
* "type": "duration",
|
|
177113
|
+
* "value": 1,
|
|
177114
|
+
* "unit": "days",
|
|
177115
|
+
* "from": "previous_step",
|
|
177116
|
+
* "from_step": "promise-1-wait",
|
|
177117
|
+
* "hours": 24
|
|
177118
|
+
* },
|
|
177119
|
+
* "test": "paid",
|
|
177120
|
+
* "ai_prompt": null,
|
|
177121
|
+
* "branches": [
|
|
177122
|
+
* {
|
|
177123
|
+
* "key": "yes",
|
|
177124
|
+
* "label": "Sí",
|
|
177125
|
+
* "to": "end"
|
|
177126
|
+
* },
|
|
177127
|
+
* {
|
|
177128
|
+
* "key": "no",
|
|
177129
|
+
* "label": "No",
|
|
177130
|
+
* "to": "step-3"
|
|
177131
|
+
* }
|
|
177132
|
+
* ],
|
|
177133
|
+
* "default_branch": null,
|
|
177134
|
+
* "label": "¿Pagó?"
|
|
177135
|
+
* },
|
|
177136
|
+
* {
|
|
177059
177137
|
* "key": "step-3",
|
|
177060
177138
|
* "situation": null,
|
|
177061
177139
|
* "kind": "message",
|
|
177062
|
-
* "position":
|
|
177140
|
+
* "position": 6,
|
|
177063
177141
|
* "channel": "whatsapp",
|
|
177064
177142
|
* "fallback_channel": null,
|
|
177065
177143
|
* "wait": {
|
|
@@ -177082,7 +177160,7 @@ interface paths {
|
|
|
177082
177160
|
* "key": "step-4",
|
|
177083
177161
|
* "situation": null,
|
|
177084
177162
|
* "kind": "message",
|
|
177085
|
-
* "position":
|
|
177163
|
+
* "position": 7,
|
|
177086
177164
|
* "channel": "call",
|
|
177087
177165
|
* "fallback_channel": null,
|
|
177088
177166
|
* "wait": {
|
|
@@ -177102,10 +177180,88 @@ interface paths {
|
|
|
177102
177180
|
* "label": "Segunda llamada"
|
|
177103
177181
|
* },
|
|
177104
177182
|
* {
|
|
177183
|
+
* "situation": null,
|
|
177184
|
+
* "config_ref": null,
|
|
177185
|
+
* "key": "call-2-outcome",
|
|
177186
|
+
* "kind": "condition",
|
|
177187
|
+
* "position": 8,
|
|
177188
|
+
* "wait": {
|
|
177189
|
+
* "type": "duration",
|
|
177190
|
+
* "value": 0,
|
|
177191
|
+
* "unit": "hours",
|
|
177192
|
+
* "from": "previous_step",
|
|
177193
|
+
* "from_step": "step-4",
|
|
177194
|
+
* "hours": 0
|
|
177195
|
+
* },
|
|
177196
|
+
* "test": "call_outcome",
|
|
177197
|
+
* "ai_prompt": null,
|
|
177198
|
+
* "branches": [
|
|
177199
|
+
* {
|
|
177200
|
+
* "key": "promised_pay",
|
|
177201
|
+
* "label": "Prometió pagar",
|
|
177202
|
+
* "to": "promise-2-wait"
|
|
177203
|
+
* },
|
|
177204
|
+
* {
|
|
177205
|
+
* "key": "no_answer",
|
|
177206
|
+
* "label": "No contestó",
|
|
177207
|
+
* "to": "step-5"
|
|
177208
|
+
* }
|
|
177209
|
+
* ],
|
|
177210
|
+
* "default_branch": "no_answer",
|
|
177211
|
+
* "label": "¿Cómo salió la llamada?"
|
|
177212
|
+
* },
|
|
177213
|
+
* {
|
|
177214
|
+
* "situation": null,
|
|
177215
|
+
* "config_ref": null,
|
|
177216
|
+
* "key": "promise-2-wait",
|
|
177217
|
+
* "kind": "wait_until",
|
|
177218
|
+
* "position": 9,
|
|
177219
|
+
* "until": {
|
|
177220
|
+
* "kind": "date_field",
|
|
177221
|
+
* "field": "promised_date"
|
|
177222
|
+
* },
|
|
177223
|
+
* "timeout": {
|
|
177224
|
+
* "value": 14,
|
|
177225
|
+
* "unit": "days"
|
|
177226
|
+
* },
|
|
177227
|
+
* "label": "Esperar hasta la fecha prometida"
|
|
177228
|
+
* },
|
|
177229
|
+
* {
|
|
177230
|
+
* "situation": null,
|
|
177231
|
+
* "config_ref": null,
|
|
177232
|
+
* "key": "paid-2",
|
|
177233
|
+
* "kind": "condition",
|
|
177234
|
+
* "position": 10,
|
|
177235
|
+
* "wait": {
|
|
177236
|
+
* "type": "duration",
|
|
177237
|
+
* "value": 1,
|
|
177238
|
+
* "unit": "days",
|
|
177239
|
+
* "from": "previous_step",
|
|
177240
|
+
* "from_step": "promise-2-wait",
|
|
177241
|
+
* "hours": 24
|
|
177242
|
+
* },
|
|
177243
|
+
* "test": "paid",
|
|
177244
|
+
* "ai_prompt": null,
|
|
177245
|
+
* "branches": [
|
|
177246
|
+
* {
|
|
177247
|
+
* "key": "yes",
|
|
177248
|
+
* "label": "Sí",
|
|
177249
|
+
* "to": "end"
|
|
177250
|
+
* },
|
|
177251
|
+
* {
|
|
177252
|
+
* "key": "no",
|
|
177253
|
+
* "label": "No",
|
|
177254
|
+
* "to": "step-5"
|
|
177255
|
+
* }
|
|
177256
|
+
* ],
|
|
177257
|
+
* "default_branch": null,
|
|
177258
|
+
* "label": "¿Pagó?"
|
|
177259
|
+
* },
|
|
177260
|
+
* {
|
|
177105
177261
|
* "key": "step-5",
|
|
177106
177262
|
* "situation": null,
|
|
177107
177263
|
* "kind": "message",
|
|
177108
|
-
* "position":
|
|
177264
|
+
* "position": 11,
|
|
177109
177265
|
* "channel": "email",
|
|
177110
177266
|
* "fallback_channel": null,
|
|
177111
177267
|
* "wait": {
|
|
@@ -284717,7 +284873,7 @@ interface components {
|
|
|
284717
284873
|
label: string;
|
|
284718
284874
|
};
|
|
284719
284875
|
channels: ("whatsapp" | "same_chat" | "instagram" | "email" | "call" | "sms")[];
|
|
284720
|
-
steps: {
|
|
284876
|
+
steps: ({
|
|
284721
284877
|
key: string;
|
|
284722
284878
|
situation: string | null;
|
|
284723
284879
|
/** @enum {string} */
|
|
@@ -284813,7 +284969,80 @@ interface components {
|
|
|
284813
284969
|
/** @description Custom sequences: the step key (or `end`) this step goes to; absent/null = the next step by position. */
|
|
284814
284970
|
next?: string | null;
|
|
284815
284971
|
label: string;
|
|
284816
|
-
}
|
|
284972
|
+
} | {
|
|
284973
|
+
key: string;
|
|
284974
|
+
situation: string | null;
|
|
284975
|
+
/** @enum {string} */
|
|
284976
|
+
kind: "condition";
|
|
284977
|
+
position: number;
|
|
284978
|
+
wait: {
|
|
284979
|
+
/** @enum {string} */
|
|
284980
|
+
type: "duration";
|
|
284981
|
+
value: number;
|
|
284982
|
+
/** @enum {string} */
|
|
284983
|
+
unit: "minutes" | "hours" | "days";
|
|
284984
|
+
/** @enum {string} */
|
|
284985
|
+
from: "previous_step" | "start";
|
|
284986
|
+
from_step: string | null;
|
|
284987
|
+
hours: number;
|
|
284988
|
+
} | {
|
|
284989
|
+
/** @enum {string} */
|
|
284990
|
+
type: "event";
|
|
284991
|
+
event: string;
|
|
284992
|
+
} | {
|
|
284993
|
+
/** @enum {string} */
|
|
284994
|
+
type: "agreed_time";
|
|
284995
|
+
} | {
|
|
284996
|
+
/** @enum {string} */
|
|
284997
|
+
type: "before_appointment";
|
|
284998
|
+
value: number;
|
|
284999
|
+
/** @enum {string} */
|
|
285000
|
+
unit: "minutes" | "hours" | "days";
|
|
285001
|
+
hours: number;
|
|
285002
|
+
};
|
|
285003
|
+
/**
|
|
285004
|
+
* @description `replied` (the customer wrote since our last message), `paid` (unavailable until app#6456), `booked` (an appointment since entering), `ai_decides` (the sequence agent picks a branch; `default_branch` on failure). `call_outcome` (how the latest AI call step ended: one branch per outcome answered | promised_pay | promised_visit | call_later | no_answer | do_not_contact, 2 to 6, the branch key is the outcome; `default_branch` for an outcome with no branch). The fixed tests (replied, paid, booked) have exactly the branches `yes` and `no`.
|
|
285005
|
+
* @enum {string}
|
|
285006
|
+
*/
|
|
285007
|
+
test: "replied" | "paid" | "booked" | "ai_decides" | "call_outcome";
|
|
285008
|
+
/** @default null */
|
|
285009
|
+
ai_prompt: string | null;
|
|
285010
|
+
branches: components["schemas"]["SequenceBranch"][];
|
|
285011
|
+
/** @default null */
|
|
285012
|
+
default_branch: string | null;
|
|
285013
|
+
config_ref?: null;
|
|
285014
|
+
label: string;
|
|
285015
|
+
} | {
|
|
285016
|
+
key: string;
|
|
285017
|
+
situation: string | null;
|
|
285018
|
+
/** @enum {string} */
|
|
285019
|
+
kind: "wait_until";
|
|
285020
|
+
position: number;
|
|
285021
|
+
until: components["schemas"]["SequenceWaitUntil"];
|
|
285022
|
+
timeout: {
|
|
285023
|
+
value: number;
|
|
285024
|
+
/** @enum {string} */
|
|
285025
|
+
unit: "minutes" | "hours" | "days";
|
|
285026
|
+
};
|
|
285027
|
+
config_ref?: null;
|
|
285028
|
+
/** @description Custom sequences: the step key (or `end`) this step goes to; absent/null = the next step by position. */
|
|
285029
|
+
next?: string | null;
|
|
285030
|
+
label: string;
|
|
285031
|
+
} | {
|
|
285032
|
+
key: string;
|
|
285033
|
+
situation: string | null;
|
|
285034
|
+
/** @enum {string} */
|
|
285035
|
+
kind: "goto";
|
|
285036
|
+
position: number;
|
|
285037
|
+
target_step: string;
|
|
285038
|
+
/**
|
|
285039
|
+
* @description How many times one person takes this jump (default 2, at most 5).
|
|
285040
|
+
* @default 2
|
|
285041
|
+
*/
|
|
285042
|
+
max_times: number;
|
|
285043
|
+
config_ref?: null;
|
|
285044
|
+
label: string;
|
|
285045
|
+
})[];
|
|
284817
285046
|
};
|
|
284818
285047
|
SequenceCreateResult: {
|
|
284819
285048
|
sequence: components["schemas"]["Sequence"];
|
package/dist/index.d.ts
CHANGED
|
@@ -177056,10 +177056,88 @@ interface paths {
|
|
|
177056
177056
|
* "label": "Llamada de cobranza"
|
|
177057
177057
|
* },
|
|
177058
177058
|
* {
|
|
177059
|
+
* "situation": null,
|
|
177060
|
+
* "config_ref": null,
|
|
177061
|
+
* "key": "call-1-outcome",
|
|
177062
|
+
* "kind": "condition",
|
|
177063
|
+
* "position": 3,
|
|
177064
|
+
* "wait": {
|
|
177065
|
+
* "type": "duration",
|
|
177066
|
+
* "value": 0,
|
|
177067
|
+
* "unit": "hours",
|
|
177068
|
+
* "from": "previous_step",
|
|
177069
|
+
* "from_step": "step-2",
|
|
177070
|
+
* "hours": 0
|
|
177071
|
+
* },
|
|
177072
|
+
* "test": "call_outcome",
|
|
177073
|
+
* "ai_prompt": null,
|
|
177074
|
+
* "branches": [
|
|
177075
|
+
* {
|
|
177076
|
+
* "key": "promised_pay",
|
|
177077
|
+
* "label": "Prometió pagar",
|
|
177078
|
+
* "to": "promise-1-wait"
|
|
177079
|
+
* },
|
|
177080
|
+
* {
|
|
177081
|
+
* "key": "no_answer",
|
|
177082
|
+
* "label": "No contestó",
|
|
177083
|
+
* "to": "step-3"
|
|
177084
|
+
* }
|
|
177085
|
+
* ],
|
|
177086
|
+
* "default_branch": "no_answer",
|
|
177087
|
+
* "label": "¿Cómo salió la llamada?"
|
|
177088
|
+
* },
|
|
177089
|
+
* {
|
|
177090
|
+
* "situation": null,
|
|
177091
|
+
* "config_ref": null,
|
|
177092
|
+
* "key": "promise-1-wait",
|
|
177093
|
+
* "kind": "wait_until",
|
|
177094
|
+
* "position": 4,
|
|
177095
|
+
* "until": {
|
|
177096
|
+
* "kind": "date_field",
|
|
177097
|
+
* "field": "promised_date"
|
|
177098
|
+
* },
|
|
177099
|
+
* "timeout": {
|
|
177100
|
+
* "value": 14,
|
|
177101
|
+
* "unit": "days"
|
|
177102
|
+
* },
|
|
177103
|
+
* "label": "Esperar hasta la fecha prometida"
|
|
177104
|
+
* },
|
|
177105
|
+
* {
|
|
177106
|
+
* "situation": null,
|
|
177107
|
+
* "config_ref": null,
|
|
177108
|
+
* "key": "paid-1",
|
|
177109
|
+
* "kind": "condition",
|
|
177110
|
+
* "position": 5,
|
|
177111
|
+
* "wait": {
|
|
177112
|
+
* "type": "duration",
|
|
177113
|
+
* "value": 1,
|
|
177114
|
+
* "unit": "days",
|
|
177115
|
+
* "from": "previous_step",
|
|
177116
|
+
* "from_step": "promise-1-wait",
|
|
177117
|
+
* "hours": 24
|
|
177118
|
+
* },
|
|
177119
|
+
* "test": "paid",
|
|
177120
|
+
* "ai_prompt": null,
|
|
177121
|
+
* "branches": [
|
|
177122
|
+
* {
|
|
177123
|
+
* "key": "yes",
|
|
177124
|
+
* "label": "Sí",
|
|
177125
|
+
* "to": "end"
|
|
177126
|
+
* },
|
|
177127
|
+
* {
|
|
177128
|
+
* "key": "no",
|
|
177129
|
+
* "label": "No",
|
|
177130
|
+
* "to": "step-3"
|
|
177131
|
+
* }
|
|
177132
|
+
* ],
|
|
177133
|
+
* "default_branch": null,
|
|
177134
|
+
* "label": "¿Pagó?"
|
|
177135
|
+
* },
|
|
177136
|
+
* {
|
|
177059
177137
|
* "key": "step-3",
|
|
177060
177138
|
* "situation": null,
|
|
177061
177139
|
* "kind": "message",
|
|
177062
|
-
* "position":
|
|
177140
|
+
* "position": 6,
|
|
177063
177141
|
* "channel": "whatsapp",
|
|
177064
177142
|
* "fallback_channel": null,
|
|
177065
177143
|
* "wait": {
|
|
@@ -177082,7 +177160,7 @@ interface paths {
|
|
|
177082
177160
|
* "key": "step-4",
|
|
177083
177161
|
* "situation": null,
|
|
177084
177162
|
* "kind": "message",
|
|
177085
|
-
* "position":
|
|
177163
|
+
* "position": 7,
|
|
177086
177164
|
* "channel": "call",
|
|
177087
177165
|
* "fallback_channel": null,
|
|
177088
177166
|
* "wait": {
|
|
@@ -177102,10 +177180,88 @@ interface paths {
|
|
|
177102
177180
|
* "label": "Segunda llamada"
|
|
177103
177181
|
* },
|
|
177104
177182
|
* {
|
|
177183
|
+
* "situation": null,
|
|
177184
|
+
* "config_ref": null,
|
|
177185
|
+
* "key": "call-2-outcome",
|
|
177186
|
+
* "kind": "condition",
|
|
177187
|
+
* "position": 8,
|
|
177188
|
+
* "wait": {
|
|
177189
|
+
* "type": "duration",
|
|
177190
|
+
* "value": 0,
|
|
177191
|
+
* "unit": "hours",
|
|
177192
|
+
* "from": "previous_step",
|
|
177193
|
+
* "from_step": "step-4",
|
|
177194
|
+
* "hours": 0
|
|
177195
|
+
* },
|
|
177196
|
+
* "test": "call_outcome",
|
|
177197
|
+
* "ai_prompt": null,
|
|
177198
|
+
* "branches": [
|
|
177199
|
+
* {
|
|
177200
|
+
* "key": "promised_pay",
|
|
177201
|
+
* "label": "Prometió pagar",
|
|
177202
|
+
* "to": "promise-2-wait"
|
|
177203
|
+
* },
|
|
177204
|
+
* {
|
|
177205
|
+
* "key": "no_answer",
|
|
177206
|
+
* "label": "No contestó",
|
|
177207
|
+
* "to": "step-5"
|
|
177208
|
+
* }
|
|
177209
|
+
* ],
|
|
177210
|
+
* "default_branch": "no_answer",
|
|
177211
|
+
* "label": "¿Cómo salió la llamada?"
|
|
177212
|
+
* },
|
|
177213
|
+
* {
|
|
177214
|
+
* "situation": null,
|
|
177215
|
+
* "config_ref": null,
|
|
177216
|
+
* "key": "promise-2-wait",
|
|
177217
|
+
* "kind": "wait_until",
|
|
177218
|
+
* "position": 9,
|
|
177219
|
+
* "until": {
|
|
177220
|
+
* "kind": "date_field",
|
|
177221
|
+
* "field": "promised_date"
|
|
177222
|
+
* },
|
|
177223
|
+
* "timeout": {
|
|
177224
|
+
* "value": 14,
|
|
177225
|
+
* "unit": "days"
|
|
177226
|
+
* },
|
|
177227
|
+
* "label": "Esperar hasta la fecha prometida"
|
|
177228
|
+
* },
|
|
177229
|
+
* {
|
|
177230
|
+
* "situation": null,
|
|
177231
|
+
* "config_ref": null,
|
|
177232
|
+
* "key": "paid-2",
|
|
177233
|
+
* "kind": "condition",
|
|
177234
|
+
* "position": 10,
|
|
177235
|
+
* "wait": {
|
|
177236
|
+
* "type": "duration",
|
|
177237
|
+
* "value": 1,
|
|
177238
|
+
* "unit": "days",
|
|
177239
|
+
* "from": "previous_step",
|
|
177240
|
+
* "from_step": "promise-2-wait",
|
|
177241
|
+
* "hours": 24
|
|
177242
|
+
* },
|
|
177243
|
+
* "test": "paid",
|
|
177244
|
+
* "ai_prompt": null,
|
|
177245
|
+
* "branches": [
|
|
177246
|
+
* {
|
|
177247
|
+
* "key": "yes",
|
|
177248
|
+
* "label": "Sí",
|
|
177249
|
+
* "to": "end"
|
|
177250
|
+
* },
|
|
177251
|
+
* {
|
|
177252
|
+
* "key": "no",
|
|
177253
|
+
* "label": "No",
|
|
177254
|
+
* "to": "step-5"
|
|
177255
|
+
* }
|
|
177256
|
+
* ],
|
|
177257
|
+
* "default_branch": null,
|
|
177258
|
+
* "label": "¿Pagó?"
|
|
177259
|
+
* },
|
|
177260
|
+
* {
|
|
177105
177261
|
* "key": "step-5",
|
|
177106
177262
|
* "situation": null,
|
|
177107
177263
|
* "kind": "message",
|
|
177108
|
-
* "position":
|
|
177264
|
+
* "position": 11,
|
|
177109
177265
|
* "channel": "email",
|
|
177110
177266
|
* "fallback_channel": null,
|
|
177111
177267
|
* "wait": {
|
|
@@ -284717,7 +284873,7 @@ interface components {
|
|
|
284717
284873
|
label: string;
|
|
284718
284874
|
};
|
|
284719
284875
|
channels: ("whatsapp" | "same_chat" | "instagram" | "email" | "call" | "sms")[];
|
|
284720
|
-
steps: {
|
|
284876
|
+
steps: ({
|
|
284721
284877
|
key: string;
|
|
284722
284878
|
situation: string | null;
|
|
284723
284879
|
/** @enum {string} */
|
|
@@ -284813,7 +284969,80 @@ interface components {
|
|
|
284813
284969
|
/** @description Custom sequences: the step key (or `end`) this step goes to; absent/null = the next step by position. */
|
|
284814
284970
|
next?: string | null;
|
|
284815
284971
|
label: string;
|
|
284816
|
-
}
|
|
284972
|
+
} | {
|
|
284973
|
+
key: string;
|
|
284974
|
+
situation: string | null;
|
|
284975
|
+
/** @enum {string} */
|
|
284976
|
+
kind: "condition";
|
|
284977
|
+
position: number;
|
|
284978
|
+
wait: {
|
|
284979
|
+
/** @enum {string} */
|
|
284980
|
+
type: "duration";
|
|
284981
|
+
value: number;
|
|
284982
|
+
/** @enum {string} */
|
|
284983
|
+
unit: "minutes" | "hours" | "days";
|
|
284984
|
+
/** @enum {string} */
|
|
284985
|
+
from: "previous_step" | "start";
|
|
284986
|
+
from_step: string | null;
|
|
284987
|
+
hours: number;
|
|
284988
|
+
} | {
|
|
284989
|
+
/** @enum {string} */
|
|
284990
|
+
type: "event";
|
|
284991
|
+
event: string;
|
|
284992
|
+
} | {
|
|
284993
|
+
/** @enum {string} */
|
|
284994
|
+
type: "agreed_time";
|
|
284995
|
+
} | {
|
|
284996
|
+
/** @enum {string} */
|
|
284997
|
+
type: "before_appointment";
|
|
284998
|
+
value: number;
|
|
284999
|
+
/** @enum {string} */
|
|
285000
|
+
unit: "minutes" | "hours" | "days";
|
|
285001
|
+
hours: number;
|
|
285002
|
+
};
|
|
285003
|
+
/**
|
|
285004
|
+
* @description `replied` (the customer wrote since our last message), `paid` (unavailable until app#6456), `booked` (an appointment since entering), `ai_decides` (the sequence agent picks a branch; `default_branch` on failure). `call_outcome` (how the latest AI call step ended: one branch per outcome answered | promised_pay | promised_visit | call_later | no_answer | do_not_contact, 2 to 6, the branch key is the outcome; `default_branch` for an outcome with no branch). The fixed tests (replied, paid, booked) have exactly the branches `yes` and `no`.
|
|
285005
|
+
* @enum {string}
|
|
285006
|
+
*/
|
|
285007
|
+
test: "replied" | "paid" | "booked" | "ai_decides" | "call_outcome";
|
|
285008
|
+
/** @default null */
|
|
285009
|
+
ai_prompt: string | null;
|
|
285010
|
+
branches: components["schemas"]["SequenceBranch"][];
|
|
285011
|
+
/** @default null */
|
|
285012
|
+
default_branch: string | null;
|
|
285013
|
+
config_ref?: null;
|
|
285014
|
+
label: string;
|
|
285015
|
+
} | {
|
|
285016
|
+
key: string;
|
|
285017
|
+
situation: string | null;
|
|
285018
|
+
/** @enum {string} */
|
|
285019
|
+
kind: "wait_until";
|
|
285020
|
+
position: number;
|
|
285021
|
+
until: components["schemas"]["SequenceWaitUntil"];
|
|
285022
|
+
timeout: {
|
|
285023
|
+
value: number;
|
|
285024
|
+
/** @enum {string} */
|
|
285025
|
+
unit: "minutes" | "hours" | "days";
|
|
285026
|
+
};
|
|
285027
|
+
config_ref?: null;
|
|
285028
|
+
/** @description Custom sequences: the step key (or `end`) this step goes to; absent/null = the next step by position. */
|
|
285029
|
+
next?: string | null;
|
|
285030
|
+
label: string;
|
|
285031
|
+
} | {
|
|
285032
|
+
key: string;
|
|
285033
|
+
situation: string | null;
|
|
285034
|
+
/** @enum {string} */
|
|
285035
|
+
kind: "goto";
|
|
285036
|
+
position: number;
|
|
285037
|
+
target_step: string;
|
|
285038
|
+
/**
|
|
285039
|
+
* @description How many times one person takes this jump (default 2, at most 5).
|
|
285040
|
+
* @default 2
|
|
285041
|
+
*/
|
|
285042
|
+
max_times: number;
|
|
285043
|
+
config_ref?: null;
|
|
285044
|
+
label: string;
|
|
285045
|
+
})[];
|
|
284817
285046
|
};
|
|
284818
285047
|
SequenceCreateResult: {
|
|
284819
285048
|
sequence: components["schemas"]["Sequence"];
|
package/package.json
CHANGED