hcloud-sdk 16.0.0 → 18.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 (291) hide show
  1. package/changelog.md +178 -51
  2. package/lib/Base.d.ts +2 -1
  3. package/lib/Hcloud.d.ts +6 -0
  4. package/lib/Hcloud.js +18 -0
  5. package/lib/helper/ValidationHelper.d.ts +74 -0
  6. package/lib/helper/ValidationHelper.js +360 -0
  7. package/lib/interfaces/auditor/index.d.ts +17 -2
  8. package/lib/interfaces/auditor/index.js +12 -0
  9. package/lib/interfaces/cosmo/asset/index.d.ts +185 -0
  10. package/lib/interfaces/cosmo/asset/index.js +82 -0
  11. package/lib/interfaces/cosmo/comment/index.d.ts +38 -0
  12. package/lib/interfaces/cosmo/comment/index.js +8 -0
  13. package/lib/interfaces/cosmo/event/index.d.ts +31 -0
  14. package/lib/interfaces/cosmo/event/index.js +17 -0
  15. package/lib/interfaces/cosmo/location/index.d.ts +4 -0
  16. package/lib/interfaces/cosmo/location/index.js +2 -0
  17. package/lib/interfaces/cosmo/namespace/index.d.ts +9 -0
  18. package/lib/interfaces/cosmo/namespace/index.js +9 -0
  19. package/lib/interfaces/cosmo/permissions.d.ts +96 -0
  20. package/lib/interfaces/cosmo/permissions.js +58 -0
  21. package/lib/interfaces/cosmo/share/index.d.ts +28 -0
  22. package/lib/interfaces/cosmo/share/index.js +2 -0
  23. package/lib/interfaces/cosmo/space/index.d.ts +25 -0
  24. package/lib/interfaces/cosmo/space/index.js +2 -0
  25. package/lib/interfaces/cosmo/tag/tag.d.ts +12 -0
  26. package/lib/interfaces/cosmo/tag/tag.js +2 -0
  27. package/lib/interfaces/frontend/config/index.d.ts +1 -0
  28. package/lib/interfaces/fuse/space/index.d.ts +1 -0
  29. package/lib/interfaces/global/Products.d.ts +3 -1
  30. package/lib/interfaces/global/Products.js +2 -0
  31. package/lib/interfaces/global/Views.d.ts +2 -1
  32. package/lib/interfaces/global/Views.js +1 -0
  33. package/lib/interfaces/high5/execution/index.d.ts +23 -2
  34. package/lib/interfaces/high5/execution/index.js +2 -0
  35. package/lib/interfaces/high5/index.d.ts +7 -7
  36. package/lib/interfaces/high5/index.js +7 -7
  37. package/lib/interfaces/high5/space/database/document/index.d.ts +34 -0
  38. package/lib/interfaces/high5/space/database/document/index.js +14 -0
  39. package/lib/interfaces/high5/space/database/index.d.ts +12 -0
  40. package/lib/interfaces/high5/space/database/index.js +2 -0
  41. package/lib/interfaces/high5/space/event/stream/design/StreamDesign.d.ts +9 -2
  42. package/lib/interfaces/high5/space/event/stream/node/index.d.ts +10 -2
  43. package/lib/interfaces/high5/space/event/stream/node/index.js +6 -1
  44. package/lib/interfaces/high5/space/execution/index.d.ts +56 -2
  45. package/lib/interfaces/high5/space/execution/index.js +8 -0
  46. package/lib/interfaces/high5/space/index.d.ts +2 -0
  47. package/lib/interfaces/high5/space/job/JobLog.d.ts +16 -0
  48. package/lib/interfaces/high5/space/job/JobLog.js +2 -0
  49. package/lib/interfaces/high5/space/job/index.d.ts +38 -0
  50. package/lib/interfaces/high5/space/job/index.js +8 -0
  51. package/lib/interfaces/high5/space/pool/index.d.ts +5 -7
  52. package/lib/interfaces/high5/space/pool/index.js +0 -7
  53. package/lib/interfaces/high5/space/webhook/index.d.ts +3 -1
  54. package/lib/interfaces/high5/stats.d.ts +21 -0
  55. package/lib/interfaces/high5/stats.js +2 -0
  56. package/lib/interfaces/high5/wave/index.d.ts +8 -3
  57. package/lib/interfaces/idp/index.d.ts +1 -0
  58. package/lib/interfaces/idp/index.js +1 -0
  59. package/lib/interfaces/idp/oauth/index.d.ts +4 -3
  60. package/lib/interfaces/idp/organization/index.d.ts +1 -0
  61. package/lib/interfaces/idp/organization/index.js +1 -0
  62. package/lib/interfaces/idp/organization/license/index.d.ts +13 -0
  63. package/lib/interfaces/idp/organization/member/index.d.ts +2 -0
  64. package/lib/interfaces/idp/organization/service-accounts.d.ts +8 -0
  65. package/lib/interfaces/idp/organization/service-accounts.js +2 -0
  66. package/lib/interfaces/idp/organization/stats.d.ts +7 -0
  67. package/lib/interfaces/idp/organization/stats.js +2 -0
  68. package/lib/interfaces/idp/organization/team/index.d.ts +0 -1
  69. package/lib/interfaces/idp/user/GeneralSettings.d.ts +1 -0
  70. package/lib/interfaces/idp/user/GeneralSettings.js +1 -0
  71. package/lib/interfaces/idp/user/Message.d.ts +21 -0
  72. package/lib/interfaces/idp/user/Message.js +14 -0
  73. package/lib/interfaces/idp/user/NotificationSettings.d.ts +1 -0
  74. package/lib/interfaces/idp/user/Scopes.d.ts +8 -2
  75. package/lib/interfaces/idp/user/Scopes.js +9 -0
  76. package/lib/interfaces/idp/user/index.d.ts +2 -1
  77. package/lib/interfaces/mailer/index.d.ts +30 -1
  78. package/lib/interfaces/mailer/index.js +87 -1
  79. package/lib/interfaces/mothership/index.d.ts +3 -1
  80. package/lib/interfaces/mothership/index.js +15 -0
  81. package/lib/interfaces/mothership/stats.d.ts +4 -0
  82. package/lib/interfaces/mothership/stats.js +2 -0
  83. package/lib/interfaces/nats/index.d.ts +98 -9
  84. package/lib/interfaces/nats/index.js +136 -19
  85. package/lib/interfaces/shorts/index.d.ts +10 -0
  86. package/lib/interfaces/shorts/index.js +2 -0
  87. package/lib/service/agent/bundle/dev/index.d.ts +16 -6
  88. package/lib/service/agent/bundle/dev/index.js +12 -10
  89. package/lib/service/agent/bundle/index.d.ts +10 -4
  90. package/lib/service/agent/bundle/index.js +6 -6
  91. package/lib/service/agent/context/index.d.ts +26 -7
  92. package/lib/service/agent/context/index.js +27 -12
  93. package/lib/service/auditor/index.d.ts +8 -4
  94. package/lib/service/auditor/index.js +5 -5
  95. package/lib/service/auditor/internal/index.d.ts +27 -3
  96. package/lib/service/auditor/internal/index.js +34 -5
  97. package/lib/service/bouncer/features/index.d.ts +4 -2
  98. package/lib/service/bouncer/features/index.js +2 -2
  99. package/lib/service/cosmo/asset/index.d.ts +219 -0
  100. package/lib/service/cosmo/asset/index.js +314 -0
  101. package/lib/service/cosmo/comment/index.d.ts +122 -0
  102. package/lib/service/cosmo/comment/index.js +161 -0
  103. package/lib/service/cosmo/event/index.d.ts +23 -0
  104. package/lib/service/cosmo/event/index.js +40 -0
  105. package/lib/service/cosmo/folder/index.d.ts +27 -0
  106. package/lib/service/cosmo/folder/index.js +47 -0
  107. package/lib/service/cosmo/index.d.ts +49 -0
  108. package/lib/service/cosmo/index.js +119 -0
  109. package/lib/service/cosmo/internal/index.d.ts +7 -0
  110. package/lib/service/cosmo/internal/index.js +17 -0
  111. package/lib/service/cosmo/internal/space/index.d.ts +15 -0
  112. package/lib/service/cosmo/internal/space/index.js +34 -0
  113. package/lib/service/cosmo/location/index.d.ts +40 -0
  114. package/lib/service/cosmo/location/index.js +63 -0
  115. package/lib/service/cosmo/namespace/index.d.ts +42 -0
  116. package/lib/service/cosmo/namespace/index.js +65 -0
  117. package/lib/service/cosmo/organization/index.d.ts +47 -0
  118. package/lib/service/cosmo/organization/index.js +64 -0
  119. package/lib/service/cosmo/permissions/index.d.ts +131 -0
  120. package/lib/service/cosmo/permissions/index.js +181 -0
  121. package/lib/service/cosmo/production/index.d.ts +26 -0
  122. package/lib/service/cosmo/production/index.js +45 -0
  123. package/lib/service/cosmo/share/index.d.ts +161 -0
  124. package/lib/service/cosmo/share/index.js +215 -0
  125. package/lib/service/cosmo/space/index.d.ts +104 -0
  126. package/lib/service/cosmo/space/index.js +146 -0
  127. package/lib/service/cosmo/tag/index.d.ts +67 -0
  128. package/lib/service/cosmo/tag/index.js +93 -0
  129. package/lib/service/dali/DaliAvatar.d.ts +12 -0
  130. package/lib/service/dali/DaliAvatar.js +20 -0
  131. package/lib/service/dali/avatar/DaliCosmoSpace.d.ts +32 -0
  132. package/lib/service/dali/avatar/DaliCosmoSpace.js +59 -0
  133. package/lib/service/dali/avatar/DaliFuseSpace.d.ts +10 -4
  134. package/lib/service/dali/avatar/DaliFuseSpace.js +7 -6
  135. package/lib/service/dali/avatar/DaliHigh5Pool.d.ts +10 -4
  136. package/lib/service/dali/avatar/DaliHigh5Pool.js +7 -6
  137. package/lib/service/dali/avatar/DaliHigh5Space.d.ts +10 -4
  138. package/lib/service/dali/avatar/DaliHigh5Space.js +7 -6
  139. package/lib/service/dali/avatar/DaliOAuthApp.d.ts +10 -4
  140. package/lib/service/dali/avatar/DaliOAuthApp.js +7 -6
  141. package/lib/service/dali/avatar/DaliOrganization.d.ts +10 -4
  142. package/lib/service/dali/avatar/DaliOrganization.js +7 -6
  143. package/lib/service/dali/avatar/DaliServiceAccount.d.ts +32 -0
  144. package/lib/service/dali/avatar/DaliServiceAccount.js +59 -0
  145. package/lib/service/dali/avatar/DaliTeam.d.ts +10 -4
  146. package/lib/service/dali/avatar/DaliTeam.js +7 -6
  147. package/lib/service/dali/avatar/DaliUser.d.ts +10 -4
  148. package/lib/service/dali/avatar/DaliUser.js +7 -6
  149. package/lib/service/dali/index.d.ts +4 -5
  150. package/lib/service/dali/index.js +2 -5
  151. package/lib/service/fuse/index.d.ts +4 -2
  152. package/lib/service/fuse/index.js +2 -2
  153. package/lib/service/fuse/internal/index.d.ts +4 -2
  154. package/lib/service/fuse/internal/index.js +3 -2
  155. package/lib/service/fuse/internal/space/cronjob/log/index.d.ts +4 -2
  156. package/lib/service/fuse/internal/space/cronjob/log/index.js +2 -2
  157. package/lib/service/fuse/internal/space/index.d.ts +7 -3
  158. package/lib/service/fuse/internal/space/index.js +6 -4
  159. package/lib/service/fuse/space/cronjob/index.d.ts +35 -13
  160. package/lib/service/fuse/space/cronjob/index.js +48 -50
  161. package/lib/service/fuse/space/cronjob/log/index.d.ts +8 -4
  162. package/lib/service/fuse/space/cronjob/log/index.js +5 -5
  163. package/lib/service/fuse/space/index.d.ts +27 -11
  164. package/lib/service/fuse/space/index.js +19 -18
  165. package/lib/service/high5/execution/index.d.ts +4 -2
  166. package/lib/service/high5/execution/index.js +3 -2
  167. package/lib/service/high5/execution/status/index.d.ts +5 -3
  168. package/lib/service/high5/execution/status/index.js +3 -3
  169. package/lib/service/high5/index.d.ts +7 -2
  170. package/lib/service/high5/index.js +9 -2
  171. package/lib/service/high5/internal/index.d.ts +4 -2
  172. package/lib/service/high5/internal/index.js +3 -2
  173. package/lib/service/high5/internal/space/index.d.ts +10 -3
  174. package/lib/service/high5/internal/space/index.js +13 -4
  175. package/lib/service/high5/internal/space/job/index.d.ts +7 -0
  176. package/lib/service/high5/internal/space/job/index.js +17 -0
  177. package/lib/service/high5/internal/space/job/log/index.d.ts +17 -0
  178. package/lib/service/high5/internal/space/job/log/index.js +34 -0
  179. package/lib/service/high5/joinToken/index.d.ts +14 -6
  180. package/lib/service/high5/joinToken/index.js +10 -9
  181. package/lib/service/high5/space/database/document/array/index.d.ts +73 -0
  182. package/lib/service/high5/space/database/document/array/index.js +102 -0
  183. package/lib/service/high5/space/database/document/index.d.ts +74 -0
  184. package/lib/service/high5/space/database/document/index.js +112 -0
  185. package/lib/service/high5/space/database/document/number/index.d.ts +51 -0
  186. package/lib/service/high5/space/database/document/number/index.js +77 -0
  187. package/lib/service/high5/space/database/index.d.ts +65 -0
  188. package/lib/service/high5/space/database/index.js +102 -0
  189. package/lib/service/high5/space/event/index.d.ts +17 -7
  190. package/lib/service/high5/space/event/index.js +12 -11
  191. package/lib/service/high5/space/event/stream/design/DesignOperations.d.ts +4 -2
  192. package/lib/service/high5/space/event/stream/design/DesignOperations.js +5 -3
  193. package/lib/service/high5/space/event/stream/design/index.d.ts +10 -4
  194. package/lib/service/high5/space/event/stream/design/index.js +7 -6
  195. package/lib/service/high5/space/event/stream/design/snapshot/index.d.ts +16 -6
  196. package/lib/service/high5/space/event/stream/design/snapshot/index.js +12 -10
  197. package/lib/service/high5/space/event/stream/index.d.ts +32 -12
  198. package/lib/service/high5/space/event/stream/index.js +22 -21
  199. package/lib/service/high5/space/execution/index.d.ts +22 -7
  200. package/lib/service/high5/space/execution/index.js +23 -12
  201. package/lib/service/high5/space/execution/log/index.d.ts +8 -4
  202. package/lib/service/high5/space/execution/log/index.js +5 -5
  203. package/lib/service/high5/space/execution/status/index.d.ts +18 -7
  204. package/lib/service/high5/space/execution/status/index.js +20 -8
  205. package/lib/service/high5/space/index.d.ts +56 -18
  206. package/lib/service/high5/space/index.js +65 -27
  207. package/lib/service/high5/space/job/index.d.ts +145 -0
  208. package/lib/service/high5/space/job/index.js +201 -0
  209. package/lib/service/high5/space/job/log/index.d.ts +35 -0
  210. package/lib/service/high5/space/job/log/index.js +58 -0
  211. package/lib/service/high5/space/node/index.d.ts +20 -8
  212. package/lib/service/high5/space/node/index.js +14 -13
  213. package/lib/service/high5/space/pool/index.d.ts +27 -11
  214. package/lib/service/high5/space/pool/index.js +19 -18
  215. package/lib/service/high5/space/secret/index.d.ts +17 -7
  216. package/lib/service/high5/space/secret/index.js +12 -11
  217. package/lib/service/high5/space/stat/index.d.ts +12 -0
  218. package/lib/service/high5/space/stat/index.js +31 -0
  219. package/lib/service/high5/space/wave/index.d.ts +16 -6
  220. package/lib/service/high5/space/wave/index.js +11 -10
  221. package/lib/service/high5/space/webhook/index.d.ts +32 -12
  222. package/lib/service/high5/space/webhook/index.js +25 -21
  223. package/lib/service/high5/space/webhook/log/index.d.ts +4 -2
  224. package/lib/service/high5/space/webhook/log/index.js +2 -2
  225. package/lib/service/high5/stat/index.d.ts +11 -0
  226. package/lib/service/high5/stat/index.js +30 -0
  227. package/lib/service/high5/wave/s3/index.d.ts +31 -8
  228. package/lib/service/high5/wave/s3/index.js +52 -24
  229. package/lib/service/idp/guest/index.d.ts +42 -0
  230. package/lib/service/idp/guest/index.js +66 -0
  231. package/lib/service/idp/index.d.ts +25 -7
  232. package/lib/service/idp/index.js +23 -12
  233. package/lib/service/idp/internal/index.d.ts +5 -3
  234. package/lib/service/idp/internal/index.js +5 -3
  235. package/lib/service/idp/oauth/index.d.ts +16 -6
  236. package/lib/service/idp/oauth/index.js +15 -15
  237. package/lib/service/idp/organization/index.d.ts +25 -5
  238. package/lib/service/idp/organization/index.js +29 -8
  239. package/lib/service/idp/organization/license/index.d.ts +7 -3
  240. package/lib/service/idp/organization/license/index.js +4 -4
  241. package/lib/service/idp/organization/member/index.d.ts +21 -8
  242. package/lib/service/idp/organization/member/index.js +16 -13
  243. package/lib/service/idp/organization/member/invitations/index.d.ts +23 -9
  244. package/lib/service/idp/organization/member/invitations/index.js +72 -59
  245. package/lib/service/idp/organization/service-accounts/index.d.ts +76 -0
  246. package/lib/service/idp/organization/service-accounts/index.js +109 -0
  247. package/lib/service/idp/organization/settings/domain/index.d.ts +13 -5
  248. package/lib/service/idp/organization/settings/domain/index.js +9 -8
  249. package/lib/service/idp/organization/settings/domain/saml/index.d.ts +16 -6
  250. package/lib/service/idp/organization/settings/domain/saml/index.js +19 -18
  251. package/lib/service/idp/organization/settings/oauth/index.d.ts +23 -9
  252. package/lib/service/idp/organization/settings/oauth/index.js +16 -15
  253. package/lib/service/idp/organization/stat/index.d.ts +11 -0
  254. package/lib/service/idp/organization/stat/index.js +30 -0
  255. package/lib/service/idp/organization/team/index.d.ts +22 -10
  256. package/lib/service/idp/organization/team/index.js +14 -13
  257. package/lib/service/idp/registration/index.d.ts +10 -4
  258. package/lib/service/idp/registration/index.js +15 -9
  259. package/lib/service/idp/user/index.d.ts +33 -11
  260. package/lib/service/idp/user/index.js +30 -16
  261. package/lib/service/idp/user/license/index.d.ts +7 -3
  262. package/lib/service/idp/user/license/index.js +4 -4
  263. package/lib/service/idp/user/message/index.d.ts +61 -0
  264. package/lib/service/idp/user/message/index.js +92 -0
  265. package/lib/service/idp/user/password/index.d.ts +4 -2
  266. package/lib/service/idp/user/password/index.js +3 -3
  267. package/lib/service/idp/user/settings/connections/index.d.ts +4 -2
  268. package/lib/service/idp/user/settings/connections/index.js +2 -2
  269. package/lib/service/idp/user/settings/general/index.d.ts +10 -4
  270. package/lib/service/idp/user/settings/general/index.js +6 -6
  271. package/lib/service/idp/user/settings/notifications/index.d.ts +7 -3
  272. package/lib/service/idp/user/settings/notifications/index.js +4 -4
  273. package/lib/service/idp/user/settings/oauthApps/index.d.ts +7 -3
  274. package/lib/service/idp/user/settings/oauthApps/index.js +6 -5
  275. package/lib/service/idp/user/settings/pats/index.d.ts +22 -8
  276. package/lib/service/idp/user/settings/pats/index.js +17 -15
  277. package/lib/service/idp/user/settings/twoFactor/totp/index.d.ts +16 -6
  278. package/lib/service/idp/user/settings/twoFactor/totp/index.js +13 -10
  279. package/lib/service/mailer/index.d.ts +4 -2
  280. package/lib/service/mailer/index.js +2 -2
  281. package/lib/service/mailer/internal/index.d.ts +13 -5
  282. package/lib/service/mailer/internal/index.js +8 -8
  283. package/lib/service/mothership/index.d.ts +35 -13
  284. package/lib/service/mothership/index.js +32 -18
  285. package/lib/service/nats/index.js +58 -44
  286. package/lib/service/shorts/index.d.ts +18 -0
  287. package/lib/service/shorts/index.js +38 -0
  288. package/lib/service/shorts/internal/index.d.ts +72 -0
  289. package/lib/service/shorts/internal/index.js +104 -0
  290. package/lib/utils/bouncer/features/Provider.js +0 -3
  291. package/package.json +22 -24
@@ -0,0 +1,360 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityDetails = exports.Entity = void 0;
4
+ exports.ValidationHelper = ValidationHelper;
5
+ var Entity;
6
+ (function (Entity) {
7
+ Entity["USER_NAME"] = "USER_NAME";
8
+ Entity["ORGANIZATION_NAME"] = "ORGANIZATION_NAME";
9
+ Entity["USER_ORGANIZATION_NAME"] = "USER_ORGANIZATION_NAME";
10
+ Entity["TEAM_NAME"] = "TEAM_NAME";
11
+ Entity["COMPANY_NAME"] = "COMPANY_NAME";
12
+ Entity["PAT_NAME"] = "PAT_NAME";
13
+ Entity["JOIN_TOKEN_NAME"] = "JOIN_TOKEN_NAME";
14
+ Entity["SPACE_NAME"] = "SPACE_NAME";
15
+ Entity["EVENT_NAME"] = "EVENT_NAME";
16
+ Entity["STREAM_NAME"] = "STREAM_NAME";
17
+ Entity["DESIGN_NAME"] = "DESIGN_NAME";
18
+ Entity["SNAPSHOT_NAME"] = "SNAPSHOT_NAME";
19
+ Entity["WEBHOOK_NAME"] = "WEBHOOK_NAME";
20
+ Entity["SECRET_KEY"] = "SECRET_KEY";
21
+ Entity["SECRET_VALUE"] = "SECRET_VALUE";
22
+ Entity["POOL_NAME"] = "POOL_NAME";
23
+ Entity["WAVE_ENGINE_RELEASE"] = "WAVE_ENGINE_RELEASE";
24
+ Entity["CHALLENGE_STRING"] = "CHALLENGE_STRING";
25
+ Entity["DATABASE_NAME"] = "DATABASE_NAME";
26
+ Entity["DOCUMENT_KEY"] = "DOCUMENT_KEY";
27
+ Entity["DOMAIN_NAME"] = "DOMAIN_NAME";
28
+ Entity["USER_ID"] = "USER_ID";
29
+ Entity["INVITATION_ID"] = "INVITATION_ID";
30
+ Entity["OAUTH_APP_ID"] = "OAUTH_APP_ID";
31
+ Entity["PAT_ID"] = "PAT_ID";
32
+ Entity["STREAM_ID"] = "STREAM_ID";
33
+ Entity["EXECUTION_SECRET"] = "EXECUTION_SECRET";
34
+ Entity["HIGH5_EXECUTION_ID"] = "HIGH5_EXECUTION_ID";
35
+ Entity["STREAM_LOG_ID"] = "STREAM_LOG_ID";
36
+ Entity["STREAM_STATUS_ID"] = "STREAM_STATUS_ID";
37
+ Entity["JOIN_TOKEN_ID"] = "JOIN_TOKEN_ID";
38
+ Entity["NODE_ID"] = "NODE_ID";
39
+ Entity["SNAPSHOT_ID"] = "SNAPSHOT_ID";
40
+ Entity["CATALOG_ID"] = "CATALOG_ID";
41
+ Entity["WEBHOOK_ID"] = "WEBHOOK_ID";
42
+ Entity["WEBHOOK_TOKEN"] = "WEBHOOK_TOKEN";
43
+ Entity["JOB"] = "JOB";
44
+ Entity["JOB_ID"] = "JOB_ID";
45
+ Entity["JOB_LOG_ID"] = "JOB_LOG_ID";
46
+ Entity["FUSE_JOB"] = "FUSE_JOB";
47
+ Entity["CRONJOB_ID"] = "CRONJOB_ID";
48
+ Entity["CRONJOB_LOG_ID"] = "CRONJOB_LOG_ID";
49
+ Entity["NAMESPACE_NAME"] = "NAMESPACE_NAME";
50
+ Entity["MESSAGE_ID"] = "MESSAGE_ID";
51
+ Entity["ARRAY_INDEX"] = "ARRAY_INDEX";
52
+ Entity["URL_SLUG"] = "URL_SLUG";
53
+ Entity["TAG_NAME"] = "TAG_NAME";
54
+ Entity["TAG_COLOR"] = "TAG_COLOR";
55
+ })(Entity || (exports.Entity = Entity = {}));
56
+ class EntityDetails {
57
+ constructor(name) {
58
+ this.entity = entityCollection[name];
59
+ }
60
+ get pattern() {
61
+ return this.entity.pattern;
62
+ }
63
+ get minLength() {
64
+ return this.entity.minLength;
65
+ }
66
+ get maxLength() {
67
+ return this.entity.maxLength;
68
+ }
69
+ /**
70
+ * Checks whether the specified value can be used as name of the Current Entity,
71
+ * the length of the string is additionally checking because these details may not be specified in the regular expression.
72
+ * @param value - Some string to validate
73
+ * @returns Validation result
74
+ */
75
+ validate(value) {
76
+ return (typeof value === "string" &&
77
+ value.length >= this.entity.minLength &&
78
+ value.length <= this.entity.maxLength &&
79
+ this.entity.pattern.test(value));
80
+ }
81
+ /**
82
+ * This function cleans the given string from disallowed characters, removes extra dashes, dots, and spaces at the beginning and end of the string.
83
+ * The list of allowed characters is determined automatically based on the given regular expression for name validation (property "pattern"),
84
+ * but for special cases, it can be set manually in the property "symbols" in the entity name definition.
85
+ * @param value - Incoming string to sanitize
86
+ * @returns Sanitized string
87
+ */
88
+ sanitize(value) {
89
+ if (typeof value !== "string")
90
+ return "";
91
+ if (!this.validate(value)) {
92
+ if (!this.entity.symbols) {
93
+ const matches = this.entity.pattern.toString().match(/\[([^\]]+)\]/);
94
+ this.entity.symbols = new RegExp(matches ? `[${matches[1]}]` : /./i);
95
+ }
96
+ value = value
97
+ .split("")
98
+ .filter(char => this.entity.symbols.test(char))
99
+ .join("")
100
+ .replace(/^[\s-.]+|[\s-.]+$/g, "")
101
+ .replace(/-{2,}/g, "-");
102
+ if (value.length < this.entity.minLength)
103
+ value = value.concat("x".repeat(this.entity.minLength - value.length));
104
+ return value.slice(0, this.entity.maxLength);
105
+ }
106
+ return value;
107
+ }
108
+ }
109
+ exports.EntityDetails = EntityDetails;
110
+ function ValidationHelper(name) {
111
+ return new EntityDetails(name);
112
+ }
113
+ const entityCollection = {
114
+ [Entity.USER_NAME]: {
115
+ // Case-insensitive. Must contain at least 3 character. Allows letters, numbers, underscores, hyphens, dots, and spaces. Cannot start with a dash, end with a dash, or contain double dashes
116
+ pattern: /^(?!-)(?!.*--)[\w-. ]{3,255}(?<!-)$/i,
117
+ minLength: 3,
118
+ maxLength: 255,
119
+ },
120
+ [Entity.ORGANIZATION_NAME]: {
121
+ // Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
122
+ pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
123
+ minLength: 3,
124
+ maxLength: 64,
125
+ },
126
+ [Entity.USER_ORGANIZATION_NAME]: {
127
+ pattern: /^[\w-+@.]{3,255}$/i,
128
+ minLength: 3,
129
+ maxLength: 255,
130
+ },
131
+ [Entity.TEAM_NAME]: {
132
+ // Case-insensitive. No spaces or additional special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
133
+ pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
134
+ minLength: 3,
135
+ maxLength: 64,
136
+ },
137
+ [Entity.COMPANY_NAME]: {
138
+ pattern: /^[\w-. ]{1,255}$/i,
139
+ minLength: 1,
140
+ maxLength: 255,
141
+ },
142
+ [Entity.PAT_NAME]: {
143
+ pattern: /^[\w-. ]{1,64}$/i,
144
+ minLength: 1,
145
+ maxLength: 64,
146
+ },
147
+ [Entity.JOIN_TOKEN_NAME]: {
148
+ pattern: /^[\w-.]{1,64}$/i,
149
+ minLength: 1,
150
+ maxLength: 64,
151
+ },
152
+ [Entity.SPACE_NAME]: {
153
+ pattern: /^[\w-.]{1,32}$/i,
154
+ minLength: 1,
155
+ maxLength: 32,
156
+ },
157
+ [Entity.EVENT_NAME]: {
158
+ pattern: /^[\w-.]{1,128}$/i,
159
+ minLength: 1,
160
+ maxLength: 128,
161
+ },
162
+ [Entity.STREAM_NAME]: {
163
+ pattern: /^(?![.\s]+)[\w-. ]{1,128}(?<![.\s]+)$/i,
164
+ symbols: /[\w-. ]/i,
165
+ minLength: 1,
166
+ maxLength: 128,
167
+ },
168
+ [Entity.DESIGN_NAME]: {
169
+ pattern: /^[a-zA-Z-_]{1,64}$/i,
170
+ minLength: 1,
171
+ maxLength: 64,
172
+ },
173
+ [Entity.SNAPSHOT_NAME]: {
174
+ pattern: /^[\w-. ]{1,64}$/i,
175
+ minLength: 1,
176
+ maxLength: 64,
177
+ },
178
+ [Entity.WEBHOOK_NAME]: {
179
+ pattern: /^[\w-. ]{1,128}$/i,
180
+ minLength: 1,
181
+ maxLength: 128,
182
+ },
183
+ [Entity.SECRET_KEY]: {
184
+ pattern: /^[\w-.]{1,32}$/i,
185
+ minLength: 1,
186
+ maxLength: 32,
187
+ },
188
+ [Entity.SECRET_VALUE]: {
189
+ pattern: /^.{1,1024}$/i,
190
+ minLength: 1,
191
+ maxLength: 1024,
192
+ },
193
+ [Entity.POOL_NAME]: {
194
+ pattern: /^[\w-.]{1,128}$/i,
195
+ minLength: 1,
196
+ maxLength: 128,
197
+ },
198
+ [Entity.WAVE_ENGINE_RELEASE]: {
199
+ pattern: /^\d+\.\d+\.\d+(-dev-\d+)?$/i,
200
+ symbols: /[dev0-9-.]/i,
201
+ minLength: 1,
202
+ maxLength: 128,
203
+ },
204
+ [Entity.CHALLENGE_STRING]: {
205
+ pattern: /^[\w-]{1,128}$/i,
206
+ minLength: 1,
207
+ maxLength: 128,
208
+ },
209
+ [Entity.DATABASE_NAME]: {
210
+ pattern: /^[\w-.]{1,128}$/i,
211
+ minLength: 1,
212
+ maxLength: 128,
213
+ },
214
+ [Entity.DOCUMENT_KEY]: {
215
+ pattern: /^[\w-.]{1,64}$/i,
216
+ minLength: 1,
217
+ maxLength: 64,
218
+ },
219
+ [Entity.DOMAIN_NAME]: {
220
+ pattern: /^(?=.{1,254}$)(?=(^.{1,63}\.|^.{1,63}\.)*)(^([a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$)$/i,
221
+ minLength: 4,
222
+ maxLength: 254,
223
+ },
224
+ [Entity.USER_ID]: {
225
+ pattern: /^[a-fA-F0-9]{24}$/i,
226
+ minLength: 24,
227
+ maxLength: 24,
228
+ },
229
+ [Entity.INVITATION_ID]: {
230
+ pattern: /^[a-fA-F0-9]{24}$/i,
231
+ minLength: 24,
232
+ maxLength: 24,
233
+ },
234
+ [Entity.OAUTH_APP_ID]: {
235
+ pattern: /^[a-fA-F0-9]{24}$/i,
236
+ minLength: 24,
237
+ maxLength: 24,
238
+ },
239
+ [Entity.PAT_ID]: {
240
+ pattern: /^[a-fA-F0-9]{24}$/i,
241
+ minLength: 24,
242
+ maxLength: 24,
243
+ },
244
+ [Entity.STREAM_ID]: {
245
+ pattern: /^[a-fA-F0-9]{24}$/i,
246
+ minLength: 24,
247
+ maxLength: 24,
248
+ },
249
+ [Entity.EXECUTION_SECRET]: {
250
+ pattern: /^[\w-]{3,1024}$/i,
251
+ minLength: 3,
252
+ maxLength: 1024,
253
+ },
254
+ [Entity.HIGH5_EXECUTION_ID]: {
255
+ pattern: /^[a-fA-F0-9]{24}$/i,
256
+ minLength: 24,
257
+ maxLength: 24,
258
+ },
259
+ [Entity.STREAM_LOG_ID]: {
260
+ pattern: /^[a-fA-F0-9]{24}$/i,
261
+ minLength: 24,
262
+ maxLength: 24,
263
+ },
264
+ [Entity.STREAM_STATUS_ID]: {
265
+ pattern: /^[a-fA-F0-9]{24}$/i,
266
+ minLength: 24,
267
+ maxLength: 24,
268
+ },
269
+ [Entity.JOIN_TOKEN_ID]: {
270
+ pattern: /^[a-fA-F0-9]{24}$/i,
271
+ minLength: 24,
272
+ maxLength: 24,
273
+ },
274
+ [Entity.NODE_ID]: {
275
+ pattern: /^[a-fA-F0-9]{24}$/i,
276
+ minLength: 24,
277
+ maxLength: 24,
278
+ },
279
+ [Entity.SNAPSHOT_ID]: {
280
+ pattern: /^[a-fA-F0-9]{24}$/i,
281
+ minLength: 24,
282
+ maxLength: 24,
283
+ },
284
+ [Entity.CATALOG_ID]: {
285
+ pattern: /^[a-fA-F0-9]{24}$/i,
286
+ minLength: 24,
287
+ maxLength: 24,
288
+ },
289
+ [Entity.WEBHOOK_ID]: {
290
+ pattern: /^[a-fA-F0-9]{24}$/i,
291
+ minLength: 24,
292
+ maxLength: 24,
293
+ },
294
+ [Entity.WEBHOOK_TOKEN]: {
295
+ pattern: /^[a-fA-F0-9]{128}$/i,
296
+ minLength: 128,
297
+ maxLength: 128,
298
+ },
299
+ [Entity.JOB]: {
300
+ pattern: /^.{1,64}$/i,
301
+ minLength: 1,
302
+ maxLength: 64,
303
+ },
304
+ [Entity.JOB_ID]: {
305
+ pattern: /^[a-fA-F0-9]{24}$/i,
306
+ minLength: 24,
307
+ maxLength: 24,
308
+ },
309
+ [Entity.JOB_LOG_ID]: {
310
+ pattern: /^[a-fA-F0-9]{24}$/i,
311
+ minLength: 24,
312
+ maxLength: 24,
313
+ },
314
+ [Entity.FUSE_JOB]: {
315
+ pattern: /^.{1,64}$/i,
316
+ minLength: 1,
317
+ maxLength: 64,
318
+ },
319
+ [Entity.CRONJOB_ID]: {
320
+ pattern: /^[a-fA-F0-9]{24}$/i,
321
+ minLength: 24,
322
+ maxLength: 24,
323
+ },
324
+ [Entity.CRONJOB_LOG_ID]: {
325
+ pattern: /^[a-fA-F0-9]{24}$/i,
326
+ minLength: 24,
327
+ maxLength: 24,
328
+ },
329
+ [Entity.NAMESPACE_NAME]: {
330
+ // Case-insensitive. No spaces or other special characters allowed. Cannot start with a dash, end with a dash, or contain double dashes
331
+ pattern: /^(?!-)(?!.*--)[a-zA-Z0-9-.]{3,64}(?<!-)$/i,
332
+ minLength: 3,
333
+ maxLength: 64,
334
+ },
335
+ [Entity.MESSAGE_ID]: {
336
+ pattern: /^[a-fA-F0-9]{24}$/i,
337
+ minLength: 24,
338
+ maxLength: 24,
339
+ },
340
+ [Entity.ARRAY_INDEX]: {
341
+ pattern: /^\d{1,24}$/i,
342
+ minLength: 1,
343
+ maxLength: 24,
344
+ },
345
+ [Entity.URL_SLUG]: {
346
+ pattern: /^[A-NP-Za-km-z1-9]{6}$/i,
347
+ minLength: 6,
348
+ maxLength: 6,
349
+ },
350
+ [Entity.TAG_NAME]: {
351
+ pattern: /^[a-zA-Z0-9 ]{1,20}$/i,
352
+ minLength: 1,
353
+ maxLength: 20,
354
+ },
355
+ [Entity.TAG_COLOR]: {
356
+ pattern: /^#([a-fA-F0-9]{3}|[a-fA-F0-9]{6})$/i,
357
+ minLength: 7,
358
+ maxLength: 7,
359
+ },
360
+ };
@@ -12,7 +12,9 @@ export declare enum Origin {
12
12
  Mailer = "mailer",
13
13
  Fuse = "fuse",
14
14
  Mothership = "mothership",
15
- Dali = "dali"
15
+ Dali = "dali",
16
+ Shorts = "shorts",
17
+ Cosmo = "cosmo"
16
18
  }
17
19
  export declare enum Event {
18
20
  Login = "login",
@@ -26,10 +28,20 @@ export declare enum Event {
26
28
  Stream = "stream",
27
29
  Mail = "mail",
28
30
  Webhook = "webhook",
31
+ Job = "job",
29
32
  Cronjob = "cronjob",
30
33
  Secret = "secret",
31
34
  Agent = "agent",
32
- Avatar = "avatar"
35
+ Avatar = "avatar",
36
+ ServiceAccount = "serviceAccount",
37
+ Database = "database",
38
+ Document = "document",
39
+ Asset = "asset",
40
+ Share = "share",
41
+ Role = "role",
42
+ Group = "group",
43
+ Tag = "tag",
44
+ Reference = "reference"
33
45
  }
34
46
  export declare enum Type {
35
47
  Read = "read",
@@ -59,6 +71,7 @@ export interface AuditLog {
59
71
  message?: unknown;
60
72
  expireAt: Date;
61
73
  requestorIp: string;
74
+ assetId?: string;
62
75
  }
63
76
  export interface AuditLogCreate {
64
77
  level: Level;
@@ -71,4 +84,6 @@ export interface AuditLogCreate {
71
84
  type?: Type;
72
85
  message?: unknown;
73
86
  requestorIp: string;
87
+ assetId?: string;
88
+ preventTTL?: boolean;
74
89
  }
@@ -17,6 +17,8 @@ var Origin;
17
17
  Origin["Fuse"] = "fuse";
18
18
  Origin["Mothership"] = "mothership";
19
19
  Origin["Dali"] = "dali";
20
+ Origin["Shorts"] = "shorts";
21
+ Origin["Cosmo"] = "cosmo";
20
22
  })(Origin || (exports.Origin = Origin = {}));
21
23
  var Event;
22
24
  (function (Event) {
@@ -31,10 +33,20 @@ var Event;
31
33
  Event["Stream"] = "stream";
32
34
  Event["Mail"] = "mail";
33
35
  Event["Webhook"] = "webhook";
36
+ Event["Job"] = "job";
34
37
  Event["Cronjob"] = "cronjob";
35
38
  Event["Secret"] = "secret";
36
39
  Event["Agent"] = "agent";
37
40
  Event["Avatar"] = "avatar";
41
+ Event["ServiceAccount"] = "serviceAccount";
42
+ Event["Database"] = "database";
43
+ Event["Document"] = "document";
44
+ Event["Asset"] = "asset";
45
+ Event["Share"] = "share";
46
+ Event["Role"] = "role";
47
+ Event["Group"] = "group";
48
+ Event["Tag"] = "tag";
49
+ Event["Reference"] = "reference";
38
50
  })(Event || (exports.Event = Event = {}));
39
51
  var Type;
40
52
  (function (Type) {
@@ -0,0 +1,185 @@
1
+ import { ReducedSpace } from "../../global";
2
+ import { SearchFilterComparatorString, SearchFilterType } from "../../global/SearchFilters";
3
+ import { ReducedOrganization } from "../../idp/organization";
4
+ import { ReducedUser } from "../../idp/user";
5
+ import { CosmoSpace } from "../space";
6
+ import { Tag } from "../tag/tag";
7
+ export interface BaseAsset {
8
+ _id: string;
9
+ name: string;
10
+ type: ItemType;
11
+ createDate: number;
12
+ modifyDate: number;
13
+ creator: ReducedUser;
14
+ organization: ReducedOrganization;
15
+ space: ReducedSpace;
16
+ permissions?: string[];
17
+ breadcrumb?: (Asset | CosmoSpace)[];
18
+ }
19
+ export type Asset = (BaseAsset & {
20
+ type: ItemType.MEDIA_ASSET;
21
+ extension: string;
22
+ assetType: AssetType;
23
+ path: string;
24
+ status: UploadStatus;
25
+ tag?: Tag;
26
+ previewUrl?: string;
27
+ duration?: number;
28
+ frameRate?: number;
29
+ media?: Media[];
30
+ thumbnailUrl?: string;
31
+ namespaces?: Record<string, {
32
+ status: string;
33
+ tag?: Tag;
34
+ }>;
35
+ }) | Production | Folder | AssetReference;
36
+ export type Production = BaseAsset & {
37
+ type: ItemType.PRODUCTION;
38
+ };
39
+ export type Folder = BaseAsset & {
40
+ type: ItemType.FOLDER;
41
+ children?: Asset[];
42
+ };
43
+ export type AssetReference = BaseAsset & {
44
+ type: ItemType.REFERENCE;
45
+ reference: {
46
+ status: string;
47
+ };
48
+ };
49
+ export declare enum AssetType {
50
+ VIDEO = "VIDEO",
51
+ IMAGE = "IMAGE",
52
+ DOCUMENT = "DOCUMENT",
53
+ UNKNOWN = "UNKNOWN",
54
+ FOLDER = "FOLDER"
55
+ }
56
+ export declare enum ItemType {
57
+ ASSET = "ASSET",
58
+ MEDIA_ASSET = "MEDIA_ASSET",
59
+ REFERENCE = "REFERENCE",
60
+ SPACE = "SPACE",
61
+ PRODUCTION = "PRODUCTION",
62
+ PROJECT = "PROJECT",
63
+ FOLDER = "FOLDER",
64
+ COMMENT = "COMMENT",
65
+ TAG = "TAG"
66
+ }
67
+ export declare enum UploadStatus {
68
+ WAITING = "WAITING",
69
+ UPLOADING = "UPLOADING",
70
+ UPLOADED = "UPLOADED",
71
+ PROCESSING = "PROCESSING",
72
+ FINISHED = "FINISHED",
73
+ FAILED = "FAILED"
74
+ }
75
+ export type NamespaceRushStatus = "approved" | "rejected" | "none";
76
+ export interface Upload {
77
+ url: string;
78
+ token: string;
79
+ expiration: number;
80
+ libraryId?: string;
81
+ videoId?: string;
82
+ }
83
+ export declare enum AssetPermission {
84
+ CONTRIBUTE = "CONTRIBUTE",
85
+ DOWNLOAD = "DOWNLOAD",
86
+ DELETE = "DELETE",
87
+ READ_DETAILS = "READ_DETAILS"
88
+ }
89
+ type BaseMedia = {
90
+ url?: string;
91
+ };
92
+ export type Media = (BaseMedia & {
93
+ type: MediaType.VIDEO;
94
+ name: "original" | string;
95
+ fileSize: number;
96
+ metadata: (VideoMetadata | AudioMetadata)[];
97
+ }) | (BaseMedia & {
98
+ type: MediaType.AUDIO;
99
+ name: string;
100
+ metadata: AudioMetadata[];
101
+ }) | (BaseMedia & {
102
+ type: MediaType.IMAGE;
103
+ name: string;
104
+ }) | (BaseMedia & {
105
+ type: MediaType.UNKNOWN;
106
+ name: string;
107
+ });
108
+ export declare enum MediaType {
109
+ VIDEO = "VIDEO",
110
+ AUDIO = "AUDIO",
111
+ IMAGE = "IMAGE",
112
+ UNKNOWN = "UNKNOWN"
113
+ }
114
+ export declare enum MetadataType {
115
+ VIDEO = "VIDEO",
116
+ AUDIO = "AUDIO",
117
+ UNKNOWN = "UNKNOWN"
118
+ }
119
+ export interface VideoMetadata {
120
+ type: MetadataType.VIDEO;
121
+ codec: string;
122
+ frameRate: number;
123
+ pixelFormat: string;
124
+ aspectRatio: string;
125
+ colorSpace: string;
126
+ width: number;
127
+ height: number;
128
+ fieldOrder: string;
129
+ duration: number;
130
+ tcIn: string;
131
+ tcOut: string;
132
+ noOfFrames: number;
133
+ formatLongName: string;
134
+ }
135
+ export interface AudioMetadata {
136
+ type: MetadataType.AUDIO;
137
+ codec: string;
138
+ channels: number;
139
+ channelLayout: string;
140
+ bitRate: number;
141
+ sampleRate: number;
142
+ }
143
+ export interface CreateAsset {
144
+ name: string;
145
+ parentId?: string;
146
+ tags?: string[];
147
+ categories?: string[];
148
+ }
149
+ export interface PatchAsset {
150
+ tags?: string[];
151
+ categories?: string[];
152
+ }
153
+ export declare enum Resolution {
154
+ ORIGINAL = "original",
155
+ R1080 = "1080",
156
+ R720 = "720",
157
+ R480 = "480"
158
+ }
159
+ export declare const supportedFormats: string[];
160
+ export declare const searchParams: {
161
+ readonly type: {
162
+ readonly type: readonly [SearchFilterType.STRING, SearchFilterType.SELECT, SearchFilterType.TYPEAHEAD];
163
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT];
164
+ };
165
+ readonly _id: {
166
+ readonly type: readonly [SearchFilterType.STRING];
167
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT];
168
+ };
169
+ readonly name: {
170
+ readonly type: readonly [SearchFilterType.STRING, SearchFilterType.SELECT, SearchFilterType.TYPEAHEAD];
171
+ readonly comparators: readonly [SearchFilterComparatorString.IS, SearchFilterComparatorString.IS_NOT, SearchFilterComparatorString.CONTAINS];
172
+ };
173
+ };
174
+ export interface AssetFilter {
175
+ key: keyof typeof searchParams;
176
+ type: (typeof searchParams)[this["key"]]["type"][number];
177
+ value: string;
178
+ comparator: (typeof searchParams)[this["key"]]["comparators"][number];
179
+ }
180
+ export declare enum AssetSearchContext {
181
+ ORGANIZATION = "ORGANIZATION",
182
+ TRASH = "TRASH",
183
+ SHARE = "SHARE"
184
+ }
185
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ 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 || (exports.UploadStatus = UploadStatus = {}));
35
+ var AssetPermission;
36
+ (function (AssetPermission) {
37
+ AssetPermission["CONTRIBUTE"] = "CONTRIBUTE";
38
+ AssetPermission["DOWNLOAD"] = "DOWNLOAD";
39
+ AssetPermission["DELETE"] = "DELETE";
40
+ AssetPermission["READ_DETAILS"] = "READ_DETAILS";
41
+ })(AssetPermission || (exports.AssetPermission = AssetPermission = {}));
42
+ var MediaType;
43
+ (function (MediaType) {
44
+ MediaType["VIDEO"] = "VIDEO";
45
+ MediaType["AUDIO"] = "AUDIO";
46
+ MediaType["IMAGE"] = "IMAGE";
47
+ MediaType["UNKNOWN"] = "UNKNOWN";
48
+ })(MediaType || (exports.MediaType = MediaType = {}));
49
+ var MetadataType;
50
+ (function (MetadataType) {
51
+ MetadataType["VIDEO"] = "VIDEO";
52
+ MetadataType["AUDIO"] = "AUDIO";
53
+ MetadataType["UNKNOWN"] = "UNKNOWN";
54
+ })(MetadataType || (exports.MetadataType = MetadataType = {}));
55
+ var Resolution;
56
+ (function (Resolution) {
57
+ Resolution["ORIGINAL"] = "original";
58
+ Resolution["R1080"] = "1080";
59
+ Resolution["R720"] = "720";
60
+ Resolution["R480"] = "480";
61
+ })(Resolution || (exports.Resolution = Resolution = {}));
62
+ exports.supportedFormats = [".mp4", ".mov", ".mkv", ".mxf"];
63
+ exports.searchParams = {
64
+ type: {
65
+ type: [SearchFilters_1.SearchFilterType.STRING, SearchFilters_1.SearchFilterType.SELECT, SearchFilters_1.SearchFilterType.TYPEAHEAD],
66
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT],
67
+ },
68
+ _id: {
69
+ type: [SearchFilters_1.SearchFilterType.STRING],
70
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT],
71
+ },
72
+ name: {
73
+ type: [SearchFilters_1.SearchFilterType.STRING, SearchFilters_1.SearchFilterType.SELECT, SearchFilters_1.SearchFilterType.TYPEAHEAD],
74
+ comparators: [SearchFilters_1.SearchFilterComparatorString.IS, SearchFilters_1.SearchFilterComparatorString.IS_NOT, SearchFilters_1.SearchFilterComparatorString.CONTAINS],
75
+ },
76
+ };
77
+ var AssetSearchContext;
78
+ (function (AssetSearchContext) {
79
+ AssetSearchContext["ORGANIZATION"] = "ORGANIZATION";
80
+ AssetSearchContext["TRASH"] = "TRASH";
81
+ AssetSearchContext["SHARE"] = "SHARE";
82
+ })(AssetSearchContext || (exports.AssetSearchContext = AssetSearchContext = {}));