@whop/sdk 0.0.23 → 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 (181) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +15 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +15 -6
  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/app-builds.d.mts +7 -18
  21. package/resources/app-builds.d.mts.map +1 -1
  22. package/resources/app-builds.d.ts +7 -18
  23. package/resources/app-builds.d.ts.map +1 -1
  24. package/resources/app-builds.js +1 -1
  25. package/resources/app-builds.mjs +1 -1
  26. package/resources/apps.d.mts +20 -18
  27. package/resources/apps.d.mts.map +1 -1
  28. package/resources/apps.d.ts +20 -18
  29. package/resources/apps.d.ts.map +1 -1
  30. package/resources/checkout-configurations.d.mts +20 -17
  31. package/resources/checkout-configurations.d.mts.map +1 -1
  32. package/resources/checkout-configurations.d.ts +20 -17
  33. package/resources/checkout-configurations.d.ts.map +1 -1
  34. package/resources/companies.d.mts +23 -34
  35. package/resources/companies.d.mts.map +1 -1
  36. package/resources/companies.d.ts +23 -34
  37. package/resources/companies.d.ts.map +1 -1
  38. package/resources/company-token-transactions.d.mts +425 -0
  39. package/resources/company-token-transactions.d.mts.map +1 -0
  40. package/resources/company-token-transactions.d.ts +425 -0
  41. package/resources/company-token-transactions.d.ts.map +1 -0
  42. package/resources/company-token-transactions.js +59 -0
  43. package/resources/company-token-transactions.js.map +1 -0
  44. package/resources/company-token-transactions.mjs +55 -0
  45. package/resources/company-token-transactions.mjs.map +1 -0
  46. package/resources/course-lessons.d.mts +19 -84
  47. package/resources/course-lessons.d.mts.map +1 -1
  48. package/resources/course-lessons.d.ts +19 -84
  49. package/resources/course-lessons.d.ts.map +1 -1
  50. package/resources/courses.d.mts +8 -42
  51. package/resources/courses.d.mts.map +1 -1
  52. package/resources/courses.d.ts +8 -42
  53. package/resources/courses.d.ts.map +1 -1
  54. package/resources/disputes.d.mts +16 -68
  55. package/resources/disputes.d.mts.map +1 -1
  56. package/resources/disputes.d.ts +16 -68
  57. package/resources/disputes.d.ts.map +1 -1
  58. package/resources/dm-members.d.mts +242 -0
  59. package/resources/dm-members.d.mts.map +1 -0
  60. package/resources/dm-members.d.ts +242 -0
  61. package/resources/dm-members.d.ts.map +1 -0
  62. package/resources/dm-members.js +94 -0
  63. package/resources/dm-members.js.map +1 -0
  64. package/resources/dm-members.mjs +90 -0
  65. package/resources/dm-members.mjs.map +1 -0
  66. package/resources/experiences.d.mts +19 -17
  67. package/resources/experiences.d.mts.map +1 -1
  68. package/resources/experiences.d.ts +19 -17
  69. package/resources/experiences.d.ts.map +1 -1
  70. package/resources/forum-posts.d.mts +6 -32
  71. package/resources/forum-posts.d.mts.map +1 -1
  72. package/resources/forum-posts.d.ts +6 -32
  73. package/resources/forum-posts.d.ts.map +1 -1
  74. package/resources/index.d.mts +6 -3
  75. package/resources/index.d.mts.map +1 -1
  76. package/resources/index.d.ts +6 -3
  77. package/resources/index.d.ts.map +1 -1
  78. package/resources/index.js +7 -1
  79. package/resources/index.js.map +1 -1
  80. package/resources/index.mjs +3 -0
  81. package/resources/index.mjs.map +1 -1
  82. package/resources/ledger-accounts.d.mts +0 -4
  83. package/resources/ledger-accounts.d.mts.map +1 -1
  84. package/resources/ledger-accounts.d.ts +0 -4
  85. package/resources/ledger-accounts.d.ts.map +1 -1
  86. package/resources/members.d.mts +8 -0
  87. package/resources/members.d.mts.map +1 -1
  88. package/resources/members.d.ts +8 -0
  89. package/resources/members.d.ts.map +1 -1
  90. package/resources/memberships.d.mts +25 -0
  91. package/resources/memberships.d.mts.map +1 -1
  92. package/resources/memberships.d.ts +25 -0
  93. package/resources/memberships.d.ts.map +1 -1
  94. package/resources/memberships.js +18 -0
  95. package/resources/memberships.js.map +1 -1
  96. package/resources/memberships.mjs +18 -0
  97. package/resources/memberships.mjs.map +1 -1
  98. package/resources/messages.d.mts +23 -33
  99. package/resources/messages.d.mts.map +1 -1
  100. package/resources/messages.d.ts +23 -33
  101. package/resources/messages.d.ts.map +1 -1
  102. package/resources/messages.js +10 -0
  103. package/resources/messages.js.map +1 -1
  104. package/resources/messages.mjs +10 -0
  105. package/resources/messages.mjs.map +1 -1
  106. package/resources/notifications.d.mts +4 -0
  107. package/resources/notifications.d.mts.map +1 -1
  108. package/resources/notifications.d.ts +4 -0
  109. package/resources/notifications.d.ts.map +1 -1
  110. package/resources/notifications.js +4 -0
  111. package/resources/notifications.js.map +1 -1
  112. package/resources/notifications.mjs +4 -0
  113. package/resources/notifications.mjs.map +1 -1
  114. package/resources/payments.d.mts +10 -2
  115. package/resources/payments.d.mts.map +1 -1
  116. package/resources/payments.d.ts +10 -2
  117. package/resources/payments.d.ts.map +1 -1
  118. package/resources/payout-methods.d.mts +26 -0
  119. package/resources/payout-methods.d.mts.map +1 -1
  120. package/resources/payout-methods.d.ts +26 -0
  121. package/resources/payout-methods.d.ts.map +1 -1
  122. package/resources/plans.d.mts +8 -34
  123. package/resources/plans.d.mts.map +1 -1
  124. package/resources/plans.d.ts +8 -34
  125. package/resources/plans.d.ts.map +1 -1
  126. package/resources/reactions.d.mts +24 -1
  127. package/resources/reactions.d.mts.map +1 -1
  128. package/resources/reactions.d.ts +24 -1
  129. package/resources/reactions.d.ts.map +1 -1
  130. package/resources/reactions.js +11 -0
  131. package/resources/reactions.js.map +1 -1
  132. package/resources/reactions.mjs +11 -0
  133. package/resources/reactions.mjs.map +1 -1
  134. package/resources/refunds.d.mts +1 -1
  135. package/resources/refunds.d.mts.map +1 -1
  136. package/resources/refunds.d.ts +1 -1
  137. package/resources/refunds.d.ts.map +1 -1
  138. package/resources/shared.d.mts +39 -1
  139. package/resources/shared.d.mts.map +1 -1
  140. package/resources/shared.d.ts +39 -1
  141. package/resources/shared.d.ts.map +1 -1
  142. package/resources/webhooks.d.mts +15 -10
  143. package/resources/webhooks.d.mts.map +1 -1
  144. package/resources/webhooks.d.ts +15 -10
  145. package/resources/webhooks.d.ts.map +1 -1
  146. package/resources/withdrawals.d.mts +12 -19
  147. package/resources/withdrawals.d.mts.map +1 -1
  148. package/resources/withdrawals.d.ts +12 -19
  149. package/resources/withdrawals.d.ts.map +1 -1
  150. package/src/client.ts +81 -2
  151. package/src/resources/ai-chats.ts +346 -0
  152. package/src/resources/app-builds.ts +7 -21
  153. package/src/resources/apps.ts +27 -18
  154. package/src/resources/checkout-configurations.ts +24 -18
  155. package/src/resources/companies.ts +25 -42
  156. package/src/resources/company-token-transactions.ts +535 -0
  157. package/src/resources/course-lessons.ts +19 -104
  158. package/src/resources/courses.ts +8 -52
  159. package/src/resources/disputes.ts +16 -84
  160. package/src/resources/dm-members.ts +310 -0
  161. package/src/resources/experiences.ts +21 -21
  162. package/src/resources/forum-posts.ts +6 -38
  163. package/src/resources/index.ts +36 -1
  164. package/src/resources/ledger-accounts.ts +0 -18
  165. package/src/resources/members.ts +10 -0
  166. package/src/resources/memberships.ts +38 -0
  167. package/src/resources/messages.ts +27 -37
  168. package/src/resources/notifications.ts +4 -0
  169. package/src/resources/payments.ts +85 -57
  170. package/src/resources/payout-methods.ts +32 -0
  171. package/src/resources/plans.ts +8 -36
  172. package/src/resources/reactions.ts +36 -0
  173. package/src/resources/refunds.ts +2 -1
  174. package/src/resources/shared.ts +77 -11
  175. package/src/resources/webhooks.ts +18 -10
  176. package/src/resources/withdrawals.ts +13 -21
  177. package/src/version.ts +1 -1
  178. package/version.d.mts +1 -1
  179. package/version.d.ts +1 -1
  180. package/version.js +1 -1
  181. package/version.mjs +1 -1
@@ -0,0 +1,242 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class DmMembers extends APIResource {
6
+ /**
7
+ * Adds a user to a DM channel
8
+ *
9
+ * Required permissions:
10
+ *
11
+ * - `dms:channel:manage`
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const dmMember = await client.dmMembers.create({
16
+ * channel_id: 'channel_id',
17
+ * user_id: 'user_xxxxxxxxxxxxx',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body: DmMemberCreateParams, options?: RequestOptions): APIPromise<DmMemberCreateResponse>;
22
+ /**
23
+ * Retrieves a DM channel member
24
+ *
25
+ * Required permissions:
26
+ *
27
+ * - `dms:read`
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const dmMember = await client.dmMembers.retrieve('id');
32
+ * ```
33
+ */
34
+ retrieve(id: string, options?: RequestOptions): APIPromise<DmMemberRetrieveResponse>;
35
+ /**
36
+ * Updates a DM channel member's settings
37
+ *
38
+ * Required permissions:
39
+ *
40
+ * - `dms:channel:manage`
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const dmMember = await client.dmMembers.update('id');
45
+ * ```
46
+ */
47
+ update(id: string, body?: DmMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<DmMemberUpdateResponse>;
48
+ /**
49
+ * Lists members of a DM channel
50
+ *
51
+ * Required permissions:
52
+ *
53
+ * - `dms:read`
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * // Automatically fetches more pages as needed.
58
+ * for await (const dmMemberListResponse of client.dmMembers.list(
59
+ * { channel_id: 'channel_id' },
60
+ * )) {
61
+ * // ...
62
+ * }
63
+ * ```
64
+ */
65
+ list(query: DmMemberListParams, options?: RequestOptions): PagePromise<DmMemberListResponsesCursorPage, DmMemberListResponse>;
66
+ /**
67
+ * Removes a user from a DM channel
68
+ *
69
+ * Required permissions:
70
+ *
71
+ * - `dms:channel:manage`
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const dmMember = await client.dmMembers.delete('id');
76
+ * ```
77
+ */
78
+ delete(id: string, options?: RequestOptions): APIPromise<DmMemberDeleteResponse>;
79
+ }
80
+ export type DmMemberListResponsesCursorPage = CursorPage<DmMemberListResponse>;
81
+ /**
82
+ * Represents a member of a DM channel
83
+ */
84
+ export interface DmMemberCreateResponse {
85
+ /**
86
+ * The unique identifier for the entity
87
+ */
88
+ id: string;
89
+ /**
90
+ * The ID of the DM channel
91
+ */
92
+ channel_id: string;
93
+ /**
94
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
95
+ * epoch)
96
+ */
97
+ last_viewed_at: string | null;
98
+ /**
99
+ * The notification preference for this member (all, mentions, none)
100
+ */
101
+ notification_preference: 'all' | 'mentions' | 'none';
102
+ /**
103
+ * The status of the membership (requested, accepted, rejected)
104
+ */
105
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
106
+ /**
107
+ * The ID of the user who is a member of the channel
108
+ */
109
+ user_id: string;
110
+ }
111
+ /**
112
+ * Represents a member of a DM channel
113
+ */
114
+ export interface DmMemberRetrieveResponse {
115
+ /**
116
+ * The unique identifier for the entity
117
+ */
118
+ id: string;
119
+ /**
120
+ * The ID of the DM channel
121
+ */
122
+ channel_id: string;
123
+ /**
124
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
125
+ * epoch)
126
+ */
127
+ last_viewed_at: string | null;
128
+ /**
129
+ * The notification preference for this member (all, mentions, none)
130
+ */
131
+ notification_preference: 'all' | 'mentions' | 'none';
132
+ /**
133
+ * The status of the membership (requested, accepted, rejected)
134
+ */
135
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
136
+ /**
137
+ * The ID of the user who is a member of the channel
138
+ */
139
+ user_id: string;
140
+ }
141
+ /**
142
+ * Represents a member of a DM channel
143
+ */
144
+ export interface DmMemberUpdateResponse {
145
+ /**
146
+ * The unique identifier for the entity
147
+ */
148
+ id: string;
149
+ /**
150
+ * The ID of the DM channel
151
+ */
152
+ channel_id: string;
153
+ /**
154
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
155
+ * epoch)
156
+ */
157
+ last_viewed_at: string | null;
158
+ /**
159
+ * The notification preference for this member (all, mentions, none)
160
+ */
161
+ notification_preference: 'all' | 'mentions' | 'none';
162
+ /**
163
+ * The status of the membership (requested, accepted, rejected)
164
+ */
165
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
166
+ /**
167
+ * The ID of the user who is a member of the channel
168
+ */
169
+ user_id: string;
170
+ }
171
+ /**
172
+ * Represents a member of a DM channel
173
+ */
174
+ export interface DmMemberListResponse {
175
+ /**
176
+ * The unique identifier for the entity
177
+ */
178
+ id: string;
179
+ /**
180
+ * The ID of the DM channel
181
+ */
182
+ channel_id: string;
183
+ /**
184
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
185
+ * epoch)
186
+ */
187
+ last_viewed_at: string | null;
188
+ /**
189
+ * The status of the membership (requested, accepted, rejected)
190
+ */
191
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
192
+ /**
193
+ * The ID of the user who is a member of the channel
194
+ */
195
+ user_id: string;
196
+ }
197
+ /**
198
+ * Represents `true` or `false` values.
199
+ */
200
+ export type DmMemberDeleteResponse = boolean;
201
+ export interface DmMemberCreateParams {
202
+ /**
203
+ * The ID of the DM channel to add the member to
204
+ */
205
+ channel_id: string;
206
+ /**
207
+ * The ID of the user to add to the channel
208
+ */
209
+ user_id: string;
210
+ }
211
+ export interface DmMemberUpdateParams {
212
+ /**
213
+ * The notification preferences for a DMs feed member
214
+ */
215
+ notification_preference?: 'all' | 'mentions' | 'none' | null;
216
+ /**
217
+ * The statuses of a DMs feed member
218
+ */
219
+ status?: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived' | null;
220
+ }
221
+ export interface DmMemberListParams extends CursorPageParams {
222
+ /**
223
+ * The ID of the DM channel to list members for
224
+ */
225
+ channel_id: string;
226
+ /**
227
+ * Returns the elements in the list that come before the specified cursor.
228
+ */
229
+ before?: string | null;
230
+ /**
231
+ * Returns the first _n_ elements from the list.
232
+ */
233
+ first?: number | null;
234
+ /**
235
+ * Returns the last _n_ elements from the list.
236
+ */
237
+ last?: number | null;
238
+ }
239
+ export declare namespace DmMembers {
240
+ export { type DmMemberCreateResponse as DmMemberCreateResponse, type DmMemberRetrieveResponse as DmMemberRetrieveResponse, type DmMemberUpdateResponse as DmMemberUpdateResponse, type DmMemberListResponse as DmMemberListResponse, type DmMemberDeleteResponse as DmMemberDeleteResponse, type DmMemberListResponsesCursorPage as DmMemberListResponsesCursorPage, type DmMemberCreateParams as DmMemberCreateParams, type DmMemberUpdateParams as DmMemberUpdateParams, type DmMemberListParams as DmMemberListParams, };
241
+ }
242
+ //# sourceMappingURL=dm-members.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm-members.d.mts","sourceRoot":"","sources":["../src/resources/dm-members.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpF;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,oBAAoB,GAAG,IAAI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B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,242 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class DmMembers extends APIResource {
6
+ /**
7
+ * Adds a user to a DM channel
8
+ *
9
+ * Required permissions:
10
+ *
11
+ * - `dms:channel:manage`
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const dmMember = await client.dmMembers.create({
16
+ * channel_id: 'channel_id',
17
+ * user_id: 'user_xxxxxxxxxxxxx',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body: DmMemberCreateParams, options?: RequestOptions): APIPromise<DmMemberCreateResponse>;
22
+ /**
23
+ * Retrieves a DM channel member
24
+ *
25
+ * Required permissions:
26
+ *
27
+ * - `dms:read`
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const dmMember = await client.dmMembers.retrieve('id');
32
+ * ```
33
+ */
34
+ retrieve(id: string, options?: RequestOptions): APIPromise<DmMemberRetrieveResponse>;
35
+ /**
36
+ * Updates a DM channel member's settings
37
+ *
38
+ * Required permissions:
39
+ *
40
+ * - `dms:channel:manage`
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const dmMember = await client.dmMembers.update('id');
45
+ * ```
46
+ */
47
+ update(id: string, body?: DmMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<DmMemberUpdateResponse>;
48
+ /**
49
+ * Lists members of a DM channel
50
+ *
51
+ * Required permissions:
52
+ *
53
+ * - `dms:read`
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * // Automatically fetches more pages as needed.
58
+ * for await (const dmMemberListResponse of client.dmMembers.list(
59
+ * { channel_id: 'channel_id' },
60
+ * )) {
61
+ * // ...
62
+ * }
63
+ * ```
64
+ */
65
+ list(query: DmMemberListParams, options?: RequestOptions): PagePromise<DmMemberListResponsesCursorPage, DmMemberListResponse>;
66
+ /**
67
+ * Removes a user from a DM channel
68
+ *
69
+ * Required permissions:
70
+ *
71
+ * - `dms:channel:manage`
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const dmMember = await client.dmMembers.delete('id');
76
+ * ```
77
+ */
78
+ delete(id: string, options?: RequestOptions): APIPromise<DmMemberDeleteResponse>;
79
+ }
80
+ export type DmMemberListResponsesCursorPage = CursorPage<DmMemberListResponse>;
81
+ /**
82
+ * Represents a member of a DM channel
83
+ */
84
+ export interface DmMemberCreateResponse {
85
+ /**
86
+ * The unique identifier for the entity
87
+ */
88
+ id: string;
89
+ /**
90
+ * The ID of the DM channel
91
+ */
92
+ channel_id: string;
93
+ /**
94
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
95
+ * epoch)
96
+ */
97
+ last_viewed_at: string | null;
98
+ /**
99
+ * The notification preference for this member (all, mentions, none)
100
+ */
101
+ notification_preference: 'all' | 'mentions' | 'none';
102
+ /**
103
+ * The status of the membership (requested, accepted, rejected)
104
+ */
105
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
106
+ /**
107
+ * The ID of the user who is a member of the channel
108
+ */
109
+ user_id: string;
110
+ }
111
+ /**
112
+ * Represents a member of a DM channel
113
+ */
114
+ export interface DmMemberRetrieveResponse {
115
+ /**
116
+ * The unique identifier for the entity
117
+ */
118
+ id: string;
119
+ /**
120
+ * The ID of the DM channel
121
+ */
122
+ channel_id: string;
123
+ /**
124
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
125
+ * epoch)
126
+ */
127
+ last_viewed_at: string | null;
128
+ /**
129
+ * The notification preference for this member (all, mentions, none)
130
+ */
131
+ notification_preference: 'all' | 'mentions' | 'none';
132
+ /**
133
+ * The status of the membership (requested, accepted, rejected)
134
+ */
135
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
136
+ /**
137
+ * The ID of the user who is a member of the channel
138
+ */
139
+ user_id: string;
140
+ }
141
+ /**
142
+ * Represents a member of a DM channel
143
+ */
144
+ export interface DmMemberUpdateResponse {
145
+ /**
146
+ * The unique identifier for the entity
147
+ */
148
+ id: string;
149
+ /**
150
+ * The ID of the DM channel
151
+ */
152
+ channel_id: string;
153
+ /**
154
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
155
+ * epoch)
156
+ */
157
+ last_viewed_at: string | null;
158
+ /**
159
+ * The notification preference for this member (all, mentions, none)
160
+ */
161
+ notification_preference: 'all' | 'mentions' | 'none';
162
+ /**
163
+ * The status of the membership (requested, accepted, rejected)
164
+ */
165
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
166
+ /**
167
+ * The ID of the user who is a member of the channel
168
+ */
169
+ user_id: string;
170
+ }
171
+ /**
172
+ * Represents a member of a DM channel
173
+ */
174
+ export interface DmMemberListResponse {
175
+ /**
176
+ * The unique identifier for the entity
177
+ */
178
+ id: string;
179
+ /**
180
+ * The ID of the DM channel
181
+ */
182
+ channel_id: string;
183
+ /**
184
+ * Timestamp when the member last viewed the channel (in milliseconds since Unix
185
+ * epoch)
186
+ */
187
+ last_viewed_at: string | null;
188
+ /**
189
+ * The status of the membership (requested, accepted, rejected)
190
+ */
191
+ status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
192
+ /**
193
+ * The ID of the user who is a member of the channel
194
+ */
195
+ user_id: string;
196
+ }
197
+ /**
198
+ * Represents `true` or `false` values.
199
+ */
200
+ export type DmMemberDeleteResponse = boolean;
201
+ export interface DmMemberCreateParams {
202
+ /**
203
+ * The ID of the DM channel to add the member to
204
+ */
205
+ channel_id: string;
206
+ /**
207
+ * The ID of the user to add to the channel
208
+ */
209
+ user_id: string;
210
+ }
211
+ export interface DmMemberUpdateParams {
212
+ /**
213
+ * The notification preferences for a DMs feed member
214
+ */
215
+ notification_preference?: 'all' | 'mentions' | 'none' | null;
216
+ /**
217
+ * The statuses of a DMs feed member
218
+ */
219
+ status?: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived' | null;
220
+ }
221
+ export interface DmMemberListParams extends CursorPageParams {
222
+ /**
223
+ * The ID of the DM channel to list members for
224
+ */
225
+ channel_id: string;
226
+ /**
227
+ * Returns the elements in the list that come before the specified cursor.
228
+ */
229
+ before?: string | null;
230
+ /**
231
+ * Returns the first _n_ elements from the list.
232
+ */
233
+ first?: number | null;
234
+ /**
235
+ * Returns the last _n_ elements from the list.
236
+ */
237
+ last?: number | null;
238
+ }
239
+ export declare namespace DmMembers {
240
+ export { type DmMemberCreateResponse as DmMemberCreateResponse, type DmMemberRetrieveResponse as DmMemberRetrieveResponse, type DmMemberUpdateResponse as DmMemberUpdateResponse, type DmMemberListResponse as DmMemberListResponse, type DmMemberDeleteResponse as DmMemberDeleteResponse, type DmMemberListResponsesCursorPage as DmMemberListResponsesCursorPage, type DmMemberCreateParams as DmMemberCreateParams, type DmMemberUpdateParams as DmMemberUpdateParams, type DmMemberListParams as DmMemberListParams, };
241
+ }
242
+ //# sourceMappingURL=dm-members.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm-members.d.ts","sourceRoot":"","sources":["../src/resources/dm-members.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,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,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAC;CAC7E;AAED,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DmMembers = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class DmMembers extends resource_1.APIResource {
9
+ /**
10
+ * Adds a user to a DM channel
11
+ *
12
+ * Required permissions:
13
+ *
14
+ * - `dms:channel:manage`
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const dmMember = await client.dmMembers.create({
19
+ * channel_id: 'channel_id',
20
+ * user_id: 'user_xxxxxxxxxxxxx',
21
+ * });
22
+ * ```
23
+ */
24
+ create(body, options) {
25
+ return this._client.post('/dm_members', { body, ...options });
26
+ }
27
+ /**
28
+ * Retrieves a DM channel member
29
+ *
30
+ * Required permissions:
31
+ *
32
+ * - `dms:read`
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const dmMember = await client.dmMembers.retrieve('id');
37
+ * ```
38
+ */
39
+ retrieve(id, options) {
40
+ return this._client.get((0, path_1.path) `/dm_members/${id}`, options);
41
+ }
42
+ /**
43
+ * Updates a DM channel member's settings
44
+ *
45
+ * Required permissions:
46
+ *
47
+ * - `dms:channel:manage`
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const dmMember = await client.dmMembers.update('id');
52
+ * ```
53
+ */
54
+ update(id, body = {}, options) {
55
+ return this._client.patch((0, path_1.path) `/dm_members/${id}`, { body, ...options });
56
+ }
57
+ /**
58
+ * Lists members of a DM channel
59
+ *
60
+ * Required permissions:
61
+ *
62
+ * - `dms:read`
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * // Automatically fetches more pages as needed.
67
+ * for await (const dmMemberListResponse of client.dmMembers.list(
68
+ * { channel_id: 'channel_id' },
69
+ * )) {
70
+ * // ...
71
+ * }
72
+ * ```
73
+ */
74
+ list(query, options) {
75
+ return this._client.getAPIList('/dm_members', (pagination_1.CursorPage), { query, ...options });
76
+ }
77
+ /**
78
+ * Removes a user from a DM channel
79
+ *
80
+ * Required permissions:
81
+ *
82
+ * - `dms:channel:manage`
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const dmMember = await client.dmMembers.delete('id');
87
+ * ```
88
+ */
89
+ delete(id, options) {
90
+ return this._client.delete((0, path_1.path) `/dm_members/${id}`, options);
91
+ }
92
+ }
93
+ exports.DmMembers = DmMembers;
94
+ //# sourceMappingURL=dm-members.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm-members.js","sourceRoot":"","sources":["../src/resources/dm-members.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,uBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AA/FD,8BA+FC"}
@@ -0,0 +1,90 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { CursorPage } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class DmMembers extends APIResource {
6
+ /**
7
+ * Adds a user to a DM channel
8
+ *
9
+ * Required permissions:
10
+ *
11
+ * - `dms:channel:manage`
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const dmMember = await client.dmMembers.create({
16
+ * channel_id: 'channel_id',
17
+ * user_id: 'user_xxxxxxxxxxxxx',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body, options) {
22
+ return this._client.post('/dm_members', { body, ...options });
23
+ }
24
+ /**
25
+ * Retrieves a DM channel member
26
+ *
27
+ * Required permissions:
28
+ *
29
+ * - `dms:read`
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const dmMember = await client.dmMembers.retrieve('id');
34
+ * ```
35
+ */
36
+ retrieve(id, options) {
37
+ return this._client.get(path `/dm_members/${id}`, options);
38
+ }
39
+ /**
40
+ * Updates a DM channel member's settings
41
+ *
42
+ * Required permissions:
43
+ *
44
+ * - `dms:channel:manage`
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const dmMember = await client.dmMembers.update('id');
49
+ * ```
50
+ */
51
+ update(id, body = {}, options) {
52
+ return this._client.patch(path `/dm_members/${id}`, { body, ...options });
53
+ }
54
+ /**
55
+ * Lists members of a DM channel
56
+ *
57
+ * Required permissions:
58
+ *
59
+ * - `dms:read`
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * // Automatically fetches more pages as needed.
64
+ * for await (const dmMemberListResponse of client.dmMembers.list(
65
+ * { channel_id: 'channel_id' },
66
+ * )) {
67
+ * // ...
68
+ * }
69
+ * ```
70
+ */
71
+ list(query, options) {
72
+ return this._client.getAPIList('/dm_members', (CursorPage), { query, ...options });
73
+ }
74
+ /**
75
+ * Removes a user from a DM channel
76
+ *
77
+ * Required permissions:
78
+ *
79
+ * - `dms:channel:manage`
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * const dmMember = await client.dmMembers.delete('id');
84
+ * ```
85
+ */
86
+ delete(id, options) {
87
+ return this._client.delete(path `/dm_members/${id}`, options);
88
+ }
89
+ }
90
+ //# sourceMappingURL=dm-members.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dm-members.mjs","sourceRoot":"","sources":["../src/resources/dm-members.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,UAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;OAW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