@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,8 @@
1
+ import { CloudProvider } from "../types";
2
+ export declare class CloudPoolContext {
3
+ cloudProvider: CloudProvider;
4
+ poolId: string;
5
+ streamGroupId?: string;
6
+ poolMonitorRequestId?: string;
7
+ platformStatusRequestId?: string;
8
+ }
@@ -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.CloudPoolContext = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const types_1 = require("../types");
15
+ class CloudPoolContext {
16
+ }
17
+ exports.CloudPoolContext = CloudPoolContext;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
20
+ __metadata("design:type", String)
21
+ ], CloudPoolContext.prototype, "cloudProvider", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsUUID)(),
24
+ __metadata("design:type", String)
25
+ ], CloudPoolContext.prototype, "poolId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], CloudPoolContext.prototype, "streamGroupId", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_validator_1.IsUUID)(),
34
+ __metadata("design:type", String)
35
+ ], CloudPoolContext.prototype, "poolMonitorRequestId", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsUUID)(),
39
+ __metadata("design:type", String)
40
+ ], CloudPoolContext.prototype, "platformStatusRequestId", void 0);
41
+ //# sourceMappingURL=cloud-pool-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-pool-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-pool-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAhBC;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;uDACO;AAG7B;IADC,IAAA,wBAAM,GAAE;;gDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iEACwB"}
@@ -0,0 +1,14 @@
1
+ import { CloudProvider } from "../types/cloud";
2
+ export declare class CloudResourceContext {
3
+ streamGroupId?: string;
4
+ streamSessionId?: string;
5
+ cloudProvider: CloudProvider;
6
+ resourceId?: string;
7
+ poolId?: string;
8
+ gamePoolId?: string;
9
+ gameResourceId?: string;
10
+ machinePoolId?: string;
11
+ machineResourceId?: string;
12
+ poolMonitorRequestId?: string;
13
+ platformStatusRequestId?: string;
14
+ }
@@ -0,0 +1,72 @@
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.CloudResourceContext = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const cloud_1 = require("../types/cloud");
15
+ class CloudResourceContext {
16
+ }
17
+ exports.CloudResourceContext = CloudResourceContext;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], CloudResourceContext.prototype, "streamGroupId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsString)(),
26
+ __metadata("design:type", String)
27
+ ], CloudResourceContext.prototype, "streamSessionId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsEnum)(cloud_1.CloudProvider),
30
+ __metadata("design:type", String)
31
+ ], CloudResourceContext.prototype, "cloudProvider", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], CloudResourceContext.prototype, "resourceId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], CloudResourceContext.prototype, "poolId", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsUUID)(),
45
+ __metadata("design:type", String)
46
+ ], CloudResourceContext.prototype, "gamePoolId", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsUUID)(),
50
+ __metadata("design:type", String)
51
+ ], CloudResourceContext.prototype, "gameResourceId", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsUUID)(),
55
+ __metadata("design:type", String)
56
+ ], CloudResourceContext.prototype, "machinePoolId", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsOptional)(),
59
+ (0, class_validator_1.IsUUID)(),
60
+ __metadata("design:type", String)
61
+ ], CloudResourceContext.prototype, "machineResourceId", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsOptional)(),
64
+ (0, class_validator_1.IsUUID)(),
65
+ __metadata("design:type", String)
66
+ ], CloudResourceContext.prototype, "poolMonitorRequestId", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsUUID)(),
70
+ __metadata("design:type", String)
71
+ ], CloudResourceContext.prototype, "platformStatusRequestId", void 0);
72
+ //# sourceMappingURL=cloud-resource-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-resource-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-resource-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,0CAA+C;AAE/C,MAAa,oBAAoB;CA6ChC;AA7CD,oDA6CC;AA1CC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACc;AAGzB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;2DACO;AAK7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAKpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;+DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kEACqB;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qEACwB"}
@@ -0,0 +1,20 @@
1
+ import { CloudProvider } from "../types";
2
+ export declare class CloudSessionContext {
3
+ allocationRequestId?: string;
4
+ clientRequestId?: string;
5
+ cloudSessionId: string;
6
+ userId?: string;
7
+ gameId?: string;
8
+ ludeoId?: string;
9
+ cloudProvider: CloudProvider;
10
+ gamePoolId?: string;
11
+ gameResourceId?: string;
12
+ machinePoolId?: string;
13
+ machineResourceId?: string;
14
+ streamGroupId?: string;
15
+ streamSessionId?: string;
16
+ poolId?: string;
17
+ resourceId?: string;
18
+ tabSessionId?: string;
19
+ region?: string;
20
+ }
@@ -0,0 +1,101 @@
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.CloudSessionContext = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const types_1 = require("../types");
15
+ class CloudSessionContext {
16
+ }
17
+ exports.CloudSessionContext = CloudSessionContext;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsUUID)(),
21
+ __metadata("design:type", String)
22
+ ], CloudSessionContext.prototype, "allocationRequestId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsOptional)(),
25
+ (0, class_validator_1.IsUUID)(),
26
+ __metadata("design:type", String)
27
+ ], CloudSessionContext.prototype, "clientRequestId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsUUID)(),
30
+ __metadata("design:type", String)
31
+ ], CloudSessionContext.prototype, "cloudSessionId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsUUID)(),
35
+ __metadata("design:type", String)
36
+ ], CloudSessionContext.prototype, "userId", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsOptional)(),
39
+ (0, class_validator_1.IsUUID)(),
40
+ __metadata("design:type", String)
41
+ ], CloudSessionContext.prototype, "gameId", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsUUID)(),
45
+ __metadata("design:type", String)
46
+ ], CloudSessionContext.prototype, "ludeoId", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsEnum)(types_1.CloudProvider),
49
+ __metadata("design:type", String)
50
+ ], CloudSessionContext.prototype, "cloudProvider", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsUUID)(),
54
+ __metadata("design:type", String)
55
+ ], CloudSessionContext.prototype, "gamePoolId", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsUUID)(),
59
+ __metadata("design:type", String)
60
+ ], CloudSessionContext.prototype, "gameResourceId", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsUUID)(),
64
+ __metadata("design:type", String)
65
+ ], CloudSessionContext.prototype, "machinePoolId", void 0);
66
+ __decorate([
67
+ (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.IsUUID)(),
69
+ __metadata("design:type", String)
70
+ ], CloudSessionContext.prototype, "machineResourceId", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsOptional)(),
73
+ (0, class_validator_1.IsString)(),
74
+ __metadata("design:type", String)
75
+ ], CloudSessionContext.prototype, "streamGroupId", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsOptional)(),
78
+ (0, class_validator_1.IsString)(),
79
+ __metadata("design:type", String)
80
+ ], CloudSessionContext.prototype, "streamSessionId", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_validator_1.IsUUID)(),
84
+ __metadata("design:type", String)
85
+ ], CloudSessionContext.prototype, "poolId", void 0);
86
+ __decorate([
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.IsUUID)(),
89
+ __metadata("design:type", String)
90
+ ], CloudSessionContext.prototype, "resourceId", void 0);
91
+ __decorate([
92
+ (0, class_validator_1.IsOptional)(),
93
+ (0, class_validator_1.IsUUID)(),
94
+ __metadata("design:type", String)
95
+ ], CloudSessionContext.prototype, "tabSessionId", void 0);
96
+ __decorate([
97
+ (0, class_validator_1.IsOptional)(),
98
+ (0, class_validator_1.IsString)(),
99
+ __metadata("design:type", String)
100
+ ], CloudSessionContext.prototype, "region", void 0);
101
+ //# sourceMappingURL=cloud-session-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AAEzC,MAAa,mBAAmB;CAmE/B;AAnED,kDAmEC;AAhEC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;oDACQ;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;yDACa;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK"}
@@ -0,0 +1,5 @@
1
+ import { TypeHelpOptions } from "class-transformer";
2
+ import { CloudPoolContext } from "./cloud-pool-context";
3
+ import { CloudSessionContext } from "./cloud-session-context";
4
+ import { CloudResourceContext } from "./cloud-resource-context";
5
+ export declare const getCloudContextType: ({ object }: TypeHelpOptions) => typeof CloudPoolContext | typeof CloudResourceContext | typeof CloudSessionContext;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCloudContextType = void 0;
4
+ const cloud_pool_context_1 = require("./cloud-pool-context");
5
+ const cloud_session_context_1 = require("./cloud-session-context");
6
+ const cloud_resource_context_1 = require("./cloud-resource-context");
7
+ const getCloudContextType = ({ object }) => {
8
+ const { context } = object;
9
+ if ("cloudSessionId" in context) {
10
+ return cloud_session_context_1.CloudSessionContext;
11
+ }
12
+ if ("resourceId" in context ||
13
+ "gameResourceId" in context ||
14
+ "machineResourceId" in context) {
15
+ return cloud_resource_context_1.CloudResourceContext;
16
+ }
17
+ return cloud_pool_context_1.CloudPoolContext;
18
+ };
19
+ exports.getCloudContextType = getCloudContextType;
20
+ //# sourceMappingURL=getCloudContextType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCloudContextType.js","sourceRoot":"","sources":["../../../src/v4/contexts/getCloudContextType.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,mEAA8D;AAC9D,qEAAgE;AAEzD,MAAM,mBAAmB,GAAG,CAAC,EAAE,MAAM,EAAmB,EAAE,EAAE;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAE3B,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;QAChC,OAAO,2CAAmB,CAAC;IAC7B,CAAC;IAED,IACE,YAAY,IAAI,OAAO;QACvB,gBAAgB,IAAI,OAAO;QAC3B,mBAAmB,IAAI,OAAO,EAC9B,CAAC;QACD,OAAO,6CAAoB,CAAC;IAC9B,CAAC;IAED,OAAO,qCAAgB,CAAC;AAC1B,CAAC,CAAC;AAhBW,QAAA,mBAAmB,uBAgB9B"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,95 @@
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
+ const class_validator_1 = require("class-validator");
13
+ const class_transformer_1 = require("class-transformer");
14
+ const decorators_1 = require("../../decorators");
15
+ const getCloudContextType_1 = require("./getCloudContextType");
16
+ const cloud_pool_context_1 = require("../contexts/cloud-pool-context");
17
+ const cloud_session_context_1 = require("../contexts/cloud-session-context");
18
+ const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
19
+ describe("getContextType", () => {
20
+ it("should return cloud session context", () => {
21
+ const context = {
22
+ cloudSessionId: "cloudSessionId",
23
+ };
24
+ expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_session_context_1.CloudSessionContext);
25
+ });
26
+ it("should return cloud resource context", () => {
27
+ const context = {
28
+ resourceId: "resourceId",
29
+ };
30
+ expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_resource_context_1.CloudResourceContext);
31
+ });
32
+ it("should return cloud pool context", () => {
33
+ const context = {
34
+ poolId: "poolId",
35
+ };
36
+ expect((0, getCloudContextType_1.getCloudContextType)({ object: { context } })).toBe(cloud_pool_context_1.CloudPoolContext);
37
+ });
38
+ describe("class validator", () => {
39
+ class Context {
40
+ constructor(context) {
41
+ this.context = context;
42
+ }
43
+ }
44
+ __decorate([
45
+ (0, decorators_1.ValidateNestedType)(getCloudContextType_1.getCloudContextType),
46
+ __metadata("design:type", Object)
47
+ ], Context.prototype, "context", void 0);
48
+ it("invalid cloud session context", async () => {
49
+ const invalidCloudSessionContext = {
50
+ cloudSessionId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
51
+ poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
52
+ cloudProvider: "invalid",
53
+ };
54
+ const invalidEvent = (0, class_transformer_1.plainToInstance)(Context, {
55
+ context: invalidCloudSessionContext,
56
+ });
57
+ const validationErrors = await (0, class_validator_1.validate)(invalidEvent);
58
+ expect(validationErrors).toHaveLength(1);
59
+ expect(validationErrors[0].children).toHaveLength(1);
60
+ expect(validationErrors[0].children[0].constraints).toEqual({
61
+ isEnum: "cloudProvider must be one of the following values: aws",
62
+ });
63
+ });
64
+ it("valid cloud session context", async () => {
65
+ const validCloudSessionContext = {
66
+ cloudSessionId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
67
+ poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
68
+ cloudProvider: "aws",
69
+ };
70
+ const validEvent = (0, class_transformer_1.plainToInstance)(Context, {
71
+ context: validCloudSessionContext,
72
+ });
73
+ const validationErrors = await (0, class_validator_1.validate)(validEvent);
74
+ expect(validationErrors).toHaveLength(0);
75
+ });
76
+ it("invalid cloud resource context", async () => {
77
+ const invalidCloudResourceContext = {
78
+ resourceId: "BA7C9AEE-955D-4155-9220-A4BCB0F0A106",
79
+ poolId: "E738D912-8D00-4E3B-9F0A-A448C9FEAA73",
80
+ cloudProvider: "aws",
81
+ streamGroupId: 123839289312,
82
+ };
83
+ const invalidEvent = (0, class_transformer_1.plainToInstance)(Context, {
84
+ context: invalidCloudResourceContext,
85
+ });
86
+ const validationErrors = await (0, class_validator_1.validate)(invalidEvent);
87
+ expect(validationErrors).toHaveLength(1);
88
+ expect(validationErrors[0].children).toHaveLength(1);
89
+ expect(validationErrors[0].children[0].constraints).toEqual({
90
+ isString: "streamGroupId must be a string",
91
+ });
92
+ });
93
+ });
94
+ });
95
+ //# sourceMappingURL=getCloudContextType.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCloudContextType.spec.js","sourceRoot":"","sources":["../../../src/v4/contexts/getCloudContextType.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qDAA2C;AAC3C,yDAAoD;AAEpD,iDAAsD;AACtD,+DAA4D;AAC5D,uEAAkE;AAClE,6EAAwE;AACxE,+EAA0E;AAE1E,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,gBAAgB;SACjC,CAAC;QACF,MAAM,CAAC,IAAA,yCAAmB,EAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAS,CAAC,CAAC,CAAC,IAAI,CAC9D,2CAAmB,CACpB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,OAAO,GAAG;YACd,UAAU,EAAE,YAAY;SACzB,CAAC;QACF,MAAM,CAAC,IAAA,yCAAmB,EAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAS,CAAC,CAAC,CAAC,IAAI,CAC9D,6CAAoB,CACrB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,OAAO,GAAG;YACd,MAAM,EAAE,QAAQ;SACjB,CAAC;QACF,MAAM,CAAC,IAAA,yCAAmB,EAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAS,CAAC,CAAC,CAAC,IAAI,CAC9D,qCAAgB,CACjB,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,MAAM,OAAO;YAIX,YAAY,OAA4B;gBACtC,IAAI,CAAC,OAAO,GAAG,OAAc,CAAC;YAChC,CAAC;SACF;QALC;YADC,IAAA,+BAAkB,EAAC,yCAAmB,CAAC;;gDAC+B;QAOzE,EAAE,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;YAC7C,MAAM,0BAA0B,GAAG;gBACjC,cAAc,EAAE,sCAAsC;gBACtD,MAAM,EAAE,sCAAsC;gBAC9C,aAAa,EAAE,SAAgB;aAChC,CAAC;YAEF,MAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,OAAO,EAAE;gBAC5C,OAAO,EAAE,0BAA0B;aACpC,CAAC,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,IAAA,0BAAQ,EAAC,YAAY,CAAC,CAAC;YAEtD,MAAM,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrD,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;gBAC1D,MAAM,EAAE,wDAAwD;aACjE,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,6BAA6B,EAAE,KAAK,IAAI,EAAE;YAC3C,MAAM,wBAAwB,GAAG;gBAC/B,cAAc,EAAE,sCAAsC;gBACtD,MAAM,EAAE,sCAAsC;gBAC9C,aAAa,EAAE,KAAK;aACrB,CAAC;YAEF,MAAM,UAAU,GAAG,IAAA,mCAAe,EAAC,OAAO,EAAE;gBAC1C,OAAO,EAAE,wBAAwB;aAClC,CAAC,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,IAAA,0BAAQ,EAAC,UAAU,CAAC,CAAC;YAEpD,MAAM,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;YAC9C,MAAM,2BAA2B,GAAG;gBAClC,UAAU,EAAE,sCAAsC;gBAClD,MAAM,EAAE,sCAAsC;gBAC9C,aAAa,EAAE,KAAY;gBAC3B,aAAa,EAAE,YAAY;aAC5B,CAAC;YAEF,MAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,OAAO,EAAE;gBAC5C,OAAO,EAAE,2BAA2B;aACrC,CAAC,CAAC;YACH,MAAM,gBAAgB,GAAG,MAAM,IAAA,0BAAQ,EAAC,YAAY,CAAC,CAAC;YAEtD,MAAM,CAAC,gBAAgB,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACzC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACrD,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC;gBAC1D,QAAQ,EAAE,gCAAgC;aAC3C,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./cloud-pool-context";
2
+ export * from "./cloud-resource-context";
3
+ export * from "./cloud-session-context";
4
+ export * from "./getCloudContextType";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cloud-pool-context"), exports);
18
+ __exportStar(require("./cloud-resource-context"), exports);
19
+ __exportStar(require("./cloud-session-context"), exports);
20
+ __exportStar(require("./getCloudContextType"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v4/contexts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,2DAAyC;AACzC,0DAAwC;AACxC,wDAAsC"}
@@ -0,0 +1,11 @@
1
+ import { CloudSessionContext } from "../contexts/cloud-session-context";
2
+ import { LudeoEvent } from "../../infra/ludeo-event";
3
+ export declare class AllocateCloudSessionFailedPayload {
4
+ error: string;
5
+ }
6
+ export declare class AllocateCloudSessionFailed extends LudeoEvent {
7
+ static readonly EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-failed";
8
+ constructor(payload: AllocateCloudSessionFailedPayload, context: CloudSessionContext);
9
+ payload: AllocateCloudSessionFailedPayload;
10
+ context: CloudSessionContext;
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.AllocateCloudSessionFailed = exports.AllocateCloudSessionFailedPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const cloud_session_context_1 = require("../contexts/cloud-session-context");
15
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ class AllocateCloudSessionFailedPayload {
18
+ }
19
+ exports.AllocateCloudSessionFailedPayload = AllocateCloudSessionFailedPayload;
20
+ __decorate([
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], AllocateCloudSessionFailedPayload.prototype, "error", void 0);
24
+ class AllocateCloudSessionFailed extends ludeo_event_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(AllocateCloudSessionFailed.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.AllocateCloudSessionFailed = AllocateCloudSessionFailed;
32
+ AllocateCloudSessionFailed.EVENT_NAME = "cloud-session-allocator.allocate-cloud-session-failed";
33
+ __decorate([
34
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateCloudSessionFailedPayload),
35
+ __metadata("design:type", AllocateCloudSessionFailedPayload)
36
+ ], AllocateCloudSessionFailed.prototype, "payload", void 0);
37
+ __decorate([
38
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_session_context_1.CloudSessionContext),
39
+ __metadata("design:type", cloud_session_context_1.CloudSessionContext)
40
+ ], AllocateCloudSessionFailed.prototype, "context", void 0);
41
+ //# sourceMappingURL=allocate-cloud-session-failed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allocate-cloud-session-failed.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-failed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,6EAAwE;AACxE,oGAAqF;AACrF,yDAAqD;AAErD,MAAa,iCAAiC;CAG7C;AAHD,8EAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;gEACG;AAEhB,MAAa,0BAA2B,SAAQ,wBAAU;IAIxD,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;;AAXH,gEAkBC;AAjBiB,qCAAU,GACxB,uDAAuD,CAAC;AAY1D;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC;8BACnD,iCAAiC;2DAAC;AAG3C;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;8BACrC,2CAAmB;2DAAC"}
@@ -0,0 +1,12 @@
1
+ import { LudeoEvent } from "../../infra";
2
+ import { CloudSessionContext } from "../contexts";
3
+ import { AllocationRequestData } from "../types";
4
+ export declare class AllocateCloudSessionRequestData {
5
+ requestData: AllocationRequestData;
6
+ }
7
+ export declare class AllocateCloudSessionRequest extends LudeoEvent {
8
+ static readonly EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
9
+ constructor(payload: AllocateCloudSessionRequestData, context: CloudSessionContext);
10
+ payload: AllocateCloudSessionRequestData;
11
+ context: CloudSessionContext;
12
+ }
@@ -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.AllocateCloudSessionRequest = exports.AllocateCloudSessionRequestData = void 0;
13
+ const infra_1 = require("../../infra");
14
+ const contexts_1 = require("../contexts");
15
+ const decorators_1 = require("../../decorators");
16
+ const types_1 = require("../types");
17
+ class AllocateCloudSessionRequestData {
18
+ }
19
+ exports.AllocateCloudSessionRequestData = AllocateCloudSessionRequestData;
20
+ __decorate([
21
+ (0, decorators_1.ValidateNestedType)(() => types_1.AllocationRequestData),
22
+ __metadata("design:type", types_1.AllocationRequestData)
23
+ ], AllocateCloudSessionRequestData.prototype, "requestData", void 0);
24
+ class AllocateCloudSessionRequest extends infra_1.LudeoEvent {
25
+ constructor(payload, context) {
26
+ super(AllocateCloudSessionRequest.EVENT_NAME);
27
+ this.payload = payload;
28
+ this.context = context;
29
+ }
30
+ }
31
+ exports.AllocateCloudSessionRequest = AllocateCloudSessionRequest;
32
+ AllocateCloudSessionRequest.EVENT_NAME = "cloud-sessions.allocate-cloud-session-request";
33
+ __decorate([
34
+ (0, decorators_1.ValidateNestedType)(() => AllocateCloudSessionRequestData),
35
+ __metadata("design:type", AllocateCloudSessionRequestData)
36
+ ], AllocateCloudSessionRequest.prototype, "payload", void 0);
37
+ __decorate([
38
+ (0, decorators_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
39
+ __metadata("design:type", contexts_1.CloudSessionContext)
40
+ ], AllocateCloudSessionRequest.prototype, "context", void 0);
41
+ //# sourceMappingURL=allocate-cloud-session-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allocate-cloud-session-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-cloud-session-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAyC;AACzC,0CAAkD;AAClD,iDAAsD;AACtD,oCAAiD;AAEjD,MAAa,+BAA+B;CAG3C;AAHD,0EAGC;AADC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;oEAAC;AAGrC,MAAa,2BAA4B,SAAQ,kBAAU;IAGzD,YACE,OAAwC,EACxC,OAA4B;QAE5B,KAAK,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kEAiBC;AAhBiB,sCAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC;8BACjD,+BAA+B;4DAAC;AAGzC;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;4DAAC"}
@@ -0,0 +1,13 @@
1
+ import { AllocationRequestData } from "../types";
2
+ import { CloudSessionContext } from "../contexts";
3
+ import { LudeoEvent } from "../../infra/ludeo-event";
4
+ export declare class AllocateGameRequestPayload {
5
+ gamePoolId: string;
6
+ requestData: AllocationRequestData;
7
+ }
8
+ export declare class AllocateGameRequest extends LudeoEvent {
9
+ static readonly EVENT_NAME = "cloud-session-allocator.allocate-game-request";
10
+ constructor(payload: AllocateGameRequestPayload, context: CloudSessionContext);
11
+ context: CloudSessionContext;
12
+ payload: AllocateGameRequestPayload;
13
+ }
@@ -0,0 +1,46 @@
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.AllocateGameRequest = exports.AllocateGameRequestPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const types_1 = require("../types");
15
+ const contexts_1 = require("../contexts");
16
+ const ludeo_event_1 = require("../../infra/ludeo-event");
17
+ const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
18
+ class AllocateGameRequestPayload {
19
+ }
20
+ exports.AllocateGameRequestPayload = AllocateGameRequestPayload;
21
+ __decorate([
22
+ (0, class_validator_1.IsUUID)(),
23
+ __metadata("design:type", String)
24
+ ], AllocateGameRequestPayload.prototype, "gamePoolId", void 0);
25
+ __decorate([
26
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AllocationRequestData),
27
+ __metadata("design:type", types_1.AllocationRequestData)
28
+ ], AllocateGameRequestPayload.prototype, "requestData", void 0);
29
+ class AllocateGameRequest extends ludeo_event_1.LudeoEvent {
30
+ constructor(payload, context) {
31
+ super(AllocateGameRequest.EVENT_NAME);
32
+ this.payload = payload;
33
+ this.context = context;
34
+ }
35
+ }
36
+ exports.AllocateGameRequest = AllocateGameRequest;
37
+ AllocateGameRequest.EVENT_NAME = "cloud-session-allocator.allocate-game-request";
38
+ __decorate([
39
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => contexts_1.CloudSessionContext),
40
+ __metadata("design:type", contexts_1.CloudSessionContext)
41
+ ], AllocateGameRequest.prototype, "context", void 0);
42
+ __decorate([
43
+ (0, validate_nested_type_decorator_1.ValidateNestedType)(() => AllocateGameRequestPayload),
44
+ __metadata("design:type", AllocateGameRequestPayload)
45
+ ], AllocateGameRequest.prototype, "payload", void 0);
46
+ //# sourceMappingURL=allocate-game-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allocate-game-request.js","sourceRoot":"","sources":["../../../src/v4/events/allocate-game-request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAEjD,oCAAgE;AAChE,0CAAkD;AAClD,yDAAqD;AACrD,oGAAqF;AAErF,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAJC;IADC,IAAA,wBAAM,GAAE;;8DACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6BAAqB,CAAC;8BACnC,6BAAqB;+DAAC;AAGrC,MAAa,mBAAoB,SAAQ,wBAAU;IAGjD,YACE,OAAmC,EACnC,OAA4B;QAE5B,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAVH,kDAiBC;AAhBiB,8BAAU,GAAG,+CAA+C,CAAC;AAY7E;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAAmB,CAAC;8BACrC,8BAAmB;oDAAC;AAG7B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;8BAC5C,0BAA0B;oDAAC"}