@vitrina/api 14.15.2 → 14.16.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
@@ -12131,6 +12131,259 @@ interface paths {
12131
12131
  };
12132
12132
  trace?: never;
12133
12133
  };
12134
+ "/messaging-accounts/{id}/email-signature": {
12135
+ parameters: {
12136
+ query?: never;
12137
+ header?: never;
12138
+ path?: never;
12139
+ cookie?: never;
12140
+ };
12141
+ /**
12142
+ * Read an email mailbox's business signature
12143
+ * @description The signature this mailbox puts on customer email **nobody on the team wrote** — AI replies, First-touch, Seguimientos, Recontacto, reminders and API/MCP sends. A person replying from the inbox signs with their own signature and never gets this one.
12144
+ *
12145
+ * `mode`: `auto` (default — built from the workspace branding: name, hosted logo, brand color, and the published address / phone / site), `custom`, or `none`. `auto_preview` is always the automatic signature (so a settings screen can preview it); `effective` is what customers get with the current mode (null = no signature). Email mailboxes only (422 otherwise).
12146
+ */
12147
+ get: {
12148
+ parameters: {
12149
+ query?: never;
12150
+ header?: never;
12151
+ path: {
12152
+ id: string;
12153
+ };
12154
+ cookie?: never;
12155
+ };
12156
+ requestBody?: never;
12157
+ responses: {
12158
+ /** @description The mailbox signature */
12159
+ 200: {
12160
+ headers: {
12161
+ [name: string]: unknown;
12162
+ };
12163
+ content: {
12164
+ /**
12165
+ * @example {
12166
+ * "data": {
12167
+ * "mode": "auto",
12168
+ * "custom": null,
12169
+ * "auto_preview": {
12170
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12171
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12172
+ * },
12173
+ * "effective": {
12174
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12175
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12176
+ * }
12177
+ * }
12178
+ * }
12179
+ */
12180
+ "application/json": {
12181
+ data: {
12182
+ /** @enum {string} */
12183
+ mode: "auto" | "custom" | "none";
12184
+ custom: {
12185
+ html: string | null;
12186
+ text: string | null;
12187
+ } | null;
12188
+ auto_preview: {
12189
+ html: string;
12190
+ text: string;
12191
+ } | null;
12192
+ effective: {
12193
+ html: string;
12194
+ text: string;
12195
+ } | null;
12196
+ };
12197
+ };
12198
+ };
12199
+ };
12200
+ /** @description Validation error */
12201
+ 400: {
12202
+ headers: {
12203
+ [name: string]: unknown;
12204
+ };
12205
+ content: {
12206
+ "application/json": components["schemas"]["Error"];
12207
+ };
12208
+ };
12209
+ /** @description Unauthorized */
12210
+ 401: {
12211
+ headers: {
12212
+ [name: string]: unknown;
12213
+ };
12214
+ content: {
12215
+ "application/json": components["schemas"]["Error"];
12216
+ };
12217
+ };
12218
+ /** @description Forbidden */
12219
+ 403: {
12220
+ headers: {
12221
+ [name: string]: unknown;
12222
+ };
12223
+ content: {
12224
+ "application/json": components["schemas"]["Error"];
12225
+ };
12226
+ };
12227
+ /** @description Not found */
12228
+ 404: {
12229
+ headers: {
12230
+ [name: string]: unknown;
12231
+ };
12232
+ content: {
12233
+ "application/json": components["schemas"]["Error"];
12234
+ };
12235
+ };
12236
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12237
+ 409: {
12238
+ headers: {
12239
+ [name: string]: unknown;
12240
+ };
12241
+ content: {
12242
+ "application/json": components["schemas"]["Error"];
12243
+ };
12244
+ };
12245
+ /** @description Rate limited */
12246
+ 429: {
12247
+ headers: {
12248
+ [name: string]: unknown;
12249
+ };
12250
+ content: {
12251
+ "application/json": components["schemas"]["Error"];
12252
+ };
12253
+ };
12254
+ };
12255
+ };
12256
+ /**
12257
+ * Set an email mailbox's business signature (auto | custom | none)
12258
+ * @description `custom` requires `html` or `text`; the html is sanitized with the same policy as composed email and its text twin is derived when omitted. `auto` and `none` discard a stored custom body. Applies to the next send (other worker processes pick it up within a minute). Returns the same shape as the GET.
12259
+ */
12260
+ put: {
12261
+ parameters: {
12262
+ query?: never;
12263
+ header?: never;
12264
+ path: {
12265
+ id: string;
12266
+ };
12267
+ cookie?: never;
12268
+ };
12269
+ requestBody?: {
12270
+ content: {
12271
+ /**
12272
+ * @example {
12273
+ * "mode": "none"
12274
+ * }
12275
+ */
12276
+ "application/json": {
12277
+ /** @enum {string} */
12278
+ mode: "auto" | "custom" | "none";
12279
+ html?: string | null;
12280
+ text?: string | null;
12281
+ };
12282
+ };
12283
+ };
12284
+ responses: {
12285
+ /** @description The mailbox signature after the change */
12286
+ 200: {
12287
+ headers: {
12288
+ [name: string]: unknown;
12289
+ };
12290
+ content: {
12291
+ /**
12292
+ * @example {
12293
+ * "data": {
12294
+ * "mode": "none",
12295
+ * "custom": null,
12296
+ * "auto_preview": {
12297
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12298
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12299
+ * },
12300
+ * "effective": null
12301
+ * }
12302
+ * }
12303
+ */
12304
+ "application/json": {
12305
+ data: {
12306
+ /** @enum {string} */
12307
+ mode: "auto" | "custom" | "none";
12308
+ custom: {
12309
+ html: string | null;
12310
+ text: string | null;
12311
+ } | null;
12312
+ auto_preview: {
12313
+ html: string;
12314
+ text: string;
12315
+ } | null;
12316
+ effective: {
12317
+ html: string;
12318
+ text: string;
12319
+ } | null;
12320
+ };
12321
+ };
12322
+ };
12323
+ };
12324
+ /** @description Validation error */
12325
+ 400: {
12326
+ headers: {
12327
+ [name: string]: unknown;
12328
+ };
12329
+ content: {
12330
+ "application/json": components["schemas"]["Error"];
12331
+ };
12332
+ };
12333
+ /** @description Unauthorized */
12334
+ 401: {
12335
+ headers: {
12336
+ [name: string]: unknown;
12337
+ };
12338
+ content: {
12339
+ "application/json": components["schemas"]["Error"];
12340
+ };
12341
+ };
12342
+ /** @description Forbidden */
12343
+ 403: {
12344
+ headers: {
12345
+ [name: string]: unknown;
12346
+ };
12347
+ content: {
12348
+ "application/json": components["schemas"]["Error"];
12349
+ };
12350
+ };
12351
+ /** @description Not found */
12352
+ 404: {
12353
+ headers: {
12354
+ [name: string]: unknown;
12355
+ };
12356
+ content: {
12357
+ "application/json": components["schemas"]["Error"];
12358
+ };
12359
+ };
12360
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12361
+ 409: {
12362
+ headers: {
12363
+ [name: string]: unknown;
12364
+ };
12365
+ content: {
12366
+ "application/json": components["schemas"]["Error"];
12367
+ };
12368
+ };
12369
+ /** @description Rate limited */
12370
+ 429: {
12371
+ headers: {
12372
+ [name: string]: unknown;
12373
+ };
12374
+ content: {
12375
+ "application/json": components["schemas"]["Error"];
12376
+ };
12377
+ };
12378
+ };
12379
+ };
12380
+ post?: never;
12381
+ delete?: never;
12382
+ options?: never;
12383
+ head?: never;
12384
+ patch?: never;
12385
+ trace?: never;
12386
+ };
12134
12387
  "/webhooks": {
12135
12388
  parameters: {
12136
12389
  query?: never;
package/dist/index.d.ts CHANGED
@@ -12131,6 +12131,259 @@ interface paths {
12131
12131
  };
12132
12132
  trace?: never;
12133
12133
  };
12134
+ "/messaging-accounts/{id}/email-signature": {
12135
+ parameters: {
12136
+ query?: never;
12137
+ header?: never;
12138
+ path?: never;
12139
+ cookie?: never;
12140
+ };
12141
+ /**
12142
+ * Read an email mailbox's business signature
12143
+ * @description The signature this mailbox puts on customer email **nobody on the team wrote** — AI replies, First-touch, Seguimientos, Recontacto, reminders and API/MCP sends. A person replying from the inbox signs with their own signature and never gets this one.
12144
+ *
12145
+ * `mode`: `auto` (default — built from the workspace branding: name, hosted logo, brand color, and the published address / phone / site), `custom`, or `none`. `auto_preview` is always the automatic signature (so a settings screen can preview it); `effective` is what customers get with the current mode (null = no signature). Email mailboxes only (422 otherwise).
12146
+ */
12147
+ get: {
12148
+ parameters: {
12149
+ query?: never;
12150
+ header?: never;
12151
+ path: {
12152
+ id: string;
12153
+ };
12154
+ cookie?: never;
12155
+ };
12156
+ requestBody?: never;
12157
+ responses: {
12158
+ /** @description The mailbox signature */
12159
+ 200: {
12160
+ headers: {
12161
+ [name: string]: unknown;
12162
+ };
12163
+ content: {
12164
+ /**
12165
+ * @example {
12166
+ * "data": {
12167
+ * "mode": "auto",
12168
+ * "custom": null,
12169
+ * "auto_preview": {
12170
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12171
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12172
+ * },
12173
+ * "effective": {
12174
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12175
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12176
+ * }
12177
+ * }
12178
+ * }
12179
+ */
12180
+ "application/json": {
12181
+ data: {
12182
+ /** @enum {string} */
12183
+ mode: "auto" | "custom" | "none";
12184
+ custom: {
12185
+ html: string | null;
12186
+ text: string | null;
12187
+ } | null;
12188
+ auto_preview: {
12189
+ html: string;
12190
+ text: string;
12191
+ } | null;
12192
+ effective: {
12193
+ html: string;
12194
+ text: string;
12195
+ } | null;
12196
+ };
12197
+ };
12198
+ };
12199
+ };
12200
+ /** @description Validation error */
12201
+ 400: {
12202
+ headers: {
12203
+ [name: string]: unknown;
12204
+ };
12205
+ content: {
12206
+ "application/json": components["schemas"]["Error"];
12207
+ };
12208
+ };
12209
+ /** @description Unauthorized */
12210
+ 401: {
12211
+ headers: {
12212
+ [name: string]: unknown;
12213
+ };
12214
+ content: {
12215
+ "application/json": components["schemas"]["Error"];
12216
+ };
12217
+ };
12218
+ /** @description Forbidden */
12219
+ 403: {
12220
+ headers: {
12221
+ [name: string]: unknown;
12222
+ };
12223
+ content: {
12224
+ "application/json": components["schemas"]["Error"];
12225
+ };
12226
+ };
12227
+ /** @description Not found */
12228
+ 404: {
12229
+ headers: {
12230
+ [name: string]: unknown;
12231
+ };
12232
+ content: {
12233
+ "application/json": components["schemas"]["Error"];
12234
+ };
12235
+ };
12236
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12237
+ 409: {
12238
+ headers: {
12239
+ [name: string]: unknown;
12240
+ };
12241
+ content: {
12242
+ "application/json": components["schemas"]["Error"];
12243
+ };
12244
+ };
12245
+ /** @description Rate limited */
12246
+ 429: {
12247
+ headers: {
12248
+ [name: string]: unknown;
12249
+ };
12250
+ content: {
12251
+ "application/json": components["schemas"]["Error"];
12252
+ };
12253
+ };
12254
+ };
12255
+ };
12256
+ /**
12257
+ * Set an email mailbox's business signature (auto | custom | none)
12258
+ * @description `custom` requires `html` or `text`; the html is sanitized with the same policy as composed email and its text twin is derived when omitted. `auto` and `none` discard a stored custom body. Applies to the next send (other worker processes pick it up within a minute). Returns the same shape as the GET.
12259
+ */
12260
+ put: {
12261
+ parameters: {
12262
+ query?: never;
12263
+ header?: never;
12264
+ path: {
12265
+ id: string;
12266
+ };
12267
+ cookie?: never;
12268
+ };
12269
+ requestBody?: {
12270
+ content: {
12271
+ /**
12272
+ * @example {
12273
+ * "mode": "none"
12274
+ * }
12275
+ */
12276
+ "application/json": {
12277
+ /** @enum {string} */
12278
+ mode: "auto" | "custom" | "none";
12279
+ html?: string | null;
12280
+ text?: string | null;
12281
+ };
12282
+ };
12283
+ };
12284
+ responses: {
12285
+ /** @description The mailbox signature after the change */
12286
+ 200: {
12287
+ headers: {
12288
+ [name: string]: unknown;
12289
+ };
12290
+ content: {
12291
+ /**
12292
+ * @example {
12293
+ * "data": {
12294
+ * "mode": "none",
12295
+ * "custom": null,
12296
+ * "auto_preview": {
12297
+ * "html": "<div class=\"vitrina-business-signature\" style=\"margin-top:24px;padding-top:16px;border-top:1px solid #e5e7eb;\"><table role=\"presentation\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse;\"><tr><td style=\"padding:0 16px 0 0;vertical-align:middle;\"><img src=\"https://media.example.com/logo.png\" alt=\"Automotora Ejemplo\" height=\"40\" style=\"display:block;height:40px;width:auto;max-width:160px;border:0;\"></td><td style=\"vertical-align:middle;font-size:13px;line-height:1.5;color:#4b5563;\"><div style=\"font-size:14px;font-weight:600;color:#1d4ed8;\">Automotora Ejemplo</div><div>Av. Ejemplo 123, Santiago</div><div><a href=\"tel:+56900000000\" style=\"color:#4b5563;text-decoration:none;\">+56 9 0000 0000</a> &middot; <a href=\"https://ejemplo.cl\" style=\"color:#1d4ed8;text-decoration:none;\">ejemplo.cl</a></div></td></tr></table></div>",
12298
+ * "text": "--\nAutomotora Ejemplo\nAv. Ejemplo 123, Santiago\n+56 9 0000 0000 · ejemplo.cl"
12299
+ * },
12300
+ * "effective": null
12301
+ * }
12302
+ * }
12303
+ */
12304
+ "application/json": {
12305
+ data: {
12306
+ /** @enum {string} */
12307
+ mode: "auto" | "custom" | "none";
12308
+ custom: {
12309
+ html: string | null;
12310
+ text: string | null;
12311
+ } | null;
12312
+ auto_preview: {
12313
+ html: string;
12314
+ text: string;
12315
+ } | null;
12316
+ effective: {
12317
+ html: string;
12318
+ text: string;
12319
+ } | null;
12320
+ };
12321
+ };
12322
+ };
12323
+ };
12324
+ /** @description Validation error */
12325
+ 400: {
12326
+ headers: {
12327
+ [name: string]: unknown;
12328
+ };
12329
+ content: {
12330
+ "application/json": components["schemas"]["Error"];
12331
+ };
12332
+ };
12333
+ /** @description Unauthorized */
12334
+ 401: {
12335
+ headers: {
12336
+ [name: string]: unknown;
12337
+ };
12338
+ content: {
12339
+ "application/json": components["schemas"]["Error"];
12340
+ };
12341
+ };
12342
+ /** @description Forbidden */
12343
+ 403: {
12344
+ headers: {
12345
+ [name: string]: unknown;
12346
+ };
12347
+ content: {
12348
+ "application/json": components["schemas"]["Error"];
12349
+ };
12350
+ };
12351
+ /** @description Not found */
12352
+ 404: {
12353
+ headers: {
12354
+ [name: string]: unknown;
12355
+ };
12356
+ content: {
12357
+ "application/json": components["schemas"]["Error"];
12358
+ };
12359
+ };
12360
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
12361
+ 409: {
12362
+ headers: {
12363
+ [name: string]: unknown;
12364
+ };
12365
+ content: {
12366
+ "application/json": components["schemas"]["Error"];
12367
+ };
12368
+ };
12369
+ /** @description Rate limited */
12370
+ 429: {
12371
+ headers: {
12372
+ [name: string]: unknown;
12373
+ };
12374
+ content: {
12375
+ "application/json": components["schemas"]["Error"];
12376
+ };
12377
+ };
12378
+ };
12379
+ };
12380
+ post?: never;
12381
+ delete?: never;
12382
+ options?: never;
12383
+ head?: never;
12384
+ patch?: never;
12385
+ trace?: never;
12386
+ };
12134
12387
  "/webhooks": {
12135
12388
  parameters: {
12136
12389
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.15.2",
3
+ "version": "14.16.0",
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",