@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
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ const fieldsToSend = [
|
|
|
31
31
|
|
|
32
32
|
/*
|
|
33
33
|
* The form models a time range as `{ start, end }`, the API as
|
|
34
|
-
* `{ startTimeOfDay, endTimeOfDay }`. `
|
|
34
|
+
* `{ startTimeOfDay, endTimeOfDay }`. `responseHandler` maps them back.
|
|
35
35
|
*/
|
|
36
36
|
const preRequestHandler = (item: ApiParams) => {
|
|
37
37
|
const copy = deepCopy(item);
|
|
@@ -42,6 +42,17 @@ const preRequestHandler = (item: ApiParams) => {
|
|
|
42
42
|
return copy;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
const responseHandler = (response: ApiParams) => {
|
|
46
|
+
const time = (response.time || []).map((range: ApiParams) => ({
|
|
47
|
+
start: range.startTimeOfDay || 0,
|
|
48
|
+
end: range.endTimeOfDay || 0,
|
|
49
|
+
}));
|
|
50
|
+
return {
|
|
51
|
+
...response,
|
|
52
|
+
time,
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
|
|
45
56
|
const getResourceGroupsList = async (params: ApiParams) => {
|
|
46
57
|
const { page, size, search, sort, fields, id } = applyTransform(params, [
|
|
47
58
|
merge(getDefaultGetParams()),
|
|
@@ -83,17 +94,6 @@ const getResourceGroup = async ({ itemId: id }: GetItemParams) => {
|
|
|
83
94
|
time: [],
|
|
84
95
|
};
|
|
85
96
|
|
|
86
|
-
const responseHandler = (response: ApiParams) => {
|
|
87
|
-
const time = response.time.map((range: ApiParams) => ({
|
|
88
|
-
start: range.startTimeOfDay || 0,
|
|
89
|
-
end: range.endTimeOfDay || 0,
|
|
90
|
-
}));
|
|
91
|
-
return {
|
|
92
|
-
...response,
|
|
93
|
-
time,
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
|
|
97
97
|
try {
|
|
98
98
|
const response =
|
|
99
99
|
await getOutboundResourceGroupService().readOutboundResourceGroup(
|
|
@@ -122,6 +122,7 @@ const addResourceGroup = async ({ itemInstance }: AddItemParams) => {
|
|
|
122
122
|
await getOutboundResourceGroupService().createOutboundResourceGroup(item);
|
|
123
123
|
return applyTransform(response.data, [
|
|
124
124
|
snakeToCamel(),
|
|
125
|
+
responseHandler,
|
|
125
126
|
]);
|
|
126
127
|
} catch (err) {
|
|
127
128
|
throw applyTransform(err, [
|
|
@@ -147,6 +148,7 @@ const updateResourceGroup = async ({
|
|
|
147
148
|
);
|
|
148
149
|
return applyTransform(response.data, [
|
|
149
150
|
snakeToCamel(),
|
|
151
|
+
responseHandler,
|
|
150
152
|
]);
|
|
151
153
|
} catch (err) {
|
|
152
154
|
throw applyTransform(err, [
|
|
@@ -18,7 +18,9 @@ export type AddUserAccessTokenBody = {
|
|
|
18
18
|
createdBy?: ApiObjectId;
|
|
19
19
|
deletedAt?: string;
|
|
20
20
|
deletedBy?: ApiObjectId;
|
|
21
|
+
expiresAt?: string;
|
|
21
22
|
id?: string;
|
|
23
|
+
notifyUsers?: ApiObjectId[];
|
|
22
24
|
token?: string;
|
|
23
25
|
updatedAt?: string;
|
|
24
26
|
updatedBy?: ApiObjectId;
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export type AddUserAccessTokenParams = {
|
|
9
|
+
enable?: boolean;
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
-
* string usage = 2; // [optional] usage description
|
|
12
|
-
* bool enable = 3;
|
|
11
|
+
* [optional] create-only; server derives token.expires_at
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
expiryDays?: number;
|
|
15
14
|
};
|
|
@@ -14,7 +14,9 @@ export interface ApiUserAccessToken {
|
|
|
14
14
|
createdBy?: ApiObjectId;
|
|
15
15
|
deletedAt?: string;
|
|
16
16
|
deletedBy?: ApiObjectId;
|
|
17
|
+
expiresAt?: string;
|
|
17
18
|
id?: string;
|
|
19
|
+
notifyUsers?: ApiObjectId[];
|
|
18
20
|
token?: string;
|
|
19
21
|
updatedAt?: string;
|
|
20
22
|
updatedBy?: ApiObjectId;
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ApiLicenseExpiryWarning } from './apiLicenseExpiryWarning';
|
|
8
8
|
import type { ApiPasswordExpiryWarning } from './apiPasswordExpiryWarning';
|
|
9
|
+
import type { ApiTokenExpiryWarning } from './apiTokenExpiryWarning';
|
|
9
10
|
|
|
10
11
|
export interface ApiWarningData {
|
|
11
12
|
licenseExpiry?: ApiLicenseExpiryWarning;
|
|
12
13
|
passwordExpiry?: ApiPasswordExpiryWarning;
|
|
14
|
+
tokenExpiry?: ApiTokenExpiryWarning;
|
|
13
15
|
}
|
|
@@ -13,7 +13,6 @@ export const EngineSystemSettingName = {
|
|
|
13
13
|
EnableOmnichannel: 'enable_omnichannel',
|
|
14
14
|
MemberChunkSize: 'member_chunk_size',
|
|
15
15
|
AmdCancelNotHuman: 'amd_cancel_not_human',
|
|
16
|
-
SchemeVersionLimit: 'scheme_version_limit',
|
|
17
16
|
Enable2fa: 'enable_2fa',
|
|
18
17
|
ExportSettings: 'export_settings',
|
|
19
18
|
SearchNumberLength: 'search_number_length',
|
|
@@ -18,6 +18,8 @@ export type GateServiceListGatesParams = {
|
|
|
18
18
|
size?: number;
|
|
19
19
|
/**
|
|
20
20
|
* Filter by channel type (Telegram, Facebook, etc.)
|
|
21
|
+
*
|
|
22
|
+
* - PROVIDER_TYPE_VIBER_BM: Viber Business Messages (Infobip).
|
|
21
23
|
*/
|
|
22
24
|
types?: GateServiceListGatesTypesItem[];
|
|
23
25
|
/**
|
|
@@ -32,4 +34,9 @@ export type GateServiceListGatesParams = {
|
|
|
32
34
|
* Search query for name or metadata
|
|
33
35
|
*/
|
|
34
36
|
q?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Domain to list gates of. Required for service (mTLS) callers, which carry
|
|
39
|
+
* no user identity; ignored for user callers, whose own domain is used.
|
|
40
|
+
*/
|
|
41
|
+
domainId?: string;
|
|
35
42
|
};
|
|
@@ -5,6 +5,123 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
10
|
+
* URL that describes the type of the serialized message.
|
|
11
|
+
*
|
|
12
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
13
|
+
* of utility functions or additional generated methods of the Any type.
|
|
14
|
+
*
|
|
15
|
+
* Example 1: Pack and unpack a message in C++.
|
|
16
|
+
*
|
|
17
|
+
* Foo foo = ...;
|
|
18
|
+
* Any any;
|
|
19
|
+
* any.PackFrom(foo);
|
|
20
|
+
* ...
|
|
21
|
+
* if (any.UnpackTo(&foo)) {
|
|
22
|
+
* ...
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* Example 2: Pack and unpack a message in Java.
|
|
26
|
+
*
|
|
27
|
+
* Foo foo = ...;
|
|
28
|
+
* Any any = Any.pack(foo);
|
|
29
|
+
* ...
|
|
30
|
+
* if (any.is(Foo.class)) {
|
|
31
|
+
* foo = any.unpack(Foo.class);
|
|
32
|
+
* }
|
|
33
|
+
* // or ...
|
|
34
|
+
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
35
|
+
* foo = any.unpack(Foo.getDefaultInstance());
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* Example 3: Pack and unpack a message in Python.
|
|
39
|
+
*
|
|
40
|
+
* foo = Foo(...)
|
|
41
|
+
* any = Any()
|
|
42
|
+
* any.Pack(foo)
|
|
43
|
+
* ...
|
|
44
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
45
|
+
* any.Unpack(foo)
|
|
46
|
+
* ...
|
|
47
|
+
*
|
|
48
|
+
* Example 4: Pack and unpack a message in Go
|
|
49
|
+
*
|
|
50
|
+
* foo := &pb.Foo{...}
|
|
51
|
+
* any, err := anypb.New(foo)
|
|
52
|
+
* if err != nil {
|
|
53
|
+
* ...
|
|
54
|
+
* }
|
|
55
|
+
* ...
|
|
56
|
+
* foo := &pb.Foo{}
|
|
57
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
58
|
+
* ...
|
|
59
|
+
* }
|
|
60
|
+
*
|
|
61
|
+
* The pack methods provided by protobuf library will by default use
|
|
62
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
63
|
+
* methods only use the fully qualified type name after the last '/'
|
|
64
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
65
|
+
* name "y.z".
|
|
66
|
+
*
|
|
67
|
+
* JSON
|
|
68
|
+
* ====
|
|
69
|
+
* The JSON representation of an `Any` value uses the regular
|
|
70
|
+
* representation of the deserialized, embedded message, with an
|
|
71
|
+
* additional field `@type` which contains the type URL. Example:
|
|
72
|
+
*
|
|
73
|
+
* package google.profile;
|
|
74
|
+
* message Person {
|
|
75
|
+
* string first_name = 1;
|
|
76
|
+
* string last_name = 2;
|
|
77
|
+
* }
|
|
78
|
+
*
|
|
79
|
+
* {
|
|
80
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
81
|
+
* "firstName": <string>,
|
|
82
|
+
* "lastName": <string>
|
|
83
|
+
* }
|
|
84
|
+
*
|
|
85
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
86
|
+
* representation, that representation will be embedded adding a field
|
|
87
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
88
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
89
|
+
*
|
|
90
|
+
* {
|
|
91
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
92
|
+
* "value": "1.212s"
|
|
93
|
+
* }
|
|
94
|
+
*/
|
|
8
95
|
export interface GoogleProtobufAny {
|
|
96
|
+
/**
|
|
97
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
98
|
+
* protocol buffer message. This string must contain at least
|
|
99
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
100
|
+
* the fully qualified name of the type (as in
|
|
101
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
102
|
+
* (e.g., leading "." is not accepted).
|
|
103
|
+
*
|
|
104
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
105
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
106
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
107
|
+
* server that maps type URLs to message definitions as follows:
|
|
108
|
+
*
|
|
109
|
+
* * If no scheme is provided, `https` is assumed.
|
|
110
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
111
|
+
* value in binary format, or produce an error.
|
|
112
|
+
* * Applications are allowed to cache lookup results based on the
|
|
113
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
114
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
115
|
+
* on changes to types. (Use versioned type names to manage
|
|
116
|
+
* breaking changes.)
|
|
117
|
+
*
|
|
118
|
+
* Note: this functionality is not currently available in the official
|
|
119
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
120
|
+
* type.googleapis.com. As of May 2023, there are no widely used type server
|
|
121
|
+
* implementations and no plans to implement one.
|
|
122
|
+
*
|
|
123
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
124
|
+
* used with implementation specific semantics.
|
|
125
|
+
*/
|
|
9
126
|
'@type'?: string;
|
|
10
127
|
}
|
|
@@ -6,15 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
10
|
+
* `Value` type union.
|
|
10
11
|
*
|
|
11
|
-
* `NullValue` is
|
|
12
|
-
* the null value for the `Value` type union.
|
|
13
|
-
*
|
|
14
|
-
* A field of type `NullValue` with any value other than `0` is considered
|
|
15
|
-
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
16
|
-
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
17
|
-
* a `0` value.
|
|
12
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
18
13
|
*
|
|
19
14
|
* - NULL_VALUE: Null value.
|
|
20
15
|
*/
|
|
@@ -6,8 +6,31 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { GoogleProtobufAny } from './googleProtobufAny';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* The `Status` type defines a logical error model that is suitable for
|
|
11
|
+
* different programming environments, including REST APIs and RPC APIs. It is
|
|
12
|
+
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
13
|
+
* three pieces of data: error code, error message, and error details.
|
|
14
|
+
*
|
|
15
|
+
* You can find out more about this error model and how to work with it in the
|
|
16
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
17
|
+
*/
|
|
9
18
|
export interface GoogleRpcStatus {
|
|
19
|
+
/**
|
|
20
|
+
* The status code, which should be an enum value of
|
|
21
|
+
* [google.rpc.Code][google.rpc.Code].
|
|
22
|
+
*/
|
|
10
23
|
code?: number;
|
|
24
|
+
/**
|
|
25
|
+
* A list of messages that carry the error details. There is a common set of
|
|
26
|
+
* message types for APIs to use.
|
|
27
|
+
*/
|
|
11
28
|
details?: GoogleProtobufAny[];
|
|
29
|
+
/**
|
|
30
|
+
* A developer-facing error message, which should be in English. Any
|
|
31
|
+
* user-facing error message should be localized and sent in the
|
|
32
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized
|
|
33
|
+
* by the client.
|
|
34
|
+
*/
|
|
12
35
|
message?: string;
|
|
13
36
|
}
|
package/src/gen/_models/index.ts
CHANGED
|
@@ -120,11 +120,11 @@ export * from './apiSearchPermissionResponse';
|
|
|
120
120
|
export * from './apiSearchRolesResponse';
|
|
121
121
|
export * from './apiSearchUsersRequest';
|
|
122
122
|
export * from './apiSearchUsersResponse';
|
|
123
|
-
export * from './apiServerInfoResponse';
|
|
124
123
|
export * from './apiSetStatusRequest';
|
|
125
124
|
export * from './apiSystemObjects';
|
|
126
125
|
export * from './apiTfaUrl';
|
|
127
126
|
export * from './apiToggleDefaultAccessResponse';
|
|
127
|
+
export * from './apiTokenExpiryWarning';
|
|
128
128
|
export * from './apiUpdateAccessResponseV1';
|
|
129
129
|
export * from './apiUpdateClassResponse';
|
|
130
130
|
export * from './apiUpdateCustomerResponse';
|
|
@@ -723,11 +723,9 @@ export * from './engineSchemaTag';
|
|
|
723
723
|
export * from './engineSchemaVariable';
|
|
724
724
|
export * from './engineSchemaVariablesServicePatchSchemaVariableBody';
|
|
725
725
|
export * from './engineSchemaVariablesServiceUpdateSchemaVariableBody';
|
|
726
|
-
export * from './engineSchemaVersion';
|
|
727
726
|
export * from './engineSearchHistoryCallRequest';
|
|
728
727
|
export * from './engineSearchHistoryCallRequestVariablesString';
|
|
729
728
|
export * from './engineSearchOnlineSkillsResponse';
|
|
730
|
-
export * from './engineSearchSchemaVersionResponse';
|
|
731
729
|
export * from './engineSendPushResponse';
|
|
732
730
|
export * from './engineSetQueuesGlobalStateRequest';
|
|
733
731
|
export * from './engineSetQueuesGlobalStateResponse';
|
|
@@ -1138,7 +1136,6 @@ export * from './searchRoutingSchemaTagsTypeItem';
|
|
|
1138
1136
|
export * from './searchRoutingSchemaTypeItem';
|
|
1139
1137
|
export * from './searchRoutingVariableParams';
|
|
1140
1138
|
export * from './searchSchemaVariableParams';
|
|
1141
|
-
export * from './searchSchemaVersionParams';
|
|
1142
1139
|
export * from './searchScreenRecordingsByAgentChannel';
|
|
1143
1140
|
export * from './searchScreenRecordingsByAgentParams';
|
|
1144
1141
|
export * from './searchScreenRecordingsByAgentType';
|
|
@@ -1262,6 +1259,8 @@ export * from './storageUploadFileResponse';
|
|
|
1262
1259
|
export * from './storageUploadFileUrlResponse';
|
|
1263
1260
|
export * from './storageUploadStatusCode';
|
|
1264
1261
|
export * from './suggestTagsParams';
|
|
1262
|
+
export * from './threadManagementGetCountersParams';
|
|
1263
|
+
export * from './threadManagementGetCountersTypesItem';
|
|
1265
1264
|
export * from './threadManagementGetParams';
|
|
1266
1265
|
export * from './threadManagementRemoveMemberParams';
|
|
1267
1266
|
export * from './threadManagementSearchLeftParams';
|
|
@@ -1654,6 +1653,7 @@ export * from './webitelImApiGatewayV1ForwardOrigin';
|
|
|
1654
1653
|
export * from './webitelImApiGatewayV1ForwardOriginInput';
|
|
1655
1654
|
export * from './webitelImApiGatewayV1ForwardOriginKind';
|
|
1656
1655
|
export * from './webitelImApiGatewayV1GetContactSettingsResponse';
|
|
1656
|
+
export * from './webitelImApiGatewayV1GetCountersResponse';
|
|
1657
1657
|
export * from './webitelImApiGatewayV1GetMessageRevisionsResponse';
|
|
1658
1658
|
export * from './webitelImApiGatewayV1GetThreadPermissionsResponse';
|
|
1659
1659
|
export * from './webitelImApiGatewayV1GetUnreadSummaryResponse';
|
|
@@ -1734,6 +1734,9 @@ export * from './webitelImApiGatewayV1System';
|
|
|
1734
1734
|
export * from './webitelImApiGatewayV1SystemMetadata';
|
|
1735
1735
|
export * from './webitelImApiGatewayV1TakeOverFromBotResponse';
|
|
1736
1736
|
export * from './webitelImApiGatewayV1Thread';
|
|
1737
|
+
export * from './webitelImApiGatewayV1ThreadChannel';
|
|
1738
|
+
export * from './webitelImApiGatewayV1ThreadChannelType';
|
|
1739
|
+
export * from './webitelImApiGatewayV1ThreadCounters';
|
|
1737
1740
|
export * from './webitelImApiGatewayV1ThreadKind';
|
|
1738
1741
|
export * from './webitelImApiGatewayV1ThreadManagementAddMemberBody';
|
|
1739
1742
|
export * from './webitelImApiGatewayV1ThreadManagementCreateRequest';
|
|
@@ -6,15 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
10
|
+
* `Value` type union.
|
|
10
11
|
*
|
|
11
|
-
* `NullValue` is
|
|
12
|
-
* the null value for the `Value` type union.
|
|
13
|
-
*
|
|
14
|
-
* A field of type `NullValue` with any value other than `0` is considered
|
|
15
|
-
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
16
|
-
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
17
|
-
* a `0` value.
|
|
12
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
18
13
|
*
|
|
19
14
|
* - NULL_VALUE: Null value.
|
|
20
15
|
*/
|
|
@@ -13,7 +13,6 @@ export const SearchSystemSettingNameItem = {
|
|
|
13
13
|
EnableOmnichannel: 'enable_omnichannel',
|
|
14
14
|
MemberChunkSize: 'member_chunk_size',
|
|
15
15
|
AmdCancelNotHuman: 'amd_cancel_not_human',
|
|
16
|
-
SchemeVersionLimit: 'scheme_version_limit',
|
|
17
16
|
Enable2fa: 'enable_2fa',
|
|
18
17
|
ExportSettings: 'export_settings',
|
|
19
18
|
SearchNumberLength: 'search_number_length',
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ThreadManagementGetCountersTypesItem } from './threadManagementGetCountersTypesItem';
|
|
8
|
+
|
|
9
|
+
export type ThreadManagementGetCountersParams = {
|
|
10
|
+
/**
|
|
11
|
+
* Count only threads of these kinds. Empty counts every kind.
|
|
12
|
+
* UNKNOWN (0) is not allowed.
|
|
13
|
+
*
|
|
14
|
+
* - UNKNOWN: Unknown or unspecified thread type.
|
|
15
|
+
* Must not be used in valid requests.
|
|
16
|
+
* - DIRECT: One-to-one private thread between two users.
|
|
17
|
+
* - GROUP: Group thread with multiple members.
|
|
18
|
+
* - CHANNEL: Channel-style thread (broadcast or topic based communication).
|
|
19
|
+
*/
|
|
20
|
+
types?: ThreadManagementGetCountersTypesItem[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type ThreadManagementGetCountersTypesItem =
|
|
9
|
+
(typeof ThreadManagementGetCountersTypesItem)[keyof typeof ThreadManagementGetCountersTypesItem];
|
|
10
|
+
|
|
11
|
+
export const ThreadManagementGetCountersTypesItem = {
|
|
12
|
+
Unknown: 'UNKNOWN',
|
|
13
|
+
Direct: 'DIRECT',
|
|
14
|
+
Group: 'GROUP',
|
|
15
|
+
Channel: 'CHANNEL',
|
|
16
|
+
} as const;
|
|
@@ -25,6 +25,8 @@ export interface WebitelImApiGatewayV1Contact {
|
|
|
25
25
|
metadata?: WebitelImApiGatewayV1ContactMetadata;
|
|
26
26
|
/** Display name of the contact. */
|
|
27
27
|
name?: string;
|
|
28
|
+
/** Phone number in E.164 format (e.g. +380671234567). Empty if unknown. */
|
|
29
|
+
phone?: string;
|
|
28
30
|
/** Associated internal system subject/identifier. */
|
|
29
31
|
sub?: string;
|
|
30
32
|
/** Channel type (e.g., 'webchat', 'telegram'). */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1ThreadCounters } from './webitelImApiGatewayV1ThreadCounters';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* GetCountersResponse carries the caller's counters per chat folder.
|
|
11
|
+
*/
|
|
12
|
+
export interface WebitelImApiGatewayV1GetCountersResponse {
|
|
13
|
+
/** Chats the caller has not snoozed. */
|
|
14
|
+
active?: WebitelImApiGatewayV1ThreadCounters;
|
|
15
|
+
/** Every chat the caller is an active member of: active plus snoozed. */
|
|
16
|
+
all?: WebitelImApiGatewayV1ThreadCounters;
|
|
17
|
+
/** Chats the caller has snoozed. */
|
|
18
|
+
snoozed?: WebitelImApiGatewayV1ThreadCounters;
|
|
19
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import type { WebitelImApiGatewayV1ChatTag } from './webitelImApiGatewayV1ChatTag';
|
|
8
8
|
import type { WebitelImApiGatewayV1HistoryMessage } from './webitelImApiGatewayV1HistoryMessage';
|
|
9
9
|
import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
|
|
10
|
+
import type { WebitelImApiGatewayV1ThreadChannel } from './webitelImApiGatewayV1ThreadChannel';
|
|
10
11
|
import type { WebitelImApiGatewayV1ThreadKind } from './webitelImApiGatewayV1ThreadKind';
|
|
11
12
|
import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
|
|
12
13
|
import type { WebitelImApiGatewayV1ThreadSettings } from './webitelImApiGatewayV1ThreadSettings';
|
|
@@ -18,6 +19,12 @@ import type { WebitelImApiGatewayV1ThreadVariables } from './webitelImApiGateway
|
|
|
18
19
|
export interface WebitelImApiGatewayV1Thread {
|
|
19
20
|
/** The caller's own tags on this thread. Empty if the caller hasn't tagged it. */
|
|
20
21
|
tags?: WebitelImApiGatewayV1ChatTag[];
|
|
22
|
+
/**
|
|
23
|
+
* Channel the external participant reaches the thread through: a provider
|
|
24
|
+
* gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
|
|
25
|
+
* application. Unset when it cannot be resolved (e.g. an internal thread).
|
|
26
|
+
*/
|
|
27
|
+
channel?: WebitelImApiGatewayV1ThreadChannel;
|
|
21
28
|
/** Thread creation timestamp (Unix time, milliseconds). */
|
|
22
29
|
createdAt?: string;
|
|
23
30
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1ThreadChannelType } from './webitelImApiGatewayV1ThreadChannelType';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* ThreadChannel describes the channel a thread came in through.
|
|
11
|
+
*/
|
|
12
|
+
export interface WebitelImApiGatewayV1ThreadChannel {
|
|
13
|
+
/**
|
|
14
|
+
* Public address of the channel: the WhatsApp business phone number, the
|
|
15
|
+
* Facebook page name, the Viber BM sender name. Empty for portal / widget.
|
|
16
|
+
*/
|
|
17
|
+
address?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Source identifier: the gate id for provider channels, the application
|
|
20
|
+
* (client) id for portal / widget channels.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/** Display name: the gate name or the application name. */
|
|
24
|
+
name?: string;
|
|
25
|
+
/** Channel kind; drives the logo shown to the operator. */
|
|
26
|
+
type?: WebitelImApiGatewayV1ThreadChannelType;
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ThreadChannelType is the fixed set of channel kinds a thread can come through.
|
|
10
|
+
*/
|
|
11
|
+
export type WebitelImApiGatewayV1ThreadChannelType =
|
|
12
|
+
(typeof WebitelImApiGatewayV1ThreadChannelType)[keyof typeof WebitelImApiGatewayV1ThreadChannelType];
|
|
13
|
+
|
|
14
|
+
export const WebitelImApiGatewayV1ThreadChannelType = {
|
|
15
|
+
ThreadChannelTypeUnspecified: 'THREAD_CHANNEL_TYPE_UNSPECIFIED',
|
|
16
|
+
ThreadChannelTypeWhatsapp: 'THREAD_CHANNEL_TYPE_WHATSAPP',
|
|
17
|
+
ThreadChannelTypeFacebook: 'THREAD_CHANNEL_TYPE_FACEBOOK',
|
|
18
|
+
ThreadChannelTypeViberBm: 'THREAD_CHANNEL_TYPE_VIBER_BM',
|
|
19
|
+
ThreadChannelTypePortal: 'THREAD_CHANNEL_TYPE_PORTAL',
|
|
20
|
+
ThreadChannelTypeWidget: 'THREAD_CHANNEL_TYPE_WIDGET',
|
|
21
|
+
ThreadChannelTypeCustom: 'THREAD_CHANNEL_TYPE_CUSTOM',
|
|
22
|
+
} as const;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* ThreadCounters is the size of one chat folder.
|
|
10
|
+
*/
|
|
11
|
+
export interface WebitelImApiGatewayV1ThreadCounters {
|
|
12
|
+
/** Number of chats in the folder. */
|
|
13
|
+
total?: number;
|
|
14
|
+
/** Number of chats in the folder with at least one unread message. */
|
|
15
|
+
unreadChats?: number;
|
|
16
|
+
}
|