@vitrina/api 11.12.0 → 11.14.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.ts CHANGED
@@ -102327,6 +102327,7 @@ interface paths {
102327
102327
  * "rejection_reason": null,
102328
102328
  * "managed_for": null,
102329
102329
  * "managed_key": null,
102330
+ * "usage": "follow_up",
102330
102331
  * "synced_at": "2026-09-15T18:20:00.000Z",
102331
102332
  * "created_at": "2026-01-10T13:00:00.000Z",
102332
102333
  * "updated_at": "2026-09-15T18:20:00.000Z"
@@ -102462,6 +102463,7 @@ interface paths {
102462
102463
  example?: string;
102463
102464
  };
102464
102465
  };
102466
+ usage?: string;
102465
102467
  };
102466
102468
  };
102467
102469
  };
@@ -102511,6 +102513,7 @@ interface paths {
102511
102513
  * "rejection_reason": null,
102512
102514
  * "managed_for": null,
102513
102515
  * "managed_key": null,
102516
+ * "usage": "follow_up",
102514
102517
  * "synced_at": null,
102515
102518
  * "created_at": "2026-01-10T13:00:00.000Z",
102516
102519
  * "updated_at": "2026-09-15T18:20:00.000Z"
@@ -102676,6 +102679,7 @@ interface paths {
102676
102679
  * "rejection_reason": null,
102677
102680
  * "managed_for": null,
102678
102681
  * "managed_key": null,
102682
+ * "usage": "follow_up",
102679
102683
  * "synced_at": "2026-09-15T18:20:00.000Z",
102680
102684
  * "created_at": "2026-01-10T13:00:00.000Z",
102681
102685
  * "updated_at": "2026-09-15T18:20:00.000Z"
@@ -102748,6 +102752,866 @@ interface paths {
102748
102752
  };
102749
102753
  trace?: never;
102750
102754
  };
102755
+ "/whatsapp-templates/{id}/usage": {
102756
+ parameters: {
102757
+ query?: never;
102758
+ header?: never;
102759
+ path?: never;
102760
+ cookie?: never;
102761
+ };
102762
+ get?: never;
102763
+ put?: never;
102764
+ post?: never;
102765
+ delete?: never;
102766
+ options?: never;
102767
+ head?: never;
102768
+ /**
102769
+ * Re-file the template under another category
102770
+ * @description What the template is FOR, operator-facing — distinct from Meta's billing `category`. `usage` is the KEY of one of the workspace’s template categories (`GET /whatsapp-templates/categories`); an unknown key answers 422. Inferred from the name at create/sync, editable here. Local-only: no Meta round-trip, no re-approval. Templates in a category with `hidden_from_customers` are hidden from customer-facing send pickers.
102771
+ */
102772
+ patch: {
102773
+ parameters: {
102774
+ query?: never;
102775
+ header?: never;
102776
+ path: {
102777
+ id: string;
102778
+ };
102779
+ cookie?: never;
102780
+ };
102781
+ requestBody?: {
102782
+ content: {
102783
+ /**
102784
+ * @example {
102785
+ * "usage": "follow_up"
102786
+ * }
102787
+ */
102788
+ "application/json": {
102789
+ usage: string;
102790
+ };
102791
+ };
102792
+ };
102793
+ responses: {
102794
+ /** @description The updated template */
102795
+ 200: {
102796
+ headers: {
102797
+ [name: string]: unknown;
102798
+ };
102799
+ content: {
102800
+ /**
102801
+ * @example {
102802
+ * "data": {
102803
+ * "id": "e2e2e2e2-0000-4000-8000-000000000001",
102804
+ * "messaging_account_id": "e4e4e4e4-0000-4000-8000-000000000001",
102805
+ * "name": "seguimiento_stock",
102806
+ * "language": "es_CL",
102807
+ * "category": "MARKETING",
102808
+ * "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
102809
+ * "header_text": null,
102810
+ * "footer_text": "Autos del Valle",
102811
+ * "params": [
102812
+ * "1",
102813
+ * "2"
102814
+ * ],
102815
+ * "param_meta": {
102816
+ * "1": {
102817
+ * "label": "Nombre del contacto",
102818
+ * "example": "María"
102819
+ * },
102820
+ * "2": {
102821
+ * "label": "Modelo consultado",
102822
+ * "example": "Chevrolet Onix 2023"
102823
+ * }
102824
+ * },
102825
+ * "param_binding": {
102826
+ * "1": {
102827
+ * "source": "contact_field",
102828
+ * "field": "name"
102829
+ * },
102830
+ * "2": {
102831
+ * "source": "lead_interest"
102832
+ * }
102833
+ * },
102834
+ * "components": null,
102835
+ * "status": "APPROVED",
102836
+ * "rejection_reason": null,
102837
+ * "managed_for": null,
102838
+ * "managed_key": null,
102839
+ * "usage": "follow_up",
102840
+ * "synced_at": "2026-09-15T18:20:00.000Z",
102841
+ * "created_at": "2026-01-10T13:00:00.000Z",
102842
+ * "updated_at": "2026-09-15T18:20:00.000Z"
102843
+ * }
102844
+ * }
102845
+ */
102846
+ "application/json": {
102847
+ data?: unknown;
102848
+ meta?: {
102849
+ [key: string]: unknown;
102850
+ };
102851
+ };
102852
+ };
102853
+ };
102854
+ /** @description Validation error */
102855
+ 400: {
102856
+ headers: {
102857
+ [name: string]: unknown;
102858
+ };
102859
+ content: {
102860
+ "application/json": components["schemas"]["Error"];
102861
+ };
102862
+ };
102863
+ /** @description Unauthorized */
102864
+ 401: {
102865
+ headers: {
102866
+ [name: string]: unknown;
102867
+ };
102868
+ content: {
102869
+ "application/json": components["schemas"]["Error"];
102870
+ };
102871
+ };
102872
+ /** @description Forbidden */
102873
+ 403: {
102874
+ headers: {
102875
+ [name: string]: unknown;
102876
+ };
102877
+ content: {
102878
+ "application/json": components["schemas"]["Error"];
102879
+ };
102880
+ };
102881
+ /** @description Not found */
102882
+ 404: {
102883
+ headers: {
102884
+ [name: string]: unknown;
102885
+ };
102886
+ content: {
102887
+ "application/json": components["schemas"]["Error"];
102888
+ };
102889
+ };
102890
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
102891
+ 409: {
102892
+ headers: {
102893
+ [name: string]: unknown;
102894
+ };
102895
+ content: {
102896
+ "application/json": components["schemas"]["Error"];
102897
+ };
102898
+ };
102899
+ /** @description Rate limited */
102900
+ 429: {
102901
+ headers: {
102902
+ [name: string]: unknown;
102903
+ };
102904
+ content: {
102905
+ "application/json": components["schemas"]["Error"];
102906
+ };
102907
+ };
102908
+ };
102909
+ };
102910
+ trace?: never;
102911
+ };
102912
+ "/whatsapp-templates/usage": {
102913
+ parameters: {
102914
+ query?: never;
102915
+ header?: never;
102916
+ path?: never;
102917
+ cookie?: never;
102918
+ };
102919
+ get?: never;
102920
+ put?: never;
102921
+ post?: never;
102922
+ delete?: never;
102923
+ options?: never;
102924
+ head?: never;
102925
+ /**
102926
+ * Re-file several templates under one category
102927
+ * @description Bulk form of `PATCH /whatsapp-templates/{id}/usage`: 1–200 template ids, one category key (422 when it is not one of the workspace’s). Ids that are not the workspace’s are ignored; `updated` counts the rows that actually changed. Local-only.
102928
+ */
102929
+ patch: {
102930
+ parameters: {
102931
+ query?: never;
102932
+ header?: never;
102933
+ path?: never;
102934
+ cookie?: never;
102935
+ };
102936
+ requestBody?: {
102937
+ content: {
102938
+ /**
102939
+ * @example {
102940
+ * "ids": [
102941
+ * "e2e2e2e2-0000-4000-8000-000000000001"
102942
+ * ],
102943
+ * "usage": "follow_up"
102944
+ * }
102945
+ */
102946
+ "application/json": {
102947
+ ids: string[];
102948
+ usage: string;
102949
+ };
102950
+ };
102951
+ };
102952
+ responses: {
102953
+ /** @description How many templates were re-filed */
102954
+ 200: {
102955
+ headers: {
102956
+ [name: string]: unknown;
102957
+ };
102958
+ content: {
102959
+ /**
102960
+ * @example {
102961
+ * "data": {
102962
+ * "updated": 1
102963
+ * }
102964
+ * }
102965
+ */
102966
+ "application/json": {
102967
+ data?: unknown;
102968
+ meta?: {
102969
+ [key: string]: unknown;
102970
+ };
102971
+ };
102972
+ };
102973
+ };
102974
+ /** @description Validation error */
102975
+ 400: {
102976
+ headers: {
102977
+ [name: string]: unknown;
102978
+ };
102979
+ content: {
102980
+ "application/json": components["schemas"]["Error"];
102981
+ };
102982
+ };
102983
+ /** @description Unauthorized */
102984
+ 401: {
102985
+ headers: {
102986
+ [name: string]: unknown;
102987
+ };
102988
+ content: {
102989
+ "application/json": components["schemas"]["Error"];
102990
+ };
102991
+ };
102992
+ /** @description Forbidden */
102993
+ 403: {
102994
+ headers: {
102995
+ [name: string]: unknown;
102996
+ };
102997
+ content: {
102998
+ "application/json": components["schemas"]["Error"];
102999
+ };
103000
+ };
103001
+ /** @description Not found */
103002
+ 404: {
103003
+ headers: {
103004
+ [name: string]: unknown;
103005
+ };
103006
+ content: {
103007
+ "application/json": components["schemas"]["Error"];
103008
+ };
103009
+ };
103010
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103011
+ 409: {
103012
+ headers: {
103013
+ [name: string]: unknown;
103014
+ };
103015
+ content: {
103016
+ "application/json": components["schemas"]["Error"];
103017
+ };
103018
+ };
103019
+ /** @description Rate limited */
103020
+ 429: {
103021
+ headers: {
103022
+ [name: string]: unknown;
103023
+ };
103024
+ content: {
103025
+ "application/json": components["schemas"]["Error"];
103026
+ };
103027
+ };
103028
+ };
103029
+ };
103030
+ trace?: never;
103031
+ };
103032
+ "/whatsapp-templates/categories": {
103033
+ parameters: {
103034
+ query?: never;
103035
+ header?: never;
103036
+ path?: never;
103037
+ cookie?: never;
103038
+ };
103039
+ /**
103040
+ * List the workspace’s template categories
103041
+ * @description The operator-facing buckets templates are filed under (a template’s `usage` is one of these `key`s), ordered by `position`, each with the number of the workspace’s templates filed there. Every workspace starts with seven seeded (`system: true`) categories: first_contact, reminder, follow_up, update, aftercare, internal (hidden from customers) and other.
103042
+ */
103043
+ get: {
103044
+ parameters: {
103045
+ query?: never;
103046
+ header?: never;
103047
+ path?: never;
103048
+ cookie?: never;
103049
+ };
103050
+ requestBody?: never;
103051
+ responses: {
103052
+ /** @description Template categories */
103053
+ 200: {
103054
+ headers: {
103055
+ [name: string]: unknown;
103056
+ };
103057
+ content: {
103058
+ /**
103059
+ * @example {
103060
+ * "data": [
103061
+ * {
103062
+ * "id": "0199a3c2-7b10-7000-8000-00000000c000",
103063
+ * "key": "first_contact",
103064
+ * "name": "Primer contacto",
103065
+ * "position": 0,
103066
+ * "hidden_from_customers": false,
103067
+ * "system": true,
103068
+ * "template_count": 2
103069
+ * },
103070
+ * {
103071
+ * "id": "0199a3c2-7b10-7000-8000-00000000c001",
103072
+ * "key": "reminder",
103073
+ * "name": "Recordatorios",
103074
+ * "position": 1,
103075
+ * "hidden_from_customers": false,
103076
+ * "system": true,
103077
+ * "template_count": 4
103078
+ * },
103079
+ * {
103080
+ * "id": "0199a3c2-7b10-7000-8000-00000000c005",
103081
+ * "key": "internal",
103082
+ * "name": "Equipo",
103083
+ * "position": 5,
103084
+ * "hidden_from_customers": true,
103085
+ * "system": true,
103086
+ * "template_count": 1
103087
+ * }
103088
+ * ]
103089
+ * }
103090
+ */
103091
+ "application/json": {
103092
+ data?: unknown;
103093
+ meta?: {
103094
+ [key: string]: unknown;
103095
+ };
103096
+ };
103097
+ };
103098
+ };
103099
+ /** @description Validation error */
103100
+ 400: {
103101
+ headers: {
103102
+ [name: string]: unknown;
103103
+ };
103104
+ content: {
103105
+ "application/json": components["schemas"]["Error"];
103106
+ };
103107
+ };
103108
+ /** @description Unauthorized */
103109
+ 401: {
103110
+ headers: {
103111
+ [name: string]: unknown;
103112
+ };
103113
+ content: {
103114
+ "application/json": components["schemas"]["Error"];
103115
+ };
103116
+ };
103117
+ /** @description Forbidden */
103118
+ 403: {
103119
+ headers: {
103120
+ [name: string]: unknown;
103121
+ };
103122
+ content: {
103123
+ "application/json": components["schemas"]["Error"];
103124
+ };
103125
+ };
103126
+ /** @description Not found */
103127
+ 404: {
103128
+ headers: {
103129
+ [name: string]: unknown;
103130
+ };
103131
+ content: {
103132
+ "application/json": components["schemas"]["Error"];
103133
+ };
103134
+ };
103135
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103136
+ 409: {
103137
+ headers: {
103138
+ [name: string]: unknown;
103139
+ };
103140
+ content: {
103141
+ "application/json": components["schemas"]["Error"];
103142
+ };
103143
+ };
103144
+ /** @description Rate limited */
103145
+ 429: {
103146
+ headers: {
103147
+ [name: string]: unknown;
103148
+ };
103149
+ content: {
103150
+ "application/json": components["schemas"]["Error"];
103151
+ };
103152
+ };
103153
+ };
103154
+ };
103155
+ put?: never;
103156
+ /**
103157
+ * Add a template category
103158
+ * @description Appended at the end of the list. The immutable `key` is derived from `name` (deaccented, `[a-z0-9_]`, ≤40 chars) with a numeric suffix when taken.
103159
+ */
103160
+ post: {
103161
+ parameters: {
103162
+ query?: never;
103163
+ header?: {
103164
+ /** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
103165
+ "Idempotency-Key"?: string;
103166
+ };
103167
+ path?: never;
103168
+ cookie?: never;
103169
+ };
103170
+ requestBody?: {
103171
+ content: {
103172
+ /**
103173
+ * @example {
103174
+ * "name": "Cobranza",
103175
+ * "hidden_from_customers": false
103176
+ * }
103177
+ */
103178
+ "application/json": {
103179
+ name: string;
103180
+ hidden_from_customers?: boolean;
103181
+ };
103182
+ };
103183
+ };
103184
+ responses: {
103185
+ /** @description The new category */
103186
+ 201: {
103187
+ headers: {
103188
+ [name: string]: unknown;
103189
+ };
103190
+ content: {
103191
+ /**
103192
+ * @example {
103193
+ * "data": {
103194
+ * "id": "0199a3c2-7b10-7000-8000-00000000c007",
103195
+ * "key": "cobranza",
103196
+ * "name": "Cobranza",
103197
+ * "position": 7,
103198
+ * "hidden_from_customers": false,
103199
+ * "system": false
103200
+ * }
103201
+ * }
103202
+ */
103203
+ "application/json": Record<string, never>;
103204
+ };
103205
+ };
103206
+ /** @description Validation error */
103207
+ 400: {
103208
+ headers: {
103209
+ [name: string]: unknown;
103210
+ };
103211
+ content: {
103212
+ "application/json": components["schemas"]["Error"];
103213
+ };
103214
+ };
103215
+ /** @description Unauthorized */
103216
+ 401: {
103217
+ headers: {
103218
+ [name: string]: unknown;
103219
+ };
103220
+ content: {
103221
+ "application/json": components["schemas"]["Error"];
103222
+ };
103223
+ };
103224
+ /** @description Forbidden */
103225
+ 403: {
103226
+ headers: {
103227
+ [name: string]: unknown;
103228
+ };
103229
+ content: {
103230
+ "application/json": components["schemas"]["Error"];
103231
+ };
103232
+ };
103233
+ /** @description Not found */
103234
+ 404: {
103235
+ headers: {
103236
+ [name: string]: unknown;
103237
+ };
103238
+ content: {
103239
+ "application/json": components["schemas"]["Error"];
103240
+ };
103241
+ };
103242
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103243
+ 409: {
103244
+ headers: {
103245
+ [name: string]: unknown;
103246
+ };
103247
+ content: {
103248
+ "application/json": components["schemas"]["Error"];
103249
+ };
103250
+ };
103251
+ /** @description Rate limited */
103252
+ 429: {
103253
+ headers: {
103254
+ [name: string]: unknown;
103255
+ };
103256
+ content: {
103257
+ "application/json": components["schemas"]["Error"];
103258
+ };
103259
+ };
103260
+ };
103261
+ };
103262
+ delete?: never;
103263
+ options?: never;
103264
+ head?: never;
103265
+ patch?: never;
103266
+ trace?: never;
103267
+ };
103268
+ "/whatsapp-templates/categories/order": {
103269
+ parameters: {
103270
+ query?: never;
103271
+ header?: never;
103272
+ path?: never;
103273
+ cookie?: never;
103274
+ };
103275
+ get?: never;
103276
+ /**
103277
+ * Reorder the template categories
103278
+ * @description `ids` must list every category of the workspace exactly once (422 otherwise); positions are rewritten to the array order. Answers the reordered list.
103279
+ */
103280
+ put: {
103281
+ parameters: {
103282
+ query?: never;
103283
+ header?: never;
103284
+ path?: never;
103285
+ cookie?: never;
103286
+ };
103287
+ requestBody?: {
103288
+ content: {
103289
+ /**
103290
+ * @example {
103291
+ * "ids": [
103292
+ * "0199a3c2-7b10-7000-8000-00000000c001",
103293
+ * "0199a3c2-7b10-7000-8000-00000000c000",
103294
+ * "0199a3c2-7b10-7000-8000-00000000c005"
103295
+ * ]
103296
+ * }
103297
+ */
103298
+ "application/json": {
103299
+ ids: string[];
103300
+ };
103301
+ };
103302
+ };
103303
+ responses: {
103304
+ /** @description Template categories */
103305
+ 200: {
103306
+ headers: {
103307
+ [name: string]: unknown;
103308
+ };
103309
+ content: {
103310
+ /**
103311
+ * @example {
103312
+ * "data": [
103313
+ * {
103314
+ * "id": "0199a3c2-7b10-7000-8000-00000000c000",
103315
+ * "key": "first_contact",
103316
+ * "name": "Primer contacto",
103317
+ * "position": 0,
103318
+ * "hidden_from_customers": false,
103319
+ * "system": true,
103320
+ * "template_count": 2
103321
+ * },
103322
+ * {
103323
+ * "id": "0199a3c2-7b10-7000-8000-00000000c001",
103324
+ * "key": "reminder",
103325
+ * "name": "Recordatorios",
103326
+ * "position": 1,
103327
+ * "hidden_from_customers": false,
103328
+ * "system": true,
103329
+ * "template_count": 4
103330
+ * },
103331
+ * {
103332
+ * "id": "0199a3c2-7b10-7000-8000-00000000c005",
103333
+ * "key": "internal",
103334
+ * "name": "Equipo",
103335
+ * "position": 5,
103336
+ * "hidden_from_customers": true,
103337
+ * "system": true,
103338
+ * "template_count": 1
103339
+ * }
103340
+ * ]
103341
+ * }
103342
+ */
103343
+ "application/json": {
103344
+ data?: unknown;
103345
+ meta?: {
103346
+ [key: string]: unknown;
103347
+ };
103348
+ };
103349
+ };
103350
+ };
103351
+ /** @description Validation error */
103352
+ 400: {
103353
+ headers: {
103354
+ [name: string]: unknown;
103355
+ };
103356
+ content: {
103357
+ "application/json": components["schemas"]["Error"];
103358
+ };
103359
+ };
103360
+ /** @description Unauthorized */
103361
+ 401: {
103362
+ headers: {
103363
+ [name: string]: unknown;
103364
+ };
103365
+ content: {
103366
+ "application/json": components["schemas"]["Error"];
103367
+ };
103368
+ };
103369
+ /** @description Forbidden */
103370
+ 403: {
103371
+ headers: {
103372
+ [name: string]: unknown;
103373
+ };
103374
+ content: {
103375
+ "application/json": components["schemas"]["Error"];
103376
+ };
103377
+ };
103378
+ /** @description Not found */
103379
+ 404: {
103380
+ headers: {
103381
+ [name: string]: unknown;
103382
+ };
103383
+ content: {
103384
+ "application/json": components["schemas"]["Error"];
103385
+ };
103386
+ };
103387
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103388
+ 409: {
103389
+ headers: {
103390
+ [name: string]: unknown;
103391
+ };
103392
+ content: {
103393
+ "application/json": components["schemas"]["Error"];
103394
+ };
103395
+ };
103396
+ /** @description Rate limited */
103397
+ 429: {
103398
+ headers: {
103399
+ [name: string]: unknown;
103400
+ };
103401
+ content: {
103402
+ "application/json": components["schemas"]["Error"];
103403
+ };
103404
+ };
103405
+ };
103406
+ };
103407
+ post?: never;
103408
+ delete?: never;
103409
+ options?: never;
103410
+ head?: never;
103411
+ patch?: never;
103412
+ trace?: never;
103413
+ };
103414
+ "/whatsapp-templates/categories/{id}": {
103415
+ parameters: {
103416
+ query?: never;
103417
+ header?: never;
103418
+ path?: never;
103419
+ cookie?: never;
103420
+ };
103421
+ get?: never;
103422
+ put?: never;
103423
+ post?: never;
103424
+ /**
103425
+ * Delete a template category
103426
+ * @description Its templates are re-filed under `other` in the same transaction. `internal` and `other` cannot be deleted (400).
103427
+ */
103428
+ delete: {
103429
+ parameters: {
103430
+ query?: never;
103431
+ header?: never;
103432
+ path: {
103433
+ id: string;
103434
+ };
103435
+ cookie?: never;
103436
+ };
103437
+ requestBody?: never;
103438
+ responses: {
103439
+ /** @description No content */
103440
+ 204: {
103441
+ headers: {
103442
+ [name: string]: unknown;
103443
+ };
103444
+ content?: never;
103445
+ };
103446
+ /** @description Validation error */
103447
+ 400: {
103448
+ headers: {
103449
+ [name: string]: unknown;
103450
+ };
103451
+ content: {
103452
+ "application/json": components["schemas"]["Error"];
103453
+ };
103454
+ };
103455
+ /** @description Unauthorized */
103456
+ 401: {
103457
+ headers: {
103458
+ [name: string]: unknown;
103459
+ };
103460
+ content: {
103461
+ "application/json": components["schemas"]["Error"];
103462
+ };
103463
+ };
103464
+ /** @description Forbidden */
103465
+ 403: {
103466
+ headers: {
103467
+ [name: string]: unknown;
103468
+ };
103469
+ content: {
103470
+ "application/json": components["schemas"]["Error"];
103471
+ };
103472
+ };
103473
+ /** @description Not found */
103474
+ 404: {
103475
+ headers: {
103476
+ [name: string]: unknown;
103477
+ };
103478
+ content: {
103479
+ "application/json": components["schemas"]["Error"];
103480
+ };
103481
+ };
103482
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103483
+ 409: {
103484
+ headers: {
103485
+ [name: string]: unknown;
103486
+ };
103487
+ content: {
103488
+ "application/json": components["schemas"]["Error"];
103489
+ };
103490
+ };
103491
+ /** @description Rate limited */
103492
+ 429: {
103493
+ headers: {
103494
+ [name: string]: unknown;
103495
+ };
103496
+ content: {
103497
+ "application/json": components["schemas"]["Error"];
103498
+ };
103499
+ };
103500
+ };
103501
+ };
103502
+ options?: never;
103503
+ head?: never;
103504
+ /**
103505
+ * Rename a template category or change its visibility
103506
+ * @description Seeded categories can be renamed and hidden too; the `internal` category must stay hidden from customers (400 when unhiding it). The `key` never changes.
103507
+ */
103508
+ patch: {
103509
+ parameters: {
103510
+ query?: never;
103511
+ header?: never;
103512
+ path: {
103513
+ id: string;
103514
+ };
103515
+ cookie?: never;
103516
+ };
103517
+ requestBody?: {
103518
+ content: {
103519
+ /**
103520
+ * @example {
103521
+ * "name": "Recordatorios de cita"
103522
+ * }
103523
+ */
103524
+ "application/json": {
103525
+ name?: string;
103526
+ hidden_from_customers?: boolean;
103527
+ };
103528
+ };
103529
+ };
103530
+ responses: {
103531
+ /** @description The updated category */
103532
+ 200: {
103533
+ headers: {
103534
+ [name: string]: unknown;
103535
+ };
103536
+ content: {
103537
+ /**
103538
+ * @example {
103539
+ * "data": {
103540
+ * "id": "0199a3c2-7b10-7000-8000-00000000c001",
103541
+ * "key": "reminder",
103542
+ * "name": "Recordatorios de cita",
103543
+ * "position": 1,
103544
+ * "hidden_from_customers": false,
103545
+ * "system": true
103546
+ * }
103547
+ * }
103548
+ */
103549
+ "application/json": {
103550
+ data?: unknown;
103551
+ meta?: {
103552
+ [key: string]: unknown;
103553
+ };
103554
+ };
103555
+ };
103556
+ };
103557
+ /** @description Validation error */
103558
+ 400: {
103559
+ headers: {
103560
+ [name: string]: unknown;
103561
+ };
103562
+ content: {
103563
+ "application/json": components["schemas"]["Error"];
103564
+ };
103565
+ };
103566
+ /** @description Unauthorized */
103567
+ 401: {
103568
+ headers: {
103569
+ [name: string]: unknown;
103570
+ };
103571
+ content: {
103572
+ "application/json": components["schemas"]["Error"];
103573
+ };
103574
+ };
103575
+ /** @description Forbidden */
103576
+ 403: {
103577
+ headers: {
103578
+ [name: string]: unknown;
103579
+ };
103580
+ content: {
103581
+ "application/json": components["schemas"]["Error"];
103582
+ };
103583
+ };
103584
+ /** @description Not found */
103585
+ 404: {
103586
+ headers: {
103587
+ [name: string]: unknown;
103588
+ };
103589
+ content: {
103590
+ "application/json": components["schemas"]["Error"];
103591
+ };
103592
+ };
103593
+ /** @description Conflict (incl. Idempotency-Key reuse with different body) */
103594
+ 409: {
103595
+ headers: {
103596
+ [name: string]: unknown;
103597
+ };
103598
+ content: {
103599
+ "application/json": components["schemas"]["Error"];
103600
+ };
103601
+ };
103602
+ /** @description Rate limited */
103603
+ 429: {
103604
+ headers: {
103605
+ [name: string]: unknown;
103606
+ };
103607
+ content: {
103608
+ "application/json": components["schemas"]["Error"];
103609
+ };
103610
+ };
103611
+ };
103612
+ };
103613
+ trace?: never;
103614
+ };
102751
103615
  "/whatsapp-templates/{id}/param-binding": {
102752
103616
  parameters: {
102753
103617
  query?: never;
@@ -102845,6 +103709,7 @@ interface paths {
102845
103709
  * "rejection_reason": null,
102846
103710
  * "managed_for": null,
102847
103711
  * "managed_key": null,
103712
+ * "usage": "follow_up",
102848
103713
  * "synced_at": "2026-09-15T18:20:00.000Z",
102849
103714
  * "created_at": "2026-01-10T13:00:00.000Z",
102850
103715
  * "updated_at": "2026-09-15T18:20:00.000Z"
@@ -102989,6 +103854,7 @@ interface paths {
102989
103854
  * "rejection_reason": null,
102990
103855
  * "managed_for": null,
102991
103856
  * "managed_key": null,
103857
+ * "usage": "follow_up",
102992
103858
  * "synced_at": "2026-09-15T18:20:00.000Z",
102993
103859
  * "created_at": "2026-01-10T13:00:00.000Z",
102994
103860
  * "updated_at": "2026-09-15T18:20:00.000Z"
@@ -103254,6 +104120,7 @@ interface paths {
103254
104120
  * "rejection_reason": null,
103255
104121
  * "managed_for": null,
103256
104122
  * "managed_key": null,
104123
+ * "usage": "follow_up",
103257
104124
  * "synced_at": "2026-09-15T18:20:00.000Z",
103258
104125
  * "created_at": "2026-01-10T13:00:00.000Z",
103259
104126
  * "updated_at": "2026-09-15T18:20:00.000Z"