@webitel/api-services 26.8.87 → 26.8.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/clients/lists/blacklistNumbers.ts +43 -0
- package/src/gen/_models/engineCreateListCommunicationBulkItem.ts +12 -0
- package/src/gen/_models/engineListCommunicationBulkError.ts +14 -0
- package/src/gen/_models/engineListCommunicationBulkResponse.ts +13 -0
- package/src/gen/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
- package/src/gen/_models/index.ts +13 -2
- package/src/gen/_models/threadManagementSearchParams.ts +5 -0
- package/src/gen/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
- package/src/gen/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
- package/src/gen/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
- package/src/gen/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
- package/src/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
- package/src/gen/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
- package/src/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
- package/src/gen-wire/_models/engineCreateListCommunicationBulkItem.ts +12 -0
- package/src/gen-wire/_models/engineListCommunicationBulkError.ts +14 -0
- package/src/gen-wire/_models/engineListCommunicationBulkResponse.ts +13 -0
- package/src/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.ts +11 -0
- package/src/gen-wire/_models/index.ts +13 -2
- package/src/gen-wire/_models/threadManagementSearchParams.ts +5 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryError.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.ts +16 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.ts +11 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.ts +6 -0
- package/src/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.ts} +2 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.ts +5 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.ts +18 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts +12 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.ts +14 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.ts +0 -3
- package/src/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.ts +6 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.ts +11 -0
- package/src/gen-wire/index.ts +12 -0
- package/src/gen-wire/index.zod.ts +1 -0
- package/src/gen-wire/list-service/list-service.ts +19 -0
- package/src/gen-wire/list-service/list-service.zod.ts +62 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +402 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +560 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.ts +89 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +351 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +406 -130
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/lists/blacklistNumbers.d.ts +5 -1
- package/types/gen/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
- package/types/gen/_models/engineListCommunicationBulkError.d.ts +13 -0
- package/types/gen/_models/engineListCommunicationBulkResponse.d.ts +12 -0
- package/types/gen/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
- package/types/gen/_models/index.d.ts +13 -2
- package/types/gen/_models/threadManagementSearchParams.d.ts +5 -0
- package/types/gen/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
- package/types/gen/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
- package/types/gen/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
- package/types/gen/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
- package/types/gen/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
- package/types/gen/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
- package/types/gen/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
- package/types/gen-wire/_models/engineCreateListCommunicationBulkItem.d.ts +11 -0
- package/types/gen-wire/_models/engineListCommunicationBulkError.d.ts +13 -0
- package/types/gen-wire/_models/engineListCommunicationBulkResponse.d.ts +12 -0
- package/types/gen-wire/_models/engineListServiceCreateListCommunicationBulkBody.d.ts +10 -0
- package/types/gen-wire/_models/index.d.ts +13 -2
- package/types/gen-wire/_models/threadManagementSearchParams.d.ts +5 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryError.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1DeliveryFailure.d.ts +15 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GivePreviewResponse.d.ts +10 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessage.d.ts +6 -0
- package/types/gen-wire/_models/{webitelImApiGatewayV1MessageFailureError.d.ts → webitelImApiGatewayV1RemoveFromPreviewResponse.d.ts} +2 -3
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadManagementTransferBody.d.ts +5 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreview.d.ts +17 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.d.ts +11 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody.d.ts +13 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadUpdates.d.ts +0 -3
- package/types/gen-wire/_models/webitelImApiGatewayV1UpdatedMessage.d.ts +6 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1UpgradePreviewToFullMemberResponse.d.ts +10 -0
- package/types/gen-wire/index.d.ts +5 -3
- package/types/gen-wire/index.zod.d.ts +1 -0
- package/types/gen-wire/list-service/list-service.d.ts +3 -1
- package/types/gen-wire/list-service/list-service.zod.d.ts +39 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +150 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +207 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.d.ts +17 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +155 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +150 -51
- package/src/gen/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
- package/src/gen-wire/_models/webitelImApiGatewayV1MessageFailure.ts +0 -17
- package/types/gen/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
- package/types/gen-wire/_models/webitelImApiGatewayV1MessageFailure.d.ts +0 -16
|
@@ -9,5 +9,10 @@ import type { WebitelImApiGatewayV1ThreadRole } from './webitelImApiGatewayV1Thr
|
|
|
9
9
|
|
|
10
10
|
export interface WebitelImApiGatewayV1ThreadManagementTransferBody {
|
|
11
11
|
contact?: WebitelImApiGatewayV1PeerIdentity;
|
|
12
|
+
/**
|
|
13
|
+
* Member the thread is transferred from. Honored only for trusted service
|
|
14
|
+
* callers (schema/engine); user calls always transfer from the caller.
|
|
15
|
+
*/
|
|
16
|
+
initiator?: WebitelImApiGatewayV1PeerIdentity;
|
|
12
17
|
role?: WebitelImApiGatewayV1ThreadRole;
|
|
13
18
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1Contact } from './webitelImApiGatewayV1Contact';
|
|
8
|
+
|
|
9
|
+
export interface WebitelImApiGatewayV1ThreadPreview {
|
|
10
|
+
contact?: WebitelImApiGatewayV1Contact;
|
|
11
|
+
/** Unix milliseconds. */
|
|
12
|
+
created_at?: string;
|
|
13
|
+
/** Unix milliseconds; the preview stops granting access at this moment. */
|
|
14
|
+
expires_at?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
initiator?: WebitelImApiGatewayV1Contact;
|
|
17
|
+
thread_id?: string;
|
|
18
|
+
}
|
|
@@ -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
|
+
import type { WebitelImApiGatewayV1PeerIdentity } from './webitelImApiGatewayV1PeerIdentity';
|
|
8
|
+
|
|
9
|
+
export interface WebitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody {
|
|
10
|
+
/** The contact receiving the preview. */
|
|
11
|
+
contact?: WebitelImApiGatewayV1PeerIdentity;
|
|
12
|
+
/** Preview lifetime from now, in milliseconds. */
|
|
13
|
+
duration_ms?: string;
|
|
14
|
+
}
|
package/src/gen-wire/_models/webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody.ts
ADDED
|
@@ -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 { WebitelImApiGatewayV1PeerIdentity } from './webitelImApiGatewayV1PeerIdentity';
|
|
8
|
+
|
|
9
|
+
export interface WebitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody {
|
|
10
|
+
/** The contact whose preview is revoked. */
|
|
11
|
+
contact?: WebitelImApiGatewayV1PeerIdentity;
|
|
12
|
+
}
|
|
@@ -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
|
+
import type { WebitelImApiGatewayV1PeerIdentity } from './webitelImApiGatewayV1PeerIdentity';
|
|
8
|
+
import type { WebitelImApiGatewayV1ThreadRole } from './webitelImApiGatewayV1ThreadRole';
|
|
9
|
+
|
|
10
|
+
export interface WebitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody {
|
|
11
|
+
/** The contact to upgrade to a full member. */
|
|
12
|
+
contact?: WebitelImApiGatewayV1PeerIdentity;
|
|
13
|
+
role?: WebitelImApiGatewayV1ThreadRole;
|
|
14
|
+
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
7
|
import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGatewayV1MemberReadState';
|
|
8
|
-
import type { WebitelImApiGatewayV1MessageFailure } from './webitelImApiGatewayV1MessageFailure';
|
|
9
8
|
import type { WebitelImApiGatewayV1Thread } from './webitelImApiGatewayV1Thread';
|
|
10
9
|
import type { WebitelImApiGatewayV1ThreadMemberChange } from './webitelImApiGatewayV1ThreadMemberChange';
|
|
11
10
|
import type { WebitelImApiGatewayV1UpdatedMessage } from './webitelImApiGatewayV1UpdatedMessage';
|
|
@@ -17,8 +16,6 @@ export interface WebitelImApiGatewayV1ThreadUpdates {
|
|
|
17
16
|
* Same model as the thread list, except last_msg and updates_cursor are never set here.
|
|
18
17
|
*/
|
|
19
18
|
dialog?: WebitelImApiGatewayV1Thread;
|
|
20
|
-
/** Messages that failed to reach a member since the cursor. */
|
|
21
|
-
failures?: WebitelImApiGatewayV1MessageFailure[];
|
|
22
19
|
/** The caller is no longer a member: drop the thread. */
|
|
23
20
|
left?: boolean;
|
|
24
21
|
member_changes?: WebitelImApiGatewayV1ThreadMemberChange[];
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { WebitelImApiGatewayV1DeliveryFailure } from './webitelImApiGatewayV1DeliveryFailure';
|
|
7
8
|
import type { WebitelImApiGatewayV1Document } from './webitelImApiGatewayV1Document';
|
|
8
9
|
import type { WebitelImApiGatewayV1ForwardOrigin } from './webitelImApiGatewayV1ForwardOrigin';
|
|
9
10
|
import type { WebitelImApiGatewayV1Image } from './webitelImApiGatewayV1Image';
|
|
@@ -26,6 +27,11 @@ export interface WebitelImApiGatewayV1UpdatedMessage {
|
|
|
26
27
|
documents?: WebitelImApiGatewayV1Document[];
|
|
27
28
|
/** Set when the message was edited. */
|
|
28
29
|
edited_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Members the message could not be delivered to, with the provider's reason.
|
|
32
|
+
* Empty when it reached everyone.
|
|
33
|
+
*/
|
|
34
|
+
failures?: WebitelImApiGatewayV1DeliveryFailure[];
|
|
29
35
|
forward_origin?: WebitelImApiGatewayV1ForwardOrigin;
|
|
30
36
|
id?: string;
|
|
31
37
|
images?: WebitelImApiGatewayV1Image[];
|
|
@@ -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 { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
|
|
8
|
+
|
|
9
|
+
export interface WebitelImApiGatewayV1UpgradePreviewToFullMemberResponse {
|
|
10
|
+
member?: WebitelImApiGatewayV1ThreadMember;
|
|
11
|
+
}
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -1378,6 +1378,9 @@ export * from './list-service/list-service';
|
|
|
1378
1378
|
export {
|
|
1379
1379
|
CreateListBody,
|
|
1380
1380
|
CreateListCommunicationBody,
|
|
1381
|
+
CreateListCommunicationBulkBody,
|
|
1382
|
+
CreateListCommunicationBulkParams,
|
|
1383
|
+
CreateListCommunicationBulkResponse,
|
|
1381
1384
|
CreateListCommunicationParams,
|
|
1382
1385
|
CreateListCommunicationResponse,
|
|
1383
1386
|
CreateListResponse,
|
|
@@ -2687,6 +2690,7 @@ export {
|
|
|
2687
2690
|
messageHistoryGetMessageRevisionsResponseItemsItemActionDefault,
|
|
2688
2691
|
messageHistoryGetMessageRevisionsResponseItemsItemChangedByRoleDefault,
|
|
2689
2692
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemDeletedByRoleDefault,
|
|
2693
|
+
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault,
|
|
2690
2694
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemForwardOriginKindDefault,
|
|
2691
2695
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault,
|
|
2692
2696
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemInteractivePlacementDefault,
|
|
@@ -2694,6 +2698,7 @@ export {
|
|
|
2694
2698
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemReplyToSenderRoleDefault,
|
|
2695
2699
|
messageHistorySearchLeftThreadsMessagesHistoryResponseItemsItemSenderRoleDefault,
|
|
2696
2700
|
messageHistorySearchMessagesResponseItemsItemDeletedByRoleDefault,
|
|
2701
|
+
messageHistorySearchMessagesResponseItemsItemFailuresItemMemberRoleDefault,
|
|
2697
2702
|
messageHistorySearchMessagesResponseItemsItemForwardOriginKindDefault,
|
|
2698
2703
|
messageHistorySearchMessagesResponseItemsItemInteractiveInputFieldStateDefault,
|
|
2699
2704
|
messageHistorySearchMessagesResponseItemsItemInteractivePlacementDefault,
|
|
@@ -2701,6 +2706,7 @@ export {
|
|
|
2701
2706
|
messageHistorySearchMessagesResponseItemsItemReplyToSenderRoleDefault,
|
|
2702
2707
|
messageHistorySearchMessagesResponseItemsItemSenderRoleDefault,
|
|
2703
2708
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemDeletedByRoleDefault,
|
|
2709
|
+
messageHistorySearchThreadMessagesHistoryResponseItemsItemFailuresItemMemberRoleDefault,
|
|
2704
2710
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemForwardOriginKindDefault,
|
|
2705
2711
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractiveInputFieldStateDefault,
|
|
2706
2712
|
messageHistorySearchThreadMessagesHistoryResponseItemsItemInteractivePlacementDefault,
|
|
@@ -2748,6 +2754,7 @@ export {
|
|
|
2748
2754
|
threadManagementAddMemberBodyRoleDefault,
|
|
2749
2755
|
threadManagementAddMemberResponseMemberRoleDefault,
|
|
2750
2756
|
threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault,
|
|
2757
|
+
threadManagementCreateResponseThreadLastMsgFailuresItemMemberRoleDefault,
|
|
2751
2758
|
threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault,
|
|
2752
2759
|
threadManagementCreateResponseThreadLastMsgInteractiveInputFieldStateDefault,
|
|
2753
2760
|
threadManagementCreateResponseThreadLastMsgInteractivePlacementDefault,
|
|
@@ -2758,6 +2765,7 @@ export {
|
|
|
2758
2765
|
threadManagementCreateResponseThreadReadStatesItemMemberRoleDefault,
|
|
2759
2766
|
threadManagementCreateResponseThreadTypeDefault,
|
|
2760
2767
|
threadManagementGetResponseLastMsgDeletedByRoleDefault,
|
|
2768
|
+
threadManagementGetResponseLastMsgFailuresItemMemberRoleDefault,
|
|
2761
2769
|
threadManagementGetResponseLastMsgForwardOriginKindDefault,
|
|
2762
2770
|
threadManagementGetResponseLastMsgInteractiveInputFieldStateDefault,
|
|
2763
2771
|
threadManagementGetResponseLastMsgInteractivePlacementDefault,
|
|
@@ -2768,6 +2776,7 @@ export {
|
|
|
2768
2776
|
threadManagementGetResponseReadStatesItemMemberRoleDefault,
|
|
2769
2777
|
threadManagementGetResponseTypeDefault,
|
|
2770
2778
|
threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2779
|
+
threadManagementSearchLeftResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
|
|
2771
2780
|
threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
2772
2781
|
threadManagementSearchLeftResponseItemsItemLastMsgInteractiveInputFieldStateDefault,
|
|
2773
2782
|
threadManagementSearchLeftResponseItemsItemLastMsgInteractivePlacementDefault,
|
|
@@ -2778,6 +2787,7 @@ export {
|
|
|
2778
2787
|
threadManagementSearchLeftResponseItemsItemReadStatesItemMemberRoleDefault,
|
|
2779
2788
|
threadManagementSearchLeftResponseItemsItemTypeDefault,
|
|
2780
2789
|
threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2790
|
+
threadManagementSearchResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
|
|
2781
2791
|
threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
2782
2792
|
threadManagementSearchResponseItemsItemLastMsgInteractiveInputFieldStateDefault,
|
|
2783
2793
|
threadManagementSearchResponseItemsItemLastMsgInteractivePlacementDefault,
|
|
@@ -2798,6 +2808,8 @@ export {
|
|
|
2798
2808
|
ThreadPermissionUpdateQueryParams,
|
|
2799
2809
|
ThreadPermissionUpdateResponse,
|
|
2800
2810
|
} from './webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.zod';
|
|
2811
|
+
export * from './webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice';
|
|
2812
|
+
export * from './webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod';
|
|
2801
2813
|
export * from './webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement';
|
|
2802
2814
|
export * from './webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod';
|
|
2803
2815
|
export * from './webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates';
|
|
@@ -129,6 +129,7 @@ export * from './webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-mes
|
|
|
129
129
|
export * from './webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod';
|
|
130
130
|
export * from './webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod';
|
|
131
131
|
export * from './webitel-im-api-gateway-v1-threadpermission/webitel-im-api-gateway-v1-threadpermission.zod';
|
|
132
|
+
export * from './webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod';
|
|
132
133
|
export * from './webitel-im-api-gateway-v1-threadtagmanagement/webitel-im-api-gateway-v1-threadtagmanagement.zod';
|
|
133
134
|
export * from './webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod';
|
|
134
135
|
export * from './webitel-im-api-provider-v1-facebookservice/webitel-im-api-provider-v1-facebookservice.zod';
|
|
@@ -14,9 +14,11 @@ import type {
|
|
|
14
14
|
EngineCreateListRequest,
|
|
15
15
|
EngineList,
|
|
16
16
|
EngineListCommunication,
|
|
17
|
+
EngineListCommunicationBulkResponse,
|
|
17
18
|
EngineListOfList,
|
|
18
19
|
EngineListOfListCommunication,
|
|
19
20
|
EngineListServiceCreateListCommunicationBody,
|
|
21
|
+
EngineListServiceCreateListCommunicationBulkBody,
|
|
20
22
|
EngineListServiceUpdateListBody,
|
|
21
23
|
EngineListServiceUpdateListCommunicationBody,
|
|
22
24
|
ReadListCommunicationParams,
|
|
@@ -137,6 +139,20 @@ export const // --- title start
|
|
|
137
139
|
options,
|
|
138
140
|
);
|
|
139
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* @summary Bulk create ListCommunication
|
|
144
|
+
*/
|
|
145
|
+
const createListCommunicationBulk = (
|
|
146
|
+
listId: string,
|
|
147
|
+
engineListServiceCreateListCommunicationBulkBody: EngineListServiceCreateListCommunicationBulkBody,
|
|
148
|
+
options?: AxiosRequestConfig,
|
|
149
|
+
): Promise<AxiosResponse<EngineListCommunicationBulkResponse>> => {
|
|
150
|
+
return axiosInstance.post(
|
|
151
|
+
`/call_center/list/${listId}/communication/bulk`,
|
|
152
|
+
engineListServiceCreateListCommunicationBulkBody,
|
|
153
|
+
options,
|
|
154
|
+
);
|
|
155
|
+
};
|
|
140
156
|
/**
|
|
141
157
|
* @summary Remove ListCommunication
|
|
142
158
|
*/
|
|
@@ -202,6 +218,7 @@ export const // --- title start
|
|
|
202
218
|
updateList,
|
|
203
219
|
searchListCommunication,
|
|
204
220
|
createListCommunication,
|
|
221
|
+
createListCommunicationBulk,
|
|
205
222
|
deleteListCommunication,
|
|
206
223
|
readListCommunication,
|
|
207
224
|
updateListCommunication,
|
|
@@ -216,6 +233,8 @@ export type SearchListCommunicationResult =
|
|
|
216
233
|
AxiosResponse<EngineListOfListCommunication>;
|
|
217
234
|
export type CreateListCommunicationResult =
|
|
218
235
|
AxiosResponse<EngineListCommunication>;
|
|
236
|
+
export type CreateListCommunicationBulkResult =
|
|
237
|
+
AxiosResponse<EngineListCommunicationBulkResponse>;
|
|
219
238
|
export type DeleteListCommunicationResult =
|
|
220
239
|
AxiosResponse<EngineListCommunication>;
|
|
221
240
|
export type ReadListCommunicationResult =
|
|
@@ -233,6 +233,68 @@ export const CreateListCommunicationResponse = zod.object({
|
|
|
233
233
|
number: zod.string().optional(),
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
+
/**
|
|
237
|
+
* @summary Bulk create ListCommunication
|
|
238
|
+
*/
|
|
239
|
+
export const CreateListCommunicationBulkParams = zod.object({
|
|
240
|
+
list_id: zod.string(),
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
export const CreateListCommunicationBulkBody = zod.object({
|
|
244
|
+
items: zod
|
|
245
|
+
.array(
|
|
246
|
+
zod.object({
|
|
247
|
+
description: zod.string().optional(),
|
|
248
|
+
expire_at: zod.string().optional(),
|
|
249
|
+
number: zod.string().optional(),
|
|
250
|
+
}),
|
|
251
|
+
)
|
|
252
|
+
.optional(),
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
export const CreateListCommunicationBulkResponse = zod.object({
|
|
256
|
+
data: zod
|
|
257
|
+
.array(
|
|
258
|
+
zod.object({
|
|
259
|
+
description: zod.string().optional(),
|
|
260
|
+
expire_at: zod.string().optional(),
|
|
261
|
+
id: zod.string().optional(),
|
|
262
|
+
list_id: zod.string().optional(),
|
|
263
|
+
number: zod.string().optional(),
|
|
264
|
+
}),
|
|
265
|
+
)
|
|
266
|
+
.optional(),
|
|
267
|
+
failures: zod
|
|
268
|
+
.array(
|
|
269
|
+
zod.object({
|
|
270
|
+
error: zod
|
|
271
|
+
.object({
|
|
272
|
+
code: zod.int().optional(),
|
|
273
|
+
details: zod
|
|
274
|
+
.array(
|
|
275
|
+
zod.object({
|
|
276
|
+
'@type': zod.string().optional(),
|
|
277
|
+
}),
|
|
278
|
+
)
|
|
279
|
+
.optional(),
|
|
280
|
+
message: zod.string().optional(),
|
|
281
|
+
})
|
|
282
|
+
.optional(),
|
|
283
|
+
index: zod.int().optional(),
|
|
284
|
+
item: zod
|
|
285
|
+
.object({
|
|
286
|
+
description: zod.string().optional(),
|
|
287
|
+
expire_at: zod.string().optional(),
|
|
288
|
+
id: zod.string().optional(),
|
|
289
|
+
list_id: zod.string().optional(),
|
|
290
|
+
number: zod.string().optional(),
|
|
291
|
+
})
|
|
292
|
+
.optional(),
|
|
293
|
+
}),
|
|
294
|
+
)
|
|
295
|
+
.optional(),
|
|
296
|
+
});
|
|
297
|
+
|
|
236
298
|
/**
|
|
237
299
|
* @summary Remove ListCommunication
|
|
238
300
|
*/
|