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
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookWorkspaceUserAdded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookWorkspaceUserAdded.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookWorkspaceUserAdded.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookWorkspace } from './WebhookWorkspace';
3
+ export interface WebhookWorkspaceUserJoined {
4
+ workspace: WebhookWorkspace;
5
+ joinedUser: WebhookBasicUser;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookWorkspaceUserJoined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookWorkspaceUserJoined.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookWorkspaceUserJoined.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookWorkspace } from './WebhookWorkspace';
3
+ export interface WebhookWorkspaceUserLeft {
4
+ workspace: WebhookWorkspace;
5
+ leftUser: WebhookBasicUser;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookWorkspaceUserLeft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookWorkspaceUserLeft.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookWorkspaceUserLeft.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { WebhookBasicUser } from './WebhookBasicUser';
2
+ import { WebhookWorkspace } from './WebhookWorkspace';
3
+ export interface WebhookWorkspaceUserRemoved {
4
+ workspace: WebhookWorkspace;
5
+ removedBy: WebhookBasicUser;
6
+ removedUser: WebhookBasicUser;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=WebhookWorkspaceUserRemoved.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookWorkspaceUserRemoved.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookWorkspaceUserRemoved.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { WebhookChannel } from './WebhookChannel';
2
+ import { WebhookWorkspace } from './WebhookWorkspace';
3
+ export interface WebhookWorkspaceFindableChannelCreated {
4
+ channel: WebhookChannel;
5
+ workspace: WebhookWorkspace;
6
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceFindableChannelCreated.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WorkspaceFindableChannelCreated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ export * from './WebhookAsyncMeetingStats';
2
+ export * from './WebhookBasicUser';
3
+ export * from './WebhookChannel';
4
+ export * from './WebhookChannelUserJoined';
5
+ export * from './WebhookChannelUserLeft';
6
+ export * from './WebhookChannelUserRemoved';
7
+ export * from './WebhookChannelUsersAdded';
8
+ export * from './WebhookMessage';
9
+ export * from './WebhookPayload';
10
+ export * from './WebhookWorkspace';
11
+ export * from './WebhookWorkspaceUserAdded';
12
+ export * from './WebhookWorkspaceUserJoined';
13
+ export * from './WebhookWorkspaceUserLeft';
14
+ export * from './WebhookWorkspaceUserRemoved';
15
+ export * from './WorkspaceFindableChannelCreated';
16
+ export * from './SubscribedUserSettings';
17
+ export * from './SubscriptionFilter';
@@ -0,0 +1,34 @@
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("./WebhookAsyncMeetingStats"), exports);
18
+ __exportStar(require("./WebhookBasicUser"), exports);
19
+ __exportStar(require("./WebhookChannel"), exports);
20
+ __exportStar(require("./WebhookChannelUserJoined"), exports);
21
+ __exportStar(require("./WebhookChannelUserLeft"), exports);
22
+ __exportStar(require("./WebhookChannelUserRemoved"), exports);
23
+ __exportStar(require("./WebhookChannelUsersAdded"), exports);
24
+ __exportStar(require("./WebhookMessage"), exports);
25
+ __exportStar(require("./WebhookPayload"), exports);
26
+ __exportStar(require("./WebhookWorkspace"), exports);
27
+ __exportStar(require("./WebhookWorkspaceUserAdded"), exports);
28
+ __exportStar(require("./WebhookWorkspaceUserJoined"), exports);
29
+ __exportStar(require("./WebhookWorkspaceUserLeft"), exports);
30
+ __exportStar(require("./WebhookWorkspaceUserRemoved"), exports);
31
+ __exportStar(require("./WorkspaceFindableChannelCreated"), exports);
32
+ __exportStar(require("./SubscribedUserSettings"), exports);
33
+ __exportStar(require("./SubscriptionFilter"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD;AAClD,2DAAyC;AACzC,uDAAqC"}
@@ -1,7 +1,7 @@
1
1
  export declare const AsyncMeetingStatsSchema: {
2
2
  type: string;
3
3
  properties: {
4
- channel_stats: {
4
+ stats: {
5
5
  type: string;
6
6
  properties: {
7
7
  total_duration_milliseconds: {
@@ -60,6 +60,6 @@ export declare const AsyncMeetingStatsSchema: {
60
60
  $schema: string;
61
61
  };
62
62
  export declare enum AsyncMeetingStatsKeys {
63
- channel_stats = "channel_stats",
63
+ stats = "stats",
64
64
  user_stats = "user_stats"
65
65
  }
@@ -4,7 +4,7 @@ exports.AsyncMeetingStatsKeys = exports.AsyncMeetingStatsSchema = void 0;
4
4
  exports.AsyncMeetingStatsSchema = {
5
5
  type: 'object',
6
6
  properties: {
7
- channel_stats: {
7
+ stats: {
8
8
  type: 'object',
9
9
  properties: {
10
10
  total_duration_milliseconds: {
@@ -73,12 +73,12 @@ exports.AsyncMeetingStatsSchema = {
73
73
  },
74
74
  },
75
75
  additionalProperties: false,
76
- required: ['channel_stats', 'user_stats'],
76
+ required: ['stats', 'user_stats'],
77
77
  $schema: 'http://json-schema.org/draft-07/schema#',
78
78
  };
79
79
  var AsyncMeetingStatsKeys;
80
80
  (function (AsyncMeetingStatsKeys) {
81
- AsyncMeetingStatsKeys["channel_stats"] = "channel_stats";
81
+ AsyncMeetingStatsKeys["stats"] = "stats";
82
82
  AsyncMeetingStatsKeys["user_stats"] = "user_stats";
83
83
  })(AsyncMeetingStatsKeys = exports.AsyncMeetingStatsKeys || (exports.AsyncMeetingStatsKeys = {}));
84
84
  //# sourceMappingURL=AsyncMeetingStatsSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncMeetingStatsSchema.js","sourceRoot":"","sources":["../../src/schemas/AsyncMeetingStatsSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,2BAA2B,EAAE;oBAC3B,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,QAAQ;iBACf;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,6BAA6B;gBAC7B,0BAA0B;gBAC1B,0BAA0B;gBAC1B,uBAAuB;gBACvB,aAAa;aACd;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;qBACf;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,QAAQ;qBACf;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,QAAQ;qBACf;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,QAAQ;qBACf;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,QAAQ;qBACf;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,QAAQ;qBACf;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,QAAQ;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE;oBACR,0BAA0B;oBAC1B,sBAAsB;oBACtB,0BAA0B;oBAC1B,uBAAuB;oBACvB,yBAAyB;oBACzB,wBAAwB;oBACxB,SAAS;iBACV;aACF;SACF;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,eAAe,EAAE,YAAY,CAAC;IACzC,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wDAA+B,CAAA;IAC/B,kDAAyB,CAAA;AAC3B,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"AsyncMeetingStatsSchema.js","sourceRoot":"","sources":["../../src/schemas/AsyncMeetingStatsSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,2BAA2B,EAAE;oBAC3B,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,QAAQ;iBACf;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,6BAA6B;gBAC7B,0BAA0B;gBAC1B,0BAA0B;gBAC1B,uBAAuB;gBACvB,aAAa;aACd;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;qBACf;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,QAAQ;qBACf;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,QAAQ;qBACf;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,QAAQ;qBACf;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,QAAQ;qBACf;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,QAAQ;qBACf;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,QAAQ;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE;oBACR,0BAA0B;oBAC1B,sBAAsB;oBACtB,0BAA0B;oBAC1B,uBAAuB;oBACvB,yBAAyB;oBACzB,wBAAwB;oBACxB,SAAS;iBACV;aACF;SACF;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;IACjC,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,kDAAyB,CAAA;AAC3B,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
@@ -1,7 +1,7 @@
1
1
  export declare const AttachmentSchema: {
2
2
  type: string;
3
3
  properties: {
4
- _id: {
4
+ id: {
5
5
  type: string;
6
6
  };
7
7
  creator_id: {
@@ -44,7 +44,7 @@ export declare const AttachmentSchema: {
44
44
  $schema: string;
45
45
  };
46
46
  export declare enum AttachmentKeys {
47
- _id = "_id",
47
+ id = "id",
48
48
  creator_id = "creator_id",
49
49
  created_at = "created_at",
50
50
  type = "type",
@@ -4,7 +4,7 @@ exports.AttachmentKeys = exports.AttachmentSchema = void 0;
4
4
  exports.AttachmentSchema = {
5
5
  type: 'object',
6
6
  properties: {
7
- _id: {
7
+ id: {
8
8
  type: 'string',
9
9
  },
10
10
  creator_id: {
@@ -37,7 +37,7 @@ exports.AttachmentSchema = {
37
37
  location: {},
38
38
  },
39
39
  additionalProperties: false,
40
- required: ['_id', 'created_at', 'creator_id', 'link', 'type'],
40
+ required: ['created_at', 'creator_id', 'id', 'link', 'type'],
41
41
  definitions: {
42
42
  AttachmentType: {
43
43
  type: 'string',
@@ -48,7 +48,7 @@ exports.AttachmentSchema = {
48
48
  };
49
49
  var AttachmentKeys;
50
50
  (function (AttachmentKeys) {
51
- AttachmentKeys["_id"] = "_id";
51
+ AttachmentKeys["id"] = "id";
52
52
  AttachmentKeys["creator_id"] = "creator_id";
53
53
  AttachmentKeys["created_at"] = "created_at";
54
54
  AttachmentKeys["type"] = "type";
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentSchema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,8BAA8B;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB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,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE,EAAE;KACb;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;IAC5D,WAAW,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;SACnC;KACF;IACD,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,2BAAS,CAAA;IACT,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qDAAmC,CAAA;IACnC,uCAAqB,CAAA;AACvB,CAAC,EAZW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAYzB"}
@@ -0,0 +1,162 @@
1
+ export declare const ConversationSchema: {
2
+ type: string;
3
+ properties: {
4
+ id: {
5
+ type: string;
6
+ };
7
+ link: {
8
+ type: string;
9
+ };
10
+ name: {
11
+ type: string;
12
+ };
13
+ description: {
14
+ type: string[];
15
+ };
16
+ workspace_id: {
17
+ type: string;
18
+ };
19
+ workspace_name: {
20
+ type: string;
21
+ };
22
+ workspace_image_url: {
23
+ type: string[];
24
+ };
25
+ owner_id: {
26
+ type: string;
27
+ };
28
+ type: {
29
+ $ref: string;
30
+ };
31
+ visibility: {
32
+ $ref: string;
33
+ };
34
+ total_messages: {
35
+ type: string;
36
+ };
37
+ total_duration_ms: {
38
+ type: string;
39
+ };
40
+ image_url: {
41
+ type: string[];
42
+ };
43
+ is_private: {
44
+ type: string;
45
+ };
46
+ is_async: {
47
+ type: string;
48
+ };
49
+ async_stats: {
50
+ anyOf: ({
51
+ $ref: string;
52
+ type?: undefined;
53
+ } | {
54
+ type: string;
55
+ $ref?: undefined;
56
+ })[];
57
+ };
58
+ created_at: {
59
+ type: string;
60
+ };
61
+ last_updated_at: {
62
+ type: string;
63
+ };
64
+ deleted_at: {
65
+ type: string;
66
+ };
67
+ };
68
+ additionalProperties: boolean;
69
+ required: string[];
70
+ definitions: {
71
+ ChannelType: {
72
+ type: string;
73
+ enum: string[];
74
+ };
75
+ ChannelVisibility: {
76
+ type: string;
77
+ enum: string[];
78
+ };
79
+ AsyncMeetingStats: {
80
+ type: string;
81
+ properties: {
82
+ stats: {
83
+ type: string;
84
+ properties: {
85
+ total_duration_milliseconds: {
86
+ type: string;
87
+ };
88
+ total_heard_milliseconds: {
89
+ type: string;
90
+ };
91
+ total_engaged_percentage: {
92
+ type: string;
93
+ };
94
+ total_messages_posted: {
95
+ type: string;
96
+ };
97
+ total_users: {
98
+ type: string;
99
+ };
100
+ };
101
+ additionalProperties: boolean;
102
+ required: string[];
103
+ };
104
+ user_stats: {
105
+ type: string;
106
+ items: {
107
+ type: string;
108
+ properties: {
109
+ user_id: {
110
+ type: string;
111
+ };
112
+ total_messages_posted: {
113
+ type: string;
114
+ };
115
+ total_sent_milliseconds: {
116
+ type: string;
117
+ };
118
+ total_heard_milliseconds: {
119
+ type: string;
120
+ };
121
+ total_engaged_percentage: {
122
+ type: string;
123
+ };
124
+ total_heard_messages: {
125
+ type: string;
126
+ };
127
+ total_unheard_messages: {
128
+ type: string;
129
+ };
130
+ };
131
+ additionalProperties: boolean;
132
+ required: string[];
133
+ };
134
+ };
135
+ };
136
+ additionalProperties: boolean;
137
+ required: string[];
138
+ };
139
+ };
140
+ $schema: string;
141
+ };
142
+ export declare enum ConversationKeys {
143
+ id = "id",
144
+ link = "link",
145
+ name = "name",
146
+ description = "description",
147
+ workspace_id = "workspace_id",
148
+ workspace_name = "workspace_name",
149
+ workspace_image_url = "workspace_image_url",
150
+ owner_id = "owner_id",
151
+ type = "type",
152
+ visibility = "visibility",
153
+ total_messages = "total_messages",
154
+ total_duration_ms = "total_duration_ms",
155
+ image_url = "image_url",
156
+ is_private = "is_private",
157
+ is_async = "is_async",
158
+ async_stats = "async_stats",
159
+ created_at = "created_at",
160
+ last_updated_at = "last_updated_at",
161
+ deleted_at = "deleted_at"
162
+ }
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationKeys = exports.ConversationSchema = void 0;
4
+ exports.ConversationSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ id: {
8
+ type: 'string',
9
+ },
10
+ link: {
11
+ type: 'string',
12
+ },
13
+ name: {
14
+ type: 'string',
15
+ },
16
+ description: {
17
+ type: ['null', 'string'],
18
+ },
19
+ workspace_id: {
20
+ type: 'string',
21
+ },
22
+ workspace_name: {
23
+ type: 'string',
24
+ },
25
+ workspace_image_url: {
26
+ type: ['null', 'string'],
27
+ },
28
+ owner_id: {
29
+ type: 'string',
30
+ },
31
+ type: {
32
+ $ref: '#/definitions/ChannelType',
33
+ },
34
+ visibility: {
35
+ $ref: '#/definitions/ChannelVisibility',
36
+ },
37
+ total_messages: {
38
+ type: 'number',
39
+ },
40
+ total_duration_ms: {
41
+ type: 'number',
42
+ },
43
+ image_url: {
44
+ type: ['null', 'string'],
45
+ },
46
+ is_private: {
47
+ type: 'boolean',
48
+ },
49
+ is_async: {
50
+ type: 'boolean',
51
+ },
52
+ async_stats: {
53
+ anyOf: [
54
+ {
55
+ $ref: '#/definitions/AsyncMeetingStats',
56
+ },
57
+ {
58
+ type: 'null',
59
+ },
60
+ ],
61
+ },
62
+ created_at: {
63
+ type: 'string',
64
+ },
65
+ last_updated_at: {
66
+ type: 'string',
67
+ },
68
+ deleted_at: {
69
+ type: 'string',
70
+ },
71
+ },
72
+ additionalProperties: false,
73
+ required: [
74
+ 'created_at',
75
+ 'id',
76
+ 'is_async',
77
+ 'is_private',
78
+ 'last_updated_at',
79
+ 'link',
80
+ 'name',
81
+ 'owner_id',
82
+ 'total_duration_ms',
83
+ 'total_messages',
84
+ 'type',
85
+ 'visibility',
86
+ 'workspace_id',
87
+ 'workspace_name',
88
+ ],
89
+ definitions: {
90
+ ChannelType: {
91
+ type: 'string',
92
+ enum: [
93
+ 'directMessage',
94
+ 'customerConversation',
95
+ 'namedConversation',
96
+ 'asyncMeeting',
97
+ ],
98
+ },
99
+ ChannelVisibility: {
100
+ type: 'string',
101
+ enum: ['private', 'workspace', 'public'],
102
+ },
103
+ AsyncMeetingStats: {
104
+ type: 'object',
105
+ properties: {
106
+ stats: {
107
+ type: 'object',
108
+ properties: {
109
+ total_duration_milliseconds: {
110
+ type: 'number',
111
+ },
112
+ total_heard_milliseconds: {
113
+ type: 'number',
114
+ },
115
+ total_engaged_percentage: {
116
+ type: 'number',
117
+ },
118
+ total_messages_posted: {
119
+ type: 'number',
120
+ },
121
+ total_users: {
122
+ type: 'number',
123
+ },
124
+ },
125
+ additionalProperties: false,
126
+ required: [
127
+ 'total_duration_milliseconds',
128
+ 'total_engaged_percentage',
129
+ 'total_heard_milliseconds',
130
+ 'total_messages_posted',
131
+ 'total_users',
132
+ ],
133
+ },
134
+ user_stats: {
135
+ type: 'array',
136
+ items: {
137
+ type: 'object',
138
+ properties: {
139
+ user_id: {
140
+ type: 'string',
141
+ },
142
+ total_messages_posted: {
143
+ type: 'number',
144
+ },
145
+ total_sent_milliseconds: {
146
+ type: 'number',
147
+ },
148
+ total_heard_milliseconds: {
149
+ type: 'number',
150
+ },
151
+ total_engaged_percentage: {
152
+ type: 'number',
153
+ },
154
+ total_heard_messages: {
155
+ type: 'number',
156
+ },
157
+ total_unheard_messages: {
158
+ type: 'number',
159
+ },
160
+ },
161
+ additionalProperties: false,
162
+ required: [
163
+ 'total_engaged_percentage',
164
+ 'total_heard_messages',
165
+ 'total_heard_milliseconds',
166
+ 'total_messages_posted',
167
+ 'total_sent_milliseconds',
168
+ 'total_unheard_messages',
169
+ 'user_id',
170
+ ],
171
+ },
172
+ },
173
+ },
174
+ additionalProperties: false,
175
+ required: ['stats', 'user_stats'],
176
+ },
177
+ },
178
+ $schema: 'http://json-schema.org/draft-07/schema#',
179
+ };
180
+ var ConversationKeys;
181
+ (function (ConversationKeys) {
182
+ ConversationKeys["id"] = "id";
183
+ ConversationKeys["link"] = "link";
184
+ ConversationKeys["name"] = "name";
185
+ ConversationKeys["description"] = "description";
186
+ ConversationKeys["workspace_id"] = "workspace_id";
187
+ ConversationKeys["workspace_name"] = "workspace_name";
188
+ ConversationKeys["workspace_image_url"] = "workspace_image_url";
189
+ ConversationKeys["owner_id"] = "owner_id";
190
+ ConversationKeys["type"] = "type";
191
+ ConversationKeys["visibility"] = "visibility";
192
+ ConversationKeys["total_messages"] = "total_messages";
193
+ ConversationKeys["total_duration_ms"] = "total_duration_ms";
194
+ ConversationKeys["image_url"] = "image_url";
195
+ ConversationKeys["is_private"] = "is_private";
196
+ ConversationKeys["is_async"] = "is_async";
197
+ ConversationKeys["async_stats"] = "async_stats";
198
+ ConversationKeys["created_at"] = "created_at";
199
+ ConversationKeys["last_updated_at"] = "last_updated_at";
200
+ ConversationKeys["deleted_at"] = "deleted_at";
201
+ })(ConversationKeys = exports.ConversationKeys || (exports.ConversationKeys = {}));
202
+ //# sourceMappingURL=ConversationSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversationSchema.js","sourceRoot":"","sources":["../../src/schemas/ConversationSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,E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4BACR,0BAA0B;4BAC1B,sBAAsB;4BACtB,0BAA0B;4BAC1B,uBAAuB;4BACvB,yBAAyB;4BACzB,wBAAwB;4BACxB,SAAS;yBACV;qBACF;iBACF;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;SAClC;KACF;IACD,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,gBAoBX;AApBD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,+CAA2B,CAAA;IAC3B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,+DAA2C,CAAA;IAC3C,yCAAqB,CAAA;IACrB,iCAAa,CAAA;IACb,6CAAyB,CAAA;IACzB,qDAAiC,CAAA;IACjC,2DAAuC,CAAA;IACvC,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;IACzB,yCAAqB,CAAA;IACrB,+CAA2B,CAAA;IAC3B,6CAAyB,CAAA;IACzB,uDAAmC,CAAA;IACnC,6CAAyB,CAAA;AAC3B,CAAC,EApBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAoB3B"}
@@ -1,7 +1,7 @@
1
1
  export declare const LabelSchema: {
2
2
  type: string;
3
3
  properties: {
4
- _id: {
4
+ id: {
5
5
  type: string;
6
6
  };
7
7
  name: {
@@ -44,7 +44,7 @@ export declare const LabelSchema: {
44
44
  $schema: string;
45
45
  };
46
46
  export declare enum LabelKeys {
47
- _id = "_id",
47
+ id = "id",
48
48
  name = "name",
49
49
  behavior = "behavior",
50
50
  type = "type",
@@ -4,7 +4,7 @@ exports.LabelKeys = exports.LabelSchema = void 0;
4
4
  exports.LabelSchema = {
5
5
  type: 'object',
6
6
  properties: {
7
- _id: {
7
+ id: {
8
8
  type: 'string',
9
9
  },
10
10
  name: {
@@ -33,7 +33,7 @@ exports.LabelSchema = {
33
33
  },
34
34
  },
35
35
  additionalProperties: false,
36
- required: ['_id', 'behavior', 'creator_guid', 'name', 'type'],
36
+ required: ['behavior', 'creator_guid', 'id', 'name', 'type'],
37
37
  definitions: {
38
38
  LabelBehavior: {
39
39
  type: 'string',
@@ -48,7 +48,7 @@ exports.LabelSchema = {
48
48
  };
49
49
  var LabelKeys;
50
50
  (function (LabelKeys) {
51
- LabelKeys["_id"] = "_id";
51
+ LabelKeys["id"] = "id";
52
52
  LabelKeys["name"] = "name";
53
53
  LabelKeys["behavior"] = "behavior";
54
54
  LabelKeys["type"] = "type";
@@ -1 +1 @@
1
- {"version":3,"file":"LabelSchema.js","sourceRoot":"","sources":["../../src/schemas/LabelSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,6BAA6B;SACpC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,yBAAyB;SAChC;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,SAAS;SAChB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC;IAC7D,WAAW,EAAE;QACX,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,YAAY,CAAC;SAC/D;QACD,SAAS,EAAE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