cv-contracts 0.0.29 → 1.0.2

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 (221) hide show
  1. package/README.md +35 -14
  2. package/dist/enums/ConversationType.d.ts +6 -0
  3. package/dist/enums/ConversationType.js +11 -0
  4. package/dist/enums/ConversationType.js.map +1 -0
  5. package/dist/enums/ConversationVisibility.d.ts +5 -0
  6. package/dist/enums/ConversationVisibility.js +10 -0
  7. package/dist/enums/ConversationVisibility.js.map +1 -0
  8. package/dist/enums/index.d.ts +2 -5
  9. package/dist/enums/index.js +2 -5
  10. package/dist/enums/index.js.map +1 -1
  11. package/dist/enums/webhook/ChannelType.js.map +1 -0
  12. package/dist/enums/webhook/ChannelVisibility.js.map +1 -0
  13. package/dist/enums/webhook/ResourceType.js.map +1 -0
  14. package/dist/enums/webhook/SubscriptionEvents.js.map +1 -0
  15. package/dist/enums/webhook/SubscriptionOperator.js.map +1 -0
  16. package/dist/enums/webhook/index.d.ts +5 -0
  17. package/dist/enums/webhook/index.js +22 -0
  18. package/dist/enums/webhook/index.js.map +1 -0
  19. package/dist/interfaces/AsyncMeetingStats.d.ts +1 -1
  20. package/dist/interfaces/Attachment.d.ts +1 -1
  21. package/dist/interfaces/Conversation.d.ts +23 -0
  22. package/dist/interfaces/{BasicUser.js → Conversation.js} +1 -1
  23. package/dist/interfaces/Conversation.js.map +1 -0
  24. package/dist/interfaces/Label.d.ts +1 -1
  25. package/dist/interfaces/Message.d.ts +9 -9
  26. package/dist/interfaces/User.d.ts +2 -2
  27. package/dist/interfaces/Workspace.d.ts +7 -7
  28. package/dist/interfaces/index.d.ts +3 -14
  29. package/dist/interfaces/index.js +3 -14
  30. package/dist/interfaces/index.js.map +1 -1
  31. package/dist/interfaces/webhook/SubscribedUserSettings.js.map +1 -0
  32. package/dist/interfaces/{SubscriptionFilter.d.ts → webhook/SubscriptionFilter.d.ts} +1 -1
  33. package/dist/interfaces/webhook/SubscriptionFilter.js.map +1 -0
  34. package/dist/interfaces/webhook/WebhookAsyncMeetingStats.d.ts +18 -0
  35. package/dist/interfaces/webhook/WebhookAsyncMeetingStats.js +3 -0
  36. package/dist/interfaces/webhook/WebhookAsyncMeetingStats.js.map +1 -0
  37. package/dist/interfaces/{BasicUser.d.ts → webhook/WebhookBasicUser.d.ts} +1 -1
  38. package/dist/interfaces/webhook/WebhookBasicUser.js +3 -0
  39. package/dist/interfaces/webhook/WebhookBasicUser.js.map +1 -0
  40. package/dist/interfaces/{Channel.d.ts → webhook/WebhookChannel.d.ts} +3 -3
  41. package/dist/interfaces/{Channel.js → webhook/WebhookChannel.js} +1 -1
  42. package/dist/interfaces/webhook/WebhookChannel.js.map +1 -0
  43. package/dist/interfaces/webhook/WebhookChannelUserJoined.d.ts +6 -0
  44. package/dist/interfaces/webhook/WebhookChannelUserJoined.js +3 -0
  45. package/dist/interfaces/webhook/WebhookChannelUserJoined.js.map +1 -0
  46. package/dist/interfaces/webhook/WebhookChannelUserLeft.d.ts +6 -0
  47. package/dist/interfaces/{ChannelUserJoined.js → webhook/WebhookChannelUserLeft.js} +1 -1
  48. package/dist/interfaces/webhook/WebhookChannelUserLeft.js.map +1 -0
  49. package/dist/interfaces/webhook/WebhookChannelUserRemoved.d.ts +7 -0
  50. package/dist/interfaces/webhook/WebhookChannelUserRemoved.js +3 -0
  51. package/dist/interfaces/webhook/WebhookChannelUserRemoved.js.map +1 -0
  52. package/dist/interfaces/webhook/WebhookChannelUsersAdded.d.ts +7 -0
  53. package/dist/interfaces/webhook/WebhookChannelUsersAdded.js +3 -0
  54. package/dist/interfaces/webhook/WebhookChannelUsersAdded.js.map +1 -0
  55. package/dist/interfaces/webhook/WebhookMessage.d.ts +26 -0
  56. package/dist/interfaces/{ChannelUserLeft.js → webhook/WebhookMessage.js} +1 -1
  57. package/dist/interfaces/webhook/WebhookMessage.js.map +1 -0
  58. package/dist/interfaces/{WebhookPayload.d.ts → webhook/WebhookPayload.d.ts} +2 -2
  59. package/dist/interfaces/webhook/WebhookPayload.js.map +1 -0
  60. package/dist/interfaces/webhook/WebhookWorkspace.d.ts +12 -0
  61. package/dist/interfaces/webhook/WebhookWorkspace.js +3 -0
  62. package/dist/interfaces/webhook/WebhookWorkspace.js.map +1 -0
  63. package/dist/interfaces/webhook/WebhookWorkspaceUserAdded.d.ts +6 -0
  64. package/dist/interfaces/webhook/WebhookWorkspaceUserAdded.js +3 -0
  65. package/dist/interfaces/webhook/WebhookWorkspaceUserAdded.js.map +1 -0
  66. package/dist/interfaces/webhook/WebhookWorkspaceUserJoined.d.ts +6 -0
  67. package/dist/interfaces/webhook/WebhookWorkspaceUserJoined.js +3 -0
  68. package/dist/interfaces/webhook/WebhookWorkspaceUserJoined.js.map +1 -0
  69. package/dist/interfaces/webhook/WebhookWorkspaceUserLeft.d.ts +6 -0
  70. package/dist/interfaces/webhook/WebhookWorkspaceUserLeft.js +3 -0
  71. package/dist/interfaces/webhook/WebhookWorkspaceUserLeft.js.map +1 -0
  72. package/dist/interfaces/webhook/WebhookWorkspaceUserRemoved.d.ts +7 -0
  73. package/dist/interfaces/webhook/WebhookWorkspaceUserRemoved.js +3 -0
  74. package/dist/interfaces/webhook/WebhookWorkspaceUserRemoved.js.map +1 -0
  75. package/dist/interfaces/webhook/WorkspaceFindableChannelCreated.d.ts +6 -0
  76. package/dist/interfaces/webhook/WorkspaceFindableChannelCreated.js.map +1 -0
  77. package/dist/interfaces/webhook/index.d.ts +17 -0
  78. package/dist/interfaces/webhook/index.js +34 -0
  79. package/dist/interfaces/webhook/index.js.map +1 -0
  80. package/dist/schemas/AsyncMeetingStatsSchema.d.ts +2 -2
  81. package/dist/schemas/AsyncMeetingStatsSchema.js +3 -3
  82. package/dist/schemas/AsyncMeetingStatsSchema.js.map +1 -1
  83. package/dist/schemas/AttachmentSchema.d.ts +2 -2
  84. package/dist/schemas/AttachmentSchema.js +3 -3
  85. package/dist/schemas/AttachmentSchema.js.map +1 -1
  86. package/dist/schemas/ConversationSchema.d.ts +162 -0
  87. package/dist/schemas/ConversationSchema.js +202 -0
  88. package/dist/schemas/ConversationSchema.js.map +1 -0
  89. package/dist/schemas/LabelSchema.d.ts +2 -2
  90. package/dist/schemas/LabelSchema.js +3 -3
  91. package/dist/schemas/LabelSchema.js.map +1 -1
  92. package/dist/schemas/MessageSchema.d.ts +19 -19
  93. package/dist/schemas/MessageSchema.js +23 -23
  94. package/dist/schemas/MessageSchema.js.map +1 -1
  95. package/dist/schemas/UserSchema.d.ts +4 -4
  96. package/dist/schemas/UserSchema.js +5 -5
  97. package/dist/schemas/UserSchema.js.map +1 -1
  98. package/dist/schemas/WorkspaceSchema.d.ts +8 -8
  99. package/dist/schemas/WorkspaceSchema.js +14 -14
  100. package/dist/schemas/WorkspaceSchema.js.map +1 -1
  101. package/dist/schemas/index.d.ts +1 -14
  102. package/dist/schemas/index.js +1 -14
  103. package/dist/schemas/index.js.map +1 -1
  104. package/dist/schemas/webhook/SubscribedUserSettingsSchema.js.map +1 -0
  105. package/dist/schemas/webhook/SubscriptionFilterSchema.js.map +1 -0
  106. package/dist/schemas/webhook/WebhookAsyncMeetingStatsSchema.d.ts +65 -0
  107. package/dist/schemas/webhook/WebhookAsyncMeetingStatsSchema.js +84 -0
  108. package/dist/schemas/webhook/WebhookAsyncMeetingStatsSchema.js.map +1 -0
  109. package/dist/schemas/{BasicUserSchema.d.ts → webhook/WebhookBasicUserSchema.d.ts} +2 -2
  110. package/dist/schemas/webhook/WebhookBasicUserSchema.js +27 -0
  111. package/dist/schemas/webhook/WebhookBasicUserSchema.js.map +1 -0
  112. package/dist/schemas/{ChannelSchema.d.ts → webhook/WebhookChannelSchema.d.ts} +3 -3
  113. package/dist/schemas/{ChannelSchema.js → webhook/WebhookChannelSchema.js} +27 -27
  114. package/dist/schemas/webhook/WebhookChannelSchema.js.map +1 -0
  115. package/dist/schemas/{ChannelUserJoinedSchema.d.ts → webhook/WebhookChannelUserJoinedSchema.d.ts} +5 -5
  116. package/dist/schemas/{ChannelUserJoinedSchema.js → webhook/WebhookChannelUserJoinedSchema.js} +14 -14
  117. package/dist/schemas/webhook/WebhookChannelUserJoinedSchema.js.map +1 -0
  118. package/dist/schemas/{ChannelUserLeftSchema.d.ts → webhook/WebhookChannelUserLeftSchema.d.ts} +5 -5
  119. package/dist/schemas/{ChannelUserLeftSchema.js → webhook/WebhookChannelUserLeftSchema.js} +14 -14
  120. package/dist/schemas/webhook/WebhookChannelUserLeftSchema.js.map +1 -0
  121. package/dist/schemas/{ChannelUserRemovedSchema.d.ts → webhook/WebhookChannelUserRemovedSchema.d.ts} +5 -5
  122. package/dist/schemas/{ChannelUserRemovedSchema.js → webhook/WebhookChannelUserRemovedSchema.js} +16 -16
  123. package/dist/schemas/webhook/WebhookChannelUserRemovedSchema.js.map +1 -0
  124. package/dist/schemas/{ChannelUsersAddedSchema.d.ts → webhook/WebhookChannelUsersAddedSchema.d.ts} +5 -5
  125. package/dist/schemas/{ChannelUsersAddedSchema.js → webhook/WebhookChannelUsersAddedSchema.js} +16 -16
  126. package/dist/schemas/{ChannelUserRemovedSchema.js.map → webhook/WebhookChannelUsersAddedSchema.js.map} +1 -1
  127. package/dist/schemas/webhook/WebhookMessageSchema.d.ts +149 -0
  128. package/dist/schemas/webhook/WebhookMessageSchema.js +175 -0
  129. package/dist/schemas/webhook/WebhookMessageSchema.js.map +1 -0
  130. package/dist/schemas/webhook/WebhookPayloadSchema.js.map +1 -0
  131. package/dist/schemas/{WorkspaceFindableChannelCreatedSchema.d.ts → webhook/WebhookWorkspaceFindableChannelCreatedSchema.d.ts} +5 -5
  132. package/dist/schemas/{WorkspaceFindableChannelCreatedSchema.js → webhook/WebhookWorkspaceFindableChannelCreatedSchema.js} +14 -14
  133. package/dist/schemas/webhook/WebhookWorkspaceFindableChannelCreatedSchema.js.map +1 -0
  134. package/dist/schemas/webhook/WebhookWorkspaceSchema.d.ts +50 -0
  135. package/dist/schemas/webhook/WebhookWorkspaceSchema.js +63 -0
  136. package/dist/schemas/webhook/WebhookWorkspaceSchema.js.map +1 -0
  137. package/dist/schemas/{WorkspaceUserAddedSchema.d.ts → webhook/WebhookWorkspaceUserAddedSchema.d.ts} +4 -4
  138. package/dist/schemas/{WorkspaceUserAddedSchema.js → webhook/WebhookWorkspaceUserAddedSchema.js} +12 -12
  139. package/dist/schemas/webhook/WebhookWorkspaceUserAddedSchema.js.map +1 -0
  140. package/dist/schemas/{WorkspaceUserJoinedSchema.d.ts → webhook/WebhookWorkspaceUserJoinedSchema.d.ts} +4 -4
  141. package/dist/schemas/{WorkspaceUserJoinedSchema.js → webhook/WebhookWorkspaceUserJoinedSchema.js} +12 -12
  142. package/dist/schemas/webhook/WebhookWorkspaceUserJoinedSchema.js.map +1 -0
  143. package/dist/schemas/{WorkspaceUserLeftSchema.d.ts → webhook/WebhookWorkspaceUserLeftSchema.d.ts} +4 -4
  144. package/dist/schemas/{WorkspaceUserLeftSchema.js → webhook/WebhookWorkspaceUserLeftSchema.js} +12 -12
  145. package/dist/schemas/webhook/WebhookWorkspaceUserLeftSchema.js.map +1 -0
  146. package/dist/schemas/{WorkspaceUserRemovedSchema.d.ts → webhook/WebhookWorkspaceUserRemovedSchema.d.ts} +4 -4
  147. package/dist/schemas/{WorkspaceUserRemovedSchema.js → webhook/WebhookWorkspaceUserRemovedSchema.js} +14 -14
  148. package/dist/schemas/webhook/WebhookWorkspaceUserRemovedSchema.js.map +1 -0
  149. package/dist/schemas/webhook/index.d.ts +17 -0
  150. package/dist/schemas/webhook/index.js +34 -0
  151. package/dist/schemas/webhook/index.js.map +1 -0
  152. package/package.json +1 -1
  153. package/dist/enums/ChannelType.js.map +0 -1
  154. package/dist/enums/ChannelVisibility.js.map +0 -1
  155. package/dist/enums/ResourceType.js.map +0 -1
  156. package/dist/enums/SubscriptionEvents.js.map +0 -1
  157. package/dist/enums/SubscriptionOperator.js.map +0 -1
  158. package/dist/interfaces/BasicUser.js.map +0 -1
  159. package/dist/interfaces/Channel.js.map +0 -1
  160. package/dist/interfaces/ChannelUserJoined.d.ts +0 -6
  161. package/dist/interfaces/ChannelUserJoined.js.map +0 -1
  162. package/dist/interfaces/ChannelUserLeft.d.ts +0 -6
  163. package/dist/interfaces/ChannelUserLeft.js.map +0 -1
  164. package/dist/interfaces/ChannelUserRemoved.d.ts +0 -7
  165. package/dist/interfaces/ChannelUserRemoved.js +0 -3
  166. package/dist/interfaces/ChannelUserRemoved.js.map +0 -1
  167. package/dist/interfaces/ChannelUsersAdded.d.ts +0 -7
  168. package/dist/interfaces/ChannelUsersAdded.js +0 -3
  169. package/dist/interfaces/ChannelUsersAdded.js.map +0 -1
  170. package/dist/interfaces/SubscribedUserSettings.js.map +0 -1
  171. package/dist/interfaces/SubscriptionFilter.js.map +0 -1
  172. package/dist/interfaces/WebhookPayload.js.map +0 -1
  173. package/dist/interfaces/WorkspaceFindableChannelCreated.d.ts +0 -6
  174. package/dist/interfaces/WorkspaceFindableChannelCreated.js.map +0 -1
  175. package/dist/interfaces/WorkspaceUserAdded.d.ts +0 -6
  176. package/dist/interfaces/WorkspaceUserAdded.js +0 -3
  177. package/dist/interfaces/WorkspaceUserAdded.js.map +0 -1
  178. package/dist/interfaces/WorkspaceUserJoined.d.ts +0 -6
  179. package/dist/interfaces/WorkspaceUserJoined.js +0 -3
  180. package/dist/interfaces/WorkspaceUserJoined.js.map +0 -1
  181. package/dist/interfaces/WorkspaceUserLeft.d.ts +0 -6
  182. package/dist/interfaces/WorkspaceUserLeft.js +0 -3
  183. package/dist/interfaces/WorkspaceUserLeft.js.map +0 -1
  184. package/dist/interfaces/WorkspaceUserRemoved.d.ts +0 -7
  185. package/dist/interfaces/WorkspaceUserRemoved.js +0 -3
  186. package/dist/interfaces/WorkspaceUserRemoved.js.map +0 -1
  187. package/dist/schemas/BasicUserSchema.js +0 -27
  188. package/dist/schemas/BasicUserSchema.js.map +0 -1
  189. package/dist/schemas/ChannelSchema.js.map +0 -1
  190. package/dist/schemas/ChannelUserJoinedSchema.js.map +0 -1
  191. package/dist/schemas/ChannelUserLeftSchema.js.map +0 -1
  192. package/dist/schemas/ChannelUsersAddedSchema.js.map +0 -1
  193. package/dist/schemas/SubscribedUserSettingsSchema.js.map +0 -1
  194. package/dist/schemas/SubscriptionFilterSchema.js.map +0 -1
  195. package/dist/schemas/WebhookPayloadSchema.js.map +0 -1
  196. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js.map +0 -1
  197. package/dist/schemas/WorkspaceUserAddedSchema.js.map +0 -1
  198. package/dist/schemas/WorkspaceUserJoinedSchema.js.map +0 -1
  199. package/dist/schemas/WorkspaceUserLeftSchema.js.map +0 -1
  200. package/dist/schemas/WorkspaceUserRemovedSchema.js.map +0 -1
  201. /package/dist/enums/{ChannelType.d.ts → webhook/ChannelType.d.ts} +0 -0
  202. /package/dist/enums/{ChannelType.js → webhook/ChannelType.js} +0 -0
  203. /package/dist/enums/{ChannelVisibility.d.ts → webhook/ChannelVisibility.d.ts} +0 -0
  204. /package/dist/enums/{ChannelVisibility.js → webhook/ChannelVisibility.js} +0 -0
  205. /package/dist/enums/{ResourceType.d.ts → webhook/ResourceType.d.ts} +0 -0
  206. /package/dist/enums/{ResourceType.js → webhook/ResourceType.js} +0 -0
  207. /package/dist/enums/{SubscriptionEvents.d.ts → webhook/SubscriptionEvents.d.ts} +0 -0
  208. /package/dist/enums/{SubscriptionEvents.js → webhook/SubscriptionEvents.js} +0 -0
  209. /package/dist/enums/{SubscriptionOperator.d.ts → webhook/SubscriptionOperator.d.ts} +0 -0
  210. /package/dist/enums/{SubscriptionOperator.js → webhook/SubscriptionOperator.js} +0 -0
  211. /package/dist/interfaces/{SubscribedUserSettings.d.ts → webhook/SubscribedUserSettings.d.ts} +0 -0
  212. /package/dist/interfaces/{SubscribedUserSettings.js → webhook/SubscribedUserSettings.js} +0 -0
  213. /package/dist/interfaces/{SubscriptionFilter.js → webhook/SubscriptionFilter.js} +0 -0
  214. /package/dist/interfaces/{WebhookPayload.js → webhook/WebhookPayload.js} +0 -0
  215. /package/dist/interfaces/{WorkspaceFindableChannelCreated.js → webhook/WorkspaceFindableChannelCreated.js} +0 -0
  216. /package/dist/schemas/{SubscribedUserSettingsSchema.d.ts → webhook/SubscribedUserSettingsSchema.d.ts} +0 -0
  217. /package/dist/schemas/{SubscribedUserSettingsSchema.js → webhook/SubscribedUserSettingsSchema.js} +0 -0
  218. /package/dist/schemas/{SubscriptionFilterSchema.d.ts → webhook/SubscriptionFilterSchema.d.ts} +0 -0
  219. /package/dist/schemas/{SubscriptionFilterSchema.js → webhook/SubscriptionFilterSchema.js} +0 -0
  220. /package/dist/schemas/{WebhookPayloadSchema.d.ts → webhook/WebhookPayloadSchema.d.ts} +0 -0
  221. /package/dist/schemas/{WebhookPayloadSchema.js → webhook/WebhookPayloadSchema.js} +0 -0
package/README.md CHANGED
@@ -14,29 +14,50 @@ npm i cv-contracts
14
14
 
15
15
  ## Import respective contract
16
16
  ```ts
17
- import { Message } from 'cv-contracts';
17
+ import { Message, Conversation } from 'cv-contracts';
18
18
 
19
19
  const msg: Message = {
20
- message_guid: string;
21
- creator_guid: string;
22
- channel_guid?: string | null;
23
- workspace_guid?: string | null;
24
- creator_first_name: string;
25
- creator_last_name: string;
26
- created_at: number;
27
- last_updated_at: number;
28
- deleted_at?: number | null;
20
+ id: string;
21
+ link: string;
22
+ creator_id: string;
23
+ conversation_id?: string | null;
24
+ workspace_id?: string | null;
25
+ created_at: string;
26
+ last_updated_at: string;
27
+ deleted_at?: string | null;
29
28
  duration_ms: number;
30
- message_url?: string | null;
29
+ audio_url?: string | null;
31
30
  audio_stream_url?: string | null;
32
- transcript_txt?: string | null;
33
- ai_summary_txt?: string | null;
31
+ transcript?: string | null;
32
+ ai_summary?: string | null;
34
33
  has_ai_summary?: boolean;
35
34
  waveform_url?: string | null;
36
35
  reply_count: number;
37
- parent_message_guid?: string | null;
36
+ parent_message_id?: string | null;
38
37
  language?: string | null;
39
38
  status: MessageStatus;
39
+ attachments?: Attachment[];
40
40
  type: MessageType;
41
41
  }
42
+ const conversation: Conversation = {
43
+ id: string;
44
+ link: string;
45
+ name: string;
46
+ description?: string | null;
47
+ workspace_id: string;
48
+ workspace_name: string;
49
+ workspace_image_url?: string | null;
50
+ owner_id: string;
51
+ type: ChannelType;
52
+ visibility: ChannelVisibility;
53
+ total_messages: number;
54
+ total_duration_ms: number;
55
+ image_url?: string | null;
56
+ is_private: boolean;
57
+ is_async: boolean;
58
+ async_stats?: AsyncMeetingStats | null;
59
+ created_at: string;
60
+ last_updated_at: string;
61
+ deleted_at?: string;
62
+ }
42
63
  ```
@@ -0,0 +1,6 @@
1
+ export declare enum ConversationType {
2
+ DirectMessage = "directMessage",
3
+ CustomerConversation = "customerConversation",
4
+ NamedConversation = "namedConversation",
5
+ AsyncMeeting = "asyncMeeting"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationType = void 0;
4
+ var ConversationType;
5
+ (function (ConversationType) {
6
+ ConversationType["DirectMessage"] = "directMessage";
7
+ ConversationType["CustomerConversation"] = "customerConversation";
8
+ ConversationType["NamedConversation"] = "namedConversation";
9
+ ConversationType["AsyncMeeting"] = "asyncMeeting";
10
+ })(ConversationType = exports.ConversationType || (exports.ConversationType = {}));
11
+ //# sourceMappingURL=ConversationType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationType.js","sourceRoot":"","sources":["../../src/enums/ConversationType.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mDAA+B,CAAA;IAC/B,iEAA6C,CAAA;IAC7C,2DAAuC,CAAA;IACvC,iDAA6B,CAAA;AAC/B,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
@@ -0,0 +1,5 @@
1
+ export declare enum ConversationVisibility {
2
+ Private = "private",
3
+ Workspace = "workspace",
4
+ Public = "public"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationVisibility = void 0;
4
+ var ConversationVisibility;
5
+ (function (ConversationVisibility) {
6
+ ConversationVisibility["Private"] = "private";
7
+ ConversationVisibility["Workspace"] = "workspace";
8
+ ConversationVisibility["Public"] = "public";
9
+ })(ConversationVisibility = exports.ConversationVisibility || (exports.ConversationVisibility = {}));
10
+ //# sourceMappingURL=ConversationVisibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationVisibility.js","sourceRoot":"","sources":["../../src/enums/ConversationVisibility.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,iDAAuB,CAAA;IACvB,2CAAiB,CAAA;AACnB,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
@@ -1,10 +1,7 @@
1
- export * from './ChannelType';
2
- export * from './ChannelVisibility';
1
+ export * from './ConversationType';
2
+ export * from './ConversationVisibility';
3
3
  export * from './MessageStatus';
4
4
  export * from './MessageType';
5
- export * from './ResourceType';
6
- export * from './SubscriptionEvents';
7
- export * from './SubscriptionOperator';
8
5
  export * from './LabelBehavior';
9
6
  export * from './LabelType';
10
7
  export * from './AttachmentType';
@@ -14,13 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ChannelType"), exports);
18
- __exportStar(require("./ChannelVisibility"), exports);
17
+ __exportStar(require("./ConversationType"), exports);
18
+ __exportStar(require("./ConversationVisibility"), exports);
19
19
  __exportStar(require("./MessageStatus"), exports);
20
20
  __exportStar(require("./MessageType"), exports);
21
- __exportStar(require("./ResourceType"), exports);
22
- __exportStar(require("./SubscriptionEvents"), exports);
23
- __exportStar(require("./SubscriptionOperator"), exports);
24
21
  __exportStar(require("./LabelBehavior"), exports);
25
22
  __exportStar(require("./LabelType"), exports);
26
23
  __exportStar(require("./AttachmentType"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,uDAAqC;AACrC,yDAAuC;AACvC,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,kDAAgC;AAChC,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,iEAA+C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelType.js","sourceRoot":"","sources":["../../../src/enums/webhook/ChannelType.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8CAA+B,CAAA;IAC/B,4DAA6C,CAAA;IAC7C,sDAAuC,CAAA;IACvC,4CAA6B,CAAA;AAC/B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelVisibility.js","sourceRoot":"","sources":["../../../src/enums/webhook/ChannelVisibility.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;AACnB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceType.js","sourceRoot":"","sources":["../../../src/enums/webhook/ResourceType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,yDAAyC,CAAA;IACzC,mDAAmC,CAAA;IACnC,uCAAuB,CAAA;IACvB,2DAA2C,CAAA;IAC3C,6DAA6C,CAAA;IAC7C,uDAAuC,CAAA;IACvC,mFAAmE,CAAA;AACrE,CAAC,EAZW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAYvB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionEvents.js","sourceRoot":"","sources":["../../../src/enums/webhook/SubscriptionEvents.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAsCX;AAtCD,WAAY,kBAAkB;IAC5B,eAAe;IACf,mEAA6C,CAAA;IAC7C,yDAAmC,CAAA;IACnC,uDAAiC,CAAA;IACjC,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,+DAAyC,CAAA;IACzC,2DAAqC,CAAA;IACrC,yDAAmC,CAAA;IACnC,uFAAiE,CAAA;IACjE,iEAA2C,CAAA;IAC3C,6EAAuD,CAAA;IAEvD,eAAe;IACf,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,iEAA2C,CAAA;IAC3C,iEAA2C,CAAA;IAC3C,6DAAuC,CAAA;IACvC,mEAA6C,CAAA;IAC7C,yEAAmD,CAAA;IACnD,+EAAyD,CAAA;IACzD,iEAA2C,CAAA;IAC3C,uEAAiD,CAAA;IACjD,yEAAmD,CAAA;IACnD,mFAA6D,CAAA;IAE7D,gBAAgB;IAChB,qEAA+C,CAAA;IAC/C,mEAA6C,CAAA;IAC7C,iEAA2C,CAAA;IAC3C,uEAAiD,CAAA;IACjD,+FAAyE,CAAA;IAEzE,+GAA+G;IAC/G,2EAAqD,CAAA;IACrD,6EAAuD,CAAA;AACzD,CAAC,EAtCW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAsC7B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionOperator.js","sourceRoot":"","sources":["../../../src/enums/webhook/SubscriptionOperator.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAEX;AAFD,WAAY,QAAQ;IAClB,yBAAa,CAAA;AACf,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB"}
@@ -0,0 +1,5 @@
1
+ export * from './ChannelType';
2
+ export * from './ChannelVisibility';
3
+ export * from './SubscriptionEvents';
4
+ export * from './SubscriptionOperator';
5
+ export * from './ResourceType';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ChannelType"), exports);
18
+ __exportStar(require("./ChannelVisibility"), exports);
19
+ __exportStar(require("./SubscriptionEvents"), exports);
20
+ __exportStar(require("./SubscriptionOperator"), exports);
21
+ __exportStar(require("./ResourceType"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enums/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,yDAAuC;AACvC,iDAA+B"}
@@ -1,5 +1,5 @@
1
1
  export interface AsyncMeetingStats {
2
- channel_stats: {
2
+ stats: {
3
3
  total_duration_milliseconds: number;
4
4
  total_heard_milliseconds: number;
5
5
  total_engaged_percentage: number;
@@ -1,6 +1,6 @@
1
1
  import { AttachmentType } from '../enums';
2
2
  export interface Attachment {
3
- _id: string;
3
+ id: string;
4
4
  creator_id: string;
5
5
  created_at: string;
6
6
  type: AttachmentType;
@@ -0,0 +1,23 @@
1
+ import { AsyncMeetingStats } from './AsyncMeetingStats';
2
+ import { ChannelType, ChannelVisibility } from '../enums/webhook';
3
+ export interface Conversation {
4
+ id: string;
5
+ link: string;
6
+ name: string;
7
+ description?: string | null;
8
+ workspace_id: string;
9
+ workspace_name: string;
10
+ workspace_image_url?: string | null;
11
+ owner_id: string;
12
+ type: ChannelType;
13
+ visibility: ChannelVisibility;
14
+ total_messages: number;
15
+ total_duration_ms: number;
16
+ image_url?: string | null;
17
+ is_private: boolean;
18
+ is_async: boolean;
19
+ async_stats?: AsyncMeetingStats | null;
20
+ created_at: string;
21
+ last_updated_at: string;
22
+ deleted_at?: string;
23
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=BasicUser.js.map
3
+ //# sourceMappingURL=Conversation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Conversation.js","sourceRoot":"","sources":["../../src/interfaces/Conversation.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { LabelBehavior, LabelType } from '../enums';
2
2
  export interface Label {
3
- _id: string;
3
+ id: string;
4
4
  name: string;
5
5
  behavior: LabelBehavior;
6
6
  type: LabelType;
@@ -2,23 +2,23 @@ import { Attachment } from './Attachment';
2
2
  import { MessageStatus } from '../enums';
3
3
  import { MessageType } from '../enums/MessageType';
4
4
  export interface Message {
5
- message_guid: string;
6
- self_link: string;
7
- creator_guid: string;
8
- channel_guid?: string | null;
9
- workspace_guid?: string | null;
5
+ id: string;
6
+ link: string;
7
+ creator_id: string;
8
+ conversation_id?: string | null;
9
+ workspace_id?: string | null;
10
10
  created_at: string;
11
11
  last_updated_at: string;
12
12
  deleted_at?: string | null;
13
13
  duration_ms: number;
14
- message_url?: string | null;
14
+ audio_url?: string | null;
15
15
  audio_stream_url?: string | null;
16
- transcript_txt?: string | null;
17
- ai_summary_txt?: string | null;
16
+ transcript?: string | null;
17
+ ai_summary?: string | null;
18
18
  has_ai_summary?: boolean;
19
19
  waveform_url?: string | null;
20
20
  reply_count: number;
21
- parent_message_guid?: string | null;
21
+ parent_message_id?: string | null;
22
22
  language?: string | null;
23
23
  status: MessageStatus;
24
24
  attachments?: Attachment[];
@@ -1,6 +1,6 @@
1
1
  export interface User {
2
- _id: string;
3
- self_link: string;
2
+ id: string;
3
+ link: string;
4
4
  first_name: string;
5
5
  last_name?: string;
6
6
  full_name: string;
@@ -1,12 +1,12 @@
1
1
  export interface Workspace {
2
- workspace_guid: string;
3
- workspace_name: string;
4
- workspace_description?: string | null;
2
+ id: string;
3
+ name: string;
4
+ description?: string | null;
5
5
  image_url?: string | null;
6
- owner_guid: string;
6
+ owner_id: string;
7
7
  owner_first_name: string;
8
8
  owner_last_name: string;
9
- created_at: number;
10
- last_updated_at: number;
11
- deleted_at?: number | null;
9
+ created_at: string;
10
+ last_updated_at: string;
11
+ deleted_at?: string | null;
12
12
  }
@@ -1,20 +1,9 @@
1
1
  export * from './AsyncMeetingStats';
2
- export * from './BasicUser';
3
- export * from './Channel';
4
- export * from './ChannelUserJoined';
5
- export * from './ChannelUserLeft';
6
- export * from './ChannelUserRemoved';
7
- export * from './ChannelUsersAdded';
2
+ export * from './Conversation';
8
3
  export * from './Message';
9
- export * from './SubscribedUserSettings';
10
- export * from './WebhookPayload';
4
+ export * from './webhook/SubscribedUserSettings';
11
5
  export * from './Workspace';
12
- export * from './WorkspaceFindableChannelCreated';
13
- export * from './WorkspaceUserAdded';
14
- export * from './WorkspaceUserJoined';
15
- export * from './WorkspaceUserLeft';
16
- export * from './WorkspaceUserRemoved';
17
- export * from './SubscriptionFilter';
6
+ export * from './webhook/SubscriptionFilter';
18
7
  export * from './Label';
19
8
  export * from './Attachment';
20
9
  export * from './User';
@@ -15,22 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AsyncMeetingStats"), exports);
18
- __exportStar(require("./BasicUser"), exports);
19
- __exportStar(require("./Channel"), exports);
20
- __exportStar(require("./ChannelUserJoined"), exports);
21
- __exportStar(require("./ChannelUserLeft"), exports);
22
- __exportStar(require("./ChannelUserRemoved"), exports);
23
- __exportStar(require("./ChannelUsersAdded"), exports);
18
+ __exportStar(require("./Conversation"), exports);
24
19
  __exportStar(require("./Message"), exports);
25
- __exportStar(require("./SubscribedUserSettings"), exports);
26
- __exportStar(require("./WebhookPayload"), exports);
20
+ __exportStar(require("./webhook/SubscribedUserSettings"), exports);
27
21
  __exportStar(require("./Workspace"), exports);
28
- __exportStar(require("./WorkspaceFindableChannelCreated"), exports);
29
- __exportStar(require("./WorkspaceUserAdded"), exports);
30
- __exportStar(require("./WorkspaceUserJoined"), exports);
31
- __exportStar(require("./WorkspaceUserLeft"), exports);
32
- __exportStar(require("./WorkspaceUserRemoved"), exports);
33
- __exportStar(require("./SubscriptionFilter"), exports);
22
+ __exportStar(require("./webhook/SubscriptionFilter"), exports);
34
23
  __exportStar(require("./Label"), exports);
35
24
  __exportStar(require("./Attachment"), exports);
36
25
  __exportStar(require("./User"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,sDAAoC;AACpC,4CAA0B;AAC1B,2DAAyC;AACzC,mDAAiC;AACjC,8CAA4B;AAC5B,oEAAkD;AAClD,uDAAqC;AACrC,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,4CAA0B;AAC1B,mEAAiD;AACjD,8CAA4B;AAC5B,+DAA6C;AAC7C,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscribedUserSettings.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/SubscribedUserSettings.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { Operator } from '../enums';
1
+ import { Operator } from '../../enums/webhook';
2
2
  export interface SubscriptionFilter {
3
3
  key: string;
4
4
  value: unknown;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubscriptionFilter.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/SubscriptionFilter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface WebhookAsyncMeetingStats {
2
+ channel_stats: {
3
+ total_duration_milliseconds: number;
4
+ total_heard_milliseconds: number;
5
+ total_engaged_percentage: number;
6
+ total_messages_posted: number;
7
+ total_users: number;
8
+ };
9
+ user_stats: {
10
+ user_id: string;
11
+ total_messages_posted: number;
12
+ total_sent_milliseconds: number;
13
+ total_heard_milliseconds: number;
14
+ total_engaged_percentage: number;
15
+ total_heard_messages: number;
16
+ total_unheard_messages: number;
17
+ }[];
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookAsyncMeetingStats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookAsyncMeetingStats.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookAsyncMeetingStats.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export interface BasicUser {
1
+ export interface WebhookBasicUser {
2
2
  user_guid: string;
3
3
  first_name: string;
4
4
  last_name: string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookBasicUser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookBasicUser.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookBasicUser.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- import { AsyncMeetingStats } from './AsyncMeetingStats';
2
- import { ChannelType, ChannelVisibility } from '../enums';
3
- export interface Channel {
1
+ import { ChannelType, ChannelVisibility } from '../../enums/webhook';
2
+ import { AsyncMeetingStats } from '../AsyncMeetingStats';
3
+ export interface WebhookChannel {
4
4
  channel_guid: string;
5
5
  self_link: string;
6
6
  channel_name: string;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Channel.js.map
3
+ //# sourceMappingURL=WebhookChannel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookChannel.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookChannel.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookChannel } from './WebhookChannel';
3
+ export interface WebhookChannelUserJoined {
4
+ channel: WebhookChannel;
5
+ joinedUser: WebhookBasicUser;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookChannelUserJoined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookChannelUserJoined.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookChannelUserJoined.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookChannel } from './WebhookChannel';
3
+ export interface WebhookChannelUserLeft {
4
+ channel: WebhookChannel;
5
+ leftUser: WebhookBasicUser;
6
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ChannelUserJoined.js.map
3
+ //# sourceMappingURL=WebhookChannelUserLeft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookChannelUserLeft.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookChannelUserLeft.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookChannel } from './WebhookChannel';
3
+ export interface WebhookChannelUserRemoved {
4
+ channel: WebhookChannel;
5
+ removedBy: WebhookBasicUser;
6
+ removedUser: WebhookBasicUser;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookChannelUserRemoved.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookChannelUserRemoved.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookChannelUserRemoved.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookChannel } from './WebhookChannel';
3
+ export interface WebhookChannelUsersAdded {
4
+ channel: WebhookChannel;
5
+ addedBy: WebhookBasicUser;
6
+ addedUsers: WebhookBasicUser[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookChannelUsersAdded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookChannelUsersAdded.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookChannelUsersAdded.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { MessageStatus } from '../../enums';
2
+ import { MessageType } from '../../enums/MessageType';
3
+ import { Attachment } from '../Attachment';
4
+ export interface WebhookMessage {
5
+ message_guid: string;
6
+ self_link: string;
7
+ creator_guid: string;
8
+ channel_guid?: string | null;
9
+ workspace_guid?: string | null;
10
+ created_at: string;
11
+ last_updated_at: string;
12
+ deleted_at?: string | null;
13
+ duration_ms: number;
14
+ message_url?: string | null;
15
+ audio_stream_url?: string | null;
16
+ transcript_txt?: string | null;
17
+ ai_summary_txt?: string | null;
18
+ has_ai_summary?: boolean;
19
+ waveform_url?: string | null;
20
+ reply_count: number;
21
+ parent_message_guid?: string | null;
22
+ language?: string | null;
23
+ status: MessageStatus;
24
+ attachments?: Attachment[];
25
+ type: MessageType;
26
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ChannelUserLeft.js.map
3
+ //# sourceMappingURL=WebhookMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookMessage.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookMessage.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { SubscribedUserSettings } from './SubscribedUserSettings';
2
- import { SubscriptionEvents } from '../enums';
3
- import { ResourceType } from '../enums/ResourceType';
2
+ import { SubscriptionEvents } from '../../enums/webhook';
3
+ import { ResourceType } from '../../enums/webhook/ResourceType';
4
4
  export interface WebhookPayload<Resource> {
5
5
  /**
6
6
  * The event name that happened
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookPayload.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookPayload.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export interface WebhookWorkspace {
2
+ workspace_guid: string;
3
+ workspace_name: string;
4
+ workspace_description?: string | null;
5
+ image_url?: string | null;
6
+ owner_guid: string;
7
+ owner_first_name: string;
8
+ owner_last_name: string;
9
+ created_at: number;
10
+ last_updated_at: number;
11
+ deleted_at?: number | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookWorkspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookWorkspace.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookWorkspace.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookWorkspace } from './WebhookWorkspace';
3
+ export interface WebhookWorkspaceUserAdded {
4
+ workspace: WebhookWorkspace;
5
+ addedUser: WebhookBasicUser;
6
+ }