@appconda/sdk 1.0.678 → 1.0.681

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.
@@ -126,6 +126,7 @@ export type TWorkerBackgroundJobExecutionPage = {
126
126
 
127
127
  export type TClearWorkerBackgroundJobExecutionsResult = {
128
128
  deletedCount: number;
129
+ cancelledActiveCount: number;
129
130
  retainedActiveCount: number;
130
131
  };
131
132
 
@@ -952,6 +953,149 @@ export type TChannel = {
952
953
  config: any;
953
954
  }
954
955
 
956
+ export type TWorkerChannelMessage = {
957
+ id: string;
958
+ tenantId: string;
959
+ channelId: string;
960
+ workerId: string;
961
+ provider: string;
962
+ direction: 'INBOUND' | 'OUTBOUND';
963
+ providerMessageId?: string | null;
964
+ idempotencyKey?: string | null;
965
+ inReplyToMessageId?: string | null;
966
+ inReplyToProviderMessageId?: string | null;
967
+ fromAddress: string;
968
+ toAddress: string;
969
+ kind: string;
970
+ body?: string | null;
971
+ media?: unknown;
972
+ status: string;
973
+ attemptCount?: number;
974
+ nextAttemptAt?: string | null;
975
+ leaseExpiresAt?: string | null;
976
+ error?: string | null;
977
+ processedAt?: string | null;
978
+ createdAt: string;
979
+ updatedAt: string;
980
+ }
981
+
982
+ export type TWorkerWhatsAppMessageHistory = {
983
+ channel: {
984
+ id: string;
985
+ name: string;
986
+ provider: string;
987
+ mode: 'sandbox' | 'production';
988
+ senderAddress: string;
989
+ status: string;
990
+ } | null;
991
+ messages: TWorkerChannelMessage[];
992
+ nextCursor: string | null;
993
+ }
994
+
995
+ export type TWorkerWhatsAppHealthCheck = {
996
+ id: string;
997
+ status: 'passed' | 'failed' | 'skipped';
998
+ message: string;
999
+ }
1000
+
1001
+ export type TWorkerWhatsAppHealth = {
1002
+ checkedAt?: string;
1003
+ inboundUrl?: string;
1004
+ statusUrl?: string;
1005
+ checks: TWorkerWhatsAppHealthCheck[];
1006
+ }
1007
+
1008
+ export type TSlackConversation = {
1009
+ id: string;
1010
+ name: string;
1011
+ isPrivate: boolean;
1012
+ isMember: boolean;
1013
+ }
1014
+
1015
+ export type TSlackConversationList = {
1016
+ team: { id: string; name: string };
1017
+ bot: { id: string; name: string };
1018
+ conversations: TSlackConversation[];
1019
+ }
1020
+
1021
+ export type TWorkerSlackHealthCheck = {
1022
+ id: string;
1023
+ status: 'passed' | 'failed' | 'skipped';
1024
+ message: string;
1025
+ }
1026
+
1027
+ export type TWorkerSlackHealth = {
1028
+ checkedAt?: string;
1029
+ eventsUrl?: string;
1030
+ webhookVerifiedAt?: string;
1031
+ teamId?: string;
1032
+ teamName?: string;
1033
+ botUserId?: string;
1034
+ botName?: string;
1035
+ checks: TWorkerSlackHealthCheck[];
1036
+ }
1037
+
1038
+ export type TWorkerSlackMessageHistory = {
1039
+ channel: {
1040
+ id: string;
1041
+ name: string;
1042
+ provider: 'slack';
1043
+ teamId: string;
1044
+ teamName: string;
1045
+ botUserId: string;
1046
+ status: string;
1047
+ } | null;
1048
+ messages: TWorkerChannelMessage[];
1049
+ nextCursor: string | null;
1050
+ }
1051
+
1052
+ export type TDiscordGuild = { id: string; name: string; icon: string | null }
1053
+ export type TDiscordGuildList = {
1054
+ bot: { id: string; name: string };
1055
+ application: { id: string; name: string };
1056
+ guilds: TDiscordGuild[];
1057
+ }
1058
+ export type TDiscordGuildChannel = {
1059
+ id: string;
1060
+ name: string;
1061
+ type: 'text' | 'announcement';
1062
+ parentId: string | null;
1063
+ position: number;
1064
+ }
1065
+ export type TDiscordGuildChannelList = {
1066
+ guild: { id: string; name: string };
1067
+ channels: TDiscordGuildChannel[];
1068
+ }
1069
+ export type TWorkerDiscordHealthCheck = {
1070
+ id: string;
1071
+ status: 'passed' | 'failed' | 'skipped';
1072
+ message: string;
1073
+ }
1074
+ export type TWorkerDiscordHealth = {
1075
+ checkedAt?: string;
1076
+ gatewayStatus?: string;
1077
+ connectedAt?: string;
1078
+ lastEventAt?: string;
1079
+ botUserId?: string;
1080
+ botName?: string;
1081
+ applicationId?: string;
1082
+ guildName?: string;
1083
+ checks: TWorkerDiscordHealthCheck[];
1084
+ }
1085
+ export type TWorkerDiscordMessageHistory = {
1086
+ channel: {
1087
+ id: string;
1088
+ name: string;
1089
+ provider: 'discord';
1090
+ guildId: string;
1091
+ guildName: string;
1092
+ botUserId: string;
1093
+ status: string;
1094
+ } | null;
1095
+ messages: TWorkerChannelMessage[];
1096
+ nextCursor: string | null;
1097
+ }
1098
+
955
1099
  export type TGoogleMeetCalendar = {
956
1100
  id: string;
957
1101
  summary: string;