@vitrina/api 11.13.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.cts +714 -6
- package/dist/index.d.ts +714 -6
- package/package.json +1 -1
package/dist/index.d.cts
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,8 +102463,7 @@ interface paths {
|
|
|
102462
102463
|
example?: string;
|
|
102463
102464
|
};
|
|
102464
102465
|
};
|
|
102465
|
-
|
|
102466
|
-
usage?: "first_contact" | "reminder" | "follow_up" | "update" | "aftercare" | "internal" | "other";
|
|
102466
|
+
usage?: string;
|
|
102467
102467
|
};
|
|
102468
102468
|
};
|
|
102469
102469
|
};
|
|
@@ -102513,6 +102513,7 @@ interface paths {
|
|
|
102513
102513
|
* "rejection_reason": null,
|
|
102514
102514
|
* "managed_for": null,
|
|
102515
102515
|
* "managed_key": null,
|
|
102516
|
+
* "usage": "follow_up",
|
|
102516
102517
|
* "synced_at": null,
|
|
102517
102518
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
102518
102519
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|
|
@@ -102678,6 +102679,7 @@ interface paths {
|
|
|
102678
102679
|
* "rejection_reason": null,
|
|
102679
102680
|
* "managed_for": null,
|
|
102680
102681
|
* "managed_key": null,
|
|
102682
|
+
* "usage": "follow_up",
|
|
102681
102683
|
* "synced_at": "2026-09-15T18:20:00.000Z",
|
|
102682
102684
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
102683
102685
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|
|
@@ -102764,8 +102766,8 @@ interface paths {
|
|
|
102764
102766
|
options?: never;
|
|
102765
102767
|
head?: never;
|
|
102766
102768
|
/**
|
|
102767
|
-
* Re-file the template under another
|
|
102768
|
-
* @description What the template is FOR, operator-facing
|
|
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.
|
|
102769
102771
|
*/
|
|
102770
102772
|
patch: {
|
|
102771
102773
|
parameters: {
|
|
@@ -102784,8 +102786,7 @@ interface paths {
|
|
|
102784
102786
|
* }
|
|
102785
102787
|
*/
|
|
102786
102788
|
"application/json": {
|
|
102787
|
-
|
|
102788
|
-
usage: "first_contact" | "reminder" | "follow_up" | "update" | "aftercare" | "internal" | "other";
|
|
102789
|
+
usage: string;
|
|
102789
102790
|
};
|
|
102790
102791
|
};
|
|
102791
102792
|
};
|
|
@@ -102835,6 +102836,7 @@ interface paths {
|
|
|
102835
102836
|
* "rejection_reason": null,
|
|
102836
102837
|
* "managed_for": null,
|
|
102837
102838
|
* "managed_key": null,
|
|
102839
|
+
* "usage": "follow_up",
|
|
102838
102840
|
* "synced_at": "2026-09-15T18:20:00.000Z",
|
|
102839
102841
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
102840
102842
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|
|
@@ -102907,6 +102909,709 @@ interface paths {
|
|
|
102907
102909
|
};
|
|
102908
102910
|
trace?: never;
|
|
102909
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
|
+
};
|
|
102910
103615
|
"/whatsapp-templates/{id}/param-binding": {
|
|
102911
103616
|
parameters: {
|
|
102912
103617
|
query?: never;
|
|
@@ -103004,6 +103709,7 @@ interface paths {
|
|
|
103004
103709
|
* "rejection_reason": null,
|
|
103005
103710
|
* "managed_for": null,
|
|
103006
103711
|
* "managed_key": null,
|
|
103712
|
+
* "usage": "follow_up",
|
|
103007
103713
|
* "synced_at": "2026-09-15T18:20:00.000Z",
|
|
103008
103714
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
103009
103715
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|
|
@@ -103148,6 +103854,7 @@ interface paths {
|
|
|
103148
103854
|
* "rejection_reason": null,
|
|
103149
103855
|
* "managed_for": null,
|
|
103150
103856
|
* "managed_key": null,
|
|
103857
|
+
* "usage": "follow_up",
|
|
103151
103858
|
* "synced_at": "2026-09-15T18:20:00.000Z",
|
|
103152
103859
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
103153
103860
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|
|
@@ -103413,6 +104120,7 @@ interface paths {
|
|
|
103413
104120
|
* "rejection_reason": null,
|
|
103414
104121
|
* "managed_for": null,
|
|
103415
104122
|
* "managed_key": null,
|
|
104123
|
+
* "usage": "follow_up",
|
|
103416
104124
|
* "synced_at": "2026-09-15T18:20:00.000Z",
|
|
103417
104125
|
* "created_at": "2026-01-10T13:00:00.000Z",
|
|
103418
104126
|
* "updated_at": "2026-09-15T18:20:00.000Z"
|