@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/companies.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ import { CursorPage, type CursorPageParams, PagePromise } from "../core/paginati
|
|
|
5
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
6
|
export declare class Companies extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Create a new
|
|
8
|
+
* Create a new company. Pass parent_company_id to create a sub-company under a
|
|
9
|
+
* platform, or omit it to create a company for the current user.
|
|
9
10
|
*
|
|
10
11
|
* Required permissions:
|
|
11
12
|
*
|
|
12
|
-
* - `company:
|
|
13
|
+
* - `company:create`
|
|
13
14
|
* - `company:basic:read`
|
|
14
15
|
*/
|
|
15
16
|
create(body: CompanyCreateParams, options?: RequestOptions): APIPromise<Shared.Company>;
|
|
@@ -32,21 +33,24 @@ export declare class Companies extends APIResource {
|
|
|
32
33
|
*/
|
|
33
34
|
update(id: string, body?: CompanyUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Shared.Company>;
|
|
34
35
|
/**
|
|
35
|
-
* Lists companies
|
|
36
|
+
* Lists companies. When parent_company_id is provided, lists connected accounts
|
|
37
|
+
* under that company. When omitted, lists companies the current user has access
|
|
38
|
+
* to.
|
|
36
39
|
*
|
|
37
40
|
* Required permissions:
|
|
38
41
|
*
|
|
39
42
|
* - `company:basic:read`
|
|
40
43
|
*/
|
|
41
|
-
list(query
|
|
44
|
+
list(query?: CompanyListParams | null | undefined, options?: RequestOptions): PagePromise<CompanyListResponsesCursorPage, CompanyListResponse>;
|
|
42
45
|
}
|
|
43
46
|
export type CompanyListResponsesCursorPage = CursorPage<CompanyListResponse>;
|
|
44
47
|
/**
|
|
45
|
-
*
|
|
48
|
+
* A company is a seller on Whop. Companies own products, manage members, and
|
|
49
|
+
* receive payouts.
|
|
46
50
|
*/
|
|
47
51
|
export interface CompanyListResponse {
|
|
48
52
|
/**
|
|
49
|
-
* The
|
|
53
|
+
* The unique identifier for the company.
|
|
50
54
|
*/
|
|
51
55
|
id: string;
|
|
52
56
|
/**
|
|
@@ -54,7 +58,7 @@ export interface CompanyListResponse {
|
|
|
54
58
|
*/
|
|
55
59
|
business_type: Shared.BusinessTypes | null;
|
|
56
60
|
/**
|
|
57
|
-
*
|
|
61
|
+
* The datetime the company was created.
|
|
58
62
|
*/
|
|
59
63
|
created_at: string;
|
|
60
64
|
/**
|
|
@@ -101,7 +105,7 @@ export interface CompanyListResponse {
|
|
|
101
105
|
*/
|
|
102
106
|
title: string;
|
|
103
107
|
/**
|
|
104
|
-
* The
|
|
108
|
+
* The datetime the company was last updated.
|
|
105
109
|
*/
|
|
106
110
|
updated_at: string;
|
|
107
111
|
/**
|
|
@@ -125,7 +129,7 @@ export declare namespace CompanyListResponse {
|
|
|
125
129
|
*/
|
|
126
130
|
interface OwnerUser {
|
|
127
131
|
/**
|
|
128
|
-
* The
|
|
132
|
+
* The unique identifier for the user.
|
|
129
133
|
*/
|
|
130
134
|
id: string;
|
|
131
135
|
/**
|
|
@@ -139,14 +143,6 @@ export declare namespace CompanyListResponse {
|
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
145
|
export interface CompanyCreateParams {
|
|
142
|
-
/**
|
|
143
|
-
* The email of the user who the company will belong to.
|
|
144
|
-
*/
|
|
145
|
-
email: string;
|
|
146
|
-
/**
|
|
147
|
-
* The company ID of the platform creating this company.
|
|
148
|
-
*/
|
|
149
|
-
parent_company_id: string;
|
|
150
146
|
/**
|
|
151
147
|
* The name of the company being created.
|
|
152
148
|
*/
|
|
@@ -155,6 +151,15 @@ export interface CompanyCreateParams {
|
|
|
155
151
|
* The different business types a company can be.
|
|
156
152
|
*/
|
|
157
153
|
business_type?: Shared.BusinessTypes | null;
|
|
154
|
+
/**
|
|
155
|
+
* A description of what the company offers or does.
|
|
156
|
+
*/
|
|
157
|
+
description?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* The email of the user who the sub-company will belong to. Required when
|
|
160
|
+
* parent_company_id is provided.
|
|
161
|
+
*/
|
|
162
|
+
email?: string | null;
|
|
158
163
|
/**
|
|
159
164
|
* The different industry types a company can be in.
|
|
160
165
|
*/
|
|
@@ -164,16 +169,19 @@ export interface CompanyCreateParams {
|
|
|
164
169
|
*/
|
|
165
170
|
logo?: CompanyCreateParams.Logo | null;
|
|
166
171
|
/**
|
|
167
|
-
* Additional metadata for the
|
|
172
|
+
* Additional metadata for the company
|
|
168
173
|
*/
|
|
169
174
|
metadata?: {
|
|
170
175
|
[key: string]: unknown;
|
|
171
176
|
} | null;
|
|
177
|
+
/**
|
|
178
|
+
* The company ID of the platform creating this sub-company. If omitted, the
|
|
179
|
+
* company is created for the current user.
|
|
180
|
+
*/
|
|
181
|
+
parent_company_id?: string | null;
|
|
172
182
|
/**
|
|
173
183
|
* Whether Whop sends transactional emails to customers on behalf of this company.
|
|
174
|
-
*
|
|
175
|
-
* renewals, and membership cancelations/expirations. When disabled, the platform
|
|
176
|
-
* is responsible for handling these communications. This is defaulted to true.
|
|
184
|
+
* Only used when parent_company_id is provided.
|
|
177
185
|
*/
|
|
178
186
|
send_customer_emails?: boolean | null;
|
|
179
187
|
}
|
|
@@ -197,6 +205,10 @@ export interface CompanyUpdateParams {
|
|
|
197
205
|
* The different business types a company can be.
|
|
198
206
|
*/
|
|
199
207
|
business_type?: Shared.BusinessTypes | null;
|
|
208
|
+
/**
|
|
209
|
+
* A description of what the company offers or does.
|
|
210
|
+
*/
|
|
211
|
+
description?: string | null;
|
|
200
212
|
/**
|
|
201
213
|
* The different industry types a company can be in.
|
|
202
214
|
*/
|
|
@@ -238,10 +250,6 @@ export declare namespace CompanyUpdateParams {
|
|
|
238
250
|
}
|
|
239
251
|
}
|
|
240
252
|
export interface CompanyListParams extends CursorPageParams {
|
|
241
|
-
/**
|
|
242
|
-
* The ID of the parent company to list connected accounts for
|
|
243
|
-
*/
|
|
244
|
-
parent_company_id: string;
|
|
245
253
|
/**
|
|
246
254
|
* Returns the elements in the list that come before the specified cursor.
|
|
247
255
|
*/
|
|
@@ -266,6 +274,11 @@ export interface CompanyListParams extends CursorPageParams {
|
|
|
266
274
|
* Returns the last _n_ elements from the list.
|
|
267
275
|
*/
|
|
268
276
|
last?: number | null;
|
|
277
|
+
/**
|
|
278
|
+
* The ID of the parent company to list connected accounts for. Omit to list the
|
|
279
|
+
* current user's own companies.
|
|
280
|
+
*/
|
|
281
|
+
parent_company_id?: string | null;
|
|
269
282
|
}
|
|
270
283
|
export declare namespace Companies {
|
|
271
284
|
export { type CompanyListResponse as CompanyListResponse, type CompanyListResponsesCursorPage as CompanyListResponsesCursorPage, type CompanyCreateParams as CompanyCreateParams, type CompanyUpdateParams as CompanyUpdateParams, type CompanyListParams as CompanyListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OACl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AE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/companies.js
CHANGED
|
@@ -7,11 +7,12 @@ const pagination_1 = require("../core/pagination.js");
|
|
|
7
7
|
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class Companies extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Create a new
|
|
10
|
+
* Create a new company. Pass parent_company_id to create a sub-company under a
|
|
11
|
+
* platform, or omit it to create a company for the current user.
|
|
11
12
|
*
|
|
12
13
|
* Required permissions:
|
|
13
14
|
*
|
|
14
|
-
* - `company:
|
|
15
|
+
* - `company:create`
|
|
15
16
|
* - `company:basic:read`
|
|
16
17
|
*/
|
|
17
18
|
create(body, options) {
|
|
@@ -40,13 +41,15 @@ class Companies extends resource_1.APIResource {
|
|
|
40
41
|
return this._client.patch((0, path_1.path) `/companies/${id}`, { body, ...options });
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
|
-
* Lists companies
|
|
44
|
+
* Lists companies. When parent_company_id is provided, lists connected accounts
|
|
45
|
+
* under that company. When omitted, lists companies the current user has access
|
|
46
|
+
* to.
|
|
44
47
|
*
|
|
45
48
|
* Required permissions:
|
|
46
49
|
*
|
|
47
50
|
* - `company:basic:read`
|
|
48
51
|
*/
|
|
49
|
-
list(query, options) {
|
|
52
|
+
list(query = {}, options) {
|
|
50
53
|
return this._client.getAPIList('/companies', (pagination_1.CursorPage), { query, ...options });
|
|
51
54
|
}
|
|
52
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"companies.js","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAzDD,8BAyDC"}
|
package/resources/companies.mjs
CHANGED
|
@@ -4,11 +4,12 @@ import { CursorPage } from "../core/pagination.mjs";
|
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class Companies extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Create a new
|
|
7
|
+
* Create a new company. Pass parent_company_id to create a sub-company under a
|
|
8
|
+
* platform, or omit it to create a company for the current user.
|
|
8
9
|
*
|
|
9
10
|
* Required permissions:
|
|
10
11
|
*
|
|
11
|
-
* - `company:
|
|
12
|
+
* - `company:create`
|
|
12
13
|
* - `company:basic:read`
|
|
13
14
|
*/
|
|
14
15
|
create(body, options) {
|
|
@@ -37,13 +38,15 @@ export class Companies extends APIResource {
|
|
|
37
38
|
return this._client.patch(path `/companies/${id}`, { body, ...options });
|
|
38
39
|
}
|
|
39
40
|
/**
|
|
40
|
-
* Lists companies
|
|
41
|
+
* Lists companies. When parent_company_id is provided, lists connected accounts
|
|
42
|
+
* under that company. When omitted, lists companies the current user has access
|
|
43
|
+
* to.
|
|
41
44
|
*
|
|
42
45
|
* Required permissions:
|
|
43
46
|
*
|
|
44
47
|
* - `company:basic:read`
|
|
45
48
|
*/
|
|
46
|
-
list(query, options) {
|
|
49
|
+
list(query = {}, options) {
|
|
47
50
|
return this._client.getAPIList('/companies', (CursorPage), { query, ...options });
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"companies.mjs","sourceRoot":"","sources":["../src/resources/companies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE,CAAA,UAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -24,7 +24,7 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
24
24
|
* });
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
|
-
create(body: CompanyTokenTransactionCreateParams, options?: RequestOptions): APIPromise<
|
|
27
|
+
create(body: CompanyTokenTransactionCreateParams, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
28
28
|
/**
|
|
29
29
|
* Retrieves a token transaction by ID
|
|
30
30
|
*
|
|
@@ -34,7 +34,7 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
34
34
|
* - `member:basic:read`
|
|
35
35
|
* - `company:basic:read`
|
|
36
36
|
*/
|
|
37
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
37
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CompanyTokenTransaction>;
|
|
38
38
|
/**
|
|
39
39
|
* Lists token transactions for a company
|
|
40
40
|
*
|
|
@@ -48,101 +48,15 @@ export declare class CompanyTokenTransactions extends APIResource {
|
|
|
48
48
|
}
|
|
49
49
|
export type CompanyTokenTransactionListResponsesCursorPage = CursorPage<CompanyTokenTransactionListResponse>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* The type of token transaction
|
|
52
52
|
*/
|
|
53
|
-
export
|
|
54
|
-
/**
|
|
55
|
-
* The ID of the transaction
|
|
56
|
-
*/
|
|
57
|
-
id: string;
|
|
58
|
-
/**
|
|
59
|
-
* The transaction amount (always positive)
|
|
60
|
-
*/
|
|
61
|
-
amount: number;
|
|
62
|
-
/**
|
|
63
|
-
* The company
|
|
64
|
-
*/
|
|
65
|
-
company: CompanyTokenTransactionCreateResponse.Company;
|
|
66
|
-
/**
|
|
67
|
-
* When the transaction was created
|
|
68
|
-
*/
|
|
69
|
-
created_at: string;
|
|
70
|
-
/**
|
|
71
|
-
* Optional description
|
|
72
|
-
*/
|
|
73
|
-
description: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Optional idempotency key to prevent duplicate transactions
|
|
76
|
-
*/
|
|
77
|
-
idempotency_key: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* For transfers, the ID of the linked transaction
|
|
80
|
-
*/
|
|
81
|
-
linked_transaction_id: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* The member
|
|
84
|
-
*/
|
|
85
|
-
member: CompanyTokenTransactionCreateResponse.Member;
|
|
86
|
-
/**
|
|
87
|
-
* The type of transaction
|
|
88
|
-
*/
|
|
89
|
-
transaction_type: 'add' | 'subtract' | 'transfer';
|
|
90
|
-
/**
|
|
91
|
-
* The user whose balance changed
|
|
92
|
-
*/
|
|
93
|
-
user: CompanyTokenTransactionCreateResponse.User;
|
|
94
|
-
}
|
|
95
|
-
export declare namespace CompanyTokenTransactionCreateResponse {
|
|
96
|
-
/**
|
|
97
|
-
* The company
|
|
98
|
-
*/
|
|
99
|
-
interface Company {
|
|
100
|
-
/**
|
|
101
|
-
* The ID of the company
|
|
102
|
-
*/
|
|
103
|
-
id: string;
|
|
104
|
-
/**
|
|
105
|
-
* The slug/route of the company on the Whop site.
|
|
106
|
-
*/
|
|
107
|
-
route: string;
|
|
108
|
-
/**
|
|
109
|
-
* The written name of the company.
|
|
110
|
-
*/
|
|
111
|
-
title: string;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* The member
|
|
115
|
-
*/
|
|
116
|
-
interface Member {
|
|
117
|
-
/**
|
|
118
|
-
* The ID of the member
|
|
119
|
-
*/
|
|
120
|
-
id: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The user whose balance changed
|
|
124
|
-
*/
|
|
125
|
-
interface User {
|
|
126
|
-
/**
|
|
127
|
-
* The internal ID of the user.
|
|
128
|
-
*/
|
|
129
|
-
id: string;
|
|
130
|
-
/**
|
|
131
|
-
* The name of the user from their Whop account.
|
|
132
|
-
*/
|
|
133
|
-
name: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* The username of the user from their Whop account.
|
|
136
|
-
*/
|
|
137
|
-
username: string;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
53
|
+
export type BotTokenTransactionTypes = 'add' | 'subtract' | 'transfer';
|
|
140
54
|
/**
|
|
141
55
|
* A token transaction within a company
|
|
142
56
|
*/
|
|
143
|
-
export interface
|
|
57
|
+
export interface CompanyTokenTransaction {
|
|
144
58
|
/**
|
|
145
|
-
* The
|
|
59
|
+
* The unique identifier for the company token transaction.
|
|
146
60
|
*/
|
|
147
61
|
id: string;
|
|
148
62
|
/**
|
|
@@ -152,9 +66,9 @@ export interface CompanyTokenTransactionRetrieveResponse {
|
|
|
152
66
|
/**
|
|
153
67
|
* The company
|
|
154
68
|
*/
|
|
155
|
-
company:
|
|
69
|
+
company: CompanyTokenTransaction.Company;
|
|
156
70
|
/**
|
|
157
|
-
*
|
|
71
|
+
* The datetime the company token transaction was created.
|
|
158
72
|
*/
|
|
159
73
|
created_at: string;
|
|
160
74
|
/**
|
|
@@ -172,23 +86,23 @@ export interface CompanyTokenTransactionRetrieveResponse {
|
|
|
172
86
|
/**
|
|
173
87
|
* The member
|
|
174
88
|
*/
|
|
175
|
-
member:
|
|
89
|
+
member: CompanyTokenTransaction.Member;
|
|
176
90
|
/**
|
|
177
91
|
* The type of transaction
|
|
178
92
|
*/
|
|
179
|
-
transaction_type:
|
|
93
|
+
transaction_type: BotTokenTransactionTypes;
|
|
180
94
|
/**
|
|
181
95
|
* The user whose balance changed
|
|
182
96
|
*/
|
|
183
|
-
user:
|
|
97
|
+
user: CompanyTokenTransaction.User;
|
|
184
98
|
}
|
|
185
|
-
export declare namespace
|
|
99
|
+
export declare namespace CompanyTokenTransaction {
|
|
186
100
|
/**
|
|
187
101
|
* The company
|
|
188
102
|
*/
|
|
189
103
|
interface Company {
|
|
190
104
|
/**
|
|
191
|
-
* The
|
|
105
|
+
* The unique identifier for the company.
|
|
192
106
|
*/
|
|
193
107
|
id: string;
|
|
194
108
|
/**
|
|
@@ -205,7 +119,7 @@ export declare namespace CompanyTokenTransactionRetrieveResponse {
|
|
|
205
119
|
*/
|
|
206
120
|
interface Member {
|
|
207
121
|
/**
|
|
208
|
-
* The
|
|
122
|
+
* The unique identifier for the company member.
|
|
209
123
|
*/
|
|
210
124
|
id: string;
|
|
211
125
|
}
|
|
@@ -214,7 +128,7 @@ export declare namespace CompanyTokenTransactionRetrieveResponse {
|
|
|
214
128
|
*/
|
|
215
129
|
interface User {
|
|
216
130
|
/**
|
|
217
|
-
* The
|
|
131
|
+
* The unique identifier for the user.
|
|
218
132
|
*/
|
|
219
133
|
id: string;
|
|
220
134
|
/**
|
|
@@ -232,7 +146,7 @@ export declare namespace CompanyTokenTransactionRetrieveResponse {
|
|
|
232
146
|
*/
|
|
233
147
|
export interface CompanyTokenTransactionListResponse {
|
|
234
148
|
/**
|
|
235
|
-
* The
|
|
149
|
+
* The unique identifier for the company token transaction.
|
|
236
150
|
*/
|
|
237
151
|
id: string;
|
|
238
152
|
/**
|
|
@@ -244,7 +158,7 @@ export interface CompanyTokenTransactionListResponse {
|
|
|
244
158
|
*/
|
|
245
159
|
company: CompanyTokenTransactionListResponse.Company;
|
|
246
160
|
/**
|
|
247
|
-
*
|
|
161
|
+
* The datetime the company token transaction was created.
|
|
248
162
|
*/
|
|
249
163
|
created_at: string;
|
|
250
164
|
/**
|
|
@@ -266,7 +180,7 @@ export interface CompanyTokenTransactionListResponse {
|
|
|
266
180
|
/**
|
|
267
181
|
* The type of transaction
|
|
268
182
|
*/
|
|
269
|
-
transaction_type:
|
|
183
|
+
transaction_type: BotTokenTransactionTypes;
|
|
270
184
|
/**
|
|
271
185
|
* The user whose balance changed
|
|
272
186
|
*/
|
|
@@ -278,7 +192,7 @@ export declare namespace CompanyTokenTransactionListResponse {
|
|
|
278
192
|
*/
|
|
279
193
|
interface Company {
|
|
280
194
|
/**
|
|
281
|
-
* The
|
|
195
|
+
* The unique identifier for the company.
|
|
282
196
|
*/
|
|
283
197
|
id: string;
|
|
284
198
|
/**
|
|
@@ -295,7 +209,7 @@ export declare namespace CompanyTokenTransactionListResponse {
|
|
|
295
209
|
*/
|
|
296
210
|
interface Member {
|
|
297
211
|
/**
|
|
298
|
-
* The
|
|
212
|
+
* The unique identifier for the company member.
|
|
299
213
|
*/
|
|
300
214
|
id: string;
|
|
301
215
|
}
|
|
@@ -304,7 +218,7 @@ export declare namespace CompanyTokenTransactionListResponse {
|
|
|
304
218
|
*/
|
|
305
219
|
interface User {
|
|
306
220
|
/**
|
|
307
|
-
* The
|
|
221
|
+
* The unique identifier for the user.
|
|
308
222
|
*/
|
|
309
223
|
id: string;
|
|
310
224
|
/**
|
|
@@ -413,13 +327,13 @@ export interface CompanyTokenTransactionListParams extends CursorPageParams {
|
|
|
413
327
|
/**
|
|
414
328
|
* The type of token transaction
|
|
415
329
|
*/
|
|
416
|
-
transaction_type?:
|
|
330
|
+
transaction_type?: BotTokenTransactionTypes | null;
|
|
417
331
|
/**
|
|
418
332
|
* Filter by user ID
|
|
419
333
|
*/
|
|
420
334
|
user_id?: string | null;
|
|
421
335
|
}
|
|
422
336
|
export declare namespace CompanyTokenTransactions {
|
|
423
|
-
export { type
|
|
337
|
+
export { type BotTokenTransactionTypes as BotTokenTransactionTypes, type CompanyTokenTransaction as CompanyTokenTransaction, type CompanyTokenTransactionListResponse as CompanyTokenTransactionListResponse, type CompanyTokenTransactionListResponsesCursorPage as CompanyTokenTransactionListResponsesCursorPage, type CompanyTokenTransactionCreateParams as CompanyTokenTransactionCreateParams, type CompanyTokenTransactionListParams as CompanyTokenTransactionListParams, };
|
|
424
338
|
}
|
|
425
339
|
//# sourceMappingURL=company-token-transactions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.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,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"company-token-transactions.d.mts","sourceRoot":"","sources":["../src/resources/company-token-transactions.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,wBAAyB,SAAQ,WAAW;IACvD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,mCAAmC,CAAC;CAOpG;AAED,MAAM,MAAM,8CAA8C,GAAG,UAAU,CAAC,mCAAmC,CAAC,CAAC;AAE7G;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC;IAEzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,MAAM,EAA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