@vitrina/api 14.76.1 → 14.76.3

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;
@@ -201012,7 +201221,7 @@ interface components {
201012
201221
  push_enabled?: boolean;
201013
201222
  };
201014
201223
  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. */
201224
+ /** @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
201225
  trade_in?: {
201017
201226
  price_table: {
201018
201227
  model: string;
@@ -201022,6 +201231,7 @@ interface components {
201022
201231
  }[];
201023
201232
  not_bought?: string[];
201024
201233
  floor_factor?: number;
201234
+ perfect_floor_factor?: number;
201025
201235
  rounding?: number;
201026
201236
  perfect_battery_pct?: number;
201027
201237
  currency?: string;
@@ -201225,7 +201435,7 @@ interface components {
201225
201435
  };
201226
201436
  };
201227
201437
  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. */
201438
+ /** @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
201439
  trade_in?: {
201230
201440
  price_table: {
201231
201441
  model: string;
@@ -201235,6 +201445,7 @@ interface components {
201235
201445
  }[];
201236
201446
  not_bought?: string[];
201237
201447
  floor_factor?: number;
201448
+ perfect_floor_factor?: number;
201238
201449
  rounding?: number;
201239
201450
  perfect_battery_pct?: number;
201240
201451
  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;
@@ -201012,7 +201221,7 @@ interface components {
201012
201221
  push_enabled?: boolean;
201013
201222
  };
201014
201223
  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. */
201224
+ /** @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
201225
  trade_in?: {
201017
201226
  price_table: {
201018
201227
  model: string;
@@ -201022,6 +201231,7 @@ interface components {
201022
201231
  }[];
201023
201232
  not_bought?: string[];
201024
201233
  floor_factor?: number;
201234
+ perfect_floor_factor?: number;
201025
201235
  rounding?: number;
201026
201236
  perfect_battery_pct?: number;
201027
201237
  currency?: string;
@@ -201225,7 +201435,7 @@ interface components {
201225
201435
  };
201226
201436
  };
201227
201437
  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. */
201438
+ /** @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
201439
  trade_in?: {
201230
201440
  price_table: {
201231
201441
  model: string;
@@ -201235,6 +201445,7 @@ interface components {
201235
201445
  }[];
201236
201446
  not_bought?: string[];
201237
201447
  floor_factor?: number;
201448
+ perfect_floor_factor?: number;
201238
201449
  rounding?: number;
201239
201450
  perfect_battery_pct?: number;
201240
201451
  currency?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.76.1",
3
+ "version": "14.76.3",
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",