@ludeo/cloud-common 1.1.143 → 1.2.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 (470) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +2 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/dist/v4/contexts/cloud-pool-context.d.ts +8 -0
  6. package/dist/v4/contexts/cloud-pool-context.js +41 -0
  7. package/dist/v4/contexts/cloud-pool-context.js.map +1 -0
  8. package/dist/v4/contexts/cloud-resource-context.d.ts +14 -0
  9. package/dist/v4/contexts/cloud-resource-context.js +72 -0
  10. package/dist/v4/contexts/cloud-resource-context.js.map +1 -0
  11. package/dist/v4/contexts/cloud-session-context.d.ts +20 -0
  12. package/dist/v4/contexts/cloud-session-context.js +101 -0
  13. package/dist/v4/contexts/cloud-session-context.js.map +1 -0
  14. package/dist/v4/contexts/getCloudContextType.d.ts +5 -0
  15. package/dist/v4/contexts/getCloudContextType.js +20 -0
  16. package/dist/v4/contexts/getCloudContextType.js.map +1 -0
  17. package/dist/v4/contexts/getCloudContextType.spec.d.ts +1 -0
  18. package/dist/v4/contexts/getCloudContextType.spec.js +95 -0
  19. package/dist/v4/contexts/getCloudContextType.spec.js.map +1 -0
  20. package/dist/v4/contexts/index.d.ts +4 -0
  21. package/dist/v4/contexts/index.js +21 -0
  22. package/dist/v4/contexts/index.js.map +1 -0
  23. package/dist/v4/events/allocate-cloud-session-failed.d.ts +11 -0
  24. package/dist/v4/events/allocate-cloud-session-failed.js +41 -0
  25. package/dist/v4/events/allocate-cloud-session-failed.js.map +1 -0
  26. package/dist/v4/events/allocate-cloud-session-request.d.ts +12 -0
  27. package/dist/v4/events/allocate-cloud-session-request.js +41 -0
  28. package/dist/v4/events/allocate-cloud-session-request.js.map +1 -0
  29. package/dist/v4/events/allocate-game-request.d.ts +13 -0
  30. package/dist/v4/events/allocate-game-request.js +46 -0
  31. package/dist/v4/events/allocate-game-request.js.map +1 -0
  32. package/dist/v4/events/allocate-game-resource-request.d.ts +17 -0
  33. package/dist/v4/events/allocate-game-resource-request.js +62 -0
  34. package/dist/v4/events/allocate-game-resource-request.js.map +1 -0
  35. package/dist/v4/events/allocate-ludeo-resource-request.d.ts +11 -0
  36. package/dist/v4/events/allocate-ludeo-resource-request.js +41 -0
  37. package/dist/v4/events/allocate-ludeo-resource-request.js.map +1 -0
  38. package/dist/v4/events/allocate-machine-request.d.ts +13 -0
  39. package/dist/v4/events/allocate-machine-request.js +49 -0
  40. package/dist/v4/events/allocate-machine-request.js.map +1 -0
  41. package/dist/v4/events/aws-poll-stream-session-task.d.ts +15 -0
  42. package/dist/v4/events/aws-poll-stream-session-task.js +49 -0
  43. package/dist/v4/events/aws-poll-stream-session-task.js.map +1 -0
  44. package/dist/v4/events/aws-reactivate-stream-session-task.d.ts +13 -0
  45. package/dist/v4/events/aws-reactivate-stream-session-task.js +44 -0
  46. package/dist/v4/events/aws-reactivate-stream-session-task.js.map +1 -0
  47. package/dist/v4/events/aws-stream-session-active.d.ts +15 -0
  48. package/dist/v4/events/aws-stream-session-active.js +51 -0
  49. package/dist/v4/events/aws-stream-session-active.js.map +1 -0
  50. package/dist/v4/events/aws-stream-session-reactivation-started.d.ts +13 -0
  51. package/dist/v4/events/aws-stream-session-reactivation-started.js +44 -0
  52. package/dist/v4/events/aws-stream-session-reactivation-started.js.map +1 -0
  53. package/dist/v4/events/cloud-machine-auth-ready.d.ts +16 -0
  54. package/dist/v4/events/cloud-machine-auth-ready.js +54 -0
  55. package/dist/v4/events/cloud-machine-auth-ready.js.map +1 -0
  56. package/dist/v4/events/cloud-session-allocated.d.ts +13 -0
  57. package/dist/v4/events/cloud-session-allocated.js +47 -0
  58. package/dist/v4/events/cloud-session-allocated.js.map +1 -0
  59. package/dist/v4/events/cloud-session-created.d.ts +9 -0
  60. package/dist/v4/events/cloud-session-created.js +34 -0
  61. package/dist/v4/events/cloud-session-created.js.map +1 -0
  62. package/dist/v4/events/cloud-session-ended.d.ts +14 -0
  63. package/dist/v4/events/cloud-session-ended.js +53 -0
  64. package/dist/v4/events/cloud-session-ended.js.map +1 -0
  65. package/dist/v4/events/cloud-session-optimal-region-selected.d.ts +12 -0
  66. package/dist/v4/events/cloud-session-optimal-region-selected.js +40 -0
  67. package/dist/v4/events/cloud-session-optimal-region-selected.js.map +1 -0
  68. package/dist/v4/events/cloud-session-provider-requested.d.ts +14 -0
  69. package/dist/v4/events/cloud-session-provider-requested.js +51 -0
  70. package/dist/v4/events/cloud-session-provider-requested.js.map +1 -0
  71. package/dist/v4/events/cloud-session-timeout-task.d.ts +10 -0
  72. package/dist/v4/events/cloud-session-timeout-task.js +36 -0
  73. package/dist/v4/events/cloud-session-timeout-task.js.map +1 -0
  74. package/dist/v4/events/create-game-resource-request.d.ts +16 -0
  75. package/dist/v4/events/create-game-resource-request.js +58 -0
  76. package/dist/v4/events/create-game-resource-request.js.map +1 -0
  77. package/dist/v4/events/create-games-request.d.ts +12 -0
  78. package/dist/v4/events/create-games-request.js +45 -0
  79. package/dist/v4/events/create-games-request.js.map +1 -0
  80. package/dist/v4/events/create-ludeos-request.d.ts +12 -0
  81. package/dist/v4/events/create-ludeos-request.js +45 -0
  82. package/dist/v4/events/create-ludeos-request.js.map +1 -0
  83. package/dist/v4/events/create-machine-resource-batch-request.d.ts +15 -0
  84. package/dist/v4/events/create-machine-resource-batch-request.js +54 -0
  85. package/dist/v4/events/create-machine-resource-batch-request.js.map +1 -0
  86. package/dist/v4/events/create-machine-resource-request.d.ts +15 -0
  87. package/dist/v4/events/create-machine-resource-request.js +54 -0
  88. package/dist/v4/events/create-machine-resource-request.js.map +1 -0
  89. package/dist/v4/events/create-machines-request.d.ts +12 -0
  90. package/dist/v4/events/create-machines-request.js +45 -0
  91. package/dist/v4/events/create-machines-request.js.map +1 -0
  92. package/dist/v4/events/deallocate-machine-request.d.ts +14 -0
  93. package/dist/v4/events/deallocate-machine-request.js +53 -0
  94. package/dist/v4/events/deallocate-machine-request.js.map +1 -0
  95. package/dist/v4/events/game-allocated-response.d.ts +12 -0
  96. package/dist/v4/events/game-allocated-response.js +41 -0
  97. package/dist/v4/events/game-allocated-response.js.map +1 -0
  98. package/dist/v4/events/game-allocation-failed-response.d.ts +13 -0
  99. package/dist/v4/events/game-allocation-failed-response.js +46 -0
  100. package/dist/v4/events/game-allocation-failed-response.js.map +1 -0
  101. package/dist/v4/events/game-available.d.ts +11 -0
  102. package/dist/v4/events/game-available.js +41 -0
  103. package/dist/v4/events/game-available.js.map +1 -0
  104. package/dist/v4/events/game-resource-allocated-response.d.ts +15 -0
  105. package/dist/v4/events/game-resource-allocated-response.js +54 -0
  106. package/dist/v4/events/game-resource-allocated-response.js.map +1 -0
  107. package/dist/v4/events/game-resource-allocation-failed-response.d.ts +15 -0
  108. package/dist/v4/events/game-resource-allocation-failed-response.js +54 -0
  109. package/dist/v4/events/game-resource-allocation-failed-response.js.map +1 -0
  110. package/dist/v4/events/game-resource-allocation-timeout-task.d.ts +11 -0
  111. package/dist/v4/events/game-resource-allocation-timeout-task.js +39 -0
  112. package/dist/v4/events/game-resource-allocation-timeout-task.js.map +1 -0
  113. package/dist/v4/events/game-resource-created-response.d.ts +15 -0
  114. package/dist/v4/events/game-resource-created-response.js +54 -0
  115. package/dist/v4/events/game-resource-created-response.js.map +1 -0
  116. package/dist/v4/events/game-resource-creation-failed-response.d.ts +13 -0
  117. package/dist/v4/events/game-resource-creation-failed-response.js +49 -0
  118. package/dist/v4/events/game-resource-creation-failed-response.js.map +1 -0
  119. package/dist/v4/events/game-resource-ready-for-creation-failed.d.ts +13 -0
  120. package/dist/v4/events/game-resource-ready-for-creation-failed.js +49 -0
  121. package/dist/v4/events/game-resource-ready-for-creation-failed.js.map +1 -0
  122. package/dist/v4/events/game-resource-ready-for-creation.d.ts +14 -0
  123. package/dist/v4/events/game-resource-ready-for-creation.js +46 -0
  124. package/dist/v4/events/game-resource-ready-for-creation.js.map +1 -0
  125. package/dist/v4/events/game-resource-status-changed.d.ts +17 -0
  126. package/dist/v4/events/game-resource-status-changed.js +64 -0
  127. package/dist/v4/events/game-resource-status-changed.js.map +1 -0
  128. package/dist/v4/events/game-resource-terminated-response.d.ts +13 -0
  129. package/dist/v4/events/game-resource-terminated-response.js +49 -0
  130. package/dist/v4/events/game-resource-terminated-response.js.map +1 -0
  131. package/dist/v4/events/game-resource-termination-failed-response.d.ts +14 -0
  132. package/dist/v4/events/game-resource-termination-failed-response.js +53 -0
  133. package/dist/v4/events/game-resource-termination-failed-response.js.map +1 -0
  134. package/dist/v4/events/game-terminated-response.d.ts +12 -0
  135. package/dist/v4/events/game-terminated-response.js +45 -0
  136. package/dist/v4/events/game-terminated-response.js.map +1 -0
  137. package/dist/v4/events/game-termination-failed-response.d.ts +13 -0
  138. package/dist/v4/events/game-termination-failed-response.js +49 -0
  139. package/dist/v4/events/game-termination-failed-response.js.map +1 -0
  140. package/dist/v4/events/gameplay-waiting-for-user.d.ts +11 -0
  141. package/dist/v4/events/gameplay-waiting-for-user.js +41 -0
  142. package/dist/v4/events/gameplay-waiting-for-user.js.map +1 -0
  143. package/dist/v4/events/index.d.ts +84 -0
  144. package/dist/v4/events/index.js +101 -0
  145. package/dist/v4/events/index.js.map +1 -0
  146. package/dist/v4/events/invalid-game-resource.d.ts +13 -0
  147. package/dist/v4/events/invalid-game-resource.js +49 -0
  148. package/dist/v4/events/invalid-game-resource.js.map +1 -0
  149. package/dist/v4/events/load-ludeo-resource.d.ts +11 -0
  150. package/dist/v4/events/load-ludeo-resource.js +41 -0
  151. package/dist/v4/events/load-ludeo-resource.js.map +1 -0
  152. package/dist/v4/events/ludeo-allocated-response.d.ts +11 -0
  153. package/dist/v4/events/ludeo-allocated-response.js +41 -0
  154. package/dist/v4/events/ludeo-allocated-response.js.map +1 -0
  155. package/dist/v4/events/ludeo-allocation-failed.d.ts +11 -0
  156. package/dist/v4/events/ludeo-allocation-failed.js +41 -0
  157. package/dist/v4/events/ludeo-allocation-failed.js.map +1 -0
  158. package/dist/v4/events/ludeo-obtained-timeout-task.d.ts +10 -0
  159. package/dist/v4/events/ludeo-obtained-timeout-task.js +36 -0
  160. package/dist/v4/events/ludeo-obtained-timeout-task.js.map +1 -0
  161. package/dist/v4/events/ludeo-resource-allocated-response.d.ts +11 -0
  162. package/dist/v4/events/ludeo-resource-allocated-response.js +41 -0
  163. package/dist/v4/events/ludeo-resource-allocated-response.js.map +1 -0
  164. package/dist/v4/events/ludeo-resource-allocation-failed.d.ts +11 -0
  165. package/dist/v4/events/ludeo-resource-allocation-failed.js +41 -0
  166. package/dist/v4/events/ludeo-resource-allocation-failed.js.map +1 -0
  167. package/dist/v4/events/ludeo-resource-loaded.d.ts +11 -0
  168. package/dist/v4/events/ludeo-resource-loaded.js +41 -0
  169. package/dist/v4/events/ludeo-resource-loaded.js.map +1 -0
  170. package/dist/v4/events/ludeo-resource-loading-failed.d.ts +11 -0
  171. package/dist/v4/events/ludeo-resource-loading-failed.js +41 -0
  172. package/dist/v4/events/ludeo-resource-loading-failed.js.map +1 -0
  173. package/dist/v4/events/machine-allocated-response.d.ts +17 -0
  174. package/dist/v4/events/machine-allocated-response.js +62 -0
  175. package/dist/v4/events/machine-allocated-response.js.map +1 -0
  176. package/dist/v4/events/machine-allocation-failed-response.d.ts +14 -0
  177. package/dist/v4/events/machine-allocation-failed-response.js +53 -0
  178. package/dist/v4/events/machine-allocation-failed-response.js.map +1 -0
  179. package/dist/v4/events/machine-deallocated-response.d.ts +14 -0
  180. package/dist/v4/events/machine-deallocated-response.js +53 -0
  181. package/dist/v4/events/machine-deallocated-response.js.map +1 -0
  182. package/dist/v4/events/machine-deallocation-failed-response.d.ts +15 -0
  183. package/dist/v4/events/machine-deallocation-failed-response.js +57 -0
  184. package/dist/v4/events/machine-deallocation-failed-response.js.map +1 -0
  185. package/dist/v4/events/machine-pool-resizing-task.d.ts +13 -0
  186. package/dist/v4/events/machine-pool-resizing-task.js +45 -0
  187. package/dist/v4/events/machine-pool-resizing-task.js.map +1 -0
  188. package/dist/v4/events/machine-resource-batch-creation-failed-response.d.ts +16 -0
  189. package/dist/v4/events/machine-resource-batch-creation-failed-response.js +58 -0
  190. package/dist/v4/events/machine-resource-batch-creation-failed-response.js.map +1 -0
  191. package/dist/v4/events/machine-resource-batch-termination-failed-response.d.ts +16 -0
  192. package/dist/v4/events/machine-resource-batch-termination-failed-response.js +58 -0
  193. package/dist/v4/events/machine-resource-batch-termination-failed-response.js.map +1 -0
  194. package/dist/v4/events/machine-resource-created-response.d.ts +12 -0
  195. package/dist/v4/events/machine-resource-created-response.js +45 -0
  196. package/dist/v4/events/machine-resource-created-response.js.map +1 -0
  197. package/dist/v4/events/machine-resource-creation-failed-response.d.ts +13 -0
  198. package/dist/v4/events/machine-resource-creation-failed-response.js +49 -0
  199. package/dist/v4/events/machine-resource-creation-failed-response.js.map +1 -0
  200. package/dist/v4/events/machine-resource-terminated-response.d.ts +12 -0
  201. package/dist/v4/events/machine-resource-terminated-response.js +45 -0
  202. package/dist/v4/events/machine-resource-terminated-response.js.map +1 -0
  203. package/dist/v4/events/machine-resource-updated.d.ts +12 -0
  204. package/dist/v4/events/machine-resource-updated.js +45 -0
  205. package/dist/v4/events/machine-resource-updated.js.map +1 -0
  206. package/dist/v4/events/monitor-game-resource-task.d.ts +14 -0
  207. package/dist/v4/events/monitor-game-resource-task.js +48 -0
  208. package/dist/v4/events/monitor-game-resource-task.js.map +1 -0
  209. package/dist/v4/events/pool-status.d.ts +20 -0
  210. package/dist/v4/events/pool-status.js +54 -0
  211. package/dist/v4/events/pool-status.js.map +1 -0
  212. package/dist/v4/events/prepare-cloud-machine-auth-failed.d.ts +13 -0
  213. package/dist/v4/events/prepare-cloud-machine-auth-failed.js +48 -0
  214. package/dist/v4/events/prepare-cloud-machine-auth-failed.js.map +1 -0
  215. package/dist/v4/events/prepare-cloud-machine-auth.d.ts +16 -0
  216. package/dist/v4/events/prepare-cloud-machine-auth.js +60 -0
  217. package/dist/v4/events/prepare-cloud-machine-auth.js.map +1 -0
  218. package/dist/v4/events/send-pools-to-predictor.d.ts +5 -0
  219. package/dist/v4/events/send-pools-to-predictor.js +12 -0
  220. package/dist/v4/events/send-pools-to-predictor.js.map +1 -0
  221. package/dist/v4/events/set-pool.d.ts +9 -0
  222. package/dist/v4/events/set-pool.js +29 -0
  223. package/dist/v4/events/set-pool.js.map +1 -0
  224. package/dist/v4/events/set-pools-state.d.ts +26 -0
  225. package/dist/v4/events/set-pools-state.js +64 -0
  226. package/dist/v4/events/set-pools-state.js.map +1 -0
  227. package/dist/v4/events/swap-cloud-user-completed.d.ts +12 -0
  228. package/dist/v4/events/swap-cloud-user-completed.js +45 -0
  229. package/dist/v4/events/swap-cloud-user-completed.js.map +1 -0
  230. package/dist/v4/events/swap-cloud-user-request-failed.d.ts +15 -0
  231. package/dist/v4/events/swap-cloud-user-request-failed.js +58 -0
  232. package/dist/v4/events/swap-cloud-user-request-failed.js.map +1 -0
  233. package/dist/v4/events/swap-cloud-user-request.d.ts +13 -0
  234. package/dist/v4/events/swap-cloud-user-request.js +50 -0
  235. package/dist/v4/events/swap-cloud-user-request.js.map +1 -0
  236. package/dist/v4/events/swap-to-default-user-completed.d.ts +11 -0
  237. package/dist/v4/events/swap-to-default-user-completed.js +41 -0
  238. package/dist/v4/events/swap-to-default-user-completed.js.map +1 -0
  239. package/dist/v4/events/swap-to-default-user.d.ts +11 -0
  240. package/dist/v4/events/swap-to-default-user.js +41 -0
  241. package/dist/v4/events/swap-to-default-user.js.map +1 -0
  242. package/dist/v4/events/terminate-cloud-session-request.d.ts +11 -0
  243. package/dist/v4/events/terminate-cloud-session-request.js +42 -0
  244. package/dist/v4/events/terminate-cloud-session-request.js.map +1 -0
  245. package/dist/v4/events/terminate-game-request.d.ts +13 -0
  246. package/dist/v4/events/terminate-game-request.js +50 -0
  247. package/dist/v4/events/terminate-game-request.js.map +1 -0
  248. package/dist/v4/events/terminate-game-resource-request.d.ts +18 -0
  249. package/dist/v4/events/terminate-game-resource-request.js +67 -0
  250. package/dist/v4/events/terminate-game-resource-request.js.map +1 -0
  251. package/dist/v4/events/terminate-games-request.d.ts +12 -0
  252. package/dist/v4/events/terminate-games-request.js +45 -0
  253. package/dist/v4/events/terminate-games-request.js.map +1 -0
  254. package/dist/v4/events/terminate-machine-resource-batch-request.d.ts +15 -0
  255. package/dist/v4/events/terminate-machine-resource-batch-request.js +54 -0
  256. package/dist/v4/events/terminate-machine-resource-batch-request.js.map +1 -0
  257. package/dist/v4/events/terminate-machine-resource-request.d.ts +15 -0
  258. package/dist/v4/events/terminate-machine-resource-request.js +54 -0
  259. package/dist/v4/events/terminate-machine-resource-request.js.map +1 -0
  260. package/dist/v4/events/terminate-machines-request.d.ts +12 -0
  261. package/dist/v4/events/terminate-machines-request.js +45 -0
  262. package/dist/v4/events/terminate-machines-request.js.map +1 -0
  263. package/dist/v4/events/terminate-stale-games.d.ts +11 -0
  264. package/dist/v4/events/terminate-stale-games.js +41 -0
  265. package/dist/v4/events/terminate-stale-games.js.map +1 -0
  266. package/dist/v4/events/terminate-stale-machines.d.ts +11 -0
  267. package/dist/v4/events/terminate-stale-machines.js +41 -0
  268. package/dist/v4/events/terminate-stale-machines.js.map +1 -0
  269. package/dist/v4/events/terminate-stale-resources-task.d.ts +9 -0
  270. package/dist/v4/events/terminate-stale-resources-task.js +16 -0
  271. package/dist/v4/events/terminate-stale-resources-task.js.map +1 -0
  272. package/dist/v4/events/token-required.event.d.ts +25 -0
  273. package/dist/v4/events/token-required.event.js +86 -0
  274. package/dist/v4/events/token-required.event.js.map +1 -0
  275. package/dist/v4/index.d.ts +3 -0
  276. package/dist/v4/index.js +7 -0
  277. package/dist/v4/index.js.map +1 -0
  278. package/dist/v4/types/cloud.d.ts +68 -0
  279. package/dist/v4/types/cloud.js +173 -0
  280. package/dist/v4/types/cloud.js.map +1 -0
  281. package/dist/v4/types/index.d.ts +2 -0
  282. package/dist/v4/types/index.js +19 -0
  283. package/dist/v4/types/index.js.map +1 -0
  284. package/dist/v4/types/pools/configuration/attributes/base.d.ts +6 -0
  285. package/dist/v4/types/pools/configuration/attributes/base.js +32 -0
  286. package/dist/v4/types/pools/configuration/attributes/base.js.map +1 -0
  287. package/dist/v4/types/pools/configuration/attributes/game.d.ts +4 -0
  288. package/dist/v4/types/pools/configuration/attributes/game.js +22 -0
  289. package/dist/v4/types/pools/configuration/attributes/game.js.map +1 -0
  290. package/dist/v4/types/pools/configuration/attributes/index.d.ts +4 -0
  291. package/dist/v4/types/pools/configuration/attributes/index.js +21 -0
  292. package/dist/v4/types/pools/configuration/attributes/index.js.map +1 -0
  293. package/dist/v4/types/pools/configuration/attributes/ludeo.d.ts +4 -0
  294. package/dist/v4/types/pools/configuration/attributes/ludeo.js +22 -0
  295. package/dist/v4/types/pools/configuration/attributes/ludeo.js.map +1 -0
  296. package/dist/v4/types/pools/configuration/attributes/machine.d.ts +4 -0
  297. package/dist/v4/types/pools/configuration/attributes/machine.js +22 -0
  298. package/dist/v4/types/pools/configuration/attributes/machine.js.map +1 -0
  299. package/dist/v4/types/pools/configuration/base.d.ts +14 -0
  300. package/dist/v4/types/pools/configuration/base.js +53 -0
  301. package/dist/v4/types/pools/configuration/base.js.map +1 -0
  302. package/dist/v4/types/pools/configuration/game.d.ts +9 -0
  303. package/dist/v4/types/pools/configuration/game.js +37 -0
  304. package/dist/v4/types/pools/configuration/game.js.map +1 -0
  305. package/dist/v4/types/pools/configuration/index.d.ts +6 -0
  306. package/dist/v4/types/pools/configuration/index.js +23 -0
  307. package/dist/v4/types/pools/configuration/index.js.map +1 -0
  308. package/dist/v4/types/pools/configuration/ludeo.d.ts +9 -0
  309. package/dist/v4/types/pools/configuration/ludeo.js +37 -0
  310. package/dist/v4/types/pools/configuration/ludeo.js.map +1 -0
  311. package/dist/v4/types/pools/configuration/machine.d.ts +7 -0
  312. package/dist/v4/types/pools/configuration/machine.js +29 -0
  313. package/dist/v4/types/pools/configuration/machine.js.map +1 -0
  314. package/dist/v4/types/pools/configuration/type.d.ts +6 -0
  315. package/dist/v4/types/pools/configuration/type.js +3 -0
  316. package/dist/v4/types/pools/configuration/type.js.map +1 -0
  317. package/dist/v4/types/pools/index.d.ts +5 -0
  318. package/dist/v4/types/pools/index.js +22 -0
  319. package/dist/v4/types/pools/index.js.map +1 -0
  320. package/dist/v4/types/pools/pool.d.ts +12 -0
  321. package/dist/v4/types/pools/pool.js +7 -0
  322. package/dist/v4/types/pools/pool.js.map +1 -0
  323. package/dist/v4/types/pools/resource/base.d.ts +10 -0
  324. package/dist/v4/types/pools/resource/base.js +45 -0
  325. package/dist/v4/types/pools/resource/base.js.map +1 -0
  326. package/dist/v4/types/pools/resource/game.d.ts +6 -0
  327. package/dist/v4/types/pools/resource/game.js +33 -0
  328. package/dist/v4/types/pools/resource/game.js.map +1 -0
  329. package/dist/v4/types/pools/resource/index.d.ts +7 -0
  330. package/dist/v4/types/pools/resource/index.js +24 -0
  331. package/dist/v4/types/pools/resource/index.js.map +1 -0
  332. package/dist/v4/types/pools/resource/ludeo.d.ts +4 -0
  333. package/dist/v4/types/pools/resource/ludeo.js +23 -0
  334. package/dist/v4/types/pools/resource/ludeo.js.map +1 -0
  335. package/dist/v4/types/pools/resource/machine.d.ts +5 -0
  336. package/dist/v4/types/pools/resource/machine.js +28 -0
  337. package/dist/v4/types/pools/resource/machine.js.map +1 -0
  338. package/dist/v4/types/pools/resource/status.d.ts +10 -0
  339. package/dist/v4/types/pools/resource/status.js +15 -0
  340. package/dist/v4/types/pools/resource/status.js.map +1 -0
  341. package/dist/v4/types/pools/resource/statusMap.d.ts +2 -0
  342. package/dist/v4/types/pools/resource/statusMap.js +3 -0
  343. package/dist/v4/types/pools/resource/statusMap.js.map +1 -0
  344. package/dist/v4/types/pools/resource/type.d.ts +6 -0
  345. package/dist/v4/types/pools/resource/type.js +3 -0
  346. package/dist/v4/types/pools/resource/type.js.map +1 -0
  347. package/dist/v4/types/pools/status.d.ts +6 -0
  348. package/dist/v4/types/pools/status.js +11 -0
  349. package/dist/v4/types/pools/status.js.map +1 -0
  350. package/dist/v4/types/pools/type.d.ts +5 -0
  351. package/dist/v4/types/pools/type.js +10 -0
  352. package/dist/v4/types/pools/type.js.map +1 -0
  353. package/package.json +1 -1
  354. package/src/index.ts +1 -0
  355. package/src/v4/contexts/cloud-pool-context.ts +22 -0
  356. package/src/v4/contexts/cloud-resource-context.ts +49 -0
  357. package/src/v4/contexts/cloud-session-context.ts +71 -0
  358. package/src/v4/contexts/getCloudContextType.spec.ts +102 -0
  359. package/src/v4/contexts/getCloudContextType.ts +22 -0
  360. package/src/v4/contexts/index.ts +4 -0
  361. package/src/v4/events/allocate-cloud-session-failed.ts +28 -0
  362. package/src/v4/events/allocate-cloud-session-request.ts +28 -0
  363. package/src/v4/events/allocate-game-request.ts +33 -0
  364. package/src/v4/events/allocate-game-resource-request.ts +52 -0
  365. package/src/v4/events/allocate-ludeo-resource-request.ts +28 -0
  366. package/src/v4/events/allocate-machine-request.ts +35 -0
  367. package/src/v4/events/aws-poll-stream-session-task.ts +33 -0
  368. package/src/v4/events/aws-reactivate-stream-session-task.ts +31 -0
  369. package/src/v4/events/aws-stream-session-active.ts +36 -0
  370. package/src/v4/events/aws-stream-session-reactivation-started.ts +31 -0
  371. package/src/v4/events/cloud-machine-auth-ready.ts +38 -0
  372. package/src/v4/events/cloud-session-allocated.ts +34 -0
  373. package/src/v4/events/cloud-session-created.ts +20 -0
  374. package/src/v4/events/cloud-session-ended.ts +34 -0
  375. package/src/v4/events/cloud-session-optimal-region-selected.ts +29 -0
  376. package/src/v4/events/cloud-session-provider-requested.ts +37 -0
  377. package/src/v4/events/cloud-session-timeout-task.ts +26 -0
  378. package/src/v4/events/create-game-resource-request.ts +46 -0
  379. package/src/v4/events/create-games-request.ts +29 -0
  380. package/src/v4/events/create-ludeos-request.ts +29 -0
  381. package/src/v4/events/create-machine-resource-batch-request.ts +44 -0
  382. package/src/v4/events/create-machine-resource-request.ts +43 -0
  383. package/src/v4/events/create-machines-request.ts +32 -0
  384. package/src/v4/events/deallocate-machine-request.ts +39 -0
  385. package/src/v4/events/game-allocated-response.ts +28 -0
  386. package/src/v4/events/game-allocation-failed-response.ts +33 -0
  387. package/src/v4/events/game-available.ts +26 -0
  388. package/src/v4/events/game-resource-allocated-response.ts +44 -0
  389. package/src/v4/events/game-resource-allocation-failed-response.ts +40 -0
  390. package/src/v4/events/game-resource-allocation-timeout-task.ts +26 -0
  391. package/src/v4/events/game-resource-created-response.ts +43 -0
  392. package/src/v4/events/game-resource-creation-failed-response.ts +36 -0
  393. package/src/v4/events/game-resource-ready-for-creation-failed.ts +35 -0
  394. package/src/v4/events/game-resource-ready-for-creation.ts +37 -0
  395. package/src/v4/events/game-resource-status-changed.ts +47 -0
  396. package/src/v4/events/game-resource-terminated-response.ts +40 -0
  397. package/src/v4/events/game-resource-termination-failed-response.ts +43 -0
  398. package/src/v4/events/game-terminated-response.ts +36 -0
  399. package/src/v4/events/game-termination-failed-response.ts +39 -0
  400. package/src/v4/events/gameplay-waiting-for-user.ts +28 -0
  401. package/src/v4/events/index.ts +84 -0
  402. package/src/v4/events/invalid-game-resource.ts +34 -0
  403. package/src/v4/events/load-ludeo-resource.ts +28 -0
  404. package/src/v4/events/ludeo-allocated-response.ts +28 -0
  405. package/src/v4/events/ludeo-allocation-failed.ts +28 -0
  406. package/src/v4/events/ludeo-obtained-timeout-task.ts +23 -0
  407. package/src/v4/events/ludeo-resource-allocated-response.ts +29 -0
  408. package/src/v4/events/ludeo-resource-allocation-failed.ts +29 -0
  409. package/src/v4/events/ludeo-resource-loaded.ts +28 -0
  410. package/src/v4/events/ludeo-resource-loading-failed.ts +28 -0
  411. package/src/v4/events/machine-allocated-response.ts +49 -0
  412. package/src/v4/events/machine-allocation-failed-response.ts +39 -0
  413. package/src/v4/events/machine-deallocated-response.ts +42 -0
  414. package/src/v4/events/machine-deallocation-failed-response.ts +46 -0
  415. package/src/v4/events/machine-pool-resizing-task.ts +35 -0
  416. package/src/v4/events/machine-resource-batch-creation-failed-response.ts +47 -0
  417. package/src/v4/events/machine-resource-batch-termination-failed-response.ts +49 -0
  418. package/src/v4/events/machine-resource-created-response.ts +33 -0
  419. package/src/v4/events/machine-resource-creation-failed-response.ts +36 -0
  420. package/src/v4/events/machine-resource-terminated-response.ts +33 -0
  421. package/src/v4/events/machine-resource-updated.ts +32 -0
  422. package/src/v4/events/monitor-game-resource-task.ts +36 -0
  423. package/src/v4/events/pool-status.ts +41 -0
  424. package/src/v4/events/prepare-cloud-machine-auth-failed.ts +34 -0
  425. package/src/v4/events/prepare-cloud-machine-auth.ts +43 -0
  426. package/src/v4/events/send-pools-to-predictor.ts +9 -0
  427. package/src/v4/events/set-pool.ts +22 -0
  428. package/src/v4/events/set-pools-state.ts +55 -0
  429. package/src/v4/events/swap-cloud-user-completed.ts +31 -0
  430. package/src/v4/events/swap-cloud-user-request-failed.ts +42 -0
  431. package/src/v4/events/swap-cloud-user-request.ts +36 -0
  432. package/src/v4/events/swap-to-default-user-completed.ts +28 -0
  433. package/src/v4/events/swap-to-default-user.ts +28 -0
  434. package/src/v4/events/terminate-cloud-session-request.ts +29 -0
  435. package/src/v4/events/terminate-game-request.ts +40 -0
  436. package/src/v4/events/terminate-game-resource-request.ts +59 -0
  437. package/src/v4/events/terminate-games-request.ts +32 -0
  438. package/src/v4/events/terminate-machine-resource-batch-request.ts +44 -0
  439. package/src/v4/events/terminate-machine-resource-request.ts +43 -0
  440. package/src/v4/events/terminate-machines-request.ts +32 -0
  441. package/src/v4/events/terminate-stale-games.ts +28 -0
  442. package/src/v4/events/terminate-stale-machines.ts +28 -0
  443. package/src/v4/events/terminate-stale-resources-task.ts +16 -0
  444. package/src/v4/events/token-required.event.ts +61 -0
  445. package/src/v4/index.ts +3 -0
  446. package/src/v4/types/cloud.ts +155 -0
  447. package/src/v4/types/index.ts +2 -0
  448. package/src/v4/types/pools/configuration/attributes/base.ts +15 -0
  449. package/src/v4/types/pools/configuration/attributes/game.ts +7 -0
  450. package/src/v4/types/pools/configuration/attributes/index.ts +4 -0
  451. package/src/v4/types/pools/configuration/attributes/ludeo.ts +7 -0
  452. package/src/v4/types/pools/configuration/attributes/machine.ts +8 -0
  453. package/src/v4/types/pools/configuration/base.ts +36 -0
  454. package/src/v4/types/pools/configuration/game.ts +20 -0
  455. package/src/v4/types/pools/configuration/index.ts +6 -0
  456. package/src/v4/types/pools/configuration/ludeo.ts +20 -0
  457. package/src/v4/types/pools/configuration/machine.ts +14 -0
  458. package/src/v4/types/pools/configuration/type.ts +17 -0
  459. package/src/v4/types/pools/index.ts +5 -0
  460. package/src/v4/types/pools/pool.ts +14 -0
  461. package/src/v4/types/pools/resource/base.ts +26 -0
  462. package/src/v4/types/pools/resource/game.ts +17 -0
  463. package/src/v4/types/pools/resource/index.ts +7 -0
  464. package/src/v4/types/pools/resource/ludeo.ts +9 -0
  465. package/src/v4/types/pools/resource/machine.ts +12 -0
  466. package/src/v4/types/pools/resource/status.ts +10 -0
  467. package/src/v4/types/pools/resource/statusMap.ts +3 -0
  468. package/src/v4/types/pools/resource/type.ts +16 -0
  469. package/src/v4/types/pools/status.ts +6 -0
  470. package/src/v4/types/pools/type.ts +5 -0
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PrepareCloudMachineAuth = exports.PrepareCloudMachineAuthPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
+ const infra_1 = require("../../infra");
16
+ const contexts_1 = require("../contexts");
17
+ const create_game_resource_request_1 = require("./create-game-resource-request");
18
+ class PrepareCloudMachineAuthPayload {
19
+ }
20
+ exports.PrepareCloudMachineAuthPayload = PrepareCloudMachineAuthPayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsUUID)(),
23
+ __metadata("design:type", String)
24
+ ], PrepareCloudMachineAuthPayload.prototype, "cloudUserId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsUUID)(),
27
+ __metadata("design:type", String)
28
+ ], PrepareCloudMachineAuthPayload.prototype, "authTokenId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsUUID)(),
31
+ __metadata("design:type", String)
32
+ ], PrepareCloudMachineAuthPayload.prototype, "resourceId", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsUUID)(),
36
+ __metadata("design:type", String)
37
+ ], PrepareCloudMachineAuthPayload.prototype, "gameId", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => create_game_resource_request_1.CreateGameResourceRequestPayload),
41
+ __metadata("design:type", create_game_resource_request_1.CreateGameResourceRequestPayload)
42
+ ], PrepareCloudMachineAuthPayload.prototype, "gameResourceCreationPayload", void 0);
43
+ class PrepareCloudMachineAuth extends infra_1.LudeoEvent {
44
+ constructor(payload, context) {
45
+ super(PrepareCloudMachineAuth.EVENT_NAME);
46
+ this.payload = payload;
47
+ this.context = context;
48
+ }
49
+ }
50
+ exports.PrepareCloudMachineAuth = PrepareCloudMachineAuth;
51
+ PrepareCloudMachineAuth.EVENT_NAME = "cloud-pools.prepare-cloud-machine-auth";
52
+ __decorate([
53
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => PrepareCloudMachineAuthPayload),
54
+ __metadata("design:type", PrepareCloudMachineAuthPayload)
55
+ ], PrepareCloudMachineAuth.prototype, "payload", void 0);
56
+ __decorate([
57
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
58
+ __metadata("design:type", contexts_1.CloudResourceContext)
59
+ ], PrepareCloudMachineAuth.prototype, "context", void 0);
60
+ //# sourceMappingURL=prepare-cloud-machine-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-cloud-machine-auth.js","sourceRoot":"","sources":["../../../src/v4/events/prepare-cloud-machine-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oGAAqF;AACrF,uCAAyC;AACzC,0CAAmD;AACnD,iFAAkF;AAElF,MAAa,8BAA8B;CAiB1C;AAjBD,wEAiBC;AAfC;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;mEACW;AAGpB;IADC,IAAA,wBAAM,GAAE;;kEACU;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+DAAgC,CAAC;8BAC7B,+DAAgC;mFAAC;AAGjE,MAAa,uBAAwB,SAAQ,kBAAU;IAGrD,YACE,OAAuC,EACvC,OAA6B;QAE7B,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,0DAiBC;AAhBiB,kCAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;8BAChD,8BAA8B;wDAAC;AAGxC;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;wDAAC"}
@@ -0,0 +1,5 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ export declare class SendPoolsToPredictorEvent extends LudeoEvent {
3
+ static readonly EVENT_NAME = "cloud-pools.send-pools-to-predictor";
4
+ constructor();
5
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendPoolsToPredictorEvent = void 0;
4
+ const ludeo_event_1 = require("../../infra/ludeo-event");
5
+ class SendPoolsToPredictorEvent extends ludeo_event_1.LudeoEvent {
6
+ constructor() {
7
+ super(SendPoolsToPredictorEvent.EVENT_NAME);
8
+ }
9
+ }
10
+ exports.SendPoolsToPredictorEvent = SendPoolsToPredictorEvent;
11
+ SendPoolsToPredictorEvent.EVENT_NAME = "cloud-pools.send-pools-to-predictor";
12
+ //# sourceMappingURL=send-pools-to-predictor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-pools-to-predictor.js","sourceRoot":"","sources":["../../../src/v4/events/send-pools-to-predictor.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAErD,MAAa,yBAA0B,SAAQ,wBAAU;IAGvD;QACE,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;;AALH,8DAMC;AALiB,oCAAU,GAAG,qCAAqC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { CloudPoolContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ import { BaseCloudPoolConfiguration } from "../types";
4
+ export declare class SetPoolEvent extends LudeoEvent {
5
+ static readonly EVENT_NAME = "cloud-pools.set-pool";
6
+ constructor(payload: Partial<BaseCloudPoolConfiguration>, context: CloudPoolContext);
7
+ context: CloudPoolContext;
8
+ payload: Partial<BaseCloudPoolConfiguration>;
9
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SetPoolEvent = void 0;
13
+ const contexts_1 = require("../contexts");
14
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ class SetPoolEvent extends ludeo_event_1.LudeoEvent {
17
+ constructor(payload, context) {
18
+ super(SetPoolEvent.EVENT_NAME);
19
+ this.payload = payload;
20
+ this.context = context;
21
+ }
22
+ }
23
+ exports.SetPoolEvent = SetPoolEvent;
24
+ SetPoolEvent.EVENT_NAME = "cloud-pools.set-pool";
25
+ __decorate([
26
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudPoolContext),
27
+ __metadata("design:type", contexts_1.CloudPoolContext)
28
+ ], SetPoolEvent.prototype, "context", void 0);
29
+ //# sourceMappingURL=set-pool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-pool.js","sourceRoot":"","sources":["../../../src/v4/events/set-pool.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA+C;AAC/C,oGAAqF;AACrF,yDAAqD;AAGrD,MAAa,YAAa,SAAQ,wBAAU;IAG1C,YACE,OAA4C,EAC5C,OAAyB;QAEzB,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oCAgBC;AAfiB,uBAAU,GAAG,sBAAsB,CAAC;AAYpD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAAgB,CAAC;8BAClC,2BAAgB;6CAAC"}
@@ -0,0 +1,26 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { MachinePoolAttributes, GamePoolAttributes } from "../types";
3
+ export declare class MachinePoolAttributesWithQuantity extends MachinePoolAttributes {
4
+ quantity: number;
5
+ poolId: string;
6
+ reason?: string;
7
+ }
8
+ export declare class GamePoolAttributesWithQuantity extends GamePoolAttributes {
9
+ quantity: number;
10
+ poolId: string;
11
+ reason?: string;
12
+ }
13
+ export declare class SetPoolsStateEventRequestId {
14
+ poolMonitorRequestId: string;
15
+ platformStatusRequestId: string;
16
+ }
17
+ export declare class SetPoolStateEventPayload {
18
+ machines: MachinePoolAttributesWithQuantity[];
19
+ games: GamePoolAttributesWithQuantity[];
20
+ requestId?: SetPoolsStateEventRequestId;
21
+ }
22
+ export declare class SetPoolsStateEvent extends LudeoEvent {
23
+ static readonly EVENT_NAME = "predictor.set-pools-state";
24
+ constructor(payload: SetPoolStateEventPayload);
25
+ payload: SetPoolStateEventPayload;
26
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SetPoolsStateEvent = exports.SetPoolStateEventPayload = exports.SetPoolsStateEventRequestId = exports.GamePoolAttributesWithQuantity = exports.MachinePoolAttributesWithQuantity = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const types_1 = require("../types");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class MachinePoolAttributesWithQuantity extends types_1.MachinePoolAttributes {
18
+ }
19
+ exports.MachinePoolAttributesWithQuantity = MachinePoolAttributesWithQuantity;
20
+ class GamePoolAttributesWithQuantity extends types_1.GamePoolAttributes {
21
+ }
22
+ exports.GamePoolAttributesWithQuantity = GamePoolAttributesWithQuantity;
23
+ class SetPoolsStateEventRequestId {
24
+ }
25
+ exports.SetPoolsStateEventRequestId = SetPoolsStateEventRequestId;
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], SetPoolsStateEventRequestId.prototype, "poolMonitorRequestId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsUUID)(),
32
+ __metadata("design:type", String)
33
+ ], SetPoolsStateEventRequestId.prototype, "platformStatusRequestId", void 0);
34
+ class SetPoolStateEventPayload {
35
+ }
36
+ exports.SetPoolStateEventPayload = SetPoolStateEventPayload;
37
+ __decorate([
38
+ (0, class_validator_1.IsArray)(),
39
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
40
+ __metadata("design:type", Array)
41
+ ], SetPoolStateEventPayload.prototype, "machines", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsArray)(),
44
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => Array),
45
+ __metadata("design:type", Array)
46
+ ], SetPoolStateEventPayload.prototype, "games", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolsStateEventRequestId),
50
+ __metadata("design:type", SetPoolsStateEventRequestId)
51
+ ], SetPoolStateEventPayload.prototype, "requestId", void 0);
52
+ class SetPoolsStateEvent extends ludeo_event_1.LudeoEvent {
53
+ constructor(payload) {
54
+ super(SetPoolsStateEvent.EVENT_NAME);
55
+ this.payload = payload;
56
+ }
57
+ }
58
+ exports.SetPoolsStateEvent = SetPoolsStateEvent;
59
+ SetPoolsStateEvent.EVENT_NAME = "predictor.set-pools-state";
60
+ __decorate([
61
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SetPoolStateEventPayload),
62
+ __metadata("design:type", SetPoolStateEventPayload)
63
+ ], SetPoolsStateEvent.prototype, "payload", void 0);
64
+ //# sourceMappingURL=set-pools-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-pools-state.js","sourceRoot":"","sources":["../../../src/v4/events/set-pools-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwE;AAExE,yDAAqD;AACrD,oCAAqE;AACrE,oGAAqF;AAErF,MAAa,iCAAkC,SAAQ,6BAAqB;CAM3E;AAND,8EAMC;AAED,MAAa,8BAA+B,SAAQ,0BAAkB;CAMrE;AAND,wEAMC;AAED,MAAa,2BAA2B;CAMvC;AAND,kEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;yEACoB;AAG7B;IADC,IAAA,wBAAM,GAAE;;4EACuB;AAGlC,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AATC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAwC,CAAC;;0DACrB;AAI9C;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,KAAqC,CAAC;;uDACxB;AAIxC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC1C,2BAA2B;2DAAC;AAG1C,MAAa,kBAAmB,SAAQ,wBAAU;IAGhD,YAAY,OAAiC;QAC3C,KAAK,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,gDAUC;AATiB,6BAAU,GAAG,2BAA2B,CAAC;AAQzD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;mDAAC"}
@@ -0,0 +1,12 @@
1
+ import { CloudSessionContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class SwapCloudUserCompletedPayload {
4
+ connectionId: string;
5
+ sourceService: string;
6
+ }
7
+ export declare class SwapCloudUserCompleted extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-completed";
9
+ constructor(payload: SwapCloudUserCompletedPayload, context: CloudSessionContext);
10
+ context: CloudSessionContext;
11
+ payload: SwapCloudUserCompletedPayload;
12
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapCloudUserCompleted = exports.SwapCloudUserCompletedPayload = void 0;
13
+ const contexts_1 = require("../contexts");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const class_validator_1 = require("class-validator");
17
+ class SwapCloudUserCompletedPayload {
18
+ }
19
+ exports.SwapCloudUserCompletedPayload = SwapCloudUserCompletedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], SwapCloudUserCompletedPayload.prototype, "connectionId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], SwapCloudUserCompletedPayload.prototype, "sourceService", void 0);
28
+ class SwapCloudUserCompleted extends ludeo_event_1.LudeoEvent {
29
+ constructor(payload, context) {
30
+ super(SwapCloudUserCompleted.EVENT_NAME);
31
+ this.payload = payload;
32
+ this.context = context;
33
+ }
34
+ }
35
+ exports.SwapCloudUserCompleted = SwapCloudUserCompleted;
36
+ SwapCloudUserCompleted.EVENT_NAME = "cloud-sessions.swap-cloud-user-completed";
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
39
+ __metadata("design:type", contexts_1.CloudSessionContext)
40
+ ], SwapCloudUserCompleted.prototype, "context", void 0);
41
+ __decorate([
42
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserCompletedPayload),
43
+ __metadata("design:type", SwapCloudUserCompletedPayload)
44
+ ], SwapCloudUserCompleted.prototype, "payload", void 0);
45
+ //# sourceMappingURL=swap-cloud-user-completed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-cloud-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AACrF,qDAA2C;AAE3C,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;mEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;oEACW;AAGxB,MAAa,sBAAuB,SAAQ,wBAAU;IAGpD,YACE,OAAsC,EACtC,OAA4B;QAE5B,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,wDAiBC;AAhBiB,iCAAU,GAAG,0CAA0C,CAAC;AAYxE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;uDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;8BAC/C,6BAA6B;uDAAC"}
@@ -0,0 +1,15 @@
1
+ import { CloudSessionContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class SwapCloudUserRequestFailedPayload {
4
+ connectionId: string;
5
+ defaultUserSessionToken: string;
6
+ actualUserSessionToken?: string;
7
+ errorMessage: string;
8
+ sourceService: string;
9
+ }
10
+ export declare class SwapCloudUserRequestFailed extends LudeoEvent {
11
+ static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-request-failed";
12
+ constructor(payload: SwapCloudUserRequestFailedPayload, context: CloudSessionContext);
13
+ context: CloudSessionContext;
14
+ payload: SwapCloudUserRequestFailedPayload;
15
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapCloudUserRequestFailed = exports.SwapCloudUserRequestFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class SwapCloudUserRequestFailedPayload {
18
+ }
19
+ exports.SwapCloudUserRequestFailedPayload = SwapCloudUserRequestFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], SwapCloudUserRequestFailedPayload.prototype, "connectionId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], SwapCloudUserRequestFailedPayload.prototype, "defaultUserSessionToken", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsString)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", String)
32
+ ], SwapCloudUserRequestFailedPayload.prototype, "actualUserSessionToken", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], SwapCloudUserRequestFailedPayload.prototype, "errorMessage", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ __metadata("design:type", String)
40
+ ], SwapCloudUserRequestFailedPayload.prototype, "sourceService", void 0);
41
+ class SwapCloudUserRequestFailed extends ludeo_event_1.LudeoEvent {
42
+ constructor(payload, context) {
43
+ super(SwapCloudUserRequestFailed.EVENT_NAME);
44
+ this.payload = payload;
45
+ this.context = context;
46
+ }
47
+ }
48
+ exports.SwapCloudUserRequestFailed = SwapCloudUserRequestFailed;
49
+ SwapCloudUserRequestFailed.EVENT_NAME = "cloud-sessions.swap-cloud-user-request-failed";
50
+ __decorate([
51
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
52
+ __metadata("design:type", contexts_1.CloudSessionContext)
53
+ ], SwapCloudUserRequestFailed.prototype, "context", void 0);
54
+ __decorate([
55
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserRequestFailed),
56
+ __metadata("design:type", SwapCloudUserRequestFailedPayload)
57
+ ], SwapCloudUserRequestFailed.prototype, "payload", void 0);
58
+ //# sourceMappingURL=swap-cloud-user-request-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-cloud-user-request-failed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,iCAAiC;CAgB7C;AAhBD,8EAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;uEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;kFACqB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iFACmB;AAGhC;IADC,IAAA,0BAAQ,GAAE;;uEACU;AAGrB;IADC,IAAA,0BAAQ,GAAE;;wEACW;AAGxB,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA4B;QAE5B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;2DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,iCAAiC;2DAAC"}
@@ -0,0 +1,13 @@
1
+ import { CloudSessionContext } from "../contexts";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class SwapCloudUserRequestPayload {
4
+ connectionId: string;
5
+ defaultUserSessionToken: string;
6
+ actualUserSessionToken?: string;
7
+ }
8
+ export declare class SwapCloudUserRequest extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-sessions.swap-cloud-user-request";
10
+ constructor(payload: SwapCloudUserRequestPayload, context: CloudSessionContext);
11
+ context: CloudSessionContext;
12
+ payload: SwapCloudUserRequestPayload;
13
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapCloudUserRequest = exports.SwapCloudUserRequestPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const contexts_1 = require("../contexts");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
17
+ class SwapCloudUserRequestPayload {
18
+ }
19
+ exports.SwapCloudUserRequestPayload = SwapCloudUserRequestPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], SwapCloudUserRequestPayload.prototype, "connectionId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], SwapCloudUserRequestPayload.prototype, "defaultUserSessionToken", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsOptional)(),
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], SwapCloudUserRequestPayload.prototype, "actualUserSessionToken", void 0);
33
+ class SwapCloudUserRequest extends ludeo_event_1.LudeoEvent {
34
+ constructor(payload, context) {
35
+ super(SwapCloudUserRequest.EVENT_NAME);
36
+ this.payload = payload;
37
+ this.context = context;
38
+ }
39
+ }
40
+ exports.SwapCloudUserRequest = SwapCloudUserRequest;
41
+ SwapCloudUserRequest.EVENT_NAME = "cloud-sessions.swap-cloud-user-request";
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
44
+ __metadata("design:type", contexts_1.CloudSessionContext)
45
+ ], SwapCloudUserRequest.prototype, "context", void 0);
46
+ __decorate([
47
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapCloudUserRequestPayload),
48
+ __metadata("design:type", SwapCloudUserRequestPayload)
49
+ ], SwapCloudUserRequest.prototype, "payload", void 0);
50
+ //# sourceMappingURL=swap-cloud-user-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-cloud-user-request.js","sourceRoot":"","sources":["../../../src/v4/events/swap-cloud-user-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AARC;IADC,IAAA,wBAAM,GAAE;;iEACY;AAGrB;IADC,IAAA,0BAAQ,GAAE;;4EACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACqB;AAGlC,MAAa,oBAAqB,SAAQ,wBAAU;IAGlD,YACE,OAAoC,EACpC,OAA4B;QAE5B,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oDAiBC;AAhBiB,+BAAU,GAAG,wCAAwC,CAAC;AAYtE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;qDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC;8BAC7C,2BAA2B;qDAAC"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class SwapToDefaultUserCompletedPayload {
4
+ ludeoResourceId: string;
5
+ }
6
+ export declare class SwapToDefaultUserCompleted extends LudeoEvent {
7
+ static readonly EVENT_NAME = "authentication.swap-to-default-user-completed";
8
+ constructor(payload: SwapToDefaultUserCompletedPayload, context: CloudResourceContext);
9
+ context: CloudResourceContext;
10
+ payload: SwapToDefaultUserCompletedPayload;
11
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapToDefaultUserCompleted = exports.SwapToDefaultUserCompletedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class SwapToDefaultUserCompletedPayload {
18
+ }
19
+ exports.SwapToDefaultUserCompletedPayload = SwapToDefaultUserCompletedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], SwapToDefaultUserCompletedPayload.prototype, "ludeoResourceId", void 0);
24
+ class SwapToDefaultUserCompleted extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(SwapToDefaultUserCompleted.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.SwapToDefaultUserCompleted = SwapToDefaultUserCompleted;
32
+ SwapToDefaultUserCompleted.EVENT_NAME = "authentication.swap-to-default-user-completed";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], SwapToDefaultUserCompleted.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapToDefaultUserCompletedPayload),
39
+ __metadata("design:type", SwapToDefaultUserCompletedPayload)
40
+ ], SwapToDefaultUserCompleted.prototype, "payload", void 0);
41
+ //# sourceMappingURL=swap-to-default-user-completed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-to-default-user-completed.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user-completed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,wBAAM,GAAE;;0EACe;AAG1B,MAAa,0BAA2B,SAAQ,wBAAU;IAGxD,YACE,OAA0C,EAC1C,OAA6B;QAE7B,KAAK,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,gEAiBC;AAhBiB,qCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;2DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC"}
@@ -0,0 +1,11 @@
1
+ import { LudeoEvent } from "../../infra/ludeo-event";
2
+ import { CloudResourceContext } from "../contexts";
3
+ export declare class SwapToDefaultUserPayload {
4
+ ludeoResourceId: string;
5
+ }
6
+ export declare class SwapToDefaultUser extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-resources.swap-to-default-user";
8
+ constructor(payload: SwapToDefaultUserPayload, context: CloudResourceContext);
9
+ context: CloudResourceContext;
10
+ payload: SwapToDefaultUserPayload;
11
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SwapToDefaultUser = exports.SwapToDefaultUserPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const ludeo_event_1 = require("../../infra/ludeo-event");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const contexts_1 = require("../contexts");
17
+ class SwapToDefaultUserPayload {
18
+ }
19
+ exports.SwapToDefaultUserPayload = SwapToDefaultUserPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsUUID)(),
22
+ __metadata("design:type", String)
23
+ ], SwapToDefaultUserPayload.prototype, "ludeoResourceId", void 0);
24
+ class SwapToDefaultUser extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(SwapToDefaultUser.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.SwapToDefaultUser = SwapToDefaultUser;
32
+ SwapToDefaultUser.EVENT_NAME = "cloud-resources.swap-to-default-user";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudResourceContext),
35
+ __metadata("design:type", contexts_1.CloudResourceContext)
36
+ ], SwapToDefaultUser.prototype, "context", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => SwapToDefaultUserPayload),
39
+ __metadata("design:type", SwapToDefaultUserPayload)
40
+ ], SwapToDefaultUser.prototype, "payload", void 0);
41
+ //# sourceMappingURL=swap-to-default-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap-to-default-user.js","sourceRoot":"","sources":["../../../src/v4/events/swap-to-default-user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyC;AACzC,yDAAqD;AACrD,oGAAqF;AACrF,0CAAmD;AAEnD,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;AADC;IADC,IAAA,wBAAM,GAAE;;iEACe;AAG1B,MAAa,iBAAkB,SAAQ,wBAAU;IAG/C,YACE,OAAiC,EACjC,OAA6B;QAE7B,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,8CAiBC;AAhBiB,4BAAU,GAAG,sCAAsC,CAAC;AAYpE;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAoB,CAAC;8BACtC,+BAAoB;kDAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;8BAC1C,wBAAwB;kDAAC"}
@@ -0,0 +1,11 @@
1
+ import { CloudSessionContext } from "../contexts/cloud-session-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class TerminateCloudSessionRequestPayload {
4
+ status?: string;
5
+ }
6
+ export declare class TerminateCloudSessionRequest extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-sessions.terminate-cloud-session-request";
8
+ constructor(payload: TerminateCloudSessionRequestPayload, context: CloudSessionContext);
9
+ context: CloudSessionContext;
10
+ payload: TerminateCloudSessionRequestPayload;
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TerminateCloudSessionRequest = exports.TerminateCloudSessionRequestPayload = void 0;
13
+ const cloud_session_context_1 = require("../contexts/cloud-session-context");
14
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
15
+ const ludeo_event_1 = require("../../infra/ludeo-event");
16
+ const class_validator_1 = require("class-validator");
17
+ class TerminateCloudSessionRequestPayload {
18
+ }
19
+ exports.TerminateCloudSessionRequestPayload = TerminateCloudSessionRequestPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], TerminateCloudSessionRequestPayload.prototype, "status", void 0);
25
+ class TerminateCloudSessionRequest extends ludeo_event_1.LudeoEvent {
26
+ constructor(payload, context) {
27
+ super(TerminateCloudSessionRequest.EVENT_NAME);
28
+ this.payload = payload;
29
+ this.context = context;
30
+ }
31
+ }
32
+ exports.TerminateCloudSessionRequest = TerminateCloudSessionRequest;
33
+ TerminateCloudSessionRequest.EVENT_NAME = "cloud-sessions.terminate-cloud-session-request";
34
+ __decorate([
35
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_session_context_1.CloudSessionContext),
36
+ __metadata("design:type", cloud_session_context_1.CloudSessionContext)
37
+ ], TerminateCloudSessionRequest.prototype, "context", void 0);
38
+ __decorate([
39
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => TerminateCloudSessionRequestPayload),
40
+ __metadata("design:type", TerminateCloudSessionRequestPayload)
41
+ ], TerminateCloudSessionRequest.prototype, "payload", void 0);
42
+ //# sourceMappingURL=terminate-cloud-session-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terminate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/terminate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AACrD,qDAAuD;AAEvD,MAAa,mCAAmC;CAI/C;AAJD,kFAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACK;AAGlB,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YACE,OAA4C,EAC5C,OAA4B;QAE5B,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,oEAiBC;AAhBiB,uCAAU,GAAG,gDAAgD,CAAC;AAY9E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;6DAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}