@whop/sdk 0.0.26 → 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 +37 -0
- package/client.d.mts +6 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -2
- package/client.js.map +1 -1
- package/client.mjs +9 -2
- package/client.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 +37 -9
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +37 -9
- 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 +6 -6
- package/resources/authorized-users.d.ts +6 -6
- 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 +10 -10
- package/resources/company-token-transactions.d.ts +10 -10
- 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/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 +2 -2
- package/resources/files.d.ts +2 -2
- 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 +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- 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 +12 -12
- package/resources/leads.d.ts +12 -12
- package/resources/ledger-accounts.d.mts +9 -7
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +9 -7
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -9
- package/resources/members.d.ts +9 -9
- package/resources/memberships.d.mts +17 -12
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +17 -12
- 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 +27 -20
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +27 -20
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +6 -6
- package/resources/payout-methods.d.ts +6 -6
- 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 +175 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -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 +1 -1
- package/resources/verifications.d.ts +1 -1
- package/resources/webhooks.d.mts +71 -57
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +71 -57
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/withdrawals.d.mts +15 -11
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +15 -11
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +20 -8
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +42 -9
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +6 -6
- 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 +10 -10
- 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/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +2 -2
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +12 -12
- package/src/resources/ledger-accounts.ts +9 -7
- package/src/resources/members.ts +9 -9
- package/src/resources/memberships.ts +18 -12
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +28 -18
- package/src/resources/payout-methods.ts +6 -6
- 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 +176 -137
- 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 +1 -1
- package/src/resources/webhooks.ts +71 -57
- package/src/resources/withdrawals.ts +15 -11
- 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/members.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -81,12 +81,12 @@ export type MembershipListResponsesCursorPage = CursorPage<MembershipListRespons
|
|
|
81
81
|
*/
|
|
82
82
|
export type CancelOptions = 'too_expensive' | 'switching' | 'missing_features' | 'technical_issues' | 'bad_experience' | 'other' | 'testing';
|
|
83
83
|
/**
|
|
84
|
-
* A membership represents
|
|
85
|
-
*
|
|
84
|
+
* A membership represents an active relationship between a user and a product. It
|
|
85
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
86
86
|
*/
|
|
87
87
|
export interface MembershipListResponse {
|
|
88
88
|
/**
|
|
89
|
-
* The
|
|
89
|
+
* The unique identifier for the membership.
|
|
90
90
|
*/
|
|
91
91
|
id: string;
|
|
92
92
|
/**
|
|
@@ -112,13 +112,17 @@ export interface MembershipListResponse {
|
|
|
112
112
|
*/
|
|
113
113
|
company: MembershipListResponse.Company;
|
|
114
114
|
/**
|
|
115
|
-
* The
|
|
115
|
+
* The datetime the membership was created.
|
|
116
116
|
*/
|
|
117
117
|
created_at: string;
|
|
118
118
|
/**
|
|
119
119
|
* The available currencies on the platform
|
|
120
120
|
*/
|
|
121
121
|
currency: Shared.Currency | null;
|
|
122
|
+
/**
|
|
123
|
+
* When the member joined the company.
|
|
124
|
+
*/
|
|
125
|
+
joined_at: string | null;
|
|
122
126
|
/**
|
|
123
127
|
* The license key for this Membership. This is only present if the membership
|
|
124
128
|
* grants access to an instance of the Whop Software app.
|
|
@@ -133,7 +137,8 @@ export interface MembershipListResponse {
|
|
|
133
137
|
*/
|
|
134
138
|
member: MembershipListResponse.Member | null;
|
|
135
139
|
/**
|
|
136
|
-
*
|
|
140
|
+
* Custom key-value pairs for the membership (commonly used for software licensing,
|
|
141
|
+
* e.g., HWID). Max 50 keys, 500 chars per key, 5000 chars per value.
|
|
137
142
|
*/
|
|
138
143
|
metadata: {
|
|
139
144
|
[key: string]: unknown;
|
|
@@ -169,7 +174,7 @@ export interface MembershipListResponse {
|
|
|
169
174
|
*/
|
|
170
175
|
status: Shared.MembershipStatus;
|
|
171
176
|
/**
|
|
172
|
-
*
|
|
177
|
+
* The datetime the membership was last updated.
|
|
173
178
|
*/
|
|
174
179
|
updated_at: string;
|
|
175
180
|
/**
|
|
@@ -183,7 +188,7 @@ export declare namespace MembershipListResponse {
|
|
|
183
188
|
*/
|
|
184
189
|
interface Company {
|
|
185
190
|
/**
|
|
186
|
-
* The
|
|
191
|
+
* The unique identifier for the company.
|
|
187
192
|
*/
|
|
188
193
|
id: string;
|
|
189
194
|
/**
|
|
@@ -196,7 +201,7 @@ export declare namespace MembershipListResponse {
|
|
|
196
201
|
*/
|
|
197
202
|
interface Member {
|
|
198
203
|
/**
|
|
199
|
-
* The
|
|
204
|
+
* The unique identifier for the member.
|
|
200
205
|
*/
|
|
201
206
|
id: string;
|
|
202
207
|
}
|
|
@@ -205,7 +210,7 @@ export declare namespace MembershipListResponse {
|
|
|
205
210
|
*/
|
|
206
211
|
interface Plan {
|
|
207
212
|
/**
|
|
208
|
-
* The
|
|
213
|
+
* The unique identifier for the plan.
|
|
209
214
|
*/
|
|
210
215
|
id: string;
|
|
211
216
|
}
|
|
@@ -214,7 +219,7 @@ export declare namespace MembershipListResponse {
|
|
|
214
219
|
*/
|
|
215
220
|
interface Product {
|
|
216
221
|
/**
|
|
217
|
-
* The
|
|
222
|
+
* The unique identifier for the product.
|
|
218
223
|
*/
|
|
219
224
|
id: string;
|
|
220
225
|
/**
|
|
@@ -227,7 +232,7 @@ export declare namespace MembershipListResponse {
|
|
|
227
232
|
*/
|
|
228
233
|
interface PromoCode {
|
|
229
234
|
/**
|
|
230
|
-
* The
|
|
235
|
+
* The unique identifier for the promo code.
|
|
231
236
|
*/
|
|
232
237
|
id: string;
|
|
233
238
|
}
|
|
@@ -236,7 +241,7 @@ export declare namespace MembershipListResponse {
|
|
|
236
241
|
*/
|
|
237
242
|
interface User {
|
|
238
243
|
/**
|
|
239
|
-
* The
|
|
244
|
+
* The unique identifier for the user.
|
|
240
245
|
*/
|
|
241
246
|
id: string;
|
|
242
247
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.d.mts","sourceRoot":"","sources":["../src/resources/memberships.ts"],"names":[],"mappings":"OAEO,EAAE,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,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -81,12 +81,12 @@ export type MembershipListResponsesCursorPage = CursorPage<MembershipListRespons
|
|
|
81
81
|
*/
|
|
82
82
|
export type CancelOptions = 'too_expensive' | 'switching' | 'missing_features' | 'technical_issues' | 'bad_experience' | 'other' | 'testing';
|
|
83
83
|
/**
|
|
84
|
-
* A membership represents
|
|
85
|
-
*
|
|
84
|
+
* A membership represents an active relationship between a user and a product. It
|
|
85
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
86
86
|
*/
|
|
87
87
|
export interface MembershipListResponse {
|
|
88
88
|
/**
|
|
89
|
-
* The
|
|
89
|
+
* The unique identifier for the membership.
|
|
90
90
|
*/
|
|
91
91
|
id: string;
|
|
92
92
|
/**
|
|
@@ -112,13 +112,17 @@ export interface MembershipListResponse {
|
|
|
112
112
|
*/
|
|
113
113
|
company: MembershipListResponse.Company;
|
|
114
114
|
/**
|
|
115
|
-
* The
|
|
115
|
+
* The datetime the membership was created.
|
|
116
116
|
*/
|
|
117
117
|
created_at: string;
|
|
118
118
|
/**
|
|
119
119
|
* The available currencies on the platform
|
|
120
120
|
*/
|
|
121
121
|
currency: Shared.Currency | null;
|
|
122
|
+
/**
|
|
123
|
+
* When the member joined the company.
|
|
124
|
+
*/
|
|
125
|
+
joined_at: string | null;
|
|
122
126
|
/**
|
|
123
127
|
* The license key for this Membership. This is only present if the membership
|
|
124
128
|
* grants access to an instance of the Whop Software app.
|
|
@@ -133,7 +137,8 @@ export interface MembershipListResponse {
|
|
|
133
137
|
*/
|
|
134
138
|
member: MembershipListResponse.Member | null;
|
|
135
139
|
/**
|
|
136
|
-
*
|
|
140
|
+
* Custom key-value pairs for the membership (commonly used for software licensing,
|
|
141
|
+
* e.g., HWID). Max 50 keys, 500 chars per key, 5000 chars per value.
|
|
137
142
|
*/
|
|
138
143
|
metadata: {
|
|
139
144
|
[key: string]: unknown;
|
|
@@ -169,7 +174,7 @@ export interface MembershipListResponse {
|
|
|
169
174
|
*/
|
|
170
175
|
status: Shared.MembershipStatus;
|
|
171
176
|
/**
|
|
172
|
-
*
|
|
177
|
+
* The datetime the membership was last updated.
|
|
173
178
|
*/
|
|
174
179
|
updated_at: string;
|
|
175
180
|
/**
|
|
@@ -183,7 +188,7 @@ export declare namespace MembershipListResponse {
|
|
|
183
188
|
*/
|
|
184
189
|
interface Company {
|
|
185
190
|
/**
|
|
186
|
-
* The
|
|
191
|
+
* The unique identifier for the company.
|
|
187
192
|
*/
|
|
188
193
|
id: string;
|
|
189
194
|
/**
|
|
@@ -196,7 +201,7 @@ export declare namespace MembershipListResponse {
|
|
|
196
201
|
*/
|
|
197
202
|
interface Member {
|
|
198
203
|
/**
|
|
199
|
-
* The
|
|
204
|
+
* The unique identifier for the member.
|
|
200
205
|
*/
|
|
201
206
|
id: string;
|
|
202
207
|
}
|
|
@@ -205,7 +210,7 @@ export declare namespace MembershipListResponse {
|
|
|
205
210
|
*/
|
|
206
211
|
interface Plan {
|
|
207
212
|
/**
|
|
208
|
-
* The
|
|
213
|
+
* The unique identifier for the plan.
|
|
209
214
|
*/
|
|
210
215
|
id: string;
|
|
211
216
|
}
|
|
@@ -214,7 +219,7 @@ export declare namespace MembershipListResponse {
|
|
|
214
219
|
*/
|
|
215
220
|
interface Product {
|
|
216
221
|
/**
|
|
217
|
-
* The
|
|
222
|
+
* The unique identifier for the product.
|
|
218
223
|
*/
|
|
219
224
|
id: string;
|
|
220
225
|
/**
|
|
@@ -227,7 +232,7 @@ export declare namespace MembershipListResponse {
|
|
|
227
232
|
*/
|
|
228
233
|
interface PromoCode {
|
|
229
234
|
/**
|
|
230
|
-
* The
|
|
235
|
+
* The unique identifier for the promo code.
|
|
231
236
|
*/
|
|
232
237
|
id: string;
|
|
233
238
|
}
|
|
@@ -236,7 +241,7 @@ export declare namespace MembershipListResponse {
|
|
|
236
241
|
*/
|
|
237
242
|
interface User {
|
|
238
243
|
/**
|
|
239
|
-
* The
|
|
244
|
+
* The unique identifier for the user.
|
|
240
245
|
*/
|
|
241
246
|
id: string;
|
|
242
247
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.d.ts","sourceRoot":"","sources":["../src/resources/memberships.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAI7E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAIhC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,sBAAsB,CAAC;IAIzE;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAIhC;;;;;;;;OAQG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC;IAIhC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,MA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EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/messages.d.mts
CHANGED
|
@@ -47,7 +47,11 @@ export type MessageListResponsesCursorPage = CursorPage<MessageListResponse>;
|
|
|
47
47
|
*/
|
|
48
48
|
export interface MessageListResponse {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
51
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
52
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
53
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
54
|
+
* input value will be accepted as an ID.
|
|
51
55
|
*/
|
|
52
56
|
id: string;
|
|
53
57
|
/**
|
|
@@ -115,7 +119,7 @@ export declare namespace MessageListResponse {
|
|
|
115
119
|
*/
|
|
116
120
|
interface Option {
|
|
117
121
|
/**
|
|
118
|
-
* The
|
|
122
|
+
* The unique identifier for the poll option.
|
|
119
123
|
*/
|
|
120
124
|
id: string;
|
|
121
125
|
/**
|
|
@@ -155,7 +159,7 @@ export declare namespace MessageListResponse {
|
|
|
155
159
|
*/
|
|
156
160
|
interface User {
|
|
157
161
|
/**
|
|
158
|
-
* The
|
|
162
|
+
* The unique identifier for the user.
|
|
159
163
|
*/
|
|
160
164
|
id: string;
|
|
161
165
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,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,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,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/messages.d.ts
CHANGED
|
@@ -47,7 +47,11 @@ export type MessageListResponsesCursorPage = CursorPage<MessageListResponse>;
|
|
|
47
47
|
*/
|
|
48
48
|
export interface MessageListResponse {
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
51
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
52
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
53
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
54
|
+
* input value will be accepted as an ID.
|
|
51
55
|
*/
|
|
52
56
|
id: string;
|
|
53
57
|
/**
|
|
@@ -115,7 +119,7 @@ export declare namespace MessageListResponse {
|
|
|
115
119
|
*/
|
|
116
120
|
interface Option {
|
|
117
121
|
/**
|
|
118
|
-
* The
|
|
122
|
+
* The unique identifier for the poll option.
|
|
119
123
|
*/
|
|
120
124
|
id: string;
|
|
121
125
|
/**
|
|
@@ -155,7 +159,7 @@ export declare namespace MessageListResponse {
|
|
|
155
159
|
*/
|
|
156
160
|
interface User {
|
|
157
161
|
/**
|
|
158
|
-
* The
|
|
162
|
+
* The unique identifier for the user.
|
|
159
163
|
*/
|
|
160
164
|
id: string;
|
|
161
165
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,E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IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,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/payments.d.mts
CHANGED
|
@@ -172,17 +172,18 @@ export type BillingReasons = 'subscription_create' | 'subscription_cycle' | 'sub
|
|
|
172
172
|
/**
|
|
173
173
|
* Possible card brands that a payment token can have
|
|
174
174
|
*/
|
|
175
|
-
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'maestro' | 'tarjeta_naranja' | 'cirrus' | 'nspk_mir' | 'verve' | 'ebt' | 'private_label' | 'local_brand' | 'uatp' | 'wexcard' | 'uzcard' | 'meeza' | 'hrg_store_card' | 'girocard' | 'fuel_card' | 'dankort' | 'carnet' | 'unknown';
|
|
175
|
+
export type CardBrands = 'mastercard' | 'visa' | 'amex' | 'discover' | 'unionpay' | 'jcb' | 'diners' | 'link' | 'troy' | 'visadankort' | 'visabancontact' | 'china_union_pay' | 'rupay' | 'jcbrupay' | 'elo' | 'maestro' | 'tarjeta_naranja' | 'cirrus' | 'nspk_mir' | 'verve' | 'ebt' | 'private_label' | 'local_brand' | 'uatp' | 'wexcard' | 'uzcard' | 'meeza' | 'hrg_store_card' | 'girocard' | 'fuel_card' | 'dankort' | 'carnet' | 'atm_card' | 'china_union_payuzcard' | 'unknown';
|
|
176
176
|
/**
|
|
177
177
|
* The different types of payment methods that can be used.
|
|
178
178
|
*/
|
|
179
|
-
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'capchase_pay' | 'card' | 'cashapp' | 'coinbase' | 'crypto' | 'custom' | 'customer_balance' | 'demo_pay' | 'eps' | 'eu_bank_transfer' | 'fpx' | 'giropay' | 'google_pay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'kr_market' | 'kriya' | 'link' | 'mb_way' | 'mobilepay' | 'mondu' | 'multibanco' | 'naver_pay' | 'netbanking' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'ng_wallet' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'platform_balance' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'scalapay' | 'sepa_debit' | 'sequra' | 'sezzle' | 'shop_pay' | 'shopeepay' | 'sofort' | 'south_korea_market' | 'splitit' | 'sunbit' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'venmo' | 'vipps' | 'wechat_pay' | 'zip' | 'unknown';
|
|
179
|
+
export type PaymentMethodTypes = 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'apple' | 'apple_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'bizum' | 'blik' | 'boleto' | 'capchase_pay' | 'card' | 'cashapp' | 'claritypay' | 'coinbase' | 'crypto' | 'custom' | 'customer_balance' | 'demo_pay' | 'eps' | 'eu_bank_transfer' | 'fpx' | 'giropay' | 'google_pay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'kr_market' | 'kriya' | 'link' | 'mb_way' | 'mobilepay' | 'mondu' | 'multibanco' | 'naver_pay' | 'netbanking' | 'ng_bank' | 'ng_bank_transfer' | 'ng_card' | 'ng_market' | 'ng_ussd' | 'ng_wallet' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'platform_balance' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'scalapay' | 'sepa_debit' | 'sequra' | 'sezzle' | 'shop_pay' | 'shopeepay' | 'sofort' | 'south_korea_market' | 'splitit' | 'sunbit' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'venmo' | 'vipps' | 'wechat_pay' | 'zip' | 'unknown';
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
182
|
+
* track the amount, status, currency, and payment method used.
|
|
182
183
|
*/
|
|
183
184
|
export interface PaymentListResponse {
|
|
184
185
|
/**
|
|
185
|
-
* The payment
|
|
186
|
+
* The unique identifier for the payment.
|
|
186
187
|
*/
|
|
187
188
|
id: string;
|
|
188
189
|
/**
|
|
@@ -218,7 +219,7 @@ export interface PaymentListResponse {
|
|
|
218
219
|
*/
|
|
219
220
|
company: PaymentListResponse.Company | null;
|
|
220
221
|
/**
|
|
221
|
-
* The datetime the payment was created
|
|
222
|
+
* The datetime the payment was created.
|
|
222
223
|
*/
|
|
223
224
|
created_at: string;
|
|
224
225
|
/**
|
|
@@ -355,7 +356,7 @@ export declare namespace PaymentListResponse {
|
|
|
355
356
|
*/
|
|
356
357
|
amount_refunded: number;
|
|
357
358
|
/**
|
|
358
|
-
*
|
|
359
|
+
* The datetime the application fee was created.
|
|
359
360
|
*/
|
|
360
361
|
created_at: string;
|
|
361
362
|
/**
|
|
@@ -401,7 +402,7 @@ export declare namespace PaymentListResponse {
|
|
|
401
402
|
*/
|
|
402
403
|
interface Company {
|
|
403
404
|
/**
|
|
404
|
-
* The
|
|
405
|
+
* The unique identifier for the company.
|
|
405
406
|
*/
|
|
406
407
|
id: string;
|
|
407
408
|
/**
|
|
@@ -418,7 +419,7 @@ export declare namespace PaymentListResponse {
|
|
|
418
419
|
*/
|
|
419
420
|
interface Member {
|
|
420
421
|
/**
|
|
421
|
-
* The
|
|
422
|
+
* The unique identifier for the company member.
|
|
422
423
|
*/
|
|
423
424
|
id: string;
|
|
424
425
|
/**
|
|
@@ -431,7 +432,7 @@ export declare namespace PaymentListResponse {
|
|
|
431
432
|
*/
|
|
432
433
|
interface Membership {
|
|
433
434
|
/**
|
|
434
|
-
* The
|
|
435
|
+
* The unique identifier for the membership.
|
|
435
436
|
*/
|
|
436
437
|
id: string;
|
|
437
438
|
/**
|
|
@@ -444,7 +445,7 @@ export declare namespace PaymentListResponse {
|
|
|
444
445
|
*/
|
|
445
446
|
interface PaymentMethod {
|
|
446
447
|
/**
|
|
447
|
-
* The
|
|
448
|
+
* The unique identifier for the payment token.
|
|
448
449
|
*/
|
|
449
450
|
id: string;
|
|
450
451
|
/**
|
|
@@ -452,7 +453,7 @@ export declare namespace PaymentListResponse {
|
|
|
452
453
|
*/
|
|
453
454
|
card: PaymentMethod.Card | null;
|
|
454
455
|
/**
|
|
455
|
-
* The
|
|
456
|
+
* The datetime the payment token was created.
|
|
456
457
|
*/
|
|
457
458
|
created_at: string;
|
|
458
459
|
/**
|
|
@@ -488,7 +489,7 @@ export declare namespace PaymentListResponse {
|
|
|
488
489
|
*/
|
|
489
490
|
interface Plan {
|
|
490
491
|
/**
|
|
491
|
-
* The
|
|
492
|
+
* The unique identifier for the plan.
|
|
492
493
|
*/
|
|
493
494
|
id: string;
|
|
494
495
|
}
|
|
@@ -497,7 +498,7 @@ export declare namespace PaymentListResponse {
|
|
|
497
498
|
*/
|
|
498
499
|
interface Product {
|
|
499
500
|
/**
|
|
500
|
-
* The
|
|
501
|
+
* The unique identifier for the product.
|
|
501
502
|
*/
|
|
502
503
|
id: string;
|
|
503
504
|
/**
|
|
@@ -514,11 +515,13 @@ export declare namespace PaymentListResponse {
|
|
|
514
515
|
*/
|
|
515
516
|
interface PromoCode {
|
|
516
517
|
/**
|
|
517
|
-
* The
|
|
518
|
+
* The unique identifier for the promo code.
|
|
518
519
|
*/
|
|
519
520
|
id: string;
|
|
520
521
|
/**
|
|
521
|
-
* The amount
|
|
522
|
+
* The discount amount. Interpretation depends on promo_type: if 'percentage', this
|
|
523
|
+
* is the percentage (e.g., 20 means 20% off); if 'flat_amount', this is dollars
|
|
524
|
+
* off (e.g., 10.00 means $10.00 off).
|
|
522
525
|
*/
|
|
523
526
|
amount_off: number;
|
|
524
527
|
/**
|
|
@@ -543,7 +546,7 @@ export declare namespace PaymentListResponse {
|
|
|
543
546
|
*/
|
|
544
547
|
interface User {
|
|
545
548
|
/**
|
|
546
|
-
* The
|
|
549
|
+
* The unique identifier for the user.
|
|
547
550
|
*/
|
|
548
551
|
id: string;
|
|
549
552
|
/**
|
|
@@ -618,7 +621,8 @@ export declare namespace PaymentCreateParams {
|
|
|
618
621
|
*/
|
|
619
622
|
currency: Shared.Currency;
|
|
620
623
|
/**
|
|
621
|
-
* The interval at which the plan charges (renewal plans).
|
|
624
|
+
* The interval in days at which the plan charges (renewal plans). For example, 30
|
|
625
|
+
* for monthly billing.
|
|
622
626
|
*/
|
|
623
627
|
billing_period?: number | null;
|
|
624
628
|
/**
|
|
@@ -626,7 +630,8 @@ export declare namespace PaymentCreateParams {
|
|
|
626
630
|
*/
|
|
627
631
|
description?: string | null;
|
|
628
632
|
/**
|
|
629
|
-
* The
|
|
633
|
+
* The number of days until the membership expires and revokes access (expiration
|
|
634
|
+
* plans). For example, 365 for one year.
|
|
630
635
|
*/
|
|
631
636
|
expiration_days?: number | null;
|
|
632
637
|
/**
|
|
@@ -635,7 +640,8 @@ export declare namespace PaymentCreateParams {
|
|
|
635
640
|
*/
|
|
636
641
|
force_create_new_plan?: boolean | null;
|
|
637
642
|
/**
|
|
638
|
-
* An additional amount charged upon first purchase.
|
|
643
|
+
* An additional amount charged upon first purchase. Provided as a number in the
|
|
644
|
+
* specified currency. Eg: 10.43 for $10.43 USD.
|
|
639
645
|
*/
|
|
640
646
|
initial_price?: number | null;
|
|
641
647
|
/**
|
|
@@ -656,7 +662,8 @@ export declare namespace PaymentCreateParams {
|
|
|
656
662
|
*/
|
|
657
663
|
product_id?: string | null;
|
|
658
664
|
/**
|
|
659
|
-
* The amount the customer is charged every billing period.
|
|
665
|
+
* The amount the customer is charged every billing period. Provided as a number in
|
|
666
|
+
* the specified currency. Eg: 10.43 for $10.43 USD.
|
|
660
667
|
*/
|
|
661
668
|
renewal_price?: number | null;
|
|
662
669
|
/**
|