@vitrina/api 14.73.1 → 14.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -198493,6 +198493,809 @@ interface paths {
198493
198493
  patch?: never;
198494
198494
  trace?: never;
198495
198495
  };
198496
+ "/clinic/motivos": {
198497
+ parameters: {
198498
+ query?: never;
198499
+ header?: never;
198500
+ path?: never;
198501
+ cookie?: never;
198502
+ };
198503
+ /**
198504
+ * List the clinic’s motivos de atención
198505
+ * @description The «motivos de atención» mirrored from Dentalink/Medilink — the clinic system’s own bookable visit kinds per especialidad, each with its length and the professionals who attend it. `vendor_*` is what the clinic system said at the last resync; `duration_minutes` / `active` / the professional set are the effective values, which follow it unless `overrides` names them. `booking_catalog` says whether the AI agent and «Nueva cita» book against these or against the prestaciones.
198506
+ *
198507
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
198508
+ */
198509
+ get: {
198510
+ parameters: {
198511
+ query?: never;
198512
+ header?: never;
198513
+ path?: never;
198514
+ cookie?: never;
198515
+ };
198516
+ requestBody?: never;
198517
+ responses: {
198518
+ /** @description Motivos */
198519
+ 200: {
198520
+ headers: {
198521
+ [name: string]: unknown;
198522
+ };
198523
+ content: {
198524
+ /**
198525
+ * @example {
198526
+ * "data": {
198527
+ * "booking_catalog": "motivos",
198528
+ * "product": "dentalink",
198529
+ * "last_synced_at": "2026-10-22T18:00:00.000Z",
198530
+ * "last_error": null,
198531
+ * "motivos": [
198532
+ * {
198533
+ * "id": "0194e7a0-1c2b-7d3e-8f40-5a6b7c8d9e01",
198534
+ * "tenant_id": "0194e7a0-0000-7000-8000-000000000001",
198535
+ * "source": "healthatom",
198536
+ * "external_id": "23",
198537
+ * "nombre": "DIAGNOSTICO INTEGRAL ODONTOLOGIA",
198538
+ * "especialidad": "General",
198539
+ * "vendor_duration_minutes": 45,
198540
+ * "duration_minutes": 60,
198541
+ * "vendor_active": true,
198542
+ * "active": true,
198543
+ * "agent_bookable": true,
198544
+ * "color": "#cccccc",
198545
+ * "agenda_online": false,
198546
+ * "overrides": [
198547
+ * "duration_minutes"
198548
+ * ],
198549
+ * "synced_at": "2026-10-22T18:00:00.000Z",
198550
+ * "created_at": "2026-10-22T18:00:00.000Z",
198551
+ * "updated_at": "2026-10-22T18:05:00.000Z",
198552
+ * "professionals": [
198553
+ * {
198554
+ * "external_id": "8",
198555
+ * "nombre": "Catalina Lima",
198556
+ * "vendor_duration_minutes": 45,
198557
+ * "duration_minutes": 60,
198558
+ * "active": true
198559
+ * }
198560
+ * ]
198561
+ * }
198562
+ * ]
198563
+ * }
198564
+ * }
198565
+ */
198566
+ "application/json": {
198567
+ data: components["schemas"]["ClinicMotivoList"];
198568
+ };
198569
+ };
198570
+ };
198571
+ /** @description Validation error */
198572
+ 400: {
198573
+ headers: {
198574
+ [name: string]: unknown;
198575
+ };
198576
+ content: {
198577
+ "application/json": components["schemas"]["Error"];
198578
+ };
198579
+ };
198580
+ /** @description Unauthorized */
198581
+ 401: {
198582
+ headers: {
198583
+ [name: string]: unknown;
198584
+ };
198585
+ content: {
198586
+ "application/json": components["schemas"]["Error"];
198587
+ };
198588
+ };
198589
+ /** @description Forbidden */
198590
+ 403: {
198591
+ headers: {
198592
+ [name: string]: unknown;
198593
+ };
198594
+ content: {
198595
+ "application/json": components["schemas"]["Error"];
198596
+ };
198597
+ };
198598
+ /** @description Not found */
198599
+ 404: {
198600
+ headers: {
198601
+ [name: string]: unknown;
198602
+ };
198603
+ content: {
198604
+ "application/json": components["schemas"]["Error"];
198605
+ };
198606
+ };
198607
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
198608
+ 409: {
198609
+ headers: {
198610
+ [name: string]: unknown;
198611
+ };
198612
+ content: {
198613
+ "application/json": components["schemas"]["Error"];
198614
+ };
198615
+ };
198616
+ /** @description Rate limited */
198617
+ 429: {
198618
+ headers: {
198619
+ [name: string]: unknown;
198620
+ };
198621
+ content: {
198622
+ "application/json": components["schemas"]["Error"];
198623
+ };
198624
+ };
198625
+ };
198626
+ };
198627
+ put?: never;
198628
+ post?: never;
198629
+ delete?: never;
198630
+ options?: never;
198631
+ head?: never;
198632
+ patch?: never;
198633
+ trace?: never;
198634
+ };
198635
+ "/clinic/motivos/resync": {
198636
+ parameters: {
198637
+ query?: never;
198638
+ header?: never;
198639
+ path?: never;
198640
+ cookie?: never;
198641
+ };
198642
+ get?: never;
198643
+ put?: never;
198644
+ /**
198645
+ * Resync motivos de atención from the clinic system
198646
+ * @description Reads the clinic system now and merges it in: new motivos are added, the rest refresh, and every field the clinic changed in Vitrina (`overrides`) is KEPT and listed in `kept` with both values. Motivos the clinic system no longer lists land in `removed` (deactivated, not deleted). Synchronous — about one second per professional.
198647
+ *
198648
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
198649
+ */
198650
+ post: {
198651
+ parameters: {
198652
+ query?: never;
198653
+ header?: {
198654
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
198655
+ "Idempotency-Key"?: string;
198656
+ };
198657
+ path?: never;
198658
+ cookie?: never;
198659
+ };
198660
+ requestBody?: never;
198661
+ responses: {
198662
+ /** @description Resync report */
198663
+ 200: {
198664
+ headers: {
198665
+ [name: string]: unknown;
198666
+ };
198667
+ content: {
198668
+ /**
198669
+ * @example {
198670
+ * "data": {
198671
+ * "total": 32,
198672
+ * "synced_at": "2026-10-22T18:00:00.000Z",
198673
+ * "added": [
198674
+ * {
198675
+ * "id": null,
198676
+ * "nombre": "Blanqueamiento",
198677
+ * "especialidad": "General"
198678
+ * }
198679
+ * ],
198680
+ * "updated": [],
198681
+ * "removed": [],
198682
+ * "kept": [
198683
+ * {
198684
+ * "id": "0194e7a0-1c2b-7d3e-8f40-5a6b7c8d9e01",
198685
+ * "nombre": "DIAGNOSTICO INTEGRAL ODONTOLOGIA",
198686
+ * "especialidad": "General",
198687
+ * "field": "duration_minutes",
198688
+ * "vendor": "45 min",
198689
+ * "vitrina": "60 min"
198690
+ * }
198691
+ * ]
198692
+ * }
198693
+ * }
198694
+ */
198695
+ "application/json": {
198696
+ data: components["schemas"]["ClinicMotivoResyncResult"];
198697
+ };
198698
+ };
198699
+ };
198700
+ /** @description Validation error */
198701
+ 400: {
198702
+ headers: {
198703
+ [name: string]: unknown;
198704
+ };
198705
+ content: {
198706
+ "application/json": components["schemas"]["Error"];
198707
+ };
198708
+ };
198709
+ /** @description Unauthorized */
198710
+ 401: {
198711
+ headers: {
198712
+ [name: string]: unknown;
198713
+ };
198714
+ content: {
198715
+ "application/json": components["schemas"]["Error"];
198716
+ };
198717
+ };
198718
+ /** @description Forbidden */
198719
+ 403: {
198720
+ headers: {
198721
+ [name: string]: unknown;
198722
+ };
198723
+ content: {
198724
+ "application/json": components["schemas"]["Error"];
198725
+ };
198726
+ };
198727
+ /** @description Not found */
198728
+ 404: {
198729
+ headers: {
198730
+ [name: string]: unknown;
198731
+ };
198732
+ content: {
198733
+ "application/json": components["schemas"]["Error"];
198734
+ };
198735
+ };
198736
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
198737
+ 409: {
198738
+ headers: {
198739
+ [name: string]: unknown;
198740
+ };
198741
+ content: {
198742
+ "application/json": components["schemas"]["Error"];
198743
+ };
198744
+ };
198745
+ /** @description Rate limited */
198746
+ 429: {
198747
+ headers: {
198748
+ [name: string]: unknown;
198749
+ };
198750
+ content: {
198751
+ "application/json": components["schemas"]["Error"];
198752
+ };
198753
+ };
198754
+ };
198755
+ };
198756
+ delete?: never;
198757
+ options?: never;
198758
+ head?: never;
198759
+ patch?: never;
198760
+ trace?: never;
198761
+ };
198762
+ "/clinic/motivos/agent-bookable": {
198763
+ parameters: {
198764
+ query?: never;
198765
+ header?: never;
198766
+ path?: never;
198767
+ cookie?: never;
198768
+ };
198769
+ get?: never;
198770
+ put?: never;
198771
+ /**
198772
+ * Set which motivos the AI agent may book, in bulk
198773
+ * @description «¿Ofrecer servicio?» — Vitrina’s own flag, never sent to the clinic system and never touched by a resync.
198774
+ *
198775
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
198776
+ */
198777
+ post: {
198778
+ parameters: {
198779
+ query?: never;
198780
+ header?: {
198781
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
198782
+ "Idempotency-Key"?: string;
198783
+ };
198784
+ path?: never;
198785
+ cookie?: never;
198786
+ };
198787
+ requestBody?: {
198788
+ content: {
198789
+ /**
198790
+ * @example {
198791
+ * "value": false,
198792
+ * "ids": [
198793
+ * "0194e7a0-1c2b-7d3e-8f40-5a6b7c8d9e01"
198794
+ * ]
198795
+ * }
198796
+ */
198797
+ "application/json": {
198798
+ value: boolean;
198799
+ ids: string[];
198800
+ };
198801
+ };
198802
+ };
198803
+ responses: {
198804
+ /** @description Rows updated */
198805
+ 200: {
198806
+ headers: {
198807
+ [name: string]: unknown;
198808
+ };
198809
+ content: {
198810
+ /**
198811
+ * @example {
198812
+ * "data": {
198813
+ * "updated": 1
198814
+ * }
198815
+ * }
198816
+ */
198817
+ "application/json": {
198818
+ data: {
198819
+ updated: number;
198820
+ };
198821
+ };
198822
+ };
198823
+ };
198824
+ /** @description Validation error */
198825
+ 400: {
198826
+ headers: {
198827
+ [name: string]: unknown;
198828
+ };
198829
+ content: {
198830
+ "application/json": components["schemas"]["Error"];
198831
+ };
198832
+ };
198833
+ /** @description Unauthorized */
198834
+ 401: {
198835
+ headers: {
198836
+ [name: string]: unknown;
198837
+ };
198838
+ content: {
198839
+ "application/json": components["schemas"]["Error"];
198840
+ };
198841
+ };
198842
+ /** @description Forbidden */
198843
+ 403: {
198844
+ headers: {
198845
+ [name: string]: unknown;
198846
+ };
198847
+ content: {
198848
+ "application/json": components["schemas"]["Error"];
198849
+ };
198850
+ };
198851
+ /** @description Not found */
198852
+ 404: {
198853
+ headers: {
198854
+ [name: string]: unknown;
198855
+ };
198856
+ content: {
198857
+ "application/json": components["schemas"]["Error"];
198858
+ };
198859
+ };
198860
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
198861
+ 409: {
198862
+ headers: {
198863
+ [name: string]: unknown;
198864
+ };
198865
+ content: {
198866
+ "application/json": components["schemas"]["Error"];
198867
+ };
198868
+ };
198869
+ /** @description Rate limited */
198870
+ 429: {
198871
+ headers: {
198872
+ [name: string]: unknown;
198873
+ };
198874
+ content: {
198875
+ "application/json": components["schemas"]["Error"];
198876
+ };
198877
+ };
198878
+ };
198879
+ };
198880
+ delete?: never;
198881
+ options?: never;
198882
+ head?: never;
198883
+ patch?: never;
198884
+ trace?: never;
198885
+ };
198886
+ "/clinic/motivos/{id}": {
198887
+ parameters: {
198888
+ query?: never;
198889
+ header?: never;
198890
+ path?: never;
198891
+ cookie?: never;
198892
+ };
198893
+ get?: never;
198894
+ put?: never;
198895
+ post?: never;
198896
+ delete?: never;
198897
+ options?: never;
198898
+ head?: never;
198899
+ /**
198900
+ * Edit a motivo de atención
198901
+ * @description A `duration_minutes` or `active` set here becomes an override: every later resync keeps it (and reports it). A length set to exactly the clinic system’s own figure is not an override. `reset` hands fields back to the clinic system. A length set here applies to every professional; otherwise a booking uses the professional’s own length from the clinic system.
198902
+ *
198903
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
198904
+ */
198905
+ patch: {
198906
+ parameters: {
198907
+ query?: never;
198908
+ header?: never;
198909
+ path: {
198910
+ id: string;
198911
+ };
198912
+ cookie?: never;
198913
+ };
198914
+ requestBody?: {
198915
+ content: {
198916
+ /**
198917
+ * @example {
198918
+ * "duration_minutes": 60
198919
+ * }
198920
+ */
198921
+ "application/json": {
198922
+ duration_minutes?: number;
198923
+ active?: boolean;
198924
+ agent_bookable?: boolean;
198925
+ reset?: ("duration_minutes" | "active" | "professionals")[];
198926
+ };
198927
+ };
198928
+ };
198929
+ responses: {
198930
+ /** @description The motivo */
198931
+ 200: {
198932
+ headers: {
198933
+ [name: string]: unknown;
198934
+ };
198935
+ content: {
198936
+ /**
198937
+ * @example {
198938
+ * "data": {
198939
+ * "id": "0194e7a0-1c2b-7d3e-8f40-5a6b7c8d9e01",
198940
+ * "tenant_id": "0194e7a0-0000-7000-8000-000000000001",
198941
+ * "source": "healthatom",
198942
+ * "external_id": "23",
198943
+ * "nombre": "DIAGNOSTICO INTEGRAL ODONTOLOGIA",
198944
+ * "especialidad": "General",
198945
+ * "vendor_duration_minutes": 45,
198946
+ * "duration_minutes": 60,
198947
+ * "vendor_active": true,
198948
+ * "active": true,
198949
+ * "agent_bookable": true,
198950
+ * "color": "#cccccc",
198951
+ * "agenda_online": false,
198952
+ * "overrides": [
198953
+ * "duration_minutes"
198954
+ * ],
198955
+ * "synced_at": "2026-10-22T18:00:00.000Z",
198956
+ * "created_at": "2026-10-22T18:00:00.000Z",
198957
+ * "updated_at": "2026-10-22T18:05:00.000Z",
198958
+ * "professionals": [
198959
+ * {
198960
+ * "external_id": "8",
198961
+ * "nombre": "Catalina Lima",
198962
+ * "vendor_duration_minutes": 45,
198963
+ * "duration_minutes": 60,
198964
+ * "active": true
198965
+ * }
198966
+ * ]
198967
+ * }
198968
+ * }
198969
+ */
198970
+ "application/json": {
198971
+ data: components["schemas"]["ClinicMotivo"];
198972
+ };
198973
+ };
198974
+ };
198975
+ /** @description Validation error */
198976
+ 400: {
198977
+ headers: {
198978
+ [name: string]: unknown;
198979
+ };
198980
+ content: {
198981
+ "application/json": components["schemas"]["Error"];
198982
+ };
198983
+ };
198984
+ /** @description Unauthorized */
198985
+ 401: {
198986
+ headers: {
198987
+ [name: string]: unknown;
198988
+ };
198989
+ content: {
198990
+ "application/json": components["schemas"]["Error"];
198991
+ };
198992
+ };
198993
+ /** @description Forbidden */
198994
+ 403: {
198995
+ headers: {
198996
+ [name: string]: unknown;
198997
+ };
198998
+ content: {
198999
+ "application/json": components["schemas"]["Error"];
199000
+ };
199001
+ };
199002
+ /** @description Not found */
199003
+ 404: {
199004
+ headers: {
199005
+ [name: string]: unknown;
199006
+ };
199007
+ content: {
199008
+ "application/json": components["schemas"]["Error"];
199009
+ };
199010
+ };
199011
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
199012
+ 409: {
199013
+ headers: {
199014
+ [name: string]: unknown;
199015
+ };
199016
+ content: {
199017
+ "application/json": components["schemas"]["Error"];
199018
+ };
199019
+ };
199020
+ /** @description Rate limited */
199021
+ 429: {
199022
+ headers: {
199023
+ [name: string]: unknown;
199024
+ };
199025
+ content: {
199026
+ "application/json": components["schemas"]["Error"];
199027
+ };
199028
+ };
199029
+ };
199030
+ };
199031
+ trace?: never;
199032
+ };
199033
+ "/clinic/motivos/{id}/professionals": {
199034
+ parameters: {
199035
+ query?: never;
199036
+ header?: never;
199037
+ path?: never;
199038
+ cookie?: never;
199039
+ };
199040
+ get?: never;
199041
+ /**
199042
+ * Choose who attends a motivo
199043
+ * @description Replaces the professionals who attend the motivo (by the clinic system’s professional id). An override: resyncs keep it until `reset: ["professionals"]`.
199044
+ *
199045
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
199046
+ */
199047
+ put: {
199048
+ parameters: {
199049
+ query?: never;
199050
+ header?: never;
199051
+ path: {
199052
+ id: string;
199053
+ };
199054
+ cookie?: never;
199055
+ };
199056
+ requestBody?: {
199057
+ content: {
199058
+ /**
199059
+ * @example {
199060
+ * "professionals": [
199061
+ * "8",
199062
+ * "19"
199063
+ * ]
199064
+ * }
199065
+ */
199066
+ "application/json": {
199067
+ professionals: string[];
199068
+ };
199069
+ };
199070
+ };
199071
+ responses: {
199072
+ /** @description The motivo */
199073
+ 200: {
199074
+ headers: {
199075
+ [name: string]: unknown;
199076
+ };
199077
+ content: {
199078
+ /**
199079
+ * @example {
199080
+ * "data": {
199081
+ * "id": "0194e7a0-1c2b-7d3e-8f40-5a6b7c8d9e01",
199082
+ * "tenant_id": "0194e7a0-0000-7000-8000-000000000001",
199083
+ * "source": "healthatom",
199084
+ * "external_id": "23",
199085
+ * "nombre": "DIAGNOSTICO INTEGRAL ODONTOLOGIA",
199086
+ * "especialidad": "General",
199087
+ * "vendor_duration_minutes": 45,
199088
+ * "duration_minutes": 60,
199089
+ * "vendor_active": true,
199090
+ * "active": true,
199091
+ * "agent_bookable": true,
199092
+ * "color": "#cccccc",
199093
+ * "agenda_online": false,
199094
+ * "overrides": [
199095
+ * "duration_minutes"
199096
+ * ],
199097
+ * "synced_at": "2026-10-22T18:00:00.000Z",
199098
+ * "created_at": "2026-10-22T18:00:00.000Z",
199099
+ * "updated_at": "2026-10-22T18:05:00.000Z",
199100
+ * "professionals": [
199101
+ * {
199102
+ * "external_id": "8",
199103
+ * "nombre": "Catalina Lima",
199104
+ * "vendor_duration_minutes": 45,
199105
+ * "duration_minutes": 60,
199106
+ * "active": true
199107
+ * }
199108
+ * ]
199109
+ * }
199110
+ * }
199111
+ */
199112
+ "application/json": {
199113
+ data: components["schemas"]["ClinicMotivo"];
199114
+ };
199115
+ };
199116
+ };
199117
+ /** @description Validation error */
199118
+ 400: {
199119
+ headers: {
199120
+ [name: string]: unknown;
199121
+ };
199122
+ content: {
199123
+ "application/json": components["schemas"]["Error"];
199124
+ };
199125
+ };
199126
+ /** @description Unauthorized */
199127
+ 401: {
199128
+ headers: {
199129
+ [name: string]: unknown;
199130
+ };
199131
+ content: {
199132
+ "application/json": components["schemas"]["Error"];
199133
+ };
199134
+ };
199135
+ /** @description Forbidden */
199136
+ 403: {
199137
+ headers: {
199138
+ [name: string]: unknown;
199139
+ };
199140
+ content: {
199141
+ "application/json": components["schemas"]["Error"];
199142
+ };
199143
+ };
199144
+ /** @description Not found */
199145
+ 404: {
199146
+ headers: {
199147
+ [name: string]: unknown;
199148
+ };
199149
+ content: {
199150
+ "application/json": components["schemas"]["Error"];
199151
+ };
199152
+ };
199153
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
199154
+ 409: {
199155
+ headers: {
199156
+ [name: string]: unknown;
199157
+ };
199158
+ content: {
199159
+ "application/json": components["schemas"]["Error"];
199160
+ };
199161
+ };
199162
+ /** @description Rate limited */
199163
+ 429: {
199164
+ headers: {
199165
+ [name: string]: unknown;
199166
+ };
199167
+ content: {
199168
+ "application/json": components["schemas"]["Error"];
199169
+ };
199170
+ };
199171
+ };
199172
+ };
199173
+ post?: never;
199174
+ delete?: never;
199175
+ options?: never;
199176
+ head?: never;
199177
+ patch?: never;
199178
+ trace?: never;
199179
+ };
199180
+ "/clinic/booking-catalog": {
199181
+ parameters: {
199182
+ query?: never;
199183
+ header?: never;
199184
+ path?: never;
199185
+ cookie?: never;
199186
+ };
199187
+ get?: never;
199188
+ /**
199189
+ * Choose what the agent and «Nueva cita» book against
199190
+ * @description `motivos` (the clinic system’s motivos de atención) or `prestaciones` (the price list). `motivos` needs at least one synced motivo.
199191
+ *
199192
+ * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
199193
+ */
199194
+ put: {
199195
+ parameters: {
199196
+ query?: never;
199197
+ header?: never;
199198
+ path?: never;
199199
+ cookie?: never;
199200
+ };
199201
+ requestBody?: {
199202
+ content: {
199203
+ /**
199204
+ * @example {
199205
+ * "catalog": "motivos"
199206
+ * }
199207
+ */
199208
+ "application/json": {
199209
+ /** @enum {string} */
199210
+ catalog: "motivos" | "prestaciones";
199211
+ };
199212
+ };
199213
+ };
199214
+ responses: {
199215
+ /** @description Saved */
199216
+ 200: {
199217
+ headers: {
199218
+ [name: string]: unknown;
199219
+ };
199220
+ content: {
199221
+ /**
199222
+ * @example {
199223
+ * "data": {
199224
+ * "catalog": "motivos"
199225
+ * }
199226
+ * }
199227
+ */
199228
+ "application/json": {
199229
+ data: {
199230
+ /** @enum {string} */
199231
+ catalog: "motivos" | "prestaciones";
199232
+ };
199233
+ };
199234
+ };
199235
+ };
199236
+ /** @description Validation error */
199237
+ 400: {
199238
+ headers: {
199239
+ [name: string]: unknown;
199240
+ };
199241
+ content: {
199242
+ "application/json": components["schemas"]["Error"];
199243
+ };
199244
+ };
199245
+ /** @description Unauthorized */
199246
+ 401: {
199247
+ headers: {
199248
+ [name: string]: unknown;
199249
+ };
199250
+ content: {
199251
+ "application/json": components["schemas"]["Error"];
199252
+ };
199253
+ };
199254
+ /** @description Forbidden */
199255
+ 403: {
199256
+ headers: {
199257
+ [name: string]: unknown;
199258
+ };
199259
+ content: {
199260
+ "application/json": components["schemas"]["Error"];
199261
+ };
199262
+ };
199263
+ /** @description Not found */
199264
+ 404: {
199265
+ headers: {
199266
+ [name: string]: unknown;
199267
+ };
199268
+ content: {
199269
+ "application/json": components["schemas"]["Error"];
199270
+ };
199271
+ };
199272
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
199273
+ 409: {
199274
+ headers: {
199275
+ [name: string]: unknown;
199276
+ };
199277
+ content: {
199278
+ "application/json": components["schemas"]["Error"];
199279
+ };
199280
+ };
199281
+ /** @description Rate limited */
199282
+ 429: {
199283
+ headers: {
199284
+ [name: string]: unknown;
199285
+ };
199286
+ content: {
199287
+ "application/json": components["schemas"]["Error"];
199288
+ };
199289
+ };
199290
+ };
199291
+ };
199292
+ post?: never;
199293
+ delete?: never;
199294
+ options?: never;
199295
+ head?: never;
199296
+ patch?: never;
199297
+ trace?: never;
199298
+ };
198496
199299
  "/clinic/services/agent-bookable-count": {
198497
199300
  parameters: {
198498
199301
  query?: never;
@@ -209650,6 +210453,78 @@ interface components {
209650
210453
  ClinicServiceEntryFlagsResult: {
209651
210454
  updated: number;
209652
210455
  };
210456
+ ClinicMotivoProfessional: {
210457
+ external_id: string;
210458
+ nombre: string;
210459
+ vendor_duration_minutes: number | null;
210460
+ duration_minutes: number | null;
210461
+ active: boolean;
210462
+ };
210463
+ ClinicMotivo: {
210464
+ /** Format: uuid */
210465
+ id: string;
210466
+ /** Format: uuid */
210467
+ tenant_id: string;
210468
+ /** @enum {string} */
210469
+ source: "healthatom";
210470
+ external_id: string;
210471
+ nombre: string;
210472
+ especialidad: string | null;
210473
+ vendor_duration_minutes: number | null;
210474
+ duration_minutes: number | null;
210475
+ vendor_active: boolean;
210476
+ active: boolean;
210477
+ agent_bookable: boolean;
210478
+ color: string | null;
210479
+ agenda_online: boolean | null;
210480
+ overrides: ("duration_minutes" | "active" | "professionals")[];
210481
+ synced_at: string | null;
210482
+ created_at: string;
210483
+ updated_at: string;
210484
+ professionals: components["schemas"]["ClinicMotivoProfessional"][];
210485
+ };
210486
+ ClinicMotivoList: {
210487
+ /** @enum {string} */
210488
+ booking_catalog: "motivos" | "prestaciones";
210489
+ /** @enum {string|null} */
210490
+ product: "dentalink" | "medilink" | null;
210491
+ last_synced_at: string | null;
210492
+ last_error: string | null;
210493
+ motivos: components["schemas"]["ClinicMotivo"][];
210494
+ };
210495
+ ClinicMotivoResyncResult: {
210496
+ total: number;
210497
+ synced_at: string;
210498
+ added: {
210499
+ /** Format: uuid */
210500
+ id: string | null;
210501
+ nombre: string;
210502
+ especialidad: string | null;
210503
+ }[];
210504
+ updated: {
210505
+ /** Format: uuid */
210506
+ id: string | null;
210507
+ nombre: string;
210508
+ especialidad: string | null;
210509
+ fields: string[];
210510
+ }[];
210511
+ removed: {
210512
+ /** Format: uuid */
210513
+ id: string | null;
210514
+ nombre: string;
210515
+ especialidad: string | null;
210516
+ }[];
210517
+ kept: {
210518
+ /** Format: uuid */
210519
+ id: string | null;
210520
+ nombre: string;
210521
+ especialidad: string | null;
210522
+ /** @enum {string} */
210523
+ field: "duration_minutes" | "active" | "professionals";
210524
+ vendor: string;
210525
+ vitrina: string;
210526
+ }[];
210527
+ };
209653
210528
  ClinicServiceAgentBookableCount: {
209654
210529
  bookable: number;
209655
210530
  reception_only: number;