@webitel/api-services 26.8.84 → 26.8.86
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/__tests__/wireParamsCoverage.spec.ts +5 -2
- package/src/api/clients/queues/defaults/processing.ts +1 -0
- package/src/gen/_models/apiUser.ts +2 -0
- package/src/gen/_models/catalogGetHistory2Params.ts +4 -0
- package/src/gen/_models/catalogGetHistoryParams.ts +4 -0
- package/src/gen/_models/engineMemberServiceTransferAttemptBody.ts +12 -0
- package/src/gen/_models/engineTransferAttemptResponse.ts +10 -0
- package/src/gen/_models/index.ts +8 -0
- package/src/gen/_models/listArticlesParams.ts +9 -0
- package/src/gen/_models/listArticlesTagMatch.ts +15 -0
- package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +11 -0
- package/src/gen/_models/messageHistorySearchMessagesParams.ts +11 -0
- package/src/gen/_models/messageHistorySearchThreadMessagesHistoryParams.ts +11 -0
- package/src/gen/_models/searchAllowedUploadTypesChannelItem.ts +21 -0
- package/src/gen/_models/searchAllowedUploadTypesParams.ts +16 -0
- package/src/gen/_models/storageAllowedUploadTypes.ts +25 -0
- package/src/gen/_models/storageCustomFileProperties.ts +1 -0
- package/src/gen/_models/storageGenerateFileLinkResponseMetadata.ts +4 -0
- package/src/gen/_models/storageListAllowedUploadTypes.ts +11 -0
- package/src/gen/_models/threadManagementRemoveMemberParams.ts +10 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.ts +11 -0
- package/src/gen-wire/_models/apiUser.ts +2 -0
- package/src/gen-wire/_models/catalogGetHistory2Params.ts +4 -0
- package/src/gen-wire/_models/catalogGetHistoryParams.ts +4 -0
- package/src/gen-wire/_models/engineMemberServiceTransferAttemptBody.ts +12 -0
- package/src/gen-wire/_models/engineTransferAttemptResponse.ts +10 -0
- package/src/gen-wire/_models/index.ts +8 -0
- package/src/gen-wire/_models/listArticlesParams.ts +9 -0
- package/src/gen-wire/_models/listArticlesTagMatch.ts +15 -0
- package/src/gen-wire/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +11 -0
- package/src/gen-wire/_models/messageHistorySearchMessagesParams.ts +11 -0
- package/src/gen-wire/_models/messageHistorySearchThreadMessagesHistoryParams.ts +11 -0
- package/src/gen-wire/_models/searchAllowedUploadTypesChannelItem.ts +21 -0
- package/src/gen-wire/_models/searchAllowedUploadTypesParams.ts +16 -0
- package/src/gen-wire/_models/storageAllowedUploadTypes.ts +25 -0
- package/src/gen-wire/_models/storageCustomFileProperties.ts +1 -0
- package/src/gen-wire/_models/storageGenerateFileLinkResponseMetadata.ts +4 -0
- package/src/gen-wire/_models/storageListAllowedUploadTypes.ts +11 -0
- package/src/gen-wire/_models/threadManagementRemoveMemberParams.ts +10 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.ts +11 -0
- package/src/gen-wire/articles/articles.zod.ts +11 -0
- package/src/gen-wire/file-policies-service/file-policies-service.ts +21 -0
- package/src/gen-wire/file-policies-service/file-policies-service.zod.ts +61 -0
- package/src/gen-wire/file-service/file-service.zod.ts +5 -0
- package/src/gen-wire/index.ts +5 -0
- package/src/gen-wire/member-service/member-service.ts +16 -0
- package/src/gen-wire/member-service/member-service.zod.ts +14 -0
- package/src/gen-wire/messages/messages.zod.ts +12 -0
- package/src/gen-wire/users/users.zod.ts +63 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +18 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +9 -1
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +4 -0
- package/src/locale/en/en.ts +9 -0
- package/src/locale/es/es.ts +9 -0
- package/src/locale/kz/kz.ts +9 -0
- package/src/locale/pl/pl.ts +9 -0
- package/src/locale/ro/ro.ts +9 -0
- package/src/locale/ru/ru.ts +9 -0
- package/src/locale/uk/uk.ts +9 -0
- package/src/locale/uz/uz.ts +9 -0
- package/src/locale/vi/vi.ts +9 -0
- package/src/validations/queue/taskProcessing.validations.ts +1 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/queues/defaults/processing.d.ts +1 -0
- package/types/gen/_models/apiUser.d.ts +2 -0
- package/types/gen/_models/catalogGetHistory2Params.d.ts +4 -0
- package/types/gen/_models/catalogGetHistoryParams.d.ts +4 -0
- package/types/gen/_models/engineMemberServiceTransferAttemptBody.d.ts +11 -0
- package/types/gen/_models/engineTransferAttemptResponse.d.ts +9 -0
- package/types/gen/_models/index.d.ts +8 -0
- package/types/gen/_models/listArticlesParams.d.ts +9 -0
- package/types/gen/_models/listArticlesTagMatch.d.ts +12 -0
- package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +11 -0
- package/types/gen/_models/messageHistorySearchMessagesParams.d.ts +11 -0
- package/types/gen/_models/messageHistorySearchThreadMessagesHistoryParams.d.ts +11 -0
- package/types/gen/_models/searchAllowedUploadTypesChannelItem.d.ts +18 -0
- package/types/gen/_models/searchAllowedUploadTypesParams.d.ts +15 -0
- package/types/gen/_models/storageAllowedUploadTypes.d.ts +24 -0
- package/types/gen/_models/storageCustomFileProperties.d.ts +1 -0
- package/types/gen/_models/storageGenerateFileLinkResponseMetadata.d.ts +4 -0
- package/types/gen/_models/storageListAllowedUploadTypes.d.ts +10 -0
- package/types/gen/_models/threadManagementRemoveMemberParams.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.d.ts +11 -0
- package/types/gen-wire/_models/apiUser.d.ts +2 -0
- package/types/gen-wire/_models/catalogGetHistory2Params.d.ts +4 -0
- package/types/gen-wire/_models/catalogGetHistoryParams.d.ts +4 -0
- package/types/gen-wire/_models/engineMemberServiceTransferAttemptBody.d.ts +11 -0
- package/types/gen-wire/_models/engineTransferAttemptResponse.d.ts +9 -0
- package/types/gen-wire/_models/index.d.ts +8 -0
- package/types/gen-wire/_models/listArticlesParams.d.ts +9 -0
- package/types/gen-wire/_models/listArticlesTagMatch.d.ts +12 -0
- package/types/gen-wire/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +11 -0
- package/types/gen-wire/_models/messageHistorySearchMessagesParams.d.ts +11 -0
- package/types/gen-wire/_models/messageHistorySearchThreadMessagesHistoryParams.d.ts +11 -0
- package/types/gen-wire/_models/searchAllowedUploadTypesChannelItem.d.ts +18 -0
- package/types/gen-wire/_models/searchAllowedUploadTypesParams.d.ts +15 -0
- package/types/gen-wire/_models/storageAllowedUploadTypes.d.ts +24 -0
- package/types/gen-wire/_models/storageCustomFileProperties.d.ts +1 -0
- package/types/gen-wire/_models/storageGenerateFileLinkResponseMetadata.d.ts +4 -0
- package/types/gen-wire/_models/storageListAllowedUploadTypes.d.ts +10 -0
- package/types/gen-wire/_models/threadManagementRemoveMemberParams.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.d.ts +11 -0
- package/types/gen-wire/articles/articles.zod.d.ts +6 -0
- package/types/gen-wire/file-policies-service/file-policies-service.d.ts +3 -1
- package/types/gen-wire/file-policies-service/file-policies-service.zod.d.ts +35 -0
- package/types/gen-wire/file-service/file-service.zod.d.ts +5 -0
- package/types/gen-wire/index.d.ts +3 -3
- package/types/gen-wire/member-service/member-service.d.ts +3 -1
- package/types/gen-wire/member-service/member-service.zod.d.ts +8 -0
- package/types/gen-wire/messages/messages.zod.d.ts +2 -0
- package/types/gen-wire/users/users.zod.d.ts +45 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +3 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +2 -2
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +3 -0
- package/types/locale/en/en.d.ts +9 -0
- package/types/locale/es/es.d.ts +9 -0
- package/types/locale/index.d.ts +81 -0
- package/types/locale/kz/kz.d.ts +9 -0
- package/types/locale/pl/pl.d.ts +9 -0
- package/types/locale/ro/ro.d.ts +9 -0
- package/types/locale/ru/ru.d.ts +9 -0
- package/types/locale/uk/uk.d.ts +9 -0
- package/types/locale/uz/uz.d.ts +9 -0
- package/types/locale/vi/vi.d.ts +9 -0
- package/types/validations/queue/queue.validations.d.ts +2 -0
- package/types/validations/queue/taskProcessing.validations.d.ts +1 -0
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { StorageCustomFileProperties } from './storageCustomFileProperties';
|
|
8
|
+
import type { StorageThumbnail } from './storageThumbnail';
|
|
7
9
|
|
|
8
10
|
export interface StorageGenerateFileLinkResponseMetadata {
|
|
9
11
|
id?: string;
|
|
10
12
|
mime_type?: string;
|
|
11
13
|
name?: string;
|
|
14
|
+
properties?: StorageCustomFileProperties;
|
|
12
15
|
size?: string;
|
|
16
|
+
thumbnail?: StorageThumbnail;
|
|
13
17
|
uuid?: string;
|
|
14
18
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { StorageAllowedUploadTypes } from './storageAllowedUploadTypes';
|
|
8
|
+
|
|
9
|
+
export interface StorageListAllowedUploadTypes {
|
|
10
|
+
items?: StorageAllowedUploadTypes[];
|
|
11
|
+
}
|
|
@@ -35,6 +35,17 @@
|
|
|
35
35
|
* - The number of returned messages is controlled separately (e.g., via limit).
|
|
36
36
|
*/
|
|
37
37
|
export interface WebitelImApiGatewayV1HistoryMessageCursorRequest {
|
|
38
|
+
/**
|
|
39
|
+
* Fetch a window centred on the cursor message in a single request,
|
|
40
|
+
* ignoring `before`. The window holds `size` messages, newest first:
|
|
41
|
+
* the cursor message with up to size - size/2 - 1 older ones, and up to
|
|
42
|
+
* size/2 newer ones. When one side runs short the window is not refilled
|
|
43
|
+
* from the other. next_cursor / prev_cursor continue the history from the
|
|
44
|
+
* window's oldest / newest message.
|
|
45
|
+
*
|
|
46
|
+
* Supported by SearchThreadMessagesHistory only.
|
|
47
|
+
*/
|
|
48
|
+
around?: boolean;
|
|
38
49
|
/**
|
|
39
50
|
* Pagination direction flag.
|
|
40
51
|
*
|
|
@@ -955,6 +955,7 @@ export const UpdateArticleArticlesResponse = zod
|
|
|
955
955
|
*/
|
|
956
956
|
export const listArticlesQueryStateDefault = `ARTICLE_STATE_UNSPECIFIED`;
|
|
957
957
|
export const listArticlesQueryTypeDefault = `ARTICLE_TYPE_UNSPECIFIED`;
|
|
958
|
+
export const listArticlesQueryTagMatchDefault = `TAG_MATCH_UNSPECIFIED`;
|
|
958
959
|
|
|
959
960
|
export const ListArticlesQueryParams = zod.object({
|
|
960
961
|
size: zod.int().optional().describe('Page size.'),
|
|
@@ -984,6 +985,16 @@ export const ListArticlesQueryParams = zod.object({
|
|
|
984
985
|
.array(zod.string())
|
|
985
986
|
.optional()
|
|
986
987
|
.describe('Set of fields to return.'),
|
|
988
|
+
tag_match: zod
|
|
989
|
+
.enum([
|
|
990
|
+
'TAG_MATCH_UNSPECIFIED',
|
|
991
|
+
'TAG_MATCH_ALL',
|
|
992
|
+
'TAG_MATCH_ANY',
|
|
993
|
+
])
|
|
994
|
+
.default(listArticlesQueryTagMatchDefault)
|
|
995
|
+
.describe(
|
|
996
|
+
'How the tag filter combines the tags.\n\n - TAG_MATCH_UNSPECIFIED: Default mode: match articles having ANY listed tag (OR).\n - TAG_MATCH_ALL: Match articles having ALL listed tags (AND).\n - TAG_MATCH_ANY: Match articles having ANY listed tag (OR).',
|
|
997
|
+
),
|
|
987
998
|
});
|
|
988
999
|
|
|
989
1000
|
export const listArticlesResponseItemsItemIndexStateDefault = `INDEX_STATE_UNSPECIFIED`;
|
|
@@ -9,6 +9,7 @@ import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
|
9
9
|
import axios from '../../api/axios/genClient';
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
|
+
SearchAllowedUploadTypesParams,
|
|
12
13
|
SearchFilePoliciesParams,
|
|
13
14
|
StorageCreateFilePolicyRequest,
|
|
14
15
|
StorageFilePoliciesServiceFilePolicyApplyBody,
|
|
@@ -17,6 +18,7 @@ import type {
|
|
|
17
18
|
StorageFilePoliciesServiceUpdateFilePolicyBody,
|
|
18
19
|
StorageFilePolicy,
|
|
19
20
|
StorageFilePolicyApplyResponse,
|
|
21
|
+
StorageListAllowedUploadTypes,
|
|
20
22
|
StorageListFilePolicies,
|
|
21
23
|
StorageMovePositionFilePolicyResponse,
|
|
22
24
|
} from '../_models';
|
|
@@ -57,6 +59,22 @@ export const // --- title start
|
|
|
57
59
|
options,
|
|
58
60
|
);
|
|
59
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* @summary Allowed upload MIME types per channel for the caller's domain, as the HTTP
|
|
64
|
+
upload route applies them. Needs a session only: no files_policy scope.
|
|
65
|
+
*/
|
|
66
|
+
const searchAllowedUploadTypes = (
|
|
67
|
+
params?: SearchAllowedUploadTypesParams,
|
|
68
|
+
options?: AxiosRequestConfig,
|
|
69
|
+
): Promise<AxiosResponse<StorageListAllowedUploadTypes>> => {
|
|
70
|
+
return axiosInstance.get(`/storage/file_policies/allowed`, {
|
|
71
|
+
...options,
|
|
72
|
+
params: {
|
|
73
|
+
...params,
|
|
74
|
+
...options?.params,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
};
|
|
60
78
|
const movePositionFilePolicy = (
|
|
61
79
|
fromId: number,
|
|
62
80
|
toId: number,
|
|
@@ -131,6 +149,7 @@ export const // --- title start
|
|
|
131
149
|
return {
|
|
132
150
|
searchFilePolicies,
|
|
133
151
|
createFilePolicy,
|
|
152
|
+
searchAllowedUploadTypes,
|
|
134
153
|
movePositionFilePolicy,
|
|
135
154
|
deleteFilePolicy,
|
|
136
155
|
readFilePolicy,
|
|
@@ -141,6 +160,8 @@ export const // --- title start
|
|
|
141
160
|
};
|
|
142
161
|
export type SearchFilePoliciesResult = AxiosResponse<StorageListFilePolicies>;
|
|
143
162
|
export type CreateFilePolicyResult = AxiosResponse<StorageFilePolicy>;
|
|
163
|
+
export type SearchAllowedUploadTypesResult =
|
|
164
|
+
AxiosResponse<StorageListAllowedUploadTypes>;
|
|
144
165
|
export type MovePositionFilePolicyResult =
|
|
145
166
|
AxiosResponse<StorageMovePositionFilePolicyResponse>;
|
|
146
167
|
export type DeleteFilePolicyResult = AxiosResponse<StorageFilePolicy>;
|
|
@@ -153,6 +153,67 @@ export const CreateFilePolicyResponse = zod.object({
|
|
|
153
153
|
.optional(),
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* @summary Allowed upload MIME types per channel for the caller's domain, as the HTTP
|
|
158
|
+
upload route applies them. Needs a session only: no files_policy scope.
|
|
159
|
+
*/
|
|
160
|
+
export const SearchAllowedUploadTypesQueryParams = zod.object({
|
|
161
|
+
channel: zod
|
|
162
|
+
.array(
|
|
163
|
+
zod.enum([
|
|
164
|
+
'UnknownChannel',
|
|
165
|
+
'ChatChannel',
|
|
166
|
+
'MailChannel',
|
|
167
|
+
'CallChannel',
|
|
168
|
+
'LogChannel',
|
|
169
|
+
'MediaChannel',
|
|
170
|
+
'KnowledgebaseChannel',
|
|
171
|
+
'CasesChannel',
|
|
172
|
+
'ScreenRecordingChannel',
|
|
173
|
+
]),
|
|
174
|
+
)
|
|
175
|
+
.optional()
|
|
176
|
+
.describe(
|
|
177
|
+
'Channels to return. Empty: every channel.\n\n - ScreenRecordingChannel: ScreenshotChannel = 8; // deprecated',
|
|
178
|
+
),
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export const searchAllowedUploadTypesResponseItemsItemChannelDefault = `UnknownChannel`;
|
|
182
|
+
|
|
183
|
+
export const SearchAllowedUploadTypesResponse = zod.object({
|
|
184
|
+
items: zod
|
|
185
|
+
.array(
|
|
186
|
+
zod.object({
|
|
187
|
+
channel: zod
|
|
188
|
+
.enum([
|
|
189
|
+
'UnknownChannel',
|
|
190
|
+
'ChatChannel',
|
|
191
|
+
'MailChannel',
|
|
192
|
+
'CallChannel',
|
|
193
|
+
'LogChannel',
|
|
194
|
+
'MediaChannel',
|
|
195
|
+
'KnowledgebaseChannel',
|
|
196
|
+
'CasesChannel',
|
|
197
|
+
'ScreenRecordingChannel',
|
|
198
|
+
])
|
|
199
|
+
.default(searchAllowedUploadTypesResponseItemsItemChannelDefault),
|
|
200
|
+
mime_types: zod
|
|
201
|
+
.array(zod.string())
|
|
202
|
+
.optional()
|
|
203
|
+
.describe(
|
|
204
|
+
'Glob patterns (* and ?) of the enabled policies covering the channel, as\nstored, in match order, without duplicates. Not every pattern fits an HTML\naccept attribute, and one can match every type without being * or */*.',
|
|
205
|
+
),
|
|
206
|
+
unrestricted: zod
|
|
207
|
+
.boolean()
|
|
208
|
+
.optional()
|
|
209
|
+
.describe(
|
|
210
|
+
'The type check passes any MIME type on this channel: no enabled policy\nwith MIME types covers it, or one of the patterns below is * or */*.\nIgnore mime_types when true. What follows a type match still applies: the\nsize limit and, on MediaChannel, the check of the content against the\ndeclared type.',
|
|
211
|
+
),
|
|
212
|
+
}),
|
|
213
|
+
)
|
|
214
|
+
.optional(),
|
|
215
|
+
});
|
|
216
|
+
|
|
156
217
|
export const MovePositionFilePolicyParams = zod.object({
|
|
157
218
|
from_id: zod.int(),
|
|
158
219
|
to_id: zod.int(),
|
|
@@ -76,6 +76,7 @@ export const SearchFilesByCallResponse = zod.object({
|
|
|
76
76
|
name: zod.string().optional(),
|
|
77
77
|
properties: zod
|
|
78
78
|
.object({
|
|
79
|
+
duration: zod.string().optional(),
|
|
79
80
|
end_time: zod.string().optional(),
|
|
80
81
|
height: zod.string().optional(),
|
|
81
82
|
start_time: zod.string().optional(),
|
|
@@ -168,6 +169,7 @@ export const SearchScreenRecordingsByAgentResponse = zod.object({
|
|
|
168
169
|
name: zod.string().optional(),
|
|
169
170
|
properties: zod
|
|
170
171
|
.object({
|
|
172
|
+
duration: zod.string().optional(),
|
|
171
173
|
end_time: zod.string().optional(),
|
|
172
174
|
height: zod.string().optional(),
|
|
173
175
|
start_time: zod.string().optional(),
|
|
@@ -269,6 +271,7 @@ export const SearchScreenRecordingsByCallResponse = zod.object({
|
|
|
269
271
|
name: zod.string().optional(),
|
|
270
272
|
properties: zod
|
|
271
273
|
.object({
|
|
274
|
+
duration: zod.string().optional(),
|
|
272
275
|
end_time: zod.string().optional(),
|
|
273
276
|
height: zod.string().optional(),
|
|
274
277
|
start_time: zod.string().optional(),
|
|
@@ -364,6 +367,7 @@ export const SearchFilesResponse = zod.object({
|
|
|
364
367
|
name: zod.string().optional(),
|
|
365
368
|
properties: zod
|
|
366
369
|
.object({
|
|
370
|
+
duration: zod.string().optional(),
|
|
367
371
|
end_time: zod.string().optional(),
|
|
368
372
|
height: zod.string().optional(),
|
|
369
373
|
start_time: zod.string().optional(),
|
|
@@ -466,6 +470,7 @@ export const SearchScreenRecordingsResponse = zod.object({
|
|
|
466
470
|
name: zod.string().optional(),
|
|
467
471
|
properties: zod
|
|
468
472
|
.object({
|
|
473
|
+
duration: zod.string().optional(),
|
|
469
474
|
end_time: zod.string().optional(),
|
|
470
475
|
height: zod.string().optional(),
|
|
471
476
|
start_time: zod.string().optional(),
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -229,6 +229,7 @@ export {
|
|
|
229
229
|
listAncestorsResponseItemsItemStateDefault,
|
|
230
230
|
listAncestorsResponseItemsItemTypeDefault,
|
|
231
231
|
listArticlesQueryStateDefault,
|
|
232
|
+
listArticlesQueryTagMatchDefault,
|
|
232
233
|
listArticlesQueryTypeDefault,
|
|
233
234
|
listArticlesResponseItemsItemIndexStateDefault,
|
|
234
235
|
listArticlesResponseItemsItemStateDefault,
|
|
@@ -1532,6 +1533,9 @@ export {
|
|
|
1532
1533
|
SearchMemberInQueueResponse,
|
|
1533
1534
|
SearchMembersQueryParams,
|
|
1534
1535
|
SearchMembersResponse,
|
|
1536
|
+
TransferAttemptBody,
|
|
1537
|
+
TransferAttemptParams,
|
|
1538
|
+
TransferAttemptResponse,
|
|
1535
1539
|
UpdateMemberBody,
|
|
1536
1540
|
UpdateMemberParams,
|
|
1537
1541
|
UpdateMemberResponse,
|
|
@@ -2724,6 +2728,7 @@ export {
|
|
|
2724
2728
|
ThreadManagementLocateVariablesParams,
|
|
2725
2729
|
ThreadManagementLocateVariablesResponse,
|
|
2726
2730
|
ThreadManagementRemoveMemberParams,
|
|
2731
|
+
ThreadManagementRemoveMemberQueryParams,
|
|
2727
2732
|
ThreadManagementRemoveMemberResponse,
|
|
2728
2733
|
ThreadManagementSearchLeftQueryParams,
|
|
2729
2734
|
ThreadManagementSearchLeftResponse,
|
|
@@ -33,11 +33,13 @@ import type {
|
|
|
33
33
|
EngineMemberServicePatchMemberBody,
|
|
34
34
|
EngineMemberServicePatchMemberOneBody,
|
|
35
35
|
EngineMemberServiceResetMembersBody,
|
|
36
|
+
EngineMemberServiceTransferAttemptBody,
|
|
36
37
|
EngineMemberServiceUpdateMemberBody,
|
|
37
38
|
EngineResetActiveAttemptsRequest,
|
|
38
39
|
EngineResetActiveAttemptsResponse,
|
|
39
40
|
EngineResetMembersCountResponse,
|
|
40
41
|
EngineResetMembersResponse,
|
|
42
|
+
EngineTransferAttemptResponse,
|
|
41
43
|
ExportMembers200,
|
|
42
44
|
ExportMembersParams,
|
|
43
45
|
ReadMemberParams,
|
|
@@ -157,6 +159,17 @@ export const // --- title start
|
|
|
157
159
|
options,
|
|
158
160
|
);
|
|
159
161
|
};
|
|
162
|
+
const transferAttempt = (
|
|
163
|
+
attemptId: string,
|
|
164
|
+
engineMemberServiceTransferAttemptBody: EngineMemberServiceTransferAttemptBody,
|
|
165
|
+
options?: AxiosRequestConfig,
|
|
166
|
+
): Promise<AxiosResponse<EngineTransferAttemptResponse>> => {
|
|
167
|
+
return axiosInstance.patch(
|
|
168
|
+
`/call_center/queues/attempts/${attemptId}/transfer`,
|
|
169
|
+
engineMemberServiceTransferAttemptBody,
|
|
170
|
+
options,
|
|
171
|
+
);
|
|
172
|
+
};
|
|
160
173
|
/**
|
|
161
174
|
* @summary DeleteAllMembers
|
|
162
175
|
*/
|
|
@@ -429,6 +442,7 @@ Can be used to preview the impact of a reset request.
|
|
|
429
442
|
searchAttemptsHistory,
|
|
430
443
|
assignAttempt,
|
|
431
444
|
attemptsRenewalResult,
|
|
445
|
+
transferAttempt,
|
|
432
446
|
deleteAllMembers,
|
|
433
447
|
deleteMembers,
|
|
434
448
|
searchMemberInQueue,
|
|
@@ -458,6 +472,8 @@ export type SearchAttemptsHistoryResult =
|
|
|
458
472
|
export type AssignAttemptResult = AxiosResponse<EngineAssignAttemptResponse>;
|
|
459
473
|
export type AttemptsRenewalResultResult =
|
|
460
474
|
AxiosResponse<EngineAttemptRenewalResultResponse>;
|
|
475
|
+
export type TransferAttemptResult =
|
|
476
|
+
AxiosResponse<EngineTransferAttemptResponse>;
|
|
461
477
|
export type DeleteAllMembersResult = AxiosResponse<EngineListMember>;
|
|
462
478
|
export type DeleteMembersResult = AxiosResponse<EngineListMember>;
|
|
463
479
|
export type SearchMemberInQueueResult = AxiosResponse<EngineListMember>;
|
|
@@ -542,6 +542,20 @@ export const AttemptsRenewalResultBody = zod.object({
|
|
|
542
542
|
|
|
543
543
|
export const AttemptsRenewalResultResponse = zod.looseObject({});
|
|
544
544
|
|
|
545
|
+
export const TransferAttemptParams = zod.object({
|
|
546
|
+
attempt_id: zod.string(),
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
export const TransferAttemptBody = zod.object({
|
|
550
|
+
agent_id: zod
|
|
551
|
+
.string()
|
|
552
|
+
.optional()
|
|
553
|
+
.describe('Exactly one of agent_id or queue_id must be set.'),
|
|
554
|
+
queue_id: zod.string().optional(),
|
|
555
|
+
});
|
|
556
|
+
|
|
557
|
+
export const TransferAttemptResponse = zod.looseObject({});
|
|
558
|
+
|
|
545
559
|
/**
|
|
546
560
|
* @summary DeleteAllMembers
|
|
547
561
|
*/
|
|
@@ -1004,6 +1004,12 @@ export const CatalogGetHistoryQueryParams = zod.object({
|
|
|
1004
1004
|
.describe(
|
|
1005
1005
|
'Includes the history of ONLY those dialogs\nwhose member channel(s) contain\na specified set of variables.',
|
|
1006
1006
|
),
|
|
1007
|
+
sort: zod
|
|
1008
|
+
.array(zod.string())
|
|
1009
|
+
.optional()
|
|
1010
|
+
.describe(
|
|
1011
|
+
'Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)',
|
|
1012
|
+
),
|
|
1007
1013
|
});
|
|
1008
1014
|
|
|
1009
1015
|
export const catalogGetHistoryResponseMessagesItemKeyboardButtonsItemRowItemShareDefault = `phone`;
|
|
@@ -1505,6 +1511,12 @@ export const CatalogGetHistory2QueryParams = zod.object({
|
|
|
1505
1511
|
.describe(
|
|
1506
1512
|
'Includes the history of ONLY those dialogs\nwhose member channel(s) contain\na specified set of variables.',
|
|
1507
1513
|
),
|
|
1514
|
+
sort: zod
|
|
1515
|
+
.array(zod.string())
|
|
1516
|
+
.optional()
|
|
1517
|
+
.describe(
|
|
1518
|
+
'Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)',
|
|
1519
|
+
),
|
|
1508
1520
|
});
|
|
1509
1521
|
|
|
1510
1522
|
export const catalogGetHistory2ResponseMessagesItemKeyboardButtonsItemRowItemShareDefault = `phone`;
|
|
@@ -130,6 +130,13 @@ export const ReadUser2Response = zod.object({
|
|
|
130
130
|
}),
|
|
131
131
|
)
|
|
132
132
|
.optional(),
|
|
133
|
+
status: zod.string().optional(),
|
|
134
|
+
team: zod
|
|
135
|
+
.object({
|
|
136
|
+
id: zod.string().optional(),
|
|
137
|
+
name: zod.string().optional(),
|
|
138
|
+
})
|
|
139
|
+
.optional(),
|
|
133
140
|
totp_url: zod.string().optional(),
|
|
134
141
|
updated_at: zod.string().optional(),
|
|
135
142
|
updated_by: zod
|
|
@@ -276,6 +283,13 @@ export const DeleteUsers2Response = zod.object({
|
|
|
276
283
|
}),
|
|
277
284
|
)
|
|
278
285
|
.optional(),
|
|
286
|
+
status: zod.string().optional(),
|
|
287
|
+
team: zod
|
|
288
|
+
.object({
|
|
289
|
+
id: zod.string().optional(),
|
|
290
|
+
name: zod.string().optional(),
|
|
291
|
+
})
|
|
292
|
+
.optional(),
|
|
279
293
|
totp_url: zod.string().optional(),
|
|
280
294
|
updated_at: zod.string().optional(),
|
|
281
295
|
updated_by: zod
|
|
@@ -468,6 +482,13 @@ export const SearchUsersResponse = zod.object({
|
|
|
468
482
|
}),
|
|
469
483
|
)
|
|
470
484
|
.optional(),
|
|
485
|
+
status: zod.string().optional(),
|
|
486
|
+
team: zod
|
|
487
|
+
.object({
|
|
488
|
+
id: zod.string().optional(),
|
|
489
|
+
name: zod.string().optional(),
|
|
490
|
+
})
|
|
491
|
+
.optional(),
|
|
471
492
|
totp_url: zod.string().optional(),
|
|
472
493
|
updated_at: zod.string().optional(),
|
|
473
494
|
updated_by: zod
|
|
@@ -722,6 +743,13 @@ export const CreateUserResponse = zod
|
|
|
722
743
|
}),
|
|
723
744
|
)
|
|
724
745
|
.optional(),
|
|
746
|
+
status: zod.string().optional(),
|
|
747
|
+
team: zod
|
|
748
|
+
.object({
|
|
749
|
+
id: zod.string().optional(),
|
|
750
|
+
name: zod.string().optional(),
|
|
751
|
+
})
|
|
752
|
+
.optional(),
|
|
725
753
|
totp_url: zod.string().optional(),
|
|
726
754
|
updated_at: zod.string().optional(),
|
|
727
755
|
updated_by: zod
|
|
@@ -927,6 +955,13 @@ export const SearchUsers2Response = zod.object({
|
|
|
927
955
|
}),
|
|
928
956
|
)
|
|
929
957
|
.optional(),
|
|
958
|
+
status: zod.string().optional(),
|
|
959
|
+
team: zod
|
|
960
|
+
.object({
|
|
961
|
+
id: zod.string().optional(),
|
|
962
|
+
name: zod.string().optional(),
|
|
963
|
+
})
|
|
964
|
+
.optional(),
|
|
930
965
|
totp_url: zod.string().optional(),
|
|
931
966
|
updated_at: zod.string().optional(),
|
|
932
967
|
updated_by: zod
|
|
@@ -1118,6 +1153,13 @@ export const DeleteUsersResponse = zod.object({
|
|
|
1118
1153
|
}),
|
|
1119
1154
|
)
|
|
1120
1155
|
.optional(),
|
|
1156
|
+
status: zod.string().optional(),
|
|
1157
|
+
team: zod
|
|
1158
|
+
.object({
|
|
1159
|
+
id: zod.string().optional(),
|
|
1160
|
+
name: zod.string().optional(),
|
|
1161
|
+
})
|
|
1162
|
+
.optional(),
|
|
1121
1163
|
totp_url: zod.string().optional(),
|
|
1122
1164
|
updated_at: zod.string().optional(),
|
|
1123
1165
|
updated_by: zod
|
|
@@ -1261,6 +1303,13 @@ export const ReadUserResponse = zod.object({
|
|
|
1261
1303
|
}),
|
|
1262
1304
|
)
|
|
1263
1305
|
.optional(),
|
|
1306
|
+
status: zod.string().optional(),
|
|
1307
|
+
team: zod
|
|
1308
|
+
.object({
|
|
1309
|
+
id: zod.string().optional(),
|
|
1310
|
+
name: zod.string().optional(),
|
|
1311
|
+
})
|
|
1312
|
+
.optional(),
|
|
1264
1313
|
totp_url: zod.string().optional(),
|
|
1265
1314
|
updated_at: zod.string().optional(),
|
|
1266
1315
|
updated_by: zod
|
|
@@ -1514,6 +1563,13 @@ export const UpdateUser2Response = zod
|
|
|
1514
1563
|
}),
|
|
1515
1564
|
)
|
|
1516
1565
|
.optional(),
|
|
1566
|
+
status: zod.string().optional(),
|
|
1567
|
+
team: zod
|
|
1568
|
+
.object({
|
|
1569
|
+
id: zod.string().optional(),
|
|
1570
|
+
name: zod.string().optional(),
|
|
1571
|
+
})
|
|
1572
|
+
.optional(),
|
|
1517
1573
|
totp_url: zod.string().optional(),
|
|
1518
1574
|
updated_at: zod.string().optional(),
|
|
1519
1575
|
updated_by: zod
|
|
@@ -1765,6 +1821,13 @@ export const UpdateUserResponse = zod
|
|
|
1765
1821
|
}),
|
|
1766
1822
|
)
|
|
1767
1823
|
.optional(),
|
|
1824
|
+
status: zod.string().optional(),
|
|
1825
|
+
team: zod
|
|
1826
|
+
.object({
|
|
1827
|
+
id: zod.string().optional(),
|
|
1828
|
+
name: zod.string().optional(),
|
|
1829
|
+
})
|
|
1830
|
+
.optional(),
|
|
1768
1831
|
totp_url: zod.string().optional(),
|
|
1769
1832
|
updated_at: zod.string().optional(),
|
|
1770
1833
|
updated_by: zod
|
|
@@ -51,6 +51,12 @@ export const MessageHistorySearchMessagesQueryParams = zod.object({
|
|
|
51
51
|
.describe(
|
|
52
52
|
'Pagination direction flag.\n\nfalse -> fetch messages older than the cursor (scrolling up the chat)\ntrue -> fetch messages newer than the cursor (moving toward the present)',
|
|
53
53
|
),
|
|
54
|
+
'cursor.around': zod
|
|
55
|
+
.boolean()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe(
|
|
58
|
+
"Fetch a window centred on the cursor message in a single request,\nignoring `before`. The window holds `size` messages, newest first:\nthe cursor message with up to size - size/2 - 1 older ones, and up to\nsize/2 newer ones. When one side runs short the window is not refilled\nfrom the other. next_cursor / prev_cursor continue the history from the\nwindow's oldest / newest message.\n\nSupported by SearchThreadMessagesHistory only.",
|
|
59
|
+
),
|
|
54
60
|
size: zod.int().optional().describe('Maximum number of matches to return.'),
|
|
55
61
|
});
|
|
56
62
|
|
|
@@ -1323,6 +1329,12 @@ export const MessageHistorySearchLeftThreadsMessagesHistoryQueryParams =
|
|
|
1323
1329
|
.describe(
|
|
1324
1330
|
'Pagination direction flag.\n\nfalse -> fetch messages older than the cursor (scrolling up the chat)\ntrue -> fetch messages newer than the cursor (moving toward the present)',
|
|
1325
1331
|
),
|
|
1332
|
+
'cursor.around': zod
|
|
1333
|
+
.boolean()
|
|
1334
|
+
.optional()
|
|
1335
|
+
.describe(
|
|
1336
|
+
"Fetch a window centred on the cursor message in a single request,\nignoring `before`. The window holds `size` messages, newest first:\nthe cursor message with up to size - size/2 - 1 older ones, and up to\nsize/2 newer ones. When one side runs short the window is not refilled\nfrom the other. next_cursor / prev_cursor continue the history from the\nwindow's oldest / newest message.\n\nSupported by SearchThreadMessagesHistory only.",
|
|
1337
|
+
),
|
|
1326
1338
|
size: zod
|
|
1327
1339
|
.int()
|
|
1328
1340
|
.optional()
|
|
@@ -2429,6 +2441,12 @@ export const MessageHistorySearchThreadMessagesHistoryQueryParams = zod.object({
|
|
|
2429
2441
|
.describe(
|
|
2430
2442
|
'Pagination direction flag.\n\nfalse -> fetch messages older than the cursor (scrolling up the chat)\ntrue -> fetch messages newer than the cursor (moving toward the present)',
|
|
2431
2443
|
),
|
|
2444
|
+
'cursor.around': zod
|
|
2445
|
+
.boolean()
|
|
2446
|
+
.optional()
|
|
2447
|
+
.describe(
|
|
2448
|
+
"Fetch a window centred on the cursor message in a single request,\nignoring `before`. The window holds `size` messages, newest first:\nthe cursor message with up to size - size/2 - 1 older ones, and up to\nsize/2 newer ones. When one side runs short the window is not refilled\nfrom the other. next_cursor / prev_cursor continue the history from the\nwindow's oldest / newest message.\n\nSupported by SearchThreadMessagesHistory only.",
|
|
2449
|
+
),
|
|
2432
2450
|
size: zod.int().optional().describe('Maximum number of messages to return.'),
|
|
2433
2451
|
});
|
|
2434
2452
|
|
|
@@ -10,6 +10,7 @@ import axios from '../../api/axios/genClient';
|
|
|
10
10
|
|
|
11
11
|
import type {
|
|
12
12
|
ThreadManagementGetParams,
|
|
13
|
+
ThreadManagementRemoveMemberParams,
|
|
13
14
|
ThreadManagementSearchLeftParams,
|
|
14
15
|
ThreadManagementSearchParams,
|
|
15
16
|
ThreadManagementSearchVariablesParams,
|
|
@@ -161,11 +162,18 @@ chats with unread messages and the total number of unread messages.
|
|
|
161
162
|
const threadManagementRemoveMember = (
|
|
162
163
|
threadId: string,
|
|
163
164
|
memberId: string,
|
|
165
|
+
params?: ThreadManagementRemoveMemberParams,
|
|
164
166
|
options?: AxiosRequestConfig,
|
|
165
167
|
): Promise<AxiosResponse<WebitelImApiGatewayV1RemoveMemberResponse>> => {
|
|
166
168
|
return axiosInstance.delete(
|
|
167
169
|
`/v1/threads/${threadId}/members/${memberId}`,
|
|
168
|
-
|
|
170
|
+
{
|
|
171
|
+
...options,
|
|
172
|
+
params: {
|
|
173
|
+
...params,
|
|
174
|
+
...options?.params,
|
|
175
|
+
},
|
|
176
|
+
},
|
|
169
177
|
);
|
|
170
178
|
};
|
|
171
179
|
/**
|
|
@@ -6055,6 +6055,10 @@ export const ThreadManagementRemoveMemberParams = zod.object({
|
|
|
6055
6055
|
member_id: zod.string(),
|
|
6056
6056
|
});
|
|
6057
6057
|
|
|
6058
|
+
export const ThreadManagementRemoveMemberQueryParams = zod.object({
|
|
6059
|
+
reason: zod.string().optional(),
|
|
6060
|
+
});
|
|
6061
|
+
|
|
6058
6062
|
export const ThreadManagementRemoveMemberResponse = zod.looseObject({});
|
|
6059
6063
|
|
|
6060
6064
|
/**
|
package/src/locale/en/en.ts
CHANGED
package/src/locale/es/es.ts
CHANGED
package/src/locale/kz/kz.ts
CHANGED
package/src/locale/pl/pl.ts
CHANGED
package/src/locale/ro/ro.ts
CHANGED