whop_sdk 0.0.24 → 0.0.25

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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  6. data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  9. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  10. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  11. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
  15. data/lib/whop_sdk/models/app_list_params.rb +1 -0
  16. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  17. data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
  18. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
  19. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
  20. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  21. data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
  22. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  23. data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
  24. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  25. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  26. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  27. data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
  28. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  29. data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
  30. data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
  31. data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
  32. data/lib/whop_sdk/models/message_create_params.rb +9 -1
  33. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  34. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  35. data/lib/whop_sdk/models/payment_method_types.rb +1 -0
  36. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  37. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  38. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  39. data/lib/whop_sdk/models.rb +30 -0
  40. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  41. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  42. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  43. data/lib/whop_sdk/resources/messages.rb +27 -1
  44. data/lib/whop_sdk/resources/reactions.rb +34 -1
  45. data/lib/whop_sdk/version.rb +1 -1
  46. data/lib/whop_sdk.rb +33 -0
  47. data/rbi/whop_sdk/client.rbi +9 -0
  48. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  49. data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
  50. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  51. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  52. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  53. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  54. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  55. data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
  56. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  57. data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
  58. data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
  59. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  60. data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
  61. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
  62. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
  63. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  64. data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -0
  65. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  66. data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
  67. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  68. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  69. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  70. data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
  71. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  72. data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
  73. data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
  74. data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
  75. data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
  76. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  77. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  78. data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
  79. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  80. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  81. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  82. data/rbi/whop_sdk/models.rbi +33 -0
  83. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  84. data/rbi/whop_sdk/resources/company_token_transactions.rbi +114 -0
  85. data/rbi/whop_sdk/resources/dm_members.rbi +128 -0
  86. data/rbi/whop_sdk/resources/messages.rbi +21 -0
  87. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  88. data/sig/whop_sdk/client.rbs +6 -0
  89. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  90. data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
  91. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  92. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  93. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  94. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  95. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  96. data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
  97. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  98. data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -0
  99. data/sig/whop_sdk/models/app_list_params.rbs +3 -1
  100. data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
  101. data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
  102. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
  103. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
  104. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  105. data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -0
  106. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  107. data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
  108. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  109. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  110. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  111. data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
  112. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  113. data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
  114. data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
  115. data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
  116. data/sig/whop_sdk/models/message_create_params.rbs +6 -1
  117. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  118. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  119. data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
  120. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  121. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  122. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  123. data/sig/whop_sdk/models.rbs +30 -0
  124. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  125. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  126. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  127. data/sig/whop_sdk/resources/messages.rbs +3 -0
  128. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  129. metadata +101 -2
@@ -0,0 +1,65 @@
1
+ module WhopSDK
2
+ module Models
3
+ type ai_chat_update_response =
4
+ {
5
+ id: String,
6
+ blended_token_usage: String,
7
+ created_at: Time,
8
+ last_message_at: Time?,
9
+ message_count: Integer,
10
+ title: String?,
11
+ updated_at: Time,
12
+ user: WhopSDK::Models::AIChatUpdateResponse::User
13
+ }
14
+
15
+ class AIChatUpdateResponse < WhopSDK::Internal::Type::BaseModel
16
+ attr_accessor id: String
17
+
18
+ attr_accessor blended_token_usage: String
19
+
20
+ attr_accessor created_at: Time
21
+
22
+ attr_accessor last_message_at: Time?
23
+
24
+ attr_accessor message_count: Integer
25
+
26
+ attr_accessor title: String?
27
+
28
+ attr_accessor updated_at: Time
29
+
30
+ attr_accessor user: WhopSDK::Models::AIChatUpdateResponse::User
31
+
32
+ def initialize: (
33
+ id: String,
34
+ blended_token_usage: String,
35
+ created_at: Time,
36
+ last_message_at: Time?,
37
+ message_count: Integer,
38
+ title: String?,
39
+ updated_at: Time,
40
+ user: WhopSDK::Models::AIChatUpdateResponse::User
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ id: String,
45
+ blended_token_usage: String,
46
+ created_at: Time,
47
+ last_message_at: Time?,
48
+ message_count: Integer,
49
+ title: String?,
50
+ updated_at: Time,
51
+ user: WhopSDK::Models::AIChatUpdateResponse::User
52
+ }
53
+
54
+ type user = { id: String }
55
+
56
+ class User < WhopSDK::Internal::Type::BaseModel
57
+ attr_accessor id: String
58
+
59
+ def initialize: (id: String) -> void
60
+
61
+ def to_hash: -> { id: String }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -73,7 +73,8 @@ module WhopSDK
73
73
  }
74
74
 
75
75
  type order =
76
- :discoverable_at
76
+ :created_at
77
+ | :discoverable_at
77
78
  | :total_installs_last_30_days
78
79
  | :total_installs_last_7_days
79
80
  | :time_spent
@@ -88,6 +89,7 @@ module WhopSDK
88
89
  module Order
89
90
  extend WhopSDK::Internal::Type::Enum
90
91
 
92
+ CREATED_AT: :created_at
91
93
  DISCOVERABLE_AT: :discoverable_at
92
94
  TOTAL_INSTALLS_LAST_30_DAYS: :total_installs_last_30_days
93
95
  TOTAL_INSTALLS_LAST_7_DAYS: :total_installs_last_7_days
@@ -0,0 +1,56 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_create_params =
4
+ {
5
+ amount: Float,
6
+ company_id: String,
7
+ destination_user_id: String,
8
+ transaction_type: :subtract,
9
+ user_id: String,
10
+ description: String?,
11
+ idempotency_key: String?
12
+ }
13
+ & WhopSDK::Internal::Type::request_parameters
14
+
15
+ class CompanyTokenTransactionCreateParams < WhopSDK::Internal::Type::BaseModel
16
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
17
+ include WhopSDK::Internal::Type::RequestParameters
18
+
19
+ attr_accessor amount: Float
20
+
21
+ attr_accessor company_id: String
22
+
23
+ attr_accessor destination_user_id: String
24
+
25
+ attr_accessor transaction_type: :subtract
26
+
27
+ attr_accessor user_id: String
28
+
29
+ attr_accessor description: String?
30
+
31
+ attr_accessor idempotency_key: String?
32
+
33
+ def initialize: (
34
+ amount: Float,
35
+ company_id: String,
36
+ destination_user_id: String,
37
+ user_id: String,
38
+ ?description: String?,
39
+ ?idempotency_key: String?,
40
+ ?transaction_type: :subtract,
41
+ ?request_options: WhopSDK::request_opts
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ amount: Float,
46
+ company_id: String,
47
+ destination_user_id: String,
48
+ transaction_type: :subtract,
49
+ user_id: String,
50
+ description: String?,
51
+ idempotency_key: String?,
52
+ request_options: WhopSDK::RequestOptions
53
+ }
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,115 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_create_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
8
+ created_at: Time,
9
+ description: String?,
10
+ idempotency_key: String?,
11
+ linked_transaction_id: String?,
12
+ member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
13
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
14
+ user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
15
+ }
16
+
17
+ class CompanyTokenTransactionCreateResponse < WhopSDK::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor amount: Float
21
+
22
+ attr_accessor company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company
23
+
24
+ attr_accessor created_at: Time
25
+
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor idempotency_key: String?
29
+
30
+ attr_accessor linked_transaction_id: String?
31
+
32
+ attr_accessor member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member
33
+
34
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type
35
+
36
+ attr_accessor user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
37
+
38
+ def initialize: (
39
+ id: String,
40
+ amount: Float,
41
+ company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
42
+ created_at: Time,
43
+ description: String?,
44
+ idempotency_key: String?,
45
+ linked_transaction_id: String?,
46
+ member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
47
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
48
+ user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ id: String,
53
+ amount: Float,
54
+ company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
55
+ created_at: Time,
56
+ description: String?,
57
+ idempotency_key: String?,
58
+ linked_transaction_id: String?,
59
+ member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
60
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
61
+ user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
62
+ }
63
+
64
+ type company = { id: String, route: String, title: String }
65
+
66
+ class Company < WhopSDK::Internal::Type::BaseModel
67
+ attr_accessor id: String
68
+
69
+ attr_accessor route: String
70
+
71
+ attr_accessor title: String
72
+
73
+ def initialize: (id: String, route: String, title: String) -> void
74
+
75
+ def to_hash: -> { id: String, route: String, title: String }
76
+ end
77
+
78
+ type member = { id: String }
79
+
80
+ class Member < WhopSDK::Internal::Type::BaseModel
81
+ attr_accessor id: String
82
+
83
+ def initialize: (id: String) -> void
84
+
85
+ def to_hash: -> { id: String }
86
+ end
87
+
88
+ type transaction_type = :add | :subtract | :transfer
89
+
90
+ module TransactionType
91
+ extend WhopSDK::Internal::Type::Enum
92
+
93
+ ADD: :add
94
+ SUBTRACT: :subtract
95
+ TRANSFER: :transfer
96
+
97
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type]
98
+ end
99
+
100
+ type user = { id: String, name: String?, username: String }
101
+
102
+ class User < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
104
+
105
+ attr_accessor name: String?
106
+
107
+ attr_accessor username: String
108
+
109
+ def initialize: (id: String, name: String?, username: String) -> void
110
+
111
+ def to_hash: -> { id: String, name: String?, username: String }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,68 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_list_params =
4
+ {
5
+ company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ first: Integer?,
9
+ last: Integer?,
10
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
11
+ user_id: String?
12
+ }
13
+ & WhopSDK::Internal::Type::request_parameters
14
+
15
+ class CompanyTokenTransactionListParams < WhopSDK::Internal::Type::BaseModel
16
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
17
+ include WhopSDK::Internal::Type::RequestParameters
18
+
19
+ attr_accessor company_id: String
20
+
21
+ attr_accessor after: String?
22
+
23
+ attr_accessor before: String?
24
+
25
+ attr_accessor first: Integer?
26
+
27
+ attr_accessor last: Integer?
28
+
29
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?
30
+
31
+ attr_accessor user_id: String?
32
+
33
+ def initialize: (
34
+ company_id: String,
35
+ ?after: String?,
36
+ ?before: String?,
37
+ ?first: Integer?,
38
+ ?last: Integer?,
39
+ ?transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
40
+ ?user_id: String?,
41
+ ?request_options: WhopSDK::request_opts
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ company_id: String,
46
+ after: String?,
47
+ before: String?,
48
+ first: Integer?,
49
+ last: Integer?,
50
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
51
+ user_id: String?,
52
+ request_options: WhopSDK::RequestOptions
53
+ }
54
+
55
+ type transaction_type = :add | :subtract | :transfer
56
+
57
+ module TransactionType
58
+ extend WhopSDK::Internal::Type::Enum
59
+
60
+ ADD: :add
61
+ SUBTRACT: :subtract
62
+ TRANSFER: :transfer
63
+
64
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,115 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_list_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
8
+ created_at: Time,
9
+ description: String?,
10
+ idempotency_key: String?,
11
+ linked_transaction_id: String?,
12
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
13
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
14
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
15
+ }
16
+
17
+ class CompanyTokenTransactionListResponse < WhopSDK::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor amount: Float
21
+
22
+ attr_accessor company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company
23
+
24
+ attr_accessor created_at: Time
25
+
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor idempotency_key: String?
29
+
30
+ attr_accessor linked_transaction_id: String?
31
+
32
+ attr_accessor member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member
33
+
34
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type
35
+
36
+ attr_accessor user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
37
+
38
+ def initialize: (
39
+ id: String,
40
+ amount: Float,
41
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
42
+ created_at: Time,
43
+ description: String?,
44
+ idempotency_key: String?,
45
+ linked_transaction_id: String?,
46
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
47
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
48
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ id: String,
53
+ amount: Float,
54
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
55
+ created_at: Time,
56
+ description: String?,
57
+ idempotency_key: String?,
58
+ linked_transaction_id: String?,
59
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
60
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
61
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
62
+ }
63
+
64
+ type company = { id: String, route: String, title: String }
65
+
66
+ class Company < WhopSDK::Internal::Type::BaseModel
67
+ attr_accessor id: String
68
+
69
+ attr_accessor route: String
70
+
71
+ attr_accessor title: String
72
+
73
+ def initialize: (id: String, route: String, title: String) -> void
74
+
75
+ def to_hash: -> { id: String, route: String, title: String }
76
+ end
77
+
78
+ type member = { id: String }
79
+
80
+ class Member < WhopSDK::Internal::Type::BaseModel
81
+ attr_accessor id: String
82
+
83
+ def initialize: (id: String) -> void
84
+
85
+ def to_hash: -> { id: String }
86
+ end
87
+
88
+ type transaction_type = :add | :subtract | :transfer
89
+
90
+ module TransactionType
91
+ extend WhopSDK::Internal::Type::Enum
92
+
93
+ ADD: :add
94
+ SUBTRACT: :subtract
95
+ TRANSFER: :transfer
96
+
97
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type]
98
+ end
99
+
100
+ type user = { id: String, name: String?, username: String }
101
+
102
+ class User < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
104
+
105
+ attr_accessor name: String?
106
+
107
+ attr_accessor username: String
108
+
109
+ def initialize: (id: String, name: String?, username: String) -> void
110
+
111
+ def to_hash: -> { id: String, name: String?, username: String }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_retrieve_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class CompanyTokenTransactionRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,115 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_retrieve_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
8
+ created_at: Time,
9
+ description: String?,
10
+ idempotency_key: String?,
11
+ linked_transaction_id: String?,
12
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
13
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
14
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
15
+ }
16
+
17
+ class CompanyTokenTransactionRetrieveResponse < WhopSDK::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor amount: Float
21
+
22
+ attr_accessor company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company
23
+
24
+ attr_accessor created_at: Time
25
+
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor idempotency_key: String?
29
+
30
+ attr_accessor linked_transaction_id: String?
31
+
32
+ attr_accessor member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member
33
+
34
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type
35
+
36
+ attr_accessor user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
37
+
38
+ def initialize: (
39
+ id: String,
40
+ amount: Float,
41
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
42
+ created_at: Time,
43
+ description: String?,
44
+ idempotency_key: String?,
45
+ linked_transaction_id: String?,
46
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
47
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
48
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ id: String,
53
+ amount: Float,
54
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
55
+ created_at: Time,
56
+ description: String?,
57
+ idempotency_key: String?,
58
+ linked_transaction_id: String?,
59
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
60
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
61
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
62
+ }
63
+
64
+ type company = { id: String, route: String, title: String }
65
+
66
+ class Company < WhopSDK::Internal::Type::BaseModel
67
+ attr_accessor id: String
68
+
69
+ attr_accessor route: String
70
+
71
+ attr_accessor title: String
72
+
73
+ def initialize: (id: String, route: String, title: String) -> void
74
+
75
+ def to_hash: -> { id: String, route: String, title: String }
76
+ end
77
+
78
+ type member = { id: String }
79
+
80
+ class Member < WhopSDK::Internal::Type::BaseModel
81
+ attr_accessor id: String
82
+
83
+ def initialize: (id: String) -> void
84
+
85
+ def to_hash: -> { id: String }
86
+ end
87
+
88
+ type transaction_type = :add | :subtract | :transfer
89
+
90
+ module TransactionType
91
+ extend WhopSDK::Internal::Type::Enum
92
+
93
+ ADD: :add
94
+ SUBTRACT: :subtract
95
+ TRANSFER: :transfer
96
+
97
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type]
98
+ end
99
+
100
+ type user = { id: String, name: String?, username: String }
101
+
102
+ class User < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
104
+
105
+ attr_accessor name: String?
106
+
107
+ attr_accessor username: String
108
+
109
+ def initialize: (id: String, name: String?, username: String) -> void
110
+
111
+ def to_hash: -> { id: String, name: String?, username: String }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,28 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dm_member_create_params =
4
+ { channel_id: String, user_id: String }
5
+ & WhopSDK::Internal::Type::request_parameters
6
+
7
+ class DmMemberCreateParams < WhopSDK::Internal::Type::BaseModel
8
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
9
+ include WhopSDK::Internal::Type::RequestParameters
10
+
11
+ attr_accessor channel_id: String
12
+
13
+ attr_accessor user_id: String
14
+
15
+ def initialize: (
16
+ channel_id: String,
17
+ user_id: String,
18
+ ?request_options: WhopSDK::request_opts
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ channel_id: String,
23
+ user_id: String,
24
+ request_options: WhopSDK::RequestOptions
25
+ }
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,71 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dm_member_create_response =
4
+ {
5
+ id: String,
6
+ channel_id: String,
7
+ last_viewed_at: String?,
8
+ notification_preference: WhopSDK::Models::DmMemberCreateResponse::notification_preference,
9
+ status: WhopSDK::Models::DmMemberCreateResponse::status,
10
+ user_id: String
11
+ }
12
+
13
+ class DmMemberCreateResponse < WhopSDK::Internal::Type::BaseModel
14
+ attr_accessor id: String
15
+
16
+ attr_accessor channel_id: String
17
+
18
+ attr_accessor last_viewed_at: String?
19
+
20
+ attr_accessor notification_preference: WhopSDK::Models::DmMemberCreateResponse::notification_preference
21
+
22
+ attr_accessor status: WhopSDK::Models::DmMemberCreateResponse::status
23
+
24
+ attr_accessor user_id: String
25
+
26
+ def initialize: (
27
+ id: String,
28
+ channel_id: String,
29
+ last_viewed_at: String?,
30
+ notification_preference: WhopSDK::Models::DmMemberCreateResponse::notification_preference,
31
+ status: WhopSDK::Models::DmMemberCreateResponse::status,
32
+ user_id: String
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ id: String,
37
+ channel_id: String,
38
+ last_viewed_at: String?,
39
+ notification_preference: WhopSDK::Models::DmMemberCreateResponse::notification_preference,
40
+ status: WhopSDK::Models::DmMemberCreateResponse::status,
41
+ user_id: String
42
+ }
43
+
44
+ type notification_preference = :all | :mentions | :none
45
+
46
+ module NotificationPreference
47
+ extend WhopSDK::Internal::Type::Enum
48
+
49
+ ALL: :all
50
+ MENTIONS: :mentions
51
+ NONE: :none
52
+
53
+ def self?.values: -> ::Array[WhopSDK::Models::DmMemberCreateResponse::notification_preference]
54
+ end
55
+
56
+ type status = :requested | :accepted | :hidden | :closed | :archived
57
+
58
+ module Status
59
+ extend WhopSDK::Internal::Type::Enum
60
+
61
+ REQUESTED: :requested
62
+ ACCEPTED: :accepted
63
+ HIDDEN: :hidden
64
+ CLOSED: :closed
65
+ ARCHIVED: :archived
66
+
67
+ def self?.values: -> ::Array[WhopSDK::Models::DmMemberCreateResponse::status]
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type dm_member_delete_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class DmMemberDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,5 @@
1
+ module WhopSDK
2
+ module Models
3
+ DmMemberDeleteResponse: WhopSDK::Internal::Type::Converter
4
+ end
5
+ end