@whop/sdk 0.0.28 → 0.0.30
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 +49 -0
- package/client.d.mts +7 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +0 -13
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +0 -13
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/checkout-configurations.js.map +1 -1
- package/resources/checkout-configurations.mjs.map +1 -1
- package/resources/companies.d.mts +6 -33
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +6 -33
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs.map +1 -1
- package/resources/dispute-alerts.d.mts +325 -0
- package/resources/dispute-alerts.d.mts.map +1 -0
- package/resources/dispute-alerts.d.ts +325 -0
- package/resources/dispute-alerts.d.ts.map +1 -0
- package/resources/dispute-alerts.js +42 -0
- package/resources/dispute-alerts.js.map +1 -0
- package/resources/dispute-alerts.mjs +38 -0
- package/resources/dispute-alerts.mjs.map +1 -0
- package/resources/experiences.d.mts +0 -4
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +0 -4
- package/resources/experiences.d.ts.map +1 -1
- package/resources/experiences.js +0 -4
- package/resources/experiences.js.map +1 -1
- package/resources/experiences.mjs +0 -4
- package/resources/experiences.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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 +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +4 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +4 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +1 -14
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +1 -14
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs.map +1 -1
- package/resources/products.d.mts +1 -29
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +1 -29
- package/resources/products.d.ts.map +1 -1
- package/resources/refunds.d.mts +1 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/shared.d.mts +1 -33
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -33
- package/resources/shared.d.ts.map +1 -1
- package/resources/support-channels.d.mts +4 -0
- package/resources/support-channels.d.mts.map +1 -1
- package/resources/support-channels.d.ts +4 -0
- package/resources/support-channels.d.ts.map +1 -1
- package/resources/webhooks.d.mts +224 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +224 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +21 -4
- package/src/resources/checkout-configurations.ts +0 -16
- package/src/resources/companies.ts +6 -40
- package/src/resources/dispute-alerts.ts +404 -0
- package/src/resources/experiences.ts +0 -4
- package/src/resources/index.ts +9 -1
- package/src/resources/messages.ts +5 -0
- package/src/resources/payments.ts +1 -16
- package/src/resources/products.ts +0 -170
- package/src/resources/refunds.ts +2 -1
- package/src/resources/shared.ts +2 -1991
- package/src/resources/support-channels.ts +5 -0
- package/src/resources/webhooks.ts +268 -0
- 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
|
@@ -151,6 +151,11 @@ export interface SupportChannelCreateParams {
|
|
|
151
151
|
* channel for.
|
|
152
152
|
*/
|
|
153
153
|
user_id: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Optional custom display name for the support channel.
|
|
157
|
+
*/
|
|
158
|
+
custom_name?: string | null;
|
|
154
159
|
}
|
|
155
160
|
|
|
156
161
|
export interface SupportChannelListParams extends CursorPageParams {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as DisputeAlertsAPI from './dispute-alerts';
|
|
4
5
|
import * as DisputesAPI from './disputes';
|
|
5
6
|
import * as PaymentsAPI from './payments';
|
|
6
7
|
import * as PayoutMethodsAPI from './payout-methods';
|
|
@@ -221,6 +222,7 @@ export type WebhookEvent =
|
|
|
221
222
|
| 'dispute.updated'
|
|
222
223
|
| 'refund.created'
|
|
223
224
|
| 'refund.updated'
|
|
225
|
+
| 'dispute_alert.created'
|
|
224
226
|
| 'membership.cancel_at_period_end_changed';
|
|
225
227
|
|
|
226
228
|
/**
|
|
@@ -1733,6 +1735,270 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1733
1735
|
}
|
|
1734
1736
|
}
|
|
1735
1737
|
|
|
1738
|
+
export interface DisputeAlertCreatedWebhookEvent {
|
|
1739
|
+
/**
|
|
1740
|
+
* A unique ID for every single webhook request
|
|
1741
|
+
*/
|
|
1742
|
+
id: string;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* The API version for this webhook
|
|
1746
|
+
*/
|
|
1747
|
+
api_version: 'v1';
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* A dispute alert represents an early warning notification from a payment
|
|
1751
|
+
* processor about a potential dispute or chargeback.
|
|
1752
|
+
*/
|
|
1753
|
+
data: DisputeAlertCreatedWebhookEvent.Data;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
1757
|
+
*/
|
|
1758
|
+
timestamp: string;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* The webhook event type
|
|
1762
|
+
*/
|
|
1763
|
+
type: 'dispute_alert.created';
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* The company ID that this webhook event is associated with
|
|
1767
|
+
*/
|
|
1768
|
+
company_id?: string | null;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
export namespace DisputeAlertCreatedWebhookEvent {
|
|
1772
|
+
/**
|
|
1773
|
+
* A dispute alert represents an early warning notification from a payment
|
|
1774
|
+
* processor about a potential dispute or chargeback.
|
|
1775
|
+
*/
|
|
1776
|
+
export interface Data {
|
|
1777
|
+
/**
|
|
1778
|
+
* The unique identifier of the dispute alert.
|
|
1779
|
+
*/
|
|
1780
|
+
id: string;
|
|
1781
|
+
|
|
1782
|
+
/**
|
|
1783
|
+
* The type of the dispute alert.
|
|
1784
|
+
*/
|
|
1785
|
+
alert_type: DisputeAlertsAPI.DisputeAlertType;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* The alerted amount in the specified currency.
|
|
1789
|
+
*/
|
|
1790
|
+
amount: number;
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* Whether this alert incurs a charge.
|
|
1794
|
+
*/
|
|
1795
|
+
charge_for_alert: boolean;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* The time the dispute alert was created.
|
|
1799
|
+
*/
|
|
1800
|
+
created_at: string;
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* The three-letter ISO currency code for the alerted amount.
|
|
1804
|
+
*/
|
|
1805
|
+
currency: Shared.Currency;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* The dispute associated with the dispute alert.
|
|
1809
|
+
*/
|
|
1810
|
+
dispute: Data.Dispute | null;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* The payment associated with the dispute alert.
|
|
1814
|
+
*/
|
|
1815
|
+
payment: Data.Payment | null;
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* The date of the original transaction.
|
|
1819
|
+
*/
|
|
1820
|
+
transaction_date: string | null;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
export namespace Data {
|
|
1824
|
+
/**
|
|
1825
|
+
* The dispute associated with the dispute alert.
|
|
1826
|
+
*/
|
|
1827
|
+
export interface Dispute {
|
|
1828
|
+
/**
|
|
1829
|
+
* The unique identifier for the dispute.
|
|
1830
|
+
*/
|
|
1831
|
+
id: string;
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* The disputed amount in the specified currency, formatted as a decimal.
|
|
1835
|
+
*/
|
|
1836
|
+
amount: number;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* The datetime the dispute was created.
|
|
1840
|
+
*/
|
|
1841
|
+
created_at: string | null;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* The three-letter ISO currency code for the disputed amount.
|
|
1845
|
+
*/
|
|
1846
|
+
currency: Shared.Currency;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* A human-readable reason for the dispute.
|
|
1850
|
+
*/
|
|
1851
|
+
reason: string | null;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* The current status of the dispute lifecycle, such as needs_response,
|
|
1855
|
+
* under_review, won, or lost.
|
|
1856
|
+
*/
|
|
1857
|
+
status: DisputesAPI.DisputeStatuses;
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* The payment associated with the dispute alert.
|
|
1862
|
+
*/
|
|
1863
|
+
export interface Payment {
|
|
1864
|
+
/**
|
|
1865
|
+
* The unique identifier for the payment.
|
|
1866
|
+
*/
|
|
1867
|
+
id: string;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* The reason why a specific payment was billed
|
|
1871
|
+
*/
|
|
1872
|
+
billing_reason: PaymentsAPI.BillingReasons | null;
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* Possible card brands that a payment token can have
|
|
1876
|
+
*/
|
|
1877
|
+
card_brand: PaymentsAPI.CardBrands | null;
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* The last four digits of the card used to make this payment. Null if the payment
|
|
1881
|
+
* was not made with a card.
|
|
1882
|
+
*/
|
|
1883
|
+
card_last4: string | null;
|
|
1884
|
+
|
|
1885
|
+
/**
|
|
1886
|
+
* The datetime the payment was created.
|
|
1887
|
+
*/
|
|
1888
|
+
created_at: string;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* The available currencies on the platform
|
|
1892
|
+
*/
|
|
1893
|
+
currency: Shared.Currency | null;
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* When an alert came in that this transaction will be disputed
|
|
1897
|
+
*/
|
|
1898
|
+
dispute_alerted_at: string | null;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* The member attached to this payment.
|
|
1902
|
+
*/
|
|
1903
|
+
member: Payment.Member | null;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* The membership attached to this payment.
|
|
1907
|
+
*/
|
|
1908
|
+
membership: Payment.Membership | null;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* The time at which this payment was successfully collected. Null if the payment
|
|
1912
|
+
* has not yet succeeded. As a Unix timestamp.
|
|
1913
|
+
*/
|
|
1914
|
+
paid_at: string | null;
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* The different types of payment methods that can be used.
|
|
1918
|
+
*/
|
|
1919
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
* The subtotal to show to the creator (excluding buyer fees).
|
|
1923
|
+
*/
|
|
1924
|
+
subtotal: number | null;
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* The total to show to the creator (excluding buyer fees).
|
|
1928
|
+
*/
|
|
1929
|
+
total: number | null;
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* The total in USD to show to the creator (excluding buyer fees).
|
|
1933
|
+
*/
|
|
1934
|
+
usd_total: number | null;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* The user that made this payment.
|
|
1938
|
+
*/
|
|
1939
|
+
user: Payment.User | null;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
export namespace Payment {
|
|
1943
|
+
/**
|
|
1944
|
+
* The member attached to this payment.
|
|
1945
|
+
*/
|
|
1946
|
+
export interface Member {
|
|
1947
|
+
/**
|
|
1948
|
+
* The unique identifier for the company member.
|
|
1949
|
+
*/
|
|
1950
|
+
id: string;
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* The phone number for the member, if available.
|
|
1954
|
+
*/
|
|
1955
|
+
phone: string | null;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* The membership attached to this payment.
|
|
1960
|
+
*/
|
|
1961
|
+
export interface Membership {
|
|
1962
|
+
/**
|
|
1963
|
+
* The unique identifier for the membership.
|
|
1964
|
+
*/
|
|
1965
|
+
id: string;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* The state of the membership.
|
|
1969
|
+
*/
|
|
1970
|
+
status: Shared.MembershipStatus;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* The user that made this payment.
|
|
1975
|
+
*/
|
|
1976
|
+
export interface User {
|
|
1977
|
+
/**
|
|
1978
|
+
* The unique identifier for the user.
|
|
1979
|
+
*/
|
|
1980
|
+
id: string;
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* The user's email address. Requires the member:email:read permission to access.
|
|
1984
|
+
* Null if not authorized.
|
|
1985
|
+
*/
|
|
1986
|
+
email: string | null;
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
* The user's display name shown on their public profile.
|
|
1990
|
+
*/
|
|
1991
|
+
name: string | null;
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* The user's unique username shown on their public profile.
|
|
1995
|
+
*/
|
|
1996
|
+
username: string;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
|
|
1736
2002
|
export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
|
|
1737
2003
|
/**
|
|
1738
2004
|
* A unique ID for every single webhook request
|
|
@@ -1793,6 +2059,7 @@ export type UnwrapWebhookEvent =
|
|
|
1793
2059
|
| DisputeUpdatedWebhookEvent
|
|
1794
2060
|
| RefundCreatedWebhookEvent
|
|
1795
2061
|
| RefundUpdatedWebhookEvent
|
|
2062
|
+
| DisputeAlertCreatedWebhookEvent
|
|
1796
2063
|
| MembershipCancelAtPeriodEndChangedWebhookEvent;
|
|
1797
2064
|
|
|
1798
2065
|
export interface WebhookCreateParams {
|
|
@@ -1912,6 +2179,7 @@ export declare namespace Webhooks {
|
|
|
1912
2179
|
type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent,
|
|
1913
2180
|
type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent,
|
|
1914
2181
|
type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent,
|
|
2182
|
+
type DisputeAlertCreatedWebhookEvent as DisputeAlertCreatedWebhookEvent,
|
|
1915
2183
|
type MembershipCancelAtPeriodEndChangedWebhookEvent as MembershipCancelAtPeriodEndChangedWebhookEvent,
|
|
1916
2184
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
1917
2185
|
type WebhookListResponsesCursorPage as WebhookListResponsesCursorPage,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.30'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.30";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.30";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.30'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|