whop_sdk 0.0.2 → 0.0.4

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 (338) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +24 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +30 -24
  6. data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
  7. data/lib/whop_sdk/models/app_update_params.rb +53 -29
  8. data/lib/whop_sdk/models/assessment_question_types.rb +18 -0
  9. data/lib/whop_sdk/models/billing_reasons.rb +20 -0
  10. data/lib/whop_sdk/models/card_brands.rb +30 -0
  11. data/lib/whop_sdk/models/checkout_configuration.rb +10 -7
  12. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +251 -38
  13. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -7
  14. data/lib/whop_sdk/models/company.rb +13 -1
  15. data/lib/whop_sdk/models/company_create_params.rb +46 -0
  16. data/lib/whop_sdk/models/company_list_params.rb +62 -0
  17. data/lib/whop_sdk/models/company_list_response.rb +175 -0
  18. data/lib/whop_sdk/models/course.rb +230 -0
  19. data/lib/whop_sdk/models/course_chapter.rb +72 -0
  20. data/lib/whop_sdk/models/course_chapter_create_params.rb +30 -0
  21. data/lib/whop_sdk/models/course_chapter_delete_params.rb +14 -0
  22. data/lib/whop_sdk/models/course_chapter_delete_response.rb +8 -0
  23. data/lib/whop_sdk/models/course_chapter_list_params.rb +54 -0
  24. data/lib/whop_sdk/models/course_chapter_list_response.rb +35 -0
  25. data/lib/whop_sdk/models/course_chapter_retrieve_params.rb +14 -0
  26. data/lib/whop_sdk/models/course_chapter_update_params.rb +22 -0
  27. data/lib/whop_sdk/models/course_create_params.rb +127 -0
  28. data/lib/whop_sdk/models/course_delete_params.rb +14 -0
  29. data/lib/whop_sdk/models/course_delete_response.rb +8 -0
  30. data/lib/whop_sdk/models/course_lesson_create_params.rb +54 -0
  31. data/lib/whop_sdk/models/course_lesson_delete_params.rb +14 -0
  32. data/lib/whop_sdk/models/course_lesson_delete_response.rb +8 -0
  33. data/lib/whop_sdk/models/course_lesson_list_params.rb +62 -0
  34. data/lib/whop_sdk/models/course_lesson_list_response.rb +71 -0
  35. data/lib/whop_sdk/models/course_lesson_retrieve_params.rb +14 -0
  36. data/lib/whop_sdk/models/course_lesson_update_params.rb +399 -0
  37. data/lib/whop_sdk/models/course_list_params.rb +62 -0
  38. data/lib/whop_sdk/models/course_list_response.rb +148 -0
  39. data/lib/whop_sdk/models/course_retrieve_params.rb +14 -0
  40. data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
  41. data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
  42. data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
  43. data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
  44. data/lib/whop_sdk/models/course_update_params.rb +221 -0
  45. data/lib/whop_sdk/models/experience_duplicate_params.rb +22 -0
  46. data/lib/whop_sdk/models/experience_update_params.rb +53 -29
  47. data/lib/whop_sdk/models/forum_post.rb +17 -1
  48. data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
  49. data/lib/whop_sdk/models/forum_post_list_response.rb +17 -1
  50. data/lib/whop_sdk/models/forum_post_update_params.rb +104 -0
  51. data/lib/whop_sdk/models/invoice.rb +6 -2
  52. data/lib/whop_sdk/models/invoice_create_params.rb +48 -32
  53. data/lib/whop_sdk/models/invoice_list_item.rb +6 -2
  54. data/lib/whop_sdk/models/languages.rb +36 -0
  55. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +9 -0
  56. data/lib/whop_sdk/models/lesson.rb +373 -0
  57. data/lib/whop_sdk/models/lesson_types.rb +20 -0
  58. data/lib/whop_sdk/models/lesson_visibilities.rb +17 -0
  59. data/lib/whop_sdk/models/member_list_params.rb +9 -1
  60. data/lib/whop_sdk/models/membership.rb +31 -1
  61. data/lib/whop_sdk/models/membership_list_params.rb +16 -8
  62. data/lib/whop_sdk/models/membership_list_response.rb +31 -1
  63. data/lib/whop_sdk/models/message_create_params.rb +51 -27
  64. data/lib/whop_sdk/models/message_update_params.rb +92 -0
  65. data/lib/whop_sdk/models/payment.rb +34 -22
  66. data/lib/whop_sdk/models/payment_list_params.rb +3 -18
  67. data/lib/whop_sdk/models/payment_list_response.rb +34 -22
  68. data/lib/whop_sdk/models/payment_method_types.rb +99 -0
  69. data/lib/whop_sdk/models/plan.rb +72 -1
  70. data/lib/whop_sdk/models/plan_create_params.rb +133 -24
  71. data/lib/whop_sdk/models/plan_list_response.rb +75 -1
  72. data/lib/whop_sdk/models/plan_update_params.rb +131 -22
  73. data/lib/whop_sdk/models/product.rb +11 -1
  74. data/lib/whop_sdk/models/product_create_params.rb +1 -45
  75. data/lib/whop_sdk/models/product_list_item.rb +14 -1
  76. data/lib/whop_sdk/models/product_update_params.rb +76 -23
  77. data/lib/whop_sdk/models/promo_code.rb +211 -0
  78. data/lib/whop_sdk/models/promo_code_create_params.rb +140 -0
  79. data/lib/whop_sdk/models/promo_code_delete_params.rb +14 -0
  80. data/lib/whop_sdk/models/promo_code_delete_response.rb +8 -0
  81. data/lib/whop_sdk/models/promo_code_list_params.rb +78 -0
  82. data/lib/whop_sdk/models/promo_code_list_response.rb +181 -0
  83. data/lib/whop_sdk/models/promo_code_retrieve_params.rb +14 -0
  84. data/lib/whop_sdk/models/promo_code_status.rb +17 -0
  85. data/lib/whop_sdk/models/promo_duration.rb +17 -0
  86. data/lib/whop_sdk/models/review_list_params.rb +70 -0
  87. data/lib/whop_sdk/models/review_list_response.rb +183 -0
  88. data/lib/whop_sdk/models/review_retrieve_params.rb +14 -0
  89. data/lib/whop_sdk/models/review_retrieve_response.rb +251 -0
  90. data/lib/whop_sdk/models/review_status.rb +17 -0
  91. data/lib/whop_sdk/models/transfer.rb +9 -1
  92. data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
  93. data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
  94. data/lib/whop_sdk/models.rb +84 -0
  95. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  96. data/lib/whop_sdk/resources/apps.rb +1 -1
  97. data/lib/whop_sdk/resources/checkout_configurations.rb +8 -6
  98. data/lib/whop_sdk/resources/companies.rb +70 -0
  99. data/lib/whop_sdk/resources/course_chapters.rb +151 -0
  100. data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -2
  101. data/lib/whop_sdk/resources/course_lessons.rb +182 -0
  102. data/lib/whop_sdk/resources/course_students.rb +76 -0
  103. data/lib/whop_sdk/resources/courses.rb +185 -0
  104. data/lib/whop_sdk/resources/experiences.rb +34 -1
  105. data/lib/whop_sdk/resources/forum_posts.rb +34 -1
  106. data/lib/whop_sdk/resources/invoices.rb +11 -11
  107. data/lib/whop_sdk/resources/members.rb +3 -1
  108. data/lib/whop_sdk/resources/memberships.rb +6 -4
  109. data/lib/whop_sdk/resources/messages.rb +29 -1
  110. data/lib/whop_sdk/resources/payments.rb +1 -1
  111. data/lib/whop_sdk/resources/plans.rb +25 -5
  112. data/lib/whop_sdk/resources/products.rb +5 -7
  113. data/lib/whop_sdk/resources/promo_codes.rb +161 -0
  114. data/lib/whop_sdk/resources/reviews.rb +68 -0
  115. data/lib/whop_sdk/resources/transfers.rb +3 -1
  116. data/lib/whop_sdk/version.rb +1 -1
  117. data/lib/whop_sdk.rb +61 -1
  118. data/rbi/whop_sdk/client.rbi +18 -0
  119. data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
  120. data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
  121. data/rbi/whop_sdk/models/assessment_question_types.rbi +31 -0
  122. data/rbi/whop_sdk/models/billing_reasons.rbi +27 -0
  123. data/rbi/whop_sdk/models/card_brands.rbi +35 -0
  124. data/rbi/whop_sdk/models/checkout_configuration.rbi +4 -2
  125. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +371 -62
  126. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +4 -2
  127. data/rbi/whop_sdk/models/company.rbi +10 -0
  128. data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
  129. data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
  130. data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
  131. data/rbi/whop_sdk/models/course.rbi +313 -0
  132. data/rbi/whop_sdk/models/course_chapter.rbi +101 -0
  133. data/rbi/whop_sdk/models/course_chapter_create_params.rbi +51 -0
  134. data/rbi/whop_sdk/models/course_chapter_delete_params.rbi +27 -0
  135. data/rbi/whop_sdk/models/course_chapter_delete_response.rbi +8 -0
  136. data/rbi/whop_sdk/models/course_chapter_list_params.rbi +75 -0
  137. data/rbi/whop_sdk/models/course_chapter_list_response.rbi +47 -0
  138. data/rbi/whop_sdk/models/course_chapter_retrieve_params.rbi +30 -0
  139. data/rbi/whop_sdk/models/course_chapter_update_params.rbi +40 -0
  140. data/rbi/whop_sdk/models/course_create_params.rbi +197 -0
  141. data/rbi/whop_sdk/models/course_delete_params.rbi +27 -0
  142. data/rbi/whop_sdk/models/course_delete_response.rbi +7 -0
  143. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +75 -0
  144. data/rbi/whop_sdk/models/course_lesson_delete_params.rbi +27 -0
  145. data/rbi/whop_sdk/models/course_lesson_delete_response.rbi +8 -0
  146. data/rbi/whop_sdk/models/course_lesson_list_params.rbi +83 -0
  147. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +91 -0
  148. data/rbi/whop_sdk/models/course_lesson_retrieve_params.rbi +27 -0
  149. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +677 -0
  150. data/rbi/whop_sdk/models/course_list_params.rbi +83 -0
  151. data/rbi/whop_sdk/models/course_list_response.rbi +198 -0
  152. data/rbi/whop_sdk/models/course_retrieve_params.rbi +27 -0
  153. data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
  154. data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
  155. data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
  156. data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
  157. data/rbi/whop_sdk/models/course_update_params.rbi +339 -0
  158. data/rbi/whop_sdk/models/experience_duplicate_params.rbi +40 -0
  159. data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
  160. data/rbi/whop_sdk/models/forum_post.rbi +16 -0
  161. data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
  162. data/rbi/whop_sdk/models/forum_post_list_response.rbi +16 -0
  163. data/rbi/whop_sdk/models/forum_post_update_params.rbi +177 -0
  164. data/rbi/whop_sdk/models/invoice.rbi +4 -2
  165. data/rbi/whop_sdk/models/invoice_create_params.rbi +58 -44
  166. data/rbi/whop_sdk/models/invoice_list_item.rbi +4 -2
  167. data/rbi/whop_sdk/models/languages.rbi +40 -0
  168. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +45 -0
  169. data/rbi/whop_sdk/models/lesson.rbi +521 -0
  170. data/rbi/whop_sdk/models/lesson_types.rbi +25 -0
  171. data/rbi/whop_sdk/models/lesson_visibilities.rbi +23 -0
  172. data/rbi/whop_sdk/models/member_list_params.rbi +8 -0
  173. data/rbi/whop_sdk/models/membership.rbi +40 -0
  174. data/rbi/whop_sdk/models/membership_list_params.rbi +16 -8
  175. data/rbi/whop_sdk/models/membership_list_response.rbi +47 -0
  176. data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
  177. data/rbi/whop_sdk/models/message_update_params.rbi +167 -0
  178. data/rbi/whop_sdk/models/payment.rbi +42 -25
  179. data/rbi/whop_sdk/models/payment_list_params.rbi +3 -63
  180. data/rbi/whop_sdk/models/payment_list_response.rbi +42 -25
  181. data/rbi/whop_sdk/models/payment_method_types.rbi +118 -0
  182. data/rbi/whop_sdk/models/plan.rbi +106 -0
  183. data/rbi/whop_sdk/models/plan_create_params.rbi +212 -34
  184. data/rbi/whop_sdk/models/plan_list_response.rbi +118 -0
  185. data/rbi/whop_sdk/models/plan_update_params.rbi +210 -32
  186. data/rbi/whop_sdk/models/product.rbi +12 -0
  187. data/rbi/whop_sdk/models/product_create_params.rbi +0 -74
  188. data/rbi/whop_sdk/models/product_list_item.rbi +12 -0
  189. data/rbi/whop_sdk/models/product_update_params.rbi +136 -33
  190. data/rbi/whop_sdk/models/promo_code.rbi +248 -0
  191. data/rbi/whop_sdk/models/promo_code_create_params.rbi +161 -0
  192. data/rbi/whop_sdk/models/promo_code_delete_params.rbi +27 -0
  193. data/rbi/whop_sdk/models/promo_code_delete_response.rbi +8 -0
  194. data/rbi/whop_sdk/models/promo_code_list_params.rbi +99 -0
  195. data/rbi/whop_sdk/models/promo_code_list_response.rbi +222 -0
  196. data/rbi/whop_sdk/models/promo_code_retrieve_params.rbi +27 -0
  197. data/rbi/whop_sdk/models/promo_code_status.rbi +21 -0
  198. data/rbi/whop_sdk/models/promo_duration.rbi +21 -0
  199. data/rbi/whop_sdk/models/review_list_params.rbi +91 -0
  200. data/rbi/whop_sdk/models/review_list_response.rbi +243 -0
  201. data/rbi/whop_sdk/models/review_retrieve_params.rbi +27 -0
  202. data/rbi/whop_sdk/models/review_retrieve_response.rbi +354 -0
  203. data/rbi/whop_sdk/models/review_status.rbi +21 -0
  204. data/rbi/whop_sdk/models/transfer.rbi +8 -0
  205. data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
  206. data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
  207. data/rbi/whop_sdk/models.rbi +84 -0
  208. data/rbi/whop_sdk/resources/app_builds.rbi +5 -1
  209. data/rbi/whop_sdk/resources/apps.rbi +7 -1
  210. data/rbi/whop_sdk/resources/checkout_configurations.rbi +8 -7
  211. data/rbi/whop_sdk/resources/companies.rbi +63 -0
  212. data/rbi/whop_sdk/resources/course_chapters.rbi +115 -0
  213. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +2 -2
  214. data/rbi/whop_sdk/resources/course_lessons.rbi +182 -0
  215. data/rbi/whop_sdk/resources/course_students.rbi +65 -0
  216. data/rbi/whop_sdk/resources/courses.rbi +172 -0
  217. data/rbi/whop_sdk/resources/experiences.rbi +32 -1
  218. data/rbi/whop_sdk/resources/forum_posts.rbi +40 -1
  219. data/rbi/whop_sdk/resources/invoices.rbi +18 -18
  220. data/rbi/whop_sdk/resources/members.rbi +3 -0
  221. data/rbi/whop_sdk/resources/memberships.rbi +6 -3
  222. data/rbi/whop_sdk/resources/messages.rbi +36 -1
  223. data/rbi/whop_sdk/resources/payments.rbi +1 -3
  224. data/rbi/whop_sdk/resources/plans.rbi +57 -3
  225. data/rbi/whop_sdk/resources/products.rbi +10 -8
  226. data/rbi/whop_sdk/resources/promo_codes.rbi +147 -0
  227. data/rbi/whop_sdk/resources/reviews.rbi +56 -0
  228. data/rbi/whop_sdk/resources/transfers.rbi +3 -0
  229. data/sig/whop_sdk/client.rbs +12 -0
  230. data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
  231. data/sig/whop_sdk/models/app_update_params.rbs +29 -10
  232. data/sig/whop_sdk/models/assessment_question_types.rbs +17 -0
  233. data/sig/whop_sdk/models/billing_reasons.rbs +24 -0
  234. data/sig/whop_sdk/models/card_brands.rbs +44 -0
  235. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +159 -21
  236. data/sig/whop_sdk/models/company.rbs +5 -0
  237. data/sig/whop_sdk/models/company_create_params.rbs +41 -0
  238. data/sig/whop_sdk/models/company_list_params.rbs +51 -0
  239. data/sig/whop_sdk/models/company_list_response.rbs +109 -0
  240. data/sig/whop_sdk/models/course.rbs +171 -0
  241. data/sig/whop_sdk/models/course_chapter.rbs +49 -0
  242. data/sig/whop_sdk/models/course_chapter_create_params.rbs +28 -0
  243. data/sig/whop_sdk/models/course_chapter_delete_params.rbs +15 -0
  244. data/sig/whop_sdk/models/course_chapter_delete_response.rbs +5 -0
  245. data/sig/whop_sdk/models/course_chapter_list_params.rbs +46 -0
  246. data/sig/whop_sdk/models/course_chapter_list_response.rbs +18 -0
  247. data/sig/whop_sdk/models/course_chapter_retrieve_params.rbs +15 -0
  248. data/sig/whop_sdk/models/course_chapter_update_params.rbs +23 -0
  249. data/sig/whop_sdk/models/course_create_params.rbs +87 -0
  250. data/sig/whop_sdk/models/course_delete_params.rbs +15 -0
  251. data/sig/whop_sdk/models/course_delete_response.rbs +5 -0
  252. data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
  253. data/sig/whop_sdk/models/course_lesson_delete_params.rbs +15 -0
  254. data/sig/whop_sdk/models/course_lesson_delete_response.rbs +5 -0
  255. data/sig/whop_sdk/models/course_lesson_list_params.rbs +51 -0
  256. data/sig/whop_sdk/models/course_lesson_list_response.rbs +50 -0
  257. data/sig/whop_sdk/models/course_lesson_retrieve_params.rbs +15 -0
  258. data/sig/whop_sdk/models/course_lesson_update_params.rbs +248 -0
  259. data/sig/whop_sdk/models/course_list_params.rbs +51 -0
  260. data/sig/whop_sdk/models/course_list_response.rbs +102 -0
  261. data/sig/whop_sdk/models/course_retrieve_params.rbs +15 -0
  262. data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
  263. data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
  264. data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
  265. data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
  266. data/sig/whop_sdk/models/course_update_params.rbs +156 -0
  267. data/sig/whop_sdk/models/experience_duplicate_params.rbs +23 -0
  268. data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
  269. data/sig/whop_sdk/models/forum_post.rbs +10 -0
  270. data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
  271. data/sig/whop_sdk/models/forum_post_list_response.rbs +10 -0
  272. data/sig/whop_sdk/models/forum_post_update_params.rbs +72 -0
  273. data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
  274. data/sig/whop_sdk/models/languages.rbs +56 -0
  275. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +20 -1
  276. data/sig/whop_sdk/models/lesson.rbs +248 -0
  277. data/sig/whop_sdk/models/lesson_types.rbs +19 -0
  278. data/sig/whop_sdk/models/lesson_visibilities.rbs +14 -0
  279. data/sig/whop_sdk/models/member_list_params.rbs +6 -1
  280. data/sig/whop_sdk/models/membership.rbs +17 -0
  281. data/sig/whop_sdk/models/membership_list_params.rbs +11 -6
  282. data/sig/whop_sdk/models/membership_list_response.rbs +17 -0
  283. data/sig/whop_sdk/models/message_create_params.rbs +29 -10
  284. data/sig/whop_sdk/models/message_update_params.rbs +67 -0
  285. data/sig/whop_sdk/models/payment.rbs +17 -12
  286. data/sig/whop_sdk/models/payment_list_params.rbs +4 -25
  287. data/sig/whop_sdk/models/payment_list_response.rbs +17 -12
  288. data/sig/whop_sdk/models/payment_method_types.rbs +182 -0
  289. data/sig/whop_sdk/models/plan.rbs +47 -0
  290. data/sig/whop_sdk/models/plan_create_params.rbs +81 -10
  291. data/sig/whop_sdk/models/plan_list_response.rbs +47 -0
  292. data/sig/whop_sdk/models/plan_update_params.rbs +81 -10
  293. data/sig/whop_sdk/models/product.rbs +5 -0
  294. data/sig/whop_sdk/models/product_create_params.rbs +0 -22
  295. data/sig/whop_sdk/models/product_list_item.rbs +5 -0
  296. data/sig/whop_sdk/models/product_update_params.rbs +46 -10
  297. data/sig/whop_sdk/models/promo_code.rbs +134 -0
  298. data/sig/whop_sdk/models/promo_code_create_params.rbs +96 -0
  299. data/sig/whop_sdk/models/promo_code_delete_params.rbs +15 -0
  300. data/sig/whop_sdk/models/promo_code_delete_response.rbs +5 -0
  301. data/sig/whop_sdk/models/promo_code_list_params.rbs +61 -0
  302. data/sig/whop_sdk/models/promo_code_list_response.rbs +117 -0
  303. data/sig/whop_sdk/models/promo_code_retrieve_params.rbs +15 -0
  304. data/sig/whop_sdk/models/promo_code_status.rbs +15 -0
  305. data/sig/whop_sdk/models/promo_duration.rbs +15 -0
  306. data/sig/whop_sdk/models/review_list_params.rbs +56 -0
  307. data/sig/whop_sdk/models/review_list_response.rbs +116 -0
  308. data/sig/whop_sdk/models/review_retrieve_params.rbs +15 -0
  309. data/sig/whop_sdk/models/review_retrieve_response.rbs +152 -0
  310. data/sig/whop_sdk/models/review_status.rbs +15 -0
  311. data/sig/whop_sdk/models/transfer.rbs +5 -0
  312. data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
  313. data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
  314. data/sig/whop_sdk/models.rbs +84 -0
  315. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  316. data/sig/whop_sdk/resources/apps.rbs +1 -1
  317. data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
  318. data/sig/whop_sdk/resources/companies.rbs +18 -0
  319. data/sig/whop_sdk/resources/course_chapters.rbs +35 -0
  320. data/sig/whop_sdk/resources/course_lessons.rbs +49 -0
  321. data/sig/whop_sdk/resources/course_students.rbs +22 -0
  322. data/sig/whop_sdk/resources/courses.rbs +49 -0
  323. data/sig/whop_sdk/resources/experiences.rbs +7 -1
  324. data/sig/whop_sdk/resources/forum_posts.rbs +10 -1
  325. data/sig/whop_sdk/resources/invoices.rbs +5 -5
  326. data/sig/whop_sdk/resources/members.rbs +1 -0
  327. data/sig/whop_sdk/resources/memberships.rbs +2 -1
  328. data/sig/whop_sdk/resources/messages.rbs +9 -1
  329. data/sig/whop_sdk/resources/payments.rbs +1 -1
  330. data/sig/whop_sdk/resources/plans.rbs +12 -2
  331. data/sig/whop_sdk/resources/products.rbs +2 -3
  332. data/sig/whop_sdk/resources/promo_codes.rbs +45 -0
  333. data/sig/whop_sdk/resources/reviews.rbs +23 -0
  334. data/sig/whop_sdk/resources/transfers.rbs +1 -0
  335. metadata +213 -5
  336. data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
  337. data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
  338. data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::CourseStudents#list
6
+ class CourseStudentListResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The ID of the course student. Looks like crsi_XXX
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute completed_lessons_count
14
+ # The number of lessons the student has completed
15
+ #
16
+ # @return [Integer]
17
+ required :completed_lessons_count, Integer
18
+
19
+ # @!attribute completion_rate
20
+ # The percentage of lessons completed (0-100)
21
+ #
22
+ # @return [Float]
23
+ required :completion_rate, Float
24
+
25
+ # @!attribute first_interaction_at
26
+ # When the student first interacted with the course
27
+ #
28
+ # @return [Time]
29
+ required :first_interaction_at, Time
30
+
31
+ # @!attribute last_interaction_at
32
+ # When the student last interacted with the course
33
+ #
34
+ # @return [Time]
35
+ required :last_interaction_at, Time
36
+
37
+ # @!attribute total_lessons_count
38
+ # The total number of lessons the student has access to
39
+ #
40
+ # @return [Integer]
41
+ required :total_lessons_count, Integer
42
+
43
+ # @!attribute user
44
+ # The user who is enrolled in the course
45
+ #
46
+ # @return [WhopSDK::Models::CourseStudentListResponse::User]
47
+ required :user, -> { WhopSDK::Models::CourseStudentListResponse::User }
48
+
49
+ # @!method initialize(id:, completed_lessons_count:, completion_rate:, first_interaction_at:, last_interaction_at:, total_lessons_count:, user:)
50
+ # A course student (enrollment of a student in a course)
51
+ #
52
+ # @param id [String] The ID of the course student. Looks like crsi_XXX
53
+ #
54
+ # @param completed_lessons_count [Integer] The number of lessons the student has completed
55
+ #
56
+ # @param completion_rate [Float] The percentage of lessons completed (0-100)
57
+ #
58
+ # @param first_interaction_at [Time] When the student first interacted with the course
59
+ #
60
+ # @param last_interaction_at [Time] When the student last interacted with the course
61
+ #
62
+ # @param total_lessons_count [Integer] The total number of lessons the student has access to
63
+ #
64
+ # @param user [WhopSDK::Models::CourseStudentListResponse::User] The user who is enrolled in the course
65
+
66
+ # @see WhopSDK::Models::CourseStudentListResponse#user
67
+ class User < WhopSDK::Internal::Type::BaseModel
68
+ # @!attribute id
69
+ # The internal ID of the user.
70
+ #
71
+ # @return [String]
72
+ required :id, String
73
+
74
+ # @!attribute name
75
+ # The name of the user from their Whop account.
76
+ #
77
+ # @return [String, nil]
78
+ required :name, String, nil?: true
79
+
80
+ # @!attribute username
81
+ # The username of the user from their Whop account.
82
+ #
83
+ # @return [String]
84
+ required :username, String
85
+
86
+ # @!method initialize(id:, name:, username:)
87
+ # The user who is enrolled in the course
88
+ #
89
+ # @param id [String] The internal ID of the user.
90
+ #
91
+ # @param name [String, nil] The name of the user from their Whop account.
92
+ #
93
+ # @param username [String] The username of the user from their Whop account.
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::CourseStudents#retrieve
6
+ class CourseStudentRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,149 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::CourseStudents#retrieve
6
+ class CourseStudentRetrieveResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The ID of the course student. Looks like crsi_XXX
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute completed_lessons_count
14
+ # The number of lessons the student has completed
15
+ #
16
+ # @return [Integer]
17
+ required :completed_lessons_count, Integer
18
+
19
+ # @!attribute completion_rate
20
+ # The percentage of lessons completed (0-100)
21
+ #
22
+ # @return [Float]
23
+ required :completion_rate, Float
24
+
25
+ # @!attribute course
26
+ # The course the student is enrolled in
27
+ #
28
+ # @return [WhopSDK::Models::CourseStudentRetrieveResponse::Course]
29
+ required :course, -> { WhopSDK::Models::CourseStudentRetrieveResponse::Course }
30
+
31
+ # @!attribute first_interaction_at
32
+ # When the student first interacted with the course
33
+ #
34
+ # @return [Time]
35
+ required :first_interaction_at, Time
36
+
37
+ # @!attribute last_interaction_at
38
+ # When the student last interacted with the course
39
+ #
40
+ # @return [Time]
41
+ required :last_interaction_at, Time
42
+
43
+ # @!attribute total_lessons_count
44
+ # The total number of lessons the student has access to
45
+ #
46
+ # @return [Integer]
47
+ required :total_lessons_count, Integer
48
+
49
+ # @!attribute user
50
+ # The user who is enrolled in the course
51
+ #
52
+ # @return [WhopSDK::Models::CourseStudentRetrieveResponse::User]
53
+ required :user, -> { WhopSDK::Models::CourseStudentRetrieveResponse::User }
54
+
55
+ # @!method initialize(id:, completed_lessons_count:, completion_rate:, course:, first_interaction_at:, last_interaction_at:, total_lessons_count:, user:)
56
+ # A course student (enrollment of a student in a course)
57
+ #
58
+ # @param id [String] The ID of the course student. Looks like crsi_XXX
59
+ #
60
+ # @param completed_lessons_count [Integer] The number of lessons the student has completed
61
+ #
62
+ # @param completion_rate [Float] The percentage of lessons completed (0-100)
63
+ #
64
+ # @param course [WhopSDK::Models::CourseStudentRetrieveResponse::Course] The course the student is enrolled in
65
+ #
66
+ # @param first_interaction_at [Time] When the student first interacted with the course
67
+ #
68
+ # @param last_interaction_at [Time] When the student last interacted with the course
69
+ #
70
+ # @param total_lessons_count [Integer] The total number of lessons the student has access to
71
+ #
72
+ # @param user [WhopSDK::Models::CourseStudentRetrieveResponse::User] The user who is enrolled in the course
73
+
74
+ # @see WhopSDK::Models::CourseStudentRetrieveResponse#course
75
+ class Course < WhopSDK::Internal::Type::BaseModel
76
+ # @!attribute id
77
+ # The ID of the course. Looks like cors_XXX
78
+ #
79
+ # @return [String]
80
+ required :id, String
81
+
82
+ # @!attribute experience
83
+ # The experience that the course belongs to
84
+ #
85
+ # @return [WhopSDK::Models::CourseStudentRetrieveResponse::Course::Experience]
86
+ required :experience, -> { WhopSDK::Models::CourseStudentRetrieveResponse::Course::Experience }
87
+
88
+ # @!attribute title
89
+ # The title of the course
90
+ #
91
+ # @return [String, nil]
92
+ required :title, String, nil?: true
93
+
94
+ # @!method initialize(id:, experience:, title:)
95
+ # The course the student is enrolled in
96
+ #
97
+ # @param id [String] The ID of the course. Looks like cors_XXX
98
+ #
99
+ # @param experience [WhopSDK::Models::CourseStudentRetrieveResponse::Course::Experience] The experience that the course belongs to
100
+ #
101
+ # @param title [String, nil] The title of the course
102
+
103
+ # @see WhopSDK::Models::CourseStudentRetrieveResponse::Course#experience
104
+ class Experience < WhopSDK::Internal::Type::BaseModel
105
+ # @!attribute id
106
+ # The unique ID representing this experience
107
+ #
108
+ # @return [String]
109
+ required :id, String
110
+
111
+ # @!method initialize(id:)
112
+ # The experience that the course belongs to
113
+ #
114
+ # @param id [String] The unique ID representing this experience
115
+ end
116
+ end
117
+
118
+ # @see WhopSDK::Models::CourseStudentRetrieveResponse#user
119
+ class User < WhopSDK::Internal::Type::BaseModel
120
+ # @!attribute id
121
+ # The internal ID of the user.
122
+ #
123
+ # @return [String]
124
+ required :id, String
125
+
126
+ # @!attribute name
127
+ # The name of the user from their Whop account.
128
+ #
129
+ # @return [String, nil]
130
+ required :name, String, nil?: true
131
+
132
+ # @!attribute username
133
+ # The username of the user from their Whop account.
134
+ #
135
+ # @return [String]
136
+ required :username, String
137
+
138
+ # @!method initialize(id:, name:, username:)
139
+ # The user who is enrolled in the course
140
+ #
141
+ # @param id [String] The internal ID of the user.
142
+ #
143
+ # @param name [String, nil] The name of the user from their Whop account.
144
+ #
145
+ # @param username [String] The username of the user from their Whop account.
146
+ end
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,221 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Courses#update
6
+ class CourseUpdateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute certificate_after_completion_enabled
11
+ # Whether the course will award its students a PDF certificate after completing
12
+ # all lessons
13
+ #
14
+ # @return [Boolean, nil]
15
+ optional :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true
16
+
17
+ # @!attribute chapters
18
+ # The chapters and lessons to update
19
+ #
20
+ # @return [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil]
21
+ optional :chapters,
22
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseUpdateParams::Chapter] },
23
+ nil?: true
24
+
25
+ # @!attribute cover_image
26
+ # The cover image URL of the course
27
+ #
28
+ # @return [String, nil]
29
+ optional :cover_image, String, nil?: true
30
+
31
+ # @!attribute description
32
+ # A short description of the course
33
+ #
34
+ # @return [String, nil]
35
+ optional :description, String, nil?: true
36
+
37
+ # @!attribute language
38
+ # The available languages for a course
39
+ #
40
+ # @return [Symbol, WhopSDK::Models::Languages, nil]
41
+ optional :language, enum: -> { WhopSDK::Languages }, nil?: true
42
+
43
+ # @!attribute require_completing_lessons_in_order
44
+ # Whether the course requires students to complete the previous lesson before
45
+ # moving on to the next one
46
+ #
47
+ # @return [Boolean, nil]
48
+ optional :require_completing_lessons_in_order, WhopSDK::Internal::Type::Boolean, nil?: true
49
+
50
+ # @!attribute tagline
51
+ # A short tagline for the course
52
+ #
53
+ # @return [String, nil]
54
+ optional :tagline, String, nil?: true
55
+
56
+ # @!attribute thumbnail
57
+ # The thumbnail for the course in png, jpeg, or gif format
58
+ #
59
+ # @return [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil]
60
+ optional :thumbnail, union: -> { WhopSDK::CourseUpdateParams::Thumbnail }, nil?: true
61
+
62
+ # @!attribute title
63
+ # The title of the course
64
+ #
65
+ # @return [String, nil]
66
+ optional :title, String, nil?: true
67
+
68
+ # @!method initialize(certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, request_options: {})
69
+ # Some parameter documentations has been truncated, see
70
+ # {WhopSDK::Models::CourseUpdateParams} for more details.
71
+ #
72
+ # @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
73
+ #
74
+ # @param chapters [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil] The chapters and lessons to update
75
+ #
76
+ # @param cover_image [String, nil] The cover image URL of the course
77
+ #
78
+ # @param description [String, nil] A short description of the course
79
+ #
80
+ # @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
81
+ #
82
+ # @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
83
+ #
84
+ # @param tagline [String, nil] A short tagline for the course
85
+ #
86
+ # @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
87
+ #
88
+ # @param title [String, nil] The title of the course
89
+ #
90
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
91
+
92
+ class Chapter < WhopSDK::Internal::Type::BaseModel
93
+ # @!attribute id
94
+ # The ID of the chapter to update
95
+ #
96
+ # @return [String]
97
+ required :id, String
98
+
99
+ # @!attribute order
100
+ # The order of the chapter within its course
101
+ #
102
+ # @return [Integer]
103
+ required :order, Integer
104
+
105
+ # @!attribute title
106
+ # The title of the chapter
107
+ #
108
+ # @return [String]
109
+ required :title, String
110
+
111
+ # @!attribute lessons
112
+ # The lessons to update within this chapter
113
+ #
114
+ # @return [Array<WhopSDK::Models::CourseUpdateParams::Chapter::Lesson>, nil]
115
+ optional :lessons,
116
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseUpdateParams::Chapter::Lesson] },
117
+ nil?: true
118
+
119
+ # @!method initialize(id:, order:, title:, lessons: nil)
120
+ # Input for updating a chapter while updating a course
121
+ #
122
+ # @param id [String] The ID of the chapter to update
123
+ #
124
+ # @param order [Integer] The order of the chapter within its course
125
+ #
126
+ # @param title [String] The title of the chapter
127
+ #
128
+ # @param lessons [Array<WhopSDK::Models::CourseUpdateParams::Chapter::Lesson>, nil] The lessons to update within this chapter
129
+
130
+ class Lesson < WhopSDK::Internal::Type::BaseModel
131
+ # @!attribute id
132
+ # The ID of the lesson to update
133
+ #
134
+ # @return [String]
135
+ required :id, String
136
+
137
+ # @!attribute chapter_id
138
+ # The ID of the chapter this lesson belongs to (for moving between chapters)
139
+ #
140
+ # @return [String]
141
+ required :chapter_id, String
142
+
143
+ # @!attribute order
144
+ # The order of the lesson within its chapter
145
+ #
146
+ # @return [Integer]
147
+ required :order, Integer
148
+
149
+ # @!attribute title
150
+ # The title of the lesson
151
+ #
152
+ # @return [String]
153
+ required :title, String
154
+
155
+ # @!method initialize(id:, chapter_id:, order:, title:)
156
+ # Input for updating a lesson while updating a course
157
+ #
158
+ # @param id [String] The ID of the lesson to update
159
+ #
160
+ # @param chapter_id [String] The ID of the chapter this lesson belongs to (for moving between chapters)
161
+ #
162
+ # @param order [Integer] The order of the lesson within its chapter
163
+ #
164
+ # @param title [String] The title of the lesson
165
+ end
166
+ end
167
+
168
+ # The thumbnail for the course in png, jpeg, or gif format
169
+ module Thumbnail
170
+ extend WhopSDK::Internal::Type::Union
171
+
172
+ # Input for an attachment
173
+ variant -> { WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID }
174
+
175
+ # Input for an attachment
176
+ variant -> { WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID }
177
+
178
+ class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
179
+ # @!attribute direct_upload_id
180
+ # This ID should be used the first time you upload an attachment. It is the ID of
181
+ # the direct upload that was created when uploading the file to S3 via the
182
+ # mediaDirectUpload mutation.
183
+ #
184
+ # @return [String]
185
+ required :direct_upload_id, String
186
+
187
+ # @!method initialize(direct_upload_id:)
188
+ # Some parameter documentations has been truncated, see
189
+ # {WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID}
190
+ # for more details.
191
+ #
192
+ # Input for an attachment
193
+ #
194
+ # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
195
+ end
196
+
197
+ class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
198
+ # @!attribute id
199
+ # The ID of an existing attachment object. Use this when updating a resource and
200
+ # keeping a subset of the attachments. Don't use this unless you know what you're
201
+ # doing.
202
+ #
203
+ # @return [String]
204
+ required :id, String
205
+
206
+ # @!method initialize(id:)
207
+ # Some parameter documentations has been truncated, see
208
+ # {WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID} for more
209
+ # details.
210
+ #
211
+ # Input for an attachment
212
+ #
213
+ # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
214
+ end
215
+
216
+ # @!method self.variants
217
+ # @return [Array(WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID)]
218
+ end
219
+ end
220
+ end
221
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Experiences#duplicate
6
+ class ExperienceDuplicateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute name
11
+ # The name of the new experience
12
+ #
13
+ # @return [String, nil]
14
+ optional :name, String, nil?: true
15
+
16
+ # @!method initialize(name: nil, request_options: {})
17
+ # @param name [String, nil] The name of the new experience
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -16,8 +16,8 @@ module WhopSDK
16
16
  # @!attribute logo
17
17
  # The logo for the experience
18
18
  #
19
- # @return [WhopSDK::Models::ExperienceUpdateParams::Logo, nil]
20
- optional :logo, -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
19
+ # @return [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil]
20
+ optional :logo, union: -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
21
21
 
22
22
  # @!attribute name
23
23
  # The name of the experience.
@@ -40,7 +40,7 @@ module WhopSDK
40
40
  # @!method initialize(access_level: nil, logo: nil, name: nil, order: nil, section_id: nil, request_options: {})
41
41
  # @param access_level [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil] The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
42
42
  #
43
- # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
43
+ # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
44
44
  #
45
45
  # @param name [String, nil] The name of the experience.
46
46
  #
@@ -61,32 +61,56 @@ module WhopSDK
61
61
  # @return [Array<Symbol>]
62
62
  end
63
63
 
64
- class Logo < WhopSDK::Internal::Type::BaseModel
65
- # @!attribute id
66
- # The ID of an existing attachment object. Use this when updating a resource and
67
- # keeping a subset of the attachments. Don't use this unless you know what you're
68
- # doing.
69
- #
70
- # @return [String, nil]
71
- optional :id, String, nil?: true
72
-
73
- # @!attribute direct_upload_id
74
- # This ID should be used the first time you upload an attachment. It is the ID of
75
- # the direct upload that was created when uploading the file to S3 via the
76
- # mediaDirectUpload mutation.
77
- #
78
- # @return [String, nil]
79
- optional :direct_upload_id, String, nil?: true
80
-
81
- # @!method initialize(id: nil, direct_upload_id: nil)
82
- # Some parameter documentations has been truncated, see
83
- # {WhopSDK::Models::ExperienceUpdateParams::Logo} for more details.
84
- #
85
- # The logo for the experience
86
- #
87
- # @param id [String, nil] The ID of an existing attachment object. Use this when updating a resource and k
88
- #
89
- # @param direct_upload_id [String, nil] This ID should be used the first time you upload an attachment. It is the ID of
64
+ # The logo for the experience
65
+ module Logo
66
+ extend WhopSDK::Internal::Type::Union
67
+
68
+ # Input for an attachment
69
+ variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID }
70
+
71
+ # Input for an attachment
72
+ variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID }
73
+
74
+ class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
75
+ # @!attribute direct_upload_id
76
+ # This ID should be used the first time you upload an attachment. It is the ID of
77
+ # the direct upload that was created when uploading the file to S3 via the
78
+ # mediaDirectUpload mutation.
79
+ #
80
+ # @return [String]
81
+ required :direct_upload_id, String
82
+
83
+ # @!method initialize(direct_upload_id:)
84
+ # Some parameter documentations has been truncated, see
85
+ # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID}
86
+ # for more details.
87
+ #
88
+ # Input for an attachment
89
+ #
90
+ # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
91
+ end
92
+
93
+ class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
94
+ # @!attribute id
95
+ # The ID of an existing attachment object. Use this when updating a resource and
96
+ # keeping a subset of the attachments. Don't use this unless you know what you're
97
+ # doing.
98
+ #
99
+ # @return [String]
100
+ required :id, String
101
+
102
+ # @!method initialize(id:)
103
+ # Some parameter documentations has been truncated, see
104
+ # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID} for more
105
+ # details.
106
+ #
107
+ # Input for an attachment
108
+ #
109
+ # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
110
+ end
111
+
112
+ # @!method self.variants
113
+ # @return [Array(WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID)]
90
114
  end
91
115
  end
92
116
  end
@@ -21,6 +21,12 @@ module WhopSDK
21
21
  # @return [String, nil]
22
22
  required :content, String, nil?: true
23
23
 
24
+ # @!attribute created_at
25
+ # The timestamp when the post was created
26
+ #
27
+ # @return [Time]
28
+ required :created_at, Time
29
+
24
30
  # @!attribute is_edited
25
31
  # Whether the forum post has been edited
26
32
  #
@@ -57,6 +63,12 @@ module WhopSDK
57
63
  # @return [String, nil]
58
64
  required :title, String, nil?: true
59
65
 
66
+ # @!attribute updated_at
67
+ # The timestamp when the post was last updated
68
+ #
69
+ # @return [Time]
70
+ required :updated_at, Time
71
+
60
72
  # @!attribute user
61
73
  # The user who created this forum post
62
74
  #
@@ -69,7 +81,7 @@ module WhopSDK
69
81
  # @return [Integer, nil]
70
82
  required :view_count, Integer, nil?: true
71
83
 
72
- # @!method initialize(id:, comment_count:, content:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, user:, view_count:)
84
+ # @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
73
85
  # Represents a post in forum
74
86
  #
75
87
  # @param id [String] The unique identifier for the entity
@@ -78,6 +90,8 @@ module WhopSDK
78
90
  #
79
91
  # @param content [String, nil] The content of the forum post in Markdown format
80
92
  #
93
+ # @param created_at [Time] The timestamp when the post was created
94
+ #
81
95
  # @param is_edited [Boolean] Whether the forum post has been edited
82
96
  #
83
97
  # @param is_pinned [Boolean] Whether this forum post is pinned
@@ -90,6 +104,8 @@ module WhopSDK
90
104
  #
91
105
  # @param title [String, nil] The title of the forum post
92
106
  #
107
+ # @param updated_at [Time] The timestamp when the post was last updated
108
+ #
93
109
  # @param user [WhopSDK::Models::ForumPost::User] The user who created this forum post
94
110
  #
95
111
  # @param view_count [Integer, nil] The number of times this message has been viewed