@vitrina/api 14.79.1 → 14.82.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
@@ -8178,7 +8178,7 @@ interface paths {
8178
8178
  };
8179
8179
  /**
8180
8180
  * Update stages in bulk
8181
- * @description Reordering a board: an array of `{ id, …fields }`, up to 100. This is the endpoint a drag-and-drop save uses, because positions have to move together. Only the fields present on an element are written; the body is strict, so an unknown or derived key is a 400. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8181
+ * @description Reordering a board: an array of `{ id, …fields }`, up to 100. This is the endpoint a drag-and-drop save uses, because positions have to move together. Only the fields present on an element are written; the body is strict, so an unknown or derived key is a 400. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8182
8182
  */
8183
8183
  put: {
8184
8184
  parameters: {
@@ -8367,7 +8367,7 @@ interface paths {
8367
8367
  };
8368
8368
  /**
8369
8369
  * Create stage
8370
- * @description Adds one column to a board. `slug` is generated from the name when omitted; `category` defaults to `open`. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8370
+ * @description Adds one column to a board. `slug` is generated from the name when omitted; `category` defaults to `open`. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8371
8371
  */
8372
8372
  post: {
8373
8373
  parameters: {
@@ -8867,7 +8867,7 @@ interface paths {
8867
8867
  };
8868
8868
  /**
8869
8869
  * Update stage
8870
- * @description Only the fields present in the body are written. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8870
+ * @description Only the fields present in the body are written. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8871
8871
  */
8872
8872
  put: {
8873
8873
  parameters: {
@@ -96653,6 +96653,524 @@ interface paths {
96653
96653
  patch?: never;
96654
96654
  trace?: never;
96655
96655
  };
96656
+ "/clinic/appointments/{id}/services": {
96657
+ parameters: {
96658
+ query?: never;
96659
+ header?: never;
96660
+ path?: never;
96661
+ cookie?: never;
96662
+ };
96663
+ /**
96664
+ * A cita's prestaciones, with what each one owes
96665
+ * @description The prestación lines of one cita (`clinic_appointment_service`): catalog name, quantity, the unit price and discount FROZEN on the line, `total_clp` (quantity × unit price − discount; 0 when unpriced), whether it was performed, the plan item it performs, and `obligation_status` — the line's own debt: `none` (not performed, or already charged through an accepted presupuesto or a pack), `open` (owed, possibly partly paid), `paid` (fully paid) or `void` (cancelled). `editable` is false with `reason` `vendor_engine` for a Dentalink / Medilink / Reservo cita (its prestaciones live in the vendor's tratamiento), `cancelled` for a cancelled cita, `not_a_clinic_cita` for any other appointment. Never calls the clinic API.
96666
+ *
96667
+ * **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`.
96668
+ */
96669
+ get: {
96670
+ parameters: {
96671
+ query?: never;
96672
+ header?: never;
96673
+ path: {
96674
+ id: string;
96675
+ };
96676
+ cookie?: never;
96677
+ };
96678
+ requestBody?: never;
96679
+ responses: {
96680
+ /** @description Cita prestaciones */
96681
+ 200: {
96682
+ headers: {
96683
+ [name: string]: unknown;
96684
+ };
96685
+ content: {
96686
+ /**
96687
+ * @example {
96688
+ * "data": {
96689
+ * "editable": true,
96690
+ * "reason": null,
96691
+ * "lines": [
96692
+ * {
96693
+ * "id": "9c1a0001-0000-4000-8000-000000000001",
96694
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000001",
96695
+ * "nombre": "Limpieza dental",
96696
+ * "quantity": 1,
96697
+ * "unit_price_clp": 35000,
96698
+ * "discount_clp": 0,
96699
+ * "total_clp": 35000,
96700
+ * "performed": true,
96701
+ * "performed_at": "2026-10-21T15:40:00.000Z",
96702
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96703
+ * "tooth_or_zone": null,
96704
+ * "treatment_plan_item_id": null,
96705
+ * "obligation_status": "open"
96706
+ * },
96707
+ * {
96708
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96709
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96710
+ * "nombre": "Resina compuesta",
96711
+ * "quantity": 2,
96712
+ * "unit_price_clp": 45000,
96713
+ * "discount_clp": 10000,
96714
+ * "total_clp": 80000,
96715
+ * "performed": false,
96716
+ * "performed_at": null,
96717
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96718
+ * "tooth_or_zone": {
96719
+ * "fdi": [
96720
+ * 16,
96721
+ * 17
96722
+ * ]
96723
+ * },
96724
+ * "treatment_plan_item_id": "9c1a0004-0000-4000-8000-000000000001",
96725
+ * "obligation_status": "none"
96726
+ * }
96727
+ * ],
96728
+ * "total_clp": 115000
96729
+ * }
96730
+ * }
96731
+ */
96732
+ "application/json": {
96733
+ data?: unknown;
96734
+ meta?: {
96735
+ [key: string]: unknown;
96736
+ };
96737
+ };
96738
+ };
96739
+ };
96740
+ /** @description Validation error */
96741
+ 400: {
96742
+ headers: {
96743
+ [name: string]: unknown;
96744
+ };
96745
+ content: {
96746
+ "application/json": components["schemas"]["Error"];
96747
+ };
96748
+ };
96749
+ /** @description Unauthorized */
96750
+ 401: {
96751
+ headers: {
96752
+ [name: string]: unknown;
96753
+ };
96754
+ content: {
96755
+ "application/json": components["schemas"]["Error"];
96756
+ };
96757
+ };
96758
+ /** @description Forbidden */
96759
+ 403: {
96760
+ headers: {
96761
+ [name: string]: unknown;
96762
+ };
96763
+ content: {
96764
+ "application/json": components["schemas"]["Error"];
96765
+ };
96766
+ };
96767
+ /** @description Not found */
96768
+ 404: {
96769
+ headers: {
96770
+ [name: string]: unknown;
96771
+ };
96772
+ content: {
96773
+ "application/json": components["schemas"]["Error"];
96774
+ };
96775
+ };
96776
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
96777
+ 409: {
96778
+ headers: {
96779
+ [name: string]: unknown;
96780
+ };
96781
+ content: {
96782
+ "application/json": components["schemas"]["Error"];
96783
+ };
96784
+ };
96785
+ /** @description Rate limited */
96786
+ 429: {
96787
+ headers: {
96788
+ [name: string]: unknown;
96789
+ };
96790
+ content: {
96791
+ "application/json": components["schemas"]["Error"];
96792
+ };
96793
+ };
96794
+ };
96795
+ };
96796
+ put?: never;
96797
+ /**
96798
+ * Add a prestación to a native cita
96799
+ * @description Adds one line. Without `unit_price_clp` the price is the clinic's own resolved price for this patient on the cita's day (price list, convenio, professional price, rules — the same engine as `POST /clinic/pricing/quote`), frozen on the line with its explanation. A cita that belongs to a treatment plan joins the plan: the plan's first pending item of that prestación, or a new item, becomes `scheduled` on this cita and `treatment_plan_item_id` names it. A new line is not performed and owes nothing yet. A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
96800
+ *
96801
+ * **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`.
96802
+ */
96803
+ post: {
96804
+ parameters: {
96805
+ query?: never;
96806
+ header?: {
96807
+ /** @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. */
96808
+ "Idempotency-Key"?: string;
96809
+ };
96810
+ path: {
96811
+ id: string;
96812
+ };
96813
+ cookie?: never;
96814
+ };
96815
+ requestBody?: {
96816
+ content: {
96817
+ /**
96818
+ * @example {
96819
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96820
+ * "quantity": 2,
96821
+ * "discount_clp": 10000,
96822
+ * "tooth_or_zone": {
96823
+ * "fdi": [
96824
+ * 16,
96825
+ * 17
96826
+ * ]
96827
+ * }
96828
+ * }
96829
+ */
96830
+ "application/json": {
96831
+ /** Format: uuid */
96832
+ clinic_service_id: string;
96833
+ quantity?: number;
96834
+ unit_price_clp?: number | null;
96835
+ discount_clp?: number;
96836
+ tooth_or_zone?: {
96837
+ [key: string]: unknown;
96838
+ } | null;
96839
+ };
96840
+ };
96841
+ };
96842
+ responses: {
96843
+ /** @description Line added */
96844
+ 201: {
96845
+ headers: {
96846
+ [name: string]: unknown;
96847
+ };
96848
+ content: {
96849
+ /**
96850
+ * @example {
96851
+ * "data": {
96852
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96853
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96854
+ * "nombre": "Resina compuesta",
96855
+ * "quantity": 2,
96856
+ * "unit_price_clp": 45000,
96857
+ * "discount_clp": 10000,
96858
+ * "total_clp": 80000,
96859
+ * "performed": false,
96860
+ * "performed_at": null,
96861
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96862
+ * "tooth_or_zone": {
96863
+ * "fdi": [
96864
+ * 16,
96865
+ * 17
96866
+ * ]
96867
+ * },
96868
+ * "treatment_plan_item_id": "9c1a0004-0000-4000-8000-000000000001",
96869
+ * "obligation_status": "none"
96870
+ * }
96871
+ * }
96872
+ */
96873
+ "application/json": {
96874
+ data?: unknown;
96875
+ };
96876
+ };
96877
+ };
96878
+ /** @description Validation error */
96879
+ 400: {
96880
+ headers: {
96881
+ [name: string]: unknown;
96882
+ };
96883
+ content: {
96884
+ "application/json": components["schemas"]["Error"];
96885
+ };
96886
+ };
96887
+ /** @description Unauthorized */
96888
+ 401: {
96889
+ headers: {
96890
+ [name: string]: unknown;
96891
+ };
96892
+ content: {
96893
+ "application/json": components["schemas"]["Error"];
96894
+ };
96895
+ };
96896
+ /** @description Forbidden */
96897
+ 403: {
96898
+ headers: {
96899
+ [name: string]: unknown;
96900
+ };
96901
+ content: {
96902
+ "application/json": components["schemas"]["Error"];
96903
+ };
96904
+ };
96905
+ /** @description Not found */
96906
+ 404: {
96907
+ headers: {
96908
+ [name: string]: unknown;
96909
+ };
96910
+ content: {
96911
+ "application/json": components["schemas"]["Error"];
96912
+ };
96913
+ };
96914
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
96915
+ 409: {
96916
+ headers: {
96917
+ [name: string]: unknown;
96918
+ };
96919
+ content: {
96920
+ "application/json": components["schemas"]["Error"];
96921
+ };
96922
+ };
96923
+ /** @description Rate limited */
96924
+ 429: {
96925
+ headers: {
96926
+ [name: string]: unknown;
96927
+ };
96928
+ content: {
96929
+ "application/json": components["schemas"]["Error"];
96930
+ };
96931
+ };
96932
+ };
96933
+ };
96934
+ delete?: never;
96935
+ options?: never;
96936
+ head?: never;
96937
+ patch?: never;
96938
+ trace?: never;
96939
+ };
96940
+ "/clinic/appointments/{id}/services/{lineId}": {
96941
+ parameters: {
96942
+ query?: never;
96943
+ header?: never;
96944
+ path?: never;
96945
+ cookie?: never;
96946
+ };
96947
+ get?: never;
96948
+ put?: never;
96949
+ post?: never;
96950
+ /**
96951
+ * Remove a prestación from a native cita
96952
+ * @description Deletes the line. Its unpaid obligation is cancelled and its plan item goes back to `pending` on the plan. Refused with 409 `line_paid` when pesos are allocated to the line's obligation. A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
96953
+ *
96954
+ * **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`.
96955
+ */
96956
+ delete: {
96957
+ parameters: {
96958
+ query?: never;
96959
+ header?: never;
96960
+ path: {
96961
+ id: string;
96962
+ lineId: string;
96963
+ };
96964
+ cookie?: never;
96965
+ };
96966
+ requestBody?: never;
96967
+ responses: {
96968
+ /** @description Line removed */
96969
+ 200: {
96970
+ headers: {
96971
+ [name: string]: unknown;
96972
+ };
96973
+ content: {
96974
+ /**
96975
+ * @example {
96976
+ * "data": {
96977
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96978
+ * "deleted": true
96979
+ * }
96980
+ * }
96981
+ */
96982
+ "application/json": {
96983
+ data?: unknown;
96984
+ meta?: {
96985
+ [key: string]: unknown;
96986
+ };
96987
+ };
96988
+ };
96989
+ };
96990
+ /** @description Validation error */
96991
+ 400: {
96992
+ headers: {
96993
+ [name: string]: unknown;
96994
+ };
96995
+ content: {
96996
+ "application/json": components["schemas"]["Error"];
96997
+ };
96998
+ };
96999
+ /** @description Unauthorized */
97000
+ 401: {
97001
+ headers: {
97002
+ [name: string]: unknown;
97003
+ };
97004
+ content: {
97005
+ "application/json": components["schemas"]["Error"];
97006
+ };
97007
+ };
97008
+ /** @description Forbidden */
97009
+ 403: {
97010
+ headers: {
97011
+ [name: string]: unknown;
97012
+ };
97013
+ content: {
97014
+ "application/json": components["schemas"]["Error"];
97015
+ };
97016
+ };
97017
+ /** @description Not found */
97018
+ 404: {
97019
+ headers: {
97020
+ [name: string]: unknown;
97021
+ };
97022
+ content: {
97023
+ "application/json": components["schemas"]["Error"];
97024
+ };
97025
+ };
97026
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
97027
+ 409: {
97028
+ headers: {
97029
+ [name: string]: unknown;
97030
+ };
97031
+ content: {
97032
+ "application/json": components["schemas"]["Error"];
97033
+ };
97034
+ };
97035
+ /** @description Rate limited */
97036
+ 429: {
97037
+ headers: {
97038
+ [name: string]: unknown;
97039
+ };
97040
+ content: {
97041
+ "application/json": components["schemas"]["Error"];
97042
+ };
97043
+ };
97044
+ };
97045
+ };
97046
+ options?: never;
97047
+ head?: never;
97048
+ /**
97049
+ * Edit a native cita's prestación, or mark it performed
97050
+ * @description Changes quantity, unit price, discount, tooth / zone, or `performed`. PERFORMED IS DEBT: a line marked performed opens one obligation for its total in the patient's ledger (kind `service`, labelled with the prestación's name — which is the line a boleta for a payment against it carries), unless an accepted presupuesto item (through its plan item) or a pack session already charges for it. A price change on a performed line restates that obligation's expected amount. Performing a line linked to a plan item performs the item; un-performing puts it back to `scheduled`. Un-performing cancels the line's unpaid obligation; when pesos are already allocated to it the change is refused with 409 `line_paid` (release the payment in Pagos first). A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
97051
+ *
97052
+ * **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`.
97053
+ */
97054
+ patch: {
97055
+ parameters: {
97056
+ query?: never;
97057
+ header?: never;
97058
+ path: {
97059
+ id: string;
97060
+ lineId: string;
97061
+ };
97062
+ cookie?: never;
97063
+ };
97064
+ requestBody?: {
97065
+ content: {
97066
+ /**
97067
+ * @example {
97068
+ * "performed": true
97069
+ * }
97070
+ */
97071
+ "application/json": {
97072
+ quantity?: number;
97073
+ unit_price_clp?: number | null;
97074
+ discount_clp?: number;
97075
+ tooth_or_zone?: {
97076
+ [key: string]: unknown;
97077
+ } | null;
97078
+ performed?: boolean;
97079
+ };
97080
+ };
97081
+ };
97082
+ responses: {
97083
+ /** @description Line updated */
97084
+ 200: {
97085
+ headers: {
97086
+ [name: string]: unknown;
97087
+ };
97088
+ content: {
97089
+ /**
97090
+ * @example {
97091
+ * "data": {
97092
+ * "id": "9c1a0001-0000-4000-8000-000000000001",
97093
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000001",
97094
+ * "nombre": "Limpieza dental",
97095
+ * "quantity": 1,
97096
+ * "unit_price_clp": 35000,
97097
+ * "discount_clp": 0,
97098
+ * "total_clp": 35000,
97099
+ * "performed": true,
97100
+ * "performed_at": "2026-10-21T15:40:00.000Z",
97101
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
97102
+ * "tooth_or_zone": null,
97103
+ * "treatment_plan_item_id": null,
97104
+ * "obligation_status": "open"
97105
+ * }
97106
+ * }
97107
+ */
97108
+ "application/json": {
97109
+ data?: unknown;
97110
+ meta?: {
97111
+ [key: string]: unknown;
97112
+ };
97113
+ };
97114
+ };
97115
+ };
97116
+ /** @description Validation error */
97117
+ 400: {
97118
+ headers: {
97119
+ [name: string]: unknown;
97120
+ };
97121
+ content: {
97122
+ "application/json": components["schemas"]["Error"];
97123
+ };
97124
+ };
97125
+ /** @description Unauthorized */
97126
+ 401: {
97127
+ headers: {
97128
+ [name: string]: unknown;
97129
+ };
97130
+ content: {
97131
+ "application/json": components["schemas"]["Error"];
97132
+ };
97133
+ };
97134
+ /** @description Forbidden */
97135
+ 403: {
97136
+ headers: {
97137
+ [name: string]: unknown;
97138
+ };
97139
+ content: {
97140
+ "application/json": components["schemas"]["Error"];
97141
+ };
97142
+ };
97143
+ /** @description Not found */
97144
+ 404: {
97145
+ headers: {
97146
+ [name: string]: unknown;
97147
+ };
97148
+ content: {
97149
+ "application/json": components["schemas"]["Error"];
97150
+ };
97151
+ };
97152
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
97153
+ 409: {
97154
+ headers: {
97155
+ [name: string]: unknown;
97156
+ };
97157
+ content: {
97158
+ "application/json": components["schemas"]["Error"];
97159
+ };
97160
+ };
97161
+ /** @description Rate limited */
97162
+ 429: {
97163
+ headers: {
97164
+ [name: string]: unknown;
97165
+ };
97166
+ content: {
97167
+ "application/json": components["schemas"]["Error"];
97168
+ };
97169
+ };
97170
+ };
97171
+ };
97172
+ trace?: never;
97173
+ };
96656
97174
  "/clinic/booking-drafts": {
96657
97175
  parameters: {
96658
97176
  query?: never;
@@ -113625,7 +114143,7 @@ interface paths {
113625
114143
  parameters: {
113626
114144
  query: {
113627
114145
  /** @description The outcome stage to preview. One the workspace sends (a stage outside its vertical → 404). */
113628
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
114146
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
113629
114147
  /** @description `1` serves the deterministic sample dataset («Ver con datos de ejemplo»): same shapes, invented but internally consistent figures, no entitlement required (the scope still is). A sandbox workspace is always served the sample, with or without this parameter. */
113630
114148
  sample?: "1" | "true";
113631
114149
  };
@@ -113857,7 +114375,7 @@ interface paths {
113857
114375
  * @description Which stage the test imitates (its rule and event name). Defaults to the Purchase stage, else the first stage that reaches Meta.
113858
114376
  * @enum {string}
113859
114377
  */
113860
- stage?: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
114378
+ stage?: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
113861
114379
  /** @description The code Meta shows in Events Manager → Test Events. Omit it and one is generated: a test ALWAYS carries a code, so it lands in Test Events only and never counts as a real event. */
113862
114380
  test_event_code?: string;
113863
114381
  /**
@@ -205065,7 +205583,7 @@ interface components {
205065
205583
  vertical: string | null;
205066
205584
  rules: {
205067
205585
  /** @enum {string} */
205068
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205586
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205069
205587
  /**
205070
205588
  * @description `unchanged` = the rule already held this body; nothing was written.
205071
205589
  * @enum {string}
@@ -205139,7 +205657,7 @@ interface components {
205139
205657
  } | null;
205140
205658
  stages: {
205141
205659
  /** @enum {string} */
205142
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205660
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205143
205661
  /** @description The stage in the workspace’s words. */
205144
205662
  label: string;
205145
205663
  /** @description What Meta receives. */
@@ -205299,7 +205817,7 @@ interface components {
205299
205817
  /** @description Advice only — Vitrina never changes an ad set’s goal: the earliest stage reached by 1–40 % of new contacts over 28 days, once there are ≥ 50 (what Meta learns best from with this volume); `default` = not enough data yet, the usual answer for the business type. Never a standard event on a health-restricted dataset. */
205300
205818
  recommended_optimization_stage: {
205301
205819
  /** @enum {string} */
205302
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205820
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205303
205821
  /** @enum {string} */
205304
205822
  reason: "rate_band" | "default";
205305
205823
  rate: number | null;
@@ -205338,7 +205856,7 @@ interface components {
205338
205856
  };
205339
205857
  AdsSendPreviewEvent: {
205340
205858
  /** @enum {string} */
205341
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205859
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205342
205860
  /**
205343
205861
  * @description `example` when the workspace has no event of this stage yet.
205344
205862
  * @enum {string}
@@ -205396,7 +205914,7 @@ interface components {
205396
205914
  /** @description Search for it in Events Manager → Test Events. */
205397
205915
  event_id: string | null;
205398
205916
  /** @enum {string|null} */
205399
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | null;
205917
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed" | null;
205400
205918
  meta_event: string | null;
205401
205919
  quality_warning: boolean;
205402
205920
  test_events_link: string | null;
package/dist/index.d.ts CHANGED
@@ -8178,7 +8178,7 @@ interface paths {
8178
8178
  };
8179
8179
  /**
8180
8180
  * Update stages in bulk
8181
- * @description Reordering a board: an array of `{ id, …fields }`, up to 100. This is the endpoint a drag-and-drop save uses, because positions have to move together. Only the fields present on an element are written; the body is strict, so an unknown or derived key is a 400. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8181
+ * @description Reordering a board: an array of `{ id, …fields }`, up to 100. This is the endpoint a drag-and-drop save uses, because positions have to move together. Only the fields present on an element are written; the body is strict, so an unknown or derived key is a 400. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8182
8182
  */
8183
8183
  put: {
8184
8184
  parameters: {
@@ -8367,7 +8367,7 @@ interface paths {
8367
8367
  };
8368
8368
  /**
8369
8369
  * Create stage
8370
- * @description Adds one column to a board. `slug` is generated from the name when omitted; `category` defaults to `open`. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8370
+ * @description Adds one column to a board. `slug` is generated from the name when omitted; `category` defaults to `open`. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8371
8371
  */
8372
8372
  post: {
8373
8373
  parameters: {
@@ -8867,7 +8867,7 @@ interface paths {
8867
8867
  };
8868
8868
  /**
8869
8869
  * Update stage
8870
- * @description Only the fields present in the body are written. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value). Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8870
+ * @description Only the fields present in the body are written. `is_terminal` and `won_state` are DERIVED from `category` and are rejected as input (both bodies are strict, so sending either is a 400 naming the key). `sla_days` is the per-stage ageing threshold in days: an integer of at least 1, or `null` for "no limit" — omitting the key leaves the current value alone, sending `null` clears it, and those are different requests. `funnel_step_key` places the stage in one of its board's Pasos del embudo (`GET /pipelines/{id}/funnel-steps` lists them); a lost or unqualified stage goes to a `lost` step, every other stage to a `progress` step, else 400 naming the legal keys. On create, omitting it takes the template's default for the category; on update, omitting it leaves it alone, `null` un-places the stage, and a category change that puts the current step on the wrong side re-defaults it. `qualifies_lead` (default `false`) marks the column whose arrival makes the contact a qualified lead for Meta: a lead moved onto it sends `lead_qualified` (`QualifiedLead`, once per contact, no value); on a board that buys from its contacts (`direction: buy_from_customer`) it sends `seller_qualified` instead, and that board's visit step and won column send `seller_visit_booked` / `seller_deal_closed`, never a buyer event. Only an `open` stage of a `sales` board may carry it, else 422 `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`; a category change to an outcome drops it. `driver` says what may move a lead INTO the stage: `fact` (an operational fact such as a confirmed cita in the agenda, a payment, an order or a sale note, a person, or the API; an AI writer only leaves a suggestion), `conversation` (the conversation may move it) or `manual` (a person or the API only; never offered to the AI). Omitted on create = inferred: on a sales board a won stage, or an open one named like «agendada», «reservado», «vendido», «pagado», «firmado», «escritura», «promesa» or «entregado», is `fact`, anything else `conversation`.
8871
8871
  */
8872
8872
  put: {
8873
8873
  parameters: {
@@ -96653,6 +96653,524 @@ interface paths {
96653
96653
  patch?: never;
96654
96654
  trace?: never;
96655
96655
  };
96656
+ "/clinic/appointments/{id}/services": {
96657
+ parameters: {
96658
+ query?: never;
96659
+ header?: never;
96660
+ path?: never;
96661
+ cookie?: never;
96662
+ };
96663
+ /**
96664
+ * A cita's prestaciones, with what each one owes
96665
+ * @description The prestación lines of one cita (`clinic_appointment_service`): catalog name, quantity, the unit price and discount FROZEN on the line, `total_clp` (quantity × unit price − discount; 0 when unpriced), whether it was performed, the plan item it performs, and `obligation_status` — the line's own debt: `none` (not performed, or already charged through an accepted presupuesto or a pack), `open` (owed, possibly partly paid), `paid` (fully paid) or `void` (cancelled). `editable` is false with `reason` `vendor_engine` for a Dentalink / Medilink / Reservo cita (its prestaciones live in the vendor's tratamiento), `cancelled` for a cancelled cita, `not_a_clinic_cita` for any other appointment. Never calls the clinic API.
96666
+ *
96667
+ * **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`.
96668
+ */
96669
+ get: {
96670
+ parameters: {
96671
+ query?: never;
96672
+ header?: never;
96673
+ path: {
96674
+ id: string;
96675
+ };
96676
+ cookie?: never;
96677
+ };
96678
+ requestBody?: never;
96679
+ responses: {
96680
+ /** @description Cita prestaciones */
96681
+ 200: {
96682
+ headers: {
96683
+ [name: string]: unknown;
96684
+ };
96685
+ content: {
96686
+ /**
96687
+ * @example {
96688
+ * "data": {
96689
+ * "editable": true,
96690
+ * "reason": null,
96691
+ * "lines": [
96692
+ * {
96693
+ * "id": "9c1a0001-0000-4000-8000-000000000001",
96694
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000001",
96695
+ * "nombre": "Limpieza dental",
96696
+ * "quantity": 1,
96697
+ * "unit_price_clp": 35000,
96698
+ * "discount_clp": 0,
96699
+ * "total_clp": 35000,
96700
+ * "performed": true,
96701
+ * "performed_at": "2026-10-21T15:40:00.000Z",
96702
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96703
+ * "tooth_or_zone": null,
96704
+ * "treatment_plan_item_id": null,
96705
+ * "obligation_status": "open"
96706
+ * },
96707
+ * {
96708
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96709
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96710
+ * "nombre": "Resina compuesta",
96711
+ * "quantity": 2,
96712
+ * "unit_price_clp": 45000,
96713
+ * "discount_clp": 10000,
96714
+ * "total_clp": 80000,
96715
+ * "performed": false,
96716
+ * "performed_at": null,
96717
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96718
+ * "tooth_or_zone": {
96719
+ * "fdi": [
96720
+ * 16,
96721
+ * 17
96722
+ * ]
96723
+ * },
96724
+ * "treatment_plan_item_id": "9c1a0004-0000-4000-8000-000000000001",
96725
+ * "obligation_status": "none"
96726
+ * }
96727
+ * ],
96728
+ * "total_clp": 115000
96729
+ * }
96730
+ * }
96731
+ */
96732
+ "application/json": {
96733
+ data?: unknown;
96734
+ meta?: {
96735
+ [key: string]: unknown;
96736
+ };
96737
+ };
96738
+ };
96739
+ };
96740
+ /** @description Validation error */
96741
+ 400: {
96742
+ headers: {
96743
+ [name: string]: unknown;
96744
+ };
96745
+ content: {
96746
+ "application/json": components["schemas"]["Error"];
96747
+ };
96748
+ };
96749
+ /** @description Unauthorized */
96750
+ 401: {
96751
+ headers: {
96752
+ [name: string]: unknown;
96753
+ };
96754
+ content: {
96755
+ "application/json": components["schemas"]["Error"];
96756
+ };
96757
+ };
96758
+ /** @description Forbidden */
96759
+ 403: {
96760
+ headers: {
96761
+ [name: string]: unknown;
96762
+ };
96763
+ content: {
96764
+ "application/json": components["schemas"]["Error"];
96765
+ };
96766
+ };
96767
+ /** @description Not found */
96768
+ 404: {
96769
+ headers: {
96770
+ [name: string]: unknown;
96771
+ };
96772
+ content: {
96773
+ "application/json": components["schemas"]["Error"];
96774
+ };
96775
+ };
96776
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
96777
+ 409: {
96778
+ headers: {
96779
+ [name: string]: unknown;
96780
+ };
96781
+ content: {
96782
+ "application/json": components["schemas"]["Error"];
96783
+ };
96784
+ };
96785
+ /** @description Rate limited */
96786
+ 429: {
96787
+ headers: {
96788
+ [name: string]: unknown;
96789
+ };
96790
+ content: {
96791
+ "application/json": components["schemas"]["Error"];
96792
+ };
96793
+ };
96794
+ };
96795
+ };
96796
+ put?: never;
96797
+ /**
96798
+ * Add a prestación to a native cita
96799
+ * @description Adds one line. Without `unit_price_clp` the price is the clinic's own resolved price for this patient on the cita's day (price list, convenio, professional price, rules — the same engine as `POST /clinic/pricing/quote`), frozen on the line with its explanation. A cita that belongs to a treatment plan joins the plan: the plan's first pending item of that prestación, or a new item, becomes `scheduled` on this cita and `treatment_plan_item_id` names it. A new line is not performed and owes nothing yet. A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
96800
+ *
96801
+ * **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`.
96802
+ */
96803
+ post: {
96804
+ parameters: {
96805
+ query?: never;
96806
+ header?: {
96807
+ /** @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. */
96808
+ "Idempotency-Key"?: string;
96809
+ };
96810
+ path: {
96811
+ id: string;
96812
+ };
96813
+ cookie?: never;
96814
+ };
96815
+ requestBody?: {
96816
+ content: {
96817
+ /**
96818
+ * @example {
96819
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96820
+ * "quantity": 2,
96821
+ * "discount_clp": 10000,
96822
+ * "tooth_or_zone": {
96823
+ * "fdi": [
96824
+ * 16,
96825
+ * 17
96826
+ * ]
96827
+ * }
96828
+ * }
96829
+ */
96830
+ "application/json": {
96831
+ /** Format: uuid */
96832
+ clinic_service_id: string;
96833
+ quantity?: number;
96834
+ unit_price_clp?: number | null;
96835
+ discount_clp?: number;
96836
+ tooth_or_zone?: {
96837
+ [key: string]: unknown;
96838
+ } | null;
96839
+ };
96840
+ };
96841
+ };
96842
+ responses: {
96843
+ /** @description Line added */
96844
+ 201: {
96845
+ headers: {
96846
+ [name: string]: unknown;
96847
+ };
96848
+ content: {
96849
+ /**
96850
+ * @example {
96851
+ * "data": {
96852
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96853
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000002",
96854
+ * "nombre": "Resina compuesta",
96855
+ * "quantity": 2,
96856
+ * "unit_price_clp": 45000,
96857
+ * "discount_clp": 10000,
96858
+ * "total_clp": 80000,
96859
+ * "performed": false,
96860
+ * "performed_at": null,
96861
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
96862
+ * "tooth_or_zone": {
96863
+ * "fdi": [
96864
+ * 16,
96865
+ * 17
96866
+ * ]
96867
+ * },
96868
+ * "treatment_plan_item_id": "9c1a0004-0000-4000-8000-000000000001",
96869
+ * "obligation_status": "none"
96870
+ * }
96871
+ * }
96872
+ */
96873
+ "application/json": {
96874
+ data?: unknown;
96875
+ };
96876
+ };
96877
+ };
96878
+ /** @description Validation error */
96879
+ 400: {
96880
+ headers: {
96881
+ [name: string]: unknown;
96882
+ };
96883
+ content: {
96884
+ "application/json": components["schemas"]["Error"];
96885
+ };
96886
+ };
96887
+ /** @description Unauthorized */
96888
+ 401: {
96889
+ headers: {
96890
+ [name: string]: unknown;
96891
+ };
96892
+ content: {
96893
+ "application/json": components["schemas"]["Error"];
96894
+ };
96895
+ };
96896
+ /** @description Forbidden */
96897
+ 403: {
96898
+ headers: {
96899
+ [name: string]: unknown;
96900
+ };
96901
+ content: {
96902
+ "application/json": components["schemas"]["Error"];
96903
+ };
96904
+ };
96905
+ /** @description Not found */
96906
+ 404: {
96907
+ headers: {
96908
+ [name: string]: unknown;
96909
+ };
96910
+ content: {
96911
+ "application/json": components["schemas"]["Error"];
96912
+ };
96913
+ };
96914
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
96915
+ 409: {
96916
+ headers: {
96917
+ [name: string]: unknown;
96918
+ };
96919
+ content: {
96920
+ "application/json": components["schemas"]["Error"];
96921
+ };
96922
+ };
96923
+ /** @description Rate limited */
96924
+ 429: {
96925
+ headers: {
96926
+ [name: string]: unknown;
96927
+ };
96928
+ content: {
96929
+ "application/json": components["schemas"]["Error"];
96930
+ };
96931
+ };
96932
+ };
96933
+ };
96934
+ delete?: never;
96935
+ options?: never;
96936
+ head?: never;
96937
+ patch?: never;
96938
+ trace?: never;
96939
+ };
96940
+ "/clinic/appointments/{id}/services/{lineId}": {
96941
+ parameters: {
96942
+ query?: never;
96943
+ header?: never;
96944
+ path?: never;
96945
+ cookie?: never;
96946
+ };
96947
+ get?: never;
96948
+ put?: never;
96949
+ post?: never;
96950
+ /**
96951
+ * Remove a prestación from a native cita
96952
+ * @description Deletes the line. Its unpaid obligation is cancelled and its plan item goes back to `pending` on the plan. Refused with 409 `line_paid` when pesos are allocated to the line's obligation. A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
96953
+ *
96954
+ * **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`.
96955
+ */
96956
+ delete: {
96957
+ parameters: {
96958
+ query?: never;
96959
+ header?: never;
96960
+ path: {
96961
+ id: string;
96962
+ lineId: string;
96963
+ };
96964
+ cookie?: never;
96965
+ };
96966
+ requestBody?: never;
96967
+ responses: {
96968
+ /** @description Line removed */
96969
+ 200: {
96970
+ headers: {
96971
+ [name: string]: unknown;
96972
+ };
96973
+ content: {
96974
+ /**
96975
+ * @example {
96976
+ * "data": {
96977
+ * "id": "9c1a0001-0000-4000-8000-000000000002",
96978
+ * "deleted": true
96979
+ * }
96980
+ * }
96981
+ */
96982
+ "application/json": {
96983
+ data?: unknown;
96984
+ meta?: {
96985
+ [key: string]: unknown;
96986
+ };
96987
+ };
96988
+ };
96989
+ };
96990
+ /** @description Validation error */
96991
+ 400: {
96992
+ headers: {
96993
+ [name: string]: unknown;
96994
+ };
96995
+ content: {
96996
+ "application/json": components["schemas"]["Error"];
96997
+ };
96998
+ };
96999
+ /** @description Unauthorized */
97000
+ 401: {
97001
+ headers: {
97002
+ [name: string]: unknown;
97003
+ };
97004
+ content: {
97005
+ "application/json": components["schemas"]["Error"];
97006
+ };
97007
+ };
97008
+ /** @description Forbidden */
97009
+ 403: {
97010
+ headers: {
97011
+ [name: string]: unknown;
97012
+ };
97013
+ content: {
97014
+ "application/json": components["schemas"]["Error"];
97015
+ };
97016
+ };
97017
+ /** @description Not found */
97018
+ 404: {
97019
+ headers: {
97020
+ [name: string]: unknown;
97021
+ };
97022
+ content: {
97023
+ "application/json": components["schemas"]["Error"];
97024
+ };
97025
+ };
97026
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
97027
+ 409: {
97028
+ headers: {
97029
+ [name: string]: unknown;
97030
+ };
97031
+ content: {
97032
+ "application/json": components["schemas"]["Error"];
97033
+ };
97034
+ };
97035
+ /** @description Rate limited */
97036
+ 429: {
97037
+ headers: {
97038
+ [name: string]: unknown;
97039
+ };
97040
+ content: {
97041
+ "application/json": components["schemas"]["Error"];
97042
+ };
97043
+ };
97044
+ };
97045
+ };
97046
+ options?: never;
97047
+ head?: never;
97048
+ /**
97049
+ * Edit a native cita's prestación, or mark it performed
97050
+ * @description Changes quantity, unit price, discount, tooth / zone, or `performed`. PERFORMED IS DEBT: a line marked performed opens one obligation for its total in the patient's ledger (kind `service`, labelled with the prestación's name — which is the line a boleta for a payment against it carries), unless an accepted presupuesto item (through its plan item) or a pack session already charges for it. A price change on a performed line restates that obligation's expected amount. Performing a line linked to a plan item performs the item; un-performing puts it back to `scheduled`. Un-performing cancels the line's unpaid obligation; when pesos are already allocated to it the change is refused with 409 `line_paid` (release the payment in Pagos first). A Dentalink / Medilink / Reservo cita is never edited here (its prestaciones live in the vendor's own tratamiento) and a cancelled cita is history: both answer 409 with `details.reason` `vendor_engine` / `cancelled`.
97051
+ *
97052
+ * **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`.
97053
+ */
97054
+ patch: {
97055
+ parameters: {
97056
+ query?: never;
97057
+ header?: never;
97058
+ path: {
97059
+ id: string;
97060
+ lineId: string;
97061
+ };
97062
+ cookie?: never;
97063
+ };
97064
+ requestBody?: {
97065
+ content: {
97066
+ /**
97067
+ * @example {
97068
+ * "performed": true
97069
+ * }
97070
+ */
97071
+ "application/json": {
97072
+ quantity?: number;
97073
+ unit_price_clp?: number | null;
97074
+ discount_clp?: number;
97075
+ tooth_or_zone?: {
97076
+ [key: string]: unknown;
97077
+ } | null;
97078
+ performed?: boolean;
97079
+ };
97080
+ };
97081
+ };
97082
+ responses: {
97083
+ /** @description Line updated */
97084
+ 200: {
97085
+ headers: {
97086
+ [name: string]: unknown;
97087
+ };
97088
+ content: {
97089
+ /**
97090
+ * @example {
97091
+ * "data": {
97092
+ * "id": "9c1a0001-0000-4000-8000-000000000001",
97093
+ * "clinic_service_id": "9c1a0002-0000-4000-8000-000000000001",
97094
+ * "nombre": "Limpieza dental",
97095
+ * "quantity": 1,
97096
+ * "unit_price_clp": 35000,
97097
+ * "discount_clp": 0,
97098
+ * "total_clp": 35000,
97099
+ * "performed": true,
97100
+ * "performed_at": "2026-10-21T15:40:00.000Z",
97101
+ * "professional_id": "9c1a0003-0000-4000-8000-000000000001",
97102
+ * "tooth_or_zone": null,
97103
+ * "treatment_plan_item_id": null,
97104
+ * "obligation_status": "open"
97105
+ * }
97106
+ * }
97107
+ */
97108
+ "application/json": {
97109
+ data?: unknown;
97110
+ meta?: {
97111
+ [key: string]: unknown;
97112
+ };
97113
+ };
97114
+ };
97115
+ };
97116
+ /** @description Validation error */
97117
+ 400: {
97118
+ headers: {
97119
+ [name: string]: unknown;
97120
+ };
97121
+ content: {
97122
+ "application/json": components["schemas"]["Error"];
97123
+ };
97124
+ };
97125
+ /** @description Unauthorized */
97126
+ 401: {
97127
+ headers: {
97128
+ [name: string]: unknown;
97129
+ };
97130
+ content: {
97131
+ "application/json": components["schemas"]["Error"];
97132
+ };
97133
+ };
97134
+ /** @description Forbidden */
97135
+ 403: {
97136
+ headers: {
97137
+ [name: string]: unknown;
97138
+ };
97139
+ content: {
97140
+ "application/json": components["schemas"]["Error"];
97141
+ };
97142
+ };
97143
+ /** @description Not found */
97144
+ 404: {
97145
+ headers: {
97146
+ [name: string]: unknown;
97147
+ };
97148
+ content: {
97149
+ "application/json": components["schemas"]["Error"];
97150
+ };
97151
+ };
97152
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
97153
+ 409: {
97154
+ headers: {
97155
+ [name: string]: unknown;
97156
+ };
97157
+ content: {
97158
+ "application/json": components["schemas"]["Error"];
97159
+ };
97160
+ };
97161
+ /** @description Rate limited */
97162
+ 429: {
97163
+ headers: {
97164
+ [name: string]: unknown;
97165
+ };
97166
+ content: {
97167
+ "application/json": components["schemas"]["Error"];
97168
+ };
97169
+ };
97170
+ };
97171
+ };
97172
+ trace?: never;
97173
+ };
96656
97174
  "/clinic/booking-drafts": {
96657
97175
  parameters: {
96658
97176
  query?: never;
@@ -113625,7 +114143,7 @@ interface paths {
113625
114143
  parameters: {
113626
114144
  query: {
113627
114145
  /** @description The outcome stage to preview. One the workspace sends (a stage outside its vertical → 404). */
113628
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
114146
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
113629
114147
  /** @description `1` serves the deterministic sample dataset («Ver con datos de ejemplo»): same shapes, invented but internally consistent figures, no entitlement required (the scope still is). A sandbox workspace is always served the sample, with or without this parameter. */
113630
114148
  sample?: "1" | "true";
113631
114149
  };
@@ -113857,7 +114375,7 @@ interface paths {
113857
114375
  * @description Which stage the test imitates (its rule and event name). Defaults to the Purchase stage, else the first stage that reaches Meta.
113858
114376
  * @enum {string}
113859
114377
  */
113860
- stage?: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
114378
+ stage?: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
113861
114379
  /** @description The code Meta shows in Events Manager → Test Events. Omit it and one is generated: a test ALWAYS carries a code, so it lands in Test Events only and never counts as a real event. */
113862
114380
  test_event_code?: string;
113863
114381
  /**
@@ -205065,7 +205583,7 @@ interface components {
205065
205583
  vertical: string | null;
205066
205584
  rules: {
205067
205585
  /** @enum {string} */
205068
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205586
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205069
205587
  /**
205070
205588
  * @description `unchanged` = the rule already held this body; nothing was written.
205071
205589
  * @enum {string}
@@ -205139,7 +205657,7 @@ interface components {
205139
205657
  } | null;
205140
205658
  stages: {
205141
205659
  /** @enum {string} */
205142
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205660
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205143
205661
  /** @description The stage in the workspace’s words. */
205144
205662
  label: string;
205145
205663
  /** @description What Meta receives. */
@@ -205299,7 +205817,7 @@ interface components {
205299
205817
  /** @description Advice only — Vitrina never changes an ad set’s goal: the earliest stage reached by 1–40 % of new contacts over 28 days, once there are ≥ 50 (what Meta learns best from with this volume); `default` = not enough data yet, the usual answer for the business type. Never a standard event on a health-restricted dataset. */
205300
205818
  recommended_optimization_stage: {
205301
205819
  /** @enum {string} */
205302
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205820
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205303
205821
  /** @enum {string} */
205304
205822
  reason: "rate_band" | "default";
205305
205823
  rate: number | null;
@@ -205338,7 +205856,7 @@ interface components {
205338
205856
  };
205339
205857
  AdsSendPreviewEvent: {
205340
205858
  /** @enum {string} */
205341
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received";
205859
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
205342
205860
  /**
205343
205861
  * @description `example` when the workspace has no event of this stage yet.
205344
205862
  * @enum {string}
@@ -205396,7 +205914,7 @@ interface components {
205396
205914
  /** @description Search for it in Events Manager → Test Events. */
205397
205915
  event_id: string | null;
205398
205916
  /** @enum {string|null} */
205399
- stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | null;
205917
+ stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed" | null;
205400
205918
  meta_event: string | null;
205401
205919
  quality_warning: boolean;
205402
205920
  test_events_link: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.79.1",
3
+ "version": "14.82.1",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",