@webitel/api-services 26.8.65 → 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/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/types/.tsbuildinfo +1 -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/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/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/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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
|
+
up_to_seq?: string;
|
|
13
|
+
}
|
|
@@ -18,6 +18,6 @@ export interface WebitelImApiGatewayV1SearchMessageHistoryResponse {
|
|
|
18
18
|
next_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
|
|
19
19
|
/** Cursor that represents position to get newest messages (used with 'before' param). */
|
|
20
20
|
prev_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
|
|
21
|
-
/** GetUpdates cursor
|
|
21
|
+
/** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
|
|
22
22
|
updates_cursor?: 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
|
updates_cursor?: string;
|
|
20
20
|
}
|
|
@@ -44,7 +44,7 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
44
44
|
unread_count?: number;
|
|
45
45
|
/** Last update timestamp (Unix time, milliseconds). */
|
|
46
46
|
updated_at?: 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
|
updates_cursor?: 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
|
deleted_message_ids?: 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
|
member_changes?: WebitelImApiGatewayV1ThreadMemberChange[];
|
|
@@ -21,7 +27,7 @@ export interface WebitelImApiGatewayV1ThreadUpdates {
|
|
|
21
27
|
/** Delivery/read horizons in message seq. */
|
|
22
28
|
read_states?: WebitelImApiGatewayV1MemberReadState[];
|
|
23
29
|
thread_id?: 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
|
top_message?: WebitelImApiGatewayV1UpdatedMessage;
|
|
26
32
|
unread_count?: string;
|
|
27
33
|
}
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -1524,6 +1524,9 @@ export {
|
|
|
1524
1524
|
SearchMemberAttemptsParams,
|
|
1525
1525
|
SearchMemberAttemptsQueryParams,
|
|
1526
1526
|
SearchMemberAttemptsResponse,
|
|
1527
|
+
SearchMemberCommunicationParams,
|
|
1528
|
+
SearchMemberCommunicationQueryParams,
|
|
1529
|
+
SearchMemberCommunicationResponse,
|
|
1527
1530
|
SearchMemberInQueueParams,
|
|
1528
1531
|
SearchMemberInQueueQueryParams,
|
|
1529
1532
|
SearchMemberInQueueResponse,
|
|
@@ -2629,8 +2632,11 @@ export {
|
|
|
2629
2632
|
MessageEditMessageResponse,
|
|
2630
2633
|
MessageForwardMessagesBody,
|
|
2631
2634
|
MessageForwardMessagesResponse,
|
|
2635
|
+
MessageRead2Params,
|
|
2636
|
+
MessageRead2QueryParams,
|
|
2637
|
+
MessageRead2Response,
|
|
2638
|
+
MessageReadBody,
|
|
2632
2639
|
MessageReadParams,
|
|
2633
|
-
MessageReadQueryParams,
|
|
2634
2640
|
MessageReadResponse,
|
|
2635
2641
|
MessageSendContactBody,
|
|
2636
2642
|
MessageSendContactResponse,
|
|
@@ -2712,6 +2718,9 @@ export {
|
|
|
2712
2718
|
ThreadManagementGetQueryParams,
|
|
2713
2719
|
ThreadManagementGetResponse,
|
|
2714
2720
|
ThreadManagementGetUnreadSummaryResponse,
|
|
2721
|
+
ThreadManagementHandBackToBotBody,
|
|
2722
|
+
ThreadManagementHandBackToBotParams,
|
|
2723
|
+
ThreadManagementHandBackToBotResponse,
|
|
2715
2724
|
ThreadManagementLocateVariablesParams,
|
|
2716
2725
|
ThreadManagementLocateVariablesResponse,
|
|
2717
2726
|
ThreadManagementRemoveMemberParams,
|
|
@@ -2725,6 +2734,9 @@ export {
|
|
|
2725
2734
|
ThreadManagementSetVariablesBody,
|
|
2726
2735
|
ThreadManagementSetVariablesParams,
|
|
2727
2736
|
ThreadManagementSetVariablesResponse,
|
|
2737
|
+
ThreadManagementTakeOverFromBotBody,
|
|
2738
|
+
ThreadManagementTakeOverFromBotParams,
|
|
2739
|
+
ThreadManagementTakeOverFromBotResponse,
|
|
2728
2740
|
ThreadManagementTransferBody,
|
|
2729
2741
|
ThreadManagementTransferParams,
|
|
2730
2742
|
ThreadManagementTransferResponse,
|