@webitel/api-services 26.8.91 → 26.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/clients/cases/cases.ts +1 -0
- package/src/gen/_models/contactsIMClient.ts +6 -0
- package/src/gen/_models/contactsInputIMClient.ts +5 -0
- package/src/gen/_models/contactsSearchParams.ts +4 -0
- package/src/gen/_models/delContactLanguagesParams.ts +1 -0
- package/src/gen/_models/deleteContactGroupsParams.ts +1 -0
- package/src/gen/_models/deleteEmailsParams.ts +1 -0
- package/src/gen/_models/deleteLabelsParams.ts +1 -0
- package/src/gen/_models/deleteManagersParams.ts +1 -0
- package/src/gen/_models/deletePhonesParams.ts +1 -0
- package/src/gen/_models/deletePhotosParams.ts +1 -0
- package/src/gen/_models/deleteTimezonesParams.ts +1 -0
- package/src/gen/_models/deleteVariablesParams.ts +1 -0
- package/src/gen/_models/iMClientsLinkIMContactBody.ts +17 -0
- package/src/gen/_models/index.ts +5 -0
- package/src/gen/_models/protobufNullValue.ts +8 -3
- package/src/gen/_models/threadManagementSearchParams.ts +10 -0
- package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1DeletedMessage.ts +18 -0
- package/src/gen/_models/webitelImApiGatewayV1SetCrmContactResponse.ts +10 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.ts +11 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadTags.ts +13 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +12 -1
- package/src/gen-wire/_models/contactsIMClient.ts +6 -0
- package/src/gen-wire/_models/contactsInputIMClient.ts +5 -0
- package/src/gen-wire/_models/contactsSearchParams.ts +4 -0
- package/src/gen-wire/_models/delContactLanguagesParams.ts +1 -0
- package/src/gen-wire/_models/deleteContactGroupsParams.ts +1 -0
- package/src/gen-wire/_models/deleteEmailsParams.ts +1 -0
- package/src/gen-wire/_models/deleteLabelsParams.ts +1 -0
- package/src/gen-wire/_models/deleteManagersParams.ts +1 -0
- package/src/gen-wire/_models/deletePhonesParams.ts +1 -0
- package/src/gen-wire/_models/deletePhotosParams.ts +1 -0
- package/src/gen-wire/_models/deleteTimezonesParams.ts +1 -0
- package/src/gen-wire/_models/deleteVariablesParams.ts +1 -0
- package/src/gen-wire/_models/iMClientsLinkIMContactBody.ts +17 -0
- package/src/gen-wire/_models/index.ts +5 -0
- package/src/gen-wire/_models/protobufNullValue.ts +8 -3
- package/src/gen-wire/_models/threadManagementSearchParams.ts +10 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1DeletedMessage.ts +18 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1SetCrmContactResponse.ts +10 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.ts +11 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadTags.ts +13 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +12 -1
- package/src/gen-wire/contact-groups/contact-groups.zod.ts +4 -1
- package/src/gen-wire/contacts/contacts.zod.ts +60 -0
- package/src/gen-wire/emails/emails.zod.ts +1 -0
- package/src/gen-wire/groups/groups.zod.ts +12 -0
- package/src/gen-wire/imclients/imclients.ts +20 -0
- package/src/gen-wire/imclients/imclients.zod.ts +146 -0
- package/src/gen-wire/index.ts +6 -0
- package/src/gen-wire/labels/labels.zod.ts +1 -0
- package/src/gen-wire/languages/languages.zod.ts +1 -0
- package/src/gen-wire/managers/managers.zod.ts +4 -1
- package/src/gen-wire/phones/phones.zod.ts +4 -1
- package/src/gen-wire/photos/photos.zod.ts +4 -1
- package/src/gen-wire/presence/presence.zod.ts +2 -2
- package/src/gen-wire/timezones/timezones.zod.ts +4 -1
- package/src/gen-wire/variables/variables.zod.ts +1 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +2 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +64 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +20 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +253 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +3 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.ts +49 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.ts +34 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +236 -2
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/contactsIMClient.d.ts +6 -0
- package/types/gen/_models/contactsInputIMClient.d.ts +5 -0
- package/types/gen/_models/contactsSearchParams.d.ts +4 -0
- package/types/gen/_models/delContactLanguagesParams.d.ts +1 -0
- package/types/gen/_models/deleteContactGroupsParams.d.ts +1 -0
- package/types/gen/_models/deleteEmailsParams.d.ts +1 -0
- package/types/gen/_models/deleteLabelsParams.d.ts +1 -0
- package/types/gen/_models/deleteManagersParams.d.ts +1 -0
- package/types/gen/_models/deletePhonesParams.d.ts +1 -0
- package/types/gen/_models/deletePhotosParams.d.ts +1 -0
- package/types/gen/_models/deleteTimezonesParams.d.ts +1 -0
- package/types/gen/_models/deleteVariablesParams.d.ts +1 -0
- package/types/gen/_models/iMClientsLinkIMContactBody.d.ts +16 -0
- package/types/gen/_models/index.d.ts +5 -0
- package/types/gen/_models/protobufNullValue.d.ts +8 -3
- package/types/gen/_models/threadManagementSearchParams.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1DeletedMessage.d.ts +17 -0
- package/types/gen/_models/webitelImApiGatewayV1SetCrmContactResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadTags.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +12 -1
- package/types/gen-wire/_models/contactsIMClient.d.ts +6 -0
- package/types/gen-wire/_models/contactsInputIMClient.d.ts +5 -0
- package/types/gen-wire/_models/contactsSearchParams.d.ts +4 -0
- package/types/gen-wire/_models/delContactLanguagesParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteContactGroupsParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteEmailsParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteLabelsParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteManagersParams.d.ts +1 -0
- package/types/gen-wire/_models/deletePhonesParams.d.ts +1 -0
- package/types/gen-wire/_models/deletePhotosParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteTimezonesParams.d.ts +1 -0
- package/types/gen-wire/_models/deleteVariablesParams.d.ts +1 -0
- package/types/gen-wire/_models/iMClientsLinkIMContactBody.d.ts +16 -0
- package/types/gen-wire/_models/index.d.ts +5 -0
- package/types/gen-wire/_models/protobufNullValue.d.ts +8 -3
- package/types/gen-wire/_models/threadManagementSearchParams.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1DeletedMessage.d.ts +17 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1SetCrmContactResponse.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementSetCrmContactBody.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadTags.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +12 -1
- package/types/gen-wire/contacts/contacts.zod.d.ts +11 -0
- package/types/gen-wire/groups/groups.zod.d.ts +2 -0
- package/types/gen-wire/imclients/imclients.d.ts +3 -1
- package/types/gen-wire/imclients/imclients.zod.d.ts +46 -0
- package/types/gen-wire/index.d.ts +2 -2
- package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +2 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +81 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.d.ts +6 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod.d.ts +28 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +76 -0
|
@@ -62,6 +62,18 @@ export const ThreadManagementSearchQueryParams = zod.object({
|
|
|
62
62
|
.describe(
|
|
63
63
|
'Return only threads where the caller has at least one unread message.\nIgnored when false.',
|
|
64
64
|
),
|
|
65
|
+
tags: zod
|
|
66
|
+
.array(zod.string())
|
|
67
|
+
.optional()
|
|
68
|
+
.describe(
|
|
69
|
+
'Return only threads the caller has tagged with every one of these tags (AND semantics).\nIgnored when empty.',
|
|
70
|
+
),
|
|
71
|
+
exclude_tags: zod
|
|
72
|
+
.array(zod.string())
|
|
73
|
+
.optional()
|
|
74
|
+
.describe(
|
|
75
|
+
'Exclude threads the caller has tagged with any of these tags.\nIgnored when empty.',
|
|
76
|
+
),
|
|
65
77
|
});
|
|
66
78
|
|
|
67
79
|
export const threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
@@ -82,10 +94,29 @@ export const ThreadManagementSearchResponse = zod
|
|
|
82
94
|
.array(
|
|
83
95
|
zod
|
|
84
96
|
.object({
|
|
97
|
+
tags: zod
|
|
98
|
+
.array(
|
|
99
|
+
zod.object({
|
|
100
|
+
created_at: zod.string().optional(),
|
|
101
|
+
id: zod.string().optional(),
|
|
102
|
+
tag: zod.string().optional(),
|
|
103
|
+
thread_id: zod.string().optional(),
|
|
104
|
+
}),
|
|
105
|
+
)
|
|
106
|
+
.optional()
|
|
107
|
+
.describe(
|
|
108
|
+
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
109
|
+
),
|
|
85
110
|
created_at: zod
|
|
86
111
|
.string()
|
|
87
112
|
.optional()
|
|
88
113
|
.describe('Thread creation timestamp (Unix time, milliseconds).'),
|
|
114
|
+
crm_contact_id: zod
|
|
115
|
+
.string()
|
|
116
|
+
.optional()
|
|
117
|
+
.describe(
|
|
118
|
+
'Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected.',
|
|
119
|
+
),
|
|
89
120
|
description: zod
|
|
90
121
|
.string()
|
|
91
122
|
.optional()
|
|
@@ -135,6 +166,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
135
166
|
.describe(
|
|
136
167
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
137
168
|
),
|
|
169
|
+
id: zod
|
|
170
|
+
.string()
|
|
171
|
+
.optional()
|
|
172
|
+
.describe('Unique contact identifier.'),
|
|
138
173
|
is_bot: zod
|
|
139
174
|
.boolean()
|
|
140
175
|
.optional()
|
|
@@ -314,6 +349,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
314
349
|
.describe(
|
|
315
350
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
316
351
|
),
|
|
352
|
+
id: zod
|
|
353
|
+
.string()
|
|
354
|
+
.optional()
|
|
355
|
+
.describe('Unique contact identifier.'),
|
|
317
356
|
is_bot: zod
|
|
318
357
|
.boolean()
|
|
319
358
|
.optional()
|
|
@@ -835,6 +874,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
835
874
|
.describe(
|
|
836
875
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
837
876
|
),
|
|
877
|
+
id: zod
|
|
878
|
+
.string()
|
|
879
|
+
.optional()
|
|
880
|
+
.describe('Unique contact identifier.'),
|
|
838
881
|
is_bot: zod
|
|
839
882
|
.boolean()
|
|
840
883
|
.optional()
|
|
@@ -1000,6 +1043,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1000
1043
|
.describe(
|
|
1001
1044
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1002
1045
|
),
|
|
1046
|
+
id: zod
|
|
1047
|
+
.string()
|
|
1048
|
+
.optional()
|
|
1049
|
+
.describe('Unique contact identifier.'),
|
|
1003
1050
|
is_bot: zod
|
|
1004
1051
|
.boolean()
|
|
1005
1052
|
.optional()
|
|
@@ -1126,6 +1173,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1126
1173
|
.describe(
|
|
1127
1174
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1128
1175
|
),
|
|
1176
|
+
id: zod
|
|
1177
|
+
.string()
|
|
1178
|
+
.optional()
|
|
1179
|
+
.describe('Unique contact identifier.'),
|
|
1129
1180
|
is_bot: zod
|
|
1130
1181
|
.boolean()
|
|
1131
1182
|
.optional()
|
|
@@ -1272,6 +1323,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1272
1323
|
.describe(
|
|
1273
1324
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1274
1325
|
),
|
|
1326
|
+
id: zod
|
|
1327
|
+
.string()
|
|
1328
|
+
.optional()
|
|
1329
|
+
.describe('Unique contact identifier.'),
|
|
1275
1330
|
is_bot: zod
|
|
1276
1331
|
.boolean()
|
|
1277
1332
|
.optional()
|
|
@@ -1390,6 +1445,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1390
1445
|
.describe(
|
|
1391
1446
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1392
1447
|
),
|
|
1448
|
+
id: zod
|
|
1449
|
+
.string()
|
|
1450
|
+
.optional()
|
|
1451
|
+
.describe('Unique contact identifier.'),
|
|
1393
1452
|
is_bot: zod
|
|
1394
1453
|
.boolean()
|
|
1395
1454
|
.optional()
|
|
@@ -1577,6 +1636,10 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1577
1636
|
.describe(
|
|
1578
1637
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1579
1638
|
),
|
|
1639
|
+
id: zod
|
|
1640
|
+
.string()
|
|
1641
|
+
.optional()
|
|
1642
|
+
.describe('Unique contact identifier.'),
|
|
1580
1643
|
is_bot: zod
|
|
1581
1644
|
.boolean()
|
|
1582
1645
|
.optional()
|
|
@@ -1723,10 +1786,29 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1723
1786
|
.object({
|
|
1724
1787
|
thread: zod
|
|
1725
1788
|
.object({
|
|
1789
|
+
tags: zod
|
|
1790
|
+
.array(
|
|
1791
|
+
zod.object({
|
|
1792
|
+
created_at: zod.string().optional(),
|
|
1793
|
+
id: zod.string().optional(),
|
|
1794
|
+
tag: zod.string().optional(),
|
|
1795
|
+
thread_id: zod.string().optional(),
|
|
1796
|
+
}),
|
|
1797
|
+
)
|
|
1798
|
+
.optional()
|
|
1799
|
+
.describe(
|
|
1800
|
+
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
1801
|
+
),
|
|
1726
1802
|
created_at: zod
|
|
1727
1803
|
.string()
|
|
1728
1804
|
.optional()
|
|
1729
1805
|
.describe('Thread creation timestamp (Unix time, milliseconds).'),
|
|
1806
|
+
crm_contact_id: zod
|
|
1807
|
+
.string()
|
|
1808
|
+
.optional()
|
|
1809
|
+
.describe(
|
|
1810
|
+
'Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected.',
|
|
1811
|
+
),
|
|
1730
1812
|
description: zod
|
|
1731
1813
|
.string()
|
|
1732
1814
|
.optional()
|
|
@@ -1776,6 +1858,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1776
1858
|
.describe(
|
|
1777
1859
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1778
1860
|
),
|
|
1861
|
+
id: zod
|
|
1862
|
+
.string()
|
|
1863
|
+
.optional()
|
|
1864
|
+
.describe('Unique contact identifier.'),
|
|
1779
1865
|
is_bot: zod
|
|
1780
1866
|
.boolean()
|
|
1781
1867
|
.optional()
|
|
@@ -1951,6 +2037,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1951
2037
|
.describe(
|
|
1952
2038
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
1953
2039
|
),
|
|
2040
|
+
id: zod
|
|
2041
|
+
.string()
|
|
2042
|
+
.optional()
|
|
2043
|
+
.describe('Unique contact identifier.'),
|
|
1954
2044
|
is_bot: zod
|
|
1955
2045
|
.boolean()
|
|
1956
2046
|
.optional()
|
|
@@ -2462,6 +2552,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2462
2552
|
.describe(
|
|
2463
2553
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2464
2554
|
),
|
|
2555
|
+
id: zod
|
|
2556
|
+
.string()
|
|
2557
|
+
.optional()
|
|
2558
|
+
.describe('Unique contact identifier.'),
|
|
2465
2559
|
is_bot: zod
|
|
2466
2560
|
.boolean()
|
|
2467
2561
|
.optional()
|
|
@@ -2627,6 +2721,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2627
2721
|
.describe(
|
|
2628
2722
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2629
2723
|
),
|
|
2724
|
+
id: zod
|
|
2725
|
+
.string()
|
|
2726
|
+
.optional()
|
|
2727
|
+
.describe('Unique contact identifier.'),
|
|
2630
2728
|
is_bot: zod
|
|
2631
2729
|
.boolean()
|
|
2632
2730
|
.optional()
|
|
@@ -2753,6 +2851,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2753
2851
|
.describe(
|
|
2754
2852
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2755
2853
|
),
|
|
2854
|
+
id: zod
|
|
2855
|
+
.string()
|
|
2856
|
+
.optional()
|
|
2857
|
+
.describe('Unique contact identifier.'),
|
|
2756
2858
|
is_bot: zod
|
|
2757
2859
|
.boolean()
|
|
2758
2860
|
.optional()
|
|
@@ -2895,6 +2997,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2895
2997
|
.describe(
|
|
2896
2998
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
2897
2999
|
),
|
|
3000
|
+
id: zod
|
|
3001
|
+
.string()
|
|
3002
|
+
.optional()
|
|
3003
|
+
.describe('Unique contact identifier.'),
|
|
2898
3004
|
is_bot: zod
|
|
2899
3005
|
.boolean()
|
|
2900
3006
|
.optional()
|
|
@@ -3009,6 +3115,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3009
3115
|
.describe(
|
|
3010
3116
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
3011
3117
|
),
|
|
3118
|
+
id: zod
|
|
3119
|
+
.string()
|
|
3120
|
+
.optional()
|
|
3121
|
+
.describe('Unique contact identifier.'),
|
|
3012
3122
|
is_bot: zod
|
|
3013
3123
|
.boolean()
|
|
3014
3124
|
.optional()
|
|
@@ -3193,6 +3303,10 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3193
3303
|
.describe(
|
|
3194
3304
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
3195
3305
|
),
|
|
3306
|
+
id: zod
|
|
3307
|
+
.string()
|
|
3308
|
+
.optional()
|
|
3309
|
+
.describe('Unique contact identifier.'),
|
|
3196
3310
|
is_bot: zod
|
|
3197
3311
|
.boolean()
|
|
3198
3312
|
.optional()
|
|
@@ -3334,10 +3448,29 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3334
3448
|
.array(
|
|
3335
3449
|
zod
|
|
3336
3450
|
.object({
|
|
3451
|
+
tags: zod
|
|
3452
|
+
.array(
|
|
3453
|
+
zod.object({
|
|
3454
|
+
created_at: zod.string().optional(),
|
|
3455
|
+
id: zod.string().optional(),
|
|
3456
|
+
tag: zod.string().optional(),
|
|
3457
|
+
thread_id: zod.string().optional(),
|
|
3458
|
+
}),
|
|
3459
|
+
)
|
|
3460
|
+
.optional()
|
|
3461
|
+
.describe(
|
|
3462
|
+
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
3463
|
+
),
|
|
3337
3464
|
created_at: zod
|
|
3338
3465
|
.string()
|
|
3339
3466
|
.optional()
|
|
3340
3467
|
.describe('Thread creation timestamp (Unix time, milliseconds).'),
|
|
3468
|
+
crm_contact_id: zod
|
|
3469
|
+
.string()
|
|
3470
|
+
.optional()
|
|
3471
|
+
.describe(
|
|
3472
|
+
'Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected.',
|
|
3473
|
+
),
|
|
3341
3474
|
description: zod
|
|
3342
3475
|
.string()
|
|
3343
3476
|
.optional()
|
|
@@ -3387,6 +3520,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3387
3520
|
.describe(
|
|
3388
3521
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
3389
3522
|
),
|
|
3523
|
+
id: zod
|
|
3524
|
+
.string()
|
|
3525
|
+
.optional()
|
|
3526
|
+
.describe('Unique contact identifier.'),
|
|
3390
3527
|
is_bot: zod
|
|
3391
3528
|
.boolean()
|
|
3392
3529
|
.optional()
|
|
@@ -3564,6 +3701,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3564
3701
|
.describe(
|
|
3565
3702
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
3566
3703
|
),
|
|
3704
|
+
id: zod
|
|
3705
|
+
.string()
|
|
3706
|
+
.optional()
|
|
3707
|
+
.describe('Unique contact identifier.'),
|
|
3567
3708
|
is_bot: zod
|
|
3568
3709
|
.boolean()
|
|
3569
3710
|
.optional()
|
|
@@ -4078,6 +4219,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4078
4219
|
.describe(
|
|
4079
4220
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4080
4221
|
),
|
|
4222
|
+
id: zod
|
|
4223
|
+
.string()
|
|
4224
|
+
.optional()
|
|
4225
|
+
.describe('Unique contact identifier.'),
|
|
4081
4226
|
is_bot: zod
|
|
4082
4227
|
.boolean()
|
|
4083
4228
|
.optional()
|
|
@@ -4243,6 +4388,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4243
4388
|
.describe(
|
|
4244
4389
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4245
4390
|
),
|
|
4391
|
+
id: zod
|
|
4392
|
+
.string()
|
|
4393
|
+
.optional()
|
|
4394
|
+
.describe('Unique contact identifier.'),
|
|
4246
4395
|
is_bot: zod
|
|
4247
4396
|
.boolean()
|
|
4248
4397
|
.optional()
|
|
@@ -4369,6 +4518,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4369
4518
|
.describe(
|
|
4370
4519
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4371
4520
|
),
|
|
4521
|
+
id: zod
|
|
4522
|
+
.string()
|
|
4523
|
+
.optional()
|
|
4524
|
+
.describe('Unique contact identifier.'),
|
|
4372
4525
|
is_bot: zod
|
|
4373
4526
|
.boolean()
|
|
4374
4527
|
.optional()
|
|
@@ -4513,6 +4666,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4513
4666
|
.describe(
|
|
4514
4667
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4515
4668
|
),
|
|
4669
|
+
id: zod
|
|
4670
|
+
.string()
|
|
4671
|
+
.optional()
|
|
4672
|
+
.describe('Unique contact identifier.'),
|
|
4516
4673
|
is_bot: zod
|
|
4517
4674
|
.boolean()
|
|
4518
4675
|
.optional()
|
|
@@ -4629,6 +4786,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4629
4786
|
.describe(
|
|
4630
4787
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4631
4788
|
),
|
|
4789
|
+
id: zod
|
|
4790
|
+
.string()
|
|
4791
|
+
.optional()
|
|
4792
|
+
.describe('Unique contact identifier.'),
|
|
4632
4793
|
is_bot: zod
|
|
4633
4794
|
.boolean()
|
|
4634
4795
|
.optional()
|
|
@@ -4813,6 +4974,10 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4813
4974
|
.describe(
|
|
4814
4975
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
4815
4976
|
),
|
|
4977
|
+
id: zod
|
|
4978
|
+
.string()
|
|
4979
|
+
.optional()
|
|
4980
|
+
.describe('Unique contact identifier.'),
|
|
4816
4981
|
is_bot: zod
|
|
4817
4982
|
.boolean()
|
|
4818
4983
|
.optional()
|
|
@@ -4953,10 +5118,29 @@ export const threadManagementGetResponseTypeDefault = `UNKNOWN`;
|
|
|
4953
5118
|
|
|
4954
5119
|
export const ThreadManagementGetResponse = zod
|
|
4955
5120
|
.object({
|
|
5121
|
+
tags: zod
|
|
5122
|
+
.array(
|
|
5123
|
+
zod.object({
|
|
5124
|
+
created_at: zod.string().optional(),
|
|
5125
|
+
id: zod.string().optional(),
|
|
5126
|
+
tag: zod.string().optional(),
|
|
5127
|
+
thread_id: zod.string().optional(),
|
|
5128
|
+
}),
|
|
5129
|
+
)
|
|
5130
|
+
.optional()
|
|
5131
|
+
.describe(
|
|
5132
|
+
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
5133
|
+
),
|
|
4956
5134
|
created_at: zod
|
|
4957
5135
|
.string()
|
|
4958
5136
|
.optional()
|
|
4959
5137
|
.describe('Thread creation timestamp (Unix time, milliseconds).'),
|
|
5138
|
+
crm_contact_id: zod
|
|
5139
|
+
.string()
|
|
5140
|
+
.optional()
|
|
5141
|
+
.describe(
|
|
5142
|
+
'Webitel CRM contact selected by an operator for this thread.\nEmpty if no CRM contact has been selected.',
|
|
5143
|
+
),
|
|
4960
5144
|
description: zod
|
|
4961
5145
|
.string()
|
|
4962
5146
|
.optional()
|
|
@@ -5002,6 +5186,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
5002
5186
|
.describe(
|
|
5003
5187
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5004
5188
|
),
|
|
5189
|
+
id: zod
|
|
5190
|
+
.string()
|
|
5191
|
+
.optional()
|
|
5192
|
+
.describe('Unique contact identifier.'),
|
|
5005
5193
|
is_bot: zod
|
|
5006
5194
|
.boolean()
|
|
5007
5195
|
.optional()
|
|
@@ -5154,6 +5342,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
5154
5342
|
.describe(
|
|
5155
5343
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5156
5344
|
),
|
|
5345
|
+
id: zod
|
|
5346
|
+
.string()
|
|
5347
|
+
.optional()
|
|
5348
|
+
.describe('Unique contact identifier.'),
|
|
5157
5349
|
is_bot: zod
|
|
5158
5350
|
.boolean()
|
|
5159
5351
|
.optional()
|
|
@@ -5655,6 +5847,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
5655
5847
|
.describe(
|
|
5656
5848
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5657
5849
|
),
|
|
5850
|
+
id: zod
|
|
5851
|
+
.string()
|
|
5852
|
+
.optional()
|
|
5853
|
+
.describe('Unique contact identifier.'),
|
|
5658
5854
|
is_bot: zod
|
|
5659
5855
|
.boolean()
|
|
5660
5856
|
.optional()
|
|
@@ -5814,6 +6010,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
5814
6010
|
.describe(
|
|
5815
6011
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5816
6012
|
),
|
|
6013
|
+
id: zod
|
|
6014
|
+
.string()
|
|
6015
|
+
.optional()
|
|
6016
|
+
.describe('Unique contact identifier.'),
|
|
5817
6017
|
is_bot: zod
|
|
5818
6018
|
.boolean()
|
|
5819
6019
|
.optional()
|
|
@@ -5936,6 +6136,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
5936
6136
|
.describe(
|
|
5937
6137
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
5938
6138
|
),
|
|
6139
|
+
id: zod
|
|
6140
|
+
.string()
|
|
6141
|
+
.optional()
|
|
6142
|
+
.describe('Unique contact identifier.'),
|
|
5939
6143
|
is_bot: zod
|
|
5940
6144
|
.boolean()
|
|
5941
6145
|
.optional()
|
|
@@ -6068,6 +6272,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
6068
6272
|
.describe(
|
|
6069
6273
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6070
6274
|
),
|
|
6275
|
+
id: zod
|
|
6276
|
+
.string()
|
|
6277
|
+
.optional()
|
|
6278
|
+
.describe('Unique contact identifier.'),
|
|
6071
6279
|
is_bot: zod
|
|
6072
6280
|
.boolean()
|
|
6073
6281
|
.optional()
|
|
@@ -6174,6 +6382,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
6174
6382
|
.describe(
|
|
6175
6383
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6176
6384
|
),
|
|
6385
|
+
id: zod
|
|
6386
|
+
.string()
|
|
6387
|
+
.optional()
|
|
6388
|
+
.describe('Unique contact identifier.'),
|
|
6177
6389
|
is_bot: zod
|
|
6178
6390
|
.boolean()
|
|
6179
6391
|
.optional()
|
|
@@ -6354,6 +6566,10 @@ export const ThreadManagementGetResponse = zod
|
|
|
6354
6566
|
.describe(
|
|
6355
6567
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6356
6568
|
),
|
|
6569
|
+
id: zod
|
|
6570
|
+
.string()
|
|
6571
|
+
.optional()
|
|
6572
|
+
.describe('Unique contact identifier.'),
|
|
6357
6573
|
is_bot: zod
|
|
6358
6574
|
.boolean()
|
|
6359
6575
|
.optional()
|
|
@@ -6455,6 +6671,25 @@ export const ThreadManagementTakeOverFromBotBody = zod.looseObject({});
|
|
|
6455
6671
|
|
|
6456
6672
|
export const ThreadManagementTakeOverFromBotResponse = zod.looseObject({});
|
|
6457
6673
|
|
|
6674
|
+
/**
|
|
6675
|
+
* @summary Sets (or clears) the CRM contact selected by the operator for the thread.
|
|
6676
|
+
Linking the IM contact to the CRM contact itself is done via the CRM API.
|
|
6677
|
+
*/
|
|
6678
|
+
export const ThreadManagementSetCrmContactParams = zod.object({
|
|
6679
|
+
thread_id: zod.string(),
|
|
6680
|
+
});
|
|
6681
|
+
|
|
6682
|
+
export const ThreadManagementSetCrmContactBody = zod.object({
|
|
6683
|
+
crm_contact_id: zod
|
|
6684
|
+
.string()
|
|
6685
|
+
.optional()
|
|
6686
|
+
.describe('Webitel CRM contact id. Empty string clears the selection.'),
|
|
6687
|
+
});
|
|
6688
|
+
|
|
6689
|
+
export const ThreadManagementSetCrmContactResponse = zod.object({
|
|
6690
|
+
crm_contact_id: zod.string().optional(),
|
|
6691
|
+
});
|
|
6692
|
+
|
|
6458
6693
|
/**
|
|
6459
6694
|
* @summary Add member to the thread.
|
|
6460
6695
|
*/
|
|
@@ -6506,6 +6741,7 @@ export const ThreadManagementAddMemberResponse = zod.object({
|
|
|
6506
6741
|
.describe(
|
|
6507
6742
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6508
6743
|
),
|
|
6744
|
+
id: zod.string().optional().describe('Unique contact identifier.'),
|
|
6509
6745
|
is_bot: zod
|
|
6510
6746
|
.boolean()
|
|
6511
6747
|
.optional()
|
|
@@ -6673,6 +6909,7 @@ export const ThreadManagementTransferResponse = zod.object({
|
|
|
6673
6909
|
.describe(
|
|
6674
6910
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6675
6911
|
),
|
|
6912
|
+
id: zod.string().optional().describe('Unique contact identifier.'),
|
|
6676
6913
|
is_bot: zod
|
|
6677
6914
|
.boolean()
|
|
6678
6915
|
.optional()
|
|
@@ -6796,6 +7033,10 @@ export const ThreadManagementLocateVariablesResponse = zod
|
|
|
6796
7033
|
.describe(
|
|
6797
7034
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6798
7035
|
),
|
|
7036
|
+
id: zod
|
|
7037
|
+
.string()
|
|
7038
|
+
.optional()
|
|
7039
|
+
.describe('Unique contact identifier.'),
|
|
6799
7040
|
is_bot: zod
|
|
6800
7041
|
.boolean()
|
|
6801
7042
|
.optional()
|
|
@@ -6930,6 +7171,10 @@ export const ThreadManagementSetVariablesResponse = zod
|
|
|
6930
7171
|
.describe(
|
|
6931
7172
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
6932
7173
|
),
|
|
7174
|
+
id: zod
|
|
7175
|
+
.string()
|
|
7176
|
+
.optional()
|
|
7177
|
+
.describe('Unique contact identifier.'),
|
|
6933
7178
|
is_bot: zod
|
|
6934
7179
|
.boolean()
|
|
6935
7180
|
.optional()
|
|
@@ -7053,6 +7298,10 @@ export const ThreadManagementFlushVariablesResponse = zod
|
|
|
7053
7298
|
.describe(
|
|
7054
7299
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
7055
7300
|
),
|
|
7301
|
+
id: zod
|
|
7302
|
+
.string()
|
|
7303
|
+
.optional()
|
|
7304
|
+
.describe('Unique contact identifier.'),
|
|
7056
7305
|
is_bot: zod
|
|
7057
7306
|
.boolean()
|
|
7058
7307
|
.optional()
|
|
@@ -7177,6 +7426,10 @@ export const ThreadManagementSearchVariablesResponse = zod
|
|
|
7177
7426
|
.describe(
|
|
7178
7427
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
7179
7428
|
),
|
|
7429
|
+
id: zod
|
|
7430
|
+
.string()
|
|
7431
|
+
.optional()
|
|
7432
|
+
.describe('Unique contact identifier.'),
|
|
7180
7433
|
is_bot: zod
|
|
7181
7434
|
.boolean()
|
|
7182
7435
|
.optional()
|
|
@@ -49,6 +49,7 @@ export const ThreadPreviewServiceGivePreviewResponse = zod.object({
|
|
|
49
49
|
.describe(
|
|
50
50
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
51
51
|
),
|
|
52
|
+
id: zod.string().optional().describe('Unique contact identifier.'),
|
|
52
53
|
is_bot: zod
|
|
53
54
|
.boolean()
|
|
54
55
|
.optional()
|
|
@@ -123,6 +124,7 @@ export const ThreadPreviewServiceGivePreviewResponse = zod.object({
|
|
|
123
124
|
.describe(
|
|
124
125
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
125
126
|
),
|
|
127
|
+
id: zod.string().optional().describe('Unique contact identifier.'),
|
|
126
128
|
is_bot: zod
|
|
127
129
|
.boolean()
|
|
128
130
|
.optional()
|
|
@@ -263,6 +265,7 @@ export const ThreadPreviewServiceUpgradePreviewToFullMemberResponse =
|
|
|
263
265
|
.describe(
|
|
264
266
|
'Record creation timestamp (Unix Epoch in milliseconds).',
|
|
265
267
|
),
|
|
268
|
+
id: zod.string().optional().describe('Unique contact identifier.'),
|
|
266
269
|
is_bot: zod
|
|
267
270
|
.boolean()
|
|
268
271
|
.optional()
|
|
@@ -52,6 +52,31 @@ export const // --- title start
|
|
|
52
52
|
> => {
|
|
53
53
|
return axiosInstance.delete(`/v1/tags/${id}`, options);
|
|
54
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @summary Unsnooze returns the thread to the caller's Active tab. Succeeds when it is not snoozed.
|
|
57
|
+
*/
|
|
58
|
+
const threadTagManagementUnsnooze = (
|
|
59
|
+
threadId: string,
|
|
60
|
+
options?: AxiosRequestConfig,
|
|
61
|
+
): Promise<
|
|
62
|
+
AxiosResponse<WebitelImApiGatewayV1RemoveThreadTagResponse>
|
|
63
|
+
> => {
|
|
64
|
+
return axiosInstance.delete(`/v1/threads/${threadId}/snooze`, options);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @summary Snooze moves the thread to the caller's Snoozed tab. The chat returns to Active on its own
|
|
68
|
+
when anyone but the caller writes to it. Succeeds when the thread is already snoozed.
|
|
69
|
+
*/
|
|
70
|
+
const threadTagManagementSnooze = (
|
|
71
|
+
threadId: string,
|
|
72
|
+
options?: AxiosRequestConfig,
|
|
73
|
+
): Promise<AxiosResponse<WebitelImApiGatewayV1ChatTag>> => {
|
|
74
|
+
return axiosInstance.post(
|
|
75
|
+
`/v1/threads/${threadId}/snooze`,
|
|
76
|
+
undefined,
|
|
77
|
+
options,
|
|
78
|
+
);
|
|
79
|
+
};
|
|
55
80
|
/**
|
|
56
81
|
* @summary AddTag adds a tag to a thread.
|
|
57
82
|
*/
|
|
@@ -66,19 +91,43 @@ export const // --- title start
|
|
|
66
91
|
options,
|
|
67
92
|
);
|
|
68
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* @summary RemoveTagByName removes the caller's tag from a thread by its name. Succeeds when the tag is absent.
|
|
96
|
+
*/
|
|
97
|
+
const threadTagManagementRemoveTagByName = (
|
|
98
|
+
threadId: string,
|
|
99
|
+
tag: string,
|
|
100
|
+
options?: AxiosRequestConfig,
|
|
101
|
+
): Promise<
|
|
102
|
+
AxiosResponse<WebitelImApiGatewayV1RemoveThreadTagResponse>
|
|
103
|
+
> => {
|
|
104
|
+
return axiosInstance.delete(
|
|
105
|
+
`/v1/threads/${threadId}/tags/${tag}`,
|
|
106
|
+
options,
|
|
107
|
+
);
|
|
108
|
+
};
|
|
69
109
|
|
|
70
110
|
// --- footer start
|
|
71
111
|
return {
|
|
72
112
|
threadTagManagementSearch,
|
|
73
113
|
threadTagManagementRemoveTag,
|
|
114
|
+
threadTagManagementUnsnooze,
|
|
115
|
+
threadTagManagementSnooze,
|
|
74
116
|
threadTagManagementAddTag,
|
|
117
|
+
threadTagManagementRemoveTagByName,
|
|
75
118
|
};
|
|
76
119
|
};
|
|
77
120
|
export type ThreadTagManagementSearchResult =
|
|
78
121
|
AxiosResponse<WebitelImApiGatewayV1SearchThreadTagsResponse>;
|
|
79
122
|
export type ThreadTagManagementRemoveTagResult =
|
|
80
123
|
AxiosResponse<WebitelImApiGatewayV1RemoveThreadTagResponse>;
|
|
124
|
+
export type ThreadTagManagementUnsnoozeResult =
|
|
125
|
+
AxiosResponse<WebitelImApiGatewayV1RemoveThreadTagResponse>;
|
|
126
|
+
export type ThreadTagManagementSnoozeResult =
|
|
127
|
+
AxiosResponse<WebitelImApiGatewayV1ChatTag>;
|
|
81
128
|
export type ThreadTagManagementAddTagResult =
|
|
82
129
|
AxiosResponse<WebitelImApiGatewayV1ChatTag>;
|
|
130
|
+
export type ThreadTagManagementRemoveTagByNameResult =
|
|
131
|
+
AxiosResponse<WebitelImApiGatewayV1RemoveThreadTagResponse>;
|
|
83
132
|
|
|
84
133
|
// --- footer end
|
|
@@ -28,6 +28,30 @@ export const ThreadTagManagementRemoveTagParams = zod.object({
|
|
|
28
28
|
|
|
29
29
|
export const ThreadTagManagementRemoveTagResponse = zod.looseObject({});
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @summary Unsnooze returns the thread to the caller's Active tab. Succeeds when it is not snoozed.
|
|
33
|
+
*/
|
|
34
|
+
export const ThreadTagManagementUnsnoozeParams = zod.object({
|
|
35
|
+
thread_id: zod.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export const ThreadTagManagementUnsnoozeResponse = zod.looseObject({});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @summary Snooze moves the thread to the caller's Snoozed tab. The chat returns to Active on its own
|
|
42
|
+
when anyone but the caller writes to it. Succeeds when the thread is already snoozed.
|
|
43
|
+
*/
|
|
44
|
+
export const ThreadTagManagementSnoozeParams = zod.object({
|
|
45
|
+
thread_id: zod.string(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const ThreadTagManagementSnoozeResponse = zod.object({
|
|
49
|
+
created_at: zod.string().optional(),
|
|
50
|
+
id: zod.string().optional(),
|
|
51
|
+
tag: zod.string().optional(),
|
|
52
|
+
thread_id: zod.string().optional(),
|
|
53
|
+
});
|
|
54
|
+
|
|
31
55
|
/**
|
|
32
56
|
* @summary AddTag adds a tag to a thread.
|
|
33
57
|
*/
|
|
@@ -45,3 +69,13 @@ export const ThreadTagManagementAddTagResponse = zod.object({
|
|
|
45
69
|
tag: zod.string().optional(),
|
|
46
70
|
thread_id: zod.string().optional(),
|
|
47
71
|
});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @summary RemoveTagByName removes the caller's tag from a thread by its name. Succeeds when the tag is absent.
|
|
75
|
+
*/
|
|
76
|
+
export const ThreadTagManagementRemoveTagByNameParams = zod.object({
|
|
77
|
+
thread_id: zod.string(),
|
|
78
|
+
tag: zod.string(),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const ThreadTagManagementRemoveTagByNameResponse = zod.looseObject({});
|