@whop/sdk 0.0.32 → 0.0.34

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +4 -3
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +4 -3
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +4 -2
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/ledger-accounts.d.mts +6 -0
  20. package/resources/ledger-accounts.d.mts.map +1 -1
  21. package/resources/ledger-accounts.d.ts +6 -0
  22. package/resources/ledger-accounts.d.ts.map +1 -1
  23. package/resources/ledger-accounts.js.map +1 -1
  24. package/resources/ledger-accounts.mjs.map +1 -1
  25. package/resources/payout-accounts.d.mts +139 -0
  26. package/resources/payout-accounts.d.mts.map +1 -0
  27. package/resources/payout-accounts.d.ts +139 -0
  28. package/resources/payout-accounts.d.ts.map +1 -0
  29. package/resources/payout-accounts.js +23 -0
  30. package/resources/payout-accounts.js.map +1 -0
  31. package/resources/payout-accounts.mjs +19 -0
  32. package/resources/payout-accounts.mjs.map +1 -0
  33. package/resources/refunds.d.mts +15 -7
  34. package/resources/refunds.d.mts.map +1 -1
  35. package/resources/refunds.d.ts +15 -7
  36. package/resources/refunds.d.ts.map +1 -1
  37. package/resources/refunds.js +3 -3
  38. package/resources/refunds.js.map +1 -1
  39. package/resources/refunds.mjs +3 -3
  40. package/resources/refunds.mjs.map +1 -1
  41. package/resources/users.d.mts +70 -1
  42. package/resources/users.d.mts.map +1 -1
  43. package/resources/users.d.ts +70 -1
  44. package/resources/users.d.ts.map +1 -1
  45. package/resources/users.js +8 -0
  46. package/resources/users.js.map +1 -1
  47. package/resources/users.mjs +8 -0
  48. package/resources/users.mjs.map +1 -1
  49. package/resources/verifications.d.mts +53 -1
  50. package/resources/verifications.d.mts.map +1 -1
  51. package/resources/verifications.d.ts +53 -1
  52. package/resources/verifications.d.ts.map +1 -1
  53. package/resources/verifications.js +15 -0
  54. package/resources/verifications.js.map +1 -1
  55. package/resources/verifications.mjs +15 -0
  56. package/resources/verifications.mjs.map +1 -1
  57. package/resources/webhooks.d.mts +145 -3
  58. package/resources/webhooks.d.mts.map +1 -1
  59. package/resources/webhooks.d.ts +145 -3
  60. package/resources/webhooks.d.ts.map +1 -1
  61. package/resources/webhooks.js.map +1 -1
  62. package/resources/webhooks.mjs.map +1 -1
  63. package/src/client.ts +30 -0
  64. package/src/resources/index.ts +12 -0
  65. package/src/resources/ledger-accounts.ts +7 -0
  66. package/src/resources/payout-accounts.ts +177 -0
  67. package/src/resources/refunds.ts +17 -7
  68. package/src/resources/users.ts +90 -0
  69. package/src/resources/verifications.ts +73 -0
  70. package/src/resources/webhooks.ts +173 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIhE;;;OAGG;IACH,WAAW,CACT,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAA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EG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC,cAAc,GAAG,IAAI,CAAC;IAEhE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,cAAc;QAC7B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import * as Shared from "./shared.js";
3
3
  import { APIPromise } from "../core/api-promise.js";
4
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
4
5
  import { RequestOptions } from "../internal/request-options.js";
5
6
  /**
6
7
  * Users
@@ -10,6 +11,11 @@ export declare class Users extends APIResource {
10
11
  * Retrieves the details of an existing user.
11
12
  */
12
13
  retrieve(id: string, options?: RequestOptions): APIPromise<User>;
14
+ /**
15
+ * Search for users by name or username, ranked by social proximity to the
16
+ * authenticated user.
17
+ */
18
+ list(query?: UserListParams | null | undefined, options?: RequestOptions): PagePromise<UserListResponsesCursorPage, UserListResponse>;
13
19
  /**
14
20
  * Check whether a user has access to a specific resource, and return their access
15
21
  * level.
@@ -24,6 +30,7 @@ export declare class Users extends APIResource {
24
30
  */
25
31
  updateProfile(body?: UserUpdateProfileParams | null | undefined, options?: RequestOptions): APIPromise<User>;
26
32
  }
33
+ export type UserListResponsesCursorPage = CursorPage<UserListResponse>;
27
34
  /**
28
35
  * A user account on Whop. Contains profile information, identity details, and
29
36
  * social connections.
@@ -68,6 +75,50 @@ export declare namespace User {
68
75
  url: string | null;
69
76
  }
70
77
  }
78
+ /**
79
+ * A user account on Whop. Contains profile information, identity details, and
80
+ * social connections.
81
+ */
82
+ export interface UserListResponse {
83
+ /**
84
+ * The unique identifier for the user.
85
+ */
86
+ id: string;
87
+ /**
88
+ * A short biography written by the user, displayed on their public profile.
89
+ */
90
+ bio: string | null;
91
+ /**
92
+ * The datetime the user was created.
93
+ */
94
+ created_at: string;
95
+ /**
96
+ * The user's display name shown on their public profile.
97
+ */
98
+ name: string | null;
99
+ /**
100
+ * The user's profile picture attachment with URL, content type, and file metadata.
101
+ * Null if using a legacy profile picture.
102
+ */
103
+ profile_picture: UserListResponse.ProfilePicture | null;
104
+ /**
105
+ * The user's unique username shown on their public profile.
106
+ */
107
+ username: string;
108
+ }
109
+ export declare namespace UserListResponse {
110
+ /**
111
+ * The user's profile picture attachment with URL, content type, and file metadata.
112
+ * Null if using a legacy profile picture.
113
+ */
114
+ interface ProfilePicture {
115
+ /**
116
+ * A pre-optimized URL for rendering this attachment on the client. This should be
117
+ * used for displaying attachments in apps.
118
+ */
119
+ url: string | null;
120
+ }
121
+ }
71
122
  /**
72
123
  * The result of a has access check for the developer API
73
124
  */
@@ -81,6 +132,24 @@ export interface UserCheckAccessResponse {
81
132
  */
82
133
  has_access: boolean;
83
134
  }
135
+ export interface UserListParams extends CursorPageParams {
136
+ /**
137
+ * Returns the elements in the list that come before the specified cursor.
138
+ */
139
+ before?: string | null;
140
+ /**
141
+ * Returns the first _n_ elements from the list.
142
+ */
143
+ first?: number | null;
144
+ /**
145
+ * Returns the last _n_ elements from the list.
146
+ */
147
+ last?: number | null;
148
+ /**
149
+ * Search term to filter by name or username.
150
+ */
151
+ query?: string | null;
152
+ }
84
153
  export interface UserCheckAccessParams {
85
154
  /**
86
155
  * The unique identifier or username of the user.
@@ -118,6 +187,6 @@ export declare namespace UserUpdateProfileParams {
118
187
  }
119
188
  }
120
189
  export declare namespace Users {
121
- export { type User as User, type UserCheckAccessResponse as UserCheckAccessResponse, type UserCheckAccessParams as UserCheckAccessParams, type UserUpdateProfileParams as UserUpdateProfileParams, };
190
+ export { type User as User, type UserListResponse as UserListResponse, type UserCheckAccessResponse as UserCheckAccessResponse, type UserListResponsesCursorPage as UserListResponsesCursorPage, type UserListParams as UserListParams, type UserCheckAccessParams as UserCheckAccessParams, type UserUpdateProfileParams as UserUpdateProfileParams, };
122
191
  }
123
192
  //# sourceMappingURL=users.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIhE;;;OAGG;IACH,WAAW,CACT,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;;;;;OAMG;IACH,aAAa,CACX,IAAI,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAGpB;AA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,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,uBAAuB,CAAC,cAAc,GAAG,IAAI,CAAC;IAEhE;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,cAAc;QAC7B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Users = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
6
7
  const path_1 = require("../internal/utils/path.js");
7
8
  /**
8
9
  * Users
@@ -14,6 +15,13 @@ class Users extends resource_1.APIResource {
14
15
  retrieve(id, options) {
15
16
  return this._client.get((0, path_1.path) `/users/${id}`, options);
16
17
  }
18
+ /**
19
+ * Search for users by name or username, ranked by social proximity to the
20
+ * authenticated user.
21
+ */
22
+ list(query = {}, options) {
23
+ return this._client.getAPIList('/users', (pagination_1.CursorPage), { query, ...options });
24
+ }
17
25
  /**
18
26
  * Check whether a user has access to a specific resource, and return their access
19
27
  * level.
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/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;;;OAGG;IACH,WAAW,CACT,UAAkB,EAClB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,WAAW,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,aAAa,CACX,OAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AA7CD,sBA6CC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { CursorPage } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
4
5
  /**
5
6
  * Users
@@ -11,6 +12,13 @@ export class Users extends APIResource {
11
12
  retrieve(id, options) {
12
13
  return this._client.get(path `/users/${id}`, options);
13
14
  }
15
+ /**
16
+ * Search for users by name or username, ranked by social proximity to the
17
+ * authenticated user.
18
+ */
19
+ list(query = {}, options) {
20
+ return this._client.getAPIList('/users', (CursorPage), { query, ...options });
21
+ }
14
22
  /**
15
23
  * Check whether a user has access to a specific resource, and return their access
16
24
  * level.
@@ -1 +1 @@
1
- {"version":3,"file":"users.mjs","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,EAAE,EAAE,EAAE,OAAO,CA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OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,aAAa,CACX,OAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  import { APIPromise } from "../core/api-promise.mjs";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
3
4
  import { RequestOptions } from "../internal/request-options.mjs";
4
5
  /**
5
6
  * Verifications
@@ -13,7 +14,17 @@ export declare class Verifications extends APIResource {
13
14
  * - `payout:account:read`
14
15
  */
15
16
  retrieve(id: string, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
17
+ /**
18
+ * Returns a list of identity verifications for a payout account, ordered by most
19
+ * recent first.
20
+ *
21
+ * Required permissions:
22
+ *
23
+ * - `payout:account:read`
24
+ */
25
+ list(query: VerificationListParams, options?: RequestOptions): PagePromise<VerificationListResponsesCursorPage, VerificationListResponse>;
16
26
  }
27
+ export type VerificationListResponsesCursorPage = CursorPage<VerificationListResponse>;
17
28
  /**
18
29
  * An error code for a verification attempt.
19
30
  */
@@ -45,7 +56,48 @@ export interface VerificationRetrieveResponse {
45
56
  */
46
57
  status: VerificationStatus;
47
58
  }
59
+ /**
60
+ * An identity verification session used to confirm a person or entity's identity
61
+ * for payout account eligibility.
62
+ */
63
+ export interface VerificationListResponse {
64
+ /**
65
+ * The unique identifier for the verification.
66
+ */
67
+ id: string;
68
+ /**
69
+ * An error code for a verification attempt.
70
+ */
71
+ last_error_code: VerificationErrorCode | null;
72
+ /**
73
+ * A human-readable explanation of the most recent verification error. Null if no
74
+ * error has occurred.
75
+ */
76
+ last_error_reason: string | null;
77
+ /**
78
+ * The current status of this verification session.
79
+ */
80
+ status: VerificationStatus;
81
+ }
82
+ export interface VerificationListParams extends CursorPageParams {
83
+ /**
84
+ * The unique identifier of the payout account to list verifications for.
85
+ */
86
+ payout_account_id: string;
87
+ /**
88
+ * Returns the elements in the list that come before the specified cursor.
89
+ */
90
+ before?: string | null;
91
+ /**
92
+ * Returns the first _n_ elements from the list.
93
+ */
94
+ first?: number | null;
95
+ /**
96
+ * Returns the last _n_ elements from the list.
97
+ */
98
+ last?: number | null;
99
+ }
48
100
  export declare namespace Verifications {
49
- export { type VerificationErrorCode as VerificationErrorCode, type VerificationStatus as VerificationStatus, type VerificationRetrieveResponse as VerificationRetrieveResponse, };
101
+ export { type VerificationErrorCode as VerificationErrorCode, type VerificationStatus as VerificationStatus, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationListResponse as VerificationListResponse, type VerificationListResponsesCursorPage as VerificationListResponsesCursorPage, type VerificationListParams as VerificationListParams, };
50
102
  }
51
103
  //# sourceMappingURL=verifications.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,6BAA6B,GAC7B,2BAA2B,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sCAAsC,GACtC,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,GACxB,6BAA6B,GAC7B,+BAA+B,GAC/B,sBAAsB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,CAAC;AAE1B;;GAEG;A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AAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,5 +1,6 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import { APIPromise } from "../core/api-promise.js";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
3
4
  import { RequestOptions } from "../internal/request-options.js";
4
5
  /**
5
6
  * Verifications
@@ -13,7 +14,17 @@ export declare class Verifications extends APIResource {
13
14
  * - `payout:account:read`
14
15
  */
15
16
  retrieve(id: string, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
17
+ /**
18
+ * Returns a list of identity verifications for a payout account, ordered by most
19
+ * recent first.
20
+ *
21
+ * Required permissions:
22
+ *
23
+ * - `payout:account:read`
24
+ */
25
+ list(query: VerificationListParams, options?: RequestOptions): PagePromise<VerificationListResponsesCursorPage, VerificationListResponse>;
16
26
  }
27
+ export type VerificationListResponsesCursorPage = CursorPage<VerificationListResponse>;
17
28
  /**
18
29
  * An error code for a verification attempt.
19
30
  */
@@ -45,7 +56,48 @@ export interface VerificationRetrieveResponse {
45
56
  */
46
57
  status: VerificationStatus;
47
58
  }
59
+ /**
60
+ * An identity verification session used to confirm a person or entity's identity
61
+ * for payout account eligibility.
62
+ */
63
+ export interface VerificationListResponse {
64
+ /**
65
+ * The unique identifier for the verification.
66
+ */
67
+ id: string;
68
+ /**
69
+ * An error code for a verification attempt.
70
+ */
71
+ last_error_code: VerificationErrorCode | null;
72
+ /**
73
+ * A human-readable explanation of the most recent verification error. Null if no
74
+ * error has occurred.
75
+ */
76
+ last_error_reason: string | null;
77
+ /**
78
+ * The current status of this verification session.
79
+ */
80
+ status: VerificationStatus;
81
+ }
82
+ export interface VerificationListParams extends CursorPageParams {
83
+ /**
84
+ * The unique identifier of the payout account to list verifications for.
85
+ */
86
+ payout_account_id: string;
87
+ /**
88
+ * Returns the elements in the list that come before the specified cursor.
89
+ */
90
+ before?: string | null;
91
+ /**
92
+ * Returns the first _n_ elements from the list.
93
+ */
94
+ first?: number | null;
95
+ /**
96
+ * Returns the last _n_ elements from the list.
97
+ */
98
+ last?: number | null;
99
+ }
48
100
  export declare namespace Verifications {
49
- export { type VerificationErrorCode as VerificationErrorCode, type VerificationStatus as VerificationStatus, type VerificationRetrieveResponse as VerificationRetrieveResponse, };
101
+ export { type VerificationErrorCode as VerificationErrorCode, type VerificationStatus as VerificationStatus, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationListResponse as VerificationListResponse, type VerificationListResponsesCursorPage as VerificationListResponsesCursorPage, type VerificationListParams as VerificationListParams, };
50
102
  }
51
103
  //# sourceMappingURL=verifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,kBAAkB,GAClB,6BAA6B,GAC7B,2BAA2B,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sCAAsC,GACtC,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,GACxB,6BAA6B,GAC7B,+BAA+B,GAC/B,sBAAsB,GACtB,oBAAoB,GACpB,yBAAyB,GACzB,qBAAqB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,wBAAwB,GACxB,SAAS,GACT,WAAW,GACX,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAE9C;;;OAGG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
1
+ {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../src/resources/verifications.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;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAIxF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,wBAAwB,CAAC;CAM9E;AAED,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,w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M,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Verifications = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
6
7
  const path_1 = require("../internal/utils/path.js");
7
8
  /**
8
9
  * Verifications
@@ -18,6 +19,20 @@ class Verifications extends resource_1.APIResource {
18
19
  retrieve(id, options) {
19
20
  return this._client.get((0, path_1.path) `/verifications/${id}`, options);
20
21
  }
22
+ /**
23
+ * Returns a list of identity verifications for a payout account, ordered by most
24
+ * recent first.
25
+ *
26
+ * Required permissions:
27
+ *
28
+ * - `payout:account:read`
29
+ */
30
+ list(query, options) {
31
+ return this._client.getAPIList('/verifications', (pagination_1.CursorPage), {
32
+ query,
33
+ ...options,
34
+ });
35
+ }
21
36
  }
22
37
  exports.Verifications = Verifications;
23
38
  //# sourceMappingURL=verifications.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifications.js","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAXD,sCAWC"}
1
+ {"version":3,"file":"verifications.js","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,uBAAoC,CAAA,EAAE;YACrF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,sCA6BC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { CursorPage } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
4
5
  /**
5
6
  * Verifications
@@ -15,5 +16,19 @@ export class Verifications extends APIResource {
15
16
  retrieve(id, options) {
16
17
  return this._client.get(path `/verifications/${id}`, options);
17
18
  }
19
+ /**
20
+ * Returns a list of identity verifications for a payout account, ordered by most
21
+ * recent first.
22
+ *
23
+ * Required permissions:
24
+ *
25
+ * - `payout:account:read`
26
+ */
27
+ list(query, options) {
28
+ return this._client.getAPIList('/verifications', (CursorPage), {
29
+ query,
30
+ ...options,
31
+ });
32
+ }
18
33
  }
19
34
  //# sourceMappingURL=verifications.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
1
+ {"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../src/resources/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,UAAoC,CAAA,EAAE;YACrF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -2,6 +2,7 @@ import { APIResource } from "../core/resource.mjs";
2
2
  import * as DisputeAlertsAPI from "./dispute-alerts.mjs";
3
3
  import * as DisputesAPI from "./disputes.mjs";
4
4
  import * as PaymentsAPI from "./payments.mjs";
5
+ import * as PayoutAccountsAPI from "./payout-accounts.mjs";
5
6
  import * as PayoutMethodsAPI from "./payout-methods.mjs";
6
7
  import * as RefundsAPI from "./refunds.mjs";
7
8
  import * as SetupIntentsAPI from "./setup-intents.mjs";
@@ -151,7 +152,7 @@ export interface Webhook {
151
152
  /**
152
153
  * The different event types available
153
154
  */
154
- export type WebhookEvent = 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'invoice.voided' | 'membership.activated' | 'membership.deactivated' | 'entry.created' | 'entry.approved' | 'entry.denied' | 'entry.deleted' | 'setup_intent.requires_action' | 'setup_intent.succeeded' | 'setup_intent.canceled' | 'withdrawal.created' | 'withdrawal.updated' | 'course_lesson_interaction.completed' | 'payout_method.created' | 'verification.succeeded' | 'payment.created' | 'payment.succeeded' | 'payment.failed' | 'payment.pending' | 'dispute.created' | 'dispute.updated' | 'refund.created' | 'refund.updated' | 'dispute_alert.created' | 'membership.cancel_at_period_end_changed';
155
+ export type WebhookEvent = 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'invoice.voided' | 'membership.activated' | 'membership.deactivated' | 'entry.created' | 'entry.approved' | 'entry.denied' | 'entry.deleted' | 'setup_intent.requires_action' | 'setup_intent.succeeded' | 'setup_intent.canceled' | 'withdrawal.created' | 'withdrawal.updated' | 'course_lesson_interaction.completed' | 'payout_method.created' | 'verification.succeeded' | 'payout_account.status_updated' | 'payment.created' | 'payment.succeeded' | 'payment.failed' | 'payment.pending' | 'dispute.created' | 'dispute.updated' | 'refund.created' | 'refund.updated' | 'dispute_alert.created' | 'membership.cancel_at_period_end_changed';
155
156
  /**
156
157
  * A webhook endpoint that receives event notifications for a company via HTTP
157
158
  * POST.
@@ -833,6 +834,147 @@ export declare namespace VerificationSucceededWebhookEvent {
833
834
  status: VerificationsAPI.VerificationStatus;
834
835
  }
835
836
  }
837
+ export interface PayoutAccountStatusUpdatedWebhookEvent {
838
+ /**
839
+ * A unique ID for every single webhook request
840
+ */
841
+ id: string;
842
+ /**
843
+ * The API version for this webhook
844
+ */
845
+ api_version: 'v1';
846
+ /**
847
+ * An object representing an account used for payouts.
848
+ */
849
+ data: PayoutAccountStatusUpdatedWebhookEvent.Data;
850
+ /**
851
+ * The timestamp in ISO 8601 format that the webhook was sent at on the server
852
+ */
853
+ timestamp: string;
854
+ /**
855
+ * The webhook event type
856
+ */
857
+ type: 'payout_account.status_updated';
858
+ /**
859
+ * The company ID that this webhook event is associated with
860
+ */
861
+ company_id?: string | null;
862
+ }
863
+ export declare namespace PayoutAccountStatusUpdatedWebhookEvent {
864
+ /**
865
+ * An object representing an account used for payouts.
866
+ */
867
+ interface Data {
868
+ /**
869
+ * The unique identifier for the payout account.
870
+ */
871
+ id: string;
872
+ /**
873
+ * The physical address associated with this payout account
874
+ */
875
+ address: Data.Address | null;
876
+ /**
877
+ * The company's legal name
878
+ */
879
+ business_name: string | null;
880
+ /**
881
+ * The business representative for this payout account
882
+ */
883
+ business_representative: Data.BusinessRepresentative | null;
884
+ /**
885
+ * The email address of the representative
886
+ */
887
+ email: string | null;
888
+ /**
889
+ * The latest verification for the connected account.
890
+ */
891
+ latest_verification: Data.LatestVerification | null;
892
+ /**
893
+ * The business representative's phone
894
+ */
895
+ phone: string | null;
896
+ /**
897
+ * The granular calculated statuses reflecting payout account KYC and withdrawal
898
+ * readiness.
899
+ */
900
+ status: PayoutAccountsAPI.PayoutAccountCalculatedStatuses | null;
901
+ }
902
+ namespace Data {
903
+ /**
904
+ * The physical address associated with this payout account
905
+ */
906
+ interface Address {
907
+ /**
908
+ * The city of the address.
909
+ */
910
+ city: string | null;
911
+ /**
912
+ * The country of the address.
913
+ */
914
+ country: string | null;
915
+ /**
916
+ * The line 1 of the address.
917
+ */
918
+ line1: string | null;
919
+ /**
920
+ * The line 2 of the address.
921
+ */
922
+ line2: string | null;
923
+ /**
924
+ * The postal code of the address.
925
+ */
926
+ postal_code: string | null;
927
+ /**
928
+ * The state of the address.
929
+ */
930
+ state: string | null;
931
+ }
932
+ /**
933
+ * The business representative for this payout account
934
+ */
935
+ interface BusinessRepresentative {
936
+ /**
937
+ * The date of birth of the business representative in ISO 8601 format
938
+ * (YYYY-MM-DD).
939
+ */
940
+ date_of_birth: string | null;
941
+ /**
942
+ * The first name of the business representative.
943
+ */
944
+ first_name: string | null;
945
+ /**
946
+ * The last name of the business representative.
947
+ */
948
+ last_name: string | null;
949
+ /**
950
+ * The middle name of the business representative.
951
+ */
952
+ middle_name: string | null;
953
+ }
954
+ /**
955
+ * The latest verification for the connected account.
956
+ */
957
+ interface LatestVerification {
958
+ /**
959
+ * The unique identifier for the verification.
960
+ */
961
+ id: string;
962
+ /**
963
+ * An error code for a verification attempt.
964
+ */
965
+ last_error_code: VerificationsAPI.VerificationErrorCode | null;
966
+ /**
967
+ * A human-readable explanation of the most recent verification error. Null if no
968
+ * error has occurred.
969
+ */
970
+ last_error_reason: string | null;
971
+ /**
972
+ * The current status of this verification session.
973
+ */
974
+ status: VerificationsAPI.VerificationStatus;
975
+ }
976
+ }
977
+ }
836
978
  export interface PaymentCreatedWebhookEvent {
837
979
  /**
838
980
  * A unique ID for every single webhook request
@@ -1676,7 +1818,7 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
1676
1818
  */
1677
1819
  company_id?: string | null;
1678
1820
  }
1679
- export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | SetupIntentRequiresActionWebhookEvent | SetupIntentSucceededWebhookEvent | SetupIntentCanceledWebhookEvent | WithdrawalCreatedWebhookEvent | WithdrawalUpdatedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PayoutMethodCreatedWebhookEvent | VerificationSucceededWebhookEvent | PaymentCreatedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent | DisputeCreatedWebhookEvent | DisputeUpdatedWebhookEvent | RefundCreatedWebhookEvent | RefundUpdatedWebhookEvent | DisputeAlertCreatedWebhookEvent | MembershipCancelAtPeriodEndChangedWebhookEvent;
1821
+ export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | SetupIntentRequiresActionWebhookEvent | SetupIntentSucceededWebhookEvent | SetupIntentCanceledWebhookEvent | WithdrawalCreatedWebhookEvent | WithdrawalUpdatedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PayoutMethodCreatedWebhookEvent | VerificationSucceededWebhookEvent | PayoutAccountStatusUpdatedWebhookEvent | PaymentCreatedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent | DisputeCreatedWebhookEvent | DisputeUpdatedWebhookEvent | RefundCreatedWebhookEvent | RefundUpdatedWebhookEvent | DisputeAlertCreatedWebhookEvent | MembershipCancelAtPeriodEndChangedWebhookEvent;
1680
1822
  export interface WebhookCreateParams {
1681
1823
  /**
1682
1824
  * The URL to send the webhook to.
@@ -1746,6 +1888,6 @@ export interface WebhookListParams extends CursorPageParams {
1746
1888
  last?: number | null;
1747
1889
  }
1748
1890
  export declare namespace Webhooks {
1749
- export { type APIVersion as APIVersion, type Webhook as Webhook, type WebhookEvent as WebhookEvent, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent, type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent, type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent, type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent, type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PayoutMethodCreatedWebhookEvent as PayoutMethodCreatedWebhookEvent, type VerificationSucceededWebhookEvent as VerificationSucceededWebhookEvent, type PaymentCreatedWebhookEvent as PaymentCreatedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent as DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent, type DisputeAlertCreatedWebhookEvent as DisputeAlertCreatedWebhookEvent, type MembershipCancelAtPeriodEndChangedWebhookEvent as MembershipCancelAtPeriodEndChangedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, type WebhookListResponsesCursorPage as WebhookListResponsesCursorPage, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, };
1891
+ export { type APIVersion as APIVersion, type Webhook as Webhook, type WebhookEvent as WebhookEvent, type WebhookCreateResponse as WebhookCreateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent, type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent, type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent, type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent, type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PayoutMethodCreatedWebhookEvent as PayoutMethodCreatedWebhookEvent, type VerificationSucceededWebhookEvent as VerificationSucceededWebhookEvent, type PayoutAccountStatusUpdatedWebhookEvent as PayoutAccountStatusUpdatedWebhookEvent, type PaymentCreatedWebhookEvent as PaymentCreatedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent as DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent, type DisputeAlertCreatedWebhookEvent as DisputeAlertCreatedWebhookEvent, type MembershipCancelAtPeriodEndChangedWebhookEvent as MembershipCancelAtPeriodEndChangedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, type WebhookListResponsesCursorPage as WebhookListResponsesCursorPage, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, };
1750
1892
  }
1751
1893
  //# sourceMappingURL=webhooks.d.mts.map