@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.
- package/CHANGELOG.md +30 -0
- package/client.d.mts +12 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -6
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/ledger-accounts.d.mts +6 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +6 -0
- 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/payout-accounts.d.mts +139 -0
- package/resources/payout-accounts.d.mts.map +1 -0
- package/resources/payout-accounts.d.ts +139 -0
- package/resources/payout-accounts.d.ts.map +1 -0
- package/resources/payout-accounts.js +23 -0
- package/resources/payout-accounts.js.map +1 -0
- package/resources/payout-accounts.mjs +19 -0
- package/resources/payout-accounts.mjs.map +1 -0
- package/resources/refunds.d.mts +15 -7
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +15 -7
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +3 -3
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +3 -3
- package/resources/refunds.mjs.map +1 -1
- package/resources/users.d.mts +70 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +70 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +8 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +8 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +53 -1
- package/resources/verifications.d.mts.map +1 -1
- package/resources/verifications.d.ts +53 -1
- package/resources/verifications.d.ts.map +1 -1
- package/resources/verifications.js +15 -0
- package/resources/verifications.js.map +1 -1
- package/resources/verifications.mjs +15 -0
- package/resources/verifications.mjs.map +1 -1
- package/resources/webhooks.d.mts +145 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +145 -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 +30 -0
- package/src/resources/index.ts +12 -0
- package/src/resources/ledger-accounts.ts +7 -0
- package/src/resources/payout-accounts.ts +177 -0
- package/src/resources/refunds.ts +17 -7
- package/src/resources/users.ts +90 -0
- package/src/resources/verifications.ts +73 -0
- package/src/resources/webhooks.ts +173 -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
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as VerificationsAPI from "./verifications.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Payout accounts
|
|
7
|
+
*/
|
|
8
|
+
export declare class PayoutAccounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the details of an existing payout account.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `payout:account:read`
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutAccountRetrieveResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The granular calculated statuses reflecting payout account KYC and withdrawal
|
|
20
|
+
* readiness.
|
|
21
|
+
*/
|
|
22
|
+
export type PayoutAccountCalculatedStatuses = 'connected' | 'disabled' | 'action_required' | 'pending_verification' | 'verification_failed' | 'not_started';
|
|
23
|
+
/**
|
|
24
|
+
* An object representing an account used for payouts.
|
|
25
|
+
*/
|
|
26
|
+
export interface PayoutAccountRetrieveResponse {
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier for the payout account.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The physical address associated with this payout account
|
|
33
|
+
*/
|
|
34
|
+
address: PayoutAccountRetrieveResponse.Address | null;
|
|
35
|
+
/**
|
|
36
|
+
* The company's legal name
|
|
37
|
+
*/
|
|
38
|
+
business_name: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The business representative for this payout account
|
|
41
|
+
*/
|
|
42
|
+
business_representative: PayoutAccountRetrieveResponse.BusinessRepresentative | null;
|
|
43
|
+
/**
|
|
44
|
+
* The email address of the representative
|
|
45
|
+
*/
|
|
46
|
+
email: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The latest verification for the connected account.
|
|
49
|
+
*/
|
|
50
|
+
latest_verification: PayoutAccountRetrieveResponse.LatestVerification | null;
|
|
51
|
+
/**
|
|
52
|
+
* The business representative's phone
|
|
53
|
+
*/
|
|
54
|
+
phone: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The granular calculated statuses reflecting payout account KYC and withdrawal
|
|
57
|
+
* readiness.
|
|
58
|
+
*/
|
|
59
|
+
status: PayoutAccountCalculatedStatuses | null;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace PayoutAccountRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* The physical address associated with this payout account
|
|
64
|
+
*/
|
|
65
|
+
interface Address {
|
|
66
|
+
/**
|
|
67
|
+
* The city of the address.
|
|
68
|
+
*/
|
|
69
|
+
city: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The country of the address.
|
|
72
|
+
*/
|
|
73
|
+
country: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The line 1 of the address.
|
|
76
|
+
*/
|
|
77
|
+
line1: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The line 2 of the address.
|
|
80
|
+
*/
|
|
81
|
+
line2: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The postal code of the address.
|
|
84
|
+
*/
|
|
85
|
+
postal_code: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The state of the address.
|
|
88
|
+
*/
|
|
89
|
+
state: string | null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The business representative for this payout account
|
|
93
|
+
*/
|
|
94
|
+
interface BusinessRepresentative {
|
|
95
|
+
/**
|
|
96
|
+
* The date of birth of the business representative in ISO 8601 format
|
|
97
|
+
* (YYYY-MM-DD).
|
|
98
|
+
*/
|
|
99
|
+
date_of_birth: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* The first name of the business representative.
|
|
102
|
+
*/
|
|
103
|
+
first_name: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The last name of the business representative.
|
|
106
|
+
*/
|
|
107
|
+
last_name: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The middle name of the business representative.
|
|
110
|
+
*/
|
|
111
|
+
middle_name: string | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The latest verification for the connected account.
|
|
115
|
+
*/
|
|
116
|
+
interface LatestVerification {
|
|
117
|
+
/**
|
|
118
|
+
* The unique identifier for the verification.
|
|
119
|
+
*/
|
|
120
|
+
id: string;
|
|
121
|
+
/**
|
|
122
|
+
* An error code for a verification attempt.
|
|
123
|
+
*/
|
|
124
|
+
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
125
|
+
/**
|
|
126
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
127
|
+
* error has occurred.
|
|
128
|
+
*/
|
|
129
|
+
last_error_reason: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The current status of this verification session.
|
|
132
|
+
*/
|
|
133
|
+
status: VerificationsAPI.VerificationStatus;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export declare namespace PayoutAccounts {
|
|
137
|
+
export { type PayoutAccountCalculatedStatuses as PayoutAccountCalculatedStatuses, type PayoutAccountRetrieveResponse as PayoutAccountRetrieveResponse, };
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=payout-accounts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-accounts.d.mts","sourceRoot":"","sources":["../src/resources/payout-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACvC,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,sBAAsB,GACtB,qBAAqB,GACrB,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC,OAAO,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,uBAAuB,EAAE,6BAA6B,CAAC,sBAAsB,GAAG,IAAI,CAAC;IAErF;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,mBAAmB,EAAE,6BAA6B,CAAC,kBAAkB,GAAG,IAAI,CAAC;IAE7E;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;OAGG;IACH,MAAM,EAAE,+BAA+B,GAAG,IAAI,CAAC;CAChD;AAED,yBAAiB,6BAA6B,CAAC;IAC7C;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB;;WAEG;QACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,sBAAsB;QACrC;;;WAGG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;WAEG;QACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;IAED;;OAEG;IACH,UAAiB,kBAAkB;QACjC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,eAAe,EAAE,gBAAgB,CAAC,qBAAqB,GAAG,IAAI,CAAC;QAE/D;;;WAGG;QACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEjC;;WAEG;QACH,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;KAC7C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as VerificationsAPI from "./verifications.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Payout accounts
|
|
7
|
+
*/
|
|
8
|
+
export declare class PayoutAccounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves the details of an existing payout account.
|
|
11
|
+
*
|
|
12
|
+
* Required permissions:
|
|
13
|
+
*
|
|
14
|
+
* - `payout:account:read`
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayoutAccountRetrieveResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The granular calculated statuses reflecting payout account KYC and withdrawal
|
|
20
|
+
* readiness.
|
|
21
|
+
*/
|
|
22
|
+
export type PayoutAccountCalculatedStatuses = 'connected' | 'disabled' | 'action_required' | 'pending_verification' | 'verification_failed' | 'not_started';
|
|
23
|
+
/**
|
|
24
|
+
* An object representing an account used for payouts.
|
|
25
|
+
*/
|
|
26
|
+
export interface PayoutAccountRetrieveResponse {
|
|
27
|
+
/**
|
|
28
|
+
* The unique identifier for the payout account.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The physical address associated with this payout account
|
|
33
|
+
*/
|
|
34
|
+
address: PayoutAccountRetrieveResponse.Address | null;
|
|
35
|
+
/**
|
|
36
|
+
* The company's legal name
|
|
37
|
+
*/
|
|
38
|
+
business_name: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The business representative for this payout account
|
|
41
|
+
*/
|
|
42
|
+
business_representative: PayoutAccountRetrieveResponse.BusinessRepresentative | null;
|
|
43
|
+
/**
|
|
44
|
+
* The email address of the representative
|
|
45
|
+
*/
|
|
46
|
+
email: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* The latest verification for the connected account.
|
|
49
|
+
*/
|
|
50
|
+
latest_verification: PayoutAccountRetrieveResponse.LatestVerification | null;
|
|
51
|
+
/**
|
|
52
|
+
* The business representative's phone
|
|
53
|
+
*/
|
|
54
|
+
phone: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The granular calculated statuses reflecting payout account KYC and withdrawal
|
|
57
|
+
* readiness.
|
|
58
|
+
*/
|
|
59
|
+
status: PayoutAccountCalculatedStatuses | null;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace PayoutAccountRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* The physical address associated with this payout account
|
|
64
|
+
*/
|
|
65
|
+
interface Address {
|
|
66
|
+
/**
|
|
67
|
+
* The city of the address.
|
|
68
|
+
*/
|
|
69
|
+
city: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* The country of the address.
|
|
72
|
+
*/
|
|
73
|
+
country: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The line 1 of the address.
|
|
76
|
+
*/
|
|
77
|
+
line1: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The line 2 of the address.
|
|
80
|
+
*/
|
|
81
|
+
line2: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The postal code of the address.
|
|
84
|
+
*/
|
|
85
|
+
postal_code: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* The state of the address.
|
|
88
|
+
*/
|
|
89
|
+
state: string | null;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The business representative for this payout account
|
|
93
|
+
*/
|
|
94
|
+
interface BusinessRepresentative {
|
|
95
|
+
/**
|
|
96
|
+
* The date of birth of the business representative in ISO 8601 format
|
|
97
|
+
* (YYYY-MM-DD).
|
|
98
|
+
*/
|
|
99
|
+
date_of_birth: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* The first name of the business representative.
|
|
102
|
+
*/
|
|
103
|
+
first_name: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The last name of the business representative.
|
|
106
|
+
*/
|
|
107
|
+
last_name: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* The middle name of the business representative.
|
|
110
|
+
*/
|
|
111
|
+
middle_name: string | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The latest verification for the connected account.
|
|
115
|
+
*/
|
|
116
|
+
interface LatestVerification {
|
|
117
|
+
/**
|
|
118
|
+
* The unique identifier for the verification.
|
|
119
|
+
*/
|
|
120
|
+
id: string;
|
|
121
|
+
/**
|
|
122
|
+
* An error code for a verification attempt.
|
|
123
|
+
*/
|
|
124
|
+
last_error_code: VerificationsAPI.VerificationErrorCode | null;
|
|
125
|
+
/**
|
|
126
|
+
* A human-readable explanation of the most recent verification error. Null if no
|
|
127
|
+
* error has occurred.
|
|
128
|
+
*/
|
|
129
|
+
last_error_reason: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The current status of this verification session.
|
|
132
|
+
*/
|
|
133
|
+
status: VerificationsAPI.VerificationStatus;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export declare namespace PayoutAccounts {
|
|
137
|
+
export { type PayoutAccountCalculatedStatuses as PayoutAccountCalculatedStatuses, type PayoutAccountRetrieveResponse as PayoutAccountRetrieveResponse, };
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=payout-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-accounts.d.ts","sourceRoot":"","sources":["../src/resources/payout-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GACvC,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,sBAAsB,GACtB,qBAAqB,GACrB,aAAa,CAAC;AAElB;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;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I,CAAC;QAE/D;;;WAGG;QACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEjC;;WAEG;QACH,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;KAC7C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PayoutAccounts = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Payout accounts
|
|
9
|
+
*/
|
|
10
|
+
class PayoutAccounts extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves the details of an existing payout account.
|
|
13
|
+
*
|
|
14
|
+
* Required permissions:
|
|
15
|
+
*
|
|
16
|
+
* - `payout:account:read`
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id, options) {
|
|
19
|
+
return this._client.get((0, path_1.path) `/payout_accounts/${id}`, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PayoutAccounts = PayoutAccounts;
|
|
23
|
+
//# sourceMappingURL=payout-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-accounts.js","sourceRoot":"","sources":["../src/resources/payout-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAXD,wCAWC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Payout accounts
|
|
6
|
+
*/
|
|
7
|
+
export class PayoutAccounts extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the details of an existing payout account.
|
|
10
|
+
*
|
|
11
|
+
* Required permissions:
|
|
12
|
+
*
|
|
13
|
+
* - `payout:account:read`
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, options) {
|
|
16
|
+
return this._client.get(path `/payout_accounts/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=payout-accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payout-accounts.mjs","sourceRoot":"","sources":["../src/resources/payout-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
package/resources/refunds.d.mts
CHANGED
|
@@ -20,14 +20,14 @@ export declare class Refunds extends APIResource {
|
|
|
20
20
|
*/
|
|
21
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<RefundRetrieveResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Returns a paginated list of refunds
|
|
24
|
-
*
|
|
23
|
+
* Returns a paginated list of refunds, with optional filtering by payment,
|
|
24
|
+
* company, user, and creation date.
|
|
25
25
|
*
|
|
26
26
|
* Required permissions:
|
|
27
27
|
*
|
|
28
28
|
* - `payment:basic:read`
|
|
29
29
|
*/
|
|
30
|
-
list(query
|
|
30
|
+
list(query?: RefundListParams | null | undefined, options?: RequestOptions): PagePromise<RefundListResponsesCursorPage, RefundListResponse>;
|
|
31
31
|
}
|
|
32
32
|
export type RefundListResponsesCursorPage = CursorPage<RefundListResponse>;
|
|
33
33
|
/**
|
|
@@ -302,14 +302,14 @@ export declare namespace RefundListResponse {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
export interface RefundListParams extends CursorPageParams {
|
|
305
|
-
/**
|
|
306
|
-
* The unique identifier of the payment to list refunds for.
|
|
307
|
-
*/
|
|
308
|
-
payment_id: string;
|
|
309
305
|
/**
|
|
310
306
|
* Returns the elements in the list that come before the specified cursor.
|
|
311
307
|
*/
|
|
312
308
|
before?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Filter refunds to only those belonging to this company.
|
|
311
|
+
*/
|
|
312
|
+
company_id?: string | null;
|
|
313
313
|
/**
|
|
314
314
|
* Only return refunds created after this timestamp.
|
|
315
315
|
*/
|
|
@@ -330,6 +330,14 @@ export interface RefundListParams extends CursorPageParams {
|
|
|
330
330
|
* Returns the last _n_ elements from the list.
|
|
331
331
|
*/
|
|
332
332
|
last?: number | null;
|
|
333
|
+
/**
|
|
334
|
+
* Filter refunds to only those associated with this specific payment.
|
|
335
|
+
*/
|
|
336
|
+
payment_id?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Filter refunds to only those associated with this specific user.
|
|
339
|
+
*/
|
|
340
|
+
user_id?: string | null;
|
|
333
341
|
}
|
|
334
342
|
export declare namespace Refunds {
|
|
335
343
|
export { type PaymentProvider as PaymentProvider, type RefundReferenceStatus as RefundReferenceStatus, type RefundReferenceType as RefundReferenceType, type RefundStatus as RefundStatus, type RefundRetrieveResponse as RefundRetrieveResponse, type RefundListResponse as RefundListResponse, type RefundListResponsesCursorPage as RefundListResponsesCursorPage, type RefundListParams as RefundListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.d.mts","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,
|
|
1
|
+
{"version":3,"file":"refunds.d.mts","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,kBAAkB,CAAC;CAGlE;AAED,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAE3E;;GAEG;AACH,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EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/refunds.d.ts
CHANGED
|
@@ -20,14 +20,14 @@ export declare class Refunds extends APIResource {
|
|
|
20
20
|
*/
|
|
21
21
|
retrieve(id: string, options?: RequestOptions): APIPromise<RefundRetrieveResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Returns a paginated list of refunds
|
|
24
|
-
*
|
|
23
|
+
* Returns a paginated list of refunds, with optional filtering by payment,
|
|
24
|
+
* company, user, and creation date.
|
|
25
25
|
*
|
|
26
26
|
* Required permissions:
|
|
27
27
|
*
|
|
28
28
|
* - `payment:basic:read`
|
|
29
29
|
*/
|
|
30
|
-
list(query
|
|
30
|
+
list(query?: RefundListParams | null | undefined, options?: RequestOptions): PagePromise<RefundListResponsesCursorPage, RefundListResponse>;
|
|
31
31
|
}
|
|
32
32
|
export type RefundListResponsesCursorPage = CursorPage<RefundListResponse>;
|
|
33
33
|
/**
|
|
@@ -302,14 +302,14 @@ export declare namespace RefundListResponse {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
export interface RefundListParams extends CursorPageParams {
|
|
305
|
-
/**
|
|
306
|
-
* The unique identifier of the payment to list refunds for.
|
|
307
|
-
*/
|
|
308
|
-
payment_id: string;
|
|
309
305
|
/**
|
|
310
306
|
* Returns the elements in the list that come before the specified cursor.
|
|
311
307
|
*/
|
|
312
308
|
before?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Filter refunds to only those belonging to this company.
|
|
311
|
+
*/
|
|
312
|
+
company_id?: string | null;
|
|
313
313
|
/**
|
|
314
314
|
* Only return refunds created after this timestamp.
|
|
315
315
|
*/
|
|
@@ -330,6 +330,14 @@ export interface RefundListParams extends CursorPageParams {
|
|
|
330
330
|
* Returns the last _n_ elements from the list.
|
|
331
331
|
*/
|
|
332
332
|
last?: number | null;
|
|
333
|
+
/**
|
|
334
|
+
* Filter refunds to only those associated with this specific payment.
|
|
335
|
+
*/
|
|
336
|
+
payment_id?: string | null;
|
|
337
|
+
/**
|
|
338
|
+
* Filter refunds to only those associated with this specific user.
|
|
339
|
+
*/
|
|
340
|
+
user_id?: string | null;
|
|
333
341
|
}
|
|
334
342
|
export declare namespace Refunds {
|
|
335
343
|
export { type PaymentProvider as PaymentProvider, type RefundReferenceStatus as RefundReferenceStatus, type RefundReferenceType as RefundReferenceType, type RefundStatus as RefundStatus, type RefundRetrieveResponse as RefundRetrieveResponse, type RefundListResponse as RefundListResponse, type RefundListResponsesCursorPage as RefundListResponsesCursorPage, type RefundListParams as RefundListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.d.ts","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EA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AAG,IAAI,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/refunds.js
CHANGED
|
@@ -23,14 +23,14 @@ class Refunds extends resource_1.APIResource {
|
|
|
23
23
|
return this._client.get((0, path_1.path) `/refunds/${id}`, options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Returns a paginated list of refunds
|
|
27
|
-
*
|
|
26
|
+
* Returns a paginated list of refunds, with optional filtering by payment,
|
|
27
|
+
* company, user, and creation date.
|
|
28
28
|
*
|
|
29
29
|
* Required permissions:
|
|
30
30
|
*
|
|
31
31
|
* - `payment:basic:read`
|
|
32
32
|
*/
|
|
33
|
-
list(query, options) {
|
|
33
|
+
list(query = {}, options) {
|
|
34
34
|
return this._client.getAPIList('/refunds', (pagination_1.CursorPage), { query, ...options });
|
|
35
35
|
}
|
|
36
36
|
}
|
package/resources/refunds.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.js","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"refunds.js","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAoF;AAEpF,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,uBAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF;AA7BD,0BA6BC"}
|
package/resources/refunds.mjs
CHANGED
|
@@ -20,14 +20,14 @@ export class Refunds extends APIResource {
|
|
|
20
20
|
return this._client.get(path `/refunds/${id}`, options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Returns a paginated list of refunds
|
|
24
|
-
*
|
|
23
|
+
* Returns a paginated list of refunds, with optional filtering by payment,
|
|
24
|
+
* company, user, and creation date.
|
|
25
25
|
*
|
|
26
26
|
* Required permissions:
|
|
27
27
|
*
|
|
28
28
|
* - `payment:basic:read`
|
|
29
29
|
*/
|
|
30
|
-
list(query, options) {
|
|
30
|
+
list(query = {}, options) {
|
|
31
31
|
return this._client.getAPIList('/refunds', (CursorPage), { query, ...options });
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refunds.mjs","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"refunds.mjs","sourceRoot":"","sources":["../src/resources/refunds.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,UAA8B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;CACF"}
|
package/resources/users.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as Shared from "./shared.mjs";
|
|
3
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
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.mts.map
|