@vitrina/api 14.76.2 → 14.77.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
@@ -12228,6 +12228,215 @@ interface paths {
12228
12228
  };
12229
12229
  trace?: never;
12230
12230
  };
12231
+ "/messaging-accounts/{id}/comment-dm-public-reply": {
12232
+ parameters: {
12233
+ query?: never;
12234
+ header?: never;
12235
+ path?: never;
12236
+ cookie?: never;
12237
+ };
12238
+ /**
12239
+ * Read the public comment reply for AI-judged comment→DMs
12240
+ * @description The line posted PUBLICLY under an Instagram/Facebook comment after a DM that no keyword rule produced (the classifier judged the commenter interested and the DM was sent). `null` = no public reply (default). Keyword rules keep their own `public_reply_template`.
12241
+ */
12242
+ get: {
12243
+ parameters: {
12244
+ query?: never;
12245
+ header?: never;
12246
+ path: {
12247
+ id: string;
12248
+ };
12249
+ cookie?: never;
12250
+ };
12251
+ requestBody?: never;
12252
+ responses: {
12253
+ /** @description `{ public_reply_template }` */
12254
+ 200: {
12255
+ headers: {
12256
+ [name: string]: unknown;
12257
+ };
12258
+ content: {
12259
+ /**
12260
+ * @example {
12261
+ * "data": {
12262
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12263
+ * }
12264
+ * }
12265
+ */
12266
+ "application/json": {
12267
+ data?: unknown;
12268
+ meta?: {
12269
+ [key: string]: unknown;
12270
+ };
12271
+ };
12272
+ };
12273
+ };
12274
+ /** @description Validation error */
12275
+ 400: {
12276
+ headers: {
12277
+ [name: string]: unknown;
12278
+ };
12279
+ content: {
12280
+ "application/json": components["schemas"]["Error"];
12281
+ };
12282
+ };
12283
+ /** @description Unauthorized */
12284
+ 401: {
12285
+ headers: {
12286
+ [name: string]: unknown;
12287
+ };
12288
+ content: {
12289
+ "application/json": components["schemas"]["Error"];
12290
+ };
12291
+ };
12292
+ /** @description Forbidden */
12293
+ 403: {
12294
+ headers: {
12295
+ [name: string]: unknown;
12296
+ };
12297
+ content: {
12298
+ "application/json": components["schemas"]["Error"];
12299
+ };
12300
+ };
12301
+ /** @description Not found */
12302
+ 404: {
12303
+ headers: {
12304
+ [name: string]: unknown;
12305
+ };
12306
+ content: {
12307
+ "application/json": components["schemas"]["Error"];
12308
+ };
12309
+ };
12310
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12311
+ 409: {
12312
+ headers: {
12313
+ [name: string]: unknown;
12314
+ };
12315
+ content: {
12316
+ "application/json": components["schemas"]["Error"];
12317
+ };
12318
+ };
12319
+ /** @description Rate limited */
12320
+ 429: {
12321
+ headers: {
12322
+ [name: string]: unknown;
12323
+ };
12324
+ content: {
12325
+ "application/json": components["schemas"]["Error"];
12326
+ };
12327
+ };
12328
+ };
12329
+ };
12330
+ /**
12331
+ * Set or clear the public comment reply for AI-judged comment→DMs
12332
+ * @description Up to 300 characters, posted verbatim under the comment only AFTER the DM went out, never on a comment judged not interested. Visible to everyone: keep it to «¡Te escribimos por DM!», never prices or health details. `null` or blank clears it. A failed public reply never undoes or retries the DM.
12333
+ */
12334
+ put: {
12335
+ parameters: {
12336
+ query?: never;
12337
+ header?: never;
12338
+ path: {
12339
+ id: string;
12340
+ };
12341
+ cookie?: never;
12342
+ };
12343
+ requestBody?: {
12344
+ content: {
12345
+ /**
12346
+ * @example {
12347
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12348
+ * }
12349
+ */
12350
+ "application/json": {
12351
+ public_reply_template: string | null;
12352
+ };
12353
+ };
12354
+ };
12355
+ responses: {
12356
+ /** @description `{ public_reply_template }` */
12357
+ 200: {
12358
+ headers: {
12359
+ [name: string]: unknown;
12360
+ };
12361
+ content: {
12362
+ /**
12363
+ * @example {
12364
+ * "data": {
12365
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12366
+ * }
12367
+ * }
12368
+ */
12369
+ "application/json": {
12370
+ data?: unknown;
12371
+ meta?: {
12372
+ [key: string]: unknown;
12373
+ };
12374
+ };
12375
+ };
12376
+ };
12377
+ /** @description Validation error */
12378
+ 400: {
12379
+ headers: {
12380
+ [name: string]: unknown;
12381
+ };
12382
+ content: {
12383
+ "application/json": components["schemas"]["Error"];
12384
+ };
12385
+ };
12386
+ /** @description Unauthorized */
12387
+ 401: {
12388
+ headers: {
12389
+ [name: string]: unknown;
12390
+ };
12391
+ content: {
12392
+ "application/json": components["schemas"]["Error"];
12393
+ };
12394
+ };
12395
+ /** @description Forbidden */
12396
+ 403: {
12397
+ headers: {
12398
+ [name: string]: unknown;
12399
+ };
12400
+ content: {
12401
+ "application/json": components["schemas"]["Error"];
12402
+ };
12403
+ };
12404
+ /** @description Not found */
12405
+ 404: {
12406
+ headers: {
12407
+ [name: string]: unknown;
12408
+ };
12409
+ content: {
12410
+ "application/json": components["schemas"]["Error"];
12411
+ };
12412
+ };
12413
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12414
+ 409: {
12415
+ headers: {
12416
+ [name: string]: unknown;
12417
+ };
12418
+ content: {
12419
+ "application/json": components["schemas"]["Error"];
12420
+ };
12421
+ };
12422
+ /** @description Rate limited */
12423
+ 429: {
12424
+ headers: {
12425
+ [name: string]: unknown;
12426
+ };
12427
+ content: {
12428
+ "application/json": components["schemas"]["Error"];
12429
+ };
12430
+ };
12431
+ };
12432
+ };
12433
+ post?: never;
12434
+ delete?: never;
12435
+ options?: never;
12436
+ head?: never;
12437
+ patch?: never;
12438
+ trace?: never;
12439
+ };
12231
12440
  "/messaging-accounts/{id}/email-signature": {
12232
12441
  parameters: {
12233
12442
  query?: never;
@@ -95651,7 +95860,7 @@ interface paths {
95651
95860
  put?: never;
95652
95861
  /**
95653
95862
  * Book a cita in the diary Vitrina owns
95654
- * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. Requires `clinic:write`, which no connected app holds by default.
95863
+ * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. On a native clinic the cita joins a plan de tratamiento the way Dentalink does it: the patient's newest open plan with the same professional, else a new plan «Diagnóstico» (`treatment_plan_id` on the row); pass `treatment_plan_id` to book into a plan of your choice (the patient's own, not closed — else `invalid_treatment_plan`). A prestación with eligible professionals set refuses anyone else (`professional_not_eligible`). Requires `clinic:write`, which no connected app holds by default.
95655
95864
  *
95656
95865
  * **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`.
95657
95866
  */
@@ -95700,6 +95909,8 @@ interface paths {
95700
95909
  allow_overbook?: boolean;
95701
95910
  additional?: boolean;
95702
95911
  overbook_reason?: string;
95912
+ /** Format: uuid */
95913
+ treatment_plan_id?: string;
95703
95914
  };
95704
95915
  };
95705
95916
  };
@@ -95737,6 +95948,7 @@ interface paths {
95737
95948
  * "done_at": null,
95738
95949
  * "series_id": null,
95739
95950
  * "series_index": null,
95951
+ * "treatment_plan_id": null,
95740
95952
  * "booking_landing_id": null,
95741
95953
  * "attribution": null,
95742
95954
  * "starts_at": "2026-09-24T14:00:00.000Z",
@@ -95922,6 +96134,7 @@ interface paths {
95922
96134
  * "done_at": null,
95923
96135
  * "series_id": null,
95924
96136
  * "series_index": null,
96137
+ * "treatment_plan_id": null,
95925
96138
  * "booking_landing_id": null,
95926
96139
  * "attribution": null,
95927
96140
  * "starts_at": "2026-09-24T14:30:00.000Z",
@@ -201012,7 +201225,7 @@ interface components {
201012
201225
  push_enabled?: boolean;
201013
201226
  };
201014
201227
  TenantSettingsPublic: {
201015
- /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201228
+ /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201016
201229
  trade_in?: {
201017
201230
  price_table: {
201018
201231
  model: string;
@@ -201022,6 +201235,7 @@ interface components {
201022
201235
  }[];
201023
201236
  not_bought?: string[];
201024
201237
  floor_factor?: number;
201238
+ perfect_floor_factor?: number;
201025
201239
  rounding?: number;
201026
201240
  perfect_battery_pct?: number;
201027
201241
  currency?: string;
@@ -201225,7 +201439,7 @@ interface components {
201225
201439
  };
201226
201440
  };
201227
201441
  TenantSettingsPublicWrite: {
201228
- /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201442
+ /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201229
201443
  trade_in?: {
201230
201444
  price_table: {
201231
201445
  model: string;
@@ -201235,6 +201449,7 @@ interface components {
201235
201449
  }[];
201236
201450
  not_bought?: string[];
201237
201451
  floor_factor?: number;
201452
+ perfect_floor_factor?: number;
201238
201453
  rounding?: number;
201239
201454
  perfect_battery_pct?: number;
201240
201455
  currency?: string;
package/dist/index.d.ts CHANGED
@@ -12228,6 +12228,215 @@ interface paths {
12228
12228
  };
12229
12229
  trace?: never;
12230
12230
  };
12231
+ "/messaging-accounts/{id}/comment-dm-public-reply": {
12232
+ parameters: {
12233
+ query?: never;
12234
+ header?: never;
12235
+ path?: never;
12236
+ cookie?: never;
12237
+ };
12238
+ /**
12239
+ * Read the public comment reply for AI-judged comment→DMs
12240
+ * @description The line posted PUBLICLY under an Instagram/Facebook comment after a DM that no keyword rule produced (the classifier judged the commenter interested and the DM was sent). `null` = no public reply (default). Keyword rules keep their own `public_reply_template`.
12241
+ */
12242
+ get: {
12243
+ parameters: {
12244
+ query?: never;
12245
+ header?: never;
12246
+ path: {
12247
+ id: string;
12248
+ };
12249
+ cookie?: never;
12250
+ };
12251
+ requestBody?: never;
12252
+ responses: {
12253
+ /** @description `{ public_reply_template }` */
12254
+ 200: {
12255
+ headers: {
12256
+ [name: string]: unknown;
12257
+ };
12258
+ content: {
12259
+ /**
12260
+ * @example {
12261
+ * "data": {
12262
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12263
+ * }
12264
+ * }
12265
+ */
12266
+ "application/json": {
12267
+ data?: unknown;
12268
+ meta?: {
12269
+ [key: string]: unknown;
12270
+ };
12271
+ };
12272
+ };
12273
+ };
12274
+ /** @description Validation error */
12275
+ 400: {
12276
+ headers: {
12277
+ [name: string]: unknown;
12278
+ };
12279
+ content: {
12280
+ "application/json": components["schemas"]["Error"];
12281
+ };
12282
+ };
12283
+ /** @description Unauthorized */
12284
+ 401: {
12285
+ headers: {
12286
+ [name: string]: unknown;
12287
+ };
12288
+ content: {
12289
+ "application/json": components["schemas"]["Error"];
12290
+ };
12291
+ };
12292
+ /** @description Forbidden */
12293
+ 403: {
12294
+ headers: {
12295
+ [name: string]: unknown;
12296
+ };
12297
+ content: {
12298
+ "application/json": components["schemas"]["Error"];
12299
+ };
12300
+ };
12301
+ /** @description Not found */
12302
+ 404: {
12303
+ headers: {
12304
+ [name: string]: unknown;
12305
+ };
12306
+ content: {
12307
+ "application/json": components["schemas"]["Error"];
12308
+ };
12309
+ };
12310
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12311
+ 409: {
12312
+ headers: {
12313
+ [name: string]: unknown;
12314
+ };
12315
+ content: {
12316
+ "application/json": components["schemas"]["Error"];
12317
+ };
12318
+ };
12319
+ /** @description Rate limited */
12320
+ 429: {
12321
+ headers: {
12322
+ [name: string]: unknown;
12323
+ };
12324
+ content: {
12325
+ "application/json": components["schemas"]["Error"];
12326
+ };
12327
+ };
12328
+ };
12329
+ };
12330
+ /**
12331
+ * Set or clear the public comment reply for AI-judged comment→DMs
12332
+ * @description Up to 300 characters, posted verbatim under the comment only AFTER the DM went out, never on a comment judged not interested. Visible to everyone: keep it to «¡Te escribimos por DM!», never prices or health details. `null` or blank clears it. A failed public reply never undoes or retries the DM.
12333
+ */
12334
+ put: {
12335
+ parameters: {
12336
+ query?: never;
12337
+ header?: never;
12338
+ path: {
12339
+ id: string;
12340
+ };
12341
+ cookie?: never;
12342
+ };
12343
+ requestBody?: {
12344
+ content: {
12345
+ /**
12346
+ * @example {
12347
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12348
+ * }
12349
+ */
12350
+ "application/json": {
12351
+ public_reply_template: string | null;
12352
+ };
12353
+ };
12354
+ };
12355
+ responses: {
12356
+ /** @description `{ public_reply_template }` */
12357
+ 200: {
12358
+ headers: {
12359
+ [name: string]: unknown;
12360
+ };
12361
+ content: {
12362
+ /**
12363
+ * @example {
12364
+ * "data": {
12365
+ * "public_reply_template": "¡Te escribimos por DM! 📩"
12366
+ * }
12367
+ * }
12368
+ */
12369
+ "application/json": {
12370
+ data?: unknown;
12371
+ meta?: {
12372
+ [key: string]: unknown;
12373
+ };
12374
+ };
12375
+ };
12376
+ };
12377
+ /** @description Validation error */
12378
+ 400: {
12379
+ headers: {
12380
+ [name: string]: unknown;
12381
+ };
12382
+ content: {
12383
+ "application/json": components["schemas"]["Error"];
12384
+ };
12385
+ };
12386
+ /** @description Unauthorized */
12387
+ 401: {
12388
+ headers: {
12389
+ [name: string]: unknown;
12390
+ };
12391
+ content: {
12392
+ "application/json": components["schemas"]["Error"];
12393
+ };
12394
+ };
12395
+ /** @description Forbidden */
12396
+ 403: {
12397
+ headers: {
12398
+ [name: string]: unknown;
12399
+ };
12400
+ content: {
12401
+ "application/json": components["schemas"]["Error"];
12402
+ };
12403
+ };
12404
+ /** @description Not found */
12405
+ 404: {
12406
+ headers: {
12407
+ [name: string]: unknown;
12408
+ };
12409
+ content: {
12410
+ "application/json": components["schemas"]["Error"];
12411
+ };
12412
+ };
12413
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12414
+ 409: {
12415
+ headers: {
12416
+ [name: string]: unknown;
12417
+ };
12418
+ content: {
12419
+ "application/json": components["schemas"]["Error"];
12420
+ };
12421
+ };
12422
+ /** @description Rate limited */
12423
+ 429: {
12424
+ headers: {
12425
+ [name: string]: unknown;
12426
+ };
12427
+ content: {
12428
+ "application/json": components["schemas"]["Error"];
12429
+ };
12430
+ };
12431
+ };
12432
+ };
12433
+ post?: never;
12434
+ delete?: never;
12435
+ options?: never;
12436
+ head?: never;
12437
+ patch?: never;
12438
+ trace?: never;
12439
+ };
12231
12440
  "/messaging-accounts/{id}/email-signature": {
12232
12441
  parameters: {
12233
12442
  query?: never;
@@ -95651,7 +95860,7 @@ interface paths {
95651
95860
  put?: never;
95652
95861
  /**
95653
95862
  * Book a cita in the diary Vitrina owns
95654
- * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. Requires `clinic:write`, which no connected app holds by default.
95863
+ * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. On a native clinic the cita joins a plan de tratamiento the way Dentalink does it: the patient's newest open plan with the same professional, else a new plan «Diagnóstico» (`treatment_plan_id` on the row); pass `treatment_plan_id` to book into a plan of your choice (the patient's own, not closed — else `invalid_treatment_plan`). A prestación with eligible professionals set refuses anyone else (`professional_not_eligible`). Requires `clinic:write`, which no connected app holds by default.
95655
95864
  *
95656
95865
  * **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`.
95657
95866
  */
@@ -95700,6 +95909,8 @@ interface paths {
95700
95909
  allow_overbook?: boolean;
95701
95910
  additional?: boolean;
95702
95911
  overbook_reason?: string;
95912
+ /** Format: uuid */
95913
+ treatment_plan_id?: string;
95703
95914
  };
95704
95915
  };
95705
95916
  };
@@ -95737,6 +95948,7 @@ interface paths {
95737
95948
  * "done_at": null,
95738
95949
  * "series_id": null,
95739
95950
  * "series_index": null,
95951
+ * "treatment_plan_id": null,
95740
95952
  * "booking_landing_id": null,
95741
95953
  * "attribution": null,
95742
95954
  * "starts_at": "2026-09-24T14:00:00.000Z",
@@ -95922,6 +96134,7 @@ interface paths {
95922
96134
  * "done_at": null,
95923
96135
  * "series_id": null,
95924
96136
  * "series_index": null,
96137
+ * "treatment_plan_id": null,
95925
96138
  * "booking_landing_id": null,
95926
96139
  * "attribution": null,
95927
96140
  * "starts_at": "2026-09-24T14:30:00.000Z",
@@ -201012,7 +201225,7 @@ interface components {
201012
201225
  push_enabled?: boolean;
201013
201226
  };
201014
201227
  TenantSettingsPublic: {
201015
- /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201228
+ /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201016
201229
  trade_in?: {
201017
201230
  price_table: {
201018
201231
  model: string;
@@ -201022,6 +201235,7 @@ interface components {
201022
201235
  }[];
201023
201236
  not_bought?: string[];
201024
201237
  floor_factor?: number;
201238
+ perfect_floor_factor?: number;
201025
201239
  rounding?: number;
201026
201240
  perfect_battery_pct?: number;
201027
201241
  currency?: string;
@@ -201225,7 +201439,7 @@ interface components {
201225
201439
  };
201226
201440
  };
201227
201441
  TenantSettingsPublicWrite: {
201228
- /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201442
+ /** @description Trade-in buy table («parte de pago»), for a business that buys used devices: `price_table` rows `{model, top, used, min_battery_pct?}` (`top` = max paid for a flawless unit, `used` = with normal wear, whole currency units; capacity does not change the value), `not_bought` (models never bought), `floor_factor` (0–1, default 0.7: the low end for a unit with issues or unknown condition is `used × floor_factor`), `perfect_floor_factor` (0–1, default 0.85: the low end for a flawless unit is `used × perfect_floor_factor`, its high end is `top`), `rounding` (default 10000), `perfect_battery_pct` (default 90), `currency` (default CLP). On an ecommerce workspace its presence offers the agents the `estimate_trade_in` tool, which gives customers only a wide range of what they would still pay. Replaced whole on write; `null` clears it. */
201229
201443
  trade_in?: {
201230
201444
  price_table: {
201231
201445
  model: string;
@@ -201235,6 +201449,7 @@ interface components {
201235
201449
  }[];
201236
201450
  not_bought?: string[];
201237
201451
  floor_factor?: number;
201452
+ perfect_floor_factor?: number;
201238
201453
  rounding?: number;
201239
201454
  perfect_battery_pct?: number;
201240
201455
  currency?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.76.2",
3
+ "version": "14.77.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",