@webitel/api-services 26.12.3 → 26.12.5
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 +3 -1
- package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +14 -12
- package/src/gen/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen/_models/apiUserAccessToken.ts +2 -0
- package/src/gen/_models/apiUserWarningId.ts +2 -0
- package/src/gen/_models/apiWarningData.ts +2 -0
- package/src/gen/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen/_models/engineSystemSettingName.ts +0 -1
- package/src/gen/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen/_models/googleProtobufAny.ts +117 -0
- package/src/gen/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen/_models/googleRpcStatus.ts +23 -0
- package/src/gen/_models/index.ts +7 -4
- package/src/gen/_models/protobufNullValue.ts +3 -8
- package/src/gen/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen-wire/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen-wire/_models/apiUserAccessToken.ts +2 -0
- package/src/gen-wire/_models/apiUserWarningId.ts +2 -0
- package/src/gen-wire/_models/apiWarningData.ts +2 -0
- package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen-wire/_models/engineSystemSettingName.ts +0 -1
- package/src/gen-wire/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen-wire/_models/googleProtobufAny.ts +117 -0
- package/src/gen-wire/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen-wire/_models/googleRpcStatus.ts +23 -0
- package/src/gen-wire/_models/index.ts +7 -4
- package/src/gen-wire/_models/protobufNullValue.ts +3 -8
- package/src/gen-wire/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen-wire/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen-wire/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen-wire/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen-wire/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen-wire/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/call-service/call-service.zod.ts +2 -0
- package/src/gen-wire/cases/cases.zod.ts +32 -7
- package/src/gen-wire/customer/customer.zod.ts +32 -7
- package/src/gen-wire/customers/customers.ts +0 -8
- package/src/gen-wire/customers/customers.zod.ts +0 -4
- package/src/gen-wire/index.ts +6 -7
- package/src/gen-wire/index.zod.ts +0 -1
- package/src/gen-wire/list-service/list-service.zod.ts +32 -7
- package/src/gen-wire/member-service/member-service.zod.ts +32 -7
- package/src/gen-wire/messages/messages.zod.ts +32 -7
- package/src/gen-wire/pdf-service/pdf-service.zod.ts +128 -28
- package/src/gen-wire/system-setting-service/system-setting-service.zod.ts +0 -8
- package/src/gen-wire/user-access-tokens/user-access-tokens.zod.ts +85 -5
- package/src/gen-wire/users/users.zod.ts +10 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +6 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +96 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +21 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +449 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +18 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +150 -0
- package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +18 -2
- package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +14 -7
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen/_models/apiWarningData.d.ts +2 -0
- package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen/_models/index.d.ts +7 -4
- package/types/gen/_models/protobufNullValue.d.ts +3 -8
- package/types/gen/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen-wire/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen-wire/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen-wire/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen-wire/_models/apiWarningData.d.ts +2 -0
- package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen-wire/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen-wire/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen-wire/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen-wire/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen-wire/_models/index.d.ts +7 -4
- package/types/gen-wire/_models/protobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen-wire/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen-wire/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen-wire/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen-wire/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen-wire/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/call-service/call-service.zod.d.ts +2 -0
- package/types/gen-wire/customers/customers.d.ts +1 -3
- package/types/gen-wire/customers/customers.zod.d.ts +0 -3
- package/types/gen-wire/index.d.ts +2 -4
- package/types/gen-wire/index.zod.d.ts +0 -1
- package/types/gen-wire/system-setting-service/system-setting-service.zod.d.ts +0 -8
- package/types/gen-wire/user-access-tokens/user-access-tokens.zod.d.ts +46 -0
- package/types/gen-wire/users/users.zod.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +1 -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 +124 -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-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +33 -0
- package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +4 -0
- package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +7 -0
- package/src/gen/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen/_models/engineSchemaVersion.ts +0 -17
- package/src/gen/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen-wire/_models/engineSchemaVersion.ts +0 -16
- package/src/gen-wire/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen-wire/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/schema-version-service/schema-version-service.ts +0 -46
- package/src/gen-wire/schema-version-service/schema-version-service.zod.ts +0 -40
- package/types/gen/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen/_models/engineSchemaVersion.d.ts +0 -16
- package/types/gen/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen-wire/_models/engineSchemaVersion.d.ts +0 -15
- package/types/gen-wire/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen-wire/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.zod.d.ts +0 -31
|
@@ -76,6 +76,7 @@ export const ThreadManagementSearchQueryParams = zod.object({
|
|
|
76
76
|
),
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
+
export const threadManagementSearchResponseItemsItemChannelTypeDefault = `THREAD_CHANNEL_TYPE_UNSPECIFIED`;
|
|
79
80
|
export const threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
80
81
|
export const threadManagementSearchResponseItemsItemLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
81
82
|
export const threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
@@ -107,6 +108,47 @@ export const ThreadManagementSearchResponse = zod
|
|
|
107
108
|
.describe(
|
|
108
109
|
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
109
110
|
),
|
|
111
|
+
channel: zod
|
|
112
|
+
.object({
|
|
113
|
+
address: zod
|
|
114
|
+
.string()
|
|
115
|
+
.optional()
|
|
116
|
+
.describe(
|
|
117
|
+
'Public address of the channel: the WhatsApp business phone number, the\nFacebook page name, the Viber BM sender name. Empty for portal / widget.',
|
|
118
|
+
),
|
|
119
|
+
id: zod
|
|
120
|
+
.string()
|
|
121
|
+
.optional()
|
|
122
|
+
.describe(
|
|
123
|
+
'Source identifier: the gate id for provider channels, the application\n(client) id for portal / widget channels.',
|
|
124
|
+
),
|
|
125
|
+
name: zod
|
|
126
|
+
.string()
|
|
127
|
+
.optional()
|
|
128
|
+
.describe(
|
|
129
|
+
'Display name: the gate name or the application name.',
|
|
130
|
+
),
|
|
131
|
+
type: zod
|
|
132
|
+
.enum([
|
|
133
|
+
'THREAD_CHANNEL_TYPE_UNSPECIFIED',
|
|
134
|
+
'THREAD_CHANNEL_TYPE_WHATSAPP',
|
|
135
|
+
'THREAD_CHANNEL_TYPE_FACEBOOK',
|
|
136
|
+
'THREAD_CHANNEL_TYPE_VIBER_BM',
|
|
137
|
+
'THREAD_CHANNEL_TYPE_PORTAL',
|
|
138
|
+
'THREAD_CHANNEL_TYPE_WIDGET',
|
|
139
|
+
'THREAD_CHANNEL_TYPE_CUSTOM',
|
|
140
|
+
])
|
|
141
|
+
.default(
|
|
142
|
+
threadManagementSearchResponseItemsItemChannelTypeDefault,
|
|
143
|
+
)
|
|
144
|
+
.describe(
|
|
145
|
+
'Channel kind; drives the logo shown to the operator.',
|
|
146
|
+
),
|
|
147
|
+
})
|
|
148
|
+
.optional()
|
|
149
|
+
.describe(
|
|
150
|
+
'Channel the external participant reaches the thread through: a provider\ngate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget\napplication. Unset when it cannot be resolved (e.g. an internal thread).',
|
|
151
|
+
),
|
|
110
152
|
created_at: zod
|
|
111
153
|
.string()
|
|
112
154
|
.optional()
|
|
@@ -192,6 +234,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
192
234
|
.string()
|
|
193
235
|
.optional()
|
|
194
236
|
.describe('Display name of the contact.'),
|
|
237
|
+
phone: zod
|
|
238
|
+
.string()
|
|
239
|
+
.optional()
|
|
240
|
+
.describe(
|
|
241
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
242
|
+
),
|
|
195
243
|
sub: zod
|
|
196
244
|
.string()
|
|
197
245
|
.optional()
|
|
@@ -375,6 +423,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
375
423
|
.string()
|
|
376
424
|
.optional()
|
|
377
425
|
.describe('Display name of the contact.'),
|
|
426
|
+
phone: zod
|
|
427
|
+
.string()
|
|
428
|
+
.optional()
|
|
429
|
+
.describe(
|
|
430
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
431
|
+
),
|
|
378
432
|
sub: zod
|
|
379
433
|
.string()
|
|
380
434
|
.optional()
|
|
@@ -900,6 +954,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
900
954
|
.string()
|
|
901
955
|
.optional()
|
|
902
956
|
.describe('Display name of the contact.'),
|
|
957
|
+
phone: zod
|
|
958
|
+
.string()
|
|
959
|
+
.optional()
|
|
960
|
+
.describe(
|
|
961
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
962
|
+
),
|
|
903
963
|
sub: zod
|
|
904
964
|
.string()
|
|
905
965
|
.optional()
|
|
@@ -1069,6 +1129,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1069
1129
|
.string()
|
|
1070
1130
|
.optional()
|
|
1071
1131
|
.describe('Display name of the contact.'),
|
|
1132
|
+
phone: zod
|
|
1133
|
+
.string()
|
|
1134
|
+
.optional()
|
|
1135
|
+
.describe(
|
|
1136
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1137
|
+
),
|
|
1072
1138
|
sub: zod
|
|
1073
1139
|
.string()
|
|
1074
1140
|
.optional()
|
|
@@ -1199,6 +1265,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1199
1265
|
.string()
|
|
1200
1266
|
.optional()
|
|
1201
1267
|
.describe('Display name of the contact.'),
|
|
1268
|
+
phone: zod
|
|
1269
|
+
.string()
|
|
1270
|
+
.optional()
|
|
1271
|
+
.describe(
|
|
1272
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1273
|
+
),
|
|
1202
1274
|
sub: zod
|
|
1203
1275
|
.string()
|
|
1204
1276
|
.optional()
|
|
@@ -1349,6 +1421,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1349
1421
|
.string()
|
|
1350
1422
|
.optional()
|
|
1351
1423
|
.describe('Display name of the contact.'),
|
|
1424
|
+
phone: zod
|
|
1425
|
+
.string()
|
|
1426
|
+
.optional()
|
|
1427
|
+
.describe(
|
|
1428
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1429
|
+
),
|
|
1352
1430
|
sub: zod
|
|
1353
1431
|
.string()
|
|
1354
1432
|
.optional()
|
|
@@ -1471,6 +1549,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1471
1549
|
.string()
|
|
1472
1550
|
.optional()
|
|
1473
1551
|
.describe('Display name of the contact.'),
|
|
1552
|
+
phone: zod
|
|
1553
|
+
.string()
|
|
1554
|
+
.optional()
|
|
1555
|
+
.describe(
|
|
1556
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1557
|
+
),
|
|
1474
1558
|
sub: zod
|
|
1475
1559
|
.string()
|
|
1476
1560
|
.optional()
|
|
@@ -1662,6 +1746,12 @@ export const ThreadManagementSearchResponse = zod
|
|
|
1662
1746
|
.string()
|
|
1663
1747
|
.optional()
|
|
1664
1748
|
.describe('Display name of the contact.'),
|
|
1749
|
+
phone: zod
|
|
1750
|
+
.string()
|
|
1751
|
+
.optional()
|
|
1752
|
+
.describe(
|
|
1753
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
1754
|
+
),
|
|
1665
1755
|
sub: zod
|
|
1666
1756
|
.string()
|
|
1667
1757
|
.optional()
|
|
@@ -1770,6 +1860,7 @@ export const ThreadManagementCreateBody = zod
|
|
|
1770
1860
|
'ThreadManagementCreateRequest defines parameters for creating a specific thread type.',
|
|
1771
1861
|
);
|
|
1772
1862
|
|
|
1863
|
+
export const threadManagementCreateResponseThreadChannelTypeDefault = `THREAD_CHANNEL_TYPE_UNSPECIFIED`;
|
|
1773
1864
|
export const threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1774
1865
|
export const threadManagementCreateResponseThreadLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
1775
1866
|
export const threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
@@ -1799,6 +1890,41 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1799
1890
|
.describe(
|
|
1800
1891
|
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
1801
1892
|
),
|
|
1893
|
+
channel: zod
|
|
1894
|
+
.object({
|
|
1895
|
+
address: zod
|
|
1896
|
+
.string()
|
|
1897
|
+
.optional()
|
|
1898
|
+
.describe(
|
|
1899
|
+
'Public address of the channel: the WhatsApp business phone number, the\nFacebook page name, the Viber BM sender name. Empty for portal / widget.',
|
|
1900
|
+
),
|
|
1901
|
+
id: zod
|
|
1902
|
+
.string()
|
|
1903
|
+
.optional()
|
|
1904
|
+
.describe(
|
|
1905
|
+
'Source identifier: the gate id for provider channels, the application\n(client) id for portal / widget channels.',
|
|
1906
|
+
),
|
|
1907
|
+
name: zod
|
|
1908
|
+
.string()
|
|
1909
|
+
.optional()
|
|
1910
|
+
.describe('Display name: the gate name or the application name.'),
|
|
1911
|
+
type: zod
|
|
1912
|
+
.enum([
|
|
1913
|
+
'THREAD_CHANNEL_TYPE_UNSPECIFIED',
|
|
1914
|
+
'THREAD_CHANNEL_TYPE_WHATSAPP',
|
|
1915
|
+
'THREAD_CHANNEL_TYPE_FACEBOOK',
|
|
1916
|
+
'THREAD_CHANNEL_TYPE_VIBER_BM',
|
|
1917
|
+
'THREAD_CHANNEL_TYPE_PORTAL',
|
|
1918
|
+
'THREAD_CHANNEL_TYPE_WIDGET',
|
|
1919
|
+
'THREAD_CHANNEL_TYPE_CUSTOM',
|
|
1920
|
+
])
|
|
1921
|
+
.default(threadManagementCreateResponseThreadChannelTypeDefault)
|
|
1922
|
+
.describe('Channel kind; drives the logo shown to the operator.'),
|
|
1923
|
+
})
|
|
1924
|
+
.optional()
|
|
1925
|
+
.describe(
|
|
1926
|
+
'Channel the external participant reaches the thread through: a provider\ngate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget\napplication. Unset when it cannot be resolved (e.g. an internal thread).',
|
|
1927
|
+
),
|
|
1802
1928
|
created_at: zod
|
|
1803
1929
|
.string()
|
|
1804
1930
|
.optional()
|
|
@@ -1884,6 +2010,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
1884
2010
|
.string()
|
|
1885
2011
|
.optional()
|
|
1886
2012
|
.describe('Display name of the contact.'),
|
|
2013
|
+
phone: zod
|
|
2014
|
+
.string()
|
|
2015
|
+
.optional()
|
|
2016
|
+
.describe(
|
|
2017
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2018
|
+
),
|
|
1887
2019
|
sub: zod
|
|
1888
2020
|
.string()
|
|
1889
2021
|
.optional()
|
|
@@ -2063,6 +2195,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2063
2195
|
.string()
|
|
2064
2196
|
.optional()
|
|
2065
2197
|
.describe('Display name of the contact.'),
|
|
2198
|
+
phone: zod
|
|
2199
|
+
.string()
|
|
2200
|
+
.optional()
|
|
2201
|
+
.describe(
|
|
2202
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2203
|
+
),
|
|
2066
2204
|
sub: zod
|
|
2067
2205
|
.string()
|
|
2068
2206
|
.optional()
|
|
@@ -2578,6 +2716,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2578
2716
|
.string()
|
|
2579
2717
|
.optional()
|
|
2580
2718
|
.describe('Display name of the contact.'),
|
|
2719
|
+
phone: zod
|
|
2720
|
+
.string()
|
|
2721
|
+
.optional()
|
|
2722
|
+
.describe(
|
|
2723
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2724
|
+
),
|
|
2581
2725
|
sub: zod
|
|
2582
2726
|
.string()
|
|
2583
2727
|
.optional()
|
|
@@ -2747,6 +2891,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2747
2891
|
.string()
|
|
2748
2892
|
.optional()
|
|
2749
2893
|
.describe('Display name of the contact.'),
|
|
2894
|
+
phone: zod
|
|
2895
|
+
.string()
|
|
2896
|
+
.optional()
|
|
2897
|
+
.describe(
|
|
2898
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
2899
|
+
),
|
|
2750
2900
|
sub: zod
|
|
2751
2901
|
.string()
|
|
2752
2902
|
.optional()
|
|
@@ -2877,6 +3027,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
2877
3027
|
.string()
|
|
2878
3028
|
.optional()
|
|
2879
3029
|
.describe('Display name of the contact.'),
|
|
3030
|
+
phone: zod
|
|
3031
|
+
.string()
|
|
3032
|
+
.optional()
|
|
3033
|
+
.describe(
|
|
3034
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3035
|
+
),
|
|
2880
3036
|
sub: zod
|
|
2881
3037
|
.string()
|
|
2882
3038
|
.optional()
|
|
@@ -3023,6 +3179,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3023
3179
|
.string()
|
|
3024
3180
|
.optional()
|
|
3025
3181
|
.describe('Display name of the contact.'),
|
|
3182
|
+
phone: zod
|
|
3183
|
+
.string()
|
|
3184
|
+
.optional()
|
|
3185
|
+
.describe(
|
|
3186
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3187
|
+
),
|
|
3026
3188
|
sub: zod
|
|
3027
3189
|
.string()
|
|
3028
3190
|
.optional()
|
|
@@ -3141,6 +3303,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3141
3303
|
.string()
|
|
3142
3304
|
.optional()
|
|
3143
3305
|
.describe('Display name of the contact.'),
|
|
3306
|
+
phone: zod
|
|
3307
|
+
.string()
|
|
3308
|
+
.optional()
|
|
3309
|
+
.describe(
|
|
3310
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3311
|
+
),
|
|
3144
3312
|
sub: zod
|
|
3145
3313
|
.string()
|
|
3146
3314
|
.optional()
|
|
@@ -3329,6 +3497,12 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3329
3497
|
.string()
|
|
3330
3498
|
.optional()
|
|
3331
3499
|
.describe('Display name of the contact.'),
|
|
3500
|
+
phone: zod
|
|
3501
|
+
.string()
|
|
3502
|
+
.optional()
|
|
3503
|
+
.describe(
|
|
3504
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3505
|
+
),
|
|
3332
3506
|
sub: zod
|
|
3333
3507
|
.string()
|
|
3334
3508
|
.optional()
|
|
@@ -3393,6 +3567,71 @@ export const ThreadManagementCreateResponse = zod
|
|
|
3393
3567
|
'ThreadManagementCreateResponse represents information enabled after thread creation.',
|
|
3394
3568
|
);
|
|
3395
3569
|
|
|
3570
|
+
/**
|
|
3571
|
+
* @summary Returns the caller's chat counters for the chat panel tabs: every active
|
|
3572
|
+
chat, the active chats outside Snoozed, and the snoozed chats.
|
|
3573
|
+
*/
|
|
3574
|
+
export const ThreadManagementGetCountersQueryParams = zod.object({
|
|
3575
|
+
types: zod
|
|
3576
|
+
.array(
|
|
3577
|
+
zod.enum([
|
|
3578
|
+
'UNKNOWN',
|
|
3579
|
+
'DIRECT',
|
|
3580
|
+
'GROUP',
|
|
3581
|
+
'CHANNEL',
|
|
3582
|
+
]),
|
|
3583
|
+
)
|
|
3584
|
+
.optional()
|
|
3585
|
+
.describe(
|
|
3586
|
+
'Count only threads of these kinds. Empty counts every kind.\nUNKNOWN (0) is not allowed.\n\n - UNKNOWN: Unknown or unspecified thread type.\nMust not be used in valid requests.\n - DIRECT: One-to-one private thread between two users.\n - GROUP: Group thread with multiple members.\n - CHANNEL: Channel-style thread (broadcast or topic based communication).',
|
|
3587
|
+
),
|
|
3588
|
+
});
|
|
3589
|
+
|
|
3590
|
+
export const ThreadManagementGetCountersResponse = zod
|
|
3591
|
+
.object({
|
|
3592
|
+
active: zod
|
|
3593
|
+
.object({
|
|
3594
|
+
total: zod.int().optional().describe('Number of chats in the folder.'),
|
|
3595
|
+
unread_chats: zod
|
|
3596
|
+
.int()
|
|
3597
|
+
.optional()
|
|
3598
|
+
.describe(
|
|
3599
|
+
'Number of chats in the folder with at least one unread message.',
|
|
3600
|
+
),
|
|
3601
|
+
})
|
|
3602
|
+
.optional()
|
|
3603
|
+
.describe('Chats the caller has not snoozed.'),
|
|
3604
|
+
all: zod
|
|
3605
|
+
.object({
|
|
3606
|
+
total: zod.int().optional().describe('Number of chats in the folder.'),
|
|
3607
|
+
unread_chats: zod
|
|
3608
|
+
.int()
|
|
3609
|
+
.optional()
|
|
3610
|
+
.describe(
|
|
3611
|
+
'Number of chats in the folder with at least one unread message.',
|
|
3612
|
+
),
|
|
3613
|
+
})
|
|
3614
|
+
.optional()
|
|
3615
|
+
.describe(
|
|
3616
|
+
'Every chat the caller is an active member of: active plus snoozed.',
|
|
3617
|
+
),
|
|
3618
|
+
snoozed: zod
|
|
3619
|
+
.object({
|
|
3620
|
+
total: zod.int().optional().describe('Number of chats in the folder.'),
|
|
3621
|
+
unread_chats: zod
|
|
3622
|
+
.int()
|
|
3623
|
+
.optional()
|
|
3624
|
+
.describe(
|
|
3625
|
+
'Number of chats in the folder with at least one unread message.',
|
|
3626
|
+
),
|
|
3627
|
+
})
|
|
3628
|
+
.optional()
|
|
3629
|
+
.describe('Chats the caller has snoozed.'),
|
|
3630
|
+
})
|
|
3631
|
+
.describe(
|
|
3632
|
+
"GetCountersResponse carries the caller's counters per chat folder.",
|
|
3633
|
+
);
|
|
3634
|
+
|
|
3396
3635
|
/**
|
|
3397
3636
|
* @summary Search threads that the caller has left from
|
|
3398
3637
|
*/
|
|
@@ -3431,6 +3670,7 @@ export const ThreadManagementSearchLeftQueryParams = zod.object({
|
|
|
3431
3670
|
page: zod.int().optional().describe('Page number (1-based).'),
|
|
3432
3671
|
});
|
|
3433
3672
|
|
|
3673
|
+
export const threadManagementSearchLeftResponseItemsItemChannelTypeDefault = `THREAD_CHANNEL_TYPE_UNSPECIFIED`;
|
|
3434
3674
|
export const threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
3435
3675
|
export const threadManagementSearchLeftResponseItemsItemLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
3436
3676
|
export const threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
@@ -3461,6 +3701,47 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3461
3701
|
.describe(
|
|
3462
3702
|
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
3463
3703
|
),
|
|
3704
|
+
channel: zod
|
|
3705
|
+
.object({
|
|
3706
|
+
address: zod
|
|
3707
|
+
.string()
|
|
3708
|
+
.optional()
|
|
3709
|
+
.describe(
|
|
3710
|
+
'Public address of the channel: the WhatsApp business phone number, the\nFacebook page name, the Viber BM sender name. Empty for portal / widget.',
|
|
3711
|
+
),
|
|
3712
|
+
id: zod
|
|
3713
|
+
.string()
|
|
3714
|
+
.optional()
|
|
3715
|
+
.describe(
|
|
3716
|
+
'Source identifier: the gate id for provider channels, the application\n(client) id for portal / widget channels.',
|
|
3717
|
+
),
|
|
3718
|
+
name: zod
|
|
3719
|
+
.string()
|
|
3720
|
+
.optional()
|
|
3721
|
+
.describe(
|
|
3722
|
+
'Display name: the gate name or the application name.',
|
|
3723
|
+
),
|
|
3724
|
+
type: zod
|
|
3725
|
+
.enum([
|
|
3726
|
+
'THREAD_CHANNEL_TYPE_UNSPECIFIED',
|
|
3727
|
+
'THREAD_CHANNEL_TYPE_WHATSAPP',
|
|
3728
|
+
'THREAD_CHANNEL_TYPE_FACEBOOK',
|
|
3729
|
+
'THREAD_CHANNEL_TYPE_VIBER_BM',
|
|
3730
|
+
'THREAD_CHANNEL_TYPE_PORTAL',
|
|
3731
|
+
'THREAD_CHANNEL_TYPE_WIDGET',
|
|
3732
|
+
'THREAD_CHANNEL_TYPE_CUSTOM',
|
|
3733
|
+
])
|
|
3734
|
+
.default(
|
|
3735
|
+
threadManagementSearchLeftResponseItemsItemChannelTypeDefault,
|
|
3736
|
+
)
|
|
3737
|
+
.describe(
|
|
3738
|
+
'Channel kind; drives the logo shown to the operator.',
|
|
3739
|
+
),
|
|
3740
|
+
})
|
|
3741
|
+
.optional()
|
|
3742
|
+
.describe(
|
|
3743
|
+
'Channel the external participant reaches the thread through: a provider\ngate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget\napplication. Unset when it cannot be resolved (e.g. an internal thread).',
|
|
3744
|
+
),
|
|
3464
3745
|
created_at: zod
|
|
3465
3746
|
.string()
|
|
3466
3747
|
.optional()
|
|
@@ -3546,6 +3827,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3546
3827
|
.string()
|
|
3547
3828
|
.optional()
|
|
3548
3829
|
.describe('Display name of the contact.'),
|
|
3830
|
+
phone: zod
|
|
3831
|
+
.string()
|
|
3832
|
+
.optional()
|
|
3833
|
+
.describe(
|
|
3834
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
3835
|
+
),
|
|
3549
3836
|
sub: zod
|
|
3550
3837
|
.string()
|
|
3551
3838
|
.optional()
|
|
@@ -3727,6 +4014,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
3727
4014
|
.string()
|
|
3728
4015
|
.optional()
|
|
3729
4016
|
.describe('Display name of the contact.'),
|
|
4017
|
+
phone: zod
|
|
4018
|
+
.string()
|
|
4019
|
+
.optional()
|
|
4020
|
+
.describe(
|
|
4021
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
4022
|
+
),
|
|
3730
4023
|
sub: zod
|
|
3731
4024
|
.string()
|
|
3732
4025
|
.optional()
|
|
@@ -4245,6 +4538,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4245
4538
|
.string()
|
|
4246
4539
|
.optional()
|
|
4247
4540
|
.describe('Display name of the contact.'),
|
|
4541
|
+
phone: zod
|
|
4542
|
+
.string()
|
|
4543
|
+
.optional()
|
|
4544
|
+
.describe(
|
|
4545
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
4546
|
+
),
|
|
4248
4547
|
sub: zod
|
|
4249
4548
|
.string()
|
|
4250
4549
|
.optional()
|
|
@@ -4414,6 +4713,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4414
4713
|
.string()
|
|
4415
4714
|
.optional()
|
|
4416
4715
|
.describe('Display name of the contact.'),
|
|
4716
|
+
phone: zod
|
|
4717
|
+
.string()
|
|
4718
|
+
.optional()
|
|
4719
|
+
.describe(
|
|
4720
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
4721
|
+
),
|
|
4417
4722
|
sub: zod
|
|
4418
4723
|
.string()
|
|
4419
4724
|
.optional()
|
|
@@ -4544,6 +4849,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4544
4849
|
.string()
|
|
4545
4850
|
.optional()
|
|
4546
4851
|
.describe('Display name of the contact.'),
|
|
4852
|
+
phone: zod
|
|
4853
|
+
.string()
|
|
4854
|
+
.optional()
|
|
4855
|
+
.describe(
|
|
4856
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
4857
|
+
),
|
|
4547
4858
|
sub: zod
|
|
4548
4859
|
.string()
|
|
4549
4860
|
.optional()
|
|
@@ -4692,6 +5003,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4692
5003
|
.string()
|
|
4693
5004
|
.optional()
|
|
4694
5005
|
.describe('Display name of the contact.'),
|
|
5006
|
+
phone: zod
|
|
5007
|
+
.string()
|
|
5008
|
+
.optional()
|
|
5009
|
+
.describe(
|
|
5010
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
5011
|
+
),
|
|
4695
5012
|
sub: zod
|
|
4696
5013
|
.string()
|
|
4697
5014
|
.optional()
|
|
@@ -4812,6 +5129,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
4812
5129
|
.string()
|
|
4813
5130
|
.optional()
|
|
4814
5131
|
.describe('Display name of the contact.'),
|
|
5132
|
+
phone: zod
|
|
5133
|
+
.string()
|
|
5134
|
+
.optional()
|
|
5135
|
+
.describe(
|
|
5136
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
5137
|
+
),
|
|
4815
5138
|
sub: zod
|
|
4816
5139
|
.string()
|
|
4817
5140
|
.optional()
|
|
@@ -5000,6 +5323,12 @@ export const ThreadManagementSearchLeftResponse = zod.object({
|
|
|
5000
5323
|
.string()
|
|
5001
5324
|
.optional()
|
|
5002
5325
|
.describe('Display name of the contact.'),
|
|
5326
|
+
phone: zod
|
|
5327
|
+
.string()
|
|
5328
|
+
.optional()
|
|
5329
|
+
.describe(
|
|
5330
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
5331
|
+
),
|
|
5003
5332
|
sub: zod
|
|
5004
5333
|
.string()
|
|
5005
5334
|
.optional()
|
|
@@ -5104,6 +5433,7 @@ export const ThreadManagementGetQueryParams = zod.object({
|
|
|
5104
5433
|
.describe('List of fields to include in the response.'),
|
|
5105
5434
|
});
|
|
5106
5435
|
|
|
5436
|
+
export const threadManagementGetResponseChannelTypeDefault = `THREAD_CHANNEL_TYPE_UNSPECIFIED`;
|
|
5107
5437
|
export const threadManagementGetResponseLastMsgDeletedByRoleDefault = `ROLE_UNSPECIFIED`;
|
|
5108
5438
|
export const threadManagementGetResponseLastMsgFailuresItemMemberRoleDefault = `ROLE_UNSPECIFIED`;
|
|
5109
5439
|
export const threadManagementGetResponseLastMsgForwardOriginKindDefault = `FORWARD_ORIGIN_KIND_UNSPECIFIED`;
|
|
@@ -5131,6 +5461,41 @@ export const ThreadManagementGetResponse = zod
|
|
|
5131
5461
|
.describe(
|
|
5132
5462
|
"The caller's own tags on this thread. Empty if the caller hasn't tagged it.",
|
|
5133
5463
|
),
|
|
5464
|
+
channel: zod
|
|
5465
|
+
.object({
|
|
5466
|
+
address: zod
|
|
5467
|
+
.string()
|
|
5468
|
+
.optional()
|
|
5469
|
+
.describe(
|
|
5470
|
+
'Public address of the channel: the WhatsApp business phone number, the\nFacebook page name, the Viber BM sender name. Empty for portal / widget.',
|
|
5471
|
+
),
|
|
5472
|
+
id: zod
|
|
5473
|
+
.string()
|
|
5474
|
+
.optional()
|
|
5475
|
+
.describe(
|
|
5476
|
+
'Source identifier: the gate id for provider channels, the application\n(client) id for portal / widget channels.',
|
|
5477
|
+
),
|
|
5478
|
+
name: zod
|
|
5479
|
+
.string()
|
|
5480
|
+
.optional()
|
|
5481
|
+
.describe('Display name: the gate name or the application name.'),
|
|
5482
|
+
type: zod
|
|
5483
|
+
.enum([
|
|
5484
|
+
'THREAD_CHANNEL_TYPE_UNSPECIFIED',
|
|
5485
|
+
'THREAD_CHANNEL_TYPE_WHATSAPP',
|
|
5486
|
+
'THREAD_CHANNEL_TYPE_FACEBOOK',
|
|
5487
|
+
'THREAD_CHANNEL_TYPE_VIBER_BM',
|
|
5488
|
+
'THREAD_CHANNEL_TYPE_PORTAL',
|
|
5489
|
+
'THREAD_CHANNEL_TYPE_WIDGET',
|
|
5490
|
+
'THREAD_CHANNEL_TYPE_CUSTOM',
|
|
5491
|
+
])
|
|
5492
|
+
.default(threadManagementGetResponseChannelTypeDefault)
|
|
5493
|
+
.describe('Channel kind; drives the logo shown to the operator.'),
|
|
5494
|
+
})
|
|
5495
|
+
.optional()
|
|
5496
|
+
.describe(
|
|
5497
|
+
'Channel the external participant reaches the thread through: a provider\ngate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget\napplication. Unset when it cannot be resolved (e.g. an internal thread).',
|
|
5498
|
+
),
|
|
5134
5499
|
created_at: zod
|
|
5135
5500
|
.string()
|
|
5136
5501
|
.optional()
|
|
@@ -5210,6 +5575,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
5210
5575
|
.string()
|
|
5211
5576
|
.optional()
|
|
5212
5577
|
.describe('Display name of the contact.'),
|
|
5578
|
+
phone: zod
|
|
5579
|
+
.string()
|
|
5580
|
+
.optional()
|
|
5581
|
+
.describe(
|
|
5582
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
5583
|
+
),
|
|
5213
5584
|
sub: zod
|
|
5214
5585
|
.string()
|
|
5215
5586
|
.optional()
|
|
@@ -5368,6 +5739,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
5368
5739
|
.string()
|
|
5369
5740
|
.optional()
|
|
5370
5741
|
.describe('Display name of the contact.'),
|
|
5742
|
+
phone: zod
|
|
5743
|
+
.string()
|
|
5744
|
+
.optional()
|
|
5745
|
+
.describe(
|
|
5746
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
5747
|
+
),
|
|
5371
5748
|
sub: zod
|
|
5372
5749
|
.string()
|
|
5373
5750
|
.optional()
|
|
@@ -5873,6 +6250,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
5873
6250
|
.string()
|
|
5874
6251
|
.optional()
|
|
5875
6252
|
.describe('Display name of the contact.'),
|
|
6253
|
+
phone: zod
|
|
6254
|
+
.string()
|
|
6255
|
+
.optional()
|
|
6256
|
+
.describe(
|
|
6257
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
6258
|
+
),
|
|
5876
6259
|
sub: zod
|
|
5877
6260
|
.string()
|
|
5878
6261
|
.optional()
|
|
@@ -6036,6 +6419,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
6036
6419
|
.string()
|
|
6037
6420
|
.optional()
|
|
6038
6421
|
.describe('Display name of the contact.'),
|
|
6422
|
+
phone: zod
|
|
6423
|
+
.string()
|
|
6424
|
+
.optional()
|
|
6425
|
+
.describe(
|
|
6426
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
6427
|
+
),
|
|
6039
6428
|
sub: zod
|
|
6040
6429
|
.string()
|
|
6041
6430
|
.optional()
|
|
@@ -6160,6 +6549,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
6160
6549
|
.string()
|
|
6161
6550
|
.optional()
|
|
6162
6551
|
.describe('Display name of the contact.'),
|
|
6552
|
+
phone: zod
|
|
6553
|
+
.string()
|
|
6554
|
+
.optional()
|
|
6555
|
+
.describe(
|
|
6556
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
6557
|
+
),
|
|
6163
6558
|
sub: zod
|
|
6164
6559
|
.string()
|
|
6165
6560
|
.optional()
|
|
@@ -6296,6 +6691,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
6296
6691
|
.string()
|
|
6297
6692
|
.optional()
|
|
6298
6693
|
.describe('Display name of the contact.'),
|
|
6694
|
+
phone: zod
|
|
6695
|
+
.string()
|
|
6696
|
+
.optional()
|
|
6697
|
+
.describe(
|
|
6698
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
6699
|
+
),
|
|
6299
6700
|
sub: zod
|
|
6300
6701
|
.string()
|
|
6301
6702
|
.optional()
|
|
@@ -6408,6 +6809,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
6408
6809
|
.string()
|
|
6409
6810
|
.optional()
|
|
6410
6811
|
.describe('Display name of the contact.'),
|
|
6812
|
+
phone: zod
|
|
6813
|
+
.string()
|
|
6814
|
+
.optional()
|
|
6815
|
+
.describe(
|
|
6816
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
6817
|
+
),
|
|
6411
6818
|
sub: zod
|
|
6412
6819
|
.string()
|
|
6413
6820
|
.optional()
|
|
@@ -6592,6 +6999,12 @@ export const ThreadManagementGetResponse = zod
|
|
|
6592
6999
|
.string()
|
|
6593
7000
|
.optional()
|
|
6594
7001
|
.describe('Display name of the contact.'),
|
|
7002
|
+
phone: zod
|
|
7003
|
+
.string()
|
|
7004
|
+
.optional()
|
|
7005
|
+
.describe(
|
|
7006
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7007
|
+
),
|
|
6595
7008
|
sub: zod
|
|
6596
7009
|
.string()
|
|
6597
7010
|
.optional()
|
|
@@ -6762,6 +7175,12 @@ export const ThreadManagementAddMemberResponse = zod.object({
|
|
|
6762
7175
|
.string()
|
|
6763
7176
|
.optional()
|
|
6764
7177
|
.describe('Display name of the contact.'),
|
|
7178
|
+
phone: zod
|
|
7179
|
+
.string()
|
|
7180
|
+
.optional()
|
|
7181
|
+
.describe(
|
|
7182
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7183
|
+
),
|
|
6765
7184
|
sub: zod
|
|
6766
7185
|
.string()
|
|
6767
7186
|
.optional()
|
|
@@ -6930,6 +7349,12 @@ export const ThreadManagementTransferResponse = zod.object({
|
|
|
6930
7349
|
.string()
|
|
6931
7350
|
.optional()
|
|
6932
7351
|
.describe('Display name of the contact.'),
|
|
7352
|
+
phone: zod
|
|
7353
|
+
.string()
|
|
7354
|
+
.optional()
|
|
7355
|
+
.describe(
|
|
7356
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7357
|
+
),
|
|
6933
7358
|
sub: zod
|
|
6934
7359
|
.string()
|
|
6935
7360
|
.optional()
|
|
@@ -7057,6 +7482,12 @@ export const ThreadManagementLocateVariablesResponse = zod
|
|
|
7057
7482
|
.string()
|
|
7058
7483
|
.optional()
|
|
7059
7484
|
.describe('Display name of the contact.'),
|
|
7485
|
+
phone: zod
|
|
7486
|
+
.string()
|
|
7487
|
+
.optional()
|
|
7488
|
+
.describe(
|
|
7489
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7490
|
+
),
|
|
7060
7491
|
sub: zod
|
|
7061
7492
|
.string()
|
|
7062
7493
|
.optional()
|
|
@@ -7195,6 +7626,12 @@ export const ThreadManagementSetVariablesResponse = zod
|
|
|
7195
7626
|
.string()
|
|
7196
7627
|
.optional()
|
|
7197
7628
|
.describe('Display name of the contact.'),
|
|
7629
|
+
phone: zod
|
|
7630
|
+
.string()
|
|
7631
|
+
.optional()
|
|
7632
|
+
.describe(
|
|
7633
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7634
|
+
),
|
|
7198
7635
|
sub: zod
|
|
7199
7636
|
.string()
|
|
7200
7637
|
.optional()
|
|
@@ -7322,6 +7759,12 @@ export const ThreadManagementFlushVariablesResponse = zod
|
|
|
7322
7759
|
.string()
|
|
7323
7760
|
.optional()
|
|
7324
7761
|
.describe('Display name of the contact.'),
|
|
7762
|
+
phone: zod
|
|
7763
|
+
.string()
|
|
7764
|
+
.optional()
|
|
7765
|
+
.describe(
|
|
7766
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7767
|
+
),
|
|
7325
7768
|
sub: zod
|
|
7326
7769
|
.string()
|
|
7327
7770
|
.optional()
|
|
@@ -7452,6 +7895,12 @@ export const ThreadManagementSearchVariablesResponse = zod
|
|
|
7452
7895
|
.string()
|
|
7453
7896
|
.optional()
|
|
7454
7897
|
.describe('Display name of the contact.'),
|
|
7898
|
+
phone: zod
|
|
7899
|
+
.string()
|
|
7900
|
+
.optional()
|
|
7901
|
+
.describe(
|
|
7902
|
+
'Phone number in E.164 format (e.g. +380671234567). Empty if unknown.',
|
|
7903
|
+
),
|
|
7455
7904
|
sub: zod
|
|
7456
7905
|
.string()
|
|
7457
7906
|
.optional()
|