@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
|
@@ -18,7 +18,7 @@ export declare class DmMembers extends APIResource {
|
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
create(body: DmMemberCreateParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
create(body: DmMemberCreateParams, options?: RequestOptions): APIPromise<DmMember>;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieves a DM channel member
|
|
24
24
|
*
|
|
@@ -31,7 +31,7 @@ export declare class DmMembers extends APIResource {
|
|
|
31
31
|
* const dmMember = await client.dmMembers.retrieve('id');
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
34
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DmMember>;
|
|
35
35
|
/**
|
|
36
36
|
* Updates a DM channel member's settings
|
|
37
37
|
*
|
|
@@ -44,7 +44,7 @@ export declare class DmMembers extends APIResource {
|
|
|
44
44
|
* const dmMember = await client.dmMembers.update('id');
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
update(id: string, body?: DmMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
47
|
+
update(id: string, body?: DmMemberUpdateParams | null | undefined, options?: RequestOptions): APIPromise<DmMember>;
|
|
48
48
|
/**
|
|
49
49
|
* Lists members of a DM channel
|
|
50
50
|
*
|
|
@@ -79,69 +79,17 @@ export declare class DmMembers extends APIResource {
|
|
|
79
79
|
}
|
|
80
80
|
export type DmMemberListResponsesCursorPage = CursorPage<DmMemberListResponse>;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* The notification preferences for a DMs feed member
|
|
83
83
|
*/
|
|
84
|
-
export
|
|
85
|
-
/**
|
|
86
|
-
* The unique identifier for the entity
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
/**
|
|
90
|
-
* The ID of the DM channel
|
|
91
|
-
*/
|
|
92
|
-
channel_id: string;
|
|
93
|
-
/**
|
|
94
|
-
* Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
95
|
-
* epoch)
|
|
96
|
-
*/
|
|
97
|
-
last_viewed_at: string | null;
|
|
98
|
-
/**
|
|
99
|
-
* The notification preference for this member (all, mentions, none)
|
|
100
|
-
*/
|
|
101
|
-
notification_preference: 'all' | 'mentions' | 'none';
|
|
102
|
-
/**
|
|
103
|
-
* The status of the membership (requested, accepted, rejected)
|
|
104
|
-
*/
|
|
105
|
-
status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
|
|
106
|
-
/**
|
|
107
|
-
* The ID of the user who is a member of the channel
|
|
108
|
-
*/
|
|
109
|
-
user_id: string;
|
|
110
|
-
}
|
|
84
|
+
export type DmFeedMemberNotificationPreferences = 'all' | 'mentions' | 'none';
|
|
111
85
|
/**
|
|
112
|
-
*
|
|
86
|
+
* The statuses of a DMs feed member
|
|
113
87
|
*/
|
|
114
|
-
export
|
|
115
|
-
/**
|
|
116
|
-
* The unique identifier for the entity
|
|
117
|
-
*/
|
|
118
|
-
id: string;
|
|
119
|
-
/**
|
|
120
|
-
* The ID of the DM channel
|
|
121
|
-
*/
|
|
122
|
-
channel_id: string;
|
|
123
|
-
/**
|
|
124
|
-
* Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
125
|
-
* epoch)
|
|
126
|
-
*/
|
|
127
|
-
last_viewed_at: string | null;
|
|
128
|
-
/**
|
|
129
|
-
* The notification preference for this member (all, mentions, none)
|
|
130
|
-
*/
|
|
131
|
-
notification_preference: 'all' | 'mentions' | 'none';
|
|
132
|
-
/**
|
|
133
|
-
* The status of the membership (requested, accepted, rejected)
|
|
134
|
-
*/
|
|
135
|
-
status: 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
|
|
136
|
-
/**
|
|
137
|
-
* The ID of the user who is a member of the channel
|
|
138
|
-
*/
|
|
139
|
-
user_id: string;
|
|
140
|
-
}
|
|
88
|
+
export type DmFeedMemberStatuses = 'requested' | 'accepted' | 'hidden' | 'closed' | 'archived';
|
|
141
89
|
/**
|
|
142
90
|
* Represents a member of a DM channel
|
|
143
91
|
*/
|
|
144
|
-
export interface
|
|
92
|
+
export interface DmMember {
|
|
145
93
|
/**
|
|
146
94
|
* The unique identifier for the entity
|
|
147
95
|
*/
|
|
@@ -158,11 +106,11 @@ export interface DmMemberUpdateResponse {
|
|
|
158
106
|
/**
|
|
159
107
|
* The notification preference for this member (all, mentions, none)
|
|
160
108
|
*/
|
|
161
|
-
notification_preference:
|
|
109
|
+
notification_preference: DmFeedMemberNotificationPreferences;
|
|
162
110
|
/**
|
|
163
111
|
* The status of the membership (requested, accepted, rejected)
|
|
164
112
|
*/
|
|
165
|
-
status:
|
|
113
|
+
status: DmFeedMemberStatuses;
|
|
166
114
|
/**
|
|
167
115
|
* The ID of the user who is a member of the channel
|
|
168
116
|
*/
|
|
@@ -188,7 +136,7 @@ export interface DmMemberListResponse {
|
|
|
188
136
|
/**
|
|
189
137
|
* The status of the membership (requested, accepted, rejected)
|
|
190
138
|
*/
|
|
191
|
-
status:
|
|
139
|
+
status: DmFeedMemberStatuses;
|
|
192
140
|
/**
|
|
193
141
|
* The ID of the user who is a member of the channel
|
|
194
142
|
*/
|
|
@@ -212,11 +160,11 @@ export interface DmMemberUpdateParams {
|
|
|
212
160
|
/**
|
|
213
161
|
* The notification preferences for a DMs feed member
|
|
214
162
|
*/
|
|
215
|
-
notification_preference?:
|
|
163
|
+
notification_preference?: DmFeedMemberNotificationPreferences | null;
|
|
216
164
|
/**
|
|
217
165
|
* The statuses of a DMs feed member
|
|
218
166
|
*/
|
|
219
|
-
status?:
|
|
167
|
+
status?: DmFeedMemberStatuses | null;
|
|
220
168
|
}
|
|
221
169
|
export interface DmMemberListParams extends CursorPageParams {
|
|
222
170
|
/**
|
|
@@ -237,6 +185,6 @@ export interface DmMemberListParams extends CursorPageParams {
|
|
|
237
185
|
last?: number | null;
|
|
238
186
|
}
|
|
239
187
|
export declare namespace DmMembers {
|
|
240
|
-
export { type
|
|
188
|
+
export { type DmFeedMemberNotificationPreferences as DmFeedMemberNotificationPreferences, type DmFeedMemberStatuses as DmFeedMemberStatuses, type DmMember as DmMember, type DmMemberListResponse as DmMemberListResponse, type DmMemberDeleteResponse as DmMemberDeleteResponse, type DmMemberListResponsesCursorPage as DmMemberListResponsesCursorPage, type DmMemberCreateParams as DmMemberCreateParams, type DmMemberUpdateParams as DmMemberUpdateParams, type DmMemberListParams as DmMemberListParams, };
|
|
241
189
|
}
|
|
242
190
|
//# sourceMappingURL=dm-members.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm-members.d.ts","sourceRoot":"","sources":["../src/resources/dm-members.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;OAcG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,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
package/resources/entries.d.mts
CHANGED
|
@@ -43,15 +43,15 @@ export declare class Entries extends APIResource {
|
|
|
43
43
|
}
|
|
44
44
|
export type EntryListResponsesCursorPage = CursorPage<EntryListResponse>;
|
|
45
45
|
/**
|
|
46
|
-
* An
|
|
46
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
47
47
|
*/
|
|
48
48
|
export interface EntryListResponse {
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The unique identifier for the entry.
|
|
51
51
|
*/
|
|
52
52
|
id: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The datetime the entry was created.
|
|
55
55
|
*/
|
|
56
56
|
created_at: string | null;
|
|
57
57
|
/**
|
|
@@ -77,7 +77,7 @@ export declare namespace EntryListResponse {
|
|
|
77
77
|
*/
|
|
78
78
|
interface Plan {
|
|
79
79
|
/**
|
|
80
|
-
* The
|
|
80
|
+
* The unique identifier for the plan.
|
|
81
81
|
*/
|
|
82
82
|
id: string;
|
|
83
83
|
}
|
|
@@ -86,7 +86,7 @@ export declare namespace EntryListResponse {
|
|
|
86
86
|
*/
|
|
87
87
|
interface Product {
|
|
88
88
|
/**
|
|
89
|
-
* The
|
|
89
|
+
* The unique identifier for the product.
|
|
90
90
|
*/
|
|
91
91
|
id: string;
|
|
92
92
|
/**
|
|
@@ -99,7 +99,7 @@ export declare namespace EntryListResponse {
|
|
|
99
99
|
*/
|
|
100
100
|
interface User {
|
|
101
101
|
/**
|
|
102
|
-
* The
|
|
102
|
+
* The unique identifier for the user.
|
|
103
103
|
*/
|
|
104
104
|
id: string;
|
|
105
105
|
/**
|
package/resources/entries.d.ts
CHANGED
|
@@ -43,15 +43,15 @@ export declare class Entries extends APIResource {
|
|
|
43
43
|
}
|
|
44
44
|
export type EntryListResponsesCursorPage = CursorPage<EntryListResponse>;
|
|
45
45
|
/**
|
|
46
|
-
* An
|
|
46
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
47
47
|
*/
|
|
48
48
|
export interface EntryListResponse {
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The unique identifier for the entry.
|
|
51
51
|
*/
|
|
52
52
|
id: string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The datetime the entry was created.
|
|
55
55
|
*/
|
|
56
56
|
created_at: string | null;
|
|
57
57
|
/**
|
|
@@ -77,7 +77,7 @@ export declare namespace EntryListResponse {
|
|
|
77
77
|
*/
|
|
78
78
|
interface Plan {
|
|
79
79
|
/**
|
|
80
|
-
* The
|
|
80
|
+
* The unique identifier for the plan.
|
|
81
81
|
*/
|
|
82
82
|
id: string;
|
|
83
83
|
}
|
|
@@ -86,7 +86,7 @@ export declare namespace EntryListResponse {
|
|
|
86
86
|
*/
|
|
87
87
|
interface Product {
|
|
88
88
|
/**
|
|
89
|
-
* The
|
|
89
|
+
* The unique identifier for the product.
|
|
90
90
|
*/
|
|
91
91
|
id: string;
|
|
92
92
|
/**
|
|
@@ -99,7 +99,7 @@ export declare namespace EntryListResponse {
|
|
|
99
99
|
*/
|
|
100
100
|
interface User {
|
|
101
101
|
/**
|
|
102
|
-
* The
|
|
102
|
+
* The unique identifier for the user.
|
|
103
103
|
*/
|
|
104
104
|
id: string;
|
|
105
105
|
/**
|
|
@@ -130,11 +130,12 @@ export declare class Experiences extends APIResource {
|
|
|
130
130
|
}
|
|
131
131
|
export type ExperienceListResponsesCursorPage = CursorPage<ExperienceListResponse>;
|
|
132
132
|
/**
|
|
133
|
-
* An
|
|
133
|
+
* An experience is a feature or content module within a product, such as a chat,
|
|
134
|
+
* course, or app.
|
|
134
135
|
*/
|
|
135
136
|
export interface ExperienceListResponse {
|
|
136
137
|
/**
|
|
137
|
-
* The unique
|
|
138
|
+
* The unique identifier for the experience.
|
|
138
139
|
*/
|
|
139
140
|
id: string;
|
|
140
141
|
/**
|
|
@@ -146,7 +147,7 @@ export interface ExperienceListResponse {
|
|
|
146
147
|
*/
|
|
147
148
|
company: ExperienceListResponse.Company;
|
|
148
149
|
/**
|
|
149
|
-
* The
|
|
150
|
+
* The datetime the experience was created.
|
|
150
151
|
*/
|
|
151
152
|
created_at: string;
|
|
152
153
|
/**
|
|
@@ -172,7 +173,7 @@ export declare namespace ExperienceListResponse {
|
|
|
172
173
|
*/
|
|
173
174
|
interface App {
|
|
174
175
|
/**
|
|
175
|
-
* The
|
|
176
|
+
* The unique identifier for the app.
|
|
176
177
|
*/
|
|
177
178
|
id: string;
|
|
178
179
|
/**
|
|
@@ -203,7 +204,7 @@ export declare namespace ExperienceListResponse {
|
|
|
203
204
|
*/
|
|
204
205
|
interface Company {
|
|
205
206
|
/**
|
|
206
|
-
* The
|
|
207
|
+
* The unique identifier for the company.
|
|
207
208
|
*/
|
|
208
209
|
id: string;
|
|
209
210
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experiences.d.mts","sourceRoot":"","sources":["../src/resources/experiences.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;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAs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131
131
|
export type ExperienceListResponsesCursorPage = CursorPage<ExperienceListResponse>;
|
|
132
132
|
/**
|
|
133
|
-
* An
|
|
133
|
+
* An experience is a feature or content module within a product, such as a chat,
|
|
134
|
+
* course, or app.
|
|
134
135
|
*/
|
|
135
136
|
export interface ExperienceListResponse {
|
|
136
137
|
/**
|
|
137
|
-
* The unique
|
|
138
|
+
* The unique identifier for the experience.
|
|
138
139
|
*/
|
|
139
140
|
id: string;
|
|
140
141
|
/**
|
|
@@ -146,7 +147,7 @@ export interface ExperienceListResponse {
|
|
|
146
147
|
*/
|
|
147
148
|
company: ExperienceListResponse.Company;
|
|
148
149
|
/**
|
|
149
|
-
* The
|
|
150
|
+
* The datetime the experience was created.
|
|
150
151
|
*/
|
|
151
152
|
created_at: string;
|
|
152
153
|
/**
|
|
@@ -172,7 +173,7 @@ export declare namespace ExperienceListResponse {
|
|
|
172
173
|
*/
|
|
173
174
|
interface App {
|
|
174
175
|
/**
|
|
175
|
-
* The
|
|
176
|
+
* The unique identifier for the app.
|
|
176
177
|
*/
|
|
177
178
|
id: string;
|
|
178
179
|
/**
|
|
@@ -203,7 +204,7 @@ export declare namespace ExperienceListResponse {
|
|
|
203
204
|
*/
|
|
204
205
|
interface Company {
|
|
205
206
|
/**
|
|
206
|
-
* The
|
|
207
|
+
* The unique identifier for the company.
|
|
207
208
|
*/
|
|
208
209
|
id: string;
|
|
209
210
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experiences.d.ts","sourceRoot":"","sources":["../src/resources/experiences.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;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC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
61
|
*/
|
|
62
62
|
export interface FeeMarkupCreateResponse {
|
|
63
63
|
/**
|
|
64
|
-
* The unique identifier
|
|
64
|
+
* The unique identifier for the fee markup.
|
|
65
65
|
*/
|
|
66
66
|
id: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* The datetime the fee markup was created.
|
|
69
69
|
*/
|
|
70
70
|
created_at: string;
|
|
71
71
|
/**
|
|
@@ -85,7 +85,7 @@ export interface FeeMarkupCreateResponse {
|
|
|
85
85
|
*/
|
|
86
86
|
percentage_fee: number | null;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* The datetime the fee markup was last updated.
|
|
89
89
|
*/
|
|
90
90
|
updated_at: string;
|
|
91
91
|
}
|
|
@@ -94,11 +94,11 @@ export interface FeeMarkupCreateResponse {
|
|
|
94
94
|
*/
|
|
95
95
|
export interface FeeMarkupListResponse {
|
|
96
96
|
/**
|
|
97
|
-
* The unique identifier
|
|
97
|
+
* The unique identifier for the fee markup.
|
|
98
98
|
*/
|
|
99
99
|
id: string;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* The datetime the fee markup was created.
|
|
102
102
|
*/
|
|
103
103
|
created_at: string;
|
|
104
104
|
/**
|
|
@@ -118,7 +118,7 @@ export interface FeeMarkupListResponse {
|
|
|
118
118
|
*/
|
|
119
119
|
percentage_fee: number | null;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* The datetime the fee markup was last updated.
|
|
122
122
|
*/
|
|
123
123
|
updated_at: string;
|
|
124
124
|
}
|
|
@@ -61,11 +61,11 @@ export type FeeMarkupType = 'crypto_withdrawal_markup' | 'rtp_withdrawal_markup'
|
|
|
61
61
|
*/
|
|
62
62
|
export interface FeeMarkupCreateResponse {
|
|
63
63
|
/**
|
|
64
|
-
* The unique identifier
|
|
64
|
+
* The unique identifier for the fee markup.
|
|
65
65
|
*/
|
|
66
66
|
id: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* The datetime the fee markup was created.
|
|
69
69
|
*/
|
|
70
70
|
created_at: string;
|
|
71
71
|
/**
|
|
@@ -85,7 +85,7 @@ export interface FeeMarkupCreateResponse {
|
|
|
85
85
|
*/
|
|
86
86
|
percentage_fee: number | null;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* The datetime the fee markup was last updated.
|
|
89
89
|
*/
|
|
90
90
|
updated_at: string;
|
|
91
91
|
}
|
|
@@ -94,11 +94,11 @@ export interface FeeMarkupCreateResponse {
|
|
|
94
94
|
*/
|
|
95
95
|
export interface FeeMarkupListResponse {
|
|
96
96
|
/**
|
|
97
|
-
* The unique identifier
|
|
97
|
+
* The unique identifier for the fee markup.
|
|
98
98
|
*/
|
|
99
99
|
id: string;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* The datetime the fee markup was created.
|
|
102
102
|
*/
|
|
103
103
|
created_at: string;
|
|
104
104
|
/**
|
|
@@ -118,7 +118,7 @@ export interface FeeMarkupListResponse {
|
|
|
118
118
|
*/
|
|
119
119
|
percentage_fee: number | null;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* The datetime the fee markup was last updated.
|
|
122
122
|
*/
|
|
123
123
|
updated_at: string;
|
|
124
124
|
}
|
package/resources/files.d.mts
CHANGED
|
@@ -18,12 +18,16 @@ export declare class Files extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
upload(file: Uploadable | ToFileInput, options?: FileUploadOptions): Promise<FileRetrieveResponse>;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The upload status of a file
|
|
23
|
+
*/
|
|
24
|
+
export type UploadStatus = 'pending' | 'processing' | 'ready' | 'failed';
|
|
21
25
|
/**
|
|
22
26
|
* A file that has been uploaded or is pending upload
|
|
23
27
|
*/
|
|
24
28
|
export interface FileCreateResponse {
|
|
25
29
|
/**
|
|
26
|
-
* The
|
|
30
|
+
* The unique identifier for the file.
|
|
27
31
|
*/
|
|
28
32
|
id: string;
|
|
29
33
|
/**
|
|
@@ -47,7 +51,7 @@ export interface FileCreateResponse {
|
|
|
47
51
|
/**
|
|
48
52
|
* The upload status of the file
|
|
49
53
|
*/
|
|
50
|
-
upload_status:
|
|
54
|
+
upload_status: UploadStatus;
|
|
51
55
|
/**
|
|
52
56
|
* The presigned URL to upload the file to (only on create)
|
|
53
57
|
*/
|
|
@@ -62,7 +66,7 @@ export interface FileCreateResponse {
|
|
|
62
66
|
*/
|
|
63
67
|
export interface FileRetrieveResponse {
|
|
64
68
|
/**
|
|
65
|
-
* The
|
|
69
|
+
* The unique identifier for the file.
|
|
66
70
|
*/
|
|
67
71
|
id: string;
|
|
68
72
|
/**
|
|
@@ -80,7 +84,7 @@ export interface FileRetrieveResponse {
|
|
|
80
84
|
/**
|
|
81
85
|
* The upload status of the file
|
|
82
86
|
*/
|
|
83
|
-
upload_status:
|
|
87
|
+
upload_status: UploadStatus;
|
|
84
88
|
/**
|
|
85
89
|
* The URL to access the file
|
|
86
90
|
*/
|
|
@@ -99,6 +103,6 @@ export interface FileUploadOptions extends RequestOptions {
|
|
|
99
103
|
filename?: string | null | undefined;
|
|
100
104
|
}
|
|
101
105
|
export declare namespace Files {
|
|
102
|
-
export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileCreateParams as FileCreateParams, type FileUploadOptions as FileUploadOptions, };
|
|
106
|
+
export { type UploadStatus as UploadStatus, type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileCreateParams as FileCreateParams, type FileUploadOptions as FileUploadOptions, };
|
|
103
107
|
}
|
|
104
108
|
//# sourceMappingURL=files.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAElB,KAAK,EAAE,WAAW,EAAE,UA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AE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/files.d.ts
CHANGED
|
@@ -18,12 +18,16 @@ export declare class Files extends APIResource {
|
|
|
18
18
|
*/
|
|
19
19
|
upload(file: Uploadable | ToFileInput, options?: FileUploadOptions): Promise<FileRetrieveResponse>;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The upload status of a file
|
|
23
|
+
*/
|
|
24
|
+
export type UploadStatus = 'pending' | 'processing' | 'ready' | 'failed';
|
|
21
25
|
/**
|
|
22
26
|
* A file that has been uploaded or is pending upload
|
|
23
27
|
*/
|
|
24
28
|
export interface FileCreateResponse {
|
|
25
29
|
/**
|
|
26
|
-
* The
|
|
30
|
+
* The unique identifier for the file.
|
|
27
31
|
*/
|
|
28
32
|
id: string;
|
|
29
33
|
/**
|
|
@@ -47,7 +51,7 @@ export interface FileCreateResponse {
|
|
|
47
51
|
/**
|
|
48
52
|
* The upload status of the file
|
|
49
53
|
*/
|
|
50
|
-
upload_status:
|
|
54
|
+
upload_status: UploadStatus;
|
|
51
55
|
/**
|
|
52
56
|
* The presigned URL to upload the file to (only on create)
|
|
53
57
|
*/
|
|
@@ -62,7 +66,7 @@ export interface FileCreateResponse {
|
|
|
62
66
|
*/
|
|
63
67
|
export interface FileRetrieveResponse {
|
|
64
68
|
/**
|
|
65
|
-
* The
|
|
69
|
+
* The unique identifier for the file.
|
|
66
70
|
*/
|
|
67
71
|
id: string;
|
|
68
72
|
/**
|
|
@@ -80,7 +84,7 @@ export interface FileRetrieveResponse {
|
|
|
80
84
|
/**
|
|
81
85
|
* The upload status of the file
|
|
82
86
|
*/
|
|
83
|
-
upload_status:
|
|
87
|
+
upload_status: UploadStatus;
|
|
84
88
|
/**
|
|
85
89
|
* The URL to access the file
|
|
86
90
|
*/
|
|
@@ -99,6 +103,6 @@ export interface FileUploadOptions extends RequestOptions {
|
|
|
99
103
|
filename?: string | null | undefined;
|
|
100
104
|
}
|
|
101
105
|
export declare namespace Files {
|
|
102
|
-
export { type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileCreateParams as FileCreateParams, type FileUploadOptions as FileUploadOptions, };
|
|
106
|
+
export { type UploadStatus as UploadStatus, type FileCreateResponse as FileCreateResponse, type FileRetrieveResponse as FileRetrieveResponse, type FileCreateParams as FileCreateParams, type FileUploadOptions as FileUploadOptions, };
|
|
103
107
|
}
|
|
104
108
|
//# sourceMappingURL=files.d.ts.map
|
package/resources/files.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAElB,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE;AAGvC,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAOnG;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAA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C;IAEpB;;OAEG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAElD;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -70,7 +70,11 @@ export type ForumPostVisibilityType = 'members_only' | 'globally_visible';
|
|
|
70
70
|
*/
|
|
71
71
|
export interface ForumPostListResponse {
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Represents a unique identifier that is Base64 obfuscated. It is often used to
|
|
74
|
+
* refetch an object or as key for a cache. The ID type appears in a JSON response
|
|
75
|
+
* as a String; however, it is not intended to be human-readable. When expected as
|
|
76
|
+
* an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`)
|
|
77
|
+
* input value will be accepted as an ID.
|
|
74
78
|
*/
|
|
75
79
|
id: string;
|
|
76
80
|
/**
|
|
@@ -128,7 +132,7 @@ export declare namespace ForumPostListResponse {
|
|
|
128
132
|
*/
|
|
129
133
|
interface User {
|
|
130
134
|
/**
|
|
131
|
-
* The
|
|
135
|
+
* The unique identifier for the user.
|
|
132
136
|
*/
|
|
133
137
|
id: string;
|
|
134
138
|
/**
|
|
@@ -167,8 +171,8 @@ export interface ForumPostCreateParams {
|
|
|
167
171
|
*/
|
|
168
172
|
parent_id?: string | null;
|
|
169
173
|
/**
|
|
170
|
-
* The
|
|
171
|
-
*
|
|
174
|
+
* The price in paywall_currency to unlock this post (e.g., 5.00 for $5.00). If
|
|
175
|
+
* set, users must purchase access to view the post content.
|
|
172
176
|
*/
|
|
173
177
|
paywall_amount?: number | null;
|
|
174
178
|
/**
|