@vitrina/api 14.52.0 → 14.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -6679,6 +6679,7 @@ interface paths {
6679
6679
  * "is_marketing": false,
6680
6680
  * "template_stage_key": "new",
6681
6681
  * "funnel_step_key": "contact",
6682
+ * "qualifies_lead": false,
6682
6683
  * "created_at": "2026-09-04T19:07:05.226Z"
6683
6684
  * },
6684
6685
  * {
@@ -6704,6 +6705,7 @@ interface paths {
6704
6705
  * "is_marketing": false,
6705
6706
  * "template_stage_key": "contacted",
6706
6707
  * "funnel_step_key": "contact",
6708
+ * "qualifies_lead": false,
6707
6709
  * "created_at": "2026-09-04T19:07:05.226Z"
6708
6710
  * },
6709
6711
  * {
@@ -6725,6 +6727,7 @@ interface paths {
6725
6727
  * "is_marketing": false,
6726
6728
  * "template_stage_key": "won",
6727
6729
  * "funnel_step_key": "won",
6730
+ * "qualifies_lead": false,
6728
6731
  * "created_at": "2026-09-04T19:07:05.226Z"
6729
6732
  * }
6730
6733
  * ]
@@ -7102,6 +7105,7 @@ interface paths {
7102
7105
  * "is_marketing": false,
7103
7106
  * "template_stage_key": "new",
7104
7107
  * "funnel_step_key": "contact",
7108
+ * "qualifies_lead": false,
7105
7109
  * "created_at": "2026-09-04T19:07:05.226Z",
7106
7110
  * "ai_agent": null
7107
7111
  * },
@@ -7128,6 +7132,7 @@ interface paths {
7128
7132
  * "is_marketing": false,
7129
7133
  * "template_stage_key": "contacted",
7130
7134
  * "funnel_step_key": "contact",
7135
+ * "qualifies_lead": false,
7131
7136
  * "created_at": "2026-09-04T19:07:05.226Z",
7132
7137
  * "ai_agent": null
7133
7138
  * },
@@ -7150,6 +7155,7 @@ interface paths {
7150
7155
  * "is_marketing": false,
7151
7156
  * "template_stage_key": "won",
7152
7157
  * "funnel_step_key": "won",
7158
+ * "qualifies_lead": false,
7153
7159
  * "created_at": "2026-09-04T19:07:05.226Z",
7154
7160
  * "ai_agent": null
7155
7161
  * }
@@ -8027,6 +8033,7 @@ interface paths {
8027
8033
  * "is_marketing": false,
8028
8034
  * "template_stage_key": "new",
8029
8035
  * "funnel_step_key": "contact",
8036
+ * "qualifies_lead": false,
8030
8037
  * "created_at": "2026-09-04T19:07:05.226Z"
8031
8038
  * },
8032
8039
  * {
@@ -8052,6 +8059,7 @@ interface paths {
8052
8059
  * "is_marketing": false,
8053
8060
  * "template_stage_key": "contacted",
8054
8061
  * "funnel_step_key": "contact",
8062
+ * "qualifies_lead": false,
8055
8063
  * "created_at": "2026-09-04T19:07:05.226Z"
8056
8064
  * },
8057
8065
  * {
@@ -8073,6 +8081,7 @@ interface paths {
8073
8081
  * "is_marketing": false,
8074
8082
  * "template_stage_key": "won",
8075
8083
  * "funnel_step_key": "won",
8084
+ * "qualifies_lead": false,
8076
8085
  * "created_at": "2026-09-04T19:07:05.226Z"
8077
8086
  * }
8078
8087
  * ],
@@ -8147,7 +8156,7 @@ interface paths {
8147
8156
  };
8148
8157
  /**
8149
8158
  * Update stages in bulk
8150
- * @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.
8159
+ * @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.
8151
8160
  */
8152
8161
  put: {
8153
8162
  parameters: {
@@ -8185,6 +8194,7 @@ interface paths {
8185
8194
  sla_days?: number | null;
8186
8195
  allowed_transitions_to?: string[];
8187
8196
  funnel_step_key?: string | null;
8197
+ qualifies_lead?: boolean;
8188
8198
  }[];
8189
8199
  };
8190
8200
  };
@@ -8221,6 +8231,7 @@ interface paths {
8221
8231
  * "is_marketing": false,
8222
8232
  * "template_stage_key": "new",
8223
8233
  * "funnel_step_key": "contact",
8234
+ * "qualifies_lead": false,
8224
8235
  * "created_at": "2026-09-04T19:07:05.226Z"
8225
8236
  * },
8226
8237
  * {
@@ -8246,6 +8257,7 @@ interface paths {
8246
8257
  * "is_marketing": false,
8247
8258
  * "template_stage_key": "contacted",
8248
8259
  * "funnel_step_key": "contact",
8260
+ * "qualifies_lead": false,
8249
8261
  * "created_at": "2026-09-04T19:07:05.226Z"
8250
8262
  * }
8251
8263
  * ],
@@ -8307,6 +8319,15 @@ interface paths {
8307
8319
  "application/json": components["schemas"]["Error"];
8308
8320
  };
8309
8321
  };
8322
+ /** @description `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`: `qualifies_lead: true` on a stage that is not an open stage of a sales pipeline. Nothing is written. */
8323
+ 422: {
8324
+ headers: {
8325
+ [name: string]: unknown;
8326
+ };
8327
+ content: {
8328
+ "application/json": components["schemas"]["Error"];
8329
+ };
8330
+ };
8310
8331
  /** @description Rate limited */
8311
8332
  429: {
8312
8333
  headers: {
@@ -8320,7 +8341,7 @@ interface paths {
8320
8341
  };
8321
8342
  /**
8322
8343
  * Create stage
8323
- * @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.
8344
+ * @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.
8324
8345
  */
8325
8346
  post: {
8326
8347
  parameters: {
@@ -8368,6 +8389,7 @@ interface paths {
8368
8389
  sla_days?: number | null;
8369
8390
  allowed_transitions_to?: string[];
8370
8391
  funnel_step_key?: string | null;
8392
+ qualifies_lead?: boolean;
8371
8393
  };
8372
8394
  };
8373
8395
  };
@@ -8403,6 +8425,7 @@ interface paths {
8403
8425
  * "is_marketing": false,
8404
8426
  * "template_stage_key": "contacted",
8405
8427
  * "funnel_step_key": "contact",
8428
+ * "qualifies_lead": false,
8406
8429
  * "created_at": "2026-09-04T19:07:05.226Z"
8407
8430
  * }
8408
8431
  * }
@@ -8457,6 +8480,15 @@ interface paths {
8457
8480
  "application/json": components["schemas"]["Error"];
8458
8481
  };
8459
8482
  };
8483
+ /** @description `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`: `qualifies_lead: true` on a stage that is not an open stage of a sales pipeline. Nothing is written. */
8484
+ 422: {
8485
+ headers: {
8486
+ [name: string]: unknown;
8487
+ };
8488
+ content: {
8489
+ "application/json": components["schemas"]["Error"];
8490
+ };
8491
+ };
8460
8492
  /** @description Rate limited */
8461
8493
  429: {
8462
8494
  headers: {
@@ -8533,6 +8565,7 @@ interface paths {
8533
8565
  sla_days?: number | null;
8534
8566
  allowed_transitions_to?: string[];
8535
8567
  funnel_step_key?: string | null;
8568
+ qualifies_lead?: boolean;
8536
8569
  }[];
8537
8570
  };
8538
8571
  };
@@ -8569,6 +8602,7 @@ interface paths {
8569
8602
  * "is_marketing": false,
8570
8603
  * "template_stage_key": "new",
8571
8604
  * "funnel_step_key": "contact",
8605
+ * "qualifies_lead": false,
8572
8606
  * "created_at": "2026-09-04T19:07:05.226Z"
8573
8607
  * },
8574
8608
  * {
@@ -8590,6 +8624,7 @@ interface paths {
8590
8624
  * "is_marketing": false,
8591
8625
  * "template_stage_key": "won",
8592
8626
  * "funnel_step_key": "won",
8627
+ * "qualifies_lead": false,
8593
8628
  * "created_at": "2026-09-04T19:07:05.226Z"
8594
8629
  * }
8595
8630
  * ],
@@ -8648,6 +8683,15 @@ interface paths {
8648
8683
  "application/json": components["schemas"]["Error"];
8649
8684
  };
8650
8685
  };
8686
+ /** @description `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`: `qualifies_lead: true` on a stage that is not an open stage of a sales pipeline. Nothing is written. */
8687
+ 422: {
8688
+ headers: {
8689
+ [name: string]: unknown;
8690
+ };
8691
+ content: {
8692
+ "application/json": components["schemas"]["Error"];
8693
+ };
8694
+ };
8651
8695
  /** @description Rate limited */
8652
8696
  429: {
8653
8697
  headers: {
@@ -8718,6 +8762,7 @@ interface paths {
8718
8762
  * "is_marketing": false,
8719
8763
  * "template_stage_key": "new",
8720
8764
  * "funnel_step_key": "contact",
8765
+ * "qualifies_lead": false,
8721
8766
  * "created_at": "2026-09-04T19:07:05.226Z"
8722
8767
  * }
8723
8768
  * }
@@ -8788,7 +8833,7 @@ interface paths {
8788
8833
  };
8789
8834
  /**
8790
8835
  * Update stage
8791
- * @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.
8836
+ * @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.
8792
8837
  */
8793
8838
  put: {
8794
8839
  parameters: {
@@ -8820,6 +8865,7 @@ interface paths {
8820
8865
  sla_days?: number | null;
8821
8866
  allowed_transitions_to?: string[];
8822
8867
  funnel_step_key?: string | null;
8868
+ qualifies_lead?: boolean;
8823
8869
  };
8824
8870
  };
8825
8871
  };
@@ -8855,6 +8901,7 @@ interface paths {
8855
8901
  * "is_marketing": false,
8856
8902
  * "template_stage_key": "contacted",
8857
8903
  * "funnel_step_key": "contact",
8904
+ * "qualifies_lead": false,
8858
8905
  * "created_at": "2026-09-04T19:07:05.226Z"
8859
8906
  * }
8860
8907
  * }
@@ -8912,6 +8959,15 @@ interface paths {
8912
8959
  "application/json": components["schemas"]["Error"];
8913
8960
  };
8914
8961
  };
8962
+ /** @description `STAGE_QUALIFIES_LEAD_NOT_ALLOWED`: `qualifies_lead: true` on a stage that is not an open stage of a sales pipeline. Nothing is written. */
8963
+ 422: {
8964
+ headers: {
8965
+ [name: string]: unknown;
8966
+ };
8967
+ content: {
8968
+ "application/json": components["schemas"]["Error"];
8969
+ };
8970
+ };
8915
8971
  /** @description Rate limited */
8916
8972
  429: {
8917
8973
  headers: {
@@ -109870,38 +109926,38 @@ interface paths {
109870
109926
  * "purchases_reversed_28d": 0
109871
109927
  * },
109872
109928
  * {
109873
- * "stage": "checkout_started",
109874
- * "label": "Abrió el link de pago",
109875
- * "meta_event": "InitiateCheckout",
109929
+ * "stage": "appointment_attended",
109930
+ * "label": "Cita atendida",
109931
+ * "meta_event": "vitrina_step_3",
109876
109932
  * "meta_event_names": [
109877
- * "InitiateCheckout"
109933
+ * "vitrina_step_3"
109878
109934
  * ],
109879
109935
  * "meta_event_messaging": null,
109880
- * "meta_event_kind": "standard",
109881
- * "meta_event_neutral": false,
109882
- * "value": "payment",
109936
+ * "meta_event_kind": "custom",
109937
+ * "meta_event_neutral": true,
109938
+ * "value": "none",
109883
109939
  * "enabled": false,
109884
- * "switchable": false,
109940
+ * "switchable": true,
109885
109941
  * "lock": null,
109886
109942
  * "awaiting_switch": false,
109887
- * "source": "definition_missing",
109943
+ * "source": "available",
109888
109944
  * "ready": false,
109889
- * "ready_reason": "definition_missing",
109890
- * "count_28d": 0,
109891
- * "weekly_28d": 0,
109945
+ * "ready_reason": "off",
109946
+ * "count_28d": 71,
109947
+ * "weekly_28d": 16.6,
109892
109948
  * "measured_weeks": 4,
109893
109949
  * "measured_days": 30,
109894
109950
  * "window_days": 30,
109895
109951
  * "events_7d": 0,
109896
109952
  * "with_ad_click_7d": 0,
109897
- * "events_30d": 0,
109953
+ * "events_30d": 71,
109898
109954
  * "with_ad_click_30d": 0,
109899
109955
  * "without_ad_click_7d": 0,
109900
- * "without_ad_click_30d": 0,
109956
+ * "without_ad_click_30d": 71,
109901
109957
  * "verdict": "not_checked",
109902
109958
  * "active_ad_sets": 0,
109903
- * "last_sent_at": null,
109904
- * "sent_7d": 0,
109959
+ * "last_sent_at": "2026-09-25T10:40:00.000Z",
109960
+ * "sent_7d": 10,
109905
109961
  * "meta_volume_7d": null,
109906
109962
  * "series_7d": [
109907
109963
  * {
@@ -109935,45 +109991,45 @@ interface paths {
109935
109991
  * ],
109936
109992
  * "weekly_learning_target": 50,
109937
109993
  * "changed_by": null,
109938
- * "changed_at": null,
109994
+ * "changed_at": "2026-09-23T13:40:00.000Z",
109939
109995
  * "value_capped_7d": 0,
109940
109996
  * "value_cap_clp": null,
109941
109997
  * "too_old_28d": 0,
109942
109998
  * "purchases_reversed_28d": 0
109943
109999
  * },
109944
110000
  * {
109945
- * "stage": "deposit_paid",
109946
- * "label": "Abono pagado",
109947
- * "meta_event": "vitrina_step_8",
110001
+ * "stage": "quote_presented",
110002
+ * "label": "Presupuesto presentado",
110003
+ * "meta_event": "vitrina_step_4",
109948
110004
  * "meta_event_names": [
109949
- * "vitrina_step_8"
110005
+ * "vitrina_step_4"
109950
110006
  * ],
109951
110007
  * "meta_event_messaging": null,
109952
110008
  * "meta_event_kind": "custom",
109953
110009
  * "meta_event_neutral": true,
109954
- * "value": "payment",
109955
- * "enabled": false,
109956
- * "switchable": false,
110010
+ * "value": "none",
110011
+ * "enabled": true,
110012
+ * "switchable": true,
109957
110013
  * "lock": null,
109958
110014
  * "awaiting_switch": false,
109959
- * "source": "definition_missing",
109960
- * "ready": false,
109961
- * "ready_reason": "definition_missing",
109962
- * "count_28d": 0,
109963
- * "weekly_28d": 0,
110015
+ * "source": "available",
110016
+ * "ready": true,
110017
+ * "ready_reason": null,
110018
+ * "count_28d": 40,
110019
+ * "weekly_28d": 9.3,
109964
110020
  * "measured_weeks": 4,
109965
110021
  * "measured_days": 30,
109966
110022
  * "window_days": 30,
109967
110023
  * "events_7d": 0,
109968
110024
  * "with_ad_click_7d": 0,
109969
- * "events_30d": 0,
110025
+ * "events_30d": 40,
109970
110026
  * "with_ad_click_30d": 0,
109971
110027
  * "without_ad_click_7d": 0,
109972
- * "without_ad_click_30d": 0,
110028
+ * "without_ad_click_30d": 40,
109973
110029
  * "verdict": "not_checked",
109974
110030
  * "active_ad_sets": 0,
109975
- * "last_sent_at": null,
109976
- * "sent_7d": 0,
110031
+ * "last_sent_at": "2026-09-25T09:40:00.000Z",
110032
+ * "sent_7d": 9,
109977
110033
  * "meta_volume_7d": null,
109978
110034
  * "series_7d": [
109979
110035
  * {
@@ -110014,39 +110070,39 @@ interface paths {
110014
110070
  * "purchases_reversed_28d": 0
110015
110071
  * },
110016
110072
  * {
110017
- * "stage": "appointment_attended",
110018
- * "label": "Cita atendida",
110019
- * "meta_event": "vitrina_step_3",
110073
+ * "stage": "closed_won",
110074
+ * "label": "Presupuesto aceptado",
110075
+ * "meta_event": "vitrina_step_5",
110020
110076
  * "meta_event_names": [
110021
- * "vitrina_step_3"
110077
+ * "vitrina_step_5"
110022
110078
  * ],
110023
110079
  * "meta_event_messaging": null,
110024
110080
  * "meta_event_kind": "custom",
110025
110081
  * "meta_event_neutral": true,
110026
110082
  * "value": "none",
110027
- * "enabled": false,
110083
+ * "enabled": true,
110028
110084
  * "switchable": true,
110029
110085
  * "lock": null,
110030
110086
  * "awaiting_switch": false,
110031
110087
  * "source": "available",
110032
- * "ready": false,
110033
- * "ready_reason": "off",
110034
- * "count_28d": 71,
110035
- * "weekly_28d": 16.6,
110088
+ * "ready": true,
110089
+ * "ready_reason": null,
110090
+ * "count_28d": 22,
110091
+ * "weekly_28d": 5.1,
110036
110092
  * "measured_weeks": 4,
110037
110093
  * "measured_days": 30,
110038
110094
  * "window_days": 30,
110039
110095
  * "events_7d": 0,
110040
110096
  * "with_ad_click_7d": 0,
110041
- * "events_30d": 71,
110097
+ * "events_30d": 22,
110042
110098
  * "with_ad_click_30d": 0,
110043
110099
  * "without_ad_click_7d": 0,
110044
- * "without_ad_click_30d": 71,
110045
- * "verdict": "not_checked",
110046
- * "active_ad_sets": 0,
110047
- * "last_sent_at": "2026-09-25T10:40:00.000Z",
110048
- * "sent_7d": 10,
110049
- * "meta_volume_7d": null,
110100
+ * "without_ad_click_30d": 22,
110101
+ * "verdict": "wired",
110102
+ * "active_ad_sets": 2,
110103
+ * "last_sent_at": "2026-09-25T08:40:00.000Z",
110104
+ * "sent_7d": 8,
110105
+ * "meta_volume_7d": 14,
110050
110106
  * "series_7d": [
110051
110107
  * {
110052
110108
  * "date": "2026-09-19",
@@ -110066,58 +110122,58 @@ interface paths {
110066
110122
  * },
110067
110123
  * {
110068
110124
  * "date": "2026-09-23",
110069
- * "count": 0
110125
+ * "count": 1
110070
110126
  * },
110071
110127
  * {
110072
110128
  * "date": "2026-09-24",
110073
- * "count": 0
110129
+ * "count": 1
110074
110130
  * },
110075
110131
  * {
110076
110132
  * "date": "2026-09-25",
110077
- * "count": 0
110133
+ * "count": 1
110078
110134
  * }
110079
110135
  * ],
110080
110136
  * "weekly_learning_target": 50,
110081
110137
  * "changed_by": null,
110082
- * "changed_at": "2026-09-23T13:40:00.000Z",
110138
+ * "changed_at": null,
110083
110139
  * "value_capped_7d": 0,
110084
110140
  * "value_cap_clp": null,
110085
110141
  * "too_old_28d": 0,
110086
110142
  * "purchases_reversed_28d": 0
110087
110143
  * },
110088
110144
  * {
110089
- * "stage": "quote_presented",
110090
- * "label": "Presupuesto presentado",
110091
- * "meta_event": "vitrina_step_4",
110145
+ * "stage": "first_payment",
110146
+ * "label": "Primer pago de un tratamiento nuevo",
110147
+ * "meta_event": "Purchase",
110092
110148
  * "meta_event_names": [
110093
- * "vitrina_step_4"
110149
+ * "Purchase"
110094
110150
  * ],
110095
110151
  * "meta_event_messaging": null,
110096
- * "meta_event_kind": "custom",
110097
- * "meta_event_neutral": true,
110098
- * "value": "none",
110099
- * "enabled": true,
110100
- * "switchable": true,
110152
+ * "meta_event_kind": "standard",
110153
+ * "meta_event_neutral": false,
110154
+ * "value": "accepted_total",
110155
+ * "enabled": false,
110156
+ * "switchable": false,
110101
110157
  * "lock": null,
110102
110158
  * "awaiting_switch": false,
110103
- * "source": "available",
110104
- * "ready": true,
110105
- * "ready_reason": null,
110106
- * "count_28d": 40,
110107
- * "weekly_28d": 9.3,
110159
+ * "source": "definition_missing",
110160
+ * "ready": false,
110161
+ * "ready_reason": "definition_missing",
110162
+ * "count_28d": 64,
110163
+ * "weekly_28d": 14.9,
110108
110164
  * "measured_weeks": 4,
110109
110165
  * "measured_days": 30,
110110
110166
  * "window_days": 30,
110111
110167
  * "events_7d": 0,
110112
110168
  * "with_ad_click_7d": 0,
110113
- * "events_30d": 40,
110169
+ * "events_30d": 0,
110114
110170
  * "with_ad_click_30d": 0,
110115
110171
  * "without_ad_click_7d": 0,
110116
- * "without_ad_click_30d": 40,
110172
+ * "without_ad_click_30d": 0,
110117
110173
  * "verdict": "not_checked",
110118
110174
  * "active_ad_sets": 0,
110119
- * "last_sent_at": "2026-09-25T09:40:00.000Z",
110120
- * "sent_7d": 9,
110175
+ * "last_sent_at": null,
110176
+ * "sent_7d": 0,
110121
110177
  * "meta_volume_7d": null,
110122
110178
  * "series_7d": [
110123
110179
  * {
@@ -110158,39 +110214,39 @@ interface paths {
110158
110214
  * "purchases_reversed_28d": 0
110159
110215
  * },
110160
110216
  * {
110161
- * "stage": "closed_won",
110162
- * "label": "Presupuesto aceptado",
110163
- * "meta_event": "vitrina_step_5",
110217
+ * "stage": "returning_first_payment",
110218
+ * "label": "Primer pago de un tratamiento de un paciente que vuelve",
110219
+ * "meta_event": "vitrina_step_7",
110164
110220
  * "meta_event_names": [
110165
- * "vitrina_step_5"
110221
+ * "vitrina_step_7"
110166
110222
  * ],
110167
110223
  * "meta_event_messaging": null,
110168
110224
  * "meta_event_kind": "custom",
110169
110225
  * "meta_event_neutral": true,
110170
110226
  * "value": "none",
110171
- * "enabled": true,
110172
- * "switchable": true,
110227
+ * "enabled": false,
110228
+ * "switchable": false,
110173
110229
  * "lock": null,
110174
110230
  * "awaiting_switch": false,
110175
- * "source": "available",
110176
- * "ready": true,
110177
- * "ready_reason": null,
110178
- * "count_28d": 22,
110179
- * "weekly_28d": 5.1,
110231
+ * "source": "definition_missing",
110232
+ * "ready": false,
110233
+ * "ready_reason": "definition_missing",
110234
+ * "count_28d": 0,
110235
+ * "weekly_28d": 0,
110180
110236
  * "measured_weeks": 4,
110181
110237
  * "measured_days": 30,
110182
110238
  * "window_days": 30,
110183
110239
  * "events_7d": 0,
110184
110240
  * "with_ad_click_7d": 0,
110185
- * "events_30d": 22,
110241
+ * "events_30d": 0,
110186
110242
  * "with_ad_click_30d": 0,
110187
110243
  * "without_ad_click_7d": 0,
110188
- * "without_ad_click_30d": 22,
110189
- * "verdict": "wired",
110190
- * "active_ad_sets": 2,
110191
- * "last_sent_at": "2026-09-25T08:40:00.000Z",
110192
- * "sent_7d": 8,
110193
- * "meta_volume_7d": 14,
110244
+ * "without_ad_click_30d": 0,
110245
+ * "verdict": "not_checked",
110246
+ * "active_ad_sets": 0,
110247
+ * "last_sent_at": null,
110248
+ * "sent_7d": 0,
110249
+ * "meta_volume_7d": null,
110194
110250
  * "series_7d": [
110195
110251
  * {
110196
110252
  * "date": "2026-09-19",
@@ -110210,15 +110266,15 @@ interface paths {
110210
110266
  * },
110211
110267
  * {
110212
110268
  * "date": "2026-09-23",
110213
- * "count": 1
110269
+ * "count": 0
110214
110270
  * },
110215
110271
  * {
110216
110272
  * "date": "2026-09-24",
110217
- * "count": 1
110273
+ * "count": 0
110218
110274
  * },
110219
110275
  * {
110220
110276
  * "date": "2026-09-25",
110221
- * "count": 1
110277
+ * "count": 0
110222
110278
  * }
110223
110279
  * ],
110224
110280
  * "weekly_learning_target": 50,
@@ -110230,8 +110286,8 @@ interface paths {
110230
110286
  * "purchases_reversed_28d": 0
110231
110287
  * },
110232
110288
  * {
110233
- * "stage": "first_payment",
110234
- * "label": "Primer pago de un tratamiento nuevo",
110289
+ * "stage": "payment_received",
110290
+ * "label": "Pago recibido",
110235
110291
  * "meta_event": "Purchase",
110236
110292
  * "meta_event_names": [
110237
110293
  * "Purchase"
@@ -110239,29 +110295,29 @@ interface paths {
110239
110295
  * "meta_event_messaging": null,
110240
110296
  * "meta_event_kind": "standard",
110241
110297
  * "meta_event_neutral": false,
110242
- * "value": "accepted_total",
110298
+ * "value": "payment",
110243
110299
  * "enabled": false,
110244
110300
  * "switchable": false,
110245
- * "lock": null,
110301
+ * "lock": "installments",
110246
110302
  * "awaiting_switch": false,
110247
- * "source": "definition_missing",
110303
+ * "source": "available",
110248
110304
  * "ready": false,
110249
- * "ready_reason": "definition_missing",
110250
- * "count_28d": 64,
110251
- * "weekly_28d": 14.9,
110305
+ * "ready_reason": "installments",
110306
+ * "count_28d": 58,
110307
+ * "weekly_28d": 13.5,
110252
110308
  * "measured_weeks": 4,
110253
110309
  * "measured_days": 30,
110254
110310
  * "window_days": 30,
110255
110311
  * "events_7d": 0,
110256
110312
  * "with_ad_click_7d": 0,
110257
- * "events_30d": 0,
110313
+ * "events_30d": 58,
110258
110314
  * "with_ad_click_30d": 0,
110259
110315
  * "without_ad_click_7d": 0,
110260
- * "without_ad_click_30d": 0,
110316
+ * "without_ad_click_30d": 58,
110261
110317
  * "verdict": "not_checked",
110262
110318
  * "active_ad_sets": 0,
110263
- * "last_sent_at": null,
110264
- * "sent_7d": 0,
110319
+ * "last_sent_at": "2026-09-25T07:40:00.000Z",
110320
+ * "sent_7d": 7,
110265
110321
  * "meta_volume_7d": null,
110266
110322
  * "series_7d": [
110267
110323
  * {
@@ -110302,16 +110358,16 @@ interface paths {
110302
110358
  * "purchases_reversed_28d": 0
110303
110359
  * },
110304
110360
  * {
110305
- * "stage": "returning_first_payment",
110306
- * "label": "Primer pago de un tratamiento de un paciente que vuelve",
110307
- * "meta_event": "vitrina_step_7",
110361
+ * "stage": "checkout_started",
110362
+ * "label": "Abrió el link de pago",
110363
+ * "meta_event": "InitiateCheckout",
110308
110364
  * "meta_event_names": [
110309
- * "vitrina_step_7"
110365
+ * "InitiateCheckout"
110310
110366
  * ],
110311
110367
  * "meta_event_messaging": null,
110312
- * "meta_event_kind": "custom",
110313
- * "meta_event_neutral": true,
110314
- * "value": "none",
110368
+ * "meta_event_kind": "standard",
110369
+ * "meta_event_neutral": false,
110370
+ * "value": "payment",
110315
110371
  * "enabled": false,
110316
110372
  * "switchable": false,
110317
110373
  * "lock": null,
@@ -110374,38 +110430,38 @@ interface paths {
110374
110430
  * "purchases_reversed_28d": 0
110375
110431
  * },
110376
110432
  * {
110377
- * "stage": "payment_received",
110378
- * "label": "Pago recibido",
110379
- * "meta_event": "Purchase",
110433
+ * "stage": "deposit_paid",
110434
+ * "label": "Abono pagado",
110435
+ * "meta_event": "vitrina_step_8",
110380
110436
  * "meta_event_names": [
110381
- * "Purchase"
110437
+ * "vitrina_step_8"
110382
110438
  * ],
110383
110439
  * "meta_event_messaging": null,
110384
- * "meta_event_kind": "standard",
110385
- * "meta_event_neutral": false,
110440
+ * "meta_event_kind": "custom",
110441
+ * "meta_event_neutral": true,
110386
110442
  * "value": "payment",
110387
110443
  * "enabled": false,
110388
110444
  * "switchable": false,
110389
- * "lock": "installments",
110445
+ * "lock": null,
110390
110446
  * "awaiting_switch": false,
110391
- * "source": "available",
110447
+ * "source": "definition_missing",
110392
110448
  * "ready": false,
110393
- * "ready_reason": "installments",
110394
- * "count_28d": 58,
110395
- * "weekly_28d": 13.5,
110449
+ * "ready_reason": "definition_missing",
110450
+ * "count_28d": 0,
110451
+ * "weekly_28d": 0,
110396
110452
  * "measured_weeks": 4,
110397
110453
  * "measured_days": 30,
110398
110454
  * "window_days": 30,
110399
110455
  * "events_7d": 0,
110400
110456
  * "with_ad_click_7d": 0,
110401
- * "events_30d": 58,
110457
+ * "events_30d": 0,
110402
110458
  * "with_ad_click_30d": 0,
110403
110459
  * "without_ad_click_7d": 0,
110404
- * "without_ad_click_30d": 58,
110460
+ * "without_ad_click_30d": 0,
110405
110461
  * "verdict": "not_checked",
110406
110462
  * "active_ad_sets": 0,
110407
- * "last_sent_at": "2026-09-25T07:40:00.000Z",
110408
- * "sent_7d": 7,
110463
+ * "last_sent_at": null,
110464
+ * "sent_7d": 0,
110409
110465
  * "meta_volume_7d": null,
110410
110466
  * "series_7d": [
110411
110467
  * {
@@ -197081,7 +197137,7 @@ declare function createClient(opts: CreateClientOptions): VitrinaClient;
197081
197137
  * is regenerated — narrow on the ones you handle, never assume this
197082
197138
  * list is exhaustive at runtime.
197083
197139
  */
197084
- type ErrorCode = 'VALIDATION_ERROR' | 'NOT_FOUND' | 'UNAUTHORIZED' | 'FORBIDDEN' | 'CONFLICT' | 'ACCOUNT_DELETION_BLOCKED' | 'CONFIRMATION_REQUIRED' | 'VERSION_CONFLICT' | 'UNIQUE_CONFLICT' | 'IDEMPOTENCY_KEY_CONFLICT' | 'VERTICAL_NOT_ENABLED' | 'ENTITLEMENT_NOT_ACTIVE' | 'UNSUPPORTED_VEHICLE_TYPE' | 'VEHICLE_VALUE_OUT_OF_RANGE' | 'PRICE_CHANGE_CONFIRMATION_REQUIRED' | 'NO_OFFERING_ADAPTER' | 'PAYLOAD_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'UPSTREAM_ERROR' | 'RATE_LIMITED' | 'GONE' | 'INTERNAL_ERROR' | 'MESSAGING_ACCOUNT_TENANT_MISSING' | 'COPILOT_APPROVALS_UNAVAILABLE' | 'COPILOT_APPROVAL_REPLAY_BLOCKED' | 'COPILOT_DISABLED' | 'COPILOT_BUDGET_EXCEEDED' | 'DEALER_SITES_NOT_CONFIGURED' | 'STOREFRONT_ZONES_NOT_CONFIGURED' | 'RECONTACTO_NOT_ENABLED' | 'SYNC_QUEUE_UNAVAILABLE' | 'SHARE_IMAGE_UNAVAILABLE' | 'AUDIO_RENDITION_PENDING' | 'ATTRIBUTION_PROFILE_UNAVAILABLE' | 'DOCUMENT_LOGO_UNAVAILABLE' | 'ATTRIBUTION_PROFILE_MISMATCH' | 'ADS_KEY_NEEDS_REMINT' | 'ADS_ACTION_READ_UNAVAILABLE' | 'ADS_ACTION_REPLAY_BLOCKED' | 'ADS_ACTION_NOT_AVAILABLE' | 'ADS_ACTION_NOT_REVERSIBLE' | 'ADS_ACTION_CONSENT_REQUIRED' | 'GTM_NOT_CONFIGURED' | 'GTM_NOT_CONNECTED' | 'GTM_CONSENT_REQUIRED' | 'GTM_PERMISSION_DENIED' | 'GTM_CONTAINER_REQUIRED' | 'GTM_PENDING_CHANGES' | 'GTM_WORKSPACE_CONFLICT' | 'GTM_WORKSPACE_LIMIT' | 'MISSING_SIGNATURE' | 'MALFORMED_SIGNATURE' | 'STALE_SIGNATURE' | 'INVALID_SIGNATURE' | 'REPLAY_DETECTED' | 'TURNSTILE_UNAVAILABLE' | 'TASADOR_QUOTA_EXHAUSTED' | 'TASADOR_ANON_DAILY_LIMIT' | 'TASADOR_CAPACITY_REACHED' | 'CLINIC_PLAN_REQUIRED' | 'TENANT_BILLING_PAUSED';
197140
+ type ErrorCode = 'VALIDATION_ERROR' | 'NOT_FOUND' | 'UNAUTHORIZED' | 'FORBIDDEN' | 'CONFLICT' | 'ACCOUNT_DELETION_BLOCKED' | 'CONFIRMATION_REQUIRED' | 'VERSION_CONFLICT' | 'UNIQUE_CONFLICT' | 'IDEMPOTENCY_KEY_CONFLICT' | 'VERTICAL_NOT_ENABLED' | 'ENTITLEMENT_NOT_ACTIVE' | 'UNSUPPORTED_VEHICLE_TYPE' | 'VEHICLE_VALUE_OUT_OF_RANGE' | 'PRICE_CHANGE_CONFIRMATION_REQUIRED' | 'NO_OFFERING_ADAPTER' | 'PAYLOAD_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'UPSTREAM_ERROR' | 'RATE_LIMITED' | 'GONE' | 'INTERNAL_ERROR' | 'MESSAGING_ACCOUNT_TENANT_MISSING' | 'COPILOT_APPROVALS_UNAVAILABLE' | 'COPILOT_APPROVAL_REPLAY_BLOCKED' | 'COPILOT_DISABLED' | 'COPILOT_BUDGET_EXCEEDED' | 'DEALER_SITES_NOT_CONFIGURED' | 'STAGE_QUALIFIES_LEAD_NOT_ALLOWED' | 'STOREFRONT_ZONES_NOT_CONFIGURED' | 'RECONTACTO_NOT_ENABLED' | 'SYNC_QUEUE_UNAVAILABLE' | 'SHARE_IMAGE_UNAVAILABLE' | 'AUDIO_RENDITION_PENDING' | 'ATTRIBUTION_PROFILE_UNAVAILABLE' | 'DOCUMENT_LOGO_UNAVAILABLE' | 'ATTRIBUTION_PROFILE_MISMATCH' | 'ADS_KEY_NEEDS_REMINT' | 'ADS_ACTION_READ_UNAVAILABLE' | 'ADS_ACTION_REPLAY_BLOCKED' | 'ADS_ACTION_NOT_AVAILABLE' | 'ADS_ACTION_NOT_REVERSIBLE' | 'ADS_ACTION_CONSENT_REQUIRED' | 'GTM_NOT_CONFIGURED' | 'GTM_NOT_CONNECTED' | 'GTM_CONSENT_REQUIRED' | 'GTM_PERMISSION_DENIED' | 'GTM_CONTAINER_REQUIRED' | 'GTM_PENDING_CHANGES' | 'GTM_WORKSPACE_CONFLICT' | 'GTM_WORKSPACE_LIMIT' | 'MISSING_SIGNATURE' | 'MALFORMED_SIGNATURE' | 'STALE_SIGNATURE' | 'INVALID_SIGNATURE' | 'REPLAY_DETECTED' | 'TURNSTILE_UNAVAILABLE' | 'TASADOR_QUOTA_EXHAUSTED' | 'TASADOR_ANON_DAILY_LIMIT' | 'TASADOR_CAPACITY_REACHED' | 'CLINIC_PLAN_REQUIRED' | 'TENANT_BILLING_PAUSED';
197085
197141
  declare const ERROR_CODES: readonly ErrorCode[];
197086
197142
 
197087
197143
  /**