@webitel/api-services 26.8.64 → 26.8.66
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/agents/agents.ts +28 -56
- package/src/enums/AgentStatus/AgentStatus.ts +8 -0
- package/src/enums/ChannelState/ChannelState.ts +16 -0
- package/src/enums/ChannelType/ChannelType.ts +10 -0
- package/src/enums/index.ts +6 -0
- package/src/gen/_models/engineListOfMemberCommunication.ts +12 -0
- package/src/gen/_models/googleProtobufNullValue.ts +8 -3
- package/src/gen/_models/index.ts +10 -1
- package/src/gen/_models/messageRead2Params.ts +14 -0
- package/src/gen/_models/searchMemberCommunicationParams.ts +13 -0
- package/src/gen/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
- package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
- package/src/gen/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
- package/src/gen/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
- package/src/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
- package/src/gen/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
- package/{types/gen/_models/messageReadParams.d.ts → src/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +1 -1
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
- package/src/gen-wire/_models/engineListOfMemberCommunication.ts +12 -0
- package/src/gen-wire/_models/googleProtobufNullValue.ts +8 -3
- package/src/gen-wire/_models/index.ts +10 -1
- package/src/gen-wire/_models/messageRead2Params.ts +14 -0
- package/src/gen-wire/_models/searchMemberCommunicationParams.ts +13 -0
- package/src/gen-wire/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
- package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
- package/{types/gen-wire/_models/messageReadParams.d.ts → src/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +1 -1
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
- package/src/gen-wire/index.ts +13 -1
- package/src/gen-wire/member-service/member-service.ts +25 -0
- package/src/gen-wire/member-service/member-service.zod.ts +48 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.ts +28 -7
- package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +39 -6
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +3 -3
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +40 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +27 -5
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +135 -3
- package/src/scripts/convertDuration/convertDuration.ts +0 -6
- package/src/validations/agent/__tests__/agent.validations.spec.ts +96 -0
- package/src/validations/agent/agent.validations.ts +25 -0
- package/src/validations/agentSubordinate/__tests__/agentSubordinate.validations.spec.ts +24 -0
- package/src/validations/agentSubordinate/agentSubordinate.validations.ts +7 -0
- package/src/validations/index.ts +2 -0
- package/types/.tsbuildinfo +1 -1
- package/types/enums/AgentStatus/AgentStatus.d.ts +7 -0
- package/types/enums/ChannelState/ChannelState.d.ts +15 -0
- package/types/enums/ChannelType/ChannelType.d.ts +9 -0
- package/types/enums/index.d.ts +4 -1
- package/types/gen/_models/engineListOfMemberCommunication.d.ts +11 -0
- package/types/gen/_models/googleProtobufNullValue.d.ts +8 -3
- package/types/gen/_models/index.d.ts +10 -1
- package/types/gen/_models/messageRead2Params.d.ts +13 -0
- package/types/gen/_models/searchMemberCommunicationParams.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
- package/types/gen/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
- package/types/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
- package/types/gen/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
- package/types/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
- package/types/gen-wire/_models/engineListOfMemberCommunication.d.ts +11 -0
- package/types/gen-wire/_models/googleProtobufNullValue.d.ts +8 -3
- package/types/gen-wire/_models/index.d.ts +10 -1
- package/types/gen-wire/_models/messageRead2Params.d.ts +13 -0
- package/types/gen-wire/_models/searchMemberCommunicationParams.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
- package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
- package/types/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
- package/types/gen-wire/call-service/call-service.zod.d.ts +3 -3
- package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +3 -3
- 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 +37 -0
- package/types/gen-wire/routing-schema-service/routing-schema-service.zod.d.ts +11 -11
- package/types/gen-wire/timeline/timeline.zod.d.ts +3 -3
- package/types/gen-wire/trigger-service/trigger-service.zod.d.ts +12 -12
- package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.d.ts +5 -3
- package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +20 -5
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +5 -1
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +51 -0
- package/types/validations/agent/agent.validations.d.ts +28 -0
- package/types/validations/agentSubordinate/agentSubordinate.validations.d.ts +7 -0
- package/types/validations/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { getShallowFieldsToSendFromZodSchema } from '@webitel/api-services/gen/utils';
|
|
1
2
|
import { FormatDateMode } from '../../../enums';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import {
|
|
4
|
+
CreateAgentBody,
|
|
5
|
+
getAgentService,
|
|
6
|
+
PatchAgentBody,
|
|
7
|
+
SearchAgentQueryParams,
|
|
8
|
+
SearchUserStatusQueryParams,
|
|
9
|
+
UpdateAgentBody,
|
|
10
|
+
} from '../../../gen-wire';
|
|
7
11
|
import { convertDuration, normalizeDatetimeRange } from '../../../scripts';
|
|
8
12
|
import { formatDate } from '../../../utils';
|
|
9
13
|
import { getDefaultGetListResponse, getDefaultGetParams } from '../../defaults';
|
|
@@ -13,7 +17,7 @@ import {
|
|
|
13
17
|
merge,
|
|
14
18
|
mergeEach,
|
|
15
19
|
notify,
|
|
16
|
-
|
|
20
|
+
sanitizeToWire,
|
|
17
21
|
snakeToCamel,
|
|
18
22
|
starToSearch,
|
|
19
23
|
} from '../../transformers';
|
|
@@ -42,27 +46,9 @@ const getAgentsList = async (params: ApiParams) => {
|
|
|
42
46
|
statusDuration: convertStatusDuration(item.statusDuration),
|
|
43
47
|
}));
|
|
44
48
|
};
|
|
45
|
-
const fieldsToSend =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
'q',
|
|
49
|
-
'sort',
|
|
50
|
-
'fields',
|
|
51
|
-
'id',
|
|
52
|
-
'allow_channels',
|
|
53
|
-
'team_id',
|
|
54
|
-
'region_id',
|
|
55
|
-
'auditor_id',
|
|
56
|
-
'skill_id',
|
|
57
|
-
'queue_id',
|
|
58
|
-
'is_supervisor',
|
|
59
|
-
'not_supervisor',
|
|
60
|
-
'user_id',
|
|
61
|
-
'not_team_id',
|
|
62
|
-
'supervisor_id',
|
|
63
|
-
'not_skill_id',
|
|
64
|
-
'not_user_id',
|
|
65
|
-
];
|
|
49
|
+
const fieldsToSend = getShallowFieldsToSendFromZodSchema(
|
|
50
|
+
SearchAgentQueryParams,
|
|
51
|
+
);
|
|
66
52
|
const requestParams = applyTransform(params, [
|
|
67
53
|
camelToSnake(),
|
|
68
54
|
merge(getDefaultGetParams()),
|
|
@@ -78,7 +64,7 @@ const getAgentsList = async (params: ApiParams) => {
|
|
|
78
64
|
skill_id: params.skill_id ?? params.skill,
|
|
79
65
|
not_supervisor: params.not_supervisor ?? params.is_not_supervisor,
|
|
80
66
|
}),
|
|
81
|
-
|
|
67
|
+
sanitizeToWire(fieldsToSend),
|
|
82
68
|
]);
|
|
83
69
|
|
|
84
70
|
try {
|
|
@@ -138,24 +124,9 @@ const getAgent = async ({
|
|
|
138
124
|
}
|
|
139
125
|
};
|
|
140
126
|
|
|
141
|
-
const fieldsToSend = [
|
|
142
|
-
'user',
|
|
143
|
-
'team',
|
|
144
|
-
'supervisor',
|
|
145
|
-
'auditor',
|
|
146
|
-
'region',
|
|
147
|
-
'greetingMedia',
|
|
148
|
-
'progressiveCount',
|
|
149
|
-
'chatCount',
|
|
150
|
-
'taskCount',
|
|
151
|
-
'isSupervisor',
|
|
152
|
-
'screenControl',
|
|
153
|
-
'extraChatCount',
|
|
154
|
-
];
|
|
155
|
-
|
|
156
127
|
const addAgent = async ({ itemInstance }: AddItemParams) => {
|
|
157
128
|
const item = applyTransform(itemInstance, [
|
|
158
|
-
|
|
129
|
+
sanitizeToWire(getShallowFieldsToSendFromZodSchema(CreateAgentBody)),
|
|
159
130
|
camelToSnake(),
|
|
160
131
|
]);
|
|
161
132
|
try {
|
|
@@ -172,7 +143,7 @@ const addAgent = async ({ itemInstance }: AddItemParams) => {
|
|
|
172
143
|
|
|
173
144
|
const patchAgent = async ({ changes, id }: PatchItemParams) => {
|
|
174
145
|
const body = applyTransform(changes, [
|
|
175
|
-
|
|
146
|
+
sanitizeToWire(getShallowFieldsToSendFromZodSchema(PatchAgentBody)),
|
|
176
147
|
camelToSnake(),
|
|
177
148
|
]);
|
|
178
149
|
try {
|
|
@@ -189,7 +160,7 @@ const patchAgent = async ({ changes, id }: PatchItemParams) => {
|
|
|
189
160
|
|
|
190
161
|
const updateAgent = async ({ itemInstance, itemId: id }: UpdateItemParams) => {
|
|
191
162
|
const item = applyTransform(itemInstance, [
|
|
192
|
-
|
|
163
|
+
sanitizeToWire(getShallowFieldsToSendFromZodSchema(UpdateAgentBody)),
|
|
193
164
|
camelToSnake(),
|
|
194
165
|
]);
|
|
195
166
|
try {
|
|
@@ -380,7 +351,13 @@ const getAgentQueues = async (params: ApiParams) => {
|
|
|
380
351
|
merge(getDefaultGetListResponse()),
|
|
381
352
|
]);
|
|
382
353
|
return {
|
|
383
|
-
items,
|
|
354
|
+
items: applyTransform(items, [
|
|
355
|
+
mergeEach({
|
|
356
|
+
countMembers: 0,
|
|
357
|
+
waitingMembers: 0,
|
|
358
|
+
type: 0,
|
|
359
|
+
}),
|
|
360
|
+
]),
|
|
384
361
|
next,
|
|
385
362
|
};
|
|
386
363
|
} catch (err) {
|
|
@@ -519,14 +496,9 @@ const getAgentUsersOptions = async (params: ApiParams) => {
|
|
|
519
496
|
};
|
|
520
497
|
|
|
521
498
|
const getUsersStatus = async (params: ApiParams) => {
|
|
522
|
-
const fieldsToSend =
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
'q',
|
|
526
|
-
'sort',
|
|
527
|
-
'fields',
|
|
528
|
-
'not_user_id',
|
|
529
|
-
];
|
|
499
|
+
const fieldsToSend = getShallowFieldsToSendFromZodSchema(
|
|
500
|
+
SearchUserStatusQueryParams,
|
|
501
|
+
);
|
|
530
502
|
const requestParams = applyTransform(params, [
|
|
531
503
|
camelToSnake(),
|
|
532
504
|
merge(getDefaultGetParams()),
|
|
@@ -535,7 +507,7 @@ const getUsersStatus = async (params: ApiParams) => {
|
|
|
535
507
|
...params,
|
|
536
508
|
q: params.search,
|
|
537
509
|
}),
|
|
538
|
-
|
|
510
|
+
sanitizeToWire(fieldsToSend),
|
|
539
511
|
]);
|
|
540
512
|
|
|
541
513
|
try {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const ChannelState = {
|
|
2
|
+
Waiting: 'waiting',
|
|
3
|
+
Distribute: 'distribute',
|
|
4
|
+
Offering: 'offering',
|
|
5
|
+
Answered: 'answered',
|
|
6
|
+
Active: 'active',
|
|
7
|
+
Bridged: 'bridged',
|
|
8
|
+
Hold: 'hold',
|
|
9
|
+
Missed: 'missed',
|
|
10
|
+
WrapTime: 'wrap_time',
|
|
11
|
+
Processing: 'processing',
|
|
12
|
+
Transfer: 'transfer',
|
|
13
|
+
Form: 'form',
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
export type ChannelState = (typeof ChannelState)[keyof typeof ChannelState];
|
package/src/enums/index.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { AgentStatus } from './AgentStatus/AgentStatus';
|
|
1
2
|
import { CallReportingStatus } from './CallReportingStatus/CallReportingStatus';
|
|
3
|
+
import { ChannelState } from './ChannelState/ChannelState';
|
|
4
|
+
import { ChannelType } from './ChannelType/ChannelType';
|
|
2
5
|
import { ChatGatewayProvider } from './ChatGatewayProvider/ChatGatewayPrivider';
|
|
3
6
|
import { FormatDateMode } from './FormatDateMode/FormatDateMode';
|
|
4
7
|
import { MemberStopCause } from './MemberStopCause/MemberStopCause';
|
|
@@ -15,7 +18,10 @@ import { UrlProtocol } from './UrlProtocol/UrlProtocol';
|
|
|
15
18
|
import { UserPresenceStatus } from './UserPresenceStatus/UserPresenceStatus';
|
|
16
19
|
|
|
17
20
|
export {
|
|
21
|
+
AgentStatus,
|
|
18
22
|
CallReportingStatus,
|
|
23
|
+
ChannelState,
|
|
24
|
+
ChannelType,
|
|
19
25
|
ChatGatewayProvider,
|
|
20
26
|
FormatDateMode,
|
|
21
27
|
MemberStopCause,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { EngineMemberCommunication } from './engineMemberCommunication';
|
|
8
|
+
|
|
9
|
+
export interface EngineListOfMemberCommunication {
|
|
10
|
+
items?: EngineMemberCommunication[];
|
|
11
|
+
next?: boolean;
|
|
12
|
+
}
|
|
@@ -6,10 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* `Value` type union.
|
|
9
|
+
* Represents a JSON `null`.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
11
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
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.
|
|
13
18
|
*
|
|
14
19
|
* - NULL_VALUE: Null value.
|
|
15
20
|
*/
|
package/src/gen/_models/index.ts
CHANGED
|
@@ -563,6 +563,7 @@ export * from './engineListMember';
|
|
|
563
563
|
export * from './engineListMemberAttempt';
|
|
564
564
|
export * from './engineListOfList';
|
|
565
565
|
export * from './engineListOfListCommunication';
|
|
566
|
+
export * from './engineListOfMemberCommunication';
|
|
566
567
|
export * from './engineListOpenedWebSocket';
|
|
567
568
|
export * from './engineListOutboundResource';
|
|
568
569
|
export * from './engineListOutboundResourceDisplay';
|
|
@@ -975,7 +976,7 @@ export * from './mergeVariablesParams';
|
|
|
975
976
|
export * from './messageHistorySearchLeftThreadsMessagesHistoryParams';
|
|
976
977
|
export * from './messageHistorySearchMessagesParams';
|
|
977
978
|
export * from './messageHistorySearchThreadMessagesHistoryParams';
|
|
978
|
-
export * from './
|
|
979
|
+
export * from './messageRead2Params';
|
|
979
980
|
export * from './oAuth2FederationDeleteOAuthServiceBody';
|
|
980
981
|
export * from './openedWebSocketsParams';
|
|
981
982
|
export * from './pauseTemplateServiceReadPauseTemplateParams';
|
|
@@ -1093,6 +1094,7 @@ export * from './searchLookupAgentNotExistsSkillParams';
|
|
|
1093
1094
|
export * from './searchLookupUsersAgentNotExistsParams';
|
|
1094
1095
|
export * from './searchMediaFileParams';
|
|
1095
1096
|
export * from './searchMemberAttemptsParams';
|
|
1097
|
+
export * from './searchMemberCommunicationParams';
|
|
1096
1098
|
export * from './searchMemberInQueueParams';
|
|
1097
1099
|
export * from './searchMembersParams';
|
|
1098
1100
|
export * from './searchOAuthServiceParams';
|
|
@@ -1641,6 +1643,7 @@ export * from './webitelImApiGatewayV1GetThreadPermissionsResponse';
|
|
|
1641
1643
|
export * from './webitelImApiGatewayV1GetUnreadSummaryResponse';
|
|
1642
1644
|
export * from './webitelImApiGatewayV1GetUpdatesRequest';
|
|
1643
1645
|
export * from './webitelImApiGatewayV1GetUpdatesResponse';
|
|
1646
|
+
export * from './webitelImApiGatewayV1HandBackToBotResponse';
|
|
1644
1647
|
export * from './webitelImApiGatewayV1HistoryMessage';
|
|
1645
1648
|
export * from './webitelImApiGatewayV1HistoryMessageCursorRequest';
|
|
1646
1649
|
export * from './webitelImApiGatewayV1HistoryMessageCursorResponse';
|
|
@@ -1668,8 +1671,11 @@ export * from './webitelImApiGatewayV1MemberReadState';
|
|
|
1668
1671
|
export * from './webitelImApiGatewayV1MenuPlacement';
|
|
1669
1672
|
export * from './webitelImApiGatewayV1MessageContact';
|
|
1670
1673
|
export * from './webitelImApiGatewayV1MessageEditMessageBody';
|
|
1674
|
+
export * from './webitelImApiGatewayV1MessageFailure';
|
|
1675
|
+
export * from './webitelImApiGatewayV1MessageFailureError';
|
|
1671
1676
|
export * from './webitelImApiGatewayV1MessageLocation';
|
|
1672
1677
|
export * from './webitelImApiGatewayV1MessageReaction';
|
|
1678
|
+
export * from './webitelImApiGatewayV1MessageReadBody';
|
|
1673
1679
|
export * from './webitelImApiGatewayV1MessageRevision';
|
|
1674
1680
|
export * from './webitelImApiGatewayV1MessageRevisionAction';
|
|
1675
1681
|
export * from './webitelImApiGatewayV1MessageSendInteractiveCallbackBody';
|
|
@@ -1709,13 +1715,16 @@ export * from './webitelImApiGatewayV1SkippedMessage';
|
|
|
1709
1715
|
export * from './webitelImApiGatewayV1SkippedMessageReason';
|
|
1710
1716
|
export * from './webitelImApiGatewayV1System';
|
|
1711
1717
|
export * from './webitelImApiGatewayV1SystemMetadata';
|
|
1718
|
+
export * from './webitelImApiGatewayV1TakeOverFromBotResponse';
|
|
1712
1719
|
export * from './webitelImApiGatewayV1Thread';
|
|
1713
1720
|
export * from './webitelImApiGatewayV1ThreadKind';
|
|
1714
1721
|
export * from './webitelImApiGatewayV1ThreadManagementAddMemberBody';
|
|
1715
1722
|
export * from './webitelImApiGatewayV1ThreadManagementCreateRequest';
|
|
1716
1723
|
export * from './webitelImApiGatewayV1ThreadManagementCreateResponse';
|
|
1717
1724
|
export * from './webitelImApiGatewayV1ThreadManagementFlushVariablesBody';
|
|
1725
|
+
export * from './webitelImApiGatewayV1ThreadManagementHandBackToBotBody';
|
|
1718
1726
|
export * from './webitelImApiGatewayV1ThreadManagementSetVariablesBody';
|
|
1727
|
+
export * from './webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody';
|
|
1719
1728
|
export * from './webitelImApiGatewayV1ThreadManagementTransferBody';
|
|
1720
1729
|
export * from './webitelImApiGatewayV1ThreadMember';
|
|
1721
1730
|
export * from './webitelImApiGatewayV1ThreadMemberChange';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 MessageRead2Params = {
|
|
9
|
+
threadId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Read up to this per-thread message seq (inclusive).
|
|
12
|
+
*/
|
|
13
|
+
upToSeq?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1MessageFailureError } from './webitelImApiGatewayV1MessageFailureError';
|
|
8
|
+
import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* MessageFailure is a message that could not be delivered to a member.
|
|
12
|
+
*/
|
|
13
|
+
export interface WebitelImApiGatewayV1MessageFailure {
|
|
14
|
+
error?: WebitelImApiGatewayV1MessageFailureError;
|
|
15
|
+
member?: WebitelImApiGatewayV1ThreadMember;
|
|
16
|
+
messageId?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface WebitelImApiGatewayV1MessageReadBody {
|
|
9
|
+
/** Message to read up to; resolved to its seq. Ignored when up_to_seq is set. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Read up to this per-thread message seq (inclusive). */
|
|
12
|
+
upToSeq?: string;
|
|
13
|
+
}
|
|
@@ -18,6 +18,6 @@ export interface WebitelImApiGatewayV1SearchMessageHistoryResponse {
|
|
|
18
18
|
nextCursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
|
|
19
19
|
/** Cursor that represents position to get newest messages (used with 'before' param). */
|
|
20
20
|
prevCursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
|
|
21
|
-
/** GetUpdates cursor
|
|
21
|
+
/** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
|
|
22
22
|
updatesCursor?: string;
|
|
23
23
|
}
|
|
@@ -15,6 +15,6 @@ export interface WebitelImApiGatewayV1SearchThreadResponse {
|
|
|
15
15
|
items?: WebitelImApiGatewayV1Thread[];
|
|
16
16
|
/** Indicates whether there is a next page available. */
|
|
17
17
|
next?: boolean;
|
|
18
|
-
/** GetUpdates cursor
|
|
18
|
+
/** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
|
|
19
19
|
updatesCursor?: string;
|
|
20
20
|
}
|
|
@@ -44,7 +44,7 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
44
44
|
unreadCount?: number;
|
|
45
45
|
/** Last update timestamp (Unix time, milliseconds). */
|
|
46
46
|
updatedAt?: string;
|
|
47
|
-
/** GetUpdates cursor
|
|
47
|
+
/** The caller's GetUpdates cursor as of this read (set by Get; Search carries it on the response). */
|
|
48
48
|
updatesCursor?: string;
|
|
49
49
|
/** Optional variables associated with the thread. */
|
|
50
50
|
variables?: WebitelImApiGatewayV1ThreadVariables;
|
|
@@ -5,14 +5,20 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
|
|
8
|
+
import type { WebitelImApiGatewayV1MessageFailure } from './webitelImApiGatewayV1MessageFailure';
|
|
8
9
|
import type { WebitelImApiGatewayV1Thread } from './webitelImApiGatewayV1Thread';
|
|
9
10
|
import type { WebitelImApiGatewayV1ThreadMemberChange } from './webitelImApiGatewayV1ThreadMemberChange';
|
|
10
11
|
import type { WebitelImApiGatewayV1UpdatedMessage } from './webitelImApiGatewayV1UpdatedMessage';
|
|
11
12
|
|
|
12
13
|
export interface WebitelImApiGatewayV1ThreadUpdates {
|
|
13
14
|
deletedMessageIds?: string[];
|
|
14
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The thread itself, set when it is new to the caller (created or joined since cursor).
|
|
17
|
+
* Same model as the thread list, except last_msg and updates_cursor are never set here.
|
|
18
|
+
*/
|
|
15
19
|
dialog?: WebitelImApiGatewayV1Thread;
|
|
20
|
+
/** Messages that failed to reach a member since the cursor. */
|
|
21
|
+
failures?: WebitelImApiGatewayV1MessageFailure[];
|
|
16
22
|
/** The caller is no longer a member: drop the thread. */
|
|
17
23
|
left?: boolean;
|
|
18
24
|
memberChanges?: WebitelImApiGatewayV1ThreadMemberChange[];
|
|
@@ -21,7 +27,7 @@ export interface WebitelImApiGatewayV1ThreadUpdates {
|
|
|
21
27
|
/** Delivery/read horizons in message seq. */
|
|
22
28
|
readStates?: WebitelImApiGatewayV1MemberReadState[];
|
|
23
29
|
threadId?: string;
|
|
24
|
-
/** Newest message for the list preview; set with dialog. */
|
|
30
|
+
/** Newest message for the list preview, in place of dialog.last_msg; set with dialog. */
|
|
25
31
|
topMessage?: WebitelImApiGatewayV1UpdatedMessage;
|
|
26
32
|
unreadCount?: string;
|
|
27
33
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { EngineMemberCommunication } from './engineMemberCommunication';
|
|
8
|
+
|
|
9
|
+
export interface EngineListOfMemberCommunication {
|
|
10
|
+
items?: EngineMemberCommunication[];
|
|
11
|
+
next?: boolean;
|
|
12
|
+
}
|
|
@@ -6,10 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* `Value` type union.
|
|
9
|
+
* Represents a JSON `null`.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
11
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
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.
|
|
13
18
|
*
|
|
14
19
|
* - NULL_VALUE: Null value.
|
|
15
20
|
*/
|
|
@@ -555,6 +555,7 @@ export * from './engineListMember';
|
|
|
555
555
|
export * from './engineListMemberAttempt';
|
|
556
556
|
export * from './engineListOfList';
|
|
557
557
|
export * from './engineListOfListCommunication';
|
|
558
|
+
export * from './engineListOfMemberCommunication';
|
|
558
559
|
export * from './engineListOpenedWebSocket';
|
|
559
560
|
export * from './engineListOutboundResource';
|
|
560
561
|
export * from './engineListOutboundResourceDisplay';
|
|
@@ -967,7 +968,7 @@ export * from './mergeVariablesParams';
|
|
|
967
968
|
export * from './messageHistorySearchLeftThreadsMessagesHistoryParams';
|
|
968
969
|
export * from './messageHistorySearchMessagesParams';
|
|
969
970
|
export * from './messageHistorySearchThreadMessagesHistoryParams';
|
|
970
|
-
export * from './
|
|
971
|
+
export * from './messageRead2Params';
|
|
971
972
|
export * from './oAuth2FederationDeleteOAuthServiceBody';
|
|
972
973
|
export * from './openedWebSocketsParams';
|
|
973
974
|
export * from './pauseTemplateServiceReadPauseTemplateParams';
|
|
@@ -1083,6 +1084,7 @@ export * from './searchLookupAgentNotExistsSkillParams';
|
|
|
1083
1084
|
export * from './searchLookupUsersAgentNotExistsParams';
|
|
1084
1085
|
export * from './searchMediaFileParams';
|
|
1085
1086
|
export * from './searchMemberAttemptsParams';
|
|
1087
|
+
export * from './searchMemberCommunicationParams';
|
|
1086
1088
|
export * from './searchMemberInQueueParams';
|
|
1087
1089
|
export * from './searchMembersParams';
|
|
1088
1090
|
export * from './searchOAuthServiceParams';
|
|
@@ -1629,6 +1631,7 @@ export * from './webitelImApiGatewayV1GetThreadPermissionsResponse';
|
|
|
1629
1631
|
export * from './webitelImApiGatewayV1GetUnreadSummaryResponse';
|
|
1630
1632
|
export * from './webitelImApiGatewayV1GetUpdatesRequest';
|
|
1631
1633
|
export * from './webitelImApiGatewayV1GetUpdatesResponse';
|
|
1634
|
+
export * from './webitelImApiGatewayV1HandBackToBotResponse';
|
|
1632
1635
|
export * from './webitelImApiGatewayV1HistoryMessage';
|
|
1633
1636
|
export * from './webitelImApiGatewayV1HistoryMessageCursorRequest';
|
|
1634
1637
|
export * from './webitelImApiGatewayV1HistoryMessageCursorResponse';
|
|
@@ -1656,8 +1659,11 @@ export * from './webitelImApiGatewayV1MemberReadState';
|
|
|
1656
1659
|
export * from './webitelImApiGatewayV1MenuPlacement';
|
|
1657
1660
|
export * from './webitelImApiGatewayV1MessageContact';
|
|
1658
1661
|
export * from './webitelImApiGatewayV1MessageEditMessageBody';
|
|
1662
|
+
export * from './webitelImApiGatewayV1MessageFailure';
|
|
1663
|
+
export * from './webitelImApiGatewayV1MessageFailureError';
|
|
1659
1664
|
export * from './webitelImApiGatewayV1MessageLocation';
|
|
1660
1665
|
export * from './webitelImApiGatewayV1MessageReaction';
|
|
1666
|
+
export * from './webitelImApiGatewayV1MessageReadBody';
|
|
1661
1667
|
export * from './webitelImApiGatewayV1MessageRevision';
|
|
1662
1668
|
export * from './webitelImApiGatewayV1MessageRevisionAction';
|
|
1663
1669
|
export * from './webitelImApiGatewayV1MessageSendInteractiveCallbackBody';
|
|
@@ -1697,13 +1703,16 @@ export * from './webitelImApiGatewayV1SkippedMessage';
|
|
|
1697
1703
|
export * from './webitelImApiGatewayV1SkippedMessageReason';
|
|
1698
1704
|
export * from './webitelImApiGatewayV1System';
|
|
1699
1705
|
export * from './webitelImApiGatewayV1SystemMetadata';
|
|
1706
|
+
export * from './webitelImApiGatewayV1TakeOverFromBotResponse';
|
|
1700
1707
|
export * from './webitelImApiGatewayV1Thread';
|
|
1701
1708
|
export * from './webitelImApiGatewayV1ThreadKind';
|
|
1702
1709
|
export * from './webitelImApiGatewayV1ThreadManagementAddMemberBody';
|
|
1703
1710
|
export * from './webitelImApiGatewayV1ThreadManagementCreateRequest';
|
|
1704
1711
|
export * from './webitelImApiGatewayV1ThreadManagementCreateResponse';
|
|
1705
1712
|
export * from './webitelImApiGatewayV1ThreadManagementFlushVariablesBody';
|
|
1713
|
+
export * from './webitelImApiGatewayV1ThreadManagementHandBackToBotBody';
|
|
1706
1714
|
export * from './webitelImApiGatewayV1ThreadManagementSetVariablesBody';
|
|
1715
|
+
export * from './webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody';
|
|
1707
1716
|
export * from './webitelImApiGatewayV1ThreadManagementTransferBody';
|
|
1708
1717
|
export * from './webitelImApiGatewayV1ThreadMember';
|
|
1709
1718
|
export * from './webitelImApiGatewayV1ThreadMemberChange';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 MessageRead2Params = {
|
|
9
|
+
thread_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Read up to this per-thread message seq (inclusive).
|
|
12
|
+
*/
|
|
13
|
+
up_to_seq?: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1MessageFailureError } from './webitelImApiGatewayV1MessageFailureError';
|
|
8
|
+
import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* MessageFailure is a message that could not be delivered to a member.
|
|
12
|
+
*/
|
|
13
|
+
export interface WebitelImApiGatewayV1MessageFailure {
|
|
14
|
+
error?: WebitelImApiGatewayV1MessageFailureError;
|
|
15
|
+
member?: WebitelImApiGatewayV1ThreadMember;
|
|
16
|
+
message_id?: string;
|
|
17
|
+
}
|