hcloud-sdk 17.0.0 → 19.0.0

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 (321) hide show
  1. package/changelog.md +87 -76
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +24 -6
  4. package/lib/Hcloud.js +127 -24
  5. package/lib/helper/ErrorHelper.js +5 -2
  6. package/lib/helper/ValidationHelper.d.ts +14 -4
  7. package/lib/helper/ValidationHelper.js +71 -11
  8. package/lib/interfaces/agent/logging/cloudwatch.d.ts +23 -0
  9. package/lib/interfaces/agent/logging/index.d.ts +2 -0
  10. package/lib/interfaces/{friday → agent/logging}/index.js +2 -3
  11. package/lib/interfaces/agent/logging/log-collector.d.ts +35 -0
  12. package/lib/interfaces/agent/module/index.d.ts +7 -0
  13. package/lib/interfaces/agent/module/index.js +2 -0
  14. package/lib/interfaces/auditor/index.d.ts +13 -3
  15. package/lib/interfaces/auditor/index.js +9 -2
  16. package/lib/interfaces/axios/index.d.ts +5 -0
  17. package/lib/interfaces/cosmo/asset/index.d.ts +216 -0
  18. package/lib/interfaces/cosmo/asset/index.js +90 -0
  19. package/lib/interfaces/cosmo/comment/index.d.ts +41 -0
  20. package/lib/interfaces/cosmo/comment/index.js +8 -0
  21. package/lib/interfaces/cosmo/event/index.d.ts +60 -0
  22. package/lib/interfaces/cosmo/event/index.js +31 -0
  23. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  24. package/lib/interfaces/cosmo/location/index.js +2 -0
  25. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  26. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  27. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  28. package/lib/interfaces/cosmo/permissions.js +58 -0
  29. package/lib/interfaces/cosmo/share/index.d.ts +110 -0
  30. package/lib/interfaces/cosmo/share/index.js +23 -0
  31. package/lib/interfaces/cosmo/space/index.d.ts +31 -0
  32. package/lib/interfaces/cosmo/space/index.js +2 -0
  33. package/lib/interfaces/cosmo/stats/index.d.ts +11 -0
  34. package/lib/interfaces/cosmo/stats/index.js +2 -0
  35. package/lib/interfaces/cosmo/tag/tag.d.ts +13 -0
  36. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  37. package/lib/interfaces/global/Products.d.ts +2 -3
  38. package/lib/interfaces/global/Products.js +1 -2
  39. package/lib/interfaces/global/Views.d.ts +0 -1
  40. package/lib/interfaces/global/Views.js +0 -1
  41. package/lib/interfaces/high5/index.d.ts +7 -7
  42. package/lib/interfaces/high5/index.js +7 -7
  43. package/lib/interfaces/{friday → high5}/space/database/document/index.d.ts +1 -1
  44. package/lib/interfaces/{friday → high5}/space/database/document/index.js +2 -1
  45. package/lib/interfaces/high5/space/database/index.js +2 -0
  46. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +10 -2
  47. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +1 -0
  48. package/lib/interfaces/high5/space/execution/index.d.ts +3 -1
  49. package/lib/interfaces/{fuse/space/cronjob/CronjobLog.d.ts → high5/space/job/JobLog.d.ts} +3 -3
  50. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  51. package/lib/interfaces/high5/space/job/index.d.ts +83 -0
  52. package/lib/interfaces/high5/space/job/index.js +11 -0
  53. package/lib/interfaces/high5/stats.d.ts +21 -0
  54. package/lib/interfaces/high5/stats.js +2 -0
  55. package/lib/interfaces/high5/wave/dependentInputs.d.ts +42 -0
  56. package/lib/interfaces/high5/wave/dependentInputs.js +144 -0
  57. package/lib/interfaces/high5/wave/dependentInputsValidation.d.ts +22 -0
  58. package/lib/interfaces/high5/wave/dependentInputsValidation.js +220 -0
  59. package/lib/interfaces/idp/index.d.ts +3 -3
  60. package/lib/interfaces/idp/index.js +3 -3
  61. package/lib/interfaces/idp/oauth/device.d.ts +18 -0
  62. package/lib/interfaces/idp/oauth/device.js +2 -0
  63. package/lib/interfaces/idp/oauth/index.d.ts +19 -5
  64. package/lib/interfaces/idp/organization/index.d.ts +2 -0
  65. package/lib/interfaces/idp/organization/index.js +2 -0
  66. package/lib/interfaces/idp/organization/license/index.d.ts +13 -11
  67. package/lib/interfaces/idp/organization/member/index.d.ts +1 -0
  68. package/lib/interfaces/idp/organization/settings/oauthApp/index.d.ts +4 -0
  69. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  70. package/lib/interfaces/idp/organization/stats.js +2 -0
  71. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  72. package/lib/interfaces/idp/user/Message.d.ts +22 -0
  73. package/lib/interfaces/idp/user/Message.js +14 -0
  74. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  75. package/lib/interfaces/idp/user/Scopes.d.ts +1 -15
  76. package/lib/interfaces/idp/user/Scopes.js +0 -21
  77. package/lib/interfaces/idp/user/index.d.ts +5 -1
  78. package/lib/interfaces/mailer/index.d.ts +50 -2
  79. package/lib/interfaces/mailer/index.js +100 -2
  80. package/lib/interfaces/mothership/index.d.ts +3 -1
  81. package/lib/interfaces/mothership/index.js +15 -0
  82. package/lib/interfaces/mothership/stats.d.ts +4 -0
  83. package/lib/interfaces/mothership/stats.js +2 -0
  84. package/lib/interfaces/nats/index.d.ts +79 -51
  85. package/lib/interfaces/nats/index.js +140 -125
  86. package/lib/interfaces/shorts/index.d.ts +17 -0
  87. package/lib/interfaces/shorts/index.js +8 -0
  88. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  89. package/lib/service/agent/bundle/dev/index.js +16 -11
  90. package/lib/service/agent/bundle/index.d.ts +10 -4
  91. package/lib/service/agent/bundle/index.js +10 -7
  92. package/lib/service/agent/context/index.d.ts +22 -8
  93. package/lib/service/agent/context/index.js +19 -15
  94. package/lib/service/agent/index.d.ts +6 -0
  95. package/lib/service/agent/index.js +18 -1
  96. package/lib/service/agent/installer/index.js +4 -1
  97. package/lib/service/agent/logging/index.d.ts +69 -0
  98. package/lib/service/agent/logging/index.js +117 -0
  99. package/lib/service/agent/module/index.d.ts +36 -0
  100. package/lib/service/agent/module/index.js +65 -0
  101. package/lib/service/auditor/index.d.ts +8 -4
  102. package/lib/service/auditor/index.js +9 -6
  103. package/lib/service/auditor/internal/index.d.ts +27 -3
  104. package/lib/service/auditor/internal/index.js +38 -6
  105. package/lib/service/bouncer/features/index.d.ts +4 -2
  106. package/lib/service/bouncer/features/index.js +6 -3
  107. package/lib/service/bouncer/index.js +5 -2
  108. package/lib/service/cosmo/asset/index.d.ts +265 -0
  109. package/lib/service/cosmo/asset/index.js +420 -0
  110. package/lib/service/cosmo/comment/index.d.ts +93 -0
  111. package/lib/service/cosmo/comment/index.js +136 -0
  112. package/lib/service/cosmo/event/index.d.ts +23 -0
  113. package/lib/service/cosmo/event/index.js +43 -0
  114. package/lib/service/cosmo/folder/index.d.ts +27 -0
  115. package/lib/service/cosmo/folder/index.js +50 -0
  116. package/lib/service/cosmo/index.d.ts +52 -0
  117. package/lib/service/cosmo/index.js +129 -0
  118. package/lib/service/cosmo/internal/index.d.ts +7 -0
  119. package/lib/service/cosmo/internal/index.js +20 -0
  120. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  121. package/lib/service/cosmo/internal/space/index.js +37 -0
  122. package/lib/service/cosmo/location/index.d.ts +40 -0
  123. package/lib/service/cosmo/location/index.js +66 -0
  124. package/lib/service/cosmo/namespace/index.d.ts +56 -0
  125. package/lib/service/cosmo/namespace/index.js +85 -0
  126. package/lib/service/cosmo/organization/index.d.ts +47 -0
  127. package/lib/service/cosmo/organization/index.js +67 -0
  128. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  129. package/lib/service/cosmo/permissions/index.js +184 -0
  130. package/lib/service/cosmo/production/index.d.ts +26 -0
  131. package/lib/service/cosmo/production/index.js +48 -0
  132. package/lib/service/cosmo/share/index.d.ts +169 -0
  133. package/lib/service/cosmo/share/index.js +227 -0
  134. package/lib/service/cosmo/space/index.d.ts +131 -0
  135. package/lib/service/cosmo/space/index.js +190 -0
  136. package/lib/service/cosmo/stats/index.d.ts +35 -0
  137. package/lib/service/cosmo/stats/index.js +58 -0
  138. package/lib/service/cosmo/tag/index.d.ts +67 -0
  139. package/lib/service/cosmo/tag/index.js +96 -0
  140. package/lib/service/dali/DaliAvatar.d.ts +0 -6
  141. package/lib/service/dali/DaliAvatar.js +4 -11
  142. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +10 -4
  143. package/lib/service/dali/avatar/DaliCosmoSpace.js +12 -8
  144. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +11 -4
  145. package/lib/service/dali/avatar/DaliHigh5Pool.js +12 -8
  146. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +11 -4
  147. package/lib/service/dali/avatar/DaliHigh5Space.js +12 -8
  148. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +11 -4
  149. package/lib/service/dali/avatar/DaliOAuthApp.js +12 -8
  150. package/lib/service/dali/avatar/DaliOrganization.d.ts +11 -4
  151. package/lib/service/dali/avatar/DaliOrganization.js +12 -8
  152. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +10 -4
  153. package/lib/service/dali/avatar/DaliServiceAccount.js +12 -8
  154. package/lib/service/dali/avatar/DaliTeam.d.ts +11 -4
  155. package/lib/service/dali/avatar/DaliTeam.js +12 -8
  156. package/lib/service/dali/avatar/DaliUser.d.ts +11 -4
  157. package/lib/service/dali/avatar/DaliUser.js +12 -8
  158. package/lib/service/dali/index.d.ts +4 -5
  159. package/lib/service/dali/index.js +6 -6
  160. package/lib/service/high5/execution/index.d.ts +4 -2
  161. package/lib/service/high5/execution/index.js +7 -3
  162. package/lib/service/high5/execution/log/index.js +4 -1
  163. package/lib/service/high5/execution/status/index.d.ts +5 -3
  164. package/lib/service/high5/execution/status/index.js +7 -4
  165. package/lib/service/high5/index.d.ts +7 -2
  166. package/lib/service/high5/index.js +13 -3
  167. package/lib/service/high5/internal/index.d.ts +4 -2
  168. package/lib/service/high5/internal/index.js +7 -3
  169. package/lib/service/high5/internal/space/index.d.ts +10 -3
  170. package/lib/service/high5/internal/space/index.js +17 -5
  171. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  172. package/lib/service/high5/internal/space/job/index.js +20 -0
  173. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  174. package/lib/service/{fuse/internal/space/cronjob → high5/internal/space/job}/log/index.js +13 -10
  175. package/lib/service/high5/joinToken/index.d.ts +14 -6
  176. package/lib/service/high5/joinToken/index.js +14 -10
  177. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  178. package/lib/service/high5/space/database/document/array/index.js +105 -0
  179. package/lib/service/{friday → high5}/space/database/document/index.d.ts +26 -10
  180. package/lib/service/{friday → high5}/space/database/document/index.js +35 -17
  181. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  182. package/lib/service/high5/space/database/document/number/index.js +80 -0
  183. package/lib/service/{friday → high5}/space/database/index.d.ts +22 -12
  184. package/lib/service/{friday → high5}/space/database/index.js +22 -18
  185. package/lib/service/high5/space/event/index.d.ts +17 -7
  186. package/lib/service/high5/space/event/index.js +16 -12
  187. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  188. package/lib/service/high5/space/event/stream/design/DesignOperations.js +6 -3
  189. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  190. package/lib/service/high5/space/event/stream/design/index.js +13 -9
  191. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  192. package/lib/service/high5/space/event/stream/design/snapshot/index.js +16 -11
  193. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  194. package/lib/service/high5/space/event/stream/index.js +26 -22
  195. package/lib/service/high5/space/execution/index.d.ts +19 -7
  196. package/lib/service/high5/space/execution/index.js +21 -13
  197. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  198. package/lib/service/high5/space/execution/log/index.js +9 -6
  199. package/lib/service/high5/space/execution/status/index.d.ts +7 -3
  200. package/lib/service/high5/space/execution/status/index.js +8 -5
  201. package/lib/service/high5/space/index.d.ts +53 -14
  202. package/lib/service/high5/space/index.js +70 -28
  203. package/lib/service/{fuse/space/cronjob → high5/space/job}/index.d.ts +57 -35
  204. package/lib/service/{fuse/space/cronjob → high5/space/job}/index.js +88 -87
  205. package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.d.ts +15 -11
  206. package/lib/service/{fuse/space/cronjob → high5/space/job}/log/index.js +19 -16
  207. package/lib/service/high5/space/node/index.d.ts +20 -8
  208. package/lib/service/high5/space/node/index.js +18 -14
  209. package/lib/service/high5/space/pool/index.d.ts +38 -11
  210. package/lib/service/high5/space/pool/index.js +41 -19
  211. package/lib/service/high5/space/secret/index.d.ts +17 -7
  212. package/lib/service/high5/space/secret/index.js +16 -12
  213. package/lib/service/high5/space/stat/index.d.ts +12 -0
  214. package/lib/service/high5/space/stat/index.js +34 -0
  215. package/lib/service/high5/space/wave/index.d.ts +16 -6
  216. package/lib/service/high5/space/wave/index.js +15 -11
  217. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  218. package/lib/service/high5/space/webhook/index.js +29 -22
  219. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  220. package/lib/service/high5/space/webhook/log/index.js +6 -3
  221. package/lib/service/high5/stat/index.d.ts +11 -0
  222. package/lib/service/{fuse/internal → high5/stat}/index.js +16 -14
  223. package/lib/service/high5/wave/index.js +4 -1
  224. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  225. package/lib/service/high5/wave/s3/index.js +47 -23
  226. package/lib/service/idp/guest/index.d.ts +42 -0
  227. package/lib/service/idp/guest/index.js +69 -0
  228. package/lib/service/idp/index.d.ts +25 -7
  229. package/lib/service/idp/index.js +27 -13
  230. package/lib/service/idp/internal/index.d.ts +5 -3
  231. package/lib/service/idp/internal/index.js +9 -4
  232. package/lib/service/idp/oauth/device.d.ts +131 -0
  233. package/lib/service/idp/oauth/device.js +177 -0
  234. package/lib/service/idp/oauth/index.d.ts +19 -6
  235. package/lib/service/idp/oauth/index.js +26 -16
  236. package/lib/service/idp/organization/index.d.ts +28 -5
  237. package/lib/service/idp/organization/index.js +41 -11
  238. package/lib/service/idp/organization/license/index.d.ts +7 -3
  239. package/lib/service/idp/organization/license/index.js +8 -5
  240. package/lib/service/idp/organization/member/index.d.ts +20 -8
  241. package/lib/service/idp/organization/member/index.js +20 -15
  242. package/lib/service/idp/organization/member/invitations/index.d.ts +42 -9
  243. package/lib/service/idp/organization/member/invitations/index.js +94 -59
  244. package/lib/service/idp/organization/service-accounts/index.d.ts +31 -9
  245. package/lib/service/idp/organization/service-accounts/index.js +35 -14
  246. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  247. package/lib/service/idp/organization/settings/domain/index.js +13 -9
  248. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  249. package/lib/service/idp/organization/settings/domain/saml/index.js +23 -19
  250. package/lib/service/idp/organization/settings/index.js +4 -1
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +33 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +37 -16
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +33 -0
  255. package/lib/service/idp/organization/team/index.d.ts +32 -10
  256. package/lib/service/idp/organization/team/index.js +35 -14
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +19 -10
  259. package/lib/service/idp/user/index.d.ts +41 -11
  260. package/lib/service/idp/user/index.js +49 -19
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +8 -5
  263. package/lib/service/idp/user/message/index.d.ts +62 -0
  264. package/lib/service/idp/user/message/index.js +95 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +6 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +6 -3
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +10 -7
  271. package/lib/service/idp/user/settings/index.js +4 -1
  272. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  273. package/lib/service/idp/user/settings/notifications/index.js +8 -5
  274. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  275. package/lib/service/idp/user/settings/oauthApps/index.js +10 -6
  276. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  277. package/lib/service/idp/user/settings/pats/index.js +21 -16
  278. package/lib/service/idp/user/settings/twoFactor/index.js +4 -1
  279. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  280. package/lib/service/idp/user/settings/twoFactor/totp/index.js +17 -11
  281. package/lib/service/mailer/index.d.ts +4 -2
  282. package/lib/service/mailer/index.js +7 -4
  283. package/lib/service/mailer/internal/index.d.ts +14 -6
  284. package/lib/service/mailer/internal/index.js +12 -9
  285. package/lib/service/mothership/index.d.ts +35 -13
  286. package/lib/service/mothership/index.js +36 -18
  287. package/lib/service/nats/index.d.ts +7 -0
  288. package/lib/service/nats/index.js +77 -44
  289. package/lib/service/shorts/index.d.ts +18 -0
  290. package/lib/service/{friday → shorts}/index.js +17 -11
  291. package/lib/service/shorts/internal/index.d.ts +75 -0
  292. package/lib/service/shorts/internal/index.js +118 -0
  293. package/lib/utils/bouncer/features/Provider.js +0 -1
  294. package/package.json +2 -2
  295. package/lib/interfaces/friday/index.d.ts +0 -3
  296. package/lib/interfaces/friday/space/index.d.ts +0 -21
  297. package/lib/interfaces/friday/space/index.js +0 -11
  298. package/lib/interfaces/fuse/index.d.ts +0 -3
  299. package/lib/interfaces/fuse/index.js +0 -19
  300. package/lib/interfaces/fuse/space/cronjob/Cronjob.d.ts +0 -38
  301. package/lib/interfaces/fuse/space/cronjob/Cronjob.js +0 -8
  302. package/lib/interfaces/fuse/space/index.d.ts +0 -22
  303. package/lib/interfaces/fuse/space/index.js +0 -11
  304. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +0 -26
  305. package/lib/service/dali/avatar/DaliFuseSpace.js +0 -58
  306. package/lib/service/friday/index.d.ts +0 -13
  307. package/lib/service/friday/space/index.d.ts +0 -81
  308. package/lib/service/friday/space/index.js +0 -150
  309. package/lib/service/fuse/index.d.ts +0 -18
  310. package/lib/service/fuse/index.js +0 -48
  311. package/lib/service/fuse/internal/index.d.ts +0 -8
  312. package/lib/service/fuse/internal/space/cronjob/index.d.ts +0 -7
  313. package/lib/service/fuse/internal/space/cronjob/index.js +0 -17
  314. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +0 -15
  315. package/lib/service/fuse/internal/space/index.d.ts +0 -22
  316. package/lib/service/fuse/internal/space/index.js +0 -49
  317. package/lib/service/fuse/space/index.d.ts +0 -81
  318. package/lib/service/fuse/space/index.js +0 -152
  319. /package/lib/interfaces/{friday/space/database/index.js → agent/logging/cloudwatch.js} +0 -0
  320. /package/lib/interfaces/{fuse/space/cronjob/CronjobLog.js → agent/logging/log-collector.js} +0 -0
  321. /package/lib/interfaces/{friday → high5}/space/database/index.d.ts +0 -0
@@ -5,6 +5,8 @@ exports.ValidationHelper = ValidationHelper;
5
5
  var Entity;
6
6
  (function (Entity) {
7
7
  Entity["USER_NAME"] = "USER_NAME";
8
+ Entity["USER_PASSWORD"] = "USER_PASSWORD";
9
+ Entity["OAUTH_SECRET_NAME"] = "OAUTH_SECRET_NAME";
8
10
  Entity["ORGANIZATION_NAME"] = "ORGANIZATION_NAME";
9
11
  Entity["USER_ORGANIZATION_NAME"] = "USER_ORGANIZATION_NAME";
10
12
  Entity["TEAM_NAME"] = "TEAM_NAME";
@@ -20,7 +22,6 @@ var Entity;
20
22
  Entity["SECRET_KEY"] = "SECRET_KEY";
21
23
  Entity["SECRET_VALUE"] = "SECRET_VALUE";
22
24
  Entity["POOL_NAME"] = "POOL_NAME";
23
- Entity["FUSE_JOB"] = "FUSE_JOB";
24
25
  Entity["WAVE_ENGINE_RELEASE"] = "WAVE_ENGINE_RELEASE";
25
26
  Entity["CHALLENGE_STRING"] = "CHALLENGE_STRING";
26
27
  Entity["DATABASE_NAME"] = "DATABASE_NAME";
@@ -41,9 +42,18 @@ var Entity;
41
42
  Entity["CATALOG_ID"] = "CATALOG_ID";
42
43
  Entity["WEBHOOK_ID"] = "WEBHOOK_ID";
43
44
  Entity["WEBHOOK_TOKEN"] = "WEBHOOK_TOKEN";
44
- Entity["CRONJOB_ID"] = "CRONJOB_ID";
45
- Entity["CRONJOB_LOG_ID"] = "CRONJOB_LOG_ID";
45
+ Entity["JOB"] = "JOB";
46
+ Entity["JOB_ID"] = "JOB_ID";
47
+ Entity["JOB_LOG_ID"] = "JOB_LOG_ID";
46
48
  Entity["NAMESPACE_NAME"] = "NAMESPACE_NAME";
49
+ Entity["MESSAGE_ID"] = "MESSAGE_ID";
50
+ Entity["ARRAY_INDEX"] = "ARRAY_INDEX";
51
+ Entity["URL_SLUG"] = "URL_SLUG";
52
+ Entity["LONG_URL_SLUG"] = "LONG_URL_SLUG";
53
+ Entity["TAG_NAME"] = "TAG_NAME";
54
+ Entity["TAG_COLOR"] = "TAG_COLOR";
55
+ Entity["MODULE_NAME"] = "MODULE_NAME";
56
+ Entity["LOG_COLLECTOR_NAME"] = "LOG_COLLECTOR_NAME";
47
57
  })(Entity || (exports.Entity = Entity = {}));
48
58
  class EntityDetails {
49
59
  constructor(name) {
@@ -109,6 +119,16 @@ const entityCollection = {
109
119
  minLength: 3,
110
120
  maxLength: 255,
111
121
  },
122
+ [Entity.USER_PASSWORD]: {
123
+ pattern: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,255}$/i,
124
+ minLength: 8,
125
+ maxLength: 255,
126
+ },
127
+ [Entity.OAUTH_SECRET_NAME]: {
128
+ pattern: /^[\w\-.]{1,255}$/i,
129
+ minLength: 1,
130
+ maxLength: 255,
131
+ },
112
132
  [Entity.ORGANIZATION_NAME]: {
113
133
  // Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
114
134
  pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
@@ -142,7 +162,7 @@ const entityCollection = {
142
162
  maxLength: 64,
143
163
  },
144
164
  [Entity.SPACE_NAME]: {
145
- pattern: /^[a-zA-Z0-9-.]{1,32}$/i,
165
+ pattern: /^[\w-.]{1,32}$/i,
146
166
  minLength: 1,
147
167
  maxLength: 32,
148
168
  },
@@ -187,11 +207,6 @@ const entityCollection = {
187
207
  minLength: 1,
188
208
  maxLength: 128,
189
209
  },
190
- [Entity.FUSE_JOB]: {
191
- pattern: /^.{1,64}$/i,
192
- minLength: 1,
193
- maxLength: 64,
194
- },
195
210
  [Entity.WAVE_ENGINE_RELEASE]: {
196
211
  pattern: /^\d+\.\d+\.\d+(-dev-\d+)?$/i,
197
212
  symbols: /[dev0-9-.]/i,
@@ -293,12 +308,17 @@ const entityCollection = {
293
308
  minLength: 128,
294
309
  maxLength: 128,
295
310
  },
296
- [Entity.CRONJOB_ID]: {
311
+ [Entity.JOB]: {
312
+ pattern: /^.{1,64}$/i,
313
+ minLength: 1,
314
+ maxLength: 64,
315
+ },
316
+ [Entity.JOB_ID]: {
297
317
  pattern: /^[a-fA-F0-9]{24}$/i,
298
318
  minLength: 24,
299
319
  maxLength: 24,
300
320
  },
301
- [Entity.CRONJOB_LOG_ID]: {
321
+ [Entity.JOB_LOG_ID]: {
302
322
  pattern: /^[a-fA-F0-9]{24}$/i,
303
323
  minLength: 24,
304
324
  maxLength: 24,
@@ -309,4 +329,44 @@ const entityCollection = {
309
329
  minLength: 3,
310
330
  maxLength: 64,
311
331
  },
332
+ [Entity.MESSAGE_ID]: {
333
+ pattern: /^[a-fA-F0-9]{24}$/i,
334
+ minLength: 24,
335
+ maxLength: 24,
336
+ },
337
+ [Entity.ARRAY_INDEX]: {
338
+ pattern: /^\d{1,24}$/i,
339
+ minLength: 1,
340
+ maxLength: 24,
341
+ },
342
+ [Entity.URL_SLUG]: {
343
+ pattern: /^[A-NP-Za-km-z1-9]{6}$/i,
344
+ minLength: 6,
345
+ maxLength: 6,
346
+ },
347
+ [Entity.LONG_URL_SLUG]: {
348
+ pattern: /^[A-NP-Za-km-z1-9]{34}$/i,
349
+ minLength: 34,
350
+ maxLength: 34,
351
+ },
352
+ [Entity.TAG_NAME]: {
353
+ pattern: /^[a-zA-Z0-9 ]{1,20}$/i,
354
+ minLength: 1,
355
+ maxLength: 20,
356
+ },
357
+ [Entity.TAG_COLOR]: {
358
+ pattern: /^#([a-fA-F0-9]{3}|[a-fA-F0-9]{6})$/i,
359
+ minLength: 7,
360
+ maxLength: 7,
361
+ },
362
+ [Entity.MODULE_NAME]: {
363
+ pattern: /^[\w-.]{3,64}$/i,
364
+ minLength: 3,
365
+ maxLength: 64,
366
+ },
367
+ [Entity.LOG_COLLECTOR_NAME]: {
368
+ pattern: /^[\w-.]{1,64}$/i,
369
+ minLength: 1,
370
+ maxLength: 64,
371
+ },
312
372
  };
@@ -0,0 +1,23 @@
1
+ export interface AddCloudWatchDto {
2
+ logGroupName?: string;
3
+ logStreamName?: string;
4
+ awsRegion?: string;
5
+ retentionInDays?: number;
6
+ uploadRate: number;
7
+ level?: string;
8
+ jsonMessage: boolean;
9
+ awsOptions?: {
10
+ region?: string;
11
+ credentials?: {
12
+ accessKeyId: string;
13
+ secretAccessKey: string;
14
+ sessionToken?: string;
15
+ };
16
+ };
17
+ }
18
+ export interface CloudWatchDto {
19
+ name: string;
20
+ logGroupName?: string;
21
+ logStreamName?: string;
22
+ level: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./cloudwatch";
2
+ export * from "./log-collector";
@@ -14,6 +14,5 @@ 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("./space"), exports);
18
- __exportStar(require("./space/database"), exports);
19
- __exportStar(require("./space/database/document"), exports);
17
+ __exportStar(require("./cloudwatch"), exports);
18
+ __exportStar(require("./log-collector"), exports);
@@ -0,0 +1,35 @@
1
+ export interface AddLogCollectorDto {
2
+ name: string;
3
+ host: string;
4
+ port?: number;
5
+ path: string;
6
+ ssl: boolean;
7
+ enabled: boolean;
8
+ auth?: {
9
+ username: string;
10
+ password: string;
11
+ };
12
+ headers?: {
13
+ [key: string]: string;
14
+ };
15
+ batch?: boolean;
16
+ batchInterval?: number;
17
+ batchCount?: number;
18
+ level?: string;
19
+ }
20
+ export interface LogCollectorDto {
21
+ name: string;
22
+ url: string;
23
+ enabled: boolean;
24
+ auth?: {
25
+ username: string;
26
+ password: string;
27
+ };
28
+ headers?: {
29
+ [key: string]: string;
30
+ };
31
+ batch?: boolean;
32
+ batchInterval?: number;
33
+ batchCount?: number;
34
+ level?: string;
35
+ }
@@ -0,0 +1,7 @@
1
+ export interface ModuleDto {
2
+ name: string;
3
+ moduleName: string;
4
+ author: string;
5
+ version: string;
6
+ isBeta: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,10 +10,10 @@ export declare enum Origin {
10
10
  High5 = "high5",
11
11
  Auditor = "auditor",
12
12
  Mailer = "mailer",
13
- Fuse = "fuse",
14
13
  Mothership = "mothership",
15
14
  Dali = "dali",
16
- Friday = "friday"
15
+ Shorts = "shorts",
16
+ Cosmo = "cosmo"
17
17
  }
18
18
  export declare enum Event {
19
19
  Login = "login",
@@ -27,13 +27,20 @@ export declare enum Event {
27
27
  Stream = "stream",
28
28
  Mail = "mail",
29
29
  Webhook = "webhook",
30
+ Job = "job",
30
31
  Cronjob = "cronjob",
31
32
  Secret = "secret",
32
33
  Agent = "agent",
33
34
  Avatar = "avatar",
34
35
  ServiceAccount = "serviceAccount",
35
36
  Database = "database",
36
- Document = "document"
37
+ Document = "document",
38
+ Asset = "asset",
39
+ Share = "share",
40
+ Role = "role",
41
+ Group = "group",
42
+ Tag = "tag",
43
+ Reference = "reference"
37
44
  }
38
45
  export declare enum Type {
39
46
  Read = "read",
@@ -63,6 +70,7 @@ export interface AuditLog {
63
70
  message?: unknown;
64
71
  expireAt: Date;
65
72
  requestorIp: string;
73
+ assetId?: string;
66
74
  }
67
75
  export interface AuditLogCreate {
68
76
  level: Level;
@@ -75,4 +83,6 @@ export interface AuditLogCreate {
75
83
  type?: Type;
76
84
  message?: unknown;
77
85
  requestorIp: string;
86
+ assetId?: string;
87
+ preventTTL?: boolean;
78
88
  }
@@ -14,10 +14,10 @@ var Origin;
14
14
  Origin["High5"] = "high5";
15
15
  Origin["Auditor"] = "auditor";
16
16
  Origin["Mailer"] = "mailer";
17
- Origin["Fuse"] = "fuse";
18
17
  Origin["Mothership"] = "mothership";
19
18
  Origin["Dali"] = "dali";
20
- Origin["Friday"] = "friday";
19
+ Origin["Shorts"] = "shorts";
20
+ Origin["Cosmo"] = "cosmo";
21
21
  })(Origin || (exports.Origin = Origin = {}));
22
22
  var Event;
23
23
  (function (Event) {
@@ -32,6 +32,7 @@ var Event;
32
32
  Event["Stream"] = "stream";
33
33
  Event["Mail"] = "mail";
34
34
  Event["Webhook"] = "webhook";
35
+ Event["Job"] = "job";
35
36
  Event["Cronjob"] = "cronjob";
36
37
  Event["Secret"] = "secret";
37
38
  Event["Agent"] = "agent";
@@ -39,6 +40,12 @@ var Event;
39
40
  Event["ServiceAccount"] = "serviceAccount";
40
41
  Event["Database"] = "database";
41
42
  Event["Document"] = "document";
43
+ Event["Asset"] = "asset";
44
+ Event["Share"] = "share";
45
+ Event["Role"] = "role";
46
+ Event["Group"] = "group";
47
+ Event["Tag"] = "tag";
48
+ Event["Reference"] = "reference";
42
49
  })(Event || (exports.Event = Event = {}));
43
50
  var Type;
44
51
  (function (Type) {
@@ -3,3 +3,8 @@ export declare const disableCacheHeaders: {
3
3
  Pragma: string;
4
4
  Expires: string;
5
5
  };
6
+ export type RefreshToken = {
7
+ token: string;
8
+ expiresAt: number;
9
+ callback?: (newAccessToken: string, newRefreshToken: RefreshToken) => void;
10
+ };
@@ -0,0 +1,216 @@
1
+ import { ReducedSpace } from "../../global";
2
+ import { SearchFilterComparatorString, SearchFilterType } from "../../global/SearchFilters";
3
+ import { ReducedTeam } from "../../idp";
4
+ import { ReducedOrganization } from "../../idp/organization";
5
+ import { ReducedUser } from "../../idp/user";
6
+ import { CosmoSpace } from "../space";
7
+ import { Tag } from "../tag/tag";
8
+ export interface BaseAsset {
9
+ _id: string;
10
+ name: string;
11
+ type: ItemType;
12
+ createDate: number;
13
+ modifyDate: number;
14
+ creator: ReducedUser;
15
+ organization: ReducedOrganization;
16
+ space: ReducedSpace;
17
+ permissions?: string[];
18
+ breadcrumb?: (Asset | CosmoSpace)[];
19
+ }
20
+ export type Asset = BaseAsset & ({
21
+ type: ItemType.MEDIA_ASSET;
22
+ extension: string;
23
+ assetType: AssetType;
24
+ path: string;
25
+ status: UploadStatus;
26
+ progress: number;
27
+ tag?: Tag;
28
+ previewUrl?: string;
29
+ tilePreviewVttUrl?: string;
30
+ duration?: number;
31
+ frameRate?: number;
32
+ media?: Media[];
33
+ thumbnailUrl?: string;
34
+ namespaces?: Record<string, {
35
+ status: string;
36
+ tag?: Tag;
37
+ metadata?: NamespaceMetadata;
38
+ }>;
39
+ } | Production | Folder | AssetReference);
40
+ export type Production = {
41
+ type: ItemType.PRODUCTION;
42
+ };
43
+ export type Folder = {
44
+ type: ItemType.FOLDER;
45
+ children?: Asset[];
46
+ };
47
+ export type AssetReference = {
48
+ type: ItemType.REFERENCE;
49
+ reference: {
50
+ status: string;
51
+ };
52
+ };
53
+ export declare enum AssetType {
54
+ VIDEO = "VIDEO",
55
+ IMAGE = "IMAGE",
56
+ DOCUMENT = "DOCUMENT",
57
+ UNKNOWN = "UNKNOWN",
58
+ FOLDER = "FOLDER"
59
+ }
60
+ export declare enum ItemType {
61
+ ASSET = "ASSET",
62
+ MEDIA_ASSET = "MEDIA_ASSET",
63
+ REFERENCE = "REFERENCE",
64
+ SPACE = "SPACE",
65
+ PRODUCTION = "PRODUCTION",
66
+ PROJECT = "PROJECT",
67
+ FOLDER = "FOLDER",
68
+ COMMENT = "COMMENT",
69
+ TAG = "TAG"
70
+ }
71
+ export declare enum UploadStatus {
72
+ WAITING = "WAITING",
73
+ UPLOADING = "UPLOADING",
74
+ UPLOADED = "UPLOADED",
75
+ PROCESSING = "PROCESSING",
76
+ FINISHED = "FINISHED",
77
+ FAILED = "FAILED",
78
+ POST_PROCESSING = "POST_PROCESSING"
79
+ }
80
+ export type NamespaceRushStatus = "approved" | "rejected" | "none";
81
+ export interface Upload {
82
+ url: string;
83
+ token: string;
84
+ expiration: number;
85
+ libraryId?: string;
86
+ videoId?: string;
87
+ }
88
+ export declare enum AssetPermission {
89
+ CONTRIBUTE = "CONTRIBUTE",
90
+ DOWNLOAD = "DOWNLOAD",
91
+ DELETE = "DELETE",
92
+ READ_DETAILS = "READ_DETAILS"
93
+ }
94
+ type BaseMedia = {
95
+ url?: string;
96
+ };
97
+ export type Mentionable = (ReducedUser & {
98
+ type: "user";
99
+ }) | (ReducedTeam & {
100
+ type: "team";
101
+ });
102
+ export type Media = (BaseMedia & {
103
+ type: MediaType.VIDEO;
104
+ name: "original" | string;
105
+ fileSize: number;
106
+ metadata: (VideoMetadata | AudioMetadata)[];
107
+ }) | (BaseMedia & {
108
+ type: MediaType.AUDIO;
109
+ name: string;
110
+ metadata: AudioMetadata[];
111
+ }) | (BaseMedia & {
112
+ type: MediaType.IMAGE;
113
+ name: string;
114
+ }) | (BaseMedia & {
115
+ type: MediaType.VTT;
116
+ name: string;
117
+ }) | (BaseMedia & {
118
+ type: MediaType.UNKNOWN;
119
+ name: string;
120
+ });
121
+ export declare enum MediaType {
122
+ VIDEO = "VIDEO",
123
+ AUDIO = "AUDIO",
124
+ IMAGE = "IMAGE",
125
+ UNKNOWN = "UNKNOWN",
126
+ VTT = "VTT"
127
+ }
128
+ export declare enum MetadataType {
129
+ VIDEO = "VIDEO",
130
+ AUDIO = "AUDIO",
131
+ UNKNOWN = "UNKNOWN"
132
+ }
133
+ export interface VideoMetadata {
134
+ type: MetadataType.VIDEO;
135
+ codec: string;
136
+ frameRate: number;
137
+ pixelFormat: string;
138
+ aspectRatio: string;
139
+ colorSpace: string;
140
+ width: number;
141
+ height: number;
142
+ fieldOrder: string;
143
+ duration: number;
144
+ tcIn: number;
145
+ tcOut: number;
146
+ noOfFrames: number;
147
+ formatLongName: string;
148
+ }
149
+ export interface AudioMetadata {
150
+ type: MetadataType.AUDIO;
151
+ codec: string;
152
+ channels: number;
153
+ channelLayout: string;
154
+ bitRate: number;
155
+ sampleRate: number;
156
+ }
157
+ export interface CreateAsset {
158
+ name: string;
159
+ parentId?: string;
160
+ tags?: string[];
161
+ categories?: string[];
162
+ }
163
+ export interface PatchAsset {
164
+ tags?: string[];
165
+ categories?: string[];
166
+ }
167
+ export declare enum Resolution {
168
+ ORIGINAL = "original",
169
+ R1080 = "1080",
170
+ R720 = "720",
171
+ R480 = "480"
172
+ }
173
+ export declare const supportedFormats: string[];
174
+ export declare const searchParams: {
175
+ readonly type: {
176
+ readonly type: readonly [SearchFilterType.STRING, SearchFilterType.SELECT, SearchFilterType.TYPEAHEAD];
177
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT];
178
+ };
179
+ readonly _id: {
180
+ readonly type: readonly [SearchFilterType.STRING];
181
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT];
182
+ };
183
+ readonly name: {
184
+ readonly type: readonly [SearchFilterType.STRING, SearchFilterType.SELECT, SearchFilterType.TYPEAHEAD];
185
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT, SearchFilterComparatorString.CONTAINS];
186
+ };
187
+ };
188
+ export interface AssetFilter {
189
+ key: keyof typeof searchParams;
190
+ type: (typeof searchParams)[this["key"]]["type"][number];
191
+ value: string;
192
+ comparator: (typeof searchParams)[this["key"]]["comparators"][number];
193
+ }
194
+ export declare enum AssetSearchContext {
195
+ ORGANIZATION = "ORGANIZATION",
196
+ TRASH = "TRASH",
197
+ SHARE = "SHARE"
198
+ }
199
+ export declare enum SubscriptionFilter {
200
+ STATUS = "status",
201
+ TAGS = "tags",
202
+ COMMENTS = "comments"
203
+ }
204
+ export type NamespaceMetadata = Record<string, string | number | boolean | (string | number | boolean)[]>;
205
+ export type VTTThumbnail = {
206
+ start: number;
207
+ end: number;
208
+ url: string;
209
+ xywh?: {
210
+ x: number;
211
+ y: number;
212
+ w: number;
213
+ h: number;
214
+ };
215
+ };
216
+ export {};
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionFilter = exports.AssetSearchContext = exports.searchParams = exports.supportedFormats = exports.Resolution = exports.MetadataType = exports.MediaType = exports.AssetPermission = exports.UploadStatus = exports.ItemType = exports.AssetType = void 0;
4
+ const SearchFilters_1 = require("../../global/SearchFilters");
5
+ var AssetType;
6
+ (function (AssetType) {
7
+ AssetType["VIDEO"] = "VIDEO";
8
+ AssetType["IMAGE"] = "IMAGE";
9
+ AssetType["DOCUMENT"] = "DOCUMENT";
10
+ AssetType["UNKNOWN"] = "UNKNOWN";
11
+ AssetType["FOLDER"] = "FOLDER";
12
+ })(AssetType || (exports.AssetType = AssetType = {}));
13
+ // These must correlate with the Neo4j labels!
14
+ var ItemType;
15
+ (function (ItemType) {
16
+ ItemType["ASSET"] = "ASSET";
17
+ ItemType["MEDIA_ASSET"] = "MEDIA_ASSET";
18
+ ItemType["REFERENCE"] = "REFERENCE";
19
+ ItemType["SPACE"] = "SPACE";
20
+ ItemType["PRODUCTION"] = "PRODUCTION";
21
+ ItemType["PROJECT"] = "PROJECT";
22
+ ItemType["FOLDER"] = "FOLDER";
23
+ ItemType["COMMENT"] = "COMMENT";
24
+ ItemType["TAG"] = "TAG";
25
+ })(ItemType || (exports.ItemType = ItemType = {}));
26
+ var UploadStatus;
27
+ (function (UploadStatus) {
28
+ UploadStatus["WAITING"] = "WAITING";
29
+ UploadStatus["UPLOADING"] = "UPLOADING";
30
+ UploadStatus["UPLOADED"] = "UPLOADED";
31
+ UploadStatus["PROCESSING"] = "PROCESSING";
32
+ UploadStatus["FINISHED"] = "FINISHED";
33
+ UploadStatus["FAILED"] = "FAILED";
34
+ UploadStatus["POST_PROCESSING"] = "POST_PROCESSING";
35
+ })(UploadStatus || (exports.UploadStatus = UploadStatus = {}));
36
+ var AssetPermission;
37
+ (function (AssetPermission) {
38
+ AssetPermission["CONTRIBUTE"] = "CONTRIBUTE";
39
+ AssetPermission["DOWNLOAD"] = "DOWNLOAD";
40
+ AssetPermission["DELETE"] = "DELETE";
41
+ AssetPermission["READ_DETAILS"] = "READ_DETAILS";
42
+ })(AssetPermission || (exports.AssetPermission = AssetPermission = {}));
43
+ var MediaType;
44
+ (function (MediaType) {
45
+ MediaType["VIDEO"] = "VIDEO";
46
+ MediaType["AUDIO"] = "AUDIO";
47
+ MediaType["IMAGE"] = "IMAGE";
48
+ MediaType["UNKNOWN"] = "UNKNOWN";
49
+ MediaType["VTT"] = "VTT";
50
+ })(MediaType || (exports.MediaType = MediaType = {}));
51
+ var MetadataType;
52
+ (function (MetadataType) {
53
+ MetadataType["VIDEO"] = "VIDEO";
54
+ MetadataType["AUDIO"] = "AUDIO";
55
+ MetadataType["UNKNOWN"] = "UNKNOWN";
56
+ })(MetadataType || (exports.MetadataType = MetadataType = {}));
57
+ var Resolution;
58
+ (function (Resolution) {
59
+ Resolution["ORIGINAL"] = "original";
60
+ Resolution["R1080"] = "1080";
61
+ Resolution["R720"] = "720";
62
+ Resolution["R480"] = "480";
63
+ })(Resolution || (exports.Resolution = Resolution = {}));
64
+ exports.supportedFormats = [".mp4", ".mov", ".mkv", ".mxf"];
65
+ exports.searchParams = {
66
+ type: {
67
+ type: [SearchFilters_1.SearchFilterType.STRING, SearchFilters_1.SearchFilterType.SELECT, SearchFilters_1.SearchFilterType.TYPEAHEAD],
68
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT],
69
+ },
70
+ _id: {
71
+ type: [SearchFilters_1.SearchFilterType.STRING],
72
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT],
73
+ },
74
+ name: {
75
+ type: [SearchFilters_1.SearchFilterType.STRING, SearchFilters_1.SearchFilterType.SELECT, SearchFilters_1.SearchFilterType.TYPEAHEAD],
76
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT, SearchFilters_1.SearchFilterComparatorString.CONTAINS],
77
+ },
78
+ };
79
+ var AssetSearchContext;
80
+ (function (AssetSearchContext) {
81
+ AssetSearchContext["ORGANIZATION"] = "ORGANIZATION";
82
+ AssetSearchContext["TRASH"] = "TRASH";
83
+ AssetSearchContext["SHARE"] = "SHARE";
84
+ })(AssetSearchContext || (exports.AssetSearchContext = AssetSearchContext = {}));
85
+ var SubscriptionFilter;
86
+ (function (SubscriptionFilter) {
87
+ SubscriptionFilter["STATUS"] = "status";
88
+ SubscriptionFilter["TAGS"] = "tags";
89
+ SubscriptionFilter["COMMENTS"] = "comments";
90
+ })(SubscriptionFilter || (exports.SubscriptionFilter = SubscriptionFilter = {}));
@@ -0,0 +1,41 @@
1
+ import { ReducedTeam, ReducedUser } from "../../idp";
2
+ export interface CreateComment {
3
+ refId: string;
4
+ text: string;
5
+ timestamp?: Timestamp;
6
+ annotation?: string;
7
+ mentions?: string[];
8
+ mentionsTeams?: string[];
9
+ }
10
+ export interface EditComment {
11
+ text: string;
12
+ timestamp?: Timestamp;
13
+ annotation?: string;
14
+ mentions?: string[];
15
+ mentionsTeams?: string[];
16
+ }
17
+ export declare enum CommentType {
18
+ COMMENT = "COMMENT",
19
+ REPLY = "REPLY"
20
+ }
21
+ export interface Comment {
22
+ _id: string;
23
+ text: string;
24
+ createDate: number;
25
+ timestamp?: Timestamp;
26
+ creator: ReducedUser;
27
+ assetId: string;
28
+ commentType: CommentType;
29
+ annotation?: string;
30
+ mentions?: ReducedUser[];
31
+ mentionedTeams?: ReducedTeam[];
32
+ replies?: Reply[];
33
+ }
34
+ export interface Reply extends Omit<Comment, "timestamp" | "replies"> {
35
+ commentRef: string;
36
+ }
37
+ export interface Timestamp {
38
+ in: number;
39
+ out: number;
40
+ color: string;
41
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommentType = void 0;
4
+ var CommentType;
5
+ (function (CommentType) {
6
+ CommentType["COMMENT"] = "COMMENT";
7
+ CommentType["REPLY"] = "REPLY";
8
+ })(CommentType || (exports.CommentType = CommentType = {}));