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
@@ -0,0 +1,60 @@
1
+ export declare enum CosmoEventName {
2
+ HCLOUD_COSMO_SPACE_RENAME = "hcloud.cosmo.space.rename",
3
+ HCLOUD_COSMO_SPACE_DELETE = "hcloud.cosmo.space.delete",
4
+ HCLOUD_COSMO_SPACE_MEMBER_ADD = "hcloud.cosmo.space.member.add",
5
+ HCLOUD_COSMO_SPACE_MEMBER_REMOVE = "hcloud.cosmo.space.member.remove",
6
+ HCLOUD_COSMO_SPACE_MEMBER_UPDATE = "hcloud.cosmo.space.member.update",
7
+ HCLOUD_COSMO_SPACE_ASSET_ADD = "hcloud.cosmo.space.asset.add",
8
+ HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED = "hcloud.cosmo.space.asset.upload.started",
9
+ HCLOUD_COSMO_SPACE_ASSET_READY = "hcloud.cosmo.space.asset.ready",
10
+ HCLOUD_COSMO_SPACE_ASSET_UPDATE = "hcloud.cosmo.space.asset.update",
11
+ HCLOUD_COSMO_SPACE_ASSET_RENAME = "hcloud.cosmo.space.asset.rename",
12
+ HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG = "hcloud.cosmo.space.asset.update.tag",
13
+ HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG = "hcloud.cosmo.space.asset.remove.tag",
14
+ HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS = "hcloud.cosmo.space.asset.update.status",
15
+ HCLOUD_COSMO_SPACE_ASSET_UPDATE_METADATA = "hcloud.cosmo.space.asset.update.metadata",
16
+ HCLOUD_COSMO_SPACE_ASSET_TRASHED = "hcloud.cosmo.space.asset.trashed",
17
+ HCLOUD_COSMO_SPACE_ASSET_RECOVERED = "hcloud.cosmo.space.asset.recovered",
18
+ HCLOUD_COSMO_SPACE_ASSET_MOVE = "hcloud.cosmo.space.asset.move",
19
+ HCLOUD_COSMO_SPACE_ASSET_COPY = "hcloud.cosmo.space.asset.copy",
20
+ HCLOUD_COSMO_SPACE_ASSET_DELETE = "hcloud.cosmo.space.asset.delete",
21
+ HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD = "hcloud.cosmo.space.asset.comment.add",
22
+ HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE = "hcloud.cosmo.space.asset.comment.update",
23
+ HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE = "hcloud.cosmo.space.asset.comment.delete",
24
+ HCLOUD_COSMO_SPACE_TAG_ADD = "hcloud.cosmo.space.tag.add",
25
+ HCLOUD_COSMO_SPACE_TAG_UPDATE = "hcloud.cosmo.space.tag.update",
26
+ HCLOUD_COSMO_SPACE_TAG_DELETE = "hcloud.cosmo.space.tag.delete"
27
+ }
28
+ export interface CosmoEvents {
29
+ Space: {
30
+ "Space rename": CosmoEventName.HCLOUD_COSMO_SPACE_RENAME;
31
+ "Space delete": CosmoEventName.HCLOUD_COSMO_SPACE_DELETE;
32
+ "Space member add": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_ADD;
33
+ "Space member remove": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_REMOVE;
34
+ "Space member update": CosmoEventName.HCLOUD_COSMO_SPACE_MEMBER_UPDATE;
35
+ };
36
+ Asset: {
37
+ "Asset create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_ADD;
38
+ "Asset upload started": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED;
39
+ "Asset ready": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_READY;
40
+ "Asset rename": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_RENAME;
41
+ "Asset update tag": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG;
42
+ "Asset update status": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS;
43
+ "Asset trashed": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_TRASHED;
44
+ "Asset recovered": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_RECOVERED;
45
+ "Asset Move": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_MOVE;
46
+ "Asset Copy": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COPY;
47
+ "Asset Delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_DELETE;
48
+ "Asset remove tag": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG;
49
+ };
50
+ Comment: {
51
+ "Comment create": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD;
52
+ "Comment update": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE;
53
+ "Comment delete": CosmoEventName.HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE;
54
+ };
55
+ Tag: {
56
+ "Tag create": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_ADD;
57
+ "Tag update": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_UPDATE;
58
+ "Tag delete": CosmoEventName.HCLOUD_COSMO_SPACE_TAG_DELETE;
59
+ };
60
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CosmoEventName = void 0;
4
+ var CosmoEventName;
5
+ (function (CosmoEventName) {
6
+ CosmoEventName["HCLOUD_COSMO_SPACE_RENAME"] = "hcloud.cosmo.space.rename";
7
+ CosmoEventName["HCLOUD_COSMO_SPACE_DELETE"] = "hcloud.cosmo.space.delete";
8
+ CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_ADD"] = "hcloud.cosmo.space.member.add";
9
+ CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_REMOVE"] = "hcloud.cosmo.space.member.remove";
10
+ CosmoEventName["HCLOUD_COSMO_SPACE_MEMBER_UPDATE"] = "hcloud.cosmo.space.member.update";
11
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_ADD"] = "hcloud.cosmo.space.asset.add";
12
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPLOAD_STARTED"] = "hcloud.cosmo.space.asset.upload.started";
13
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_READY"] = "hcloud.cosmo.space.asset.ready";
14
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE"] = "hcloud.cosmo.space.asset.update";
15
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_RENAME"] = "hcloud.cosmo.space.asset.rename";
16
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_TAG"] = "hcloud.cosmo.space.asset.update.tag";
17
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_REMOVE_TAG"] = "hcloud.cosmo.space.asset.remove.tag";
18
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_STATUS"] = "hcloud.cosmo.space.asset.update.status";
19
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_UPDATE_METADATA"] = "hcloud.cosmo.space.asset.update.metadata";
20
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_TRASHED"] = "hcloud.cosmo.space.asset.trashed";
21
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_RECOVERED"] = "hcloud.cosmo.space.asset.recovered";
22
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_MOVE"] = "hcloud.cosmo.space.asset.move";
23
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COPY"] = "hcloud.cosmo.space.asset.copy";
24
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_DELETE"] = "hcloud.cosmo.space.asset.delete";
25
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_ADD"] = "hcloud.cosmo.space.asset.comment.add";
26
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_UPDATE"] = "hcloud.cosmo.space.asset.comment.update";
27
+ CosmoEventName["HCLOUD_COSMO_SPACE_ASSET_COMMENT_DELETE"] = "hcloud.cosmo.space.asset.comment.delete";
28
+ CosmoEventName["HCLOUD_COSMO_SPACE_TAG_ADD"] = "hcloud.cosmo.space.tag.add";
29
+ CosmoEventName["HCLOUD_COSMO_SPACE_TAG_UPDATE"] = "hcloud.cosmo.space.tag.update";
30
+ CosmoEventName["HCLOUD_COSMO_SPACE_TAG_DELETE"] = "hcloud.cosmo.space.tag.delete";
31
+ })(CosmoEventName || (exports.CosmoEventName = CosmoEventName = {}));
@@ -0,0 +1,4 @@
1
+ export interface Location {
2
+ _id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export declare enum NamespacePermission {
2
+ READ_COMMENTS = "READ_COMMENTS",
3
+ WRITE_COMMENTS = "WRITE_COMMENTS",
4
+ READ_STATUS = "READ_STATUS"
5
+ }
6
+ export interface Namespace {
7
+ _id: string;
8
+ name: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamespacePermission = void 0;
4
+ var NamespacePermission;
5
+ (function (NamespacePermission) {
6
+ NamespacePermission["READ_COMMENTS"] = "READ_COMMENTS";
7
+ NamespacePermission["WRITE_COMMENTS"] = "WRITE_COMMENTS";
8
+ NamespacePermission["READ_STATUS"] = "READ_STATUS";
9
+ })(NamespacePermission || (exports.NamespacePermission = NamespacePermission = {}));
@@ -0,0 +1,96 @@
1
+ import { ReducedUser } from "../idp";
2
+ import { BaseAsset } from "./asset";
3
+ export declare enum Permissions {
4
+ VIEW_SPACE = "VIEW_SPACE",
5
+ VIEW_MEMBERS = "VIEW_MEMBERS",
6
+ UPDATE_MEMBERS = "UPDATE_MEMBERS",
7
+ VIEW_TRASHBIN = "VIEW_TRASHBIN",
8
+ RECOVER_TRASHBIN = "RECOVER_TRASHBIN",
9
+ EMPTY_TRASHBIN = "EMPTY_TRASHBIN",
10
+ VIEW_ROLES = "VIEW_ROLES",
11
+ CREATE_ROLES = "CREATE_ROLES",
12
+ EDIT_ROLES = "EDIT_ROLES",
13
+ DELETE_ROLES = "DELETE_ROLES",
14
+ ASSIGN_USER_ROLES = "ASSIGN_USER_ROLES",
15
+ UPDATE_SPACE_AVATAR = "UPDATE_SPACE_AVATAR",
16
+ UPDATE_SPACE_NAME = "UPDATE_SPACE_NAME",
17
+ DELETE_SPACE = "DELETE_SPACE",
18
+ CONNECT_HIGH5_SPACE = "CONNECT_HIGH5_SPACE",
19
+ VIEW_ASSETS = "VIEW_ASSETS",
20
+ VIEW_ASSET_DETAILS = "VIEW_ASSET_DETAILS",
21
+ VIEW_ASSET_ACTIVITY = "VIEW_ASSET_ACTIVITY",
22
+ DOWNLOAD_ASSETS = "DOWNLOAD_ASSETS",
23
+ CREATE_ASSETS = "CREATE_ASSETS",
24
+ UPDATE_ASSETS = "UPDATE_ASSETS",
25
+ DELETE_ASSETS = "DELETE_ASSETS",
26
+ COPY_ASSETS = "COPY_ASSETS",
27
+ MOVE_ASSETS = "MOVE_ASSETS",
28
+ RENAME_ASSETS = "RENAME_ASSETS",
29
+ SHARE_ASSETS = "SHARE_ASSETS",
30
+ VIEW_NAMESPACES = "VIEW_NAMESPACES",
31
+ EDIT_NAMESPACES = "EDIT_NAMESPACES",
32
+ CREATE_NAMESPACES = "CREATE_NAMESPACES",
33
+ DELETE_NAMESPACES = "DELETE_NAMESPACES",
34
+ VIEW_ASSET_TAGS = "VIEW_ASSET_TAGS",
35
+ WRITE_ASSET_TAGS = "WRITE_ASSET_TAGS",
36
+ VIEW_ASSET_STATUS = "VIEW_ASSET_STATUS",
37
+ WRITE_ASSET_STATUS = "WRITE_ASSET_STATUS",
38
+ VIEW_ASSET_COMMENTS = "VIEW_ASSET_COMMENTS",
39
+ CREATE_ASSET_COMMENTS = "CREATE_ASSET_COMMENTS",
40
+ EDIT_ASSET_COMMENTS = "EDIT_ASSET_COMMENTS",
41
+ DELETE_ASSET_COMMENTS = "DELETE_ASSET_COMMENTS",
42
+ VIEW_MENTIONS = "VIEW_MENTIONS",
43
+ VIEW_SHARES = "VIEW_SHARES",
44
+ EDIT_SHARES = "EDIT_SHARES",
45
+ DELETE_SHARES = "DELETE_SHARES",
46
+ ADD_USERS_TO_SHARES = "ADD_USERS_TO_SHARES",
47
+ REMOVE_USERS_FROM_SHARES = "REMOVE_USERS_FROM_SHARES"
48
+ }
49
+ export type Permission = {
50
+ name: string;
51
+ description: string;
52
+ category: PermissionCategory;
53
+ };
54
+ export declare enum PermissionCategory {
55
+ ASSET = "asset",
56
+ NAMESPACE = "namespace",
57
+ SPACE = "space",
58
+ SHARE = "share",
59
+ USER = "user"
60
+ }
61
+ export type AssetPermission = Omit<Permission, "category"> & {
62
+ category: PermissionCategory.ASSET;
63
+ };
64
+ export type NamespacePermission = Omit<Permission, "category"> & {
65
+ category: PermissionCategory.NAMESPACE;
66
+ };
67
+ export type SpacePermission = Omit<Permission, "category"> & {
68
+ category: PermissionCategory.SPACE;
69
+ };
70
+ export type SharePermission = Omit<Permission, "category"> & {
71
+ category: PermissionCategory.SHARE;
72
+ };
73
+ export type UserPermission = Omit<Permission, "category"> & {
74
+ category: PermissionCategory.USER;
75
+ };
76
+ export type PermissionDiscovery = {
77
+ [PermissionCategory.ASSET]: AssetPermission;
78
+ [PermissionCategory.NAMESPACE]: NamespacePermission;
79
+ [PermissionCategory.SPACE]: SpacePermission;
80
+ [PermissionCategory.SHARE]: SharePermission;
81
+ [PermissionCategory.USER]: UserPermission;
82
+ };
83
+ export type Role = {
84
+ _id: string;
85
+ name: string;
86
+ createDate: number;
87
+ modifyDate: number;
88
+ creator: ReducedUser;
89
+ };
90
+ export type DetailedRole = Role & {
91
+ users: ReducedUser[];
92
+ permissions: Record<string, {
93
+ entity: Pick<BaseAsset, "_id" | "type" | "name">;
94
+ permissions: string[];
95
+ }>;
96
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PermissionCategory = exports.Permissions = void 0;
4
+ var Permissions;
5
+ (function (Permissions) {
6
+ Permissions["VIEW_SPACE"] = "VIEW_SPACE";
7
+ Permissions["VIEW_MEMBERS"] = "VIEW_MEMBERS";
8
+ Permissions["UPDATE_MEMBERS"] = "UPDATE_MEMBERS";
9
+ Permissions["VIEW_TRASHBIN"] = "VIEW_TRASHBIN";
10
+ Permissions["RECOVER_TRASHBIN"] = "RECOVER_TRASHBIN";
11
+ Permissions["EMPTY_TRASHBIN"] = "EMPTY_TRASHBIN";
12
+ Permissions["VIEW_ROLES"] = "VIEW_ROLES";
13
+ Permissions["CREATE_ROLES"] = "CREATE_ROLES";
14
+ Permissions["EDIT_ROLES"] = "EDIT_ROLES";
15
+ Permissions["DELETE_ROLES"] = "DELETE_ROLES";
16
+ Permissions["ASSIGN_USER_ROLES"] = "ASSIGN_USER_ROLES";
17
+ Permissions["UPDATE_SPACE_AVATAR"] = "UPDATE_SPACE_AVATAR";
18
+ Permissions["UPDATE_SPACE_NAME"] = "UPDATE_SPACE_NAME";
19
+ Permissions["DELETE_SPACE"] = "DELETE_SPACE";
20
+ Permissions["CONNECT_HIGH5_SPACE"] = "CONNECT_HIGH5_SPACE";
21
+ Permissions["VIEW_ASSETS"] = "VIEW_ASSETS";
22
+ Permissions["VIEW_ASSET_DETAILS"] = "VIEW_ASSET_DETAILS";
23
+ Permissions["VIEW_ASSET_ACTIVITY"] = "VIEW_ASSET_ACTIVITY";
24
+ Permissions["DOWNLOAD_ASSETS"] = "DOWNLOAD_ASSETS";
25
+ Permissions["CREATE_ASSETS"] = "CREATE_ASSETS";
26
+ Permissions["UPDATE_ASSETS"] = "UPDATE_ASSETS";
27
+ Permissions["DELETE_ASSETS"] = "DELETE_ASSETS";
28
+ Permissions["COPY_ASSETS"] = "COPY_ASSETS";
29
+ Permissions["MOVE_ASSETS"] = "MOVE_ASSETS";
30
+ Permissions["RENAME_ASSETS"] = "RENAME_ASSETS";
31
+ Permissions["SHARE_ASSETS"] = "SHARE_ASSETS";
32
+ Permissions["VIEW_NAMESPACES"] = "VIEW_NAMESPACES";
33
+ Permissions["EDIT_NAMESPACES"] = "EDIT_NAMESPACES";
34
+ Permissions["CREATE_NAMESPACES"] = "CREATE_NAMESPACES";
35
+ Permissions["DELETE_NAMESPACES"] = "DELETE_NAMESPACES";
36
+ Permissions["VIEW_ASSET_TAGS"] = "VIEW_ASSET_TAGS";
37
+ Permissions["WRITE_ASSET_TAGS"] = "WRITE_ASSET_TAGS";
38
+ Permissions["VIEW_ASSET_STATUS"] = "VIEW_ASSET_STATUS";
39
+ Permissions["WRITE_ASSET_STATUS"] = "WRITE_ASSET_STATUS";
40
+ Permissions["VIEW_ASSET_COMMENTS"] = "VIEW_ASSET_COMMENTS";
41
+ Permissions["CREATE_ASSET_COMMENTS"] = "CREATE_ASSET_COMMENTS";
42
+ Permissions["EDIT_ASSET_COMMENTS"] = "EDIT_ASSET_COMMENTS";
43
+ Permissions["DELETE_ASSET_COMMENTS"] = "DELETE_ASSET_COMMENTS";
44
+ Permissions["VIEW_MENTIONS"] = "VIEW_MENTIONS";
45
+ Permissions["VIEW_SHARES"] = "VIEW_SHARES";
46
+ Permissions["EDIT_SHARES"] = "EDIT_SHARES";
47
+ Permissions["DELETE_SHARES"] = "DELETE_SHARES";
48
+ Permissions["ADD_USERS_TO_SHARES"] = "ADD_USERS_TO_SHARES";
49
+ Permissions["REMOVE_USERS_FROM_SHARES"] = "REMOVE_USERS_FROM_SHARES";
50
+ })(Permissions || (exports.Permissions = Permissions = {}));
51
+ var PermissionCategory;
52
+ (function (PermissionCategory) {
53
+ PermissionCategory["ASSET"] = "asset";
54
+ PermissionCategory["NAMESPACE"] = "namespace";
55
+ PermissionCategory["SPACE"] = "space";
56
+ PermissionCategory["SHARE"] = "share";
57
+ PermissionCategory["USER"] = "user";
58
+ })(PermissionCategory || (exports.PermissionCategory = PermissionCategory = {}));
@@ -0,0 +1,110 @@
1
+ import { ReducedUser, ShareReducedUnlinkedUser, User } from "../../idp";
2
+ /**
3
+ * Represents a public link for sharing.
4
+ * @property link - The URL of the public link.
5
+ * @property visitsLimit - (Optional) The maximum number of allowed visits for the link.
6
+ */
7
+ export interface PublicLink {
8
+ link: string;
9
+ visitsLimit?: number;
10
+ }
11
+ /**
12
+ * Represents a share entity containing shared items and permissions.
13
+ * @property _id - Unique identifier for the share.
14
+ * @property name - Name of the share.
15
+ * @property creator - The user who created the share.
16
+ * @property createDate - Timestamp of when the share was created (in milliseconds since epoch).
17
+ * @property items - Array of item IDs included in the share.
18
+ * @property permissions - (Optional) Array of permission strings for the share.
19
+ * @property permissionGroups - (Optional) Array of asset permission groups applied to the share.
20
+ * @property namespaces - (Optional) Mapping of namespace names to arrays of item IDs.
21
+ * @property namespaceGroups - (Optional) Mapping of namespace names to arrays of namespace permission groups.
22
+ * @property expires - (Optional) Expiration timestamp for the share (in milliseconds since epoch).
23
+ * @property password - (Optional) Password required to access the share.
24
+ * @property publicLink - (Optional) Public link information for the share.
25
+ */
26
+ export interface Share {
27
+ _id: string;
28
+ name: string;
29
+ creator: ReducedUser;
30
+ createDate: number;
31
+ items: string[];
32
+ permissions?: string[];
33
+ permissionGroups?: ShareAssetPermissionGroup[];
34
+ namespaces?: Record<string, string[]>;
35
+ namespaceGroups?: Record<string, ShareNamespacePermissionGroup[]>;
36
+ expires?: number;
37
+ password?: string;
38
+ publicLink?: PublicLink;
39
+ users?: (User | ReducedUser | ShareReducedUnlinkedUser)[];
40
+ waiting: boolean;
41
+ }
42
+ /**
43
+ * Represents the payload for creating a new share.
44
+ * Omits _id, createDate, and creator from Share.
45
+ * @property password - (Optional) Password for the share.
46
+ * @property expires - (Optional) Expiration timestamp for the share (in milliseconds since epoch).
47
+ * @property namespaces - (Optional) Mapping of namespace names to arrays of item IDs.
48
+ * @property users - (Optional) Array of user emails to share with.
49
+ * @property public - (Optional) Whether the share is public.
50
+ * @property visitsLimit - (Optional) Maximum number of allowed visits for the share (only applicable for public shares).
51
+ */
52
+ export interface ShareCreate extends Omit<Share, "_id" | "createDate" | "creator" | "permissionGroups" | "users"> {
53
+ password?: string;
54
+ expires?: number;
55
+ namespaces?: Record<string, string[]>;
56
+ assetPermissionGroups?: ShareAssetPermissionGroup[];
57
+ /**
58
+ * Array of emails
59
+ */
60
+ users?: string[];
61
+ public?: boolean;
62
+ visitsLimit?: number;
63
+ deferred?: boolean;
64
+ }
65
+ export type ShareWithUsers = Share & {
66
+ users: ((ReducedUser | Pick<ReducedUser, "email">) & {
67
+ linkedToShare: boolean;
68
+ })[];
69
+ };
70
+ /**
71
+ * Represents a patch (partial update) for a share.
72
+ * @property name - (Optional) New name for the share.
73
+ * @property expires - (Optional) New expiration timestamp.
74
+ * @property password - (Optional) New password for the share.
75
+ * @property items - (Optional) New array of item IDs.
76
+ * @property permissions - (Optional) New array of permission strings.
77
+ * @property assetPermissionGroups - (Optional) New array of asset permission groups.
78
+ * @property namespaces - (Optional) New mapping of namespace names to arrays of item IDs or null.
79
+ * @property namespaceGroups - (Optional) New mapping of namespace names to arrays of namespace permission groups or null.
80
+ * @property public - (Optional) Whether the share is public.
81
+ * @property visitsLimit - (Optional) New maximum number of allowed visits (only applicable for public shares).
82
+ */
83
+ export type SharePatch = Partial<Pick<ShareCreate, "name" | "expires" | "password" | "users"> & {
84
+ items: string[];
85
+ permissions?: string[];
86
+ assetPermissionGroups?: ShareAssetPermissionGroup[];
87
+ namespaces?: Record<string, string[] | null>;
88
+ namespaceGroups?: Record<string, ShareNamespacePermissionGroup[] | null>;
89
+ public?: boolean;
90
+ visitsLimit?: number;
91
+ users?: string[];
92
+ }>;
93
+ export declare enum ShareAssetPermissionGroup {
94
+ VIEW_ASSETS_ONLY = "VIEW_ASSETS_ONLY",
95
+ BASE = "BASE",
96
+ ENABLE_DOWNLOAD = "ENABLE_DOWNLOAD",
97
+ ENABLE_CONTRIBUTION = "ENABLE_CONTRIBUTION",
98
+ ENABLE_ACTIVITY = "ENABLE_ACTIVITY",
99
+ ENABLE_DELETION = "ENABLE_DELETION"
100
+ }
101
+ export declare enum ShareNamespacePermissionGroup {
102
+ BASE = "BASE",
103
+ ENABLE_COMMENTS = "ENABLE_COMMENTS",
104
+ ENABLE_COMMENT_DELETION = "ENABLE_COMMENT_DELETION",
105
+ ENABLE_APPROVAL = "ENABLE_APPROVAL",
106
+ ENABLE_APPROVAL_OVERWRITE = "ENABLE_APPROVAL_OVERWRITE",
107
+ ENABLE_METADATA_EDITING = "ENABLE_METADATA_EDITING",
108
+ ENABLE_TAGS = "ENABLE_TAGS",
109
+ VIEW_ASSET_METADATA = "VIEW_ASSET_METADATA"
110
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShareNamespacePermissionGroup = exports.ShareAssetPermissionGroup = void 0;
4
+ var ShareAssetPermissionGroup;
5
+ (function (ShareAssetPermissionGroup) {
6
+ ShareAssetPermissionGroup["VIEW_ASSETS_ONLY"] = "VIEW_ASSETS_ONLY";
7
+ ShareAssetPermissionGroup["BASE"] = "BASE";
8
+ ShareAssetPermissionGroup["ENABLE_DOWNLOAD"] = "ENABLE_DOWNLOAD";
9
+ ShareAssetPermissionGroup["ENABLE_CONTRIBUTION"] = "ENABLE_CONTRIBUTION";
10
+ ShareAssetPermissionGroup["ENABLE_ACTIVITY"] = "ENABLE_ACTIVITY";
11
+ ShareAssetPermissionGroup["ENABLE_DELETION"] = "ENABLE_DELETION";
12
+ })(ShareAssetPermissionGroup || (exports.ShareAssetPermissionGroup = ShareAssetPermissionGroup = {}));
13
+ var ShareNamespacePermissionGroup;
14
+ (function (ShareNamespacePermissionGroup) {
15
+ ShareNamespacePermissionGroup["BASE"] = "BASE";
16
+ ShareNamespacePermissionGroup["ENABLE_COMMENTS"] = "ENABLE_COMMENTS";
17
+ ShareNamespacePermissionGroup["ENABLE_COMMENT_DELETION"] = "ENABLE_COMMENT_DELETION";
18
+ ShareNamespacePermissionGroup["ENABLE_APPROVAL"] = "ENABLE_APPROVAL";
19
+ ShareNamespacePermissionGroup["ENABLE_APPROVAL_OVERWRITE"] = "ENABLE_APPROVAL_OVERWRITE";
20
+ ShareNamespacePermissionGroup["ENABLE_METADATA_EDITING"] = "ENABLE_METADATA_EDITING";
21
+ ShareNamespacePermissionGroup["ENABLE_TAGS"] = "ENABLE_TAGS";
22
+ ShareNamespacePermissionGroup["VIEW_ASSET_METADATA"] = "VIEW_ASSET_METADATA";
23
+ })(ShareNamespacePermissionGroup || (exports.ShareNamespacePermissionGroup = ShareNamespacePermissionGroup = {}));
@@ -0,0 +1,31 @@
1
+ import { ReducedTeam, ReducedUser } from "../../idp";
2
+ import { ItemType } from "../asset";
3
+ export interface CosmoSpace {
4
+ _id: string;
5
+ name: string;
6
+ createDate: number;
7
+ avatarUrl: string;
8
+ creator: ReducedUser;
9
+ type: ItemType.SPACE;
10
+ trashAutoDelete: boolean;
11
+ trashAutoDeleteTTL: number | null;
12
+ high5_spaceName?: string;
13
+ high5_executionTarget?: string;
14
+ permissions?: string[];
15
+ storageUsed: number;
16
+ }
17
+ export interface High5SpaceInfo {
18
+ high5_spaceName: string;
19
+ executionTarget: string;
20
+ }
21
+ export type SpaceUser = (ReducedUser | ReducedTeam) & {
22
+ roles: {
23
+ name: string;
24
+ _id: string;
25
+ }[];
26
+ type: "user" | "team";
27
+ };
28
+ export interface TrashPolicy {
29
+ enabled: boolean;
30
+ ttlDays?: number;
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface ICosmoStats {
2
+ organizationId: string;
3
+ spaces?: number;
4
+ libraries?: number;
5
+ teams?: number;
6
+ users?: number;
7
+ shares?: number;
8
+ folderAssets?: number;
9
+ mediaAssets?: number;
10
+ allAssets?: number;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ export interface Tag {
2
+ _id: string;
3
+ name: string;
4
+ color: string;
5
+ }
6
+ export interface CreateTag {
7
+ name: string;
8
+ color?: string;
9
+ }
10
+ export interface PatchTag {
11
+ name?: string;
12
+ color?: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,11 +3,10 @@ export declare enum Products {
3
3
  auditor = "auditor",
4
4
  mailer = "mailer",
5
5
  high5 = "high5",
6
- fuse = "fuse",
7
6
  dali = "dali",
8
7
  client = "client",
9
8
  all = "all",
10
9
  mothership = "mothership",
11
- cosmo = "cosmo",
12
- friday = "friday"
10
+ shorts = "shorts",
11
+ cosmo = "cosmo"
13
12
  }
@@ -7,11 +7,10 @@ var Products;
7
7
  Products["auditor"] = "auditor";
8
8
  Products["mailer"] = "mailer";
9
9
  Products["high5"] = "high5";
10
- Products["fuse"] = "fuse";
11
10
  Products["dali"] = "dali";
12
11
  Products["client"] = "client";
13
12
  Products["all"] = "all";
14
13
  Products["mothership"] = "mothership";
14
+ Products["shorts"] = "shorts";
15
15
  Products["cosmo"] = "cosmo";
16
- Products["friday"] = "friday";
17
16
  })(Products || (exports.Products = Products = {}));
@@ -4,6 +4,5 @@ export declare enum Views {
4
4
  high5 = "/high5",
5
5
  auditor = "/auditor",
6
6
  mailer = "/mailer",
7
- fuse = "/fuse",
8
7
  cosmo = "/cosmo"
9
8
  }
@@ -8,6 +8,5 @@ var Views;
8
8
  Views["high5"] = "/high5";
9
9
  Views["auditor"] = "/auditor";
10
10
  Views["mailer"] = "/mailer";
11
- Views["fuse"] = "/fuse";
12
11
  Views["cosmo"] = "/cosmo";
13
12
  })(Views || (exports.Views = Views = {}));
@@ -1,16 +1,16 @@
1
1
  export * from "./space";
2
2
  export * from "./wave";
3
3
  export * from "./space/event";
4
- export * from "./space/webhook";
5
- export * from "./space/secret";
6
- export * from "./space/event/stream";
7
- export * from "./space/event/stream/design";
8
- export * from "./space/event";
9
4
  export * from "./space/event/stream";
10
5
  export * from "./space/event/stream/design";
11
6
  export * from "./space/event/stream/node";
12
7
  export * from "./space/webhook";
13
8
  export * from "./space/secret";
14
- export * from "./joinToken";
15
9
  export * from "./space/pool";
16
- export * from "./execution/";
10
+ export * from "./space/database";
11
+ export * from "./space/database/document";
12
+ export * from "./execution";
13
+ export * from "./joinToken";
14
+ export * from "./space/job";
15
+ export * from "./space/job/JobLog";
16
+ export * from "./stats";
@@ -17,16 +17,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./space"), exports);
18
18
  __exportStar(require("./wave"), exports);
19
19
  __exportStar(require("./space/event"), exports);
20
- __exportStar(require("./space/webhook"), exports);
21
- __exportStar(require("./space/secret"), exports);
22
- __exportStar(require("./space/event/stream"), exports);
23
- __exportStar(require("./space/event/stream/design"), exports);
24
- __exportStar(require("./space/event"), exports);
25
20
  __exportStar(require("./space/event/stream"), exports);
26
21
  __exportStar(require("./space/event/stream/design"), exports);
27
22
  __exportStar(require("./space/event/stream/node"), exports);
28
23
  __exportStar(require("./space/webhook"), exports);
29
24
  __exportStar(require("./space/secret"), exports);
30
- __exportStar(require("./joinToken"), exports);
31
25
  __exportStar(require("./space/pool"), exports);
32
- __exportStar(require("./execution/"), exports);
26
+ __exportStar(require("./space/database"), exports);
27
+ __exportStar(require("./space/database/document"), exports);
28
+ __exportStar(require("./execution"), exports);
29
+ __exportStar(require("./joinToken"), exports);
30
+ __exportStar(require("./space/job"), exports);
31
+ __exportStar(require("./space/job/JobLog"), exports);
32
+ __exportStar(require("./stats"), exports);
@@ -31,4 +31,4 @@ interface DocumentCreateDto {
31
31
  interface DocumentPatchDto {
32
32
  value: any;
33
33
  }
34
- export { Document, DocumentCreateDto, DocumentPatchDto };
34
+ export { Document, DocumentCreateDto, DocumentPatchDto, DocumentType };
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentType = void 0;
3
4
  var DocumentType;
4
5
  (function (DocumentType) {
5
6
  DocumentType["STRING"] = "STRING";
@@ -10,4 +11,4 @@ var DocumentType;
10
11
  DocumentType["BOOLEAN_LIST"] = "BOOLEAN_LIST";
11
12
  DocumentType["OBJECT"] = "OBJECT";
12
13
  DocumentType["ARRAY"] = "ARRAY";
13
- })(DocumentType || (DocumentType = {}));
14
+ })(DocumentType || (exports.DocumentType = DocumentType = {}));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -32,6 +32,13 @@ export interface DesignerNodeCatalog {
32
32
  export type StringMap = {
33
33
  [key: string]: string;
34
34
  };
35
+ export type SortedStringMap = {
36
+ id: number;
37
+ value: {
38
+ key: string;
39
+ value: string;
40
+ };
41
+ };
35
42
  export interface DesignerNodeInput {
36
43
  uuid: string;
37
44
  name: string;
@@ -39,8 +46,9 @@ export interface DesignerNodeInput {
39
46
  advanced?: boolean;
40
47
  type: StreamNodeSpecificationInputType;
41
48
  selectedLanguage?: StringMap;
42
- example: string | number | boolean | string[] | StringMap | StringMap[];
43
- value?: string | number | boolean | string[] | StringMap | StringMap[];
49
+ expression?: boolean;
50
+ example: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
51
+ value?: string | number | boolean | string[] | StringMap | StringMap[] | SortedStringMap[];
44
52
  mandatory?: boolean;
45
53
  }
46
54
  export interface DesignerNodeConnector {
@@ -52,6 +52,7 @@ export interface StreamSingleNodeResult {
52
52
  uuid: string;
53
53
  nodeUuid: string;
54
54
  failed: boolean;
55
+ streamId?: string;
55
56
  startTimestamp: number;
56
57
  endTimestamp?: number;
57
58
  name: string;