@arbol-ai/cli 3.57.0 → 3.59.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.js +1990 -251
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9212,6 +9212,20 @@ var commands = {
|
|
|
9212
9212
|
],
|
|
9213
9213
|
pathField: null,
|
|
9214
9214
|
fields: [
|
|
9215
|
+
{
|
|
9216
|
+
name: "bookingRoute",
|
|
9217
|
+
flag: "booking-route",
|
|
9218
|
+
kind: "string",
|
|
9219
|
+
required: false,
|
|
9220
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
9221
|
+
choices: [
|
|
9222
|
+
"PRIVATE",
|
|
9223
|
+
"AXA_PREPAID",
|
|
9224
|
+
"AXA_ARL",
|
|
9225
|
+
"PONAL_STARKEY",
|
|
9226
|
+
"EPS_SURA"
|
|
9227
|
+
]
|
|
9228
|
+
},
|
|
9215
9229
|
{
|
|
9216
9230
|
name: "connectionId",
|
|
9217
9231
|
flag: "connection-id",
|
|
@@ -9372,6 +9386,31 @@ var commands = {
|
|
|
9372
9386
|
}
|
|
9373
9387
|
}
|
|
9374
9388
|
},
|
|
9389
|
+
bookingRoute: {
|
|
9390
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
9391
|
+
anyOf: [
|
|
9392
|
+
{
|
|
9393
|
+
const: "PRIVATE",
|
|
9394
|
+
type: "string"
|
|
9395
|
+
},
|
|
9396
|
+
{
|
|
9397
|
+
const: "AXA_PREPAID",
|
|
9398
|
+
type: "string"
|
|
9399
|
+
},
|
|
9400
|
+
{
|
|
9401
|
+
const: "AXA_ARL",
|
|
9402
|
+
type: "string"
|
|
9403
|
+
},
|
|
9404
|
+
{
|
|
9405
|
+
const: "PONAL_STARKEY",
|
|
9406
|
+
type: "string"
|
|
9407
|
+
},
|
|
9408
|
+
{
|
|
9409
|
+
const: "EPS_SURA",
|
|
9410
|
+
type: "string"
|
|
9411
|
+
}
|
|
9412
|
+
]
|
|
9413
|
+
},
|
|
9375
9414
|
connectionId: {
|
|
9376
9415
|
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
9377
9416
|
type: "string"
|
|
@@ -9379,7 +9418,7 @@ var commands = {
|
|
|
9379
9418
|
}
|
|
9380
9419
|
},
|
|
9381
9420
|
title: "Create appointment",
|
|
9382
|
-
description: "
|
|
9421
|
+
description: "Create a patient appointment. For agents at clinics using colored booking windows, send bookingRoute with the verified payment route. The connector selects the appointment color and rechecks the entire interval. Reconcile unknown outcomes before repeating.",
|
|
9383
9422
|
effect: "write",
|
|
9384
9423
|
confirmation: null,
|
|
9385
9424
|
hidden: false
|
|
@@ -9546,6 +9585,20 @@ var commands = {
|
|
|
9546
9585
|
],
|
|
9547
9586
|
pathField: "appointmentId",
|
|
9548
9587
|
fields: [
|
|
9588
|
+
{
|
|
9589
|
+
name: "bookingRoute",
|
|
9590
|
+
flag: "booking-route",
|
|
9591
|
+
kind: "string",
|
|
9592
|
+
required: false,
|
|
9593
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
9594
|
+
choices: [
|
|
9595
|
+
"PRIVATE",
|
|
9596
|
+
"AXA_PREPAID",
|
|
9597
|
+
"AXA_ARL",
|
|
9598
|
+
"PONAL_STARKEY",
|
|
9599
|
+
"EPS_SURA"
|
|
9600
|
+
]
|
|
9601
|
+
},
|
|
9549
9602
|
{
|
|
9550
9603
|
name: "color",
|
|
9551
9604
|
flag: "color",
|
|
@@ -9646,6 +9699,31 @@ var commands = {
|
|
|
9646
9699
|
pattern: "^[1-9][0-9]{0,14}$",
|
|
9647
9700
|
type: "string"
|
|
9648
9701
|
},
|
|
9702
|
+
bookingRoute: {
|
|
9703
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
9704
|
+
anyOf: [
|
|
9705
|
+
{
|
|
9706
|
+
const: "PRIVATE",
|
|
9707
|
+
type: "string"
|
|
9708
|
+
},
|
|
9709
|
+
{
|
|
9710
|
+
const: "AXA_PREPAID",
|
|
9711
|
+
type: "string"
|
|
9712
|
+
},
|
|
9713
|
+
{
|
|
9714
|
+
const: "AXA_ARL",
|
|
9715
|
+
type: "string"
|
|
9716
|
+
},
|
|
9717
|
+
{
|
|
9718
|
+
const: "PONAL_STARKEY",
|
|
9719
|
+
type: "string"
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
const: "EPS_SURA",
|
|
9723
|
+
type: "string"
|
|
9724
|
+
}
|
|
9725
|
+
]
|
|
9726
|
+
},
|
|
9649
9727
|
color: {
|
|
9650
9728
|
anyOf: [
|
|
9651
9729
|
{
|
|
@@ -9809,7 +9887,7 @@ var commands = {
|
|
|
9809
9887
|
}
|
|
9810
9888
|
},
|
|
9811
9889
|
title: "Update appointment",
|
|
9812
|
-
description: "
|
|
9890
|
+
description: "Update a patient appointment. For agents at clinics using colored booking windows, send the verified bookingRoute when changing the time. Reconcile unknown outcomes before repeating.",
|
|
9813
9891
|
effect: "write",
|
|
9814
9892
|
confirmation: null,
|
|
9815
9893
|
hidden: false
|
|
@@ -9850,6 +9928,20 @@ var commands = {
|
|
|
9850
9928
|
description: "Maximum items returned in one page. Defaults to 25; larger reads require another cursor.",
|
|
9851
9929
|
default: 25
|
|
9852
9930
|
},
|
|
9931
|
+
{
|
|
9932
|
+
name: "bookingRoute",
|
|
9933
|
+
flag: "booking-route",
|
|
9934
|
+
kind: "string",
|
|
9935
|
+
required: false,
|
|
9936
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
9937
|
+
choices: [
|
|
9938
|
+
"PRIVATE",
|
|
9939
|
+
"AXA_PREPAID",
|
|
9940
|
+
"AXA_ARL",
|
|
9941
|
+
"PONAL_STARKEY",
|
|
9942
|
+
"EPS_SURA"
|
|
9943
|
+
]
|
|
9944
|
+
},
|
|
9853
9945
|
{
|
|
9854
9946
|
name: "agendaId",
|
|
9855
9947
|
flag: "agenda-id",
|
|
@@ -9928,6 +10020,31 @@ var commands = {
|
|
|
9928
10020
|
type: "integer",
|
|
9929
10021
|
default: 25
|
|
9930
10022
|
},
|
|
10023
|
+
bookingRoute: {
|
|
10024
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
10025
|
+
anyOf: [
|
|
10026
|
+
{
|
|
10027
|
+
const: "PRIVATE",
|
|
10028
|
+
type: "string"
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
const: "AXA_PREPAID",
|
|
10032
|
+
type: "string"
|
|
10033
|
+
},
|
|
10034
|
+
{
|
|
10035
|
+
const: "AXA_ARL",
|
|
10036
|
+
type: "string"
|
|
10037
|
+
},
|
|
10038
|
+
{
|
|
10039
|
+
const: "PONAL_STARKEY",
|
|
10040
|
+
type: "string"
|
|
10041
|
+
},
|
|
10042
|
+
{
|
|
10043
|
+
const: "EPS_SURA",
|
|
10044
|
+
type: "string"
|
|
10045
|
+
}
|
|
10046
|
+
]
|
|
10047
|
+
},
|
|
9931
10048
|
agendaId: {
|
|
9932
10049
|
pattern: "^[1-9][0-9]{0,14}$",
|
|
9933
10050
|
type: "string"
|
|
@@ -9961,7 +10078,7 @@ var commands = {
|
|
|
9961
10078
|
}
|
|
9962
10079
|
},
|
|
9963
10080
|
title: "List availability",
|
|
9964
|
-
description: "
|
|
10081
|
+
description: "List available intervals. At clinics using colored booking windows, send the verified bookingRoute. Check the full duration within a returned interval and a compatible agenda.",
|
|
9965
10082
|
effect: "read",
|
|
9966
10083
|
confirmation: null,
|
|
9967
10084
|
hidden: false
|
|
@@ -13722,8 +13839,8 @@ var commands = {
|
|
|
13722
13839
|
name: "idempotencyKey",
|
|
13723
13840
|
flag: "idempotency-key",
|
|
13724
13841
|
kind: "string",
|
|
13725
|
-
required:
|
|
13726
|
-
description: "
|
|
13842
|
+
required: false,
|
|
13843
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
|
|
13727
13844
|
},
|
|
13728
13845
|
{
|
|
13729
13846
|
name: "confirm",
|
|
@@ -13750,7 +13867,6 @@ var commands = {
|
|
|
13750
13867
|
required: [
|
|
13751
13868
|
"documentType",
|
|
13752
13869
|
"documentNumber",
|
|
13753
|
-
"idempotencyKey",
|
|
13754
13870
|
"confirm",
|
|
13755
13871
|
"cancellation",
|
|
13756
13872
|
"appointmentId"
|
|
@@ -13775,7 +13891,7 @@ var commands = {
|
|
|
13775
13891
|
minLength: 8,
|
|
13776
13892
|
maxLength: 64,
|
|
13777
13893
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
13778
|
-
description: "
|
|
13894
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
13779
13895
|
type: "string"
|
|
13780
13896
|
},
|
|
13781
13897
|
confirm: {
|
|
@@ -13819,7 +13935,7 @@ var commands = {
|
|
|
13819
13935
|
}
|
|
13820
13936
|
},
|
|
13821
13937
|
title: "Cancel an appointment",
|
|
13822
|
-
description: "Cancel one upcoming assigned e-Oficlinic appointment of the patient resolved by citizenship card. Use the exact CAS (serviceNumber) from that patient's assigned appointments, one exact listed cancellation reason, and confirm true only after the patient or authorized staff confirms this specific cancellation.
|
|
13938
|
+
description: "Cancel one upcoming assigned e-Oficlinic appointment of the patient resolved by citizenship card. Use the exact CAS (serviceNumber) from that patient's assigned appointments, one exact listed cancellation reason, and confirm true only after the patient or authorized staff confirms this specific cancellation. Repeating the identical request returns the recorded result without sending again; no idempotency key is needed. OUTCOME_UNKNOWN means the cancellation may have happened: look up the patient's cancelled appointments and do not dispatch it again. agentMode true answers concise Spanish text instead.",
|
|
13823
13939
|
effect: "write",
|
|
13824
13940
|
confirmation: null,
|
|
13825
13941
|
hidden: false
|
|
@@ -13844,8 +13960,8 @@ var commands = {
|
|
|
13844
13960
|
name: "idempotencyKey",
|
|
13845
13961
|
flag: "idempotency-key",
|
|
13846
13962
|
kind: "string",
|
|
13847
|
-
required:
|
|
13848
|
-
description: "
|
|
13963
|
+
required: false,
|
|
13964
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
|
|
13849
13965
|
},
|
|
13850
13966
|
{
|
|
13851
13967
|
name: "confirm",
|
|
@@ -13869,7 +13985,7 @@ var commands = {
|
|
|
13869
13985
|
flag: "slot-id",
|
|
13870
13986
|
kind: "string",
|
|
13871
13987
|
required: true,
|
|
13872
|
-
description: "A slot id from list_booking_slots in the same flow."
|
|
13988
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow."
|
|
13873
13989
|
},
|
|
13874
13990
|
{
|
|
13875
13991
|
name: "documentType",
|
|
@@ -13892,8 +14008,8 @@ var commands = {
|
|
|
13892
14008
|
name: "payerId",
|
|
13893
14009
|
flag: "payer-id",
|
|
13894
14010
|
kind: "string",
|
|
13895
|
-
required:
|
|
13896
|
-
description: "The flow
|
|
14011
|
+
required: false,
|
|
14012
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer."
|
|
13897
14013
|
},
|
|
13898
14014
|
{
|
|
13899
14015
|
name: "planId",
|
|
@@ -13914,8 +14030,7 @@ var commands = {
|
|
|
13914
14030
|
flag: "contract-id",
|
|
13915
14031
|
kind: "string",
|
|
13916
14032
|
required: false,
|
|
13917
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
13918
|
-
default: null
|
|
14033
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag)."
|
|
13919
14034
|
},
|
|
13920
14035
|
{
|
|
13921
14036
|
name: "observations",
|
|
@@ -13938,18 +14053,14 @@ var commands = {
|
|
|
13938
14053
|
additionalProperties: false,
|
|
13939
14054
|
type: "object",
|
|
13940
14055
|
required: [
|
|
13941
|
-
"idempotencyKey",
|
|
13942
14056
|
"confirm",
|
|
13943
14057
|
"flowId",
|
|
13944
14058
|
"slotId",
|
|
13945
14059
|
"documentType",
|
|
13946
14060
|
"documentNumber",
|
|
13947
|
-
"payerId",
|
|
13948
14061
|
"planId",
|
|
13949
14062
|
"subplanId",
|
|
13950
|
-
"classification"
|
|
13951
|
-
"billing",
|
|
13952
|
-
"referral"
|
|
14063
|
+
"classification"
|
|
13953
14064
|
],
|
|
13954
14065
|
properties: {
|
|
13955
14066
|
connectionId: {
|
|
@@ -13961,7 +14072,7 @@ var commands = {
|
|
|
13961
14072
|
minLength: 8,
|
|
13962
14073
|
maxLength: 64,
|
|
13963
14074
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
13964
|
-
description: "
|
|
14075
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
13965
14076
|
type: "string"
|
|
13966
14077
|
},
|
|
13967
14078
|
confirm: {
|
|
@@ -13976,7 +14087,7 @@ var commands = {
|
|
|
13976
14087
|
},
|
|
13977
14088
|
slotId: {
|
|
13978
14089
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
13979
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
14090
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
13980
14091
|
type: "string"
|
|
13981
14092
|
},
|
|
13982
14093
|
documentType: {
|
|
@@ -13991,7 +14102,7 @@ var commands = {
|
|
|
13991
14102
|
},
|
|
13992
14103
|
payerId: {
|
|
13993
14104
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
13994
|
-
description: "The flow
|
|
14105
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
13995
14106
|
type: "string"
|
|
13996
14107
|
},
|
|
13997
14108
|
planId: {
|
|
@@ -14005,7 +14116,7 @@ var commands = {
|
|
|
14005
14116
|
type: "string"
|
|
14006
14117
|
},
|
|
14007
14118
|
contractId: {
|
|
14008
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
14119
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
14009
14120
|
anyOf: [
|
|
14010
14121
|
{
|
|
14011
14122
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14014,19 +14125,15 @@ var commands = {
|
|
|
14014
14125
|
{
|
|
14015
14126
|
type: "null"
|
|
14016
14127
|
}
|
|
14017
|
-
]
|
|
14018
|
-
default: null
|
|
14128
|
+
]
|
|
14019
14129
|
},
|
|
14020
14130
|
classification: {
|
|
14021
14131
|
additionalProperties: false,
|
|
14022
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
14132
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
14023
14133
|
type: "object",
|
|
14024
14134
|
required: [
|
|
14025
14135
|
"affiliateType",
|
|
14026
|
-
"regime"
|
|
14027
|
-
"programId",
|
|
14028
|
-
"attentionTypeId",
|
|
14029
|
-
"purposeId"
|
|
14136
|
+
"regime"
|
|
14030
14137
|
],
|
|
14031
14138
|
properties: {
|
|
14032
14139
|
affiliateType: {
|
|
@@ -14040,7 +14147,7 @@ var commands = {
|
|
|
14040
14147
|
type: "string"
|
|
14041
14148
|
},
|
|
14042
14149
|
relationship: {
|
|
14043
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
14150
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14044
14151
|
anyOf: [
|
|
14045
14152
|
{
|
|
14046
14153
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14053,7 +14160,7 @@ var commands = {
|
|
|
14053
14160
|
default: null
|
|
14054
14161
|
},
|
|
14055
14162
|
salaryRange: {
|
|
14056
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
14163
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
14057
14164
|
anyOf: [
|
|
14058
14165
|
{
|
|
14059
14166
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14066,7 +14173,7 @@ var commands = {
|
|
|
14066
14173
|
default: null
|
|
14067
14174
|
},
|
|
14068
14175
|
listStatus: {
|
|
14069
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
14176
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14070
14177
|
anyOf: [
|
|
14071
14178
|
{
|
|
14072
14179
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14080,24 +14187,25 @@ var commands = {
|
|
|
14080
14187
|
},
|
|
14081
14188
|
programId: {
|
|
14082
14189
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14083
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
14190
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
14084
14191
|
type: "string"
|
|
14085
14192
|
},
|
|
14086
14193
|
attentionTypeId: {
|
|
14087
14194
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14088
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
14195
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
14089
14196
|
type: "string"
|
|
14090
14197
|
},
|
|
14091
14198
|
purposeId: {
|
|
14092
14199
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14093
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
14094
|
-
type: "string"
|
|
14200
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
14201
|
+
type: "string",
|
|
14202
|
+
default: "10"
|
|
14095
14203
|
}
|
|
14096
14204
|
}
|
|
14097
14205
|
},
|
|
14098
14206
|
billing: {
|
|
14099
14207
|
additionalProperties: false,
|
|
14100
|
-
description: "Billing values of the
|
|
14208
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
14101
14209
|
type: "object",
|
|
14102
14210
|
required: [
|
|
14103
14211
|
"tariff",
|
|
@@ -14114,7 +14222,7 @@ var commands = {
|
|
|
14114
14222
|
properties: {
|
|
14115
14223
|
tariff: {
|
|
14116
14224
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
14117
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
14225
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
14118
14226
|
type: "string"
|
|
14119
14227
|
},
|
|
14120
14228
|
billPrivately: {
|
|
@@ -14221,6 +14329,7 @@ var commands = {
|
|
|
14221
14329
|
},
|
|
14222
14330
|
referral: {
|
|
14223
14331
|
additionalProperties: false,
|
|
14332
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
14224
14333
|
type: "object",
|
|
14225
14334
|
required: [],
|
|
14226
14335
|
properties: {
|
|
@@ -14238,7 +14347,7 @@ var commands = {
|
|
|
14238
14347
|
default: null
|
|
14239
14348
|
},
|
|
14240
14349
|
authorizationNumber: {
|
|
14241
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
14350
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14242
14351
|
anyOf: [
|
|
14243
14352
|
{
|
|
14244
14353
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -14280,7 +14389,7 @@ var commands = {
|
|
|
14280
14389
|
}
|
|
14281
14390
|
},
|
|
14282
14391
|
title: "Create an appointment",
|
|
14283
|
-
description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that list_booking_slots offered in an availability flow.
|
|
14392
|
+
description: "Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that search_booking_slots or list_booking_slots offered in an availability flow. Send what a person at the desk chooses: confirm true; the slot's flowId and slotId; the patient's documentType and documentNumber; the payer's planId and subplanId (list_payer_plans, list_payer_subplans); and in classification the patient's regime and affiliateType (list_regimes, list_affiliate_types) and, for copayments, salaryRange (list_salary_ranges). Leave the rest out: the service resolves it as the provider's own booking screen does. The payer, program and attention type are the flow's; the purpose is the form's default, 10; the contract is the payer's only active one, or none when it has none; billing takes its flags from the payer's row, its copayment rate, cap and moderator fee from the salary range's row, and its tariff from the payer's tariff matrix for the flow's service under the plan and subplan. A value the caller does send is used as given, and a billing object is sent unchanged with nothing resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved from the provider's own data and nothing was written; send it and repeat: contractId when the payer has several active contracts; classification.relationship when the affiliate type is neither C nor N; classification.listStatus when the payer uses an attention list; referral.authorizationNumber when the payer requires authorization; a classification.salaryRange the regime lists; or billing when the payer's tariff grid has no positive tariff for the service. Before anything is written, the patient is resolved by citizenship card; the source must still count exactly one unit for the program and attention type; the regime, affiliate type, relationship and salary range, and the payer, plan, subplan and contract, must be listed by the provider; the service must be configured for the slot's professional; and a fresh read must still show the slot. The intent and a fence on the slot are recorded before the single provider request, which is never resent. Success means the provider answered a strictly positive appointment number, the source's own creation signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the appointment may exist: do not book again; check lookup_appointments with status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's write to this slot has no final outcome, so nothing was sent. WRITE_LEDGER_FULL means the connection's ledger refused a new write and nothing was sent. Repeating the identical request answers the recorded outcome; no idempotency key is needed. One-slot, one-unit bookings only. agentMode true answers concise Spanish text instead.",
|
|
14284
14393
|
effect: "write",
|
|
14285
14394
|
confirmation: null,
|
|
14286
14395
|
hidden: false
|
|
@@ -14473,8 +14582,8 @@ var commands = {
|
|
|
14473
14582
|
name: "idempotencyKey",
|
|
14474
14583
|
flag: "idempotency-key",
|
|
14475
14584
|
kind: "string",
|
|
14476
|
-
required:
|
|
14477
|
-
description: "
|
|
14585
|
+
required: false,
|
|
14586
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
|
|
14478
14587
|
},
|
|
14479
14588
|
{
|
|
14480
14589
|
name: "confirm",
|
|
@@ -14498,7 +14607,7 @@ var commands = {
|
|
|
14498
14607
|
flag: "slot-id",
|
|
14499
14608
|
kind: "string",
|
|
14500
14609
|
required: true,
|
|
14501
|
-
description: "A slot id from list_booking_slots in the same flow."
|
|
14610
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow."
|
|
14502
14611
|
},
|
|
14503
14612
|
{
|
|
14504
14613
|
name: "documentType",
|
|
@@ -14521,8 +14630,8 @@ var commands = {
|
|
|
14521
14630
|
name: "payerId",
|
|
14522
14631
|
flag: "payer-id",
|
|
14523
14632
|
kind: "string",
|
|
14524
|
-
required:
|
|
14525
|
-
description: "The flow
|
|
14633
|
+
required: false,
|
|
14634
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer."
|
|
14526
14635
|
},
|
|
14527
14636
|
{
|
|
14528
14637
|
name: "planId",
|
|
@@ -14543,8 +14652,7 @@ var commands = {
|
|
|
14543
14652
|
flag: "contract-id",
|
|
14544
14653
|
kind: "string",
|
|
14545
14654
|
required: false,
|
|
14546
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
14547
|
-
default: null
|
|
14655
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag)."
|
|
14548
14656
|
},
|
|
14549
14657
|
{
|
|
14550
14658
|
name: "observations",
|
|
@@ -14567,18 +14675,14 @@ var commands = {
|
|
|
14567
14675
|
additionalProperties: false,
|
|
14568
14676
|
type: "object",
|
|
14569
14677
|
required: [
|
|
14570
|
-
"idempotencyKey",
|
|
14571
14678
|
"confirm",
|
|
14572
14679
|
"flowId",
|
|
14573
14680
|
"slotId",
|
|
14574
14681
|
"documentType",
|
|
14575
14682
|
"documentNumber",
|
|
14576
|
-
"payerId",
|
|
14577
14683
|
"planId",
|
|
14578
14684
|
"subplanId",
|
|
14579
14685
|
"classification",
|
|
14580
|
-
"billing",
|
|
14581
|
-
"referral",
|
|
14582
14686
|
"cancellation",
|
|
14583
14687
|
"appointmentId"
|
|
14584
14688
|
],
|
|
@@ -14592,7 +14696,7 @@ var commands = {
|
|
|
14592
14696
|
minLength: 8,
|
|
14593
14697
|
maxLength: 64,
|
|
14594
14698
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
14595
|
-
description: "
|
|
14699
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
14596
14700
|
type: "string"
|
|
14597
14701
|
},
|
|
14598
14702
|
confirm: {
|
|
@@ -14607,7 +14711,7 @@ var commands = {
|
|
|
14607
14711
|
},
|
|
14608
14712
|
slotId: {
|
|
14609
14713
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14610
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
14714
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
14611
14715
|
type: "string"
|
|
14612
14716
|
},
|
|
14613
14717
|
documentType: {
|
|
@@ -14622,7 +14726,7 @@ var commands = {
|
|
|
14622
14726
|
},
|
|
14623
14727
|
payerId: {
|
|
14624
14728
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14625
|
-
description: "The flow
|
|
14729
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
14626
14730
|
type: "string"
|
|
14627
14731
|
},
|
|
14628
14732
|
planId: {
|
|
@@ -14636,7 +14740,7 @@ var commands = {
|
|
|
14636
14740
|
type: "string"
|
|
14637
14741
|
},
|
|
14638
14742
|
contractId: {
|
|
14639
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
14743
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
14640
14744
|
anyOf: [
|
|
14641
14745
|
{
|
|
14642
14746
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14645,19 +14749,15 @@ var commands = {
|
|
|
14645
14749
|
{
|
|
14646
14750
|
type: "null"
|
|
14647
14751
|
}
|
|
14648
|
-
]
|
|
14649
|
-
default: null
|
|
14752
|
+
]
|
|
14650
14753
|
},
|
|
14651
14754
|
classification: {
|
|
14652
14755
|
additionalProperties: false,
|
|
14653
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
14756
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
14654
14757
|
type: "object",
|
|
14655
14758
|
required: [
|
|
14656
14759
|
"affiliateType",
|
|
14657
|
-
"regime"
|
|
14658
|
-
"programId",
|
|
14659
|
-
"attentionTypeId",
|
|
14660
|
-
"purposeId"
|
|
14760
|
+
"regime"
|
|
14661
14761
|
],
|
|
14662
14762
|
properties: {
|
|
14663
14763
|
affiliateType: {
|
|
@@ -14671,7 +14771,7 @@ var commands = {
|
|
|
14671
14771
|
type: "string"
|
|
14672
14772
|
},
|
|
14673
14773
|
relationship: {
|
|
14674
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
14774
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14675
14775
|
anyOf: [
|
|
14676
14776
|
{
|
|
14677
14777
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14684,7 +14784,7 @@ var commands = {
|
|
|
14684
14784
|
default: null
|
|
14685
14785
|
},
|
|
14686
14786
|
salaryRange: {
|
|
14687
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
14787
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
14688
14788
|
anyOf: [
|
|
14689
14789
|
{
|
|
14690
14790
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14697,7 +14797,7 @@ var commands = {
|
|
|
14697
14797
|
default: null
|
|
14698
14798
|
},
|
|
14699
14799
|
listStatus: {
|
|
14700
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
14800
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14701
14801
|
anyOf: [
|
|
14702
14802
|
{
|
|
14703
14803
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -14711,24 +14811,25 @@ var commands = {
|
|
|
14711
14811
|
},
|
|
14712
14812
|
programId: {
|
|
14713
14813
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14714
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
14814
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
14715
14815
|
type: "string"
|
|
14716
14816
|
},
|
|
14717
14817
|
attentionTypeId: {
|
|
14718
14818
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14719
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
14819
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
14720
14820
|
type: "string"
|
|
14721
14821
|
},
|
|
14722
14822
|
purposeId: {
|
|
14723
14823
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
14724
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
14725
|
-
type: "string"
|
|
14824
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
14825
|
+
type: "string",
|
|
14826
|
+
default: "10"
|
|
14726
14827
|
}
|
|
14727
14828
|
}
|
|
14728
14829
|
},
|
|
14729
14830
|
billing: {
|
|
14730
14831
|
additionalProperties: false,
|
|
14731
|
-
description: "Billing values of the
|
|
14832
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
14732
14833
|
type: "object",
|
|
14733
14834
|
required: [
|
|
14734
14835
|
"tariff",
|
|
@@ -14745,7 +14846,7 @@ var commands = {
|
|
|
14745
14846
|
properties: {
|
|
14746
14847
|
tariff: {
|
|
14747
14848
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
14748
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
14849
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
14749
14850
|
type: "string"
|
|
14750
14851
|
},
|
|
14751
14852
|
billPrivately: {
|
|
@@ -14852,6 +14953,7 @@ var commands = {
|
|
|
14852
14953
|
},
|
|
14853
14954
|
referral: {
|
|
14854
14955
|
additionalProperties: false,
|
|
14956
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
14855
14957
|
type: "object",
|
|
14856
14958
|
required: [],
|
|
14857
14959
|
properties: {
|
|
@@ -14869,7 +14971,7 @@ var commands = {
|
|
|
14869
14971
|
default: null
|
|
14870
14972
|
},
|
|
14871
14973
|
authorizationNumber: {
|
|
14872
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
14974
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
14873
14975
|
anyOf: [
|
|
14874
14976
|
{
|
|
14875
14977
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -14939,7 +15041,7 @@ var commands = {
|
|
|
14939
15041
|
}
|
|
14940
15042
|
},
|
|
14941
15043
|
title: "Reschedule an appointment",
|
|
14942
|
-
description: "Reschedule one assigned e-Oficlinic appointment. The provider has no individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole agenda and is never used), so this is a saga, never atomic: the original must be an upcoming assigned appointment of the patient resolved by citizenship card (its CAS, serviceNumber in lookup_appointments); the cancellation reason must be exactly one list_cancellation_reasons answers; the new slot is booked first exactly as create_appointment books it;
|
|
15044
|
+
description: "Reschedule one assigned e-Oficlinic appointment. The provider has no individual reschedule (its REPROGRAMAR_AGENDA moves a professional's whole agenda and is never used), so this is a saga, never atomic: the original must be an upcoming assigned appointment of the patient resolved by citizenship card (its CAS, serviceNumber in lookup_appointments); the cancellation reason must be exactly one list_cancellation_reasons answers; the new slot is booked first exactly as create_appointment books it, from the same input: the new slot's flowId and slotId, the patient's document, the payer's planId and subplanId, and in classification the patient's regime, affiliateType and, for copayments, salaryRange. The service resolves the payer, program, attention type, purpose, contract and billing with its tariff from the flow and the provider's own data, as create_appointment describes; BOOKING_VALUE_UNRESOLVED means a needed value could not be resolved, nothing was written and the original is untouched: send it and repeat. Only after the provider acknowledged the new booking is the original cancelled (CANECELAR_CITAS) with the given reason and observations. If the new booking fails, nothing changes; if its outcome is unknown, OUTCOME_UNKNOWN answers and the original is never cancelled. Once the new booking is acknowledged the answer reports each phase: completed when the cancellation was confirmed too, partial otherwise (cancellation pending, unknown or not possible), when the patient may hold both appointments. pending continues when the identical request is repeated, which resumes the cancellation alone; nothing is ever resent. The slot and the original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED means another key's write to either has no final outcome, and nothing was sent. agentMode true answers concise Spanish text instead.",
|
|
14943
15045
|
effect: "write",
|
|
14944
15046
|
confirmation: null,
|
|
14945
15047
|
hidden: false
|
|
@@ -16250,8 +16352,8 @@ var commands = {
|
|
|
16250
16352
|
name: "idempotencyKey",
|
|
16251
16353
|
flag: "idempotency-key",
|
|
16252
16354
|
kind: "string",
|
|
16253
|
-
required:
|
|
16254
|
-
description: "
|
|
16355
|
+
required: false,
|
|
16356
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED."
|
|
16255
16357
|
},
|
|
16256
16358
|
{
|
|
16257
16359
|
name: "agentMode",
|
|
@@ -16279,8 +16381,7 @@ var commands = {
|
|
|
16279
16381
|
"regimeId",
|
|
16280
16382
|
"affiliateTypeId",
|
|
16281
16383
|
"salaryRangeId",
|
|
16282
|
-
"confirm"
|
|
16283
|
-
"idempotencyKey"
|
|
16384
|
+
"confirm"
|
|
16284
16385
|
],
|
|
16285
16386
|
properties: {
|
|
16286
16387
|
connectionId: {
|
|
@@ -16387,7 +16488,7 @@ var commands = {
|
|
|
16387
16488
|
minLength: 8,
|
|
16388
16489
|
maxLength: 64,
|
|
16389
16490
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
16390
|
-
description: "
|
|
16491
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
16391
16492
|
type: "string"
|
|
16392
16493
|
},
|
|
16393
16494
|
agentMode: {
|
|
@@ -16398,7 +16499,7 @@ var commands = {
|
|
|
16398
16499
|
}
|
|
16399
16500
|
},
|
|
16400
16501
|
title: "Create a patient",
|
|
16401
|
-
description: "Create one new patient in e-Oficlinic using the clinic-confirmed legal identity, contact and classification fields. Use only with verified authority to register this person and explicit confirmation of their details. Requires confirm true
|
|
16502
|
+
description: "Create one new patient in e-Oficlinic using the clinic-confirmed legal identity, contact and classification fields. Use only with verified authority to register this person and explicit confirmation of their details. Requires confirm true; repeating the identical request answers the recorded outcome, with no idempotency key needed. An existing patient is never changed. An uncertain result must be checked with lookup_patient and must not be sent again. The result contains no patient data. Verify the saved patient with lookup_patient before attempting a booking. The submission follows the live-verified Cardiología scheduling form. agentMode true answers concise Spanish text instead.",
|
|
16402
16503
|
effect: "write",
|
|
16403
16504
|
confirmation: null,
|
|
16404
16505
|
hidden: false
|
|
@@ -21985,6 +22086,32 @@ var commands = {
|
|
|
21985
22086
|
"team"
|
|
21986
22087
|
]
|
|
21987
22088
|
},
|
|
22089
|
+
{
|
|
22090
|
+
name: "waitingOn",
|
|
22091
|
+
flag: "waiting-on",
|
|
22092
|
+
kind: "string",
|
|
22093
|
+
required: false,
|
|
22094
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match.",
|
|
22095
|
+
choices: [
|
|
22096
|
+
"ai",
|
|
22097
|
+
"team",
|
|
22098
|
+
"contact"
|
|
22099
|
+
]
|
|
22100
|
+
},
|
|
22101
|
+
{
|
|
22102
|
+
name: "assignee",
|
|
22103
|
+
flag: "assignee",
|
|
22104
|
+
kind: "string",
|
|
22105
|
+
required: false,
|
|
22106
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took."
|
|
22107
|
+
},
|
|
22108
|
+
{
|
|
22109
|
+
name: "unattended",
|
|
22110
|
+
flag: "unattended",
|
|
22111
|
+
kind: "boolean",
|
|
22112
|
+
required: false,
|
|
22113
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22114
|
+
},
|
|
21988
22115
|
{
|
|
21989
22116
|
name: "origin",
|
|
21990
22117
|
flag: "origin",
|
|
@@ -22157,7 +22284,7 @@ var commands = {
|
|
|
22157
22284
|
flag: "group-by",
|
|
22158
22285
|
kind: "string",
|
|
22159
22286
|
required: false,
|
|
22160
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact)."
|
|
22287
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact)."
|
|
22161
22288
|
}
|
|
22162
22289
|
],
|
|
22163
22290
|
inputSchema: {
|
|
@@ -22243,6 +22370,33 @@ var commands = {
|
|
|
22243
22370
|
],
|
|
22244
22371
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
22245
22372
|
},
|
|
22373
|
+
waitingOn: {
|
|
22374
|
+
anyOf: [
|
|
22375
|
+
{
|
|
22376
|
+
type: "string",
|
|
22377
|
+
const: "ai"
|
|
22378
|
+
},
|
|
22379
|
+
{
|
|
22380
|
+
type: "string",
|
|
22381
|
+
const: "team"
|
|
22382
|
+
},
|
|
22383
|
+
{
|
|
22384
|
+
type: "string",
|
|
22385
|
+
const: "contact"
|
|
22386
|
+
}
|
|
22387
|
+
],
|
|
22388
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
22389
|
+
},
|
|
22390
|
+
assignee: {
|
|
22391
|
+
type: "string",
|
|
22392
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
22393
|
+
maxLength: 255,
|
|
22394
|
+
minLength: 1
|
|
22395
|
+
},
|
|
22396
|
+
unattended: {
|
|
22397
|
+
type: "boolean",
|
|
22398
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22399
|
+
},
|
|
22246
22400
|
origin: {
|
|
22247
22401
|
type: "string",
|
|
22248
22402
|
description: "Comma-separated origins.",
|
|
@@ -22405,14 +22559,14 @@ var commands = {
|
|
|
22405
22559
|
},
|
|
22406
22560
|
groupBy: {
|
|
22407
22561
|
type: "string",
|
|
22408
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
22409
|
-
pattern: "^(outcome|status|channel|agent|sentiment|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
22562
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
22563
|
+
pattern: "^(outcome|status|channel|agent|sentiment|waitingOn|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
22410
22564
|
}
|
|
22411
22565
|
},
|
|
22412
22566
|
additionalProperties: false
|
|
22413
22567
|
},
|
|
22414
22568
|
title: "Count conversations",
|
|
22415
|
-
description: "Count the conversations `list_conversations` returns for the same filters (every filter it takes, without `sort`), up to 10,000: `capped` then says at least that many match. `averageMessageCount` and `averageDurationSeconds` are their average length. `groupBy` also divides them, largest group first, each with its outcomes: by `outcome`, `status`, `channel`, `agent`, `sentiment`, `tool` (which Agent tools they used, and in how many a tool failed), `toolError` (why calls of `toolName` failed) or `fact:<definition key>` (such as the reason for contact). Use it to answer how many conversations match, or how they divide, instead of paging through the list; for volumes per day use `get_report`.",
|
|
22569
|
+
description: "Count the conversations `list_conversations` returns for the same filters (every filter it takes, without `sort`), up to 10,000: `capped` then says at least that many match. `averageMessageCount` and `averageDurationSeconds` are their average length. `groupBy` also divides them, largest group first, each with its outcomes: by `outcome`, `status`, `channel`, `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: the AI, the team or the contact), `tool` (which Agent tools they used, and in how many a tool failed), `toolError` (why calls of `toolName` failed) or `fact:<definition key>` (such as the reason for contact). Use it to answer how many conversations match, or how they divide, instead of paging through the list; for volumes per day use `get_report`.",
|
|
22416
22570
|
effect: "read",
|
|
22417
22571
|
confirmation: null,
|
|
22418
22572
|
hidden: false
|
|
@@ -22463,7 +22617,7 @@ var commands = {
|
|
|
22463
22617
|
flag: "expand",
|
|
22464
22618
|
kind: "string",
|
|
22465
22619
|
required: false,
|
|
22466
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`."
|
|
22620
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`."
|
|
22467
22621
|
},
|
|
22468
22622
|
{
|
|
22469
22623
|
name: "messagesCursor",
|
|
@@ -22506,11 +22660,11 @@ var commands = {
|
|
|
22506
22660
|
},
|
|
22507
22661
|
expand: {
|
|
22508
22662
|
type: "string",
|
|
22509
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`.",
|
|
22663
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`.",
|
|
22510
22664
|
examples: [
|
|
22511
|
-
"messages,recording,diagnostics"
|
|
22665
|
+
"messages,recording,diagnostics,history"
|
|
22512
22666
|
],
|
|
22513
|
-
pattern: "^(messages|recording|diagnostics)(,(messages|recording|diagnostics))*$"
|
|
22667
|
+
pattern: "^(messages|recording|diagnostics|history)(,(messages|recording|diagnostics|history))*$"
|
|
22514
22668
|
},
|
|
22515
22669
|
messagesCursor: {
|
|
22516
22670
|
type: "string",
|
|
@@ -22545,7 +22699,7 @@ var commands = {
|
|
|
22545
22699
|
additionalProperties: false
|
|
22546
22700
|
},
|
|
22547
22701
|
title: "Get a conversation",
|
|
22548
|
-
description: "Read one conversation with its contact, Agent and channel, who works it (`workers`: each Agent and the team, and who answers now), title, summary, outcome, sentiment and current facts. Add `expand=messages` for the transcript, oldest first, each message with its author, the Agent's tool calls and quoted replies (continue with `messagesCursor`),
|
|
22702
|
+
description: "Read one conversation with its contact, Agent and channel, who works it (`workers`: each Agent and the team, and who answers now), title, summary, outcome, sentiment and current facts. Add `expand=messages` for the transcript, oldest first, each message with its author, the Agent's tool calls and quoted replies (continue with `messagesCursor`), `expand=recording` for a short-lived link to the call recording, and `expand=history` for the case's history: the handoff to the team, who took it or was given it, the return to the AI and the closing. `waitingOn` says who an open conversation waits for (the AI, the team or the contact) and `assigneeId` who has its case. Staff may also request `expand=diagnostics` for bounded live call-termination evidence; this additionally requires raiz:staff:operate and never changes the conversation. The `review-conversation` skill explains how to read and summarize one.",
|
|
22549
22703
|
effect: "read",
|
|
22550
22704
|
confirmation: null,
|
|
22551
22705
|
hidden: false
|
|
@@ -22655,6 +22809,32 @@ var commands = {
|
|
|
22655
22809
|
"team"
|
|
22656
22810
|
]
|
|
22657
22811
|
},
|
|
22812
|
+
{
|
|
22813
|
+
name: "waitingOn",
|
|
22814
|
+
flag: "waiting-on",
|
|
22815
|
+
kind: "string",
|
|
22816
|
+
required: false,
|
|
22817
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match.",
|
|
22818
|
+
choices: [
|
|
22819
|
+
"ai",
|
|
22820
|
+
"team",
|
|
22821
|
+
"contact"
|
|
22822
|
+
]
|
|
22823
|
+
},
|
|
22824
|
+
{
|
|
22825
|
+
name: "assignee",
|
|
22826
|
+
flag: "assignee",
|
|
22827
|
+
kind: "string",
|
|
22828
|
+
required: false,
|
|
22829
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took."
|
|
22830
|
+
},
|
|
22831
|
+
{
|
|
22832
|
+
name: "unattended",
|
|
22833
|
+
flag: "unattended",
|
|
22834
|
+
kind: "boolean",
|
|
22835
|
+
required: false,
|
|
22836
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
22837
|
+
},
|
|
22658
22838
|
{
|
|
22659
22839
|
name: "origin",
|
|
22660
22840
|
flag: "origin",
|
|
@@ -22944,6 +23124,33 @@ var commands = {
|
|
|
22944
23124
|
],
|
|
22945
23125
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
22946
23126
|
},
|
|
23127
|
+
waitingOn: {
|
|
23128
|
+
anyOf: [
|
|
23129
|
+
{
|
|
23130
|
+
type: "string",
|
|
23131
|
+
const: "ai"
|
|
23132
|
+
},
|
|
23133
|
+
{
|
|
23134
|
+
type: "string",
|
|
23135
|
+
const: "team"
|
|
23136
|
+
},
|
|
23137
|
+
{
|
|
23138
|
+
type: "string",
|
|
23139
|
+
const: "contact"
|
|
23140
|
+
}
|
|
23141
|
+
],
|
|
23142
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
23143
|
+
},
|
|
23144
|
+
assignee: {
|
|
23145
|
+
type: "string",
|
|
23146
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
23147
|
+
maxLength: 255,
|
|
23148
|
+
minLength: 1
|
|
23149
|
+
},
|
|
23150
|
+
unattended: {
|
|
23151
|
+
type: "boolean",
|
|
23152
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
23153
|
+
},
|
|
22947
23154
|
origin: {
|
|
22948
23155
|
type: "string",
|
|
22949
23156
|
description: "Comma-separated origins.",
|
|
@@ -23126,7 +23333,7 @@ var commands = {
|
|
|
23126
23333
|
additionalProperties: false
|
|
23127
23334
|
},
|
|
23128
23335
|
title: "List conversations",
|
|
23129
|
-
description: "Find calls, WhatsApp chats and web chats. Filter by `contactId` (as counterpart or subject), `agentId`, `channelId`, `channelType`, `status`, `conversationDirection`, `origin`, `outcome`, `sentiment`, `handling` (`ai` or `team`: whether the AI takes part; `escalated`: handed to the team by the AI), `worker` (`ai` or `team`: who answers it now), the Agent's tools (`toolName`, `toolStatus`: which tool it called and how the call ended), a captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or `passed`), `toReview` (evaluated failures or unresolved handoffs; explicitly resolved successes leave this queue), length (`messagesMin`, `messagesMax`, `durationMin`, `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time (`startedAfter`, `startedBefore`); `q` searches participant identities (names, profile names, usernames, phones, emails and documents), visible messages, titles, summaries and exact conversation references; `count_conversations` counts every match. Each item already carries its title, summary, outcome, sentiment, workers and tool calls (how many, how many failed, the latest failure), often enough to answer. `sort`: `started` (newest first), `last_message` (latest activity first) or `changed`, the feed of status, outcome and analysis changes, oldest first, that systems poll from a saved `pageInfo.nextCursor` (a deleted conversation appears once with `deletedAt`). Next: `get_conversation` for a transcript.",
|
|
23336
|
+
description: "Find calls, WhatsApp chats and web chats. Filter by `contactId` (as counterpart or subject), `agentId`, `channelId`, `channelType`, `status`, `conversationDirection`, `origin`, `outcome`, `sentiment`, `handling` (`ai` or `team`: whether the AI takes part; `escalated`: handed to the team by the AI), `worker` (`ai` or `team`: who answers it now), `waitingOn` (`ai`, `team` or `contact`: who an open conversation waits for; `team` lists the cases a person has to answer), `assignee` (a member id, `me` or `none`: whose case it is), `unattended` (closed with a handoff nobody of the team answered), the Agent's tools (`toolName`, `toolStatus`: which tool it called and how the call ended), a captured fact (`factDefinition`, `factValue`), `assessment` (`failed` or `passed`), `toReview` (evaluated failures or unresolved handoffs; explicitly resolved successes leave this queue), length (`messagesMin`, `messagesMax`, `durationMin`, `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time (`startedAfter`, `startedBefore`); `q` searches participant identities (names, profile names, usernames, phones, emails and documents), visible messages, titles, summaries and exact conversation references; `count_conversations` counts every match. Each item already carries its title, summary, outcome, sentiment, workers and tool calls (how many, how many failed, the latest failure), often enough to answer. `sort`: `started` (newest first), `last_message` (latest activity first) or `changed`, the feed of status, outcome and analysis changes, oldest first, that systems poll from a saved `pageInfo.nextCursor` (a deleted conversation appears once with `deletedAt`). Next: `get_conversation` for a transcript.",
|
|
23130
23337
|
effect: "read",
|
|
23131
23338
|
confirmation: null,
|
|
23132
23339
|
hidden: false
|
|
@@ -23353,6 +23560,13 @@ var commands = {
|
|
|
23353
23560
|
required: false,
|
|
23354
23561
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
23355
23562
|
},
|
|
23563
|
+
{
|
|
23564
|
+
name: "assigneeId",
|
|
23565
|
+
flag: "assignee-id",
|
|
23566
|
+
kind: "string",
|
|
23567
|
+
required: false,
|
|
23568
|
+
description: ""
|
|
23569
|
+
},
|
|
23356
23570
|
{
|
|
23357
23571
|
name: "contactId",
|
|
23358
23572
|
flag: "contact-id",
|
|
@@ -23413,6 +23627,19 @@ var commands = {
|
|
|
23413
23627
|
type: "boolean",
|
|
23414
23628
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
23415
23629
|
},
|
|
23630
|
+
assigneeId: {
|
|
23631
|
+
anyOf: [
|
|
23632
|
+
{
|
|
23633
|
+
type: "string",
|
|
23634
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
23635
|
+
maxLength: 255,
|
|
23636
|
+
minLength: 1
|
|
23637
|
+
},
|
|
23638
|
+
{
|
|
23639
|
+
type: "null"
|
|
23640
|
+
}
|
|
23641
|
+
]
|
|
23642
|
+
},
|
|
23416
23643
|
contactId: {
|
|
23417
23644
|
anyOf: [
|
|
23418
23645
|
{
|
|
@@ -23501,7 +23728,7 @@ var commands = {
|
|
|
23501
23728
|
additionalProperties: false
|
|
23502
23729
|
},
|
|
23503
23730
|
title: "Update a conversation",
|
|
23504
|
-
description: "Change a conversation's title, summary, metadata, contact or subject, or close it (`status: closed`), which starts its analysis. A title or summary written here always wins over the generated one. A call closes by itself (CALL_IN_PROGRESS); a web chat cannot close while the Agent is replying (REPLY_IN_PROGRESS, retry shortly). On WhatsApp, `aiEnabled` activates or pauses AI only for this open conversation and leaves future episodes unchanged; `aiPaused` pauses or resumes the Agent for this person until their open conversation closes. Activating or resuming answers what the contact wrote after the last real answer, the team's or the Agent's (a wait notice is not one).",
|
|
23731
|
+
description: "Change a conversation's title, summary, metadata, contact or subject, give its case to a person of the organization (`assigneeId`: a member id from `listAssignees`, `me`, or `null` for nobody; its new owner is told by email), or close it (`status: closed`), which starts its analysis. A title or summary written here always wins over the generated one. A call closes by itself (CALL_IN_PROGRESS); a web chat cannot close while the Agent is replying (REPLY_IN_PROGRESS, retry shortly). On WhatsApp, `aiEnabled` activates or pauses AI only for this open conversation and leaves future episodes unchanged; `aiPaused` pauses or resumes the Agent for this person until their open conversation closes (one a person handles closes by itself after the Agent's `teamCloseAfterMinutes` without messages). Activating or resuming answers what the contact wrote after the last real answer, the team's or the Agent's (a wait notice is not one).",
|
|
23505
23732
|
effect: "write",
|
|
23506
23733
|
confirmation: null,
|
|
23507
23734
|
hidden: false
|
|
@@ -26058,6 +26285,19 @@ var commands = {
|
|
|
26058
26285
|
}
|
|
26059
26286
|
]
|
|
26060
26287
|
},
|
|
26288
|
+
firstReplyMinutes: {
|
|
26289
|
+
anyOf: [
|
|
26290
|
+
{
|
|
26291
|
+
type: "integer",
|
|
26292
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
26293
|
+
maximum: 1440,
|
|
26294
|
+
minimum: 0
|
|
26295
|
+
},
|
|
26296
|
+
{
|
|
26297
|
+
type: "null"
|
|
26298
|
+
}
|
|
26299
|
+
]
|
|
26300
|
+
},
|
|
26061
26301
|
frequency: {
|
|
26062
26302
|
anyOf: [
|
|
26063
26303
|
{
|
|
@@ -26772,9 +27012,10 @@ var commands = {
|
|
|
26772
27012
|
flag: "name",
|
|
26773
27013
|
kind: "string",
|
|
26774
27014
|
required: true,
|
|
26775
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
27015
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates).",
|
|
26776
27016
|
choices: [
|
|
26777
27017
|
"conversations_daily",
|
|
27018
|
+
"handoffs_daily",
|
|
26778
27019
|
"pqrsf_daily",
|
|
26779
27020
|
"tool_calls_daily",
|
|
26780
27021
|
"tool_calls",
|
|
@@ -26852,6 +27093,10 @@ var commands = {
|
|
|
26852
27093
|
type: "string",
|
|
26853
27094
|
const: "conversations_daily"
|
|
26854
27095
|
},
|
|
27096
|
+
{
|
|
27097
|
+
type: "string",
|
|
27098
|
+
const: "handoffs_daily"
|
|
27099
|
+
},
|
|
26855
27100
|
{
|
|
26856
27101
|
type: "string",
|
|
26857
27102
|
const: "pqrsf_daily"
|
|
@@ -26881,7 +27126,7 @@ var commands = {
|
|
|
26881
27126
|
const: "campaign_progress"
|
|
26882
27127
|
}
|
|
26883
27128
|
],
|
|
26884
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
27129
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
26885
27130
|
},
|
|
26886
27131
|
to: {
|
|
26887
27132
|
type: "string",
|
|
@@ -26895,7 +27140,7 @@ var commands = {
|
|
|
26895
27140
|
additionalProperties: false
|
|
26896
27141
|
},
|
|
26897
27142
|
title: "Get a report",
|
|
26898
|
-
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `booking_details` (verified individual creation receipts with patient, specialty, appointments and later recorded cancellations; also requires conversation read/write permission; filter specialty by its recorded code), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), `pqrsf_daily` (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
27143
|
+
description: "Get the numbers behind a question. `name`: `conversations_daily` (conversations the AI took part in, per day), `handoffs_daily` (the conversations the AI handed to the team per day, Agent and person: how many a person answered, how many within the organization's first-reply time and how soon on average, how many still wait, how many closed with nobody answering and how many went back to the AI; filter `agentId`), `booking_details` (verified individual creation receipts with patient, specialty, appointments and later recorded cancellations; also requires conversation read/write permission; filter specialty by its recorded code), `booking_outcomes` (verified saved booking receipts by completion day and integration, excluding tests, imports and deleted conversations; createdCount counts new appointments created by the AI, not confirmations of existing appointments; confirmedCount is its compatibility alias and must not be added again; reschedules, cancellations, failures, pending and unverified results separately), `tool_calls_daily` (Agent tool calls per day), `tool_calls` (each call, newest first), `assessment_results_daily` (assessment results per day), `pqrsf_daily` (PQRSF classification, confirmed informational resolution and correct referrals from current pqrsf_* facts; unknown and pending analysis remain visible; excludes tests/imports/deleted records), each over days in the organization's time zone (`from`, `to`; the last 30 days by default), or `campaign_progress`. Narrow with `agentId`, `channelType`, `campaignId` or `definitionId`; unsupported filters fail. At most 1000 rows: `hasMore` means split the range or filter. Booking outcomes return no partial totals when their evidence scan exceeds its bound. Conversation success and completed tool calls never establish a booking; these are historical receipts, not the provider's current appointment status.",
|
|
26899
27144
|
effect: "read",
|
|
26900
27145
|
confirmation: null,
|
|
26901
27146
|
hidden: false
|
|
@@ -28645,7 +28890,7 @@ var commands = {
|
|
|
28645
28890
|
}
|
|
28646
28891
|
},
|
|
28647
28892
|
title: "Look up affiliation",
|
|
28648
|
-
description: "Read one matching member contract from an active Account connection. Confirmed affiliation results are reused for seven days.
|
|
28893
|
+
description: "Read one matching member contract from an active Account connection. Confirmed affiliation results are reused for seven days. When the provider lists no contract for the document in the company, the answer is outcome noContract with active null: an answer, not a failure and not inactive, so confirm the document number and the company with the person. PATIENT_UNRESOLVED means it listed several contracts and none was chosen. The session is kept alive through the day, and one renewal is admitted only on expiry. This does not authorize care.",
|
|
28649
28894
|
effect: "read",
|
|
28650
28895
|
confirmation: null,
|
|
28651
28896
|
hidden: false
|
|
@@ -34862,7 +35107,7 @@ var schemaComponents = {
|
|
|
34862
35107
|
},
|
|
34863
35108
|
portal: {
|
|
34864
35109
|
type: "string",
|
|
34865
|
-
description: "
|
|
35110
|
+
description: "Which of the provider's independent sites this connection reaches."
|
|
34866
35111
|
},
|
|
34867
35112
|
name: {
|
|
34868
35113
|
type: "string"
|
|
@@ -76140,6 +76385,7 @@ var schemaComponents = {
|
|
|
76140
76385
|
AgendaGetOrganizationResult: {
|
|
76141
76386
|
type: "object",
|
|
76142
76387
|
required: [
|
|
76388
|
+
"holidays",
|
|
76143
76389
|
"modules",
|
|
76144
76390
|
"name",
|
|
76145
76391
|
"object",
|
|
@@ -76147,11 +76393,85 @@ var schemaComponents = {
|
|
|
76147
76393
|
"version"
|
|
76148
76394
|
],
|
|
76149
76395
|
properties: {
|
|
76396
|
+
holidays: {
|
|
76397
|
+
type: "object",
|
|
76398
|
+
required: [
|
|
76399
|
+
"country",
|
|
76400
|
+
"exceptions",
|
|
76401
|
+
"mode"
|
|
76402
|
+
],
|
|
76403
|
+
properties: {
|
|
76404
|
+
country: {
|
|
76405
|
+
anyOf: [
|
|
76406
|
+
{
|
|
76407
|
+
type: "string",
|
|
76408
|
+
const: "CO"
|
|
76409
|
+
},
|
|
76410
|
+
{
|
|
76411
|
+
type: "string",
|
|
76412
|
+
const: "MX"
|
|
76413
|
+
},
|
|
76414
|
+
{
|
|
76415
|
+
type: "string",
|
|
76416
|
+
const: "PE"
|
|
76417
|
+
},
|
|
76418
|
+
{
|
|
76419
|
+
type: "string",
|
|
76420
|
+
const: "CL"
|
|
76421
|
+
}
|
|
76422
|
+
],
|
|
76423
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
76424
|
+
},
|
|
76425
|
+
exceptions: {
|
|
76426
|
+
type: "object",
|
|
76427
|
+
patternProperties: {
|
|
76428
|
+
"^.*$": {
|
|
76429
|
+
anyOf: [
|
|
76430
|
+
{
|
|
76431
|
+
type: "string",
|
|
76432
|
+
const: "closed"
|
|
76433
|
+
},
|
|
76434
|
+
{
|
|
76435
|
+
type: "string",
|
|
76436
|
+
const: "notice"
|
|
76437
|
+
},
|
|
76438
|
+
{
|
|
76439
|
+
type: "string",
|
|
76440
|
+
const: "hidden"
|
|
76441
|
+
}
|
|
76442
|
+
],
|
|
76443
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
76444
|
+
}
|
|
76445
|
+
},
|
|
76446
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
76447
|
+
},
|
|
76448
|
+
mode: {
|
|
76449
|
+
anyOf: [
|
|
76450
|
+
{
|
|
76451
|
+
type: "string",
|
|
76452
|
+
const: "closed"
|
|
76453
|
+
},
|
|
76454
|
+
{
|
|
76455
|
+
type: "string",
|
|
76456
|
+
const: "notice"
|
|
76457
|
+
},
|
|
76458
|
+
{
|
|
76459
|
+
type: "string",
|
|
76460
|
+
const: "hidden"
|
|
76461
|
+
}
|
|
76462
|
+
],
|
|
76463
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
76464
|
+
}
|
|
76465
|
+
},
|
|
76466
|
+
additionalProperties: false,
|
|
76467
|
+
description: "National holidays of the organization: the country, what a holiday does and its exceptions. They apply only while the holidays module is on."
|
|
76468
|
+
},
|
|
76150
76469
|
modules: {
|
|
76151
76470
|
type: "object",
|
|
76152
76471
|
required: [
|
|
76153
76472
|
"customFields",
|
|
76154
76473
|
"files",
|
|
76474
|
+
"holidays",
|
|
76155
76475
|
"locations",
|
|
76156
76476
|
"notifications",
|
|
76157
76477
|
"reports",
|
|
@@ -76167,6 +76487,10 @@ var schemaComponents = {
|
|
|
76167
76487
|
type: "boolean",
|
|
76168
76488
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
76169
76489
|
},
|
|
76490
|
+
holidays: {
|
|
76491
|
+
type: "boolean",
|
|
76492
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
76493
|
+
},
|
|
76170
76494
|
locations: {
|
|
76171
76495
|
type: "boolean",
|
|
76172
76496
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -122811,6 +123135,74 @@ var schemaComponents = {
|
|
|
122811
123135
|
minimum: 0,
|
|
122812
123136
|
description: "Organization settings version last observed; zero before the first save. A concurrent edit produces a conflict."
|
|
122813
123137
|
},
|
|
123138
|
+
holidays: {
|
|
123139
|
+
type: "object",
|
|
123140
|
+
properties: {
|
|
123141
|
+
country: {
|
|
123142
|
+
anyOf: [
|
|
123143
|
+
{
|
|
123144
|
+
type: "string",
|
|
123145
|
+
const: "CO"
|
|
123146
|
+
},
|
|
123147
|
+
{
|
|
123148
|
+
type: "string",
|
|
123149
|
+
const: "MX"
|
|
123150
|
+
},
|
|
123151
|
+
{
|
|
123152
|
+
type: "string",
|
|
123153
|
+
const: "PE"
|
|
123154
|
+
},
|
|
123155
|
+
{
|
|
123156
|
+
type: "string",
|
|
123157
|
+
const: "CL"
|
|
123158
|
+
}
|
|
123159
|
+
],
|
|
123160
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
123161
|
+
},
|
|
123162
|
+
exceptions: {
|
|
123163
|
+
type: "object",
|
|
123164
|
+
patternProperties: {
|
|
123165
|
+
"^.*$": {
|
|
123166
|
+
anyOf: [
|
|
123167
|
+
{
|
|
123168
|
+
type: "string",
|
|
123169
|
+
const: "closed"
|
|
123170
|
+
},
|
|
123171
|
+
{
|
|
123172
|
+
type: "string",
|
|
123173
|
+
const: "notice"
|
|
123174
|
+
},
|
|
123175
|
+
{
|
|
123176
|
+
type: "string",
|
|
123177
|
+
const: "hidden"
|
|
123178
|
+
}
|
|
123179
|
+
],
|
|
123180
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123181
|
+
}
|
|
123182
|
+
},
|
|
123183
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
123184
|
+
},
|
|
123185
|
+
mode: {
|
|
123186
|
+
anyOf: [
|
|
123187
|
+
{
|
|
123188
|
+
type: "string",
|
|
123189
|
+
const: "closed"
|
|
123190
|
+
},
|
|
123191
|
+
{
|
|
123192
|
+
type: "string",
|
|
123193
|
+
const: "notice"
|
|
123194
|
+
},
|
|
123195
|
+
{
|
|
123196
|
+
type: "string",
|
|
123197
|
+
const: "hidden"
|
|
123198
|
+
}
|
|
123199
|
+
],
|
|
123200
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123201
|
+
}
|
|
123202
|
+
},
|
|
123203
|
+
additionalProperties: false,
|
|
123204
|
+
description: "Only supplied holiday settings are changed. Supplied exceptions replace the stored ones; an exception naming a holiday the country does not have is dropped."
|
|
123205
|
+
},
|
|
122814
123206
|
modules: {
|
|
122815
123207
|
type: "object",
|
|
122816
123208
|
properties: {
|
|
@@ -122822,6 +123214,10 @@ var schemaComponents = {
|
|
|
122822
123214
|
type: "boolean",
|
|
122823
123215
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
122824
123216
|
},
|
|
123217
|
+
holidays: {
|
|
123218
|
+
type: "boolean",
|
|
123219
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
123220
|
+
},
|
|
122825
123221
|
locations: {
|
|
122826
123222
|
type: "boolean",
|
|
122827
123223
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -123218,6 +123614,7 @@ var schemaComponents = {
|
|
|
123218
123614
|
AgendaSaveOrganizationResult: {
|
|
123219
123615
|
type: "object",
|
|
123220
123616
|
required: [
|
|
123617
|
+
"holidays",
|
|
123221
123618
|
"modules",
|
|
123222
123619
|
"name",
|
|
123223
123620
|
"object",
|
|
@@ -123225,11 +123622,85 @@ var schemaComponents = {
|
|
|
123225
123622
|
"version"
|
|
123226
123623
|
],
|
|
123227
123624
|
properties: {
|
|
123625
|
+
holidays: {
|
|
123626
|
+
type: "object",
|
|
123627
|
+
required: [
|
|
123628
|
+
"country",
|
|
123629
|
+
"exceptions",
|
|
123630
|
+
"mode"
|
|
123631
|
+
],
|
|
123632
|
+
properties: {
|
|
123633
|
+
country: {
|
|
123634
|
+
anyOf: [
|
|
123635
|
+
{
|
|
123636
|
+
type: "string",
|
|
123637
|
+
const: "CO"
|
|
123638
|
+
},
|
|
123639
|
+
{
|
|
123640
|
+
type: "string",
|
|
123641
|
+
const: "MX"
|
|
123642
|
+
},
|
|
123643
|
+
{
|
|
123644
|
+
type: "string",
|
|
123645
|
+
const: "PE"
|
|
123646
|
+
},
|
|
123647
|
+
{
|
|
123648
|
+
type: "string",
|
|
123649
|
+
const: "CL"
|
|
123650
|
+
}
|
|
123651
|
+
],
|
|
123652
|
+
description: "Country whose national holidays apply, as an ISO 3166-1 alpha-2 code."
|
|
123653
|
+
},
|
|
123654
|
+
exceptions: {
|
|
123655
|
+
type: "object",
|
|
123656
|
+
patternProperties: {
|
|
123657
|
+
"^.*$": {
|
|
123658
|
+
anyOf: [
|
|
123659
|
+
{
|
|
123660
|
+
type: "string",
|
|
123661
|
+
const: "closed"
|
|
123662
|
+
},
|
|
123663
|
+
{
|
|
123664
|
+
type: "string",
|
|
123665
|
+
const: "notice"
|
|
123666
|
+
},
|
|
123667
|
+
{
|
|
123668
|
+
type: "string",
|
|
123669
|
+
const: "hidden"
|
|
123670
|
+
}
|
|
123671
|
+
],
|
|
123672
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123673
|
+
}
|
|
123674
|
+
},
|
|
123675
|
+
description: "Holidays that do something else than `mode`, by holiday id."
|
|
123676
|
+
},
|
|
123677
|
+
mode: {
|
|
123678
|
+
anyOf: [
|
|
123679
|
+
{
|
|
123680
|
+
type: "string",
|
|
123681
|
+
const: "closed"
|
|
123682
|
+
},
|
|
123683
|
+
{
|
|
123684
|
+
type: "string",
|
|
123685
|
+
const: "notice"
|
|
123686
|
+
},
|
|
123687
|
+
{
|
|
123688
|
+
type: "string",
|
|
123689
|
+
const: "hidden"
|
|
123690
|
+
}
|
|
123691
|
+
],
|
|
123692
|
+
description: "What a holiday does: closed offers no availability that day, notice only shows it on the agenda and when booking, hidden neither shows nor changes anything."
|
|
123693
|
+
}
|
|
123694
|
+
},
|
|
123695
|
+
additionalProperties: false,
|
|
123696
|
+
description: "National holidays of the organization: the country, what a holiday does and its exceptions. They apply only while the holidays module is on."
|
|
123697
|
+
},
|
|
123228
123698
|
modules: {
|
|
123229
123699
|
type: "object",
|
|
123230
123700
|
required: [
|
|
123231
123701
|
"customFields",
|
|
123232
123702
|
"files",
|
|
123703
|
+
"holidays",
|
|
123233
123704
|
"locations",
|
|
123234
123705
|
"notifications",
|
|
123235
123706
|
"reports",
|
|
@@ -123245,6 +123716,10 @@ var schemaComponents = {
|
|
|
123245
123716
|
type: "boolean",
|
|
123246
123717
|
description: "Show patient and appointment documents without deleting stored files when disabled."
|
|
123247
123718
|
},
|
|
123719
|
+
holidays: {
|
|
123720
|
+
type: "boolean",
|
|
123721
|
+
description: "Apply the national holidays of the configured country: closed days offer no availability, noticed days are only shown. Disabling changes nothing stored."
|
|
123722
|
+
},
|
|
123248
123723
|
locations: {
|
|
123249
123724
|
type: "boolean",
|
|
123250
123725
|
description: "Show organization sites and site-based agenda filters."
|
|
@@ -152133,6 +152608,74 @@ var schemaComponents = {
|
|
|
152133
152608
|
}
|
|
152134
152609
|
}
|
|
152135
152610
|
},
|
|
152611
|
+
GmedicBookingColorRequiredFailure: {
|
|
152612
|
+
type: "object",
|
|
152613
|
+
description: "This booking requires a verified free interval in the clinic’s correct blue or gray window. Check availability with the required booking color or refer the request to reception.",
|
|
152614
|
+
additionalProperties: false,
|
|
152615
|
+
required: [
|
|
152616
|
+
"code",
|
|
152617
|
+
"message",
|
|
152618
|
+
"retryable",
|
|
152619
|
+
"data"
|
|
152620
|
+
],
|
|
152621
|
+
properties: {
|
|
152622
|
+
code: {
|
|
152623
|
+
type: "string",
|
|
152624
|
+
enum: [
|
|
152625
|
+
"BOOKING_COLOR_REQUIRED"
|
|
152626
|
+
],
|
|
152627
|
+
description: "The failure code, stable across releases."
|
|
152628
|
+
},
|
|
152629
|
+
message: {
|
|
152630
|
+
type: "string",
|
|
152631
|
+
description: "What went wrong, for people; it never contains input values."
|
|
152632
|
+
},
|
|
152633
|
+
retryable: {
|
|
152634
|
+
type: "boolean",
|
|
152635
|
+
enum: [
|
|
152636
|
+
false
|
|
152637
|
+
],
|
|
152638
|
+
description: "Whether repeating the same request may succeed."
|
|
152639
|
+
},
|
|
152640
|
+
data: {
|
|
152641
|
+
$ref: "#/components/schemas/Empty"
|
|
152642
|
+
}
|
|
152643
|
+
}
|
|
152644
|
+
},
|
|
152645
|
+
GmedicBookingInProgressFailure: {
|
|
152646
|
+
type: "object",
|
|
152647
|
+
description: "Another appointment change is in progress. Check the agenda again before trying to book.",
|
|
152648
|
+
additionalProperties: false,
|
|
152649
|
+
required: [
|
|
152650
|
+
"code",
|
|
152651
|
+
"message",
|
|
152652
|
+
"retryable",
|
|
152653
|
+
"data"
|
|
152654
|
+
],
|
|
152655
|
+
properties: {
|
|
152656
|
+
code: {
|
|
152657
|
+
type: "string",
|
|
152658
|
+
enum: [
|
|
152659
|
+
"BOOKING_IN_PROGRESS"
|
|
152660
|
+
],
|
|
152661
|
+
description: "The failure code, stable across releases."
|
|
152662
|
+
},
|
|
152663
|
+
message: {
|
|
152664
|
+
type: "string",
|
|
152665
|
+
description: "What went wrong, for people; it never contains input values."
|
|
152666
|
+
},
|
|
152667
|
+
retryable: {
|
|
152668
|
+
type: "boolean",
|
|
152669
|
+
enum: [
|
|
152670
|
+
false
|
|
152671
|
+
],
|
|
152672
|
+
description: "Whether repeating the same request may succeed."
|
|
152673
|
+
},
|
|
152674
|
+
data: {
|
|
152675
|
+
$ref: "#/components/schemas/Empty"
|
|
152676
|
+
}
|
|
152677
|
+
}
|
|
152678
|
+
},
|
|
152136
152679
|
GmedicBranchOfficesPage: {
|
|
152137
152680
|
additionalProperties: false,
|
|
152138
152681
|
type: "object",
|
|
@@ -152866,12 +153409,86 @@ var schemaComponents = {
|
|
|
152866
153409
|
}
|
|
152867
153410
|
}
|
|
152868
153411
|
},
|
|
153412
|
+
bookingRoute: {
|
|
153413
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
153414
|
+
anyOf: [
|
|
153415
|
+
{
|
|
153416
|
+
const: "PRIVATE",
|
|
153417
|
+
type: "string"
|
|
153418
|
+
},
|
|
153419
|
+
{
|
|
153420
|
+
const: "AXA_PREPAID",
|
|
153421
|
+
type: "string"
|
|
153422
|
+
},
|
|
153423
|
+
{
|
|
153424
|
+
const: "AXA_ARL",
|
|
153425
|
+
type: "string"
|
|
153426
|
+
},
|
|
153427
|
+
{
|
|
153428
|
+
const: "PONAL_STARKEY",
|
|
153429
|
+
type: "string"
|
|
153430
|
+
},
|
|
153431
|
+
{
|
|
153432
|
+
const: "EPS_SURA",
|
|
153433
|
+
type: "string"
|
|
153434
|
+
}
|
|
153435
|
+
]
|
|
153436
|
+
},
|
|
152869
153437
|
connectionId: {
|
|
152870
153438
|
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
152871
153439
|
type: "string"
|
|
152872
153440
|
}
|
|
152873
153441
|
}
|
|
152874
153442
|
},
|
|
153443
|
+
GmedicCreateAppointmentConflictError: {
|
|
153444
|
+
type: "object",
|
|
153445
|
+
description: "A failed answer.",
|
|
153446
|
+
additionalProperties: false,
|
|
153447
|
+
required: [
|
|
153448
|
+
"success",
|
|
153449
|
+
"data",
|
|
153450
|
+
"error",
|
|
153451
|
+
"metadata"
|
|
153452
|
+
],
|
|
153453
|
+
properties: {
|
|
153454
|
+
success: {
|
|
153455
|
+
type: "boolean",
|
|
153456
|
+
enum: [
|
|
153457
|
+
false
|
|
153458
|
+
]
|
|
153459
|
+
},
|
|
153460
|
+
data: {
|
|
153461
|
+
const: null
|
|
153462
|
+
},
|
|
153463
|
+
error: {
|
|
153464
|
+
$ref: "#/components/schemas/GmedicCreateAppointmentConflictFailure"
|
|
153465
|
+
},
|
|
153466
|
+
metadata: {
|
|
153467
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
153468
|
+
}
|
|
153469
|
+
}
|
|
153470
|
+
},
|
|
153471
|
+
GmedicCreateAppointmentConflictFailure: {
|
|
153472
|
+
oneOf: [
|
|
153473
|
+
{
|
|
153474
|
+
$ref: "#/components/schemas/GmedicNotConfiguredFailure"
|
|
153475
|
+
},
|
|
153476
|
+
{
|
|
153477
|
+
$ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
|
|
153478
|
+
},
|
|
153479
|
+
{
|
|
153480
|
+
$ref: "#/components/schemas/GmedicBookingInProgressFailure"
|
|
153481
|
+
}
|
|
153482
|
+
],
|
|
153483
|
+
discriminator: {
|
|
153484
|
+
propertyName: "code",
|
|
153485
|
+
mapping: {
|
|
153486
|
+
NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
|
|
153487
|
+
BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
|
|
153488
|
+
BOOKING_IN_PROGRESS: "#/components/schemas/GmedicBookingInProgressFailure"
|
|
153489
|
+
}
|
|
153490
|
+
}
|
|
153491
|
+
},
|
|
152875
153492
|
GmedicCreateAppointmentNotFoundError: {
|
|
152876
153493
|
type: "object",
|
|
152877
153494
|
description: "A failed answer.",
|
|
@@ -157621,6 +158238,51 @@ var schemaComponents = {
|
|
|
157621
158238
|
}
|
|
157622
158239
|
}
|
|
157623
158240
|
},
|
|
158241
|
+
GmedicListAvailabilityConflictError: {
|
|
158242
|
+
type: "object",
|
|
158243
|
+
description: "A failed answer.",
|
|
158244
|
+
additionalProperties: false,
|
|
158245
|
+
required: [
|
|
158246
|
+
"success",
|
|
158247
|
+
"data",
|
|
158248
|
+
"error",
|
|
158249
|
+
"metadata"
|
|
158250
|
+
],
|
|
158251
|
+
properties: {
|
|
158252
|
+
success: {
|
|
158253
|
+
type: "boolean",
|
|
158254
|
+
enum: [
|
|
158255
|
+
false
|
|
158256
|
+
]
|
|
158257
|
+
},
|
|
158258
|
+
data: {
|
|
158259
|
+
const: null
|
|
158260
|
+
},
|
|
158261
|
+
error: {
|
|
158262
|
+
$ref: "#/components/schemas/GmedicListAvailabilityConflictFailure"
|
|
158263
|
+
},
|
|
158264
|
+
metadata: {
|
|
158265
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
158266
|
+
}
|
|
158267
|
+
}
|
|
158268
|
+
},
|
|
158269
|
+
GmedicListAvailabilityConflictFailure: {
|
|
158270
|
+
oneOf: [
|
|
158271
|
+
{
|
|
158272
|
+
$ref: "#/components/schemas/GmedicNotConfiguredFailure"
|
|
158273
|
+
},
|
|
158274
|
+
{
|
|
158275
|
+
$ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
|
|
158276
|
+
}
|
|
158277
|
+
],
|
|
158278
|
+
discriminator: {
|
|
158279
|
+
propertyName: "code",
|
|
158280
|
+
mapping: {
|
|
158281
|
+
NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
|
|
158282
|
+
BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure"
|
|
158283
|
+
}
|
|
158284
|
+
}
|
|
158285
|
+
},
|
|
157624
158286
|
GmedicListAvailabilityNotFoundError: {
|
|
157625
158287
|
type: "object",
|
|
157626
158288
|
description: "A failed answer.",
|
|
@@ -163365,6 +164027,31 @@ var schemaComponents = {
|
|
|
163365
164027
|
type: "object",
|
|
163366
164028
|
required: [],
|
|
163367
164029
|
properties: {
|
|
164030
|
+
bookingRoute: {
|
|
164031
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
164032
|
+
anyOf: [
|
|
164033
|
+
{
|
|
164034
|
+
const: "PRIVATE",
|
|
164035
|
+
type: "string"
|
|
164036
|
+
},
|
|
164037
|
+
{
|
|
164038
|
+
const: "AXA_PREPAID",
|
|
164039
|
+
type: "string"
|
|
164040
|
+
},
|
|
164041
|
+
{
|
|
164042
|
+
const: "AXA_ARL",
|
|
164043
|
+
type: "string"
|
|
164044
|
+
},
|
|
164045
|
+
{
|
|
164046
|
+
const: "PONAL_STARKEY",
|
|
164047
|
+
type: "string"
|
|
164048
|
+
},
|
|
164049
|
+
{
|
|
164050
|
+
const: "EPS_SURA",
|
|
164051
|
+
type: "string"
|
|
164052
|
+
}
|
|
164053
|
+
]
|
|
164054
|
+
},
|
|
163368
164055
|
color: {
|
|
163369
164056
|
anyOf: [
|
|
163370
164057
|
{
|
|
@@ -163527,6 +164214,55 @@ var schemaComponents = {
|
|
|
163527
164214
|
}
|
|
163528
164215
|
}
|
|
163529
164216
|
},
|
|
164217
|
+
GmedicUpdateAppointmentConflictError: {
|
|
164218
|
+
type: "object",
|
|
164219
|
+
description: "A failed answer.",
|
|
164220
|
+
additionalProperties: false,
|
|
164221
|
+
required: [
|
|
164222
|
+
"success",
|
|
164223
|
+
"data",
|
|
164224
|
+
"error",
|
|
164225
|
+
"metadata"
|
|
164226
|
+
],
|
|
164227
|
+
properties: {
|
|
164228
|
+
success: {
|
|
164229
|
+
type: "boolean",
|
|
164230
|
+
enum: [
|
|
164231
|
+
false
|
|
164232
|
+
]
|
|
164233
|
+
},
|
|
164234
|
+
data: {
|
|
164235
|
+
const: null
|
|
164236
|
+
},
|
|
164237
|
+
error: {
|
|
164238
|
+
$ref: "#/components/schemas/GmedicUpdateAppointmentConflictFailure"
|
|
164239
|
+
},
|
|
164240
|
+
metadata: {
|
|
164241
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
164242
|
+
}
|
|
164243
|
+
}
|
|
164244
|
+
},
|
|
164245
|
+
GmedicUpdateAppointmentConflictFailure: {
|
|
164246
|
+
oneOf: [
|
|
164247
|
+
{
|
|
164248
|
+
$ref: "#/components/schemas/GmedicNotConfiguredFailure"
|
|
164249
|
+
},
|
|
164250
|
+
{
|
|
164251
|
+
$ref: "#/components/schemas/GmedicBookingColorRequiredFailure"
|
|
164252
|
+
},
|
|
164253
|
+
{
|
|
164254
|
+
$ref: "#/components/schemas/GmedicBookingInProgressFailure"
|
|
164255
|
+
}
|
|
164256
|
+
],
|
|
164257
|
+
discriminator: {
|
|
164258
|
+
propertyName: "code",
|
|
164259
|
+
mapping: {
|
|
164260
|
+
NOT_CONFIGURED: "#/components/schemas/GmedicNotConfiguredFailure",
|
|
164261
|
+
BOOKING_COLOR_REQUIRED: "#/components/schemas/GmedicBookingColorRequiredFailure",
|
|
164262
|
+
BOOKING_IN_PROGRESS: "#/components/schemas/GmedicBookingInProgressFailure"
|
|
164263
|
+
}
|
|
164264
|
+
}
|
|
164265
|
+
},
|
|
163530
164266
|
GmedicUpdateAppointmentNotFoundError: {
|
|
163531
164267
|
type: "object",
|
|
163532
164268
|
description: "A failed answer.",
|
|
@@ -172028,6 +172764,40 @@ var schemaComponents = {
|
|
|
172028
172764
|
}
|
|
172029
172765
|
}
|
|
172030
172766
|
},
|
|
172767
|
+
OficlinicBookingValueUnresolvedFailure: {
|
|
172768
|
+
type: "object",
|
|
172769
|
+
description: "A value the booking needs could not be resolved from the provider's own data, so the caller must supply it: a contract, a relationship, a list status, an authorization number, a salary range the regime lists, or the billing values. Nothing was written.",
|
|
172770
|
+
additionalProperties: false,
|
|
172771
|
+
required: [
|
|
172772
|
+
"code",
|
|
172773
|
+
"message",
|
|
172774
|
+
"retryable",
|
|
172775
|
+
"data"
|
|
172776
|
+
],
|
|
172777
|
+
properties: {
|
|
172778
|
+
code: {
|
|
172779
|
+
type: "string",
|
|
172780
|
+
enum: [
|
|
172781
|
+
"BOOKING_VALUE_UNRESOLVED"
|
|
172782
|
+
],
|
|
172783
|
+
description: "The failure code, stable across releases."
|
|
172784
|
+
},
|
|
172785
|
+
message: {
|
|
172786
|
+
type: "string",
|
|
172787
|
+
description: "What went wrong, for people; it never contains input values."
|
|
172788
|
+
},
|
|
172789
|
+
retryable: {
|
|
172790
|
+
type: "boolean",
|
|
172791
|
+
enum: [
|
|
172792
|
+
false
|
|
172793
|
+
],
|
|
172794
|
+
description: "Whether repeating the same request may succeed."
|
|
172795
|
+
},
|
|
172796
|
+
data: {
|
|
172797
|
+
$ref: "#/components/schemas/Empty"
|
|
172798
|
+
}
|
|
172799
|
+
}
|
|
172800
|
+
},
|
|
172031
172801
|
OficlinicCancelAppointmentBadGatewayError: {
|
|
172032
172802
|
type: "object",
|
|
172033
172803
|
description: "A failed answer.",
|
|
@@ -172087,7 +172857,6 @@ var schemaComponents = {
|
|
|
172087
172857
|
required: [
|
|
172088
172858
|
"documentType",
|
|
172089
172859
|
"documentNumber",
|
|
172090
|
-
"idempotencyKey",
|
|
172091
172860
|
"confirm",
|
|
172092
172861
|
"cancellation"
|
|
172093
172862
|
],
|
|
@@ -172111,7 +172880,7 @@ var schemaComponents = {
|
|
|
172111
172880
|
minLength: 8,
|
|
172112
172881
|
maxLength: 64,
|
|
172113
172882
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
172114
|
-
description: "
|
|
172883
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
172115
172884
|
type: "string"
|
|
172116
172885
|
},
|
|
172117
172886
|
confirm: {
|
|
@@ -172919,18 +173688,14 @@ var schemaComponents = {
|
|
|
172919
173688
|
additionalProperties: false,
|
|
172920
173689
|
type: "object",
|
|
172921
173690
|
required: [
|
|
172922
|
-
"idempotencyKey",
|
|
172923
173691
|
"confirm",
|
|
172924
173692
|
"flowId",
|
|
172925
173693
|
"slotId",
|
|
172926
173694
|
"documentType",
|
|
172927
173695
|
"documentNumber",
|
|
172928
|
-
"payerId",
|
|
172929
173696
|
"planId",
|
|
172930
173697
|
"subplanId",
|
|
172931
|
-
"classification"
|
|
172932
|
-
"billing",
|
|
172933
|
-
"referral"
|
|
173698
|
+
"classification"
|
|
172934
173699
|
],
|
|
172935
173700
|
properties: {
|
|
172936
173701
|
connectionId: {
|
|
@@ -172942,7 +173707,7 @@ var schemaComponents = {
|
|
|
172942
173707
|
minLength: 8,
|
|
172943
173708
|
maxLength: 64,
|
|
172944
173709
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
172945
|
-
description: "
|
|
173710
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
172946
173711
|
type: "string"
|
|
172947
173712
|
},
|
|
172948
173713
|
confirm: {
|
|
@@ -172957,7 +173722,7 @@ var schemaComponents = {
|
|
|
172957
173722
|
},
|
|
172958
173723
|
slotId: {
|
|
172959
173724
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
172960
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
173725
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
172961
173726
|
type: "string"
|
|
172962
173727
|
},
|
|
172963
173728
|
documentType: {
|
|
@@ -172972,7 +173737,7 @@ var schemaComponents = {
|
|
|
172972
173737
|
},
|
|
172973
173738
|
payerId: {
|
|
172974
173739
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
172975
|
-
description: "The flow
|
|
173740
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
172976
173741
|
type: "string"
|
|
172977
173742
|
},
|
|
172978
173743
|
planId: {
|
|
@@ -172986,7 +173751,7 @@ var schemaComponents = {
|
|
|
172986
173751
|
type: "string"
|
|
172987
173752
|
},
|
|
172988
173753
|
contractId: {
|
|
172989
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
173754
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
172990
173755
|
anyOf: [
|
|
172991
173756
|
{
|
|
172992
173757
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -172995,19 +173760,15 @@ var schemaComponents = {
|
|
|
172995
173760
|
{
|
|
172996
173761
|
type: "null"
|
|
172997
173762
|
}
|
|
172998
|
-
]
|
|
172999
|
-
default: null
|
|
173763
|
+
]
|
|
173000
173764
|
},
|
|
173001
173765
|
classification: {
|
|
173002
173766
|
additionalProperties: false,
|
|
173003
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
173767
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
173004
173768
|
type: "object",
|
|
173005
173769
|
required: [
|
|
173006
173770
|
"affiliateType",
|
|
173007
|
-
"regime"
|
|
173008
|
-
"programId",
|
|
173009
|
-
"attentionTypeId",
|
|
173010
|
-
"purposeId"
|
|
173771
|
+
"regime"
|
|
173011
173772
|
],
|
|
173012
173773
|
properties: {
|
|
173013
173774
|
affiliateType: {
|
|
@@ -173021,7 +173782,7 @@ var schemaComponents = {
|
|
|
173021
173782
|
type: "string"
|
|
173022
173783
|
},
|
|
173023
173784
|
relationship: {
|
|
173024
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
173785
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
173025
173786
|
anyOf: [
|
|
173026
173787
|
{
|
|
173027
173788
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -173034,7 +173795,7 @@ var schemaComponents = {
|
|
|
173034
173795
|
default: null
|
|
173035
173796
|
},
|
|
173036
173797
|
salaryRange: {
|
|
173037
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
173798
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
173038
173799
|
anyOf: [
|
|
173039
173800
|
{
|
|
173040
173801
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -173047,7 +173808,7 @@ var schemaComponents = {
|
|
|
173047
173808
|
default: null
|
|
173048
173809
|
},
|
|
173049
173810
|
listStatus: {
|
|
173050
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
173811
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
173051
173812
|
anyOf: [
|
|
173052
173813
|
{
|
|
173053
173814
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -173061,24 +173822,25 @@ var schemaComponents = {
|
|
|
173061
173822
|
},
|
|
173062
173823
|
programId: {
|
|
173063
173824
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
173064
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
173825
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
173065
173826
|
type: "string"
|
|
173066
173827
|
},
|
|
173067
173828
|
attentionTypeId: {
|
|
173068
173829
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
173069
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
173830
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
173070
173831
|
type: "string"
|
|
173071
173832
|
},
|
|
173072
173833
|
purposeId: {
|
|
173073
173834
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
173074
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
173075
|
-
type: "string"
|
|
173835
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
173836
|
+
type: "string",
|
|
173837
|
+
default: "10"
|
|
173076
173838
|
}
|
|
173077
173839
|
}
|
|
173078
173840
|
},
|
|
173079
173841
|
billing: {
|
|
173080
173842
|
additionalProperties: false,
|
|
173081
|
-
description: "Billing values of the
|
|
173843
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
173082
173844
|
type: "object",
|
|
173083
173845
|
required: [
|
|
173084
173846
|
"tariff",
|
|
@@ -173095,7 +173857,7 @@ var schemaComponents = {
|
|
|
173095
173857
|
properties: {
|
|
173096
173858
|
tariff: {
|
|
173097
173859
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
173098
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
173860
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
173099
173861
|
type: "string"
|
|
173100
173862
|
},
|
|
173101
173863
|
billPrivately: {
|
|
@@ -173202,6 +173964,7 @@ var schemaComponents = {
|
|
|
173202
173964
|
},
|
|
173203
173965
|
referral: {
|
|
173204
173966
|
additionalProperties: false,
|
|
173967
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
173205
173968
|
type: "object",
|
|
173206
173969
|
required: [],
|
|
173207
173970
|
properties: {
|
|
@@ -173219,7 +173982,7 @@ var schemaComponents = {
|
|
|
173219
173982
|
default: null
|
|
173220
173983
|
},
|
|
173221
173984
|
authorizationNumber: {
|
|
173222
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
173985
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
173223
173986
|
anyOf: [
|
|
173224
173987
|
{
|
|
173225
173988
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -173557,6 +174320,9 @@ var schemaComponents = {
|
|
|
173557
174320
|
{
|
|
173558
174321
|
$ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
|
|
173559
174322
|
},
|
|
174323
|
+
{
|
|
174324
|
+
$ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
|
|
174325
|
+
},
|
|
173560
174326
|
{
|
|
173561
174327
|
$ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
|
|
173562
174328
|
}
|
|
@@ -173567,6 +174333,7 @@ var schemaComponents = {
|
|
|
173567
174333
|
CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
|
|
173568
174334
|
CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
|
|
173569
174335
|
PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
|
|
174336
|
+
BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
|
|
173570
174337
|
PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
|
|
173571
174338
|
}
|
|
173572
174339
|
}
|
|
@@ -173641,8 +174408,7 @@ var schemaComponents = {
|
|
|
173641
174408
|
"regimeId",
|
|
173642
174409
|
"affiliateTypeId",
|
|
173643
174410
|
"salaryRangeId",
|
|
173644
|
-
"confirm"
|
|
173645
|
-
"idempotencyKey"
|
|
174411
|
+
"confirm"
|
|
173646
174412
|
],
|
|
173647
174413
|
properties: {
|
|
173648
174414
|
connectionId: {
|
|
@@ -173749,7 +174515,7 @@ var schemaComponents = {
|
|
|
173749
174515
|
minLength: 8,
|
|
173750
174516
|
maxLength: 64,
|
|
173751
174517
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
173752
|
-
description: "
|
|
174518
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
173753
174519
|
type: "string"
|
|
173754
174520
|
},
|
|
173755
174521
|
agentMode: {
|
|
@@ -182747,18 +183513,14 @@ var schemaComponents = {
|
|
|
182747
183513
|
additionalProperties: false,
|
|
182748
183514
|
type: "object",
|
|
182749
183515
|
required: [
|
|
182750
|
-
"idempotencyKey",
|
|
182751
183516
|
"confirm",
|
|
182752
183517
|
"flowId",
|
|
182753
183518
|
"slotId",
|
|
182754
183519
|
"documentType",
|
|
182755
183520
|
"documentNumber",
|
|
182756
|
-
"payerId",
|
|
182757
183521
|
"planId",
|
|
182758
183522
|
"subplanId",
|
|
182759
183523
|
"classification",
|
|
182760
|
-
"billing",
|
|
182761
|
-
"referral",
|
|
182762
183524
|
"cancellation"
|
|
182763
183525
|
],
|
|
182764
183526
|
properties: {
|
|
@@ -182771,7 +183533,7 @@ var schemaComponents = {
|
|
|
182771
183533
|
minLength: 8,
|
|
182772
183534
|
maxLength: 64,
|
|
182773
183535
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
182774
|
-
description: "
|
|
183536
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
182775
183537
|
type: "string"
|
|
182776
183538
|
},
|
|
182777
183539
|
confirm: {
|
|
@@ -182786,7 +183548,7 @@ var schemaComponents = {
|
|
|
182786
183548
|
},
|
|
182787
183549
|
slotId: {
|
|
182788
183550
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
182789
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
183551
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
182790
183552
|
type: "string"
|
|
182791
183553
|
},
|
|
182792
183554
|
documentType: {
|
|
@@ -182801,7 +183563,7 @@ var schemaComponents = {
|
|
|
182801
183563
|
},
|
|
182802
183564
|
payerId: {
|
|
182803
183565
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
182804
|
-
description: "The flow
|
|
183566
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
182805
183567
|
type: "string"
|
|
182806
183568
|
},
|
|
182807
183569
|
planId: {
|
|
@@ -182815,7 +183577,7 @@ var schemaComponents = {
|
|
|
182815
183577
|
type: "string"
|
|
182816
183578
|
},
|
|
182817
183579
|
contractId: {
|
|
182818
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
183580
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
182819
183581
|
anyOf: [
|
|
182820
183582
|
{
|
|
182821
183583
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -182824,19 +183586,15 @@ var schemaComponents = {
|
|
|
182824
183586
|
{
|
|
182825
183587
|
type: "null"
|
|
182826
183588
|
}
|
|
182827
|
-
]
|
|
182828
|
-
default: null
|
|
183589
|
+
]
|
|
182829
183590
|
},
|
|
182830
183591
|
classification: {
|
|
182831
183592
|
additionalProperties: false,
|
|
182832
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
183593
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
182833
183594
|
type: "object",
|
|
182834
183595
|
required: [
|
|
182835
183596
|
"affiliateType",
|
|
182836
|
-
"regime"
|
|
182837
|
-
"programId",
|
|
182838
|
-
"attentionTypeId",
|
|
182839
|
-
"purposeId"
|
|
183597
|
+
"regime"
|
|
182840
183598
|
],
|
|
182841
183599
|
properties: {
|
|
182842
183600
|
affiliateType: {
|
|
@@ -182850,7 +183608,7 @@ var schemaComponents = {
|
|
|
182850
183608
|
type: "string"
|
|
182851
183609
|
},
|
|
182852
183610
|
relationship: {
|
|
182853
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
183611
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
182854
183612
|
anyOf: [
|
|
182855
183613
|
{
|
|
182856
183614
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -182863,7 +183621,7 @@ var schemaComponents = {
|
|
|
182863
183621
|
default: null
|
|
182864
183622
|
},
|
|
182865
183623
|
salaryRange: {
|
|
182866
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
183624
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
182867
183625
|
anyOf: [
|
|
182868
183626
|
{
|
|
182869
183627
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -182876,7 +183634,7 @@ var schemaComponents = {
|
|
|
182876
183634
|
default: null
|
|
182877
183635
|
},
|
|
182878
183636
|
listStatus: {
|
|
182879
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
183637
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
182880
183638
|
anyOf: [
|
|
182881
183639
|
{
|
|
182882
183640
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -182890,24 +183648,25 @@ var schemaComponents = {
|
|
|
182890
183648
|
},
|
|
182891
183649
|
programId: {
|
|
182892
183650
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
182893
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
183651
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
182894
183652
|
type: "string"
|
|
182895
183653
|
},
|
|
182896
183654
|
attentionTypeId: {
|
|
182897
183655
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
182898
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
183656
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
182899
183657
|
type: "string"
|
|
182900
183658
|
},
|
|
182901
183659
|
purposeId: {
|
|
182902
183660
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
182903
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
182904
|
-
type: "string"
|
|
183661
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
183662
|
+
type: "string",
|
|
183663
|
+
default: "10"
|
|
182905
183664
|
}
|
|
182906
183665
|
}
|
|
182907
183666
|
},
|
|
182908
183667
|
billing: {
|
|
182909
183668
|
additionalProperties: false,
|
|
182910
|
-
description: "Billing values of the
|
|
183669
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
182911
183670
|
type: "object",
|
|
182912
183671
|
required: [
|
|
182913
183672
|
"tariff",
|
|
@@ -182924,7 +183683,7 @@ var schemaComponents = {
|
|
|
182924
183683
|
properties: {
|
|
182925
183684
|
tariff: {
|
|
182926
183685
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
182927
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
183686
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
182928
183687
|
type: "string"
|
|
182929
183688
|
},
|
|
182930
183689
|
billPrivately: {
|
|
@@ -183031,6 +183790,7 @@ var schemaComponents = {
|
|
|
183031
183790
|
},
|
|
183032
183791
|
referral: {
|
|
183033
183792
|
additionalProperties: false,
|
|
183793
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
183034
183794
|
type: "object",
|
|
183035
183795
|
required: [],
|
|
183036
183796
|
properties: {
|
|
@@ -183048,7 +183808,7 @@ var schemaComponents = {
|
|
|
183048
183808
|
default: null
|
|
183049
183809
|
},
|
|
183050
183810
|
authorizationNumber: {
|
|
183051
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
183811
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
183052
183812
|
anyOf: [
|
|
183053
183813
|
{
|
|
183054
183814
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -183417,6 +184177,9 @@ var schemaComponents = {
|
|
|
183417
184177
|
{
|
|
183418
184178
|
$ref: "#/components/schemas/OficlinicProviderIdentityMismatchFailure"
|
|
183419
184179
|
},
|
|
184180
|
+
{
|
|
184181
|
+
$ref: "#/components/schemas/OficlinicBookingValueUnresolvedFailure"
|
|
184182
|
+
},
|
|
183420
184183
|
{
|
|
183421
184184
|
$ref: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
|
|
183422
184185
|
}
|
|
@@ -183427,6 +184190,7 @@ var schemaComponents = {
|
|
|
183427
184190
|
CREDENTIALS_REJECTED: "#/components/schemas/CredentialsRejectedFailure",
|
|
183428
184191
|
CONTEXT_NOT_AVAILABLE: "#/components/schemas/OficlinicContextNotAvailableFailure",
|
|
183429
184192
|
PROVIDER_IDENTITY_MISMATCH: "#/components/schemas/OficlinicProviderIdentityMismatchFailure",
|
|
184193
|
+
BOOKING_VALUE_UNRESOLVED: "#/components/schemas/OficlinicBookingValueUnresolvedFailure",
|
|
183430
184194
|
PROGRAM_UNITS_NOT_SUPPORTED: "#/components/schemas/OficlinicProgramUnitsNotSupportedFailure"
|
|
183431
184195
|
}
|
|
183432
184196
|
}
|
|
@@ -188681,6 +189445,7 @@ var schemaComponents = {
|
|
|
188681
189445
|
"reasoningEffort",
|
|
188682
189446
|
"replyChoices",
|
|
188683
189447
|
"sessionCloseAfterMinutes",
|
|
189448
|
+
"teamCloseAfterMinutes",
|
|
188684
189449
|
"temperature",
|
|
188685
189450
|
"toolDiscovery",
|
|
188686
189451
|
"voice"
|
|
@@ -189122,7 +189887,20 @@ var schemaComponents = {
|
|
|
189122
189887
|
anyOf: [
|
|
189123
189888
|
{
|
|
189124
189889
|
type: "integer",
|
|
189125
|
-
description: "Text Agents. Close a conversation after this many minutes without messages. Null:
|
|
189890
|
+
description: "Text Agents. Close a conversation the AI attends after this many minutes without messages. Null: 120 on WhatsApp (1440 for a conversation the business opened: a campaign's message or a machine client's), 30 on web. If the contact writes later, a new conversation opens and the Agent reads what is known of the contact and the summaries of their earlier conversations. A WhatsApp conversation a person of the team handles follows `teamCloseAfterMinutes` instead.",
|
|
189891
|
+
maximum: 10080,
|
|
189892
|
+
minimum: 5
|
|
189893
|
+
},
|
|
189894
|
+
{
|
|
189895
|
+
type: "null"
|
|
189896
|
+
}
|
|
189897
|
+
]
|
|
189898
|
+
},
|
|
189899
|
+
teamCloseAfterMinutes: {
|
|
189900
|
+
anyOf: [
|
|
189901
|
+
{
|
|
189902
|
+
type: "integer",
|
|
189903
|
+
description: "Text Agents on WhatsApp. Close a conversation a person of the team handles (a handoff the AI made, the AI paused for the recipient, or the AI off for the conversation) after this many minutes without messages, whether the team answered or not. One that closes with a handoff nobody of the team answered is `unattended` and stays among the conversations to review. Closing ends the recipient's pause, so their next message opens a new conversation with the AI. Null: 1440.",
|
|
189126
189904
|
maximum: 10080,
|
|
189127
189905
|
minimum: 5
|
|
189128
189906
|
},
|
|
@@ -189620,7 +190398,20 @@ var schemaComponents = {
|
|
|
189620
190398
|
anyOf: [
|
|
189621
190399
|
{
|
|
189622
190400
|
type: "integer",
|
|
189623
|
-
description: "Text Agents. Close a conversation after this many minutes without messages. Null:
|
|
190401
|
+
description: "Text Agents. Close a conversation the AI attends after this many minutes without messages. Null: 120 on WhatsApp (1440 for a conversation the business opened: a campaign's message or a machine client's), 30 on web. If the contact writes later, a new conversation opens and the Agent reads what is known of the contact and the summaries of their earlier conversations. A WhatsApp conversation a person of the team handles follows `teamCloseAfterMinutes` instead.",
|
|
190402
|
+
maximum: 10080,
|
|
190403
|
+
minimum: 5
|
|
190404
|
+
},
|
|
190405
|
+
{
|
|
190406
|
+
type: "null"
|
|
190407
|
+
}
|
|
190408
|
+
]
|
|
190409
|
+
},
|
|
190410
|
+
teamCloseAfterMinutes: {
|
|
190411
|
+
anyOf: [
|
|
190412
|
+
{
|
|
190413
|
+
type: "integer",
|
|
190414
|
+
description: "Text Agents on WhatsApp. Close a conversation a person of the team handles (a handoff the AI made, the AI paused for the recipient, or the AI off for the conversation) after this many minutes without messages, whether the team answered or not. One that closes with a handoff nobody of the team answered is `unattended` and stays among the conversations to review. Closing ends the recipient's pause, so their next message opens a new conversation with the AI. Null: 1440.",
|
|
189624
190415
|
maximum: 10080,
|
|
189625
190416
|
minimum: 5
|
|
189626
190417
|
},
|
|
@@ -190623,6 +191414,169 @@ var schemaComponents = {
|
|
|
190623
191414
|
},
|
|
190624
191415
|
additionalProperties: false
|
|
190625
191416
|
},
|
|
191417
|
+
RaizAssignee: {
|
|
191418
|
+
type: "object",
|
|
191419
|
+
required: [
|
|
191420
|
+
"email",
|
|
191421
|
+
"id",
|
|
191422
|
+
"name",
|
|
191423
|
+
"picture",
|
|
191424
|
+
"self"
|
|
191425
|
+
],
|
|
191426
|
+
properties: {
|
|
191427
|
+
email: {
|
|
191428
|
+
anyOf: [
|
|
191429
|
+
{
|
|
191430
|
+
type: "string"
|
|
191431
|
+
},
|
|
191432
|
+
{
|
|
191433
|
+
type: "null"
|
|
191434
|
+
}
|
|
191435
|
+
]
|
|
191436
|
+
},
|
|
191437
|
+
id: {
|
|
191438
|
+
type: "string",
|
|
191439
|
+
description: "The person's member id, as Arbol Account lists it (`account.members.list`): the value `assigneeId` takes."
|
|
191440
|
+
},
|
|
191441
|
+
name: {
|
|
191442
|
+
anyOf: [
|
|
191443
|
+
{
|
|
191444
|
+
type: "string"
|
|
191445
|
+
},
|
|
191446
|
+
{
|
|
191447
|
+
type: "null"
|
|
191448
|
+
}
|
|
191449
|
+
]
|
|
191450
|
+
},
|
|
191451
|
+
picture: {
|
|
191452
|
+
anyOf: [
|
|
191453
|
+
{
|
|
191454
|
+
type: "string",
|
|
191455
|
+
description: "A link to their picture."
|
|
191456
|
+
},
|
|
191457
|
+
{
|
|
191458
|
+
type: "null"
|
|
191459
|
+
}
|
|
191460
|
+
]
|
|
191461
|
+
},
|
|
191462
|
+
self: {
|
|
191463
|
+
type: "boolean",
|
|
191464
|
+
description: "The person calling."
|
|
191465
|
+
}
|
|
191466
|
+
},
|
|
191467
|
+
additionalProperties: false
|
|
191468
|
+
},
|
|
191469
|
+
RaizAssigneeList: {
|
|
191470
|
+
type: "object",
|
|
191471
|
+
required: [
|
|
191472
|
+
"data",
|
|
191473
|
+
"object"
|
|
191474
|
+
],
|
|
191475
|
+
properties: {
|
|
191476
|
+
data: {
|
|
191477
|
+
type: "array",
|
|
191478
|
+
items: {
|
|
191479
|
+
$ref: "#/components/schemas/RaizAssignee"
|
|
191480
|
+
},
|
|
191481
|
+
description: "By name. An organization's team is a short list: all of it."
|
|
191482
|
+
},
|
|
191483
|
+
object: {
|
|
191484
|
+
type: "string",
|
|
191485
|
+
const: "list"
|
|
191486
|
+
}
|
|
191487
|
+
},
|
|
191488
|
+
additionalProperties: false
|
|
191489
|
+
},
|
|
191490
|
+
RaizAssigneeListResponse: {
|
|
191491
|
+
type: "object",
|
|
191492
|
+
description: "A successful answer.",
|
|
191493
|
+
additionalProperties: false,
|
|
191494
|
+
required: [
|
|
191495
|
+
"success",
|
|
191496
|
+
"data",
|
|
191497
|
+
"error",
|
|
191498
|
+
"metadata"
|
|
191499
|
+
],
|
|
191500
|
+
properties: {
|
|
191501
|
+
success: {
|
|
191502
|
+
type: "boolean",
|
|
191503
|
+
enum: [
|
|
191504
|
+
true
|
|
191505
|
+
]
|
|
191506
|
+
},
|
|
191507
|
+
data: {
|
|
191508
|
+
$ref: "#/components/schemas/RaizAssigneeList"
|
|
191509
|
+
},
|
|
191510
|
+
error: {
|
|
191511
|
+
const: null
|
|
191512
|
+
},
|
|
191513
|
+
metadata: {
|
|
191514
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
191515
|
+
}
|
|
191516
|
+
}
|
|
191517
|
+
},
|
|
191518
|
+
RaizAssigneeUnavailableError: {
|
|
191519
|
+
type: "object",
|
|
191520
|
+
description: "A failed answer.",
|
|
191521
|
+
additionalProperties: false,
|
|
191522
|
+
required: [
|
|
191523
|
+
"success",
|
|
191524
|
+
"data",
|
|
191525
|
+
"error",
|
|
191526
|
+
"metadata"
|
|
191527
|
+
],
|
|
191528
|
+
properties: {
|
|
191529
|
+
success: {
|
|
191530
|
+
type: "boolean",
|
|
191531
|
+
enum: [
|
|
191532
|
+
false
|
|
191533
|
+
]
|
|
191534
|
+
},
|
|
191535
|
+
data: {
|
|
191536
|
+
const: null
|
|
191537
|
+
},
|
|
191538
|
+
error: {
|
|
191539
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
191540
|
+
},
|
|
191541
|
+
metadata: {
|
|
191542
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
191543
|
+
}
|
|
191544
|
+
}
|
|
191545
|
+
},
|
|
191546
|
+
RaizAssigneeUnavailableFailure: {
|
|
191547
|
+
type: "object",
|
|
191548
|
+
description: "That person cannot take conversations in this organization. `listAssignees` names who can.",
|
|
191549
|
+
additionalProperties: false,
|
|
191550
|
+
required: [
|
|
191551
|
+
"code",
|
|
191552
|
+
"message",
|
|
191553
|
+
"retryable",
|
|
191554
|
+
"data"
|
|
191555
|
+
],
|
|
191556
|
+
properties: {
|
|
191557
|
+
code: {
|
|
191558
|
+
type: "string",
|
|
191559
|
+
enum: [
|
|
191560
|
+
"ASSIGNEE_UNAVAILABLE"
|
|
191561
|
+
],
|
|
191562
|
+
description: "The failure code, stable across releases."
|
|
191563
|
+
},
|
|
191564
|
+
message: {
|
|
191565
|
+
type: "string",
|
|
191566
|
+
description: "What went wrong, for people; it never contains input values."
|
|
191567
|
+
},
|
|
191568
|
+
retryable: {
|
|
191569
|
+
type: "boolean",
|
|
191570
|
+
enum: [
|
|
191571
|
+
false
|
|
191572
|
+
],
|
|
191573
|
+
description: "Whether repeating the same request may succeed."
|
|
191574
|
+
},
|
|
191575
|
+
data: {
|
|
191576
|
+
$ref: "#/components/schemas/Empty"
|
|
191577
|
+
}
|
|
191578
|
+
}
|
|
191579
|
+
},
|
|
190626
191580
|
RaizBulletin: {
|
|
190627
191581
|
type: "object",
|
|
190628
191582
|
required: [
|
|
@@ -194992,6 +195946,9 @@ var schemaComponents = {
|
|
|
194992
195946
|
"aiPaused",
|
|
194993
195947
|
"aiPausedBy",
|
|
194994
195948
|
"analyzedAt",
|
|
195949
|
+
"assignedAt",
|
|
195950
|
+
"assignedBy",
|
|
195951
|
+
"assigneeId",
|
|
194995
195952
|
"campaignId",
|
|
194996
195953
|
"campaignRecipientId",
|
|
194997
195954
|
"channelAddress",
|
|
@@ -195027,8 +195984,11 @@ var schemaComponents = {
|
|
|
195027
195984
|
"summaryAuthor",
|
|
195028
195985
|
"title",
|
|
195029
195986
|
"titleAuthor",
|
|
195987
|
+
"unattended",
|
|
195030
195988
|
"updatedAt",
|
|
195031
195989
|
"version",
|
|
195990
|
+
"waitingOn",
|
|
195991
|
+
"waitingSinceAt",
|
|
195032
195992
|
"workers",
|
|
195033
195993
|
"toolCalls",
|
|
195034
195994
|
"analysisErrorCode",
|
|
@@ -195109,6 +196069,40 @@ var schemaComponents = {
|
|
|
195109
196069
|
}
|
|
195110
196070
|
]
|
|
195111
196071
|
},
|
|
196072
|
+
assignedAt: {
|
|
196073
|
+
anyOf: [
|
|
196074
|
+
{
|
|
196075
|
+
type: "string",
|
|
196076
|
+
description: "An instant in RFC 3339 format, in UTC.",
|
|
196077
|
+
format: "date-time"
|
|
196078
|
+
},
|
|
196079
|
+
{
|
|
196080
|
+
type: "null"
|
|
196081
|
+
}
|
|
196082
|
+
]
|
|
196083
|
+
},
|
|
196084
|
+
assignedBy: {
|
|
196085
|
+
anyOf: [
|
|
196086
|
+
{
|
|
196087
|
+
type: "string",
|
|
196088
|
+
description: "Who gave the case to its owner: a member id, the owner's own when they took it."
|
|
196089
|
+
},
|
|
196090
|
+
{
|
|
196091
|
+
type: "null"
|
|
196092
|
+
}
|
|
196093
|
+
]
|
|
196094
|
+
},
|
|
196095
|
+
assigneeId: {
|
|
196096
|
+
anyOf: [
|
|
196097
|
+
{
|
|
196098
|
+
type: "string",
|
|
196099
|
+
description: "The case's owner: the person of the organization who took the conversation or was given it, by their member id as Arbol Account lists it (`account.members.list`). Null while nobody has it. It stays when the AI resumes, so a later handoff of the same conversation returns to the same person."
|
|
196100
|
+
},
|
|
196101
|
+
{
|
|
196102
|
+
type: "null"
|
|
196103
|
+
}
|
|
196104
|
+
]
|
|
196105
|
+
},
|
|
195112
196106
|
campaignId: {
|
|
195113
196107
|
anyOf: [
|
|
195114
196108
|
{
|
|
@@ -195596,6 +196590,10 @@ var schemaComponents = {
|
|
|
195596
196590
|
}
|
|
195597
196591
|
]
|
|
195598
196592
|
},
|
|
196593
|
+
unattended: {
|
|
196594
|
+
type: "boolean",
|
|
196595
|
+
description: "It closed for inactivity with a handoff nobody of the team answered. Such a conversation is also one to review (`toReview`)."
|
|
196596
|
+
},
|
|
195599
196597
|
updatedAt: {
|
|
195600
196598
|
type: "string",
|
|
195601
196599
|
description: "An instant in RFC 3339 format, in UTC.",
|
|
@@ -195605,6 +196603,42 @@ var schemaComponents = {
|
|
|
195605
196603
|
type: "integer",
|
|
195606
196604
|
minimum: 1
|
|
195607
196605
|
},
|
|
196606
|
+
waitingOn: {
|
|
196607
|
+
anyOf: [
|
|
196608
|
+
{
|
|
196609
|
+
anyOf: [
|
|
196610
|
+
{
|
|
196611
|
+
type: "string",
|
|
196612
|
+
const: "ai"
|
|
196613
|
+
},
|
|
196614
|
+
{
|
|
196615
|
+
type: "string",
|
|
196616
|
+
const: "team"
|
|
196617
|
+
},
|
|
196618
|
+
{
|
|
196619
|
+
type: "string",
|
|
196620
|
+
const: "contact"
|
|
196621
|
+
}
|
|
196622
|
+
],
|
|
196623
|
+
description: "Who an open conversation waits for. `ai`: the AI attends it. While a person of the team handles it (a pending handoff, the AI paused for the recipient or off for the conversation): `team` when the contact wrote after the last answer or nobody of the team answered the handoff, `contact` when a person answered last. Null once closed."
|
|
196624
|
+
},
|
|
196625
|
+
{
|
|
196626
|
+
type: "null"
|
|
196627
|
+
}
|
|
196628
|
+
]
|
|
196629
|
+
},
|
|
196630
|
+
waitingSinceAt: {
|
|
196631
|
+
anyOf: [
|
|
196632
|
+
{
|
|
196633
|
+
type: "string",
|
|
196634
|
+
description: "Since when it waits for the team or the contact (RFC 3339): the first message nobody answered, or the last answer. Null while the AI attends it and once closed.",
|
|
196635
|
+
format: "date-time"
|
|
196636
|
+
},
|
|
196637
|
+
{
|
|
196638
|
+
type: "null"
|
|
196639
|
+
}
|
|
196640
|
+
]
|
|
196641
|
+
},
|
|
195608
196642
|
workers: {
|
|
195609
196643
|
type: "array",
|
|
195610
196644
|
items: {
|
|
@@ -195736,6 +196770,13 @@ var schemaComponents = {
|
|
|
195736
196770
|
$ref: "#/components/schemas/RaizConversationDiagnostics",
|
|
195737
196771
|
description: "Staff-only, live read of a call's provider termination evidence. Never includes provider identifiers, credentials, transcript content or free-form error text. Unavailable evidence is explicit and does not change the stored conversation."
|
|
195738
196772
|
},
|
|
196773
|
+
history: {
|
|
196774
|
+
type: "array",
|
|
196775
|
+
items: {
|
|
196776
|
+
$ref: "#/components/schemas/RaizConversationEvent"
|
|
196777
|
+
},
|
|
196778
|
+
description: "The case's history, oldest first: the handoff, who took it or was given it, the return to the AI, a person's pause or resume, and the closing. Present only when expanded. Who answered the contact is in `workers` and in each message's `memberId`."
|
|
196779
|
+
},
|
|
195739
196780
|
messages: {
|
|
195740
196781
|
$ref: "#/components/schemas/RaizMessagePage",
|
|
195741
196782
|
description: "The transcript, oldest first, with tool calls and quoted replies. Present only when expanded."
|
|
@@ -196025,6 +197066,128 @@ var schemaComponents = {
|
|
|
196025
197066
|
},
|
|
196026
197067
|
additionalProperties: false
|
|
196027
197068
|
},
|
|
197069
|
+
RaizConversationEvent: {
|
|
197070
|
+
type: "object",
|
|
197071
|
+
required: [
|
|
197072
|
+
"at",
|
|
197073
|
+
"author",
|
|
197074
|
+
"authorId",
|
|
197075
|
+
"kind"
|
|
197076
|
+
],
|
|
197077
|
+
properties: {
|
|
197078
|
+
assigneeId: {
|
|
197079
|
+
type: "string",
|
|
197080
|
+
description: "For `assigned`: the member who has the case from then on."
|
|
197081
|
+
},
|
|
197082
|
+
at: {
|
|
197083
|
+
type: "string",
|
|
197084
|
+
description: "An instant in RFC 3339 format, in UTC.",
|
|
197085
|
+
format: "date-time"
|
|
197086
|
+
},
|
|
197087
|
+
author: {
|
|
197088
|
+
anyOf: [
|
|
197089
|
+
{
|
|
197090
|
+
type: "string",
|
|
197091
|
+
const: "person"
|
|
197092
|
+
},
|
|
197093
|
+
{
|
|
197094
|
+
type: "string",
|
|
197095
|
+
const: "ai"
|
|
197096
|
+
},
|
|
197097
|
+
{
|
|
197098
|
+
type: "string",
|
|
197099
|
+
const: "system"
|
|
197100
|
+
},
|
|
197101
|
+
{
|
|
197102
|
+
type: "string",
|
|
197103
|
+
const: "import"
|
|
197104
|
+
},
|
|
197105
|
+
{
|
|
197106
|
+
type: "string",
|
|
197107
|
+
const: "provider"
|
|
197108
|
+
}
|
|
197109
|
+
],
|
|
197110
|
+
description: "Who did it: a `person` of the organization, the `ai`, or the `system` (a rule, such as the inactivity close)."
|
|
197111
|
+
},
|
|
197112
|
+
authorId: {
|
|
197113
|
+
anyOf: [
|
|
197114
|
+
{
|
|
197115
|
+
type: "string",
|
|
197116
|
+
description: "The member id of the person, or the Agent's id; null for the system."
|
|
197117
|
+
},
|
|
197118
|
+
{
|
|
197119
|
+
type: "null"
|
|
197120
|
+
}
|
|
197121
|
+
]
|
|
197122
|
+
},
|
|
197123
|
+
automatic: {
|
|
197124
|
+
type: "boolean",
|
|
197125
|
+
description: "For `returned_to_ai`: nobody of the team asked for it; an unanswered technical handoff came back by itself."
|
|
197126
|
+
},
|
|
197127
|
+
closeReason: {
|
|
197128
|
+
anyOf: [
|
|
197129
|
+
{
|
|
197130
|
+
type: "string"
|
|
197131
|
+
},
|
|
197132
|
+
{
|
|
197133
|
+
type: "null"
|
|
197134
|
+
}
|
|
197135
|
+
]
|
|
197136
|
+
},
|
|
197137
|
+
kind: {
|
|
197138
|
+
anyOf: [
|
|
197139
|
+
{
|
|
197140
|
+
type: "string",
|
|
197141
|
+
const: "handed_off"
|
|
197142
|
+
},
|
|
197143
|
+
{
|
|
197144
|
+
type: "string",
|
|
197145
|
+
const: "assigned"
|
|
197146
|
+
},
|
|
197147
|
+
{
|
|
197148
|
+
type: "string",
|
|
197149
|
+
const: "unassigned"
|
|
197150
|
+
},
|
|
197151
|
+
{
|
|
197152
|
+
type: "string",
|
|
197153
|
+
const: "returned_to_ai"
|
|
197154
|
+
},
|
|
197155
|
+
{
|
|
197156
|
+
type: "string",
|
|
197157
|
+
const: "ai_paused"
|
|
197158
|
+
},
|
|
197159
|
+
{
|
|
197160
|
+
type: "string",
|
|
197161
|
+
const: "ai_resumed"
|
|
197162
|
+
},
|
|
197163
|
+
{
|
|
197164
|
+
type: "string",
|
|
197165
|
+
const: "closed"
|
|
197166
|
+
}
|
|
197167
|
+
],
|
|
197168
|
+
description: "`handed_off`: the AI passed the conversation to the team (`messageId` is its handoff message). `assigned`: a person took the case or was given it (`authorId` is who decided, `assigneeId` who has it, `previousAssigneeId` who had it). `unassigned`: it was left with nobody. `returned_to_ai`: the team gave it back to the AI. `ai_paused`, `ai_resumed`: a person paused or resumed the AI for the recipient. `closed`: it closed, with `closeReason`."
|
|
197169
|
+
},
|
|
197170
|
+
messageId: {
|
|
197171
|
+
type: "string",
|
|
197172
|
+
description: "Message id.",
|
|
197173
|
+
examples: [
|
|
197174
|
+
"msg_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
197175
|
+
],
|
|
197176
|
+
pattern: "^msg_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
197177
|
+
},
|
|
197178
|
+
previousAssigneeId: {
|
|
197179
|
+
anyOf: [
|
|
197180
|
+
{
|
|
197181
|
+
type: "string"
|
|
197182
|
+
},
|
|
197183
|
+
{
|
|
197184
|
+
type: "null"
|
|
197185
|
+
}
|
|
197186
|
+
]
|
|
197187
|
+
}
|
|
197188
|
+
},
|
|
197189
|
+
additionalProperties: false
|
|
197190
|
+
},
|
|
196028
197191
|
RaizConversationGroup: {
|
|
196029
197192
|
type: "object",
|
|
196030
197193
|
required: [
|
|
@@ -196583,6 +197746,33 @@ var schemaComponents = {
|
|
|
196583
197746
|
],
|
|
196584
197747
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
196585
197748
|
},
|
|
197749
|
+
waitingOn: {
|
|
197750
|
+
anyOf: [
|
|
197751
|
+
{
|
|
197752
|
+
type: "string",
|
|
197753
|
+
const: "ai"
|
|
197754
|
+
},
|
|
197755
|
+
{
|
|
197756
|
+
type: "string",
|
|
197757
|
+
const: "team"
|
|
197758
|
+
},
|
|
197759
|
+
{
|
|
197760
|
+
type: "string",
|
|
197761
|
+
const: "contact"
|
|
197762
|
+
}
|
|
197763
|
+
],
|
|
197764
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
197765
|
+
},
|
|
197766
|
+
assignee: {
|
|
197767
|
+
type: "string",
|
|
197768
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
197769
|
+
maxLength: 255,
|
|
197770
|
+
minLength: 1
|
|
197771
|
+
},
|
|
197772
|
+
unattended: {
|
|
197773
|
+
type: "boolean",
|
|
197774
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
197775
|
+
},
|
|
196586
197776
|
origin: {
|
|
196587
197777
|
type: "string",
|
|
196588
197778
|
description: "Comma-separated origins.",
|
|
@@ -198951,6 +200141,9 @@ var schemaComponents = {
|
|
|
198951
200141
|
{
|
|
198952
200142
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
198953
200143
|
},
|
|
200144
|
+
{
|
|
200145
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
200146
|
+
},
|
|
198954
200147
|
{
|
|
198955
200148
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
198956
200149
|
},
|
|
@@ -198968,6 +200161,7 @@ var schemaComponents = {
|
|
|
198968
200161
|
propertyName: "code",
|
|
198969
200162
|
mapping: {
|
|
198970
200163
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
200164
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
198971
200165
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
198972
200166
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
198973
200167
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -199058,6 +200252,9 @@ var schemaComponents = {
|
|
|
199058
200252
|
},
|
|
199059
200253
|
RaizCreateChannelUnprocessableContentFailure: {
|
|
199060
200254
|
oneOf: [
|
|
200255
|
+
{
|
|
200256
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
200257
|
+
},
|
|
199061
200258
|
{
|
|
199062
200259
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
199063
200260
|
},
|
|
@@ -199170,6 +200367,7 @@ var schemaComponents = {
|
|
|
199170
200367
|
discriminator: {
|
|
199171
200368
|
propertyName: "code",
|
|
199172
200369
|
mapping: {
|
|
200370
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
199173
200371
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
199174
200372
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
199175
200373
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -200433,6 +201631,9 @@ var schemaComponents = {
|
|
|
200433
201631
|
{
|
|
200434
201632
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
200435
201633
|
},
|
|
201634
|
+
{
|
|
201635
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
201636
|
+
},
|
|
200436
201637
|
{
|
|
200437
201638
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
200438
201639
|
},
|
|
@@ -200450,6 +201651,7 @@ var schemaComponents = {
|
|
|
200450
201651
|
propertyName: "code",
|
|
200451
201652
|
mapping: {
|
|
200452
201653
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
201654
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
200453
201655
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
200454
201656
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
200455
201657
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -200540,6 +201742,9 @@ var schemaComponents = {
|
|
|
200540
201742
|
},
|
|
200541
201743
|
RaizCreateConversationUnprocessableContentFailure: {
|
|
200542
201744
|
oneOf: [
|
|
201745
|
+
{
|
|
201746
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
201747
|
+
},
|
|
200543
201748
|
{
|
|
200544
201749
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
200545
201750
|
},
|
|
@@ -200652,6 +201857,7 @@ var schemaComponents = {
|
|
|
200652
201857
|
discriminator: {
|
|
200653
201858
|
propertyName: "code",
|
|
200654
201859
|
mapping: {
|
|
201860
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
200655
201861
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
200656
201862
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
200657
201863
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -204277,6 +205483,9 @@ var schemaComponents = {
|
|
|
204277
205483
|
{
|
|
204278
205484
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
204279
205485
|
},
|
|
205486
|
+
{
|
|
205487
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
205488
|
+
},
|
|
204280
205489
|
{
|
|
204281
205490
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
204282
205491
|
},
|
|
@@ -204294,6 +205503,7 @@ var schemaComponents = {
|
|
|
204294
205503
|
propertyName: "code",
|
|
204295
205504
|
mapping: {
|
|
204296
205505
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
205506
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
204297
205507
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
204298
205508
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
204299
205509
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -204384,6 +205594,9 @@ var schemaComponents = {
|
|
|
204384
205594
|
},
|
|
204385
205595
|
RaizDeleteChannelUnprocessableContentFailure: {
|
|
204386
205596
|
oneOf: [
|
|
205597
|
+
{
|
|
205598
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
205599
|
+
},
|
|
204387
205600
|
{
|
|
204388
205601
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
204389
205602
|
},
|
|
@@ -204496,6 +205709,7 @@ var schemaComponents = {
|
|
|
204496
205709
|
discriminator: {
|
|
204497
205710
|
propertyName: "code",
|
|
204498
205711
|
mapping: {
|
|
205712
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
204499
205713
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
204500
205714
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
204501
205715
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -208120,6 +209334,51 @@ var schemaComponents = {
|
|
|
208120
209334
|
}
|
|
208121
209335
|
}
|
|
208122
209336
|
},
|
|
209337
|
+
RaizListAssigneesServiceUnavailableError: {
|
|
209338
|
+
type: "object",
|
|
209339
|
+
description: "A failed answer.",
|
|
209340
|
+
additionalProperties: false,
|
|
209341
|
+
required: [
|
|
209342
|
+
"success",
|
|
209343
|
+
"data",
|
|
209344
|
+
"error",
|
|
209345
|
+
"metadata"
|
|
209346
|
+
],
|
|
209347
|
+
properties: {
|
|
209348
|
+
success: {
|
|
209349
|
+
type: "boolean",
|
|
209350
|
+
enum: [
|
|
209351
|
+
false
|
|
209352
|
+
]
|
|
209353
|
+
},
|
|
209354
|
+
data: {
|
|
209355
|
+
const: null
|
|
209356
|
+
},
|
|
209357
|
+
error: {
|
|
209358
|
+
$ref: "#/components/schemas/RaizListAssigneesServiceUnavailableFailure"
|
|
209359
|
+
},
|
|
209360
|
+
metadata: {
|
|
209361
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
209362
|
+
}
|
|
209363
|
+
}
|
|
209364
|
+
},
|
|
209365
|
+
RaizListAssigneesServiceUnavailableFailure: {
|
|
209366
|
+
oneOf: [
|
|
209367
|
+
{
|
|
209368
|
+
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
209369
|
+
},
|
|
209370
|
+
{
|
|
209371
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
209372
|
+
}
|
|
209373
|
+
],
|
|
209374
|
+
discriminator: {
|
|
209375
|
+
propertyName: "code",
|
|
209376
|
+
mapping: {
|
|
209377
|
+
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
209378
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
209379
|
+
}
|
|
209380
|
+
}
|
|
209381
|
+
},
|
|
208123
209382
|
RaizListBulletinsBadRequestError: {
|
|
208124
209383
|
type: "object",
|
|
208125
209384
|
description: "A failed answer.",
|
|
@@ -210943,6 +212202,7 @@ var schemaComponents = {
|
|
|
210943
212202
|
"escalations",
|
|
210944
212203
|
"failedOutcomes",
|
|
210945
212204
|
"failures",
|
|
212205
|
+
"firstReplyMinutes",
|
|
210946
212206
|
"frequency",
|
|
210947
212207
|
"phones",
|
|
210948
212208
|
"recipients"
|
|
@@ -210960,6 +212220,12 @@ var schemaComponents = {
|
|
|
210960
212220
|
type: "boolean",
|
|
210961
212221
|
description: "Email the recipients when the AI could not answer: a WhatsApp reply that ended with the fallback message, or a call that failed or in which one of the Agent's functions failed (default true)."
|
|
210962
212222
|
},
|
|
212223
|
+
firstReplyMinutes: {
|
|
212224
|
+
type: "integer",
|
|
212225
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
212226
|
+
maximum: 1440,
|
|
212227
|
+
minimum: 0
|
|
212228
|
+
},
|
|
210963
212229
|
frequency: {
|
|
210964
212230
|
anyOf: [
|
|
210965
212231
|
{
|
|
@@ -212292,6 +213558,142 @@ var schemaComponents = {
|
|
|
212292
213558
|
},
|
|
212293
213559
|
additionalProperties: false
|
|
212294
213560
|
},
|
|
213561
|
+
{
|
|
213562
|
+
type: "object",
|
|
213563
|
+
required: [
|
|
213564
|
+
"from",
|
|
213565
|
+
"hasMore",
|
|
213566
|
+
"to",
|
|
213567
|
+
"name",
|
|
213568
|
+
"rows"
|
|
213569
|
+
],
|
|
213570
|
+
properties: {
|
|
213571
|
+
from: {
|
|
213572
|
+
type: "string",
|
|
213573
|
+
description: "A calendar day in the organization's time zone.",
|
|
213574
|
+
format: "date"
|
|
213575
|
+
},
|
|
213576
|
+
hasMore: {
|
|
213577
|
+
type: "boolean",
|
|
213578
|
+
description: "More than 1000 rows matched: narrow the range or the filters."
|
|
213579
|
+
},
|
|
213580
|
+
to: {
|
|
213581
|
+
type: "string",
|
|
213582
|
+
description: "A calendar day in the organization's time zone.",
|
|
213583
|
+
format: "date"
|
|
213584
|
+
},
|
|
213585
|
+
name: {
|
|
213586
|
+
type: "string",
|
|
213587
|
+
const: "handoffs_daily"
|
|
213588
|
+
},
|
|
213589
|
+
rows: {
|
|
213590
|
+
type: "array",
|
|
213591
|
+
items: {
|
|
213592
|
+
type: "object",
|
|
213593
|
+
required: [
|
|
213594
|
+
"agentId",
|
|
213595
|
+
"agentName",
|
|
213596
|
+
"answeredCount",
|
|
213597
|
+
"answeredInTimeCount",
|
|
213598
|
+
"avgFirstReplySeconds",
|
|
213599
|
+
"day",
|
|
213600
|
+
"handoffCount",
|
|
213601
|
+
"memberId",
|
|
213602
|
+
"returnedCount",
|
|
213603
|
+
"unattendedCount",
|
|
213604
|
+
"waitingCount"
|
|
213605
|
+
],
|
|
213606
|
+
properties: {
|
|
213607
|
+
agentId: {
|
|
213608
|
+
anyOf: [
|
|
213609
|
+
{
|
|
213610
|
+
type: "string",
|
|
213611
|
+
description: "Agent id.",
|
|
213612
|
+
examples: [
|
|
213613
|
+
"agt_01m45h8q2rf3t9w6y7z0b1c2d3"
|
|
213614
|
+
],
|
|
213615
|
+
pattern: "^agt_(?:[0-7][0-9a-hjkmnp-tv-z]{25}|(?:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}|[a-f0-9]{32}))$"
|
|
213616
|
+
},
|
|
213617
|
+
{
|
|
213618
|
+
type: "null"
|
|
213619
|
+
}
|
|
213620
|
+
]
|
|
213621
|
+
},
|
|
213622
|
+
agentName: {
|
|
213623
|
+
anyOf: [
|
|
213624
|
+
{
|
|
213625
|
+
type: "string"
|
|
213626
|
+
},
|
|
213627
|
+
{
|
|
213628
|
+
type: "null"
|
|
213629
|
+
}
|
|
213630
|
+
]
|
|
213631
|
+
},
|
|
213632
|
+
answeredCount: {
|
|
213633
|
+
type: "integer",
|
|
213634
|
+
description: "Handoffs a person of the team answered.",
|
|
213635
|
+
minimum: 0
|
|
213636
|
+
},
|
|
213637
|
+
answeredInTimeCount: {
|
|
213638
|
+
type: "integer",
|
|
213639
|
+
description: "Of those, the ones answered within the organization's first-reply time (`settings.notifications.firstReplyMinutes`, as it is set now).",
|
|
213640
|
+
minimum: 0
|
|
213641
|
+
},
|
|
213642
|
+
avgFirstReplySeconds: {
|
|
213643
|
+
anyOf: [
|
|
213644
|
+
{
|
|
213645
|
+
type: "number",
|
|
213646
|
+
description: "Average seconds from the handoff to the first message of a person of the team; null when none was answered."
|
|
213647
|
+
},
|
|
213648
|
+
{
|
|
213649
|
+
type: "null"
|
|
213650
|
+
}
|
|
213651
|
+
]
|
|
213652
|
+
},
|
|
213653
|
+
day: {
|
|
213654
|
+
type: "string",
|
|
213655
|
+
description: "A calendar day in the organization's time zone.",
|
|
213656
|
+
format: "date"
|
|
213657
|
+
},
|
|
213658
|
+
handoffCount: {
|
|
213659
|
+
type: "integer",
|
|
213660
|
+
description: "Conversations the AI handed to the team that day, each once, by the handoff it keeps (its last).",
|
|
213661
|
+
minimum: 0
|
|
213662
|
+
},
|
|
213663
|
+
memberId: {
|
|
213664
|
+
anyOf: [
|
|
213665
|
+
{
|
|
213666
|
+
type: "string",
|
|
213667
|
+
description: "Who answered first, else the case's owner: a member id, as Arbol Account lists it. Null when nobody is named: nobody answered an unassigned case, or the answer came from the WhatsApp Business app."
|
|
213668
|
+
},
|
|
213669
|
+
{
|
|
213670
|
+
type: "null"
|
|
213671
|
+
}
|
|
213672
|
+
]
|
|
213673
|
+
},
|
|
213674
|
+
returnedCount: {
|
|
213675
|
+
type: "integer",
|
|
213676
|
+
description: "Handoffs the team gave back to the AI.",
|
|
213677
|
+
minimum: 0
|
|
213678
|
+
},
|
|
213679
|
+
unattendedCount: {
|
|
213680
|
+
type: "integer",
|
|
213681
|
+
description: "Handoffs that closed with nobody of the team answering and without going back to the AI.",
|
|
213682
|
+
minimum: 0
|
|
213683
|
+
},
|
|
213684
|
+
waitingCount: {
|
|
213685
|
+
type: "integer",
|
|
213686
|
+
description: "Handoffs still open that nobody of the team answered.",
|
|
213687
|
+
minimum: 0
|
|
213688
|
+
}
|
|
213689
|
+
},
|
|
213690
|
+
additionalProperties: false
|
|
213691
|
+
},
|
|
213692
|
+
maxItems: 1000
|
|
213693
|
+
}
|
|
213694
|
+
},
|
|
213695
|
+
additionalProperties: false
|
|
213696
|
+
},
|
|
212295
213697
|
{
|
|
212296
213698
|
type: "object",
|
|
212297
213699
|
required: [
|
|
@@ -215015,6 +216417,40 @@ var schemaComponents = {
|
|
|
215015
216417
|
}
|
|
215016
216418
|
}
|
|
215017
216419
|
},
|
|
216420
|
+
RaizTeamUnavailableFailure: {
|
|
216421
|
+
type: "object",
|
|
216422
|
+
description: "The organization's team cannot be read right now. Try again shortly.",
|
|
216423
|
+
additionalProperties: false,
|
|
216424
|
+
required: [
|
|
216425
|
+
"code",
|
|
216426
|
+
"message",
|
|
216427
|
+
"retryable",
|
|
216428
|
+
"data"
|
|
216429
|
+
],
|
|
216430
|
+
properties: {
|
|
216431
|
+
code: {
|
|
216432
|
+
type: "string",
|
|
216433
|
+
enum: [
|
|
216434
|
+
"TEAM_UNAVAILABLE"
|
|
216435
|
+
],
|
|
216436
|
+
description: "The failure code, stable across releases."
|
|
216437
|
+
},
|
|
216438
|
+
message: {
|
|
216439
|
+
type: "string",
|
|
216440
|
+
description: "What went wrong, for people; it never contains input values."
|
|
216441
|
+
},
|
|
216442
|
+
retryable: {
|
|
216443
|
+
type: "boolean",
|
|
216444
|
+
enum: [
|
|
216445
|
+
true
|
|
216446
|
+
],
|
|
216447
|
+
description: "Whether repeating the same request may succeed."
|
|
216448
|
+
},
|
|
216449
|
+
data: {
|
|
216450
|
+
$ref: "#/components/schemas/Empty"
|
|
216451
|
+
}
|
|
216452
|
+
}
|
|
216453
|
+
},
|
|
215018
216454
|
RaizTemplate: {
|
|
215019
216455
|
type: "object",
|
|
215020
216456
|
required: [
|
|
@@ -217162,6 +218598,9 @@ var schemaComponents = {
|
|
|
217162
218598
|
{
|
|
217163
218599
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
217164
218600
|
},
|
|
218601
|
+
{
|
|
218602
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
218603
|
+
},
|
|
217165
218604
|
{
|
|
217166
218605
|
$ref: "#/components/schemas/RaizCampaignHeaderNotStoredFailure"
|
|
217167
218606
|
},
|
|
@@ -217179,6 +218618,7 @@ var schemaComponents = {
|
|
|
217179
218618
|
propertyName: "code",
|
|
217180
218619
|
mapping: {
|
|
217181
218620
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
218621
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
217182
218622
|
CAMPAIGN_HEADER_NOT_STORED: "#/components/schemas/RaizCampaignHeaderNotStoredFailure",
|
|
217183
218623
|
VOICE_UNAVAILABLE: "#/components/schemas/RaizVoiceUnavailableFailure",
|
|
217184
218624
|
FEEDBACK_PROPOSAL_UNAVAILABLE: "#/components/schemas/RaizFeedbackProposalUnavailableFailure",
|
|
@@ -217269,6 +218709,9 @@ var schemaComponents = {
|
|
|
217269
218709
|
},
|
|
217270
218710
|
RaizUpdateChannelUnprocessableContentFailure: {
|
|
217271
218711
|
oneOf: [
|
|
218712
|
+
{
|
|
218713
|
+
$ref: "#/components/schemas/RaizAssigneeUnavailableFailure"
|
|
218714
|
+
},
|
|
217272
218715
|
{
|
|
217273
218716
|
$ref: "#/components/schemas/RaizContactUnreachableFailure"
|
|
217274
218717
|
},
|
|
@@ -217381,6 +218824,7 @@ var schemaComponents = {
|
|
|
217381
218824
|
discriminator: {
|
|
217382
218825
|
propertyName: "code",
|
|
217383
218826
|
mapping: {
|
|
218827
|
+
ASSIGNEE_UNAVAILABLE: "#/components/schemas/RaizAssigneeUnavailableFailure",
|
|
217384
218828
|
CONTACT_UNREACHABLE: "#/components/schemas/RaizContactUnreachableFailure",
|
|
217385
218829
|
DAILY_REPORT_RECIPIENTS_MISSING: "#/components/schemas/RaizDailyReportRecipientsMissingFailure",
|
|
217386
218830
|
DEFINITION_OPTIONS_INVALID: "#/components/schemas/RaizDefinitionOptionsInvalidFailure",
|
|
@@ -217698,6 +219142,19 @@ var schemaComponents = {
|
|
|
217698
219142
|
type: "boolean",
|
|
217699
219143
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
217700
219144
|
},
|
|
219145
|
+
assigneeId: {
|
|
219146
|
+
anyOf: [
|
|
219147
|
+
{
|
|
219148
|
+
type: "string",
|
|
219149
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
219150
|
+
maxLength: 255,
|
|
219151
|
+
minLength: 1
|
|
219152
|
+
},
|
|
219153
|
+
{
|
|
219154
|
+
type: "null"
|
|
219155
|
+
}
|
|
219156
|
+
]
|
|
219157
|
+
},
|
|
217701
219158
|
contactId: {
|
|
217702
219159
|
anyOf: [
|
|
217703
219160
|
{
|
|
@@ -217871,6 +219328,9 @@ var schemaComponents = {
|
|
|
217871
219328
|
{
|
|
217872
219329
|
$ref: "#/components/schemas/UpstreamUnavailableFailure"
|
|
217873
219330
|
},
|
|
219331
|
+
{
|
|
219332
|
+
$ref: "#/components/schemas/RaizTeamUnavailableFailure"
|
|
219333
|
+
},
|
|
217874
219334
|
{
|
|
217875
219335
|
$ref: "#/components/schemas/RaizIntegrationsUnavailableFailure"
|
|
217876
219336
|
}
|
|
@@ -217879,6 +219339,7 @@ var schemaComponents = {
|
|
|
217879
219339
|
propertyName: "code",
|
|
217880
219340
|
mapping: {
|
|
217881
219341
|
UPSTREAM_UNAVAILABLE: "#/components/schemas/UpstreamUnavailableFailure",
|
|
219342
|
+
TEAM_UNAVAILABLE: "#/components/schemas/RaizTeamUnavailableFailure",
|
|
217882
219343
|
INTEGRATIONS_UNAVAILABLE: "#/components/schemas/RaizIntegrationsUnavailableFailure"
|
|
217883
219344
|
}
|
|
217884
219345
|
}
|
|
@@ -218859,6 +220320,19 @@ var schemaComponents = {
|
|
|
218859
220320
|
}
|
|
218860
220321
|
]
|
|
218861
220322
|
},
|
|
220323
|
+
firstReplyMinutes: {
|
|
220324
|
+
anyOf: [
|
|
220325
|
+
{
|
|
220326
|
+
type: "integer",
|
|
220327
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
220328
|
+
maximum: 1440,
|
|
220329
|
+
minimum: 0
|
|
220330
|
+
},
|
|
220331
|
+
{
|
|
220332
|
+
type: "null"
|
|
220333
|
+
}
|
|
220334
|
+
]
|
|
220335
|
+
},
|
|
218862
220336
|
frequency: {
|
|
218863
220337
|
anyOf: [
|
|
218864
220338
|
{
|
|
@@ -226255,6 +227729,45 @@ var schemaComponents = {
|
|
|
226255
227729
|
}
|
|
226256
227730
|
}
|
|
226257
227731
|
},
|
|
227732
|
+
SanitasLookupAffiliationResult: {
|
|
227733
|
+
anyOf: [
|
|
227734
|
+
{
|
|
227735
|
+
$ref: "#/components/schemas/SanitasSanitasAffiliation"
|
|
227736
|
+
},
|
|
227737
|
+
{
|
|
227738
|
+
$ref: "#/components/schemas/SanitasSanitasNoContract",
|
|
227739
|
+
description: "Sanitas listed no contract for the document in the company. It does not mean inactive: confirm the document number and the company with the person."
|
|
227740
|
+
}
|
|
227741
|
+
]
|
|
227742
|
+
},
|
|
227743
|
+
SanitasLookupAffiliationResultResponse: {
|
|
227744
|
+
type: "object",
|
|
227745
|
+
description: "A successful answer.",
|
|
227746
|
+
additionalProperties: false,
|
|
227747
|
+
required: [
|
|
227748
|
+
"success",
|
|
227749
|
+
"data",
|
|
227750
|
+
"error",
|
|
227751
|
+
"metadata"
|
|
227752
|
+
],
|
|
227753
|
+
properties: {
|
|
227754
|
+
success: {
|
|
227755
|
+
type: "boolean",
|
|
227756
|
+
enum: [
|
|
227757
|
+
true
|
|
227758
|
+
]
|
|
227759
|
+
},
|
|
227760
|
+
data: {
|
|
227761
|
+
$ref: "#/components/schemas/SanitasLookupAffiliationResult"
|
|
227762
|
+
},
|
|
227763
|
+
error: {
|
|
227764
|
+
const: null
|
|
227765
|
+
},
|
|
227766
|
+
metadata: {
|
|
227767
|
+
$ref: "#/components/schemas/ResponseMetadata"
|
|
227768
|
+
}
|
|
227769
|
+
}
|
|
227770
|
+
},
|
|
226258
227771
|
SanitasLookupAffiliationServiceUnavailableError: {
|
|
226259
227772
|
type: "object",
|
|
226260
227773
|
description: "A failed answer.",
|
|
@@ -226351,7 +227864,7 @@ var schemaComponents = {
|
|
|
226351
227864
|
},
|
|
226352
227865
|
SanitasPatientUnresolvedFailure: {
|
|
226353
227866
|
type: "object",
|
|
226354
|
-
description: "The provider
|
|
227867
|
+
description: "The provider listed several contracts for this document in this company and none was chosen. Coverage is unknown.",
|
|
226355
227868
|
additionalProperties: false,
|
|
226356
227869
|
required: [
|
|
226357
227870
|
"code",
|
|
@@ -226718,34 +228231,6 @@ var schemaComponents = {
|
|
|
226718
228231
|
}
|
|
226719
228232
|
}
|
|
226720
228233
|
},
|
|
226721
|
-
SanitasSanitasAffiliationResponse: {
|
|
226722
|
-
type: "object",
|
|
226723
|
-
description: "A successful answer.",
|
|
226724
|
-
additionalProperties: false,
|
|
226725
|
-
required: [
|
|
226726
|
-
"success",
|
|
226727
|
-
"data",
|
|
226728
|
-
"error",
|
|
226729
|
-
"metadata"
|
|
226730
|
-
],
|
|
226731
|
-
properties: {
|
|
226732
|
-
success: {
|
|
226733
|
-
type: "boolean",
|
|
226734
|
-
enum: [
|
|
226735
|
-
true
|
|
226736
|
-
]
|
|
226737
|
-
},
|
|
226738
|
-
data: {
|
|
226739
|
-
$ref: "#/components/schemas/SanitasSanitasAffiliation"
|
|
226740
|
-
},
|
|
226741
|
-
error: {
|
|
226742
|
-
const: null
|
|
226743
|
-
},
|
|
226744
|
-
metadata: {
|
|
226745
|
-
$ref: "#/components/schemas/ResponseMetadata"
|
|
226746
|
-
}
|
|
226747
|
-
}
|
|
226748
|
-
},
|
|
226749
228234
|
SanitasSanitasConnection: {
|
|
226750
228235
|
additionalProperties: false,
|
|
226751
228236
|
type: "object",
|
|
@@ -226855,6 +228340,115 @@ var schemaComponents = {
|
|
|
226855
228340
|
}
|
|
226856
228341
|
}
|
|
226857
228342
|
},
|
|
228343
|
+
SanitasSanitasNoContract: {
|
|
228344
|
+
additionalProperties: false,
|
|
228345
|
+
type: "object",
|
|
228346
|
+
required: [
|
|
228347
|
+
"documentType",
|
|
228348
|
+
"documentNumber",
|
|
228349
|
+
"company",
|
|
228350
|
+
"checkedAt",
|
|
228351
|
+
"active",
|
|
228352
|
+
"outcome"
|
|
228353
|
+
],
|
|
228354
|
+
properties: {
|
|
228355
|
+
documentType: {
|
|
228356
|
+
anyOf: [
|
|
228357
|
+
{
|
|
228358
|
+
const: "AS",
|
|
228359
|
+
type: "string"
|
|
228360
|
+
},
|
|
228361
|
+
{
|
|
228362
|
+
const: "CC",
|
|
228363
|
+
type: "string"
|
|
228364
|
+
},
|
|
228365
|
+
{
|
|
228366
|
+
const: "CD",
|
|
228367
|
+
type: "string"
|
|
228368
|
+
},
|
|
228369
|
+
{
|
|
228370
|
+
const: "CE",
|
|
228371
|
+
type: "string"
|
|
228372
|
+
},
|
|
228373
|
+
{
|
|
228374
|
+
const: "CN",
|
|
228375
|
+
type: "string"
|
|
228376
|
+
},
|
|
228377
|
+
{
|
|
228378
|
+
const: "MS",
|
|
228379
|
+
type: "string"
|
|
228380
|
+
},
|
|
228381
|
+
{
|
|
228382
|
+
const: "NI",
|
|
228383
|
+
type: "string"
|
|
228384
|
+
},
|
|
228385
|
+
{
|
|
228386
|
+
const: "NU",
|
|
228387
|
+
type: "string"
|
|
228388
|
+
},
|
|
228389
|
+
{
|
|
228390
|
+
const: "PA",
|
|
228391
|
+
type: "string"
|
|
228392
|
+
},
|
|
228393
|
+
{
|
|
228394
|
+
const: "PD",
|
|
228395
|
+
type: "string"
|
|
228396
|
+
},
|
|
228397
|
+
{
|
|
228398
|
+
const: "PE",
|
|
228399
|
+
type: "string"
|
|
228400
|
+
},
|
|
228401
|
+
{
|
|
228402
|
+
const: "PT",
|
|
228403
|
+
type: "string"
|
|
228404
|
+
},
|
|
228405
|
+
{
|
|
228406
|
+
const: "RC",
|
|
228407
|
+
type: "string"
|
|
228408
|
+
},
|
|
228409
|
+
{
|
|
228410
|
+
const: "SC",
|
|
228411
|
+
type: "string"
|
|
228412
|
+
},
|
|
228413
|
+
{
|
|
228414
|
+
const: "TI",
|
|
228415
|
+
type: "string"
|
|
228416
|
+
}
|
|
228417
|
+
]
|
|
228418
|
+
},
|
|
228419
|
+
documentNumber: {
|
|
228420
|
+
pattern: "^[A-Za-z0-9]{1,25}$",
|
|
228421
|
+
type: "string"
|
|
228422
|
+
},
|
|
228423
|
+
company: {
|
|
228424
|
+
anyOf: [
|
|
228425
|
+
{
|
|
228426
|
+
const: "sanitas",
|
|
228427
|
+
type: "string"
|
|
228428
|
+
},
|
|
228429
|
+
{
|
|
228430
|
+
const: "colsanitas",
|
|
228431
|
+
type: "string"
|
|
228432
|
+
},
|
|
228433
|
+
{
|
|
228434
|
+
const: "medisanitas",
|
|
228435
|
+
type: "string"
|
|
228436
|
+
}
|
|
228437
|
+
]
|
|
228438
|
+
},
|
|
228439
|
+
checkedAt: {
|
|
228440
|
+
format: "date-time",
|
|
228441
|
+
type: "string"
|
|
228442
|
+
},
|
|
228443
|
+
active: {
|
|
228444
|
+
type: "null"
|
|
228445
|
+
},
|
|
228446
|
+
outcome: {
|
|
228447
|
+
const: "noContract",
|
|
228448
|
+
type: "string"
|
|
228449
|
+
}
|
|
228450
|
+
}
|
|
228451
|
+
},
|
|
226858
228452
|
SignedUrl: {
|
|
226859
228453
|
additionalProperties: false,
|
|
226860
228454
|
type: "object",
|
|
@@ -243572,6 +245166,31 @@ var schemaComponents = {
|
|
|
243572
245166
|
}
|
|
243573
245167
|
}
|
|
243574
245168
|
},
|
|
245169
|
+
bookingRoute: {
|
|
245170
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
245171
|
+
anyOf: [
|
|
245172
|
+
{
|
|
245173
|
+
const: "PRIVATE",
|
|
245174
|
+
type: "string"
|
|
245175
|
+
},
|
|
245176
|
+
{
|
|
245177
|
+
const: "AXA_PREPAID",
|
|
245178
|
+
type: "string"
|
|
245179
|
+
},
|
|
245180
|
+
{
|
|
245181
|
+
const: "AXA_ARL",
|
|
245182
|
+
type: "string"
|
|
245183
|
+
},
|
|
245184
|
+
{
|
|
245185
|
+
const: "PONAL_STARKEY",
|
|
245186
|
+
type: "string"
|
|
245187
|
+
},
|
|
245188
|
+
{
|
|
245189
|
+
const: "EPS_SURA",
|
|
245190
|
+
type: "string"
|
|
245191
|
+
}
|
|
245192
|
+
]
|
|
245193
|
+
},
|
|
243575
245194
|
connectionId: {
|
|
243576
245195
|
pattern: "^con_[0-9A-Za-z]{26}$",
|
|
243577
245196
|
type: "string"
|
|
@@ -243589,6 +245208,31 @@ var schemaComponents = {
|
|
|
243589
245208
|
pattern: "^[1-9][0-9]{0,14}$",
|
|
243590
245209
|
type: "string"
|
|
243591
245210
|
},
|
|
245211
|
+
bookingRoute: {
|
|
245212
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
245213
|
+
anyOf: [
|
|
245214
|
+
{
|
|
245215
|
+
const: "PRIVATE",
|
|
245216
|
+
type: "string"
|
|
245217
|
+
},
|
|
245218
|
+
{
|
|
245219
|
+
const: "AXA_PREPAID",
|
|
245220
|
+
type: "string"
|
|
245221
|
+
},
|
|
245222
|
+
{
|
|
245223
|
+
const: "AXA_ARL",
|
|
245224
|
+
type: "string"
|
|
245225
|
+
},
|
|
245226
|
+
{
|
|
245227
|
+
const: "PONAL_STARKEY",
|
|
245228
|
+
type: "string"
|
|
245229
|
+
},
|
|
245230
|
+
{
|
|
245231
|
+
const: "EPS_SURA",
|
|
245232
|
+
type: "string"
|
|
245233
|
+
}
|
|
245234
|
+
]
|
|
245235
|
+
},
|
|
243592
245236
|
color: {
|
|
243593
245237
|
anyOf: [
|
|
243594
245238
|
{
|
|
@@ -243786,6 +245430,31 @@ var schemaComponents = {
|
|
|
243786
245430
|
type: "integer",
|
|
243787
245431
|
default: 25
|
|
243788
245432
|
},
|
|
245433
|
+
bookingRoute: {
|
|
245434
|
+
description: "Verified payment route, required for agent scheduling at clinics using colored booking windows.",
|
|
245435
|
+
anyOf: [
|
|
245436
|
+
{
|
|
245437
|
+
const: "PRIVATE",
|
|
245438
|
+
type: "string"
|
|
245439
|
+
},
|
|
245440
|
+
{
|
|
245441
|
+
const: "AXA_PREPAID",
|
|
245442
|
+
type: "string"
|
|
245443
|
+
},
|
|
245444
|
+
{
|
|
245445
|
+
const: "AXA_ARL",
|
|
245446
|
+
type: "string"
|
|
245447
|
+
},
|
|
245448
|
+
{
|
|
245449
|
+
const: "PONAL_STARKEY",
|
|
245450
|
+
type: "string"
|
|
245451
|
+
},
|
|
245452
|
+
{
|
|
245453
|
+
const: "EPS_SURA",
|
|
245454
|
+
type: "string"
|
|
245455
|
+
}
|
|
245456
|
+
]
|
|
245457
|
+
},
|
|
243789
245458
|
agendaId: {
|
|
243790
245459
|
pattern: "^[1-9][0-9]{0,14}$",
|
|
243791
245460
|
type: "string"
|
|
@@ -245857,18 +247526,14 @@ var schemaComponents = {
|
|
|
245857
247526
|
additionalProperties: false,
|
|
245858
247527
|
type: "object",
|
|
245859
247528
|
required: [
|
|
245860
|
-
"idempotencyKey",
|
|
245861
247529
|
"confirm",
|
|
245862
247530
|
"flowId",
|
|
245863
247531
|
"slotId",
|
|
245864
247532
|
"documentType",
|
|
245865
247533
|
"documentNumber",
|
|
245866
|
-
"payerId",
|
|
245867
247534
|
"planId",
|
|
245868
247535
|
"subplanId",
|
|
245869
|
-
"classification"
|
|
245870
|
-
"billing",
|
|
245871
|
-
"referral"
|
|
247536
|
+
"classification"
|
|
245872
247537
|
],
|
|
245873
247538
|
properties: {
|
|
245874
247539
|
connectionId: {
|
|
@@ -245880,7 +247545,7 @@ var schemaComponents = {
|
|
|
245880
247545
|
minLength: 8,
|
|
245881
247546
|
maxLength: 64,
|
|
245882
247547
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
245883
|
-
description: "
|
|
247548
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
245884
247549
|
type: "string"
|
|
245885
247550
|
},
|
|
245886
247551
|
confirm: {
|
|
@@ -245895,7 +247560,7 @@ var schemaComponents = {
|
|
|
245895
247560
|
},
|
|
245896
247561
|
slotId: {
|
|
245897
247562
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
245898
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
247563
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
245899
247564
|
type: "string"
|
|
245900
247565
|
},
|
|
245901
247566
|
documentType: {
|
|
@@ -245910,7 +247575,7 @@ var schemaComponents = {
|
|
|
245910
247575
|
},
|
|
245911
247576
|
payerId: {
|
|
245912
247577
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
245913
|
-
description: "The flow
|
|
247578
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
245914
247579
|
type: "string"
|
|
245915
247580
|
},
|
|
245916
247581
|
planId: {
|
|
@@ -245924,7 +247589,7 @@ var schemaComponents = {
|
|
|
245924
247589
|
type: "string"
|
|
245925
247590
|
},
|
|
245926
247591
|
contractId: {
|
|
245927
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
247592
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
245928
247593
|
anyOf: [
|
|
245929
247594
|
{
|
|
245930
247595
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -245933,19 +247598,15 @@ var schemaComponents = {
|
|
|
245933
247598
|
{
|
|
245934
247599
|
type: "null"
|
|
245935
247600
|
}
|
|
245936
|
-
]
|
|
245937
|
-
default: null
|
|
247601
|
+
]
|
|
245938
247602
|
},
|
|
245939
247603
|
classification: {
|
|
245940
247604
|
additionalProperties: false,
|
|
245941
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
247605
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
245942
247606
|
type: "object",
|
|
245943
247607
|
required: [
|
|
245944
247608
|
"affiliateType",
|
|
245945
|
-
"regime"
|
|
245946
|
-
"programId",
|
|
245947
|
-
"attentionTypeId",
|
|
245948
|
-
"purposeId"
|
|
247609
|
+
"regime"
|
|
245949
247610
|
],
|
|
245950
247611
|
properties: {
|
|
245951
247612
|
affiliateType: {
|
|
@@ -245959,7 +247620,7 @@ var schemaComponents = {
|
|
|
245959
247620
|
type: "string"
|
|
245960
247621
|
},
|
|
245961
247622
|
relationship: {
|
|
245962
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
247623
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
245963
247624
|
anyOf: [
|
|
245964
247625
|
{
|
|
245965
247626
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -245972,7 +247633,7 @@ var schemaComponents = {
|
|
|
245972
247633
|
default: null
|
|
245973
247634
|
},
|
|
245974
247635
|
salaryRange: {
|
|
245975
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
247636
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
245976
247637
|
anyOf: [
|
|
245977
247638
|
{
|
|
245978
247639
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -245985,7 +247646,7 @@ var schemaComponents = {
|
|
|
245985
247646
|
default: null
|
|
245986
247647
|
},
|
|
245987
247648
|
listStatus: {
|
|
245988
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
247649
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
245989
247650
|
anyOf: [
|
|
245990
247651
|
{
|
|
245991
247652
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -245999,24 +247660,25 @@ var schemaComponents = {
|
|
|
245999
247660
|
},
|
|
246000
247661
|
programId: {
|
|
246001
247662
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246002
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
247663
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
246003
247664
|
type: "string"
|
|
246004
247665
|
},
|
|
246005
247666
|
attentionTypeId: {
|
|
246006
247667
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246007
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
247668
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
246008
247669
|
type: "string"
|
|
246009
247670
|
},
|
|
246010
247671
|
purposeId: {
|
|
246011
247672
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246012
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
246013
|
-
type: "string"
|
|
247673
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
247674
|
+
type: "string",
|
|
247675
|
+
default: "10"
|
|
246014
247676
|
}
|
|
246015
247677
|
}
|
|
246016
247678
|
},
|
|
246017
247679
|
billing: {
|
|
246018
247680
|
additionalProperties: false,
|
|
246019
|
-
description: "Billing values of the
|
|
247681
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
246020
247682
|
type: "object",
|
|
246021
247683
|
required: [
|
|
246022
247684
|
"tariff",
|
|
@@ -246033,7 +247695,7 @@ var schemaComponents = {
|
|
|
246033
247695
|
properties: {
|
|
246034
247696
|
tariff: {
|
|
246035
247697
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
246036
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
247698
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
246037
247699
|
type: "string"
|
|
246038
247700
|
},
|
|
246039
247701
|
billPrivately: {
|
|
@@ -246140,6 +247802,7 @@ var schemaComponents = {
|
|
|
246140
247802
|
},
|
|
246141
247803
|
referral: {
|
|
246142
247804
|
additionalProperties: false,
|
|
247805
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
246143
247806
|
type: "object",
|
|
246144
247807
|
required: [],
|
|
246145
247808
|
properties: {
|
|
@@ -246157,7 +247820,7 @@ var schemaComponents = {
|
|
|
246157
247820
|
default: null
|
|
246158
247821
|
},
|
|
246159
247822
|
authorizationNumber: {
|
|
246160
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
247823
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
246161
247824
|
anyOf: [
|
|
246162
247825
|
{
|
|
246163
247826
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -246204,7 +247867,6 @@ var schemaComponents = {
|
|
|
246204
247867
|
required: [
|
|
246205
247868
|
"documentType",
|
|
246206
247869
|
"documentNumber",
|
|
246207
|
-
"idempotencyKey",
|
|
246208
247870
|
"confirm",
|
|
246209
247871
|
"cancellation",
|
|
246210
247872
|
"appointmentId"
|
|
@@ -246229,7 +247891,7 @@ var schemaComponents = {
|
|
|
246229
247891
|
minLength: 8,
|
|
246230
247892
|
maxLength: 64,
|
|
246231
247893
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
246232
|
-
description: "
|
|
247894
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
246233
247895
|
type: "string"
|
|
246234
247896
|
},
|
|
246235
247897
|
confirm: {
|
|
@@ -246276,18 +247938,14 @@ var schemaComponents = {
|
|
|
246276
247938
|
additionalProperties: false,
|
|
246277
247939
|
type: "object",
|
|
246278
247940
|
required: [
|
|
246279
|
-
"idempotencyKey",
|
|
246280
247941
|
"confirm",
|
|
246281
247942
|
"flowId",
|
|
246282
247943
|
"slotId",
|
|
246283
247944
|
"documentType",
|
|
246284
247945
|
"documentNumber",
|
|
246285
|
-
"payerId",
|
|
246286
247946
|
"planId",
|
|
246287
247947
|
"subplanId",
|
|
246288
247948
|
"classification",
|
|
246289
|
-
"billing",
|
|
246290
|
-
"referral",
|
|
246291
247949
|
"cancellation",
|
|
246292
247950
|
"appointmentId"
|
|
246293
247951
|
],
|
|
@@ -246301,7 +247959,7 @@ var schemaComponents = {
|
|
|
246301
247959
|
minLength: 8,
|
|
246302
247960
|
maxLength: 64,
|
|
246303
247961
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
246304
|
-
description: "
|
|
247962
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
246305
247963
|
type: "string"
|
|
246306
247964
|
},
|
|
246307
247965
|
confirm: {
|
|
@@ -246316,7 +247974,7 @@ var schemaComponents = {
|
|
|
246316
247974
|
},
|
|
246317
247975
|
slotId: {
|
|
246318
247976
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246319
|
-
description: "A slot id from list_booking_slots in the same flow.",
|
|
247977
|
+
description: "A slot id from search_booking_slots or list_booking_slots in the same flow.",
|
|
246320
247978
|
type: "string"
|
|
246321
247979
|
},
|
|
246322
247980
|
documentType: {
|
|
@@ -246331,7 +247989,7 @@ var schemaComponents = {
|
|
|
246331
247989
|
},
|
|
246332
247990
|
payerId: {
|
|
246333
247991
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246334
|
-
description: "The flow
|
|
247992
|
+
description: "The payer the availability flow was opened for. Left out: that payer. When given it must be that payer.",
|
|
246335
247993
|
type: "string"
|
|
246336
247994
|
},
|
|
246337
247995
|
planId: {
|
|
@@ -246345,7 +248003,7 @@ var schemaComponents = {
|
|
|
246345
248003
|
type: "string"
|
|
246346
248004
|
},
|
|
246347
248005
|
contractId: {
|
|
246348
|
-
description: "A contract of the payer from list_payer_contracts, which must not be inactive
|
|
248006
|
+
description: "A contract of the payer from list_payer_contracts, which must not be inactive. An explicit null sends none. Leaving the key out is not the same as null: the service then sends the payer's only contract when list_payer_contracts has exactly one that is not inactive and marks it active, sends none when the payer has no contract or only inactive ones, and answers BOOKING_VALUE_UNRESOLVED otherwise (several contracts, or an unrecognized active flag).",
|
|
246349
248007
|
anyOf: [
|
|
246350
248008
|
{
|
|
246351
248009
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -246354,19 +248012,15 @@ var schemaComponents = {
|
|
|
246354
248012
|
{
|
|
246355
248013
|
type: "null"
|
|
246356
248014
|
}
|
|
246357
|
-
]
|
|
246358
|
-
default: null
|
|
248015
|
+
]
|
|
246359
248016
|
},
|
|
246360
248017
|
classification: {
|
|
246361
248018
|
additionalProperties: false,
|
|
246362
|
-
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them.
|
|
248019
|
+
description: "Coverage and clinical classification codes, as the clinic's own provider catalogs define them. regime and affiliateType are never guessed: the caller supplies them. The rest has the defaults each field states.",
|
|
246363
248020
|
type: "object",
|
|
246364
248021
|
required: [
|
|
246365
248022
|
"affiliateType",
|
|
246366
|
-
"regime"
|
|
246367
|
-
"programId",
|
|
246368
|
-
"attentionTypeId",
|
|
246369
|
-
"purposeId"
|
|
248023
|
+
"regime"
|
|
246370
248024
|
],
|
|
246371
248025
|
properties: {
|
|
246372
248026
|
affiliateType: {
|
|
@@ -246380,7 +248034,7 @@ var schemaComponents = {
|
|
|
246380
248034
|
type: "string"
|
|
246381
248035
|
},
|
|
246382
248036
|
relationship: {
|
|
246383
|
-
description: "Sent as pParentesco (strParentesco); empty when null.
|
|
248037
|
+
description: "Sent as pParentesco (strParentesco); empty when null. One list_relationships answers. The screen disables it for the affiliate types C and N; for any other affiliate type it requires one, so leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
246384
248038
|
anyOf: [
|
|
246385
248039
|
{
|
|
246386
248040
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -246393,7 +248047,7 @@ var schemaComponents = {
|
|
|
246393
248047
|
default: null
|
|
246394
248048
|
},
|
|
246395
248049
|
salaryRange: {
|
|
246396
|
-
description: "Sent as pRangoSalarial (strRango); empty when null.
|
|
248050
|
+
description: "Sent as pRangoSalarial (strRango); empty when null. One list_salary_ranges answers for the regime, or BOOKING_VALUE_UNRESOLVED. Required when billing is left out: its row supplies the copayment values.",
|
|
246397
248051
|
anyOf: [
|
|
246398
248052
|
{
|
|
246399
248053
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -246406,7 +248060,7 @@ var schemaComponents = {
|
|
|
246406
248060
|
default: null
|
|
246407
248061
|
},
|
|
246408
248062
|
listStatus: {
|
|
246409
|
-
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked.",
|
|
248063
|
+
description: "Sent as pEstadoListado (strEstado); empty when null. No catalog of it is mapped, so it is not checked. The screen requires one only when the payer uses an attention list (usesAttentionList in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
246410
248064
|
anyOf: [
|
|
246411
248065
|
{
|
|
246412
248066
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
@@ -246420,24 +248074,25 @@ var schemaComponents = {
|
|
|
246420
248074
|
},
|
|
246421
248075
|
programId: {
|
|
246422
248076
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246423
|
-
description: "Sent as pPrograma (sysPrograma).
|
|
248077
|
+
description: "Sent as pPrograma (sysPrograma). Left out: the program the availability flow was opened for. When given it must be that program.",
|
|
246424
248078
|
type: "string"
|
|
246425
248079
|
},
|
|
246426
248080
|
attentionTypeId: {
|
|
246427
248081
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246428
|
-
description: "The one-unit attention type the availability flow was opened for
|
|
248082
|
+
description: "The one-unit attention type the availability flow was opened for. Left out: that one. When given it must be that one. The source's request has no field for it: it decides the slot list's unit count.",
|
|
246429
248083
|
type: "string"
|
|
246430
248084
|
},
|
|
246431
248085
|
purposeId: {
|
|
246432
248086
|
pattern: "^[0-9A-Za-z._-]{1,32}$",
|
|
246433
|
-
description: "Sent as pFinalidad (sysFinalidad).
|
|
246434
|
-
type: "string"
|
|
248087
|
+
description: "Sent as pFinalidad (sysFinalidad). Left out: 10, the default of the screen's hidden control. No catalog proves it here, and a program's sourcePurpose is never applied in its place.",
|
|
248088
|
+
type: "string",
|
|
248089
|
+
default: "10"
|
|
246435
248090
|
}
|
|
246436
248091
|
}
|
|
246437
248092
|
},
|
|
246438
248093
|
billing: {
|
|
246439
248094
|
additionalProperties: false,
|
|
246440
|
-
description: "Billing values of the
|
|
248095
|
+
description: "Billing values of the booking screen. Leave the whole object out and the service resolves them as the screen does: tariff from the payer's tariff matrix for the flow's service under the plan and subplan; billPrivately, billCopayments and enteredCopayment from the payer's row; copaymentPercentage, maxCopayment and indicatedModeratorFee from the row of classification.salaryRange; exempt 0, courtOrder 0 and markExempt false. When given, every value is sent exactly as given and nothing is resolved.",
|
|
246441
248096
|
type: "object",
|
|
246442
248097
|
required: [
|
|
246443
248098
|
"tariff",
|
|
@@ -246454,7 +248109,7 @@ var schemaComponents = {
|
|
|
246454
248109
|
properties: {
|
|
246455
248110
|
tariff: {
|
|
246456
248111
|
pattern: "^(0|[1-9][0-9]{0,9})(\\.[0-9]{1,2})?$",
|
|
246457
|
-
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required.",
|
|
248112
|
+
description: "Sent as pTarifaProced: the unit value of the clinic's tariff for the service. Required when billing is given.",
|
|
246458
248113
|
type: "string"
|
|
246459
248114
|
},
|
|
246460
248115
|
billPrivately: {
|
|
@@ -246561,6 +248216,7 @@ var schemaComponents = {
|
|
|
246561
248216
|
},
|
|
246562
248217
|
referral: {
|
|
246563
248218
|
additionalProperties: false,
|
|
248219
|
+
description: "Referral values of the booking screen. Left out: no requesting professional, no authorization number and requestedByUser false.",
|
|
246564
248220
|
type: "object",
|
|
246565
248221
|
required: [],
|
|
246566
248222
|
properties: {
|
|
@@ -246578,7 +248234,7 @@ var schemaComponents = {
|
|
|
246578
248234
|
default: null
|
|
246579
248235
|
},
|
|
246580
248236
|
authorizationNumber: {
|
|
246581
|
-
description: "Sent as pAutorizacion: the payer's authorization number
|
|
248237
|
+
description: "Sent as pAutorizacion: the payer's authorization number; empty when null. The screen requires one only when the payer requires it (requiresAuthorization in list_payers): leaving it out then answers BOOKING_VALUE_UNRESOLVED.",
|
|
246582
248238
|
anyOf: [
|
|
246583
248239
|
{
|
|
246584
248240
|
pattern: "^[0-9A-Za-z-]{1,30}$",
|
|
@@ -247270,8 +248926,7 @@ var schemaComponents = {
|
|
|
247270
248926
|
"regimeId",
|
|
247271
248927
|
"affiliateTypeId",
|
|
247272
248928
|
"salaryRangeId",
|
|
247273
|
-
"confirm"
|
|
247274
|
-
"idempotencyKey"
|
|
248929
|
+
"confirm"
|
|
247275
248930
|
],
|
|
247276
248931
|
properties: {
|
|
247277
248932
|
connectionId: {
|
|
@@ -247378,7 +249033,7 @@ var schemaComponents = {
|
|
|
247378
249033
|
minLength: 8,
|
|
247379
249034
|
maxLength: 64,
|
|
247380
249035
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
247381
|
-
description: "
|
|
249036
|
+
description: "Optional. Without it the service derives the key from the request itself, so repeating the identical request answers the recorded outcome and never writes again. A caller that retries with changed values can choose one key per intended write, such as a UUID; another request with it answers IDEMPOTENCY_KEY_REUSED.",
|
|
247382
249037
|
type: "string"
|
|
247383
249038
|
},
|
|
247384
249039
|
agentMode: {
|
|
@@ -250592,6 +252247,33 @@ var schemaComponents = {
|
|
|
250592
252247
|
],
|
|
250593
252248
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
250594
252249
|
},
|
|
252250
|
+
waitingOn: {
|
|
252251
|
+
anyOf: [
|
|
252252
|
+
{
|
|
252253
|
+
type: "string",
|
|
252254
|
+
const: "ai"
|
|
252255
|
+
},
|
|
252256
|
+
{
|
|
252257
|
+
type: "string",
|
|
252258
|
+
const: "team"
|
|
252259
|
+
},
|
|
252260
|
+
{
|
|
252261
|
+
type: "string",
|
|
252262
|
+
const: "contact"
|
|
252263
|
+
}
|
|
252264
|
+
],
|
|
252265
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
252266
|
+
},
|
|
252267
|
+
assignee: {
|
|
252268
|
+
type: "string",
|
|
252269
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
252270
|
+
maxLength: 255,
|
|
252271
|
+
minLength: 1
|
|
252272
|
+
},
|
|
252273
|
+
unattended: {
|
|
252274
|
+
type: "boolean",
|
|
252275
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
252276
|
+
},
|
|
250595
252277
|
origin: {
|
|
250596
252278
|
type: "string",
|
|
250597
252279
|
description: "Comma-separated origins.",
|
|
@@ -250786,11 +252468,11 @@ var schemaComponents = {
|
|
|
250786
252468
|
},
|
|
250787
252469
|
expand: {
|
|
250788
252470
|
type: "string",
|
|
250789
|
-
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`.",
|
|
252471
|
+
description: "Related data to include, comma-separated: `messages`, `recording`, `diagnostics`, `history`.",
|
|
250790
252472
|
examples: [
|
|
250791
|
-
"messages,recording,diagnostics"
|
|
252473
|
+
"messages,recording,diagnostics,history"
|
|
250792
252474
|
],
|
|
250793
|
-
pattern: "^(messages|recording|diagnostics)(,(messages|recording|diagnostics))*$"
|
|
252475
|
+
pattern: "^(messages|recording|diagnostics|history)(,(messages|recording|diagnostics|history))*$"
|
|
250794
252476
|
},
|
|
250795
252477
|
messagesCursor: {
|
|
250796
252478
|
type: "string",
|
|
@@ -250838,6 +252520,19 @@ var schemaComponents = {
|
|
|
250838
252520
|
type: "boolean",
|
|
250839
252521
|
description: "WhatsApp only: pause or resume automatic replies for this recipient until their open conversation closes. Resuming answers what the contact wrote in this conversation after the last real answer."
|
|
250840
252522
|
},
|
|
252523
|
+
assigneeId: {
|
|
252524
|
+
anyOf: [
|
|
252525
|
+
{
|
|
252526
|
+
type: "string",
|
|
252527
|
+
description: "Give the case to a person of the organization, by their member id as Arbol Account lists it (`listAssignees` names the people who can take one); `me` takes it for the person calling; `null` leaves it with nobody. Its new owner is told by email. History keeps who had it and who passed it on.",
|
|
252528
|
+
maxLength: 255,
|
|
252529
|
+
minLength: 1
|
|
252530
|
+
},
|
|
252531
|
+
{
|
|
252532
|
+
type: "null"
|
|
252533
|
+
}
|
|
252534
|
+
]
|
|
252535
|
+
},
|
|
250841
252536
|
contactId: {
|
|
250842
252537
|
anyOf: [
|
|
250843
252538
|
{
|
|
@@ -251270,6 +252965,33 @@ var schemaComponents = {
|
|
|
251270
252965
|
],
|
|
251271
252966
|
description: "Who works the conversation now. `ai`: calls and web chats, open WhatsApp conversations the AI answers (assigned to it and not paused), and closed ones the AI answered. `team`: open WhatsApp conversations the organization's people answer (not assigned to the AI, or paused) and closed ones they answered. Unlike `handling`, a conversation the AI answered and then handed to people is `team` while open."
|
|
251272
252967
|
},
|
|
252968
|
+
waitingOn: {
|
|
252969
|
+
anyOf: [
|
|
252970
|
+
{
|
|
252971
|
+
type: "string",
|
|
252972
|
+
const: "ai"
|
|
252973
|
+
},
|
|
252974
|
+
{
|
|
252975
|
+
type: "string",
|
|
252976
|
+
const: "team"
|
|
252977
|
+
},
|
|
252978
|
+
{
|
|
252979
|
+
type: "string",
|
|
252980
|
+
const: "contact"
|
|
252981
|
+
}
|
|
252982
|
+
],
|
|
252983
|
+
description: "Open conversations by who they wait for, as each conversation's `waitingOn` says: `ai`, `team` (the team's cases to answer) or `contact`. Closed conversations never match."
|
|
252984
|
+
},
|
|
252985
|
+
assignee: {
|
|
252986
|
+
type: "string",
|
|
252987
|
+
description: "Conversations by the case's owner: a member id, `me` (the person calling) or `none` (nobody has it). With `waitingOn=team`: one person's cases to answer, or the ones nobody took.",
|
|
252988
|
+
maxLength: 255,
|
|
252989
|
+
minLength: 1
|
|
252990
|
+
},
|
|
252991
|
+
unattended: {
|
|
252992
|
+
type: "boolean",
|
|
252993
|
+
description: "`true`: conversations that closed for inactivity with a handoff nobody of the team answered."
|
|
252994
|
+
},
|
|
251273
252995
|
origin: {
|
|
251274
252996
|
type: "string",
|
|
251275
252997
|
description: "Comma-separated origins.",
|
|
@@ -251432,8 +253154,8 @@ var schemaComponents = {
|
|
|
251432
253154
|
},
|
|
251433
253155
|
groupBy: {
|
|
251434
253156
|
type: "string",
|
|
251435
|
-
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
251436
|
-
pattern: "^(outcome|status|channel|agent|sentiment|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
253157
|
+
description: "`outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn` (who each open conversation waits for: `ai`, `team` or `contact`; null for the closed ones), `tool` (each Agent tool and the conversations that used it; null for those that used none), `toolError` (failed calls, of `toolName` when given, by error) or `fact:<definition key>` (the current value of that definition, such as the reason for contact).",
|
|
253158
|
+
pattern: "^(outcome|status|channel|agent|sentiment|waitingOn|tool|toolError|fact:[a-z][a-z0-9_]{0,63})$"
|
|
251437
253159
|
}
|
|
251438
253160
|
},
|
|
251439
253161
|
additionalProperties: false
|
|
@@ -252938,6 +254660,19 @@ var schemaComponents = {
|
|
|
252938
254660
|
}
|
|
252939
254661
|
]
|
|
252940
254662
|
},
|
|
254663
|
+
firstReplyMinutes: {
|
|
254664
|
+
anyOf: [
|
|
254665
|
+
{
|
|
254666
|
+
type: "integer",
|
|
254667
|
+
description: "Within how many minutes a person of the team should answer a conversation the AI handed over (default 15). Past it, the case's owner (`assigneeId`), or the team's recipients while nobody has it, is reminded once; at four times that, the organization's owners and its `productNotices.administrators` hear that it is overdue. Each wait is announced once: a contact who writes again after the team answered starts another. With a digest `frequency`, the conversation is listed again in the next digest instead. `0`: no reminders.",
|
|
254668
|
+
maximum: 1440,
|
|
254669
|
+
minimum: 0
|
|
254670
|
+
},
|
|
254671
|
+
{
|
|
254672
|
+
type: "null"
|
|
254673
|
+
}
|
|
254674
|
+
]
|
|
254675
|
+
},
|
|
252941
254676
|
frequency: {
|
|
252942
254677
|
anyOf: [
|
|
252943
254678
|
{
|
|
@@ -253495,6 +255230,10 @@ var schemaComponents = {
|
|
|
253495
255230
|
type: "string",
|
|
253496
255231
|
const: "conversations_daily"
|
|
253497
255232
|
},
|
|
255233
|
+
{
|
|
255234
|
+
type: "string",
|
|
255235
|
+
const: "handoffs_daily"
|
|
255236
|
+
},
|
|
253498
255237
|
{
|
|
253499
255238
|
type: "string",
|
|
253500
255239
|
const: "pqrsf_daily"
|
|
@@ -253524,7 +255263,7 @@ var schemaComponents = {
|
|
|
253524
255263
|
const: "campaign_progress"
|
|
253525
255264
|
}
|
|
253526
255265
|
],
|
|
253527
|
-
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
255266
|
+
description: "`conversations_daily`: conversations the AI took part in per day, Agent, channel type and direction, with outcomes and escalations (filters `agentId`, `channelType`). `handoffs_daily`: the conversations the AI handed to the team, per day of the handoff, Agent and person (who answered first, else the case's owner), with how many were answered, answered in time, still waiting, closed unattended or returned to the AI, and the average seconds to the first answer (filter `agentId`). `booking_details`: individual patients and appointments from explicit successful creation receipts, including specialty, paired exams, deduplication, matched patient names and later recorded cancellations; filters agentId and specialty; requires conversation read/write permission too. Historical receipts with created=true, not current provider status or all provider protocols. unverifiedCount covers explicit creations missing a stable patient/slot. `booking_outcomes`: verified saved booking receipts per completion day, Agent and integration, excluding test/import/deleted conversations; confirmed new bookings, reschedules, cancellations, failed, pending, unverified and duplicate receipts separately (filter `agentId`). Historical evidence, not current appointment status; hasMore requires splitting the range and returns no partial totals. `tool_calls_daily`: tool calls per day, Agent and tool with failures/durations (filter `agentId`). `tool_calls`: individual calls, never inputs/outputs (filter `agentId`). `assessment_results_daily`: assessments per day/definition (filter `definitionId`). `pqrsf_daily`: classification, confirmed resolution and referral-link counts from the pqrsf_* definitions, including pending/unclassified conversations, excluding tests/imports/deleted records (filters `agentId`, `channelType`); no measured filing reduction is inferred. `campaign_progress`: recipients by status (filter `campaignId`; no dates)."
|
|
253528
255267
|
},
|
|
253529
255268
|
to: {
|
|
253530
255269
|
type: "string",
|
|
@@ -257594,9 +259333,9 @@ var schemaComponents = {
|
|
|
257594
259333
|
// src/generated/generation.json
|
|
257595
259334
|
var generation_default = {
|
|
257596
259335
|
formatVersion: 6,
|
|
257597
|
-
release: "1.
|
|
257598
|
-
openapiSha256: "
|
|
257599
|
-
openapiContentSha256: "
|
|
259336
|
+
release: "1.20261114.55927",
|
|
259337
|
+
openapiSha256: "1abdad9c23520e8ef4da837215c0baf0801aeaea7f8d887e9d4111bbaab29a83",
|
|
259338
|
+
openapiContentSha256: "462eea12036d37178570a5523a10281d5389066b5910e996572d5e3a70f1de66",
|
|
257600
259339
|
forge: {
|
|
257601
259340
|
repository: "https://github.com/cloudflare/forge",
|
|
257602
259341
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -257609,7 +259348,7 @@ var generation_default = {
|
|
|
257609
259348
|
outputs: [
|
|
257610
259349
|
{
|
|
257611
259350
|
path: "src/generated/commands.ts",
|
|
257612
|
-
sha256: "
|
|
259351
|
+
sha256: "944435e94f4d505828b6be56adb7edd042efb8af82f5253c8ce188b133b23352"
|
|
257613
259352
|
}
|
|
257614
259353
|
]
|
|
257615
259354
|
};
|
|
@@ -259209,7 +260948,7 @@ ${name}`);
|
|
|
259209
260948
|
}
|
|
259210
260949
|
|
|
259211
260950
|
// src/index.ts
|
|
259212
|
-
var VERSION = "3.
|
|
260951
|
+
var VERSION = "3.59.0";
|
|
259213
260952
|
var RELEASE = generation_default.release;
|
|
259214
260953
|
var commands2 = { ...commands, ...accountOperatorCommands };
|
|
259215
260954
|
var SDK_PATHS = new Map(Object.values(commands2).map((command) => [command.operation, command.sdkPath]));
|