@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 (125) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +13 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +13 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +9 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +9 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/ai-chats.d.mts +265 -0
  13. package/resources/ai-chats.d.mts.map +1 -0
  14. package/resources/ai-chats.d.ts +265 -0
  15. package/resources/ai-chats.d.ts.map +1 -0
  16. package/resources/ai-chats.js +53 -0
  17. package/resources/ai-chats.js.map +1 -0
  18. package/resources/ai-chats.mjs +49 -0
  19. package/resources/ai-chats.mjs.map +1 -0
  20. package/resources/apps.d.mts +1 -1
  21. package/resources/apps.d.mts.map +1 -1
  22. package/resources/apps.d.ts +1 -1
  23. package/resources/apps.d.ts.map +1 -1
  24. package/resources/checkout-configurations.d.mts +12 -0
  25. package/resources/checkout-configurations.d.mts.map +1 -1
  26. package/resources/checkout-configurations.d.ts +12 -0
  27. package/resources/checkout-configurations.d.ts.map +1 -1
  28. package/resources/company-token-transactions.d.mts +425 -0
  29. package/resources/company-token-transactions.d.mts.map +1 -0
  30. package/resources/company-token-transactions.d.ts +425 -0
  31. package/resources/company-token-transactions.d.ts.map +1 -0
  32. package/resources/company-token-transactions.js +59 -0
  33. package/resources/company-token-transactions.js.map +1 -0
  34. package/resources/company-token-transactions.mjs +55 -0
  35. package/resources/company-token-transactions.mjs.map +1 -0
  36. package/resources/dm-members.d.mts +242 -0
  37. package/resources/dm-members.d.mts.map +1 -0
  38. package/resources/dm-members.d.ts +242 -0
  39. package/resources/dm-members.d.ts.map +1 -0
  40. package/resources/dm-members.js +94 -0
  41. package/resources/dm-members.js.map +1 -0
  42. package/resources/dm-members.mjs +90 -0
  43. package/resources/dm-members.mjs.map +1 -0
  44. package/resources/index.d.mts +5 -2
  45. package/resources/index.d.mts.map +1 -1
  46. package/resources/index.d.ts +5 -2
  47. package/resources/index.d.ts.map +1 -1
  48. package/resources/index.js +7 -1
  49. package/resources/index.js.map +1 -1
  50. package/resources/index.mjs +3 -0
  51. package/resources/index.mjs.map +1 -1
  52. package/resources/members.d.mts +8 -0
  53. package/resources/members.d.mts.map +1 -1
  54. package/resources/members.d.ts +8 -0
  55. package/resources/members.d.ts.map +1 -1
  56. package/resources/memberships.d.mts +25 -0
  57. package/resources/memberships.d.mts.map +1 -1
  58. package/resources/memberships.d.ts +25 -0
  59. package/resources/memberships.d.ts.map +1 -1
  60. package/resources/memberships.js +18 -0
  61. package/resources/memberships.js.map +1 -1
  62. package/resources/memberships.mjs +18 -0
  63. package/resources/memberships.mjs.map +1 -1
  64. package/resources/messages.d.mts +17 -1
  65. package/resources/messages.d.mts.map +1 -1
  66. package/resources/messages.d.ts +17 -1
  67. package/resources/messages.d.ts.map +1 -1
  68. package/resources/messages.js +10 -0
  69. package/resources/messages.js.map +1 -1
  70. package/resources/messages.mjs +10 -0
  71. package/resources/messages.mjs.map +1 -1
  72. package/resources/payments.d.mts +9 -1
  73. package/resources/payments.d.mts.map +1 -1
  74. package/resources/payments.d.ts +9 -1
  75. package/resources/payments.d.ts.map +1 -1
  76. package/resources/payout-methods.d.mts +18 -0
  77. package/resources/payout-methods.d.mts.map +1 -1
  78. package/resources/payout-methods.d.ts +18 -0
  79. package/resources/payout-methods.d.ts.map +1 -1
  80. package/resources/reactions.d.mts +24 -1
  81. package/resources/reactions.d.mts.map +1 -1
  82. package/resources/reactions.d.ts +24 -1
  83. package/resources/reactions.d.ts.map +1 -1
  84. package/resources/reactions.js +11 -0
  85. package/resources/reactions.js.map +1 -1
  86. package/resources/reactions.mjs +11 -0
  87. package/resources/reactions.mjs.map +1 -1
  88. package/resources/refunds.d.mts +1 -1
  89. package/resources/refunds.d.mts.map +1 -1
  90. package/resources/refunds.d.ts +1 -1
  91. package/resources/refunds.d.ts.map +1 -1
  92. package/resources/shared.d.mts +39 -1
  93. package/resources/shared.d.mts.map +1 -1
  94. package/resources/shared.d.ts +39 -1
  95. package/resources/shared.d.ts.map +1 -1
  96. package/resources/webhooks.d.mts +9 -0
  97. package/resources/webhooks.d.mts.map +1 -1
  98. package/resources/webhooks.d.ts +9 -0
  99. package/resources/webhooks.d.ts.map +1 -1
  100. package/resources/withdrawals.d.mts +4 -0
  101. package/resources/withdrawals.d.mts.map +1 -1
  102. package/resources/withdrawals.d.ts +4 -0
  103. package/resources/withdrawals.d.ts.map +1 -1
  104. package/src/client.ts +81 -0
  105. package/src/resources/ai-chats.ts +346 -0
  106. package/src/resources/apps.ts +6 -0
  107. package/src/resources/checkout-configurations.ts +15 -0
  108. package/src/resources/company-token-transactions.ts +535 -0
  109. package/src/resources/dm-members.ts +310 -0
  110. package/src/resources/index.ts +36 -0
  111. package/src/resources/members.ts +10 -0
  112. package/src/resources/memberships.ts +38 -0
  113. package/src/resources/messages.ts +22 -0
  114. package/src/resources/payments.ts +69 -57
  115. package/src/resources/payout-methods.ts +22 -0
  116. package/src/resources/reactions.ts +36 -0
  117. package/src/resources/refunds.ts +2 -1
  118. package/src/resources/shared.ts +77 -11
  119. package/src/resources/webhooks.ts +11 -0
  120. package/src/resources/withdrawals.ts +5 -0
  121. package/src/version.ts +1 -1
  122. package/version.d.mts +1 -1
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/version.mjs +1 -1
@@ -0,0 +1,310 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class DmMembers extends APIResource {
10
+ /**
11
+ * Adds a user to a DM channel
12
+ *
13
+ * Required permissions:
14
+ *
15
+ * - `dms:channel:manage`
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const dmMember = await client.dmMembers.create({
20
+ * channel_id: 'channel_id',
21
+ * user_id: 'user_xxxxxxxxxxxxx',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: DmMemberCreateParams, options?: RequestOptions): APIPromise<DmMemberCreateResponse> {
26
+ return this._client.post('/dm_members', { body, ...options });
27
+ }
28
+
29
+ /**
30
+ * Retrieves a DM channel member
31
+ *
32
+ * Required permissions:
33
+ *
34
+ * - `dms:read`
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const dmMember = await client.dmMembers.retrieve('id');
39
+ * ```
40
+ */
41
+ retrieve(id: string, options?: RequestOptions): APIPromise<DmMemberRetrieveResponse> {
42
+ return this._client.get(path`/dm_members/${id}`, options);
43
+ }
44
+
45
+ /**
46
+ * Updates a DM channel member's settings
47
+ *
48
+ * Required permissions:
49
+ *
50
+ * - `dms:channel:manage`
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const dmMember = await client.dmMembers.update('id');
55
+ * ```
56
+ */
57
+ update(
58
+ id: string,
59
+ body: DmMemberUpdateParams | null | undefined = {},
60
+ options?: RequestOptions,
61
+ ): APIPromise<DmMemberUpdateResponse> {
62
+ return this._client.patch(path`/dm_members/${id}`, { body, ...options });
63
+ }
64
+
65
+ /**
66
+ * Lists members of a DM channel
67
+ *
68
+ * Required permissions:
69
+ *
70
+ * - `dms:read`
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * // Automatically fetches more pages as needed.
75
+ * for await (const dmMemberListResponse of client.dmMembers.list(
76
+ * { channel_id: 'channel_id' },
77
+ * )) {
78
+ * // ...
79
+ * }
80
+ * ```
81
+ */
82
+ list(
83
+ query: DmMemberListParams,
84
+ options?: RequestOptions,
85
+ ): PagePromise<DmMemberListResponsesCursorPage, DmMemberListResponse> {
86
+ return this._client.getAPIList('/dm_members', CursorPage<DmMemberListResponse>, { query, ...options });
87
+ }
88
+
89
+ /**
90
+ * Removes a user from a DM channel
91
+ *
92
+ * Required permissions:
93
+ *
94
+ * - `dms:channel:manage`
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const dmMember = await client.dmMembers.delete('id');
99
+ * ```
100
+ */
101
+ delete(id: string, options?: RequestOptions): APIPromise<DmMemberDeleteResponse> {
102
+ return this._client.delete(path`/dm_members/${id}`, options);
103
+ }
104
+ }
105
+
106
+ export type DmMemberListResponsesCursorPage = CursorPage<DmMemberListResponse>;
107
+
108
+ /**
109
+ * Represents a member of a DM channel
110
+ */
111
+ export interface DmMemberCreateResponse {
112
+ /**
113
+ * The unique identifier for the entity
114
+ */
115
+ id: string;
116
+
117
+ /**
118
+ * The ID of the DM channel
119
+ */
120
+ channel_id: string;
121
+
122
+ /**
123
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
124
+ * epoch)
125
+ */
126
+ last_viewed_at: string | null;
127
+
128
+ /**
129
+ * The notification preference for this member (all, mentions, none)
130
+ */
131
+ notification_preference: 'all' | 'mentions' | 'none';
132
+
133
+ /**
134
+ * The status of the membership (requested, accepted, rejected)
135
+ */
136
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
137
+
138
+ /**
139
+ * The ID of the user who is a member of the channel
140
+ */
141
+ user_id: string;
142
+ }
143
+
144
+ /**
145
+ * Represents a member of a DM channel
146
+ */
147
+ export interface DmMemberRetrieveResponse {
148
+ /**
149
+ * The unique identifier for the entity
150
+ */
151
+ id: string;
152
+
153
+ /**
154
+ * The ID of the DM channel
155
+ */
156
+ channel_id: string;
157
+
158
+ /**
159
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
160
+ * epoch)
161
+ */
162
+ last_viewed_at: string | null;
163
+
164
+ /**
165
+ * The notification preference for this member (all, mentions, none)
166
+ */
167
+ notification_preference: 'all' | 'mentions' | 'none';
168
+
169
+ /**
170
+ * The status of the membership (requested, accepted, rejected)
171
+ */
172
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
173
+
174
+ /**
175
+ * The ID of the user who is a member of the channel
176
+ */
177
+ user_id: string;
178
+ }
179
+
180
+ /**
181
+ * Represents a member of a DM channel
182
+ */
183
+ export interface DmMemberUpdateResponse {
184
+ /**
185
+ * The unique identifier for the entity
186
+ */
187
+ id: string;
188
+
189
+ /**
190
+ * The ID of the DM channel
191
+ */
192
+ channel_id: string;
193
+
194
+ /**
195
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
196
+ * epoch)
197
+ */
198
+ last_viewed_at: string | null;
199
+
200
+ /**
201
+ * The notification preference for this member (all, mentions, none)
202
+ */
203
+ notification_preference: 'all' | 'mentions' | 'none';
204
+
205
+ /**
206
+ * The status of the membership (requested, accepted, rejected)
207
+ */
208
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
209
+
210
+ /**
211
+ * The ID of the user who is a member of the channel
212
+ */
213
+ user_id: string;
214
+ }
215
+
216
+ /**
217
+ * Represents a member of a DM channel
218
+ */
219
+ export interface DmMemberListResponse {
220
+ /**
221
+ * The unique identifier for the entity
222
+ */
223
+ id: string;
224
+
225
+ /**
226
+ * The ID of the DM channel
227
+ */
228
+ channel_id: string;
229
+
230
+ /**
231
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
232
+ * epoch)
233
+ */
234
+ last_viewed_at: string | null;
235
+
236
+ /**
237
+ * The status of the membership (requested, accepted, rejected)
238
+ */
239
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
240
+
241
+ /**
242
+ * The ID of the user who is a member of the channel
243
+ */
244
+ user_id: string;
245
+ }
246
+
247
+ /**
248
+ * Represents `true` or `false` values.
249
+ */
250
+ export type DmMemberDeleteResponse = boolean;
251
+
252
+ export interface DmMemberCreateParams {
253
+ /**
254
+ * The ID of the DM channel to add the member to
255
+ */
256
+ channel_id: string;
257
+
258
+ /**
259
+ * The ID of the user to add to the channel
260
+ */
261
+ user_id: string;
262
+ }
263
+
264
+ export interface DmMemberUpdateParams {
265
+ /**
266
+ * The notification preferences for a DMs feed member
267
+ */
268
+ notification_preference?: 'all' | 'mentions' | 'none' | null;
269
+
270
+ /**
271
+ * The statuses of a DMs feed member
272
+ */
273
+ status?: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived' | null;
274
+ }
275
+
276
+ export interface DmMemberListParams extends CursorPageParams {
277
+ /**
278
+ * The ID of the DM channel to list members for
279
+ */
280
+ channel_id: string;
281
+
282
+ /**
283
+ * Returns the elements in the list that come before the specified cursor.
284
+ */
285
+ before?: string | null;
286
+
287
+ /**
288
+ * Returns the first _n_ elements from the list.
289
+ */
290
+ first?: number | null;
291
+
292
+ /**
293
+ * Returns the last _n_ elements from the list.
294
+ */
295
+ last?: number | null;
296
+ }
297
+
298
+ export declare namespace DmMembers {
299
+ export {
300
+ type DmMemberCreateResponse as DmMemberCreateResponse,
301
+ type DmMemberRetrieveResponse as DmMemberRetrieveResponse,
302
+ type DmMemberUpdateResponse as DmMemberUpdateResponse,
303
+ type DmMemberListResponse as DmMemberListResponse,
304
+ type DmMemberDeleteResponse as DmMemberDeleteResponse,
305
+ type DmMemberListResponsesCursorPage as DmMemberListResponsesCursorPage,
306
+ type DmMemberCreateParams as DmMemberCreateParams,
307
+ type DmMemberUpdateParams as DmMemberUpdateParams,
308
+ type DmMemberListParams as DmMemberListParams,
309
+ };
310
+ }
@@ -1,6 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export * from './shared';
4
+ export {
5
+ AIChats,
6
+ type AIChatCreateResponse,
7
+ type AIChatRetrieveResponse,
8
+ type AIChatUpdateResponse,
9
+ type AIChatListResponse,
10
+ type AIChatDeleteResponse,
11
+ type AIChatCreateParams,
12
+ type AIChatUpdateParams,
13
+ type AIChatListParams,
14
+ type AIChatListResponsesCursorPage,
15
+ } from './ai-chats';
4
16
  export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from './access-tokens';
5
17
  export { AccountLinks, type AccountLinkCreateResponse, type AccountLinkCreateParams } from './account-links';
6
18
  export {
@@ -49,6 +61,15 @@ export {
49
61
  type CompanyListParams,
50
62
  type CompanyListResponsesCursorPage,
51
63
  } from './companies';
64
+ export {
65
+ CompanyTokenTransactions,
66
+ type CompanyTokenTransactionCreateResponse,
67
+ type CompanyTokenTransactionRetrieveResponse,
68
+ type CompanyTokenTransactionListResponse,
69
+ type CompanyTokenTransactionCreateParams,
70
+ type CompanyTokenTransactionListParams,
71
+ type CompanyTokenTransactionListResponsesCursorPage,
72
+ } from './company-token-transactions';
52
73
  export {
53
74
  CourseChapters,
54
75
  type CourseChapter,
@@ -109,6 +130,18 @@ export {
109
130
  type DisputeUpdateEvidenceParams,
110
131
  type DisputeListResponsesCursorPage,
111
132
  } from './disputes';
133
+ export {
134
+ DmMembers,
135
+ type DmMemberCreateResponse,
136
+ type DmMemberRetrieveResponse,
137
+ type DmMemberUpdateResponse,
138
+ type DmMemberListResponse,
139
+ type DmMemberDeleteResponse,
140
+ type DmMemberCreateParams,
141
+ type DmMemberUpdateParams,
142
+ type DmMemberListParams,
143
+ type DmMemberListResponsesCursorPage,
144
+ } from './dm-members';
112
145
  export {
113
146
  Entries,
114
147
  type EntryListResponse,
@@ -192,6 +225,7 @@ export {
192
225
  export {
193
226
  Messages,
194
227
  type MessageListResponse,
228
+ type MessageDeleteResponse,
195
229
  type MessageCreateParams,
196
230
  type MessageUpdateParams,
197
231
  type MessageListParams,
@@ -261,8 +295,10 @@ export {
261
295
  export {
262
296
  Reactions,
263
297
  type ReactionListResponse,
298
+ type ReactionDeleteResponse,
264
299
  type ReactionCreateParams,
265
300
  type ReactionListParams,
301
+ type ReactionDeleteParams,
266
302
  type ReactionListResponsesCursorPage,
267
303
  } from './reactions';
268
304
  export {
@@ -64,6 +64,11 @@ export interface MemberRetrieveResponse {
64
64
  */
65
65
  company: MemberRetrieveResponse.Company;
66
66
 
67
+ /**
68
+ * The member's token balance for this company
69
+ */
70
+ company_token_balance: number;
71
+
67
72
  /**
68
73
  * When the member was created
69
74
  */
@@ -176,6 +181,11 @@ export interface MemberListResponse {
176
181
  */
177
182
  access_level: Shared.AccessLevel;
178
183
 
184
+ /**
185
+ * The member's token balance for this company
186
+ */
187
+ company_token_balance: number;
188
+
179
189
  /**
180
190
  * When the member was created
181
191
  */
@@ -14,6 +14,7 @@ export class Memberships extends APIResource {
14
14
  * Required permissions:
15
15
  *
16
16
  * - `member:basic:read`
17
+ * - `member:email:read`
17
18
  */
18
19
  retrieve(id: string, options?: RequestOptions): APIPromise<Shared.Membership> {
19
20
  return this._client.get(path`/memberships/${id}`, options);
@@ -25,6 +26,7 @@ export class Memberships extends APIResource {
25
26
  * Required permissions:
26
27
  *
27
28
  * - `member:manage`
29
+ * - `member:email:read`
28
30
  * - `member:basic:read`
29
31
  */
30
32
  update(
@@ -41,6 +43,7 @@ export class Memberships extends APIResource {
41
43
  * Required permissions:
42
44
  *
43
45
  * - `member:basic:read`
46
+ * - `member:email:read`
44
47
  */
45
48
  list(
46
49
  query: MembershipListParams | null | undefined = {},
@@ -56,6 +59,7 @@ export class Memberships extends APIResource {
56
59
  * Required permissions:
57
60
  *
58
61
  * - `member:manage`
62
+ * - `member:email:read`
59
63
  * - `member:basic:read`
60
64
  */
61
65
  cancel(
@@ -72,6 +76,7 @@ export class Memberships extends APIResource {
72
76
  * Required permissions:
73
77
  *
74
78
  * - `member:manage`
79
+ * - `member:email:read`
75
80
  * - `member:basic:read`
76
81
  */
77
82
  pause(
@@ -88,11 +93,25 @@ export class Memberships extends APIResource {
88
93
  * Required permissions:
89
94
  *
90
95
  * - `member:manage`
96
+ * - `member:email:read`
91
97
  * - `member:basic:read`
92
98
  */
93
99
  resume(id: string, options?: RequestOptions): APIPromise<Shared.Membership> {
94
100
  return this._client.post(path`/memberships/${id}/resume`, options);
95
101
  }
102
+
103
+ /**
104
+ * Uncancels a membership that was scheduled to cancel at period end
105
+ *
106
+ * Required permissions:
107
+ *
108
+ * - `member:manage`
109
+ * - `member:email:read`
110
+ * - `member:basic:read`
111
+ */
112
+ uncancel(id: string, options?: RequestOptions): APIPromise<Shared.Membership> {
113
+ return this._client.post(path`/memberships/${id}/uncancel`, options);
114
+ }
96
115
  }
97
116
 
98
117
  export type MembershipListResponsesCursorPage = CursorPage<MembershipListResponse>;
@@ -113,6 +132,20 @@ export interface MembershipListResponse {
113
132
  */
114
133
  cancel_at_period_end: boolean;
115
134
 
135
+ /**
136
+ * The different reasons a user can choose for why they are canceling their
137
+ * membership.
138
+ */
139
+ cancel_option:
140
+ | 'too_expensive'
141
+ | 'switching'
142
+ | 'missing_features'
143
+ | 'technical_issues'
144
+ | 'bad_experience'
145
+ | 'other'
146
+ | 'testing'
147
+ | null;
148
+
116
149
  /**
117
150
  * The epoch timestamp of when the customer initiated a cancellation.
118
151
  */
@@ -277,6 +310,11 @@ export namespace MembershipListResponse {
277
310
  */
278
311
  id: string;
279
312
 
313
+ /**
314
+ * The email of the user
315
+ */
316
+ email: string | null;
317
+
280
318
  /**
281
319
  * The name of the user from their Whop account.
282
320
  */
@@ -54,6 +54,17 @@ export class Messages extends APIResource {
54
54
  ): PagePromise<MessageListResponsesCursorPage, MessageListResponse> {
55
55
  return this._client.getAPIList('/messages', CursorPage<MessageListResponse>, { query, ...options });
56
56
  }
57
+
58
+ /**
59
+ * Deletes a message
60
+ *
61
+ * Required permissions:
62
+ *
63
+ * - `chat:message:create`
64
+ */
65
+ delete(id: string, options?: RequestOptions): APIPromise<MessageDeleteResponse> {
66
+ return this._client.delete(path`/messages/${id}`, options);
67
+ }
57
68
  }
58
69
 
59
70
  export type MessageListResponsesCursorPage = CursorPage<MessageListResponse>;
@@ -207,6 +218,11 @@ export namespace MessageListResponse {
207
218
  }
208
219
  }
209
220
 
221
+ /**
222
+ * Represents `true` or `false` values.
223
+ */
224
+ export type MessageDeleteResponse = boolean;
225
+
210
226
  export interface MessageCreateParams {
211
227
  /**
212
228
  * The ID of the channel or experience to send to.
@@ -227,6 +243,11 @@ export interface MessageCreateParams {
227
243
  * The poll for this message
228
244
  */
229
245
  poll?: MessageCreateParams.Poll | null;
246
+
247
+ /**
248
+ * The ID of the message this is replying to, if applicable.
249
+ */
250
+ replying_to_message_id?: string | null;
230
251
  }
231
252
 
232
253
  export namespace MessageCreateParams {
@@ -327,6 +348,7 @@ export interface MessageListParams extends CursorPageParams {
327
348
  export declare namespace Messages {
328
349
  export {
329
350
  type MessageListResponse as MessageListResponse,
351
+ type MessageDeleteResponse as MessageDeleteResponse,
330
352
  type MessageListResponsesCursorPage as MessageListResponsesCursorPage,
331
353
  type MessageCreateParams as MessageCreateParams,
332
354
  type MessageUpdateParams as MessageUpdateParams,