@whop/sdk 0.0.25 → 0.0.27
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.
- package/CHANGELOG.md +58 -0
- package/client.d.mts +29 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -25
- package/client.d.ts.map +1 -1
- package/client.js +14 -3
- package/client.js.map +1 -1
- package/client.mjs +16 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +36 -104
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +36 -104
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +43 -9
- package/resources/authorized-users.d.mts.map +1 -1
- package/resources/authorized-users.d.ts +43 -9
- package/resources/authorized-users.d.ts.map +1 -1
- package/resources/authorized-users.js +1 -1
- package/resources/authorized-users.js.map +1 -1
- package/resources/authorized-users.mjs +1 -1
- package/resources/authorized-users.mjs.map +1 -1
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +23 -109
- package/resources/company-token-transactions.d.mts.map +1 -1
- package/resources/company-token-transactions.d.ts +23 -109
- package/resources/company-token-transactions.d.ts.map +1 -1
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/dm-channels.d.mts +161 -0
- package/resources/dm-channels.d.mts.map +1 -0
- package/resources/dm-channels.d.ts +161 -0
- package/resources/dm-channels.d.ts.map +1 -0
- package/resources/dm-channels.js +87 -0
- package/resources/dm-channels.js.map +1 -0
- package/resources/dm-channels.mjs +83 -0
- package/resources/dm-channels.mjs.map +1 -0
- package/resources/dm-members.d.mts +14 -66
- package/resources/dm-members.d.mts.map +1 -1
- package/resources/dm-members.d.ts +14 -66
- package/resources/dm-members.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +9 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +9 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +12 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +21 -189
- package/resources/leads.d.mts.map +1 -1
- package/resources/leads.d.ts +21 -189
- package/resources/leads.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +12 -9
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +12 -9
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/members.d.mts +14 -14
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +14 -14
- package/resources/members.d.ts.map +1 -1
- package/resources/members.js +1 -1
- package/resources/members.js.map +1 -1
- package/resources/members.mjs +1 -1
- package/resources/members.mjs.map +1 -1
- package/resources/memberships.d.mts +25 -15
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -15
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +59 -19
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +59 -19
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +14 -9
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +14 -9
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/payout-methods.js.map +1 -1
- package/resources/payout-methods.mjs.map +1 -1
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +209 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +209 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +12 -4
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +12 -4
- package/resources/verifications.d.ts.map +1 -1
- package/resources/webhooks.d.mts +105 -350
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +105 -350
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +32 -139
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +32 -139
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +87 -41
- package/src/internal/parse.ts +6 -0
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +36 -122
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +49 -9
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +24 -126
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/dm-channels.ts +212 -0
- package/src/resources/dm-members.ts +16 -78
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +10 -4
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +38 -18
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +21 -217
- package/src/resources/ledger-accounts.ts +12 -42
- package/src/resources/members.ts +15 -15
- package/src/resources/memberships.ts +34 -30
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +67 -17
- package/src/resources/payout-methods.ts +21 -8
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +217 -145
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +50 -37
- package/src/resources/webhooks.ts +138 -785
- package/src/resources/withdrawals.ts +39 -216
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/leads.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class Leads extends APIResource {
|
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
create(body: LeadCreateParams, options?: RequestOptions): APIPromise<
|
|
23
|
+
create(body: LeadCreateParams, options?: RequestOptions): APIPromise<Lead>;
|
|
24
24
|
/**
|
|
25
25
|
* Retrieves a lead by ID
|
|
26
26
|
*
|
|
@@ -38,7 +38,7 @@ export declare class Leads extends APIResource {
|
|
|
38
38
|
* );
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
41
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Lead>;
|
|
42
42
|
/**
|
|
43
43
|
* Updates a lead
|
|
44
44
|
*
|
|
@@ -56,7 +56,7 @@ export declare class Leads extends APIResource {
|
|
|
56
56
|
* );
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
59
|
+
update(id: string, body?: LeadUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Lead>;
|
|
60
60
|
/**
|
|
61
61
|
* Lists leads for a company
|
|
62
62
|
*
|
|
@@ -83,19 +83,19 @@ export type LeadListResponsesCursorPage = CursorPage<LeadListResponse>;
|
|
|
83
83
|
/**
|
|
84
84
|
* An object representing a lead (someone who is interested in a whop).
|
|
85
85
|
*/
|
|
86
|
-
export interface
|
|
86
|
+
export interface Lead {
|
|
87
87
|
/**
|
|
88
|
-
* The
|
|
88
|
+
* The unique identifier for the lead.
|
|
89
89
|
*/
|
|
90
90
|
id: string;
|
|
91
91
|
/**
|
|
92
|
-
* The
|
|
92
|
+
* The datetime the lead was created.
|
|
93
93
|
*/
|
|
94
94
|
created_at: string;
|
|
95
95
|
/**
|
|
96
96
|
* The converted member, if any.
|
|
97
97
|
*/
|
|
98
|
-
member:
|
|
98
|
+
member: Lead.Member | null;
|
|
99
99
|
/**
|
|
100
100
|
* Custom metadata for the lead.
|
|
101
101
|
*/
|
|
@@ -105,27 +105,27 @@ export interface LeadCreateResponse {
|
|
|
105
105
|
/**
|
|
106
106
|
* The access pass the lead is interested in, if available.
|
|
107
107
|
*/
|
|
108
|
-
product:
|
|
108
|
+
product: Lead.Product | null;
|
|
109
109
|
/**
|
|
110
110
|
* The referrer URL that brought this lead.
|
|
111
111
|
*/
|
|
112
112
|
referrer: string | null;
|
|
113
113
|
/**
|
|
114
|
-
* The
|
|
114
|
+
* The datetime the lead was last updated.
|
|
115
115
|
*/
|
|
116
116
|
updated_at: string;
|
|
117
117
|
/**
|
|
118
118
|
* The user who is the lead.
|
|
119
119
|
*/
|
|
120
|
-
user:
|
|
120
|
+
user: Lead.User;
|
|
121
121
|
}
|
|
122
|
-
export declare namespace
|
|
122
|
+
export declare namespace Lead {
|
|
123
123
|
/**
|
|
124
124
|
* The converted member, if any.
|
|
125
125
|
*/
|
|
126
126
|
interface Member {
|
|
127
127
|
/**
|
|
128
|
-
* The
|
|
128
|
+
* The unique identifier for the company member.
|
|
129
129
|
*/
|
|
130
130
|
id: string;
|
|
131
131
|
}
|
|
@@ -134,7 +134,7 @@ export declare namespace LeadCreateResponse {
|
|
|
134
134
|
*/
|
|
135
135
|
interface Product {
|
|
136
136
|
/**
|
|
137
|
-
* The
|
|
137
|
+
* The unique identifier for the product.
|
|
138
138
|
*/
|
|
139
139
|
id: string;
|
|
140
140
|
/**
|
|
@@ -147,175 +147,7 @@ export declare namespace LeadCreateResponse {
|
|
|
147
147
|
*/
|
|
148
148
|
interface User {
|
|
149
149
|
/**
|
|
150
|
-
* The
|
|
151
|
-
*/
|
|
152
|
-
id: string;
|
|
153
|
-
/**
|
|
154
|
-
* The email of the user
|
|
155
|
-
*/
|
|
156
|
-
email: string | null;
|
|
157
|
-
/**
|
|
158
|
-
* The name of the user from their Whop account.
|
|
159
|
-
*/
|
|
160
|
-
name: string | null;
|
|
161
|
-
/**
|
|
162
|
-
* The username of the user from their Whop account.
|
|
163
|
-
*/
|
|
164
|
-
username: string;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* An object representing a lead (someone who is interested in a whop).
|
|
169
|
-
*/
|
|
170
|
-
export interface LeadRetrieveResponse {
|
|
171
|
-
/**
|
|
172
|
-
* The ID of the lead.
|
|
173
|
-
*/
|
|
174
|
-
id: string;
|
|
175
|
-
/**
|
|
176
|
-
* The timestamp of when the lead was created.
|
|
177
|
-
*/
|
|
178
|
-
created_at: string;
|
|
179
|
-
/**
|
|
180
|
-
* The converted member, if any.
|
|
181
|
-
*/
|
|
182
|
-
member: LeadRetrieveResponse.Member | null;
|
|
183
|
-
/**
|
|
184
|
-
* Custom metadata for the lead.
|
|
185
|
-
*/
|
|
186
|
-
metadata: {
|
|
187
|
-
[key: string]: unknown;
|
|
188
|
-
} | null;
|
|
189
|
-
/**
|
|
190
|
-
* The access pass the lead is interested in, if available.
|
|
191
|
-
*/
|
|
192
|
-
product: LeadRetrieveResponse.Product | null;
|
|
193
|
-
/**
|
|
194
|
-
* The referrer URL that brought this lead.
|
|
195
|
-
*/
|
|
196
|
-
referrer: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* The timestamp of when the lead was last updated.
|
|
199
|
-
*/
|
|
200
|
-
updated_at: string;
|
|
201
|
-
/**
|
|
202
|
-
* The user who is the lead.
|
|
203
|
-
*/
|
|
204
|
-
user: LeadRetrieveResponse.User;
|
|
205
|
-
}
|
|
206
|
-
export declare namespace LeadRetrieveResponse {
|
|
207
|
-
/**
|
|
208
|
-
* The converted member, if any.
|
|
209
|
-
*/
|
|
210
|
-
interface Member {
|
|
211
|
-
/**
|
|
212
|
-
* The ID of the member
|
|
213
|
-
*/
|
|
214
|
-
id: string;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* The access pass the lead is interested in, if available.
|
|
218
|
-
*/
|
|
219
|
-
interface Product {
|
|
220
|
-
/**
|
|
221
|
-
* The internal ID of the public product.
|
|
222
|
-
*/
|
|
223
|
-
id: string;
|
|
224
|
-
/**
|
|
225
|
-
* The title of the product. Use for Whop 4.0.
|
|
226
|
-
*/
|
|
227
|
-
title: string;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* The user who is the lead.
|
|
231
|
-
*/
|
|
232
|
-
interface User {
|
|
233
|
-
/**
|
|
234
|
-
* The internal ID of the user.
|
|
235
|
-
*/
|
|
236
|
-
id: string;
|
|
237
|
-
/**
|
|
238
|
-
* The email of the user
|
|
239
|
-
*/
|
|
240
|
-
email: string | null;
|
|
241
|
-
/**
|
|
242
|
-
* The name of the user from their Whop account.
|
|
243
|
-
*/
|
|
244
|
-
name: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* The username of the user from their Whop account.
|
|
247
|
-
*/
|
|
248
|
-
username: string;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* An object representing a lead (someone who is interested in a whop).
|
|
253
|
-
*/
|
|
254
|
-
export interface LeadUpdateResponse {
|
|
255
|
-
/**
|
|
256
|
-
* The ID of the lead.
|
|
257
|
-
*/
|
|
258
|
-
id: string;
|
|
259
|
-
/**
|
|
260
|
-
* The timestamp of when the lead was created.
|
|
261
|
-
*/
|
|
262
|
-
created_at: string;
|
|
263
|
-
/**
|
|
264
|
-
* The converted member, if any.
|
|
265
|
-
*/
|
|
266
|
-
member: LeadUpdateResponse.Member | null;
|
|
267
|
-
/**
|
|
268
|
-
* Custom metadata for the lead.
|
|
269
|
-
*/
|
|
270
|
-
metadata: {
|
|
271
|
-
[key: string]: unknown;
|
|
272
|
-
} | null;
|
|
273
|
-
/**
|
|
274
|
-
* The access pass the lead is interested in, if available.
|
|
275
|
-
*/
|
|
276
|
-
product: LeadUpdateResponse.Product | null;
|
|
277
|
-
/**
|
|
278
|
-
* The referrer URL that brought this lead.
|
|
279
|
-
*/
|
|
280
|
-
referrer: string | null;
|
|
281
|
-
/**
|
|
282
|
-
* The timestamp of when the lead was last updated.
|
|
283
|
-
*/
|
|
284
|
-
updated_at: string;
|
|
285
|
-
/**
|
|
286
|
-
* The user who is the lead.
|
|
287
|
-
*/
|
|
288
|
-
user: LeadUpdateResponse.User;
|
|
289
|
-
}
|
|
290
|
-
export declare namespace LeadUpdateResponse {
|
|
291
|
-
/**
|
|
292
|
-
* The converted member, if any.
|
|
293
|
-
*/
|
|
294
|
-
interface Member {
|
|
295
|
-
/**
|
|
296
|
-
* The ID of the member
|
|
297
|
-
*/
|
|
298
|
-
id: string;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* The access pass the lead is interested in, if available.
|
|
302
|
-
*/
|
|
303
|
-
interface Product {
|
|
304
|
-
/**
|
|
305
|
-
* The internal ID of the public product.
|
|
306
|
-
*/
|
|
307
|
-
id: string;
|
|
308
|
-
/**
|
|
309
|
-
* The title of the product. Use for Whop 4.0.
|
|
310
|
-
*/
|
|
311
|
-
title: string;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* The user who is the lead.
|
|
315
|
-
*/
|
|
316
|
-
interface User {
|
|
317
|
-
/**
|
|
318
|
-
* The internal ID of the user.
|
|
150
|
+
* The unique identifier for the user.
|
|
319
151
|
*/
|
|
320
152
|
id: string;
|
|
321
153
|
/**
|
|
@@ -337,11 +169,11 @@ export declare namespace LeadUpdateResponse {
|
|
|
337
169
|
*/
|
|
338
170
|
export interface LeadListResponse {
|
|
339
171
|
/**
|
|
340
|
-
* The
|
|
172
|
+
* The unique identifier for the lead.
|
|
341
173
|
*/
|
|
342
174
|
id: string;
|
|
343
175
|
/**
|
|
344
|
-
* The
|
|
176
|
+
* The datetime the lead was created.
|
|
345
177
|
*/
|
|
346
178
|
created_at: string;
|
|
347
179
|
/**
|
|
@@ -363,7 +195,7 @@ export interface LeadListResponse {
|
|
|
363
195
|
*/
|
|
364
196
|
referrer: string | null;
|
|
365
197
|
/**
|
|
366
|
-
* The
|
|
198
|
+
* The datetime the lead was last updated.
|
|
367
199
|
*/
|
|
368
200
|
updated_at: string;
|
|
369
201
|
/**
|
|
@@ -377,7 +209,7 @@ export declare namespace LeadListResponse {
|
|
|
377
209
|
*/
|
|
378
210
|
interface Member {
|
|
379
211
|
/**
|
|
380
|
-
* The
|
|
212
|
+
* The unique identifier for the company member.
|
|
381
213
|
*/
|
|
382
214
|
id: string;
|
|
383
215
|
}
|
|
@@ -386,7 +218,7 @@ export declare namespace LeadListResponse {
|
|
|
386
218
|
*/
|
|
387
219
|
interface Product {
|
|
388
220
|
/**
|
|
389
|
-
* The
|
|
221
|
+
* The unique identifier for the product.
|
|
390
222
|
*/
|
|
391
223
|
id: string;
|
|
392
224
|
/**
|
|
@@ -399,7 +231,7 @@ export declare namespace LeadListResponse {
|
|
|
399
231
|
*/
|
|
400
232
|
interface User {
|
|
401
233
|
/**
|
|
402
|
-
* The
|
|
234
|
+
* The unique identifier for the user.
|
|
403
235
|
*/
|
|
404
236
|
id: string;
|
|
405
237
|
/**
|
|
@@ -484,6 +316,6 @@ export interface LeadListParams extends CursorPageParams {
|
|
|
484
316
|
product_ids?: Array<string> | null;
|
|
485
317
|
}
|
|
486
318
|
export declare namespace Leads {
|
|
487
|
-
export { type
|
|
319
|
+
export { type Lead as Lead, type LeadListResponse as LeadListResponse, type LeadListResponsesCursorPage as LeadListResponsesCursorPage, type LeadCreateParams as LeadCreateParams, type LeadUpdateParams as LeadUpdateParams, type LeadListParams as LeadListParams, };
|
|
488
320
|
}
|
|
489
321
|
//# sourceMappingURL=leads.d.ts.map
|
package/resources/leads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../src/resources/leads.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,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"leads.d.ts","sourceRoot":"","sources":["../src/resources/leads.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,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAI1E;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as Shared from "./shared.mjs";
|
|
3
|
+
import * as VerificationsAPI from "./verifications.mjs";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
6
|
export declare class LedgerAccounts extends APIResource {
|
|
@@ -18,7 +19,7 @@ export declare class LedgerAccounts extends APIResource {
|
|
|
18
19
|
*/
|
|
19
20
|
export interface LedgerAccountRetrieveResponse {
|
|
20
21
|
/**
|
|
21
|
-
* The
|
|
22
|
+
* The unique identifier for the ledger account.
|
|
22
23
|
*/
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
@@ -69,11 +70,12 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
69
70
|
reserve_balance: number;
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
74
|
+
* social connections.
|
|
73
75
|
*/
|
|
74
76
|
interface User {
|
|
75
77
|
/**
|
|
76
|
-
* The
|
|
78
|
+
* The unique identifier for the user.
|
|
77
79
|
*/
|
|
78
80
|
id: string;
|
|
79
81
|
/**
|
|
@@ -90,11 +92,12 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
90
92
|
username: string;
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
|
-
*
|
|
95
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
96
|
+
* receive payouts.
|
|
94
97
|
*/
|
|
95
98
|
interface Company {
|
|
96
99
|
/**
|
|
97
|
-
* The
|
|
100
|
+
* The unique identifier for the company.
|
|
98
101
|
*/
|
|
99
102
|
id: string;
|
|
100
103
|
/**
|
|
@@ -115,7 +118,7 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
115
118
|
*/
|
|
116
119
|
interface PayoutAccountDetails {
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* The unique identifier for the payout account.
|
|
119
122
|
*/
|
|
120
123
|
id: string;
|
|
121
124
|
/**
|
|
@@ -200,13 +203,13 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
200
203
|
*/
|
|
201
204
|
interface LatestVerification {
|
|
202
205
|
/**
|
|
203
|
-
*
|
|
206
|
+
* The unique identifier for the verification.
|
|
204
207
|
*/
|
|
205
208
|
id: string;
|
|
206
209
|
/**
|
|
207
210
|
* An error code for a verification attempt.
|
|
208
211
|
*/
|
|
209
|
-
last_error_code:
|
|
212
|
+
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
210
213
|
/**
|
|
211
214
|
* The last error reason that occurred during the verification.
|
|
212
215
|
*/
|
|
@@ -214,7 +217,7 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
214
217
|
/**
|
|
215
218
|
* The status of the verification.
|
|
216
219
|
*/
|
|
217
|
-
status:
|
|
220
|
+
status: VerificationsAPI.VerificationStatus;
|
|
218
221
|
}
|
|
219
222
|
}
|
|
220
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts.d.mts","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEvD;;OAEG;IACH,WAAW,EAAE,SAAS,GAAG,MAAM,CA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@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as Shared from "./shared.js";
|
|
3
|
+
import * as VerificationsAPI from "./verifications.js";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
5
6
|
export declare class LedgerAccounts extends APIResource {
|
|
@@ -18,7 +19,7 @@ export declare class LedgerAccounts extends APIResource {
|
|
|
18
19
|
*/
|
|
19
20
|
export interface LedgerAccountRetrieveResponse {
|
|
20
21
|
/**
|
|
21
|
-
* The
|
|
22
|
+
* The unique identifier for the ledger account.
|
|
22
23
|
*/
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
@@ -69,11 +70,12 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
69
70
|
reserve_balance: number;
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
74
|
+
* social connections.
|
|
73
75
|
*/
|
|
74
76
|
interface User {
|
|
75
77
|
/**
|
|
76
|
-
* The
|
|
78
|
+
* The unique identifier for the user.
|
|
77
79
|
*/
|
|
78
80
|
id: string;
|
|
79
81
|
/**
|
|
@@ -90,11 +92,12 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
90
92
|
username: string;
|
|
91
93
|
}
|
|
92
94
|
/**
|
|
93
|
-
*
|
|
95
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
96
|
+
* receive payouts.
|
|
94
97
|
*/
|
|
95
98
|
interface Company {
|
|
96
99
|
/**
|
|
97
|
-
* The
|
|
100
|
+
* The unique identifier for the company.
|
|
98
101
|
*/
|
|
99
102
|
id: string;
|
|
100
103
|
/**
|
|
@@ -115,7 +118,7 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
115
118
|
*/
|
|
116
119
|
interface PayoutAccountDetails {
|
|
117
120
|
/**
|
|
118
|
-
*
|
|
121
|
+
* The unique identifier for the payout account.
|
|
119
122
|
*/
|
|
120
123
|
id: string;
|
|
121
124
|
/**
|
|
@@ -200,13 +203,13 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
200
203
|
*/
|
|
201
204
|
interface LatestVerification {
|
|
202
205
|
/**
|
|
203
|
-
*
|
|
206
|
+
* The unique identifier for the verification.
|
|
204
207
|
*/
|
|
205
208
|
id: string;
|
|
206
209
|
/**
|
|
207
210
|
* An error code for a verification attempt.
|
|
208
211
|
*/
|
|
209
|
-
last_error_code:
|
|
212
|
+
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
210
213
|
/**
|
|
211
214
|
* The last error reason that occurred during the verification.
|
|
212
215
|
*/
|
|
@@ -214,7 +217,7 @@ export declare namespace LedgerAccountRetrieveResponse {
|
|
|
214
217
|
/**
|
|
215
218
|
* The status of the verification.
|
|
216
219
|
*/
|
|
217
|
-
status:
|
|
220
|
+
status: VerificationsAPI.VerificationStatus;
|
|
218
221
|
}
|
|
219
222
|
}
|
|
220
223
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts.d.ts","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAEvD;;OAEG;IACH,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;IAEhC;;OAEG;IACH,K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|
-
{"version":3,"file":"ledger-accounts.js","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"ledger-accounts.js","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAZD,wCAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts.mjs","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"ledger-accounts.mjs","sourceRoot":"","sources":["../src/resources/ledger-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
package/resources/members.d.mts
CHANGED
|
@@ -23,7 +23,7 @@ export declare class Members extends APIResource {
|
|
|
23
23
|
* - `member:email:read`
|
|
24
24
|
* - `member:phone:read`
|
|
25
25
|
*/
|
|
26
|
-
list(query
|
|
26
|
+
list(query?: MemberListParams | null | undefined, options?: RequestOptions): PagePromise<MemberListResponsesCursorPage, MemberListResponse>;
|
|
27
27
|
}
|
|
28
28
|
export type MemberListResponsesCursorPage = CursorPage<MemberListResponse>;
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ export type MemberListResponsesCursorPage = CursorPage<MemberListResponse>;
|
|
|
33
33
|
*/
|
|
34
34
|
export interface MemberRetrieveResponse {
|
|
35
35
|
/**
|
|
36
|
-
* The
|
|
36
|
+
* The unique identifier for the company member.
|
|
37
37
|
*/
|
|
38
38
|
id: string;
|
|
39
39
|
/**
|
|
@@ -52,7 +52,7 @@ export interface MemberRetrieveResponse {
|
|
|
52
52
|
*/
|
|
53
53
|
company_token_balance: number;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* The datetime the company member was created.
|
|
56
56
|
*/
|
|
57
57
|
created_at: string;
|
|
58
58
|
/**
|
|
@@ -76,7 +76,7 @@ export interface MemberRetrieveResponse {
|
|
|
76
76
|
*/
|
|
77
77
|
status: Shared.MemberStatuses;
|
|
78
78
|
/**
|
|
79
|
-
* The
|
|
79
|
+
* The datetime the company member was last updated.
|
|
80
80
|
*/
|
|
81
81
|
updated_at: string;
|
|
82
82
|
/**
|
|
@@ -94,7 +94,7 @@ export declare namespace MemberRetrieveResponse {
|
|
|
94
94
|
*/
|
|
95
95
|
interface Company {
|
|
96
96
|
/**
|
|
97
|
-
* The
|
|
97
|
+
* The unique identifier for the company.
|
|
98
98
|
*/
|
|
99
99
|
id: string;
|
|
100
100
|
/**
|
|
@@ -111,7 +111,7 @@ export declare namespace MemberRetrieveResponse {
|
|
|
111
111
|
*/
|
|
112
112
|
interface User {
|
|
113
113
|
/**
|
|
114
|
-
* The
|
|
114
|
+
* The unique identifier for the company member user.
|
|
115
115
|
*/
|
|
116
116
|
id: string;
|
|
117
117
|
/**
|
|
@@ -135,7 +135,7 @@ export declare namespace MemberRetrieveResponse {
|
|
|
135
135
|
*/
|
|
136
136
|
export interface MemberListResponse {
|
|
137
137
|
/**
|
|
138
|
-
* The
|
|
138
|
+
* The unique identifier for the company member.
|
|
139
139
|
*/
|
|
140
140
|
id: string;
|
|
141
141
|
/**
|
|
@@ -150,7 +150,7 @@ export interface MemberListResponse {
|
|
|
150
150
|
*/
|
|
151
151
|
company_token_balance: number;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* The datetime the company member was created.
|
|
154
154
|
*/
|
|
155
155
|
created_at: string;
|
|
156
156
|
/**
|
|
@@ -174,7 +174,7 @@ export interface MemberListResponse {
|
|
|
174
174
|
*/
|
|
175
175
|
status: Shared.MemberStatuses;
|
|
176
176
|
/**
|
|
177
|
-
* The
|
|
177
|
+
* The datetime the company member was last updated.
|
|
178
178
|
*/
|
|
179
179
|
updated_at: string;
|
|
180
180
|
/**
|
|
@@ -192,7 +192,7 @@ export declare namespace MemberListResponse {
|
|
|
192
192
|
*/
|
|
193
193
|
interface User {
|
|
194
194
|
/**
|
|
195
|
-
* The
|
|
195
|
+
* The unique identifier for the company member user.
|
|
196
196
|
*/
|
|
197
197
|
id: string;
|
|
198
198
|
/**
|
|
@@ -210,10 +210,6 @@ export declare namespace MemberListResponse {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
export interface MemberListParams extends CursorPageParams {
|
|
213
|
-
/**
|
|
214
|
-
* The ID of the company to list members for
|
|
215
|
-
*/
|
|
216
|
-
company_id: string;
|
|
217
213
|
/**
|
|
218
214
|
* The access level a given user (or company) has to a product or company.
|
|
219
215
|
*/
|
|
@@ -222,6 +218,10 @@ export interface MemberListParams extends CursorPageParams {
|
|
|
222
218
|
* Returns the elements in the list that come before the specified cursor.
|
|
223
219
|
*/
|
|
224
220
|
before?: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* The ID of the company to list members for
|
|
223
|
+
*/
|
|
224
|
+
company_id?: string | null;
|
|
225
225
|
/**
|
|
226
226
|
* The minimum creation date to filter by
|
|
227
227
|
*/
|