@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.
Files changed (106) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/agents/agents.ts +28 -56
  3. package/src/enums/AgentStatus/AgentStatus.ts +8 -0
  4. package/src/enums/ChannelState/ChannelState.ts +16 -0
  5. package/src/enums/ChannelType/ChannelType.ts +10 -0
  6. package/src/enums/index.ts +6 -0
  7. package/src/gen/_models/engineListOfMemberCommunication.ts +12 -0
  8. package/src/gen/_models/googleProtobufNullValue.ts +8 -3
  9. package/src/gen/_models/index.ts +10 -1
  10. package/src/gen/_models/messageRead2Params.ts +14 -0
  11. package/src/gen/_models/searchMemberCommunicationParams.ts +13 -0
  12. package/src/gen/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
  13. package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
  14. package/src/gen/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
  15. package/src/gen/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
  16. package/src/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
  17. package/src/gen/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
  18. package/{types/gen/_models/messageReadParams.d.ts → src/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
  19. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +1 -1
  20. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
  21. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
  22. package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
  23. package/src/gen-wire/_models/engineListOfMemberCommunication.ts +12 -0
  24. package/src/gen-wire/_models/googleProtobufNullValue.ts +8 -3
  25. package/src/gen-wire/_models/index.ts +10 -1
  26. package/src/gen-wire/_models/messageRead2Params.ts +14 -0
  27. package/src/gen-wire/_models/searchMemberCommunicationParams.ts +13 -0
  28. package/src/gen-wire/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
  29. package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
  30. package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
  31. package/src/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
  32. package/src/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
  33. package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
  34. package/{types/gen-wire/_models/messageReadParams.d.ts → src/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
  35. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +1 -1
  36. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
  37. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
  38. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
  39. package/src/gen-wire/index.ts +13 -1
  40. package/src/gen-wire/member-service/member-service.ts +25 -0
  41. package/src/gen-wire/member-service/member-service.zod.ts +48 -0
  42. package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.ts +28 -7
  43. package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +39 -6
  44. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +3 -3
  45. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +40 -0
  46. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +27 -5
  47. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +135 -3
  48. package/src/scripts/convertDuration/convertDuration.ts +0 -6
  49. package/src/validations/agent/__tests__/agent.validations.spec.ts +96 -0
  50. package/src/validations/agent/agent.validations.ts +25 -0
  51. package/src/validations/agentSubordinate/__tests__/agentSubordinate.validations.spec.ts +24 -0
  52. package/src/validations/agentSubordinate/agentSubordinate.validations.ts +7 -0
  53. package/src/validations/index.ts +2 -0
  54. package/types/.tsbuildinfo +1 -1
  55. package/types/enums/AgentStatus/AgentStatus.d.ts +7 -0
  56. package/types/enums/ChannelState/ChannelState.d.ts +15 -0
  57. package/types/enums/ChannelType/ChannelType.d.ts +9 -0
  58. package/types/enums/index.d.ts +4 -1
  59. package/types/gen/_models/engineListOfMemberCommunication.d.ts +11 -0
  60. package/types/gen/_models/googleProtobufNullValue.d.ts +8 -3
  61. package/types/gen/_models/index.d.ts +10 -1
  62. package/types/gen/_models/messageRead2Params.d.ts +13 -0
  63. package/types/gen/_models/searchMemberCommunicationParams.d.ts +12 -0
  64. package/types/gen/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
  65. package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
  66. package/types/gen/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
  67. package/types/gen/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
  68. package/types/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
  69. package/types/gen/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
  70. package/types/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
  71. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
  72. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
  73. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
  74. package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
  75. package/types/gen-wire/_models/engineListOfMemberCommunication.d.ts +11 -0
  76. package/types/gen-wire/_models/googleProtobufNullValue.d.ts +8 -3
  77. package/types/gen-wire/_models/index.d.ts +10 -1
  78. package/types/gen-wire/_models/messageRead2Params.d.ts +13 -0
  79. package/types/gen-wire/_models/searchMemberCommunicationParams.d.ts +12 -0
  80. package/types/gen-wire/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
  81. package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
  82. package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
  83. package/types/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
  84. package/types/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
  85. package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
  86. package/types/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
  87. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
  88. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
  89. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
  90. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
  91. package/types/gen-wire/call-service/call-service.zod.d.ts +3 -3
  92. package/types/gen-wire/case-timeline/case-timeline.zod.d.ts +3 -3
  93. package/types/gen-wire/index.d.ts +3 -3
  94. package/types/gen-wire/member-service/member-service.d.ts +3 -1
  95. package/types/gen-wire/member-service/member-service.zod.d.ts +37 -0
  96. package/types/gen-wire/routing-schema-service/routing-schema-service.zod.d.ts +11 -11
  97. package/types/gen-wire/timeline/timeline.zod.d.ts +3 -3
  98. package/types/gen-wire/trigger-service/trigger-service.zod.d.ts +12 -12
  99. package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.d.ts +5 -3
  100. package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +20 -5
  101. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +5 -1
  102. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +16 -0
  103. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +51 -0
  104. package/types/validations/agent/agent.validations.d.ts +28 -0
  105. package/types/validations/agentSubordinate/agentSubordinate.validations.d.ts +7 -0
  106. package/types/validations/index.d.ts +2 -0
@@ -0,0 +1,7 @@
1
+ export declare const AgentStatus: {
2
+ readonly Online: "online";
3
+ readonly Offline: "offline";
4
+ readonly Pause: "pause";
5
+ readonly BreakOut: "break_out";
6
+ };
7
+ export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
@@ -0,0 +1,15 @@
1
+ export declare const ChannelState: {
2
+ readonly Waiting: "waiting";
3
+ readonly Distribute: "distribute";
4
+ readonly Offering: "offering";
5
+ readonly Answered: "answered";
6
+ readonly Active: "active";
7
+ readonly Bridged: "bridged";
8
+ readonly Hold: "hold";
9
+ readonly Missed: "missed";
10
+ readonly WrapTime: "wrap_time";
11
+ readonly Processing: "processing";
12
+ readonly Transfer: "transfer";
13
+ readonly Form: "form";
14
+ };
15
+ export type ChannelState = (typeof ChannelState)[keyof typeof ChannelState];
@@ -0,0 +1,9 @@
1
+ export declare const ChannelType: {
2
+ readonly Call: "call";
3
+ readonly Email: "email";
4
+ readonly Chat: "chat";
5
+ readonly Job: "task";
6
+ readonly OutCall: "out_call";
7
+ readonly Im: "im";
8
+ };
9
+ export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
@@ -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';
@@ -10,4 +13,4 @@ import { TimeBaseScore } from './TimeBaseScore/TimeBaseScore';
10
13
  import { TypesResourceStrategy } from './TypesResourceStrategy/TypesResourceStrategy';
11
14
  import { UrlProtocol } from './UrlProtocol/UrlProtocol';
12
15
  import { UserPresenceStatus } from './UserPresenceStatus/UserPresenceStatus';
13
- export { CallReportingStatus, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
16
+ export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, TimeBaseScore, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
@@ -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 { EngineMemberCommunication } from './engineMemberCommunication';
8
+ export interface EngineListOfMemberCommunication {
9
+ items?: EngineMemberCommunication[];
10
+ next?: boolean;
11
+ }
@@ -5,10 +5,15 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  /**
8
- * `NullValue` is a singleton enumeration to represent the null value for the
9
- * `Value` type union.
8
+ * Represents a JSON `null`.
10
9
  *
11
- * The JSON representation for `NullValue` is JSON `null`.
10
+ * `NullValue` is a sentinel, using an enum with only one value to represent
11
+ * the null value for the `Value` type union.
12
+ *
13
+ * A field of type `NullValue` with any value other than `0` is considered
14
+ * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
15
+ * as a JSON `null` regardless of the integer value, and so will round trip to
16
+ * a `0` value.
12
17
  *
13
18
  * - NULL_VALUE: Null value.
14
19
  */
@@ -562,6 +562,7 @@ export * from './engineListMember';
562
562
  export * from './engineListMemberAttempt';
563
563
  export * from './engineListOfList';
564
564
  export * from './engineListOfListCommunication';
565
+ export * from './engineListOfMemberCommunication';
565
566
  export * from './engineListOpenedWebSocket';
566
567
  export * from './engineListOutboundResource';
567
568
  export * from './engineListOutboundResourceDisplay';
@@ -974,7 +975,7 @@ export * from './mergeVariablesParams';
974
975
  export * from './messageHistorySearchLeftThreadsMessagesHistoryParams';
975
976
  export * from './messageHistorySearchMessagesParams';
976
977
  export * from './messageHistorySearchThreadMessagesHistoryParams';
977
- export * from './messageReadParams';
978
+ export * from './messageRead2Params';
978
979
  export * from './oAuth2FederationDeleteOAuthServiceBody';
979
980
  export * from './openedWebSocketsParams';
980
981
  export * from './pauseTemplateServiceReadPauseTemplateParams';
@@ -1092,6 +1093,7 @@ export * from './searchLookupAgentNotExistsSkillParams';
1092
1093
  export * from './searchLookupUsersAgentNotExistsParams';
1093
1094
  export * from './searchMediaFileParams';
1094
1095
  export * from './searchMemberAttemptsParams';
1096
+ export * from './searchMemberCommunicationParams';
1095
1097
  export * from './searchMemberInQueueParams';
1096
1098
  export * from './searchMembersParams';
1097
1099
  export * from './searchOAuthServiceParams';
@@ -1640,6 +1642,7 @@ export * from './webitelImApiGatewayV1GetThreadPermissionsResponse';
1640
1642
  export * from './webitelImApiGatewayV1GetUnreadSummaryResponse';
1641
1643
  export * from './webitelImApiGatewayV1GetUpdatesRequest';
1642
1644
  export * from './webitelImApiGatewayV1GetUpdatesResponse';
1645
+ export * from './webitelImApiGatewayV1HandBackToBotResponse';
1643
1646
  export * from './webitelImApiGatewayV1HistoryMessage';
1644
1647
  export * from './webitelImApiGatewayV1HistoryMessageCursorRequest';
1645
1648
  export * from './webitelImApiGatewayV1HistoryMessageCursorResponse';
@@ -1667,8 +1670,11 @@ export * from './webitelImApiGatewayV1MemberReadState';
1667
1670
  export * from './webitelImApiGatewayV1MenuPlacement';
1668
1671
  export * from './webitelImApiGatewayV1MessageContact';
1669
1672
  export * from './webitelImApiGatewayV1MessageEditMessageBody';
1673
+ export * from './webitelImApiGatewayV1MessageFailure';
1674
+ export * from './webitelImApiGatewayV1MessageFailureError';
1670
1675
  export * from './webitelImApiGatewayV1MessageLocation';
1671
1676
  export * from './webitelImApiGatewayV1MessageReaction';
1677
+ export * from './webitelImApiGatewayV1MessageReadBody';
1672
1678
  export * from './webitelImApiGatewayV1MessageRevision';
1673
1679
  export * from './webitelImApiGatewayV1MessageRevisionAction';
1674
1680
  export * from './webitelImApiGatewayV1MessageSendInteractiveCallbackBody';
@@ -1708,13 +1714,16 @@ export * from './webitelImApiGatewayV1SkippedMessage';
1708
1714
  export * from './webitelImApiGatewayV1SkippedMessageReason';
1709
1715
  export * from './webitelImApiGatewayV1System';
1710
1716
  export * from './webitelImApiGatewayV1SystemMetadata';
1717
+ export * from './webitelImApiGatewayV1TakeOverFromBotResponse';
1711
1718
  export * from './webitelImApiGatewayV1Thread';
1712
1719
  export * from './webitelImApiGatewayV1ThreadKind';
1713
1720
  export * from './webitelImApiGatewayV1ThreadManagementAddMemberBody';
1714
1721
  export * from './webitelImApiGatewayV1ThreadManagementCreateRequest';
1715
1722
  export * from './webitelImApiGatewayV1ThreadManagementCreateResponse';
1716
1723
  export * from './webitelImApiGatewayV1ThreadManagementFlushVariablesBody';
1724
+ export * from './webitelImApiGatewayV1ThreadManagementHandBackToBotBody';
1717
1725
  export * from './webitelImApiGatewayV1ThreadManagementSetVariablesBody';
1726
+ export * from './webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody';
1718
1727
  export * from './webitelImApiGatewayV1ThreadManagementTransferBody';
1719
1728
  export * from './webitelImApiGatewayV1ThreadMember';
1720
1729
  export * from './webitelImApiGatewayV1ThreadMemberChange';
@@ -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
+ export type MessageRead2Params = {
8
+ threadId?: string;
9
+ /**
10
+ * Read up to this per-thread message seq (inclusive).
11
+ */
12
+ upToSeq?: string;
13
+ };
@@ -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
+ export type SearchMemberCommunicationParams = {
8
+ page?: number;
9
+ size?: number;
10
+ sort?: string;
11
+ fields?: string[];
12
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1HandBackToBotResponse {
8
+ [key: string]: unknown;
9
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1MessageFailureError } from './webitelImApiGatewayV1MessageFailureError';
8
+ import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
9
+ /**
10
+ * MessageFailure is a message that could not be delivered to a member.
11
+ */
12
+ export interface WebitelImApiGatewayV1MessageFailure {
13
+ error?: WebitelImApiGatewayV1MessageFailureError;
14
+ member?: WebitelImApiGatewayV1ThreadMember;
15
+ messageId?: string;
16
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1MessageFailureError {
8
+ code?: string;
9
+ message?: string;
10
+ }
@@ -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
+ export interface WebitelImApiGatewayV1MessageReadBody {
8
+ /** Message to read up to; resolved to its seq. Ignored when up_to_seq is set. */
9
+ id?: string;
10
+ /** Read up to this per-thread message seq (inclusive). */
11
+ upToSeq?: string;
12
+ }
@@ -17,6 +17,6 @@ export interface WebitelImApiGatewayV1SearchMessageHistoryResponse {
17
17
  nextCursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
18
18
  /** Cursor that represents position to get newest messages (used with 'before' param). */
19
19
  prevCursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
20
- /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
20
+ /** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
21
21
  updatesCursor?: string;
22
22
  }
@@ -14,6 +14,6 @@ export interface WebitelImApiGatewayV1SearchThreadResponse {
14
14
  items?: WebitelImApiGatewayV1Thread[];
15
15
  /** Indicates whether there is a next page available. */
16
16
  next?: boolean;
17
- /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
17
+ /** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
18
18
  updatesCursor?: string;
19
19
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1TakeOverFromBotResponse {
8
+ [key: string]: unknown;
9
+ }
@@ -43,7 +43,7 @@ export interface WebitelImApiGatewayV1Thread {
43
43
  unreadCount?: number;
44
44
  /** Last update timestamp (Unix time, milliseconds). */
45
45
  updatedAt?: string;
46
- /** GetUpdates cursor read before this thread (set by Get; Search carries it on the response). */
46
+ /** The caller's GetUpdates cursor as of this read (set by Get; Search carries it on the response). */
47
47
  updatesCursor?: string;
48
48
  /** Optional variables associated with the thread. */
49
49
  variables?: WebitelImApiGatewayV1ThreadVariables;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1ThreadManagementHandBackToBotBody {
8
+ [key: string]: unknown;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1ThreadManagementTakeOverFromBotBody {
8
+ [key: string]: unknown;
9
+ }
@@ -5,13 +5,19 @@
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
  export interface WebitelImApiGatewayV1ThreadUpdates {
12
13
  deletedMessageIds?: string[];
13
- /** The thread itself, set when it is new to the caller (created or joined since cursor). */
14
+ /**
15
+ * The thread itself, set when it is new to the caller (created or joined since cursor).
16
+ * Same model as the thread list, except last_msg and updates_cursor are never set here.
17
+ */
14
18
  dialog?: WebitelImApiGatewayV1Thread;
19
+ /** Messages that failed to reach a member since the cursor. */
20
+ failures?: WebitelImApiGatewayV1MessageFailure[];
15
21
  /** The caller is no longer a member: drop the thread. */
16
22
  left?: boolean;
17
23
  memberChanges?: WebitelImApiGatewayV1ThreadMemberChange[];
@@ -20,7 +26,7 @@ export interface WebitelImApiGatewayV1ThreadUpdates {
20
26
  /** Delivery/read horizons in message seq. */
21
27
  readStates?: WebitelImApiGatewayV1MemberReadState[];
22
28
  threadId?: string;
23
- /** Newest message for the list preview; set with dialog. */
29
+ /** Newest message for the list preview, in place of dialog.last_msg; set with dialog. */
24
30
  topMessage?: WebitelImApiGatewayV1UpdatedMessage;
25
31
  unreadCount?: string;
26
32
  }
@@ -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 { EngineMemberCommunication } from './engineMemberCommunication';
8
+ export interface EngineListOfMemberCommunication {
9
+ items?: EngineMemberCommunication[];
10
+ next?: boolean;
11
+ }
@@ -5,10 +5,15 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  /**
8
- * `NullValue` is a singleton enumeration to represent the null value for the
9
- * `Value` type union.
8
+ * Represents a JSON `null`.
10
9
  *
11
- * The JSON representation for `NullValue` is JSON `null`.
10
+ * `NullValue` is a sentinel, using an enum with only one value to represent
11
+ * the null value for the `Value` type union.
12
+ *
13
+ * A field of type `NullValue` with any value other than `0` is considered
14
+ * invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
15
+ * as a JSON `null` regardless of the integer value, and so will round trip to
16
+ * a `0` value.
12
17
  *
13
18
  * - NULL_VALUE: Null value.
14
19
  */
@@ -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 './messageReadParams';
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,13 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export type MessageRead2Params = {
8
+ thread_id?: string;
9
+ /**
10
+ * Read up to this per-thread message seq (inclusive).
11
+ */
12
+ up_to_seq?: string;
13
+ };
@@ -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
+ export type SearchMemberCommunicationParams = {
8
+ page?: number;
9
+ size?: number;
10
+ sort?: string;
11
+ fields?: string[];
12
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1HandBackToBotResponse {
8
+ [key: string]: unknown;
9
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { WebitelImApiGatewayV1MessageFailureError } from './webitelImApiGatewayV1MessageFailureError';
8
+ import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
9
+ /**
10
+ * MessageFailure is a message that could not be delivered to a member.
11
+ */
12
+ export interface WebitelImApiGatewayV1MessageFailure {
13
+ error?: WebitelImApiGatewayV1MessageFailureError;
14
+ member?: WebitelImApiGatewayV1ThreadMember;
15
+ message_id?: string;
16
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1MessageFailureError {
8
+ code?: string;
9
+ message?: string;
10
+ }
@@ -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
+ export interface WebitelImApiGatewayV1MessageReadBody {
8
+ /** Message to read up to; resolved to its seq. Ignored when up_to_seq is set. */
9
+ id?: string;
10
+ /** Read up to this per-thread message seq (inclusive). */
11
+ up_to_seq?: string;
12
+ }
@@ -17,6 +17,6 @@ export interface WebitelImApiGatewayV1SearchMessageHistoryResponse {
17
17
  next_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
18
18
  /** Cursor that represents position to get newest messages (used with 'before' param). */
19
19
  prev_cursor?: WebitelImApiGatewayV1HistoryMessageCursorResponse;
20
- /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
20
+ /** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
21
21
  updates_cursor?: string;
22
22
  }
@@ -14,6 +14,6 @@ export interface WebitelImApiGatewayV1SearchThreadResponse {
14
14
  items?: WebitelImApiGatewayV1Thread[];
15
15
  /** Indicates whether there is a next page available. */
16
16
  next?: boolean;
17
- /** GetUpdates cursor read before this page: every later change comes from GetUpdates(updates_cursor). */
17
+ /** The caller's GetUpdates cursor as of this read: every later change comes from GetUpdates(updates_cursor). */
18
18
  updates_cursor?: string;
19
19
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1TakeOverFromBotResponse {
8
+ [key: string]: unknown;
9
+ }
@@ -43,7 +43,7 @@ export interface WebitelImApiGatewayV1Thread {
43
43
  unread_count?: number;
44
44
  /** Last update timestamp (Unix time, milliseconds). */
45
45
  updated_at?: string;
46
- /** GetUpdates cursor read before this thread (set by Get; Search carries it on the response). */
46
+ /** The caller's GetUpdates cursor as of this read (set by Get; Search carries it on the response). */
47
47
  updates_cursor?: string;
48
48
  /** Optional variables associated with the thread. */
49
49
  variables?: WebitelImApiGatewayV1ThreadVariables;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1ThreadManagementHandBackToBotBody {
8
+ [key: string]: unknown;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ export interface WebitelImApiGatewayV1ThreadManagementTakeOverFromBotBody {
8
+ [key: string]: unknown;
9
+ }
@@ -5,13 +5,19 @@
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
  export interface WebitelImApiGatewayV1ThreadUpdates {
12
13
  deleted_message_ids?: string[];
13
- /** The thread itself, set when it is new to the caller (created or joined since cursor). */
14
+ /**
15
+ * The thread itself, set when it is new to the caller (created or joined since cursor).
16
+ * Same model as the thread list, except last_msg and updates_cursor are never set here.
17
+ */
14
18
  dialog?: WebitelImApiGatewayV1Thread;
19
+ /** Messages that failed to reach a member since the cursor. */
20
+ failures?: WebitelImApiGatewayV1MessageFailure[];
15
21
  /** The caller is no longer a member: drop the thread. */
16
22
  left?: boolean;
17
23
  member_changes?: WebitelImApiGatewayV1ThreadMemberChange[];
@@ -20,7 +26,7 @@ export interface WebitelImApiGatewayV1ThreadUpdates {
20
26
  /** Delivery/read horizons in message seq. */
21
27
  read_states?: WebitelImApiGatewayV1MemberReadState[];
22
28
  thread_id?: string;
23
- /** Newest message for the list preview; set with dialog. */
29
+ /** Newest message for the list preview, in place of dialog.last_msg; set with dialog. */
24
30
  top_message?: WebitelImApiGatewayV1UpdatedMessage;
25
31
  unread_count?: string;
26
32
  }
@@ -489,8 +489,8 @@ export declare const SearchHistoryCallResponse: zod.ZodObject<{
489
489
  id: zod.ZodOptional<zod.ZodString>;
490
490
  state: zod.ZodDefault<zod.ZodEnum<{
491
491
  error: "error";
492
- idle: "idle";
493
492
  active: "active";
493
+ idle: "idle";
494
494
  finished: "finished";
495
495
  }>>;
496
496
  }, zod.z.core.$strip>>>;
@@ -801,8 +801,8 @@ export declare const SearchHistoryCallPostResponse: zod.ZodObject<{
801
801
  id: zod.ZodOptional<zod.ZodString>;
802
802
  state: zod.ZodDefault<zod.ZodEnum<{
803
803
  error: "error";
804
- idle: "idle";
805
804
  active: "active";
805
+ idle: "idle";
806
806
  finished: "finished";
807
807
  }>>;
808
808
  }, zod.z.core.$strip>>>;
@@ -1202,8 +1202,8 @@ export declare const PatchHistoryCallResponse: zod.ZodObject<{
1202
1202
  id: zod.ZodOptional<zod.ZodString>;
1203
1203
  state: zod.ZodDefault<zod.ZodEnum<{
1204
1204
  error: "error";
1205
- idle: "idle";
1206
1205
  active: "active";
1206
+ idle: "idle";
1207
1207
  finished: "finished";
1208
1208
  }>>;
1209
1209
  }, zod.z.core.$strip>>>;