@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.
Files changed (83) hide show
  1. package/package.json +1 -1
  2. package/src/gen/_models/engineListOfMemberCommunication.ts +12 -0
  3. package/src/gen/_models/googleProtobufNullValue.ts +8 -3
  4. package/src/gen/_models/index.ts +10 -1
  5. package/src/gen/_models/messageRead2Params.ts +14 -0
  6. package/src/gen/_models/searchMemberCommunicationParams.ts +13 -0
  7. package/src/gen/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
  8. package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
  9. package/src/gen/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
  10. package/src/gen/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
  11. package/src/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
  12. package/src/gen/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
  13. package/{types/gen/_models/messageReadParams.d.ts → src/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
  14. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +1 -1
  15. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
  16. package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
  17. package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
  18. package/src/gen-wire/_models/engineListOfMemberCommunication.ts +12 -0
  19. package/src/gen-wire/_models/googleProtobufNullValue.ts +8 -3
  20. package/src/gen-wire/_models/index.ts +10 -1
  21. package/src/gen-wire/_models/messageRead2Params.ts +14 -0
  22. package/src/gen-wire/_models/searchMemberCommunicationParams.ts +13 -0
  23. package/src/gen-wire/_models/{messageReadParams.ts → webitelImApiGatewayV1HandBackToBotResponse.ts} +3 -3
  24. package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +17 -0
  25. package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.ts +11 -0
  26. package/src/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.ts +13 -0
  27. package/src/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.ts +1 -1
  28. package/src/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.ts +1 -1
  29. package/{types/gen-wire/_models/messageReadParams.d.ts → src/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.ts} +4 -3
  30. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +1 -1
  31. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.ts +10 -0
  32. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.ts +10 -0
  33. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +8 -2
  34. package/src/gen-wire/index.ts +13 -1
  35. package/src/gen-wire/member-service/member-service.ts +25 -0
  36. package/src/gen-wire/member-service/member-service.zod.ts +48 -0
  37. package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.ts +28 -7
  38. package/src/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +39 -6
  39. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +3 -3
  40. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +40 -0
  41. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +27 -5
  42. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +135 -3
  43. package/types/.tsbuildinfo +1 -1
  44. package/types/gen/_models/engineListOfMemberCommunication.d.ts +11 -0
  45. package/types/gen/_models/googleProtobufNullValue.d.ts +8 -3
  46. package/types/gen/_models/index.d.ts +10 -1
  47. package/types/gen/_models/messageRead2Params.d.ts +13 -0
  48. package/types/gen/_models/searchMemberCommunicationParams.d.ts +12 -0
  49. package/types/gen/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
  50. package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
  51. package/types/gen/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
  52. package/types/gen/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
  53. package/types/gen/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
  54. package/types/gen/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
  55. package/types/gen/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
  56. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
  57. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
  58. package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
  59. package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
  60. package/types/gen-wire/_models/engineListOfMemberCommunication.d.ts +11 -0
  61. package/types/gen-wire/_models/googleProtobufNullValue.d.ts +8 -3
  62. package/types/gen-wire/_models/index.d.ts +10 -1
  63. package/types/gen-wire/_models/messageRead2Params.d.ts +13 -0
  64. package/types/gen-wire/_models/searchMemberCommunicationParams.d.ts +12 -0
  65. package/types/gen-wire/_models/webitelImApiGatewayV1HandBackToBotResponse.d.ts +9 -0
  66. package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +16 -0
  67. package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailureError.d.ts +10 -0
  68. package/types/gen-wire/_models/webitelImApiGatewayV1MessageReadBody.d.ts +12 -0
  69. package/types/gen-wire/_models/webitelImApiGatewayV1SearchMessageHistoryResponse.d.ts +1 -1
  70. package/types/gen-wire/_models/webitelImApiGatewayV1SearchThreadResponse.d.ts +1 -1
  71. package/types/gen-wire/_models/webitelImApiGatewayV1TakeOverFromBotResponse.d.ts +9 -0
  72. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +1 -1
  73. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementHandBackToBotBody.d.ts +9 -0
  74. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody.d.ts +9 -0
  75. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +8 -2
  76. package/types/gen-wire/index.d.ts +3 -3
  77. package/types/gen-wire/member-service/member-service.d.ts +3 -1
  78. package/types/gen-wire/member-service/member-service.zod.d.ts +37 -0
  79. package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.d.ts +5 -3
  80. package/types/gen-wire/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +20 -5
  81. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +5 -1
  82. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +16 -0
  83. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +51 -0
@@ -1340,3 +1340,40 @@ export declare const AttemptResultBody: zod.ZodObject<{
1340
1340
  export declare const AttemptResultResponse: zod.ZodObject<{
1341
1341
  status: zod.ZodOptional<zod.ZodString>;
1342
1342
  }, zod.z.core.$strip>;
1343
+ /**
1344
+ * @summary List of a member's communications
1345
+ */
1346
+ export declare const SearchMemberCommunicationParams: zod.ZodObject<{
1347
+ queue_id: zod.ZodString;
1348
+ member_id: zod.ZodString;
1349
+ }, zod.z.core.$strip>;
1350
+ export declare const SearchMemberCommunicationQueryParams: zod.ZodObject<{
1351
+ page: zod.ZodOptional<zod.ZodInt>;
1352
+ size: zod.ZodOptional<zod.ZodInt>;
1353
+ sort: zod.ZodOptional<zod.ZodString>;
1354
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
1355
+ }, zod.z.core.$strip>;
1356
+ export declare const SearchMemberCommunicationResponse: zod.ZodObject<{
1357
+ items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1358
+ attempts: zod.ZodOptional<zod.ZodInt>;
1359
+ description: zod.ZodOptional<zod.ZodString>;
1360
+ destination: zod.ZodOptional<zod.ZodString>;
1361
+ display: zod.ZodOptional<zod.ZodString>;
1362
+ dtmf: zod.ZodOptional<zod.ZodString>;
1363
+ id: zod.ZodOptional<zod.ZodString>;
1364
+ last_activity_at: zod.ZodOptional<zod.ZodString>;
1365
+ last_cause: zod.ZodOptional<zod.ZodString>;
1366
+ priority: zod.ZodOptional<zod.ZodInt>;
1367
+ resource: zod.ZodOptional<zod.ZodObject<{
1368
+ id: zod.ZodOptional<zod.ZodString>;
1369
+ name: zod.ZodOptional<zod.ZodString>;
1370
+ }, zod.z.core.$strip>>;
1371
+ state: zod.ZodOptional<zod.ZodInt>;
1372
+ stop_at: zod.ZodOptional<zod.ZodString>;
1373
+ type: zod.ZodOptional<zod.ZodObject<{
1374
+ id: zod.ZodOptional<zod.ZodString>;
1375
+ name: zod.ZodOptional<zod.ZodString>;
1376
+ }, zod.z.core.$strip>>;
1377
+ }, zod.z.core.$strip>>>;
1378
+ next: zod.ZodOptional<zod.ZodBoolean>;
1379
+ }, zod.z.core.$strip>;
@@ -5,7 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
8
- import type { MessageReadParams, WebitelImApiGatewayV1DeleteMessagesRequest, WebitelImApiGatewayV1DeleteMessagesResponse, WebitelImApiGatewayV1EditMessageResponse, WebitelImApiGatewayV1ForwardMessagesRequest, WebitelImApiGatewayV1ForwardMessagesResponse, WebitelImApiGatewayV1InteractiveCallbackResponse, WebitelImApiGatewayV1MessageEditMessageBody, WebitelImApiGatewayV1MessageSendInteractiveCallbackBody, WebitelImApiGatewayV1MessageSendTypingBody, WebitelImApiGatewayV1MessageSetReactionBody, WebitelImApiGatewayV1ReadMessageResponse, WebitelImApiGatewayV1SendContactRequest, WebitelImApiGatewayV1SendDocumentRequest, WebitelImApiGatewayV1SendDocumentResponse, WebitelImApiGatewayV1SendInteractiveMessageRequest, WebitelImApiGatewayV1SendInternalNoteRequest, WebitelImApiGatewayV1SendLocationRequest, WebitelImApiGatewayV1SendMessageResponse, WebitelImApiGatewayV1SendTextRequest, WebitelImApiGatewayV1SendTextResponse, WebitelImApiGatewayV1SendTypingResponse, WebitelImApiGatewayV1SetReactionResponse } from '../_models';
8
+ import type { MessageRead2Params, WebitelImApiGatewayV1DeleteMessagesRequest, WebitelImApiGatewayV1DeleteMessagesResponse, WebitelImApiGatewayV1EditMessageResponse, WebitelImApiGatewayV1ForwardMessagesRequest, WebitelImApiGatewayV1ForwardMessagesResponse, WebitelImApiGatewayV1InteractiveCallbackResponse, WebitelImApiGatewayV1MessageEditMessageBody, WebitelImApiGatewayV1MessageReadBody, WebitelImApiGatewayV1MessageSendInteractiveCallbackBody, WebitelImApiGatewayV1MessageSendTypingBody, WebitelImApiGatewayV1MessageSetReactionBody, WebitelImApiGatewayV1ReadMessageResponse, WebitelImApiGatewayV1SendContactRequest, WebitelImApiGatewayV1SendDocumentRequest, WebitelImApiGatewayV1SendDocumentResponse, WebitelImApiGatewayV1SendInteractiveMessageRequest, WebitelImApiGatewayV1SendInternalNoteRequest, WebitelImApiGatewayV1SendLocationRequest, WebitelImApiGatewayV1SendMessageResponse, WebitelImApiGatewayV1SendTextRequest, WebitelImApiGatewayV1SendTextResponse, WebitelImApiGatewayV1SendTypingResponse, WebitelImApiGatewayV1SetReactionResponse } from '../_models';
9
9
  export declare const // --- title start
10
10
  getWebitelImApiGatewayV1Message: (axiosInstance?: AxiosInstance) => {
11
11
  messageSendContact: (webitelImApiGatewayV1SendContactRequest: WebitelImApiGatewayV1SendContactRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SendMessageResponse>>;
@@ -18,8 +18,9 @@ getWebitelImApiGatewayV1Message: (axiosInstance?: AxiosInstance) => {
18
18
  messageSendLocation: (webitelImApiGatewayV1SendLocationRequest: WebitelImApiGatewayV1SendLocationRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SendMessageResponse>>;
19
19
  messageSendText: (webitelImApiGatewayV1SendTextRequest: WebitelImApiGatewayV1SendTextRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SendTextResponse>>;
20
20
  messageEditMessage: (id: string, webitelImApiGatewayV1MessageEditMessageBody: WebitelImApiGatewayV1MessageEditMessageBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1EditMessageResponse>>;
21
- messageRead: (id: string, params?: MessageReadParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>>;
21
+ messageRead2: (id: string, params?: MessageRead2Params, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>>;
22
22
  messageSetReaction: (messageId: string, webitelImApiGatewayV1MessageSetReactionBody: WebitelImApiGatewayV1MessageSetReactionBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SetReactionResponse>>;
23
+ messageRead: (threadId: string, webitelImApiGatewayV1MessageReadBody: WebitelImApiGatewayV1MessageReadBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>>;
23
24
  messageSendTyping: (threadId: string, webitelImApiGatewayV1MessageSendTypingBody: WebitelImApiGatewayV1MessageSendTypingBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SendTypingResponse>>;
24
25
  };
25
26
  export type MessageSendContactResult = AxiosResponse<WebitelImApiGatewayV1SendMessageResponse>;
@@ -32,6 +33,7 @@ export type MessageSendInternalNoteResult = AxiosResponse<WebitelImApiGatewayV1S
32
33
  export type MessageSendLocationResult = AxiosResponse<WebitelImApiGatewayV1SendMessageResponse>;
33
34
  export type MessageSendTextResult = AxiosResponse<WebitelImApiGatewayV1SendTextResponse>;
34
35
  export type MessageEditMessageResult = AxiosResponse<WebitelImApiGatewayV1EditMessageResponse>;
35
- export type MessageReadResult = AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>;
36
+ export type MessageRead2Result = AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>;
36
37
  export type MessageSetReactionResult = AxiosResponse<WebitelImApiGatewayV1SetReactionResponse>;
38
+ export type MessageReadResult = AxiosResponse<WebitelImApiGatewayV1ReadMessageResponse>;
37
39
  export type MessageSendTypingResult = AxiosResponse<WebitelImApiGatewayV1SendTypingResponse>;
@@ -501,16 +501,18 @@ export declare const MessageEditMessageResponse: zod.ZodObject<{
501
501
  version: zod.ZodOptional<zod.ZodInt>;
502
502
  }, zod.z.core.$strip>;
503
503
  /**
504
- * @summary Marks the thread as read up to the given message (inclusive):
505
- every earlier unread message of the caller in the thread is covered.
504
+ * @summary Marks the thread as read up to the given message (inclusive): every earlier unread
505
+ message of the caller in the thread is covered. Prefer the thread route with up_to_seq;
506
+ the read horizon only moves forward.
506
507
  */
507
- export declare const MessageReadParams: zod.ZodObject<{
508
+ export declare const MessageRead2Params: zod.ZodObject<{
508
509
  id: zod.ZodString;
509
510
  }, zod.z.core.$strip>;
510
- export declare const MessageReadQueryParams: zod.ZodObject<{
511
+ export declare const MessageRead2QueryParams: zod.ZodObject<{
511
512
  thread_id: zod.ZodOptional<zod.ZodString>;
513
+ up_to_seq: zod.ZodOptional<zod.ZodString>;
512
514
  }, zod.z.core.$strip>;
513
- export declare const MessageReadResponse: zod.ZodObject<{}, zod.z.core.$loose>;
515
+ export declare const MessageRead2Response: zod.ZodObject<{}, zod.z.core.$loose>;
514
516
  /**
515
517
  * @summary Sets or clears the caller's emoji reaction on a single message.
516
518
  */
@@ -526,6 +528,19 @@ export declare const MessageSetReactionResponse: zod.ZodObject<{
526
528
  emoji: zod.ZodOptional<zod.ZodString>;
527
529
  reacted_at: zod.ZodOptional<zod.ZodString>;
528
530
  }, zod.z.core.$strip>;
531
+ /**
532
+ * @summary Marks the thread as read up to the given message (inclusive): every earlier unread
533
+ message of the caller in the thread is covered. Prefer the thread route with up_to_seq;
534
+ the read horizon only moves forward.
535
+ */
536
+ export declare const MessageReadParams: zod.ZodObject<{
537
+ thread_id: zod.ZodString;
538
+ }, zod.z.core.$strip>;
539
+ export declare const MessageReadBody: zod.ZodObject<{
540
+ id: zod.ZodOptional<zod.ZodString>;
541
+ up_to_seq: zod.ZodOptional<zod.ZodString>;
542
+ }, zod.z.core.$strip>;
543
+ export declare const MessageReadResponse: zod.ZodObject<{}, zod.z.core.$loose>;
529
544
  /**
530
545
  * @summary Sends an ephemeral "…is typing" indicator to the other participants of a
531
546
  thread. Real-time only: it is never stored and never triggers a push. The
@@ -5,7 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
8
- import type { ThreadManagementGetParams, ThreadManagementSearchLeftParams, ThreadManagementSearchParams, ThreadManagementSearchVariablesParams, WebitelImApiGatewayV1AddMemberResponse, WebitelImApiGatewayV1GetUnreadSummaryResponse, WebitelImApiGatewayV1RemoveMemberResponse, WebitelImApiGatewayV1SearchLeftResponse, WebitelImApiGatewayV1SearchThreadResponse, WebitelImApiGatewayV1SearchVariablesResponse, WebitelImApiGatewayV1Thread, WebitelImApiGatewayV1ThreadManagementAddMemberBody, WebitelImApiGatewayV1ThreadManagementCreateRequest, WebitelImApiGatewayV1ThreadManagementCreateResponse, WebitelImApiGatewayV1ThreadManagementFlushVariablesBody, WebitelImApiGatewayV1ThreadManagementSetVariablesBody, WebitelImApiGatewayV1ThreadManagementTransferBody, WebitelImApiGatewayV1ThreadVariables, WebitelImApiGatewayV1TransferResponse } from '../_models';
8
+ import type { ThreadManagementGetParams, ThreadManagementSearchLeftParams, ThreadManagementSearchParams, ThreadManagementSearchVariablesParams, WebitelImApiGatewayV1AddMemberResponse, WebitelImApiGatewayV1GetUnreadSummaryResponse, WebitelImApiGatewayV1HandBackToBotResponse, WebitelImApiGatewayV1RemoveMemberResponse, WebitelImApiGatewayV1SearchLeftResponse, WebitelImApiGatewayV1SearchThreadResponse, WebitelImApiGatewayV1SearchVariablesResponse, WebitelImApiGatewayV1TakeOverFromBotResponse, WebitelImApiGatewayV1Thread, WebitelImApiGatewayV1ThreadManagementAddMemberBody, WebitelImApiGatewayV1ThreadManagementCreateRequest, WebitelImApiGatewayV1ThreadManagementCreateResponse, WebitelImApiGatewayV1ThreadManagementFlushVariablesBody, WebitelImApiGatewayV1ThreadManagementHandBackToBotBody, WebitelImApiGatewayV1ThreadManagementSetVariablesBody, WebitelImApiGatewayV1ThreadManagementTakeOverFromBotBody, WebitelImApiGatewayV1ThreadManagementTransferBody, WebitelImApiGatewayV1ThreadVariables, WebitelImApiGatewayV1TransferResponse } from '../_models';
9
9
  export declare const // --- title start
10
10
  getWebitelImApiGatewayV1Threadmanagement: (axiosInstance?: AxiosInstance) => {
11
11
  threadManagementSearch: (params?: ThreadManagementSearchParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SearchThreadResponse>>;
@@ -13,6 +13,8 @@ getWebitelImApiGatewayV1Threadmanagement: (axiosInstance?: AxiosInstance) => {
13
13
  threadManagementSearchLeft: (params?: ThreadManagementSearchLeftParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1SearchLeftResponse>>;
14
14
  threadManagementGetUnreadSummary: (options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1GetUnreadSummaryResponse>>;
15
15
  threadManagementGet: (id: string, params?: ThreadManagementGetParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1Thread>>;
16
+ threadManagementHandBackToBot: (threadId: string, webitelImApiGatewayV1ThreadManagementHandBackToBotBody: WebitelImApiGatewayV1ThreadManagementHandBackToBotBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1HandBackToBotResponse>>;
17
+ threadManagementTakeOverFromBot: (threadId: string, webitelImApiGatewayV1ThreadManagementTakeOverFromBotBody: WebitelImApiGatewayV1ThreadManagementTakeOverFromBotBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1TakeOverFromBotResponse>>;
16
18
  threadManagementAddMember: (threadId: string, webitelImApiGatewayV1ThreadManagementAddMemberBody: WebitelImApiGatewayV1ThreadManagementAddMemberBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1AddMemberResponse>>;
17
19
  threadManagementRemoveMember: (threadId: string, memberId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1RemoveMemberResponse>>;
18
20
  threadManagementTransfer: (threadId: string, webitelImApiGatewayV1ThreadManagementTransferBody: WebitelImApiGatewayV1ThreadManagementTransferBody, options?: AxiosRequestConfig) => Promise<AxiosResponse<WebitelImApiGatewayV1TransferResponse>>;
@@ -26,6 +28,8 @@ export type ThreadManagementCreateResult = AxiosResponse<WebitelImApiGatewayV1Th
26
28
  export type ThreadManagementSearchLeftResult = AxiosResponse<WebitelImApiGatewayV1SearchLeftResponse>;
27
29
  export type ThreadManagementGetUnreadSummaryResult = AxiosResponse<WebitelImApiGatewayV1GetUnreadSummaryResponse>;
28
30
  export type ThreadManagementGetResult = AxiosResponse<WebitelImApiGatewayV1Thread>;
31
+ export type ThreadManagementHandBackToBotResult = AxiosResponse<WebitelImApiGatewayV1HandBackToBotResponse>;
32
+ export type ThreadManagementTakeOverFromBotResult = AxiosResponse<WebitelImApiGatewayV1TakeOverFromBotResponse>;
29
33
  export type ThreadManagementAddMemberResult = AxiosResponse<WebitelImApiGatewayV1AddMemberResponse>;
30
34
  export type ThreadManagementRemoveMemberResult = AxiosResponse<WebitelImApiGatewayV1RemoveMemberResponse>;
31
35
  export type ThreadManagementTransferResult = AxiosResponse<WebitelImApiGatewayV1TransferResponse>;
@@ -1990,6 +1990,22 @@ export declare const ThreadManagementGetResponse: zod.ZodObject<{
1990
1990
  }, zod.z.core.$strip>>>;
1991
1991
  }, zod.z.core.$strip>>;
1992
1992
  }, zod.z.core.$strip>;
1993
+ /**
1994
+ * @summary Hands the conversation to the thread's bot; the operator stays in the thread.
1995
+ */
1996
+ export declare const ThreadManagementHandBackToBotParams: zod.ZodObject<{
1997
+ thread_id: zod.ZodString;
1998
+ }, zod.z.core.$strip>;
1999
+ export declare const ThreadManagementHandBackToBotBody: zod.ZodObject<{}, zod.z.core.$loose>;
2000
+ export declare const ThreadManagementHandBackToBotResponse: zod.ZodObject<{}, zod.z.core.$loose>;
2001
+ /**
2002
+ * @summary Takes the conversation from the thread's bot back to the operator.
2003
+ */
2004
+ export declare const ThreadManagementTakeOverFromBotParams: zod.ZodObject<{
2005
+ thread_id: zod.ZodString;
2006
+ }, zod.z.core.$strip>;
2007
+ export declare const ThreadManagementTakeOverFromBotBody: zod.ZodObject<{}, zod.z.core.$loose>;
2008
+ export declare const ThreadManagementTakeOverFromBotResponse: zod.ZodObject<{}, zod.z.core.$loose>;
1993
2009
  /**
1994
2010
  * @summary Add member to the thread.
1995
2011
  */
@@ -22,6 +22,7 @@ export declare const updatesGetUpdatesResponseThreadsItemDialogLastMsgSenderRole
22
22
  export declare const updatesGetUpdatesResponseThreadsItemDialogMembersItemRoleDefault = "ROLE_UNSPECIFIED";
23
23
  export declare const updatesGetUpdatesResponseThreadsItemDialogReadStatesItemMemberRoleDefault = "ROLE_UNSPECIFIED";
24
24
  export declare const updatesGetUpdatesResponseThreadsItemDialogTypeDefault = "UNKNOWN";
25
+ export declare const updatesGetUpdatesResponseThreadsItemFailuresItemMemberRoleDefault = "ROLE_UNSPECIFIED";
25
26
  export declare const updatesGetUpdatesResponseThreadsItemMemberChangesItemActionDefault = "THREAD_MEMBER_CHANGE_ACTION_UNSPECIFIED";
26
27
  export declare const updatesGetUpdatesResponseThreadsItemMemberChangesItemByRoleDefault = "ROLE_UNSPECIFIED";
27
28
  export declare const updatesGetUpdatesResponseThreadsItemMemberChangesItemMemberRoleDefault = "ROLE_UNSPECIFIED";
@@ -510,6 +511,56 @@ export declare const UpdatesGetUpdatesResponse: zod.ZodObject<{
510
511
  }, zod.z.core.$strip>>>;
511
512
  }, zod.z.core.$strip>>;
512
513
  }, zod.z.core.$strip>>;
514
+ failures: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
515
+ error: zod.ZodOptional<zod.ZodObject<{
516
+ code: zod.ZodOptional<zod.ZodString>;
517
+ message: zod.ZodOptional<zod.ZodString>;
518
+ }, zod.z.core.$strip>>;
519
+ member: zod.ZodOptional<zod.ZodObject<{
520
+ contact: zod.ZodOptional<zod.ZodObject<{
521
+ app_id: zod.ZodOptional<zod.ZodString>;
522
+ created_at: zod.ZodOptional<zod.ZodString>;
523
+ is_bot: zod.ZodOptional<zod.ZodBoolean>;
524
+ iss: zod.ZodOptional<zod.ZodString>;
525
+ metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
526
+ name: zod.ZodOptional<zod.ZodString>;
527
+ sub: zod.ZodOptional<zod.ZodString>;
528
+ type: zod.ZodOptional<zod.ZodString>;
529
+ updated_at: zod.ZodOptional<zod.ZodString>;
530
+ username: zod.ZodOptional<zod.ZodString>;
531
+ vias: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
532
+ contact_id: zod.ZodOptional<zod.ZodString>;
533
+ created_at: zod.ZodOptional<zod.ZodString>;
534
+ disable: zod.ZodOptional<zod.ZodBoolean>;
535
+ disable_reason: zod.ZodOptional<zod.ZodString>;
536
+ metadata: zod.ZodOptional<zod.ZodObject<{}, zod.z.core.$loose>>;
537
+ updated_at: zod.ZodOptional<zod.ZodString>;
538
+ via: zod.ZodOptional<zod.ZodString>;
539
+ }, zod.z.core.$strip>>>;
540
+ }, zod.z.core.$strip>>;
541
+ id: zod.ZodOptional<zod.ZodString>;
542
+ permissions: zod.ZodOptional<zod.ZodObject<{
543
+ can_add_members: zod.ZodOptional<zod.ZodBoolean>;
544
+ can_change_members_permissions: zod.ZodOptional<zod.ZodBoolean>;
545
+ can_change_thread_info: zod.ZodOptional<zod.ZodBoolean>;
546
+ can_delete_messages: zod.ZodOptional<zod.ZodBoolean>;
547
+ can_remove_members: zod.ZodOptional<zod.ZodBoolean>;
548
+ can_send_messages: zod.ZodOptional<zod.ZodBoolean>;
549
+ created_at: zod.ZodOptional<zod.ZodString>;
550
+ id: zod.ZodOptional<zod.ZodString>;
551
+ member_id: zod.ZodOptional<zod.ZodString>;
552
+ updated_at: zod.ZodOptional<zod.ZodString>;
553
+ }, zod.z.core.$strip>>;
554
+ role: zod.ZodDefault<zod.ZodEnum<{
555
+ ROLE_UNSPECIFIED: "ROLE_UNSPECIFIED";
556
+ ROLE_MEMBER: "ROLE_MEMBER";
557
+ ROLE_ADMIN: "ROLE_ADMIN";
558
+ ROLE_OWNER: "ROLE_OWNER";
559
+ ROLE_SUPERVISOR: "ROLE_SUPERVISOR";
560
+ }>>;
561
+ }, zod.z.core.$strip>>;
562
+ message_id: zod.ZodOptional<zod.ZodString>;
563
+ }, zod.z.core.$strip>>>;
513
564
  left: zod.ZodOptional<zod.ZodBoolean>;
514
565
  member_changes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
515
566
  action: zod.ZodDefault<zod.ZodEnum<{