@arbol-ai/cli 3.32.0 → 3.33.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 +1079 -12
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7703,6 +7703,350 @@ var commands = {
|
|
|
7703
7703
|
confirmation: null,
|
|
7704
7704
|
hidden: false
|
|
7705
7705
|
},
|
|
7706
|
+
"agenda waitlist create": {
|
|
7707
|
+
operation: "agenda.waitlist.create",
|
|
7708
|
+
sdkPath: [
|
|
7709
|
+
"agenda",
|
|
7710
|
+
"waitlist",
|
|
7711
|
+
"create"
|
|
7712
|
+
],
|
|
7713
|
+
pathField: null,
|
|
7714
|
+
fields: [
|
|
7715
|
+
{
|
|
7716
|
+
name: "appointmentId",
|
|
7717
|
+
flag: "appointment-id",
|
|
7718
|
+
kind: "string",
|
|
7719
|
+
required: false,
|
|
7720
|
+
description: "The appointment it relates to: a priority to bring forward.",
|
|
7721
|
+
default: null
|
|
7722
|
+
},
|
|
7723
|
+
{
|
|
7724
|
+
name: "conversationUrl",
|
|
7725
|
+
flag: "conversation-url",
|
|
7726
|
+
kind: "string",
|
|
7727
|
+
required: false,
|
|
7728
|
+
description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation.",
|
|
7729
|
+
default: null
|
|
7730
|
+
},
|
|
7731
|
+
{
|
|
7732
|
+
name: "note",
|
|
7733
|
+
flag: "note",
|
|
7734
|
+
kind: "string",
|
|
7735
|
+
required: false,
|
|
7736
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded.",
|
|
7737
|
+
default: null
|
|
7738
|
+
},
|
|
7739
|
+
{
|
|
7740
|
+
name: "patientId",
|
|
7741
|
+
flag: "patient-id",
|
|
7742
|
+
kind: "string",
|
|
7743
|
+
required: false,
|
|
7744
|
+
description: "Registered patient selected by the desk; document resolution remains authoritative for patient identity."
|
|
7745
|
+
},
|
|
7746
|
+
{
|
|
7747
|
+
name: "payer",
|
|
7748
|
+
flag: "payer",
|
|
7749
|
+
kind: "string",
|
|
7750
|
+
required: false,
|
|
7751
|
+
description: "The payer the patient named, as said.",
|
|
7752
|
+
default: null
|
|
7753
|
+
},
|
|
7754
|
+
{
|
|
7755
|
+
name: "phone",
|
|
7756
|
+
flag: "phone",
|
|
7757
|
+
kind: "string",
|
|
7758
|
+
required: false,
|
|
7759
|
+
description: "Patient contact telephone number; null when no number was recorded.",
|
|
7760
|
+
default: null
|
|
7761
|
+
},
|
|
7762
|
+
{
|
|
7763
|
+
name: "priority",
|
|
7764
|
+
flag: "priority",
|
|
7765
|
+
kind: "string",
|
|
7766
|
+
required: false,
|
|
7767
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment.",
|
|
7768
|
+
choices: [
|
|
7769
|
+
"normal",
|
|
7770
|
+
"urgent"
|
|
7771
|
+
],
|
|
7772
|
+
default: "normal"
|
|
7773
|
+
},
|
|
7774
|
+
{
|
|
7775
|
+
name: "reason",
|
|
7776
|
+
flag: "reason",
|
|
7777
|
+
kind: "string",
|
|
7778
|
+
required: false,
|
|
7779
|
+
description: "Why: by hand, a payer only the team books, or a priority to bring forward.",
|
|
7780
|
+
choices: [
|
|
7781
|
+
"manual",
|
|
7782
|
+
"payer_review",
|
|
7783
|
+
"priority"
|
|
7784
|
+
],
|
|
7785
|
+
default: "manual"
|
|
7786
|
+
},
|
|
7787
|
+
{
|
|
7788
|
+
name: "resourceId",
|
|
7789
|
+
flag: "resource-id",
|
|
7790
|
+
kind: "string",
|
|
7791
|
+
required: false,
|
|
7792
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.",
|
|
7793
|
+
default: null
|
|
7794
|
+
},
|
|
7795
|
+
{
|
|
7796
|
+
name: "resourceName",
|
|
7797
|
+
flag: "resource-name",
|
|
7798
|
+
kind: "string",
|
|
7799
|
+
required: false,
|
|
7800
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."
|
|
7801
|
+
},
|
|
7802
|
+
{
|
|
7803
|
+
name: "serviceId",
|
|
7804
|
+
flag: "service-id",
|
|
7805
|
+
kind: "string",
|
|
7806
|
+
required: true,
|
|
7807
|
+
description: "Service identifier within the authenticated organization."
|
|
7808
|
+
}
|
|
7809
|
+
],
|
|
7810
|
+
inputSchema: {
|
|
7811
|
+
additionalProperties: false,
|
|
7812
|
+
type: "object",
|
|
7813
|
+
required: [
|
|
7814
|
+
"patient",
|
|
7815
|
+
"serviceId"
|
|
7816
|
+
],
|
|
7817
|
+
properties: {
|
|
7818
|
+
appointmentId: {
|
|
7819
|
+
description: "The appointment it relates to: a priority to bring forward.",
|
|
7820
|
+
anyOf: [
|
|
7821
|
+
{
|
|
7822
|
+
description: "Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
7823
|
+
pattern: "^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
7824
|
+
type: "string"
|
|
7825
|
+
},
|
|
7826
|
+
{
|
|
7827
|
+
type: "null"
|
|
7828
|
+
}
|
|
7829
|
+
],
|
|
7830
|
+
default: null
|
|
7831
|
+
},
|
|
7832
|
+
conversationUrl: {
|
|
7833
|
+
anyOf: [
|
|
7834
|
+
{
|
|
7835
|
+
format: "uri",
|
|
7836
|
+
maxLength: 500,
|
|
7837
|
+
type: "string"
|
|
7838
|
+
},
|
|
7839
|
+
{
|
|
7840
|
+
type: "null"
|
|
7841
|
+
}
|
|
7842
|
+
],
|
|
7843
|
+
default: null,
|
|
7844
|
+
description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation."
|
|
7845
|
+
},
|
|
7846
|
+
note: {
|
|
7847
|
+
anyOf: [
|
|
7848
|
+
{
|
|
7849
|
+
type: "string"
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
type: "null"
|
|
7853
|
+
}
|
|
7854
|
+
],
|
|
7855
|
+
default: null,
|
|
7856
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded."
|
|
7857
|
+
},
|
|
7858
|
+
patient: {
|
|
7859
|
+
additionalProperties: false,
|
|
7860
|
+
type: "object",
|
|
7861
|
+
required: [
|
|
7862
|
+
"name"
|
|
7863
|
+
],
|
|
7864
|
+
properties: {
|
|
7865
|
+
documentNumber: {
|
|
7866
|
+
anyOf: [
|
|
7867
|
+
{
|
|
7868
|
+
type: "string"
|
|
7869
|
+
},
|
|
7870
|
+
{
|
|
7871
|
+
type: "null"
|
|
7872
|
+
}
|
|
7873
|
+
],
|
|
7874
|
+
description: 'Patient document number as typed ("12.345.678"), stored normalized; null when the patient has none. Identity combines its type and number.'
|
|
7875
|
+
},
|
|
7876
|
+
documentType: {
|
|
7877
|
+
anyOf: [
|
|
7878
|
+
{
|
|
7879
|
+
description: "Document-type code from the organization’s configured active types. Input is trimmed and uppercased.",
|
|
7880
|
+
type: "string"
|
|
7881
|
+
},
|
|
7882
|
+
{
|
|
7883
|
+
type: "null"
|
|
7884
|
+
}
|
|
7885
|
+
],
|
|
7886
|
+
default: null,
|
|
7887
|
+
description: "Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."
|
|
7888
|
+
},
|
|
7889
|
+
name: {
|
|
7890
|
+
type: "string",
|
|
7891
|
+
description: "Patient display name with surrounding whitespace removed."
|
|
7892
|
+
},
|
|
7893
|
+
document: {
|
|
7894
|
+
anyOf: [
|
|
7895
|
+
{
|
|
7896
|
+
type: "string"
|
|
7897
|
+
},
|
|
7898
|
+
{
|
|
7899
|
+
type: "null"
|
|
7900
|
+
}
|
|
7901
|
+
],
|
|
7902
|
+
description: "Deprecated: use `documentNumber`. Answered until 2027-01-28.",
|
|
7903
|
+
deprecated: true
|
|
7904
|
+
}
|
|
7905
|
+
}
|
|
7906
|
+
},
|
|
7907
|
+
patientId: {
|
|
7908
|
+
description: "Registered patient selected by the desk; document resolution remains authoritative for patient identity.",
|
|
7909
|
+
pattern: "^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
7910
|
+
type: "string"
|
|
7911
|
+
},
|
|
7912
|
+
payer: {
|
|
7913
|
+
description: "The payer the patient named, as said.",
|
|
7914
|
+
anyOf: [
|
|
7915
|
+
{
|
|
7916
|
+
type: "string"
|
|
7917
|
+
},
|
|
7918
|
+
{
|
|
7919
|
+
type: "null"
|
|
7920
|
+
}
|
|
7921
|
+
],
|
|
7922
|
+
default: null
|
|
7923
|
+
},
|
|
7924
|
+
phone: {
|
|
7925
|
+
anyOf: [
|
|
7926
|
+
{
|
|
7927
|
+
type: "string"
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
type: "null"
|
|
7931
|
+
}
|
|
7932
|
+
],
|
|
7933
|
+
default: null,
|
|
7934
|
+
description: "Patient contact telephone number; null when no number was recorded."
|
|
7935
|
+
},
|
|
7936
|
+
preferences: {
|
|
7937
|
+
additionalProperties: false,
|
|
7938
|
+
type: "object",
|
|
7939
|
+
required: [],
|
|
7940
|
+
properties: {
|
|
7941
|
+
from: {
|
|
7942
|
+
description: "From this local date (YYYY-MM-DD).",
|
|
7943
|
+
anyOf: [
|
|
7944
|
+
{
|
|
7945
|
+
format: "date",
|
|
7946
|
+
type: "string"
|
|
7947
|
+
},
|
|
7948
|
+
{
|
|
7949
|
+
type: "null"
|
|
7950
|
+
}
|
|
7951
|
+
],
|
|
7952
|
+
default: null
|
|
7953
|
+
},
|
|
7954
|
+
times: {
|
|
7955
|
+
description: '"Martes y jueves en la mañana".',
|
|
7956
|
+
anyOf: [
|
|
7957
|
+
{
|
|
7958
|
+
type: "string"
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
type: "null"
|
|
7962
|
+
}
|
|
7963
|
+
],
|
|
7964
|
+
default: null
|
|
7965
|
+
},
|
|
7966
|
+
to: {
|
|
7967
|
+
description: "Until this local date (YYYY-MM-DD).",
|
|
7968
|
+
anyOf: [
|
|
7969
|
+
{
|
|
7970
|
+
format: "date",
|
|
7971
|
+
type: "string"
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
type: "null"
|
|
7975
|
+
}
|
|
7976
|
+
],
|
|
7977
|
+
default: null
|
|
7978
|
+
}
|
|
7979
|
+
},
|
|
7980
|
+
default: {
|
|
7981
|
+
from: null,
|
|
7982
|
+
times: null,
|
|
7983
|
+
to: null
|
|
7984
|
+
},
|
|
7985
|
+
description: "Patient availability preferences retained with the waiting-list entry."
|
|
7986
|
+
},
|
|
7987
|
+
priority: {
|
|
7988
|
+
anyOf: [
|
|
7989
|
+
{
|
|
7990
|
+
const: "normal",
|
|
7991
|
+
type: "string"
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
const: "urgent",
|
|
7995
|
+
type: "string"
|
|
7996
|
+
}
|
|
7997
|
+
],
|
|
7998
|
+
default: "normal",
|
|
7999
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment."
|
|
8000
|
+
},
|
|
8001
|
+
reason: {
|
|
8002
|
+
anyOf: [
|
|
8003
|
+
{
|
|
8004
|
+
const: "manual",
|
|
8005
|
+
type: "string"
|
|
8006
|
+
},
|
|
8007
|
+
{
|
|
8008
|
+
const: "payer_review",
|
|
8009
|
+
type: "string"
|
|
8010
|
+
},
|
|
8011
|
+
{
|
|
8012
|
+
const: "priority",
|
|
8013
|
+
type: "string"
|
|
8014
|
+
}
|
|
8015
|
+
],
|
|
8016
|
+
description: "Why: by hand, a payer only the team books, or a priority to bring forward.",
|
|
8017
|
+
default: "manual"
|
|
8018
|
+
},
|
|
8019
|
+
resourceId: {
|
|
8020
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.",
|
|
8021
|
+
anyOf: [
|
|
8022
|
+
{
|
|
8023
|
+
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
8024
|
+
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8025
|
+
type: "string"
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
type: "null"
|
|
8029
|
+
}
|
|
8030
|
+
],
|
|
8031
|
+
default: null
|
|
8032
|
+
},
|
|
8033
|
+
resourceName: {
|
|
8034
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
8035
|
+
type: "string"
|
|
8036
|
+
},
|
|
8037
|
+
serviceId: {
|
|
8038
|
+
description: "Service identifier within the authenticated organization.",
|
|
8039
|
+
pattern: "^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8040
|
+
type: "string"
|
|
8041
|
+
}
|
|
8042
|
+
}
|
|
8043
|
+
},
|
|
8044
|
+
title: "Create Waitlist Entry",
|
|
8045
|
+
description: "An authenticated staff user records a consented waitlist request without sending or queuing messages, emails, offers or patient follow-ups. A repeat for the same patient, service and reason returns the existing open entry without changing it; use update with expectedVersion to amend it. Read the returned entry before claiming any preference was saved. This operation never books an appointment. Requires a user login with agenda:waitlist:write; service tokens and native agents cannot call it.",
|
|
8046
|
+
effect: "write",
|
|
8047
|
+
confirmation: null,
|
|
8048
|
+
hidden: false
|
|
8049
|
+
},
|
|
7706
8050
|
"agenda waitlist join": {
|
|
7707
8051
|
operation: "agenda.waitlist.join",
|
|
7708
8052
|
sdkPath: [
|
|
@@ -7747,6 +8091,13 @@ var commands = {
|
|
|
7747
8091
|
required: false,
|
|
7748
8092
|
description: "The contact phone supplied or confirmed by the person for this request. Replaces their stored contact phone; omitted or null preserves it."
|
|
7749
8093
|
},
|
|
8094
|
+
{
|
|
8095
|
+
name: "resourceName",
|
|
8096
|
+
flag: "resource-name",
|
|
8097
|
+
kind: "string",
|
|
8098
|
+
required: false,
|
|
8099
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."
|
|
8100
|
+
},
|
|
7750
8101
|
{
|
|
7751
8102
|
name: "reason",
|
|
7752
8103
|
flag: "reason",
|
|
@@ -7764,7 +8115,7 @@ var commands = {
|
|
|
7764
8115
|
flag: "resource-id",
|
|
7765
8116
|
kind: "string",
|
|
7766
8117
|
required: false,
|
|
7767
|
-
description: "One professional or agenda
|
|
8118
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note."
|
|
7768
8119
|
},
|
|
7769
8120
|
{
|
|
7770
8121
|
name: "serviceId",
|
|
@@ -7957,6 +8308,10 @@ var commands = {
|
|
|
7957
8308
|
},
|
|
7958
8309
|
description: "Patient availability preferences retained with the waiting-list entry."
|
|
7959
8310
|
},
|
|
8311
|
+
resourceName: {
|
|
8312
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
8313
|
+
type: "string"
|
|
8314
|
+
},
|
|
7960
8315
|
reason: {
|
|
7961
8316
|
anyOf: [
|
|
7962
8317
|
{
|
|
@@ -7975,7 +8330,7 @@ var commands = {
|
|
|
7975
8330
|
description: "manual records a consented waitlist request after no suitable availability; payer_review asks staff to coordinate a restricted payer; priority asks staff to bring an existing booking forward."
|
|
7976
8331
|
},
|
|
7977
8332
|
resourceId: {
|
|
7978
|
-
description: "One professional or agenda
|
|
8333
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.",
|
|
7979
8334
|
anyOf: [
|
|
7980
8335
|
{
|
|
7981
8336
|
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
@@ -8019,7 +8374,7 @@ var commands = {
|
|
|
8019
8374
|
}
|
|
8020
8375
|
},
|
|
8021
8376
|
title: "Add a patient to the waiting list",
|
|
8022
|
-
description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, documentNumber and documentType, phone, serviceId and the payer as the patient said it. Use
|
|
8377
|
+
description: "Put a patient on the clinic's waiting list for the team to act on, only with the person's consent. Use reason 'payer_review' instead of booking when the patient's payer (EPS) has bookingPolicy 'staff_only' in get_intake_settings (create_appointment refuses them): the team coordinates with the doctor and books it. Use reason 'priority' right after create_appointment when the patient asked for a priority (urgent) appointment: pass that appointment's id as appointmentId so the team can bring it forward. For agent calls, the platform supplies conversationUrl from the invoking conversation; omit that field. Direct callers may supply the referring conversation link so the team can reopen it. Pass the patient's name, documentNumber and documentType, phone, serviceId and the payer as the patient said it. Use resourceName for the requested professional when the Agenda id is unknown. It resolves a unique active agenda for serviceId. If using resourceId, copy agendas[].id from bookingOfferings.list verbatim; its top-level id identifies an offering. Never rewrite a prefix. Search the catalog with a short clinical term, such as neurología, then select the exact serviceId. A WAITLIST_SERVICE_UNAVAILABLE, WAITLIST_RESOURCE_UNAVAILABLE or WAITLIST_RESOURCE_AMBIGUOUS refusal changes no waiting-list entry: correct the reference and retry using the existing consent. For a professional documented in the provider system but absent from Agenda, retain the restriction explicitly in note, omit resourceName and use resourceId:null on the same manual request. This is a manual preference for the team, never permission to offer any other doctor. If the person accepts several named professionals, preserve their names and the complete time window in note rather than inventing one resource ID. Calling again for the same patient, service and reason returns the same open entry. Only a request from the same verified Raíz conversation may reconcile manual and priority as one entry; payer_review stays separate. A consented reason priority request from the same verified Raíz conversation promotes a manual entry created in that same native conversation in place to priority urgent, preserving its ID, open status and queue date. For an Agenda booking include its verified appointmentId; for an external booking omit that ID and retain the verified booking in note. Historical entries, another conversation and explicit desk priority decisions are preserved; inspect the returned priority and never claim an upgrade unless it is urgent. A later manual join never lowers or duplicates that priority request. Supplied consented preferences, note, payer, conversation and appointment association can be reconciled; omit unchanged fields to retain them. A supplied confirmed phone replaces the patient contact phone; omitted or null phone preserves it. Omitted fields preserve their values; resourceId:null clears the Agenda resource filter, but never clears a named-professional restriction recorded in note. When supplying preferences, send the complete consented date/time window; null fields clear those limits. Identical repeats do not change the version. Staff status, explicit desk priority and original queue position are preserved. A closed entry is not reopened. This registers a waiting-list request, never an appointment. Then tell the patient the clinic's team will contact them.",
|
|
8023
8378
|
effect: "write",
|
|
8024
8379
|
confirmation: null,
|
|
8025
8380
|
hidden: false
|
|
@@ -8072,7 +8427,7 @@ var commands = {
|
|
|
8072
8427
|
flag: "resource-id",
|
|
8073
8428
|
kind: "string",
|
|
8074
8429
|
required: false,
|
|
8075
|
-
description: "Only entries that asked for this professional or agenda; entries
|
|
8430
|
+
description: "Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out."
|
|
8076
8431
|
},
|
|
8077
8432
|
{
|
|
8078
8433
|
name: "serviceId",
|
|
@@ -8118,7 +8473,7 @@ var commands = {
|
|
|
8118
8473
|
type: "string"
|
|
8119
8474
|
},
|
|
8120
8475
|
resourceId: {
|
|
8121
|
-
description: "Only entries that asked for this professional or agenda; entries
|
|
8476
|
+
description: "Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out.",
|
|
8122
8477
|
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8123
8478
|
type: "string"
|
|
8124
8479
|
},
|
|
@@ -8135,6 +8490,240 @@ var commands = {
|
|
|
8135
8490
|
confirmation: null,
|
|
8136
8491
|
hidden: false
|
|
8137
8492
|
},
|
|
8493
|
+
"agenda waitlist update": {
|
|
8494
|
+
operation: "agenda.waitlist.update",
|
|
8495
|
+
sdkPath: [
|
|
8496
|
+
"agenda",
|
|
8497
|
+
"waitlist",
|
|
8498
|
+
"update"
|
|
8499
|
+
],
|
|
8500
|
+
pathField: "waitlistEntryId",
|
|
8501
|
+
fields: [
|
|
8502
|
+
{
|
|
8503
|
+
name: "appointmentId",
|
|
8504
|
+
flag: "appointment-id",
|
|
8505
|
+
kind: "string",
|
|
8506
|
+
required: false,
|
|
8507
|
+
description: "Appointment associated with this waiting-list entry; null clears the association."
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
name: "expectedVersion",
|
|
8511
|
+
flag: "expected-version",
|
|
8512
|
+
kind: "integer",
|
|
8513
|
+
required: true,
|
|
8514
|
+
description: "Version last read by the caller. The mutation fails if another writer has changed this record."
|
|
8515
|
+
},
|
|
8516
|
+
{
|
|
8517
|
+
name: "conversationUrl",
|
|
8518
|
+
flag: "conversation-url",
|
|
8519
|
+
kind: "string",
|
|
8520
|
+
required: false,
|
|
8521
|
+
description: "HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."
|
|
8522
|
+
},
|
|
8523
|
+
{
|
|
8524
|
+
name: "resourceId",
|
|
8525
|
+
flag: "resource-id",
|
|
8526
|
+
kind: "string",
|
|
8527
|
+
required: false,
|
|
8528
|
+
description: ""
|
|
8529
|
+
},
|
|
8530
|
+
{
|
|
8531
|
+
name: "resourceName",
|
|
8532
|
+
flag: "resource-name",
|
|
8533
|
+
kind: "string",
|
|
8534
|
+
required: false,
|
|
8535
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note."
|
|
8536
|
+
},
|
|
8537
|
+
{
|
|
8538
|
+
name: "note",
|
|
8539
|
+
flag: "note",
|
|
8540
|
+
kind: "string",
|
|
8541
|
+
required: false,
|
|
8542
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded."
|
|
8543
|
+
},
|
|
8544
|
+
{
|
|
8545
|
+
name: "priority",
|
|
8546
|
+
flag: "priority",
|
|
8547
|
+
kind: "string",
|
|
8548
|
+
required: false,
|
|
8549
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment.",
|
|
8550
|
+
choices: [
|
|
8551
|
+
"normal",
|
|
8552
|
+
"urgent"
|
|
8553
|
+
]
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
name: "status",
|
|
8557
|
+
flag: "status",
|
|
8558
|
+
kind: "string",
|
|
8559
|
+
required: false,
|
|
8560
|
+
description: "Current waiting-list state: waiting, contacted, booked, expired or removed.",
|
|
8561
|
+
choices: [
|
|
8562
|
+
"waiting",
|
|
8563
|
+
"offered",
|
|
8564
|
+
"booked",
|
|
8565
|
+
"cancelled"
|
|
8566
|
+
]
|
|
8567
|
+
}
|
|
8568
|
+
],
|
|
8569
|
+
inputSchema: {
|
|
8570
|
+
additionalProperties: false,
|
|
8571
|
+
type: "object",
|
|
8572
|
+
required: [
|
|
8573
|
+
"expectedVersion",
|
|
8574
|
+
"waitlistEntryId"
|
|
8575
|
+
],
|
|
8576
|
+
properties: {
|
|
8577
|
+
appointmentId: {
|
|
8578
|
+
anyOf: [
|
|
8579
|
+
{
|
|
8580
|
+
description: "Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
8581
|
+
pattern: "^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8582
|
+
type: "string"
|
|
8583
|
+
},
|
|
8584
|
+
{
|
|
8585
|
+
type: "null"
|
|
8586
|
+
}
|
|
8587
|
+
],
|
|
8588
|
+
description: "Appointment associated with this waiting-list entry; null clears the association."
|
|
8589
|
+
},
|
|
8590
|
+
expectedVersion: {
|
|
8591
|
+
exclusiveMinimum: 0,
|
|
8592
|
+
description: "Version last read by the caller. The mutation fails if another writer has changed this record.",
|
|
8593
|
+
type: "integer"
|
|
8594
|
+
},
|
|
8595
|
+
conversationUrl: {
|
|
8596
|
+
anyOf: [
|
|
8597
|
+
{
|
|
8598
|
+
format: "uri",
|
|
8599
|
+
maxLength: 500,
|
|
8600
|
+
type: "string"
|
|
8601
|
+
},
|
|
8602
|
+
{
|
|
8603
|
+
type: "null"
|
|
8604
|
+
}
|
|
8605
|
+
],
|
|
8606
|
+
description: "HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."
|
|
8607
|
+
},
|
|
8608
|
+
preferences: {
|
|
8609
|
+
additionalProperties: false,
|
|
8610
|
+
type: "object",
|
|
8611
|
+
required: [],
|
|
8612
|
+
properties: {
|
|
8613
|
+
from: {
|
|
8614
|
+
description: "From this local date (YYYY-MM-DD).",
|
|
8615
|
+
anyOf: [
|
|
8616
|
+
{
|
|
8617
|
+
format: "date",
|
|
8618
|
+
type: "string"
|
|
8619
|
+
},
|
|
8620
|
+
{
|
|
8621
|
+
type: "null"
|
|
8622
|
+
}
|
|
8623
|
+
],
|
|
8624
|
+
default: null
|
|
8625
|
+
},
|
|
8626
|
+
times: {
|
|
8627
|
+
description: '"Martes y jueves en la mañana".',
|
|
8628
|
+
anyOf: [
|
|
8629
|
+
{
|
|
8630
|
+
type: "string"
|
|
8631
|
+
},
|
|
8632
|
+
{
|
|
8633
|
+
type: "null"
|
|
8634
|
+
}
|
|
8635
|
+
],
|
|
8636
|
+
default: null
|
|
8637
|
+
},
|
|
8638
|
+
to: {
|
|
8639
|
+
description: "Until this local date (YYYY-MM-DD).",
|
|
8640
|
+
anyOf: [
|
|
8641
|
+
{
|
|
8642
|
+
format: "date",
|
|
8643
|
+
type: "string"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
type: "null"
|
|
8647
|
+
}
|
|
8648
|
+
],
|
|
8649
|
+
default: null
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
},
|
|
8653
|
+
resourceId: {
|
|
8654
|
+
anyOf: [
|
|
8655
|
+
{
|
|
8656
|
+
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
8657
|
+
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8658
|
+
type: "string"
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
type: "null"
|
|
8662
|
+
}
|
|
8663
|
+
]
|
|
8664
|
+
},
|
|
8665
|
+
resourceName: {
|
|
8666
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
8667
|
+
type: "string"
|
|
8668
|
+
},
|
|
8669
|
+
note: {
|
|
8670
|
+
anyOf: [
|
|
8671
|
+
{
|
|
8672
|
+
type: "string"
|
|
8673
|
+
},
|
|
8674
|
+
{
|
|
8675
|
+
type: "null"
|
|
8676
|
+
}
|
|
8677
|
+
],
|
|
8678
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded."
|
|
8679
|
+
},
|
|
8680
|
+
priority: {
|
|
8681
|
+
anyOf: [
|
|
8682
|
+
{
|
|
8683
|
+
const: "normal",
|
|
8684
|
+
type: "string"
|
|
8685
|
+
},
|
|
8686
|
+
{
|
|
8687
|
+
const: "urgent",
|
|
8688
|
+
type: "string"
|
|
8689
|
+
}
|
|
8690
|
+
],
|
|
8691
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment."
|
|
8692
|
+
},
|
|
8693
|
+
status: {
|
|
8694
|
+
anyOf: [
|
|
8695
|
+
{
|
|
8696
|
+
const: "waiting",
|
|
8697
|
+
type: "string"
|
|
8698
|
+
},
|
|
8699
|
+
{
|
|
8700
|
+
const: "offered",
|
|
8701
|
+
type: "string"
|
|
8702
|
+
},
|
|
8703
|
+
{
|
|
8704
|
+
const: "booked",
|
|
8705
|
+
type: "string"
|
|
8706
|
+
},
|
|
8707
|
+
{
|
|
8708
|
+
const: "cancelled",
|
|
8709
|
+
type: "string"
|
|
8710
|
+
}
|
|
8711
|
+
],
|
|
8712
|
+
description: "Current waiting-list state: waiting, contacted, booked, expired or removed."
|
|
8713
|
+
},
|
|
8714
|
+
waitlistEntryId: {
|
|
8715
|
+
description: "Organization-owned waiting-list entry identifier.",
|
|
8716
|
+
pattern: "^wle_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
8717
|
+
type: "string"
|
|
8718
|
+
}
|
|
8719
|
+
}
|
|
8720
|
+
},
|
|
8721
|
+
title: "Update Waitlist Entry",
|
|
8722
|
+
description: "An authenticated staff user amends one existing waitlist entry with expectedVersion, preserving its ID, patient, service and queue position. Omitted preferences, professional, priority and appointment association are preserved. Send the complete consented date/time window when replacing preferences. Use resourceId:null only to clear the Agenda resource filter and retain any external or multiple-professional restriction explicitly in note. Sends and queues no messages, emails, offers or patient follow-ups and never changes a booking. Requires a user login with agenda:waitlist:write; service tokens and native agents cannot call it.",
|
|
8723
|
+
effect: "write",
|
|
8724
|
+
confirmation: null,
|
|
8725
|
+
hidden: false
|
|
8726
|
+
},
|
|
8138
8727
|
"axxa authorizations lookup": {
|
|
8139
8728
|
operation: "axxa.authorizations.lookup",
|
|
8140
8729
|
sdkPath: [
|
|
@@ -36146,6 +36735,93 @@ var schemaComponents = {
|
|
|
36146
36735
|
}
|
|
36147
36736
|
}
|
|
36148
36737
|
},
|
|
36738
|
+
{
|
|
36739
|
+
additionalProperties: false,
|
|
36740
|
+
type: "object",
|
|
36741
|
+
required: [
|
|
36742
|
+
"code",
|
|
36743
|
+
"message",
|
|
36744
|
+
"retryable",
|
|
36745
|
+
"data"
|
|
36746
|
+
],
|
|
36747
|
+
properties: {
|
|
36748
|
+
code: {
|
|
36749
|
+
const: "WAITLIST_SERVICE_UNAVAILABLE",
|
|
36750
|
+
type: "string"
|
|
36751
|
+
},
|
|
36752
|
+
message: {
|
|
36753
|
+
const: "Correct serviceId using serviceId from bookingOfferings.list. Search a short service term such as neurología, then inspect the matching service name. Never invent an ID. No waiting-list entry was changed; correct this field and retry with the same consent.",
|
|
36754
|
+
type: "string"
|
|
36755
|
+
},
|
|
36756
|
+
retryable: {
|
|
36757
|
+
const: false,
|
|
36758
|
+
type: "boolean"
|
|
36759
|
+
},
|
|
36760
|
+
data: {
|
|
36761
|
+
additionalProperties: false,
|
|
36762
|
+
type: "object",
|
|
36763
|
+
properties: {}
|
|
36764
|
+
}
|
|
36765
|
+
}
|
|
36766
|
+
},
|
|
36767
|
+
{
|
|
36768
|
+
additionalProperties: false,
|
|
36769
|
+
type: "object",
|
|
36770
|
+
required: [
|
|
36771
|
+
"code",
|
|
36772
|
+
"message",
|
|
36773
|
+
"retryable",
|
|
36774
|
+
"data"
|
|
36775
|
+
],
|
|
36776
|
+
properties: {
|
|
36777
|
+
code: {
|
|
36778
|
+
const: "WAITLIST_RESOURCE_UNAVAILABLE",
|
|
36779
|
+
type: "string"
|
|
36780
|
+
},
|
|
36781
|
+
message: {
|
|
36782
|
+
const: "The requested professional is not an active agenda for this service. Use resourceName for the requested professional or copy agendas[].id from bookingOfferings.list, never the offering id. If both are supplied, they must agree. No waiting-list entry was changed. Correct the reference with the same consent. If a verified provider professional is absent from Agenda, omit resourceName, clear resourceId and explicitly restrict the manual request to that professional in note.",
|
|
36783
|
+
type: "string"
|
|
36784
|
+
},
|
|
36785
|
+
retryable: {
|
|
36786
|
+
const: false,
|
|
36787
|
+
type: "boolean"
|
|
36788
|
+
},
|
|
36789
|
+
data: {
|
|
36790
|
+
additionalProperties: false,
|
|
36791
|
+
type: "object",
|
|
36792
|
+
properties: {}
|
|
36793
|
+
}
|
|
36794
|
+
}
|
|
36795
|
+
},
|
|
36796
|
+
{
|
|
36797
|
+
additionalProperties: false,
|
|
36798
|
+
type: "object",
|
|
36799
|
+
required: [
|
|
36800
|
+
"code",
|
|
36801
|
+
"message",
|
|
36802
|
+
"retryable",
|
|
36803
|
+
"data"
|
|
36804
|
+
],
|
|
36805
|
+
properties: {
|
|
36806
|
+
code: {
|
|
36807
|
+
const: "WAITLIST_RESOURCE_AMBIGUOUS",
|
|
36808
|
+
type: "string"
|
|
36809
|
+
},
|
|
36810
|
+
message: {
|
|
36811
|
+
const: "More than one active agenda matches resourceName for this service. Read bookingOfferings.list and provide the complete requested professional name or its agendas[].id. No waiting-list entry was changed.",
|
|
36812
|
+
type: "string"
|
|
36813
|
+
},
|
|
36814
|
+
retryable: {
|
|
36815
|
+
const: false,
|
|
36816
|
+
type: "boolean"
|
|
36817
|
+
},
|
|
36818
|
+
data: {
|
|
36819
|
+
additionalProperties: false,
|
|
36820
|
+
type: "object",
|
|
36821
|
+
properties: {}
|
|
36822
|
+
}
|
|
36823
|
+
}
|
|
36824
|
+
},
|
|
36149
36825
|
{
|
|
36150
36826
|
additionalProperties: false,
|
|
36151
36827
|
type: "object",
|
|
@@ -76731,6 +77407,7 @@ var schemaComponents = {
|
|
|
76731
77407
|
required: [
|
|
76732
77408
|
"channels",
|
|
76733
77409
|
"dailyReport",
|
|
77410
|
+
"productNotices",
|
|
76734
77411
|
"notifications",
|
|
76735
77412
|
"whatsapp"
|
|
76736
77413
|
],
|
|
@@ -97108,6 +97785,240 @@ var schemaComponents = {
|
|
|
97108
97785
|
}
|
|
97109
97786
|
}
|
|
97110
97787
|
},
|
|
97788
|
+
AgendaWaitlistCreateInput: {
|
|
97789
|
+
additionalProperties: false,
|
|
97790
|
+
type: "object",
|
|
97791
|
+
required: [
|
|
97792
|
+
"patient",
|
|
97793
|
+
"serviceId"
|
|
97794
|
+
],
|
|
97795
|
+
properties: {
|
|
97796
|
+
appointmentId: {
|
|
97797
|
+
description: "The appointment it relates to: a priority to bring forward.",
|
|
97798
|
+
anyOf: [
|
|
97799
|
+
{
|
|
97800
|
+
description: "Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
97801
|
+
pattern: "^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
97802
|
+
type: "string"
|
|
97803
|
+
},
|
|
97804
|
+
{
|
|
97805
|
+
type: "null"
|
|
97806
|
+
}
|
|
97807
|
+
],
|
|
97808
|
+
default: null
|
|
97809
|
+
},
|
|
97810
|
+
conversationUrl: {
|
|
97811
|
+
anyOf: [
|
|
97812
|
+
{
|
|
97813
|
+
format: "uri",
|
|
97814
|
+
maxLength: 500,
|
|
97815
|
+
type: "string"
|
|
97816
|
+
},
|
|
97817
|
+
{
|
|
97818
|
+
type: "null"
|
|
97819
|
+
}
|
|
97820
|
+
],
|
|
97821
|
+
default: null,
|
|
97822
|
+
description: "Agent conversation URL retained so the scheduling team can reopen the referring conversation."
|
|
97823
|
+
},
|
|
97824
|
+
note: {
|
|
97825
|
+
anyOf: [
|
|
97826
|
+
{
|
|
97827
|
+
type: "string"
|
|
97828
|
+
},
|
|
97829
|
+
{
|
|
97830
|
+
type: "null"
|
|
97831
|
+
}
|
|
97832
|
+
],
|
|
97833
|
+
default: null,
|
|
97834
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded."
|
|
97835
|
+
},
|
|
97836
|
+
patient: {
|
|
97837
|
+
additionalProperties: false,
|
|
97838
|
+
type: "object",
|
|
97839
|
+
required: [
|
|
97840
|
+
"name"
|
|
97841
|
+
],
|
|
97842
|
+
properties: {
|
|
97843
|
+
documentNumber: {
|
|
97844
|
+
anyOf: [
|
|
97845
|
+
{
|
|
97846
|
+
type: "string"
|
|
97847
|
+
},
|
|
97848
|
+
{
|
|
97849
|
+
type: "null"
|
|
97850
|
+
}
|
|
97851
|
+
],
|
|
97852
|
+
description: 'Patient document number as typed ("12.345.678"), stored normalized; null when the patient has none. Identity combines its type and number.'
|
|
97853
|
+
},
|
|
97854
|
+
documentType: {
|
|
97855
|
+
anyOf: [
|
|
97856
|
+
{
|
|
97857
|
+
description: "Document-type code from the organization’s configured active types. Input is trimmed and uppercased.",
|
|
97858
|
+
type: "string"
|
|
97859
|
+
},
|
|
97860
|
+
{
|
|
97861
|
+
type: "null"
|
|
97862
|
+
}
|
|
97863
|
+
],
|
|
97864
|
+
default: null,
|
|
97865
|
+
description: "Organization-configured document type code. A number without a supplied type uses the configured first type; no number means no stored type."
|
|
97866
|
+
},
|
|
97867
|
+
name: {
|
|
97868
|
+
type: "string",
|
|
97869
|
+
description: "Patient display name with surrounding whitespace removed."
|
|
97870
|
+
},
|
|
97871
|
+
document: {
|
|
97872
|
+
anyOf: [
|
|
97873
|
+
{
|
|
97874
|
+
type: "string"
|
|
97875
|
+
},
|
|
97876
|
+
{
|
|
97877
|
+
type: "null"
|
|
97878
|
+
}
|
|
97879
|
+
],
|
|
97880
|
+
description: "Deprecated: use `documentNumber`. Answered until 2027-01-28.",
|
|
97881
|
+
deprecated: true
|
|
97882
|
+
}
|
|
97883
|
+
}
|
|
97884
|
+
},
|
|
97885
|
+
patientId: {
|
|
97886
|
+
description: "Registered patient selected by the desk; document resolution remains authoritative for patient identity.",
|
|
97887
|
+
pattern: "^pat_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
97888
|
+
type: "string"
|
|
97889
|
+
},
|
|
97890
|
+
payer: {
|
|
97891
|
+
description: "The payer the patient named, as said.",
|
|
97892
|
+
anyOf: [
|
|
97893
|
+
{
|
|
97894
|
+
type: "string"
|
|
97895
|
+
},
|
|
97896
|
+
{
|
|
97897
|
+
type: "null"
|
|
97898
|
+
}
|
|
97899
|
+
],
|
|
97900
|
+
default: null
|
|
97901
|
+
},
|
|
97902
|
+
phone: {
|
|
97903
|
+
anyOf: [
|
|
97904
|
+
{
|
|
97905
|
+
type: "string"
|
|
97906
|
+
},
|
|
97907
|
+
{
|
|
97908
|
+
type: "null"
|
|
97909
|
+
}
|
|
97910
|
+
],
|
|
97911
|
+
default: null,
|
|
97912
|
+
description: "Patient contact telephone number; null when no number was recorded."
|
|
97913
|
+
},
|
|
97914
|
+
preferences: {
|
|
97915
|
+
additionalProperties: false,
|
|
97916
|
+
type: "object",
|
|
97917
|
+
required: [],
|
|
97918
|
+
properties: {
|
|
97919
|
+
from: {
|
|
97920
|
+
description: "From this local date (YYYY-MM-DD).",
|
|
97921
|
+
anyOf: [
|
|
97922
|
+
{
|
|
97923
|
+
format: "date",
|
|
97924
|
+
type: "string"
|
|
97925
|
+
},
|
|
97926
|
+
{
|
|
97927
|
+
type: "null"
|
|
97928
|
+
}
|
|
97929
|
+
],
|
|
97930
|
+
default: null
|
|
97931
|
+
},
|
|
97932
|
+
times: {
|
|
97933
|
+
description: '"Martes y jueves en la mañana".',
|
|
97934
|
+
anyOf: [
|
|
97935
|
+
{
|
|
97936
|
+
type: "string"
|
|
97937
|
+
},
|
|
97938
|
+
{
|
|
97939
|
+
type: "null"
|
|
97940
|
+
}
|
|
97941
|
+
],
|
|
97942
|
+
default: null
|
|
97943
|
+
},
|
|
97944
|
+
to: {
|
|
97945
|
+
description: "Until this local date (YYYY-MM-DD).",
|
|
97946
|
+
anyOf: [
|
|
97947
|
+
{
|
|
97948
|
+
format: "date",
|
|
97949
|
+
type: "string"
|
|
97950
|
+
},
|
|
97951
|
+
{
|
|
97952
|
+
type: "null"
|
|
97953
|
+
}
|
|
97954
|
+
],
|
|
97955
|
+
default: null
|
|
97956
|
+
}
|
|
97957
|
+
},
|
|
97958
|
+
default: {
|
|
97959
|
+
from: null,
|
|
97960
|
+
times: null,
|
|
97961
|
+
to: null
|
|
97962
|
+
},
|
|
97963
|
+
description: "Patient availability preferences retained with the waiting-list entry."
|
|
97964
|
+
},
|
|
97965
|
+
priority: {
|
|
97966
|
+
anyOf: [
|
|
97967
|
+
{
|
|
97968
|
+
const: "normal",
|
|
97969
|
+
type: "string"
|
|
97970
|
+
},
|
|
97971
|
+
{
|
|
97972
|
+
const: "urgent",
|
|
97973
|
+
type: "string"
|
|
97974
|
+
}
|
|
97975
|
+
],
|
|
97976
|
+
default: "normal",
|
|
97977
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment."
|
|
97978
|
+
},
|
|
97979
|
+
reason: {
|
|
97980
|
+
anyOf: [
|
|
97981
|
+
{
|
|
97982
|
+
const: "manual",
|
|
97983
|
+
type: "string"
|
|
97984
|
+
},
|
|
97985
|
+
{
|
|
97986
|
+
const: "payer_review",
|
|
97987
|
+
type: "string"
|
|
97988
|
+
},
|
|
97989
|
+
{
|
|
97990
|
+
const: "priority",
|
|
97991
|
+
type: "string"
|
|
97992
|
+
}
|
|
97993
|
+
],
|
|
97994
|
+
description: "Why: by hand, a payer only the team books, or a priority to bring forward.",
|
|
97995
|
+
default: "manual"
|
|
97996
|
+
},
|
|
97997
|
+
resourceId: {
|
|
97998
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.",
|
|
97999
|
+
anyOf: [
|
|
98000
|
+
{
|
|
98001
|
+
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
98002
|
+
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
98003
|
+
type: "string"
|
|
98004
|
+
},
|
|
98005
|
+
{
|
|
98006
|
+
type: "null"
|
|
98007
|
+
}
|
|
98008
|
+
],
|
|
98009
|
+
default: null
|
|
98010
|
+
},
|
|
98011
|
+
resourceName: {
|
|
98012
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
98013
|
+
type: "string"
|
|
98014
|
+
},
|
|
98015
|
+
serviceId: {
|
|
98016
|
+
description: "Service identifier within the authenticated organization.",
|
|
98017
|
+
pattern: "^svc_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
98018
|
+
type: "string"
|
|
98019
|
+
}
|
|
98020
|
+
}
|
|
98021
|
+
},
|
|
97111
98022
|
AgendaWaitlistListInput: {
|
|
97112
98023
|
additionalProperties: false,
|
|
97113
98024
|
type: "object",
|
|
@@ -97144,7 +98055,7 @@ var schemaComponents = {
|
|
|
97144
98055
|
type: "string"
|
|
97145
98056
|
},
|
|
97146
98057
|
resourceId: {
|
|
97147
|
-
description: "Only entries that asked for this professional or agenda; entries
|
|
98058
|
+
description: "Only entries that asked for this professional or agenda; entries with no Agenda resource filter (resourceId null, including manual professional restrictions in note) are left out.",
|
|
97148
98059
|
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
97149
98060
|
type: "string"
|
|
97150
98061
|
},
|
|
@@ -97155,6 +98066,158 @@ var schemaComponents = {
|
|
|
97155
98066
|
}
|
|
97156
98067
|
}
|
|
97157
98068
|
},
|
|
98069
|
+
AgendaWaitlistUpdateInput: {
|
|
98070
|
+
additionalProperties: false,
|
|
98071
|
+
type: "object",
|
|
98072
|
+
required: [
|
|
98073
|
+
"expectedVersion",
|
|
98074
|
+
"waitlistEntryId"
|
|
98075
|
+
],
|
|
98076
|
+
properties: {
|
|
98077
|
+
appointmentId: {
|
|
98078
|
+
anyOf: [
|
|
98079
|
+
{
|
|
98080
|
+
description: "Stable eng-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
98081
|
+
pattern: "^eng_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
98082
|
+
type: "string"
|
|
98083
|
+
},
|
|
98084
|
+
{
|
|
98085
|
+
type: "null"
|
|
98086
|
+
}
|
|
98087
|
+
],
|
|
98088
|
+
description: "Appointment associated with this waiting-list entry; null clears the association."
|
|
98089
|
+
},
|
|
98090
|
+
expectedVersion: {
|
|
98091
|
+
exclusiveMinimum: 0,
|
|
98092
|
+
description: "Version last read by the caller. The mutation fails if another writer has changed this record.",
|
|
98093
|
+
type: "integer"
|
|
98094
|
+
},
|
|
98095
|
+
conversationUrl: {
|
|
98096
|
+
anyOf: [
|
|
98097
|
+
{
|
|
98098
|
+
format: "uri",
|
|
98099
|
+
maxLength: 500,
|
|
98100
|
+
type: "string"
|
|
98101
|
+
},
|
|
98102
|
+
{
|
|
98103
|
+
type: "null"
|
|
98104
|
+
}
|
|
98105
|
+
],
|
|
98106
|
+
description: "HTTPS link to the originating Arbol conversation on an admitted product hostname; null when absent."
|
|
98107
|
+
},
|
|
98108
|
+
preferences: {
|
|
98109
|
+
additionalProperties: false,
|
|
98110
|
+
type: "object",
|
|
98111
|
+
required: [],
|
|
98112
|
+
properties: {
|
|
98113
|
+
from: {
|
|
98114
|
+
description: "From this local date (YYYY-MM-DD).",
|
|
98115
|
+
anyOf: [
|
|
98116
|
+
{
|
|
98117
|
+
format: "date",
|
|
98118
|
+
type: "string"
|
|
98119
|
+
},
|
|
98120
|
+
{
|
|
98121
|
+
type: "null"
|
|
98122
|
+
}
|
|
98123
|
+
],
|
|
98124
|
+
default: null
|
|
98125
|
+
},
|
|
98126
|
+
times: {
|
|
98127
|
+
description: '"Martes y jueves en la mañana".',
|
|
98128
|
+
anyOf: [
|
|
98129
|
+
{
|
|
98130
|
+
type: "string"
|
|
98131
|
+
},
|
|
98132
|
+
{
|
|
98133
|
+
type: "null"
|
|
98134
|
+
}
|
|
98135
|
+
],
|
|
98136
|
+
default: null
|
|
98137
|
+
},
|
|
98138
|
+
to: {
|
|
98139
|
+
description: "Until this local date (YYYY-MM-DD).",
|
|
98140
|
+
anyOf: [
|
|
98141
|
+
{
|
|
98142
|
+
format: "date",
|
|
98143
|
+
type: "string"
|
|
98144
|
+
},
|
|
98145
|
+
{
|
|
98146
|
+
type: "null"
|
|
98147
|
+
}
|
|
98148
|
+
],
|
|
98149
|
+
default: null
|
|
98150
|
+
}
|
|
98151
|
+
}
|
|
98152
|
+
},
|
|
98153
|
+
resourceId: {
|
|
98154
|
+
anyOf: [
|
|
98155
|
+
{
|
|
98156
|
+
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
98157
|
+
pattern: "^srs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
98158
|
+
type: "string"
|
|
98159
|
+
},
|
|
98160
|
+
{
|
|
98161
|
+
type: "null"
|
|
98162
|
+
}
|
|
98163
|
+
]
|
|
98164
|
+
},
|
|
98165
|
+
resourceName: {
|
|
98166
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
98167
|
+
type: "string"
|
|
98168
|
+
},
|
|
98169
|
+
note: {
|
|
98170
|
+
anyOf: [
|
|
98171
|
+
{
|
|
98172
|
+
type: "string"
|
|
98173
|
+
},
|
|
98174
|
+
{
|
|
98175
|
+
type: "null"
|
|
98176
|
+
}
|
|
98177
|
+
],
|
|
98178
|
+
description: "Desk note attached to the waiting-list entry; null means no note is recorded."
|
|
98179
|
+
},
|
|
98180
|
+
priority: {
|
|
98181
|
+
anyOf: [
|
|
98182
|
+
{
|
|
98183
|
+
const: "normal",
|
|
98184
|
+
type: "string"
|
|
98185
|
+
},
|
|
98186
|
+
{
|
|
98187
|
+
const: "urgent",
|
|
98188
|
+
type: "string"
|
|
98189
|
+
}
|
|
98190
|
+
],
|
|
98191
|
+
description: "Whether the waiting-list entry requests normal handling or an urgent appointment."
|
|
98192
|
+
},
|
|
98193
|
+
status: {
|
|
98194
|
+
anyOf: [
|
|
98195
|
+
{
|
|
98196
|
+
const: "waiting",
|
|
98197
|
+
type: "string"
|
|
98198
|
+
},
|
|
98199
|
+
{
|
|
98200
|
+
const: "offered",
|
|
98201
|
+
type: "string"
|
|
98202
|
+
},
|
|
98203
|
+
{
|
|
98204
|
+
const: "booked",
|
|
98205
|
+
type: "string"
|
|
98206
|
+
},
|
|
98207
|
+
{
|
|
98208
|
+
const: "cancelled",
|
|
98209
|
+
type: "string"
|
|
98210
|
+
}
|
|
98211
|
+
],
|
|
98212
|
+
description: "Current waiting-list state: waiting, contacted, booked, expired or removed."
|
|
98213
|
+
},
|
|
98214
|
+
waitlistEntryId: {
|
|
98215
|
+
description: "Organization-owned waiting-list entry identifier.",
|
|
98216
|
+
pattern: "^wle_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
98217
|
+
type: "string"
|
|
98218
|
+
}
|
|
98219
|
+
}
|
|
98220
|
+
},
|
|
97158
98221
|
AgendaWaitlistJoinInput: {
|
|
97159
98222
|
additionalProperties: false,
|
|
97160
98223
|
type: "object",
|
|
@@ -97319,6 +98382,10 @@ var schemaComponents = {
|
|
|
97319
98382
|
},
|
|
97320
98383
|
description: "Patient availability preferences retained with the waiting-list entry."
|
|
97321
98384
|
},
|
|
98385
|
+
resourceName: {
|
|
98386
|
+
description: "The requested professional or agenda name. Resolves only one active agenda offering this service, ignoring accents and professional titles. If resourceId is supplied too, it must identify the same agenda. For a documented external professional absent from Agenda, omit resourceName/resourceId and explicitly restrict the manual request to that professional in note.",
|
|
98387
|
+
type: "string"
|
|
98388
|
+
},
|
|
97322
98389
|
reason: {
|
|
97323
98390
|
anyOf: [
|
|
97324
98391
|
{
|
|
@@ -97337,7 +98404,7 @@ var schemaComponents = {
|
|
|
97337
98404
|
description: "manual records a consented waitlist request after no suitable availability; payer_review asks staff to coordinate a restricted payer; priority asks staff to bring an existing booking forward."
|
|
97338
98405
|
},
|
|
97339
98406
|
resourceId: {
|
|
97340
|
-
description: "One professional or agenda
|
|
98407
|
+
description: "One professional or agenda: copy agendas[].id from bookingOfferings.list, never the offering id or a rewritten prefix. Null means no Agenda resource filter; retain any external professional restriction explicitly in note.",
|
|
97341
98408
|
anyOf: [
|
|
97342
98409
|
{
|
|
97343
98410
|
description: "Stable srs-prefixed Scheduling record identifier; ownership is checked in the authenticated organization.",
|
|
@@ -108501,9 +109568,9 @@ var schemaComponents = {
|
|
|
108501
109568
|
// src/generated/generation.json
|
|
108502
109569
|
var generation_default = {
|
|
108503
109570
|
formatVersion: 6,
|
|
108504
|
-
release: "1.20261104.
|
|
108505
|
-
openapiSha256: "
|
|
108506
|
-
openapiContentSha256: "
|
|
109571
|
+
release: "1.20261104.175529",
|
|
109572
|
+
openapiSha256: "891d2ea29469b4ca003a03583b771df2d65230ad229e2906772ad096ef25a9bc",
|
|
109573
|
+
openapiContentSha256: "1b369c7b1b5ca963a101a6b551fb7382d5e951b750583bd74122c518817ac2d4",
|
|
108507
109574
|
forge: {
|
|
108508
109575
|
repository: "https://github.com/cloudflare/forge",
|
|
108509
109576
|
commit: "7f86447210b7bea3779bfdab3cd5655eade0eadb",
|
|
@@ -108516,7 +109583,7 @@ var generation_default = {
|
|
|
108516
109583
|
outputs: [
|
|
108517
109584
|
{
|
|
108518
109585
|
path: "src/generated/commands.ts",
|
|
108519
|
-
sha256: "
|
|
109586
|
+
sha256: "7d6d40e887b99daab283d718f3159b444ebe5889e72a79e53e38367f7733eb12"
|
|
108520
109587
|
}
|
|
108521
109588
|
]
|
|
108522
109589
|
};
|
|
@@ -108871,7 +109938,7 @@ ${name}`);
|
|
|
108871
109938
|
}
|
|
108872
109939
|
|
|
108873
109940
|
// src/index.ts
|
|
108874
|
-
var VERSION = "3.
|
|
109941
|
+
var VERSION = "3.33.0";
|
|
108875
109942
|
var RELEASE = generation_default.release;
|
|
108876
109943
|
var SDK_PATHS = new Map(Object.values(commands).map((command) => [command.operation, command.sdkPath]));
|
|
108877
109944
|
var SERVICES = [...new Set(Object.keys(commands).map((name) => name.split(" ")[0]))].toSorted();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "The Arbol CLI: the Arbol API from your terminal, with commands generated by Cloudflare Forge from the public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"verify:with-tests": "bun run typecheck && bun run test && bun run build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arbol-ai/sdk": "5.
|
|
48
|
+
"@arbol-ai/sdk": "5.32.0",
|
|
49
49
|
"ajv": "8.20.0",
|
|
50
50
|
"ajv-formats": "3.0.1",
|
|
51
51
|
"oauth4webapi": "3.8.8"
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"packageManager": "bun@1.4.3",
|
|
61
61
|
"arbol": {
|
|
62
62
|
"openapi": {
|
|
63
|
-
"release": "1.20261104.
|
|
64
|
-
"sha256": "
|
|
63
|
+
"release": "1.20261104.175529",
|
|
64
|
+
"sha256": "1b369c7b1b5ca963a101a6b551fb7382d5e951b750583bd74122c518817ac2d4"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|