@whop/cli 0.14.1 → 0.14.3

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 (42) hide show
  1. package/README.md +3 -3
  2. package/dist/index.js +22283 -7154
  3. package/dist/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/skills/whop-accounts/SKILL.md +195 -15
  6. package/skills/whop-ad-campaigns/SKILL.md +193 -15
  7. package/skills/whop-ad-groups/SKILL.md +258 -16
  8. package/skills/whop-ads/SKILL.md +190 -14
  9. package/skills/whop-api-keys/SKILL.md +113 -13
  10. package/skills/whop-app-builds/SKILL.md +68 -8
  11. package/skills/whop-apps/SKILL.md +135 -12
  12. package/skills/whop-audiences/SKILL.md +92 -8
  13. package/skills/whop-bounties/SKILL.md +104 -9
  14. package/skills/whop-bounty-submissions/SKILL.md +82 -9
  15. package/skills/whop-cards/SKILL.md +122 -12
  16. package/skills/whop-checkout-configurations/SKILL.md +64 -8
  17. package/skills/whop-deposits/SKILL.md +13 -5
  18. package/skills/whop-disputes/SKILL.md +86 -9
  19. package/skills/whop-events/SKILL.md +90 -8
  20. package/skills/whop-exports/SKILL.md +331 -7
  21. package/skills/whop-ledgers/SKILL.md +38 -6
  22. package/skills/whop-media/SKILL.md +28 -7
  23. package/skills/whop-members/SKILL.md +51 -6
  24. package/skills/whop-memberships/SKILL.md +137 -13
  25. package/skills/whop-notifications/SKILL.md +91 -12
  26. package/skills/whop-partners/SKILL.md +102 -12
  27. package/skills/whop-payments/SKILL.md +40 -0
  28. package/skills/whop-payouts/SKILL.md +130 -9
  29. package/skills/whop-people/SKILL.md +50 -6
  30. package/skills/whop-permissions/SKILL.md +8 -5
  31. package/skills/whop-plans/SKILL.md +152 -12
  32. package/skills/whop-products/SKILL.md +141 -13
  33. package/skills/whop-resolution-center-cases/SKILL.md +222 -17
  34. package/skills/whop-setup-intents/SKILL.md +20 -0
  35. package/skills/whop-shipments/SKILL.md +66 -8
  36. package/skills/whop-social-accounts/SKILL.md +112 -11
  37. package/skills/whop-stats/SKILL.md +50 -6
  38. package/skills/whop-swaps/SKILL.md +63 -8
  39. package/skills/whop-team-members/SKILL.md +80 -9
  40. package/skills/whop-transfers/SKILL.md +67 -8
  41. package/skills/whop-users/SKILL.md +295 -18
  42. package/skills/whop-verifications/SKILL.md +51 -9
@@ -9,21 +9,298 @@ A User represents a person on Whop. Users have a public profile and can buy prod
9
9
 
10
10
  Use the Users API to search for users, retrieve or update profiles, and check whether a user has access to an account, product, or experience.
11
11
 
12
- ## Commands
13
-
14
- | Command | Description |
15
- |---------|-------------|
16
- | `whop users list` | List Users |
17
- | `whop users me` | Retrieve Current User |
18
- | `whop users update-me` | Update Current User |
19
- | `whop users preferences` | Retrieve |
20
- | `whop users update-preferences` | Update |
21
- | `whop users set-notification-preferences` | Set |
22
- | `whop users experience-notification-preferences` | List Experiences |
23
- | `whop users notification-topic-preferences` | List Topics |
24
- | `whop users get` | Retrieve User |
25
- | `whop users update` | Update User |
26
- | `whop users access` | Check User Access |
27
- | `whop users recommend_actions` | List Recommended Actions |
28
-
29
- Run `whop users <command> --help` for options, or `whop users <command> --schema` for full argument details.
12
+ # whop users access
13
+
14
+ Check User Access
15
+
16
+ ## Arguments
17
+
18
+ | Name | Type | Required | Description |
19
+ |------|------|----------|-------------|
20
+ | `id` | `string` | yes | The user_ tag or username to check access for. |
21
+ | `resource_id` | `string` | yes | An account (biz_), product (prod_), or experience (exp_) ID. |
22
+
23
+ ---
24
+
25
+ # whop users authorize-app
26
+
27
+ Authorize an App
28
+
29
+ ## Options
30
+
31
+ | Flag | Type | Required | Default | Description |
32
+ |------|------|----------|---------|-------------|
33
+ | `--account_id` | `string` | no | | Authorize the app for one of the user's accounts rather than for the user alone, prefixed `biz_`. The user must have access to it. |
34
+ | `--client_id` | `string` | yes | | The app being authorized, prefixed `app_`. |
35
+ | `--code_challenge` | `string` | yes | | The PKCE code challenge: the base64url-encoded SHA-256 of your code verifier, without padding. |
36
+ | `--code_challenge_method` | `string` | yes | | How `code_challenge` was derived. Only `S256` is accepted. |
37
+ | `--consent_shown` | `boolean` | no | `true` | Whether the consent UI listed these scopes for the user. Sending `false` succeeds only when the user has already granted every scope requested. |
38
+ | `--nonce` | `string` | no | | OIDC nonce, echoed into the resulting ID token. Required when `requested_scopes` includes `openid`. |
39
+ | `--redirect_uri` | `string` | yes | | Where to send the user once they have consented. Must match one of the app's registered redirect URIs exactly — it is compared as a string, not normalized. |
40
+ | `--requested_scopes` | `array` | yes | | The permissions the app is asking for, for example `member:basic:read`. `GET /api_keys/permissions` names and describes each one. Granting adds to whatever the user already granted this app rather than replacing it. |
41
+ | `--response_type` | `string` | no | | The OAuth response type. Only `code` is accepted; defaults to `code`. |
42
+ | `--state` | `string` | no | | Opaque value appended to `redirect_url` unchanged, for the client to correlate the response with its request. |
43
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
44
+
45
+ > Confirm with the user before executing this destructive command.
46
+
47
+ ---
48
+
49
+ # whop users delete-passkey
50
+
51
+ Delete
52
+
53
+ ## Arguments
54
+
55
+ | Name | Type | Required | Description |
56
+ |------|------|----------|-------------|
57
+ | `id` | `string` | yes | Passkey ID, prefixed `wcred_`. |
58
+
59
+ ## Options
60
+
61
+ | Flag | Type | Required | Default | Description |
62
+ |------|------|----------|---------|-------------|
63
+ | `--authenticator_data` | `string` | yes | | The `authenticatorData` from the WebAuthn assertion, base64url-encoded. |
64
+ | `--client_data_json` | `string` | yes | | The `clientDataJSON` from the WebAuthn assertion, base64url-encoded. |
65
+ | `--signature` | `string` | yes | | The `signature` from the WebAuthn assertion, base64url-encoded. |
66
+
67
+ > Confirm with the user before executing this destructive command.
68
+
69
+ ---
70
+
71
+ # whop users experience-notification-preferences
72
+
73
+ List Experiences
74
+
75
+ ## Options
76
+
77
+ | Flag | Type | Required | Default | Description |
78
+ |------|------|----------|---------|-------------|
79
+ | `--first` | `number` | no | | The number of preferences to return. |
80
+ | `--after` | `string` | no | | A cursor; returns preferences after this position. |
81
+
82
+ ---
83
+
84
+ # whop users get
85
+
86
+ Retrieve User
87
+
88
+ ## Arguments
89
+
90
+ | Name | Type | Required | Description |
91
+ |------|------|----------|-------------|
92
+ | `id` | `string` | yes | User ID (prefixed `user_`) or username. |
93
+
94
+ ## Options
95
+
96
+ | Flag | Type | Required | Default | Description |
97
+ |------|------|----------|---------|-------------|
98
+ | `--account_id` | `string` | no | | When set, returns the user's account-specific profile overrides for this account. |
99
+
100
+ ---
101
+
102
+ # whop users list
103
+
104
+ List Users
105
+
106
+ ## Options
107
+
108
+ | Flag | Type | Required | Default | Description |
109
+ |------|------|----------|---------|-------------|
110
+ | `--query` | `string` | no | | A search term to filter users by name or username. |
111
+ | `--first` | `number` | no | | The number of users to return (max 50). |
112
+ | `--after` | `string` | no | | A cursor; returns users after this position. |
113
+ | `--last` | `number` | no | | The number of users to return from the end of the range. |
114
+ | `--before` | `string` | no | | A cursor; returns users before this position. |
115
+
116
+ ---
117
+
118
+ # whop users me
119
+
120
+ Retrieve Current User
121
+
122
+ ## Options
123
+
124
+ | Flag | Type | Required | Default | Description |
125
+ |------|------|----------|---------|-------------|
126
+ | `--account_id` | `string` | no | | When set, returns your account-specific profile overrides for this account. |
127
+ | `--include_balance_history` | `boolean` | no | | Also compute your balance history (opt-in; runs a heavier query). Ignored for callers without balance-read scope. |
128
+ | `--from` | `string` | no | | Balance-history window start, ISO 8601 date or datetime. Defaults to 30 days ago. Only used with `include_balance_history`. |
129
+ | `--to` | `string` | no | | Balance-history window end, ISO 8601 date or datetime. Defaults to now. Only used with `include_balance_history`. |
130
+ | `--interval` | `string` | no | | Balance-history point granularity. Defaults to `day`. Only used with `include_balance_history`. |
131
+ | `--time_zone` | `string` | no | | IANA time zone the balance-history points are bucketed in. Defaults to `UTC`. Only used with `include_balance_history`. |
132
+
133
+ ---
134
+
135
+ # whop users me-oauth_grants
136
+
137
+ List OAuth Grants
138
+
139
+ ## Options
140
+
141
+ | Flag | Type | Required | Default | Description |
142
+ |------|------|----------|---------|-------------|
143
+ | `--app_id` | `string` | no | | Only return grants for this app, prefixed `app_`. An app the user has never authorized returns an empty list. |
144
+ | `--first` | `number` | no | | The number of grants to return (default 20, max 100). |
145
+ | `--after` | `string` | no | | A cursor; returns grants after this position. |
146
+ | `--last` | `number` | no | | The number of grants to return from the end of the range. |
147
+ | `--before` | `string` | no | | A cursor; returns grants before this position. |
148
+ | `--order` | `string` | no | | The field to sort grants by. |
149
+ | `--direction` | `string` | no | | Sort direction. |
150
+
151
+ ---
152
+
153
+ # whop users notification-topic-preferences
154
+
155
+ List Topics
156
+
157
+ ## Options
158
+
159
+ | Flag | Type | Required | Default | Description |
160
+ |------|------|----------|---------|-------------|
161
+ | `--channel` | `string` | no | | Only return preferences for this delivery channel (or not narrowed to a channel). |
162
+ | `--account_id` | `string` | no | | Only return preferences scoped to this account's member notifications (`biz_` tag). |
163
+ | `--team_account_id` | `string` | no | | Only return preferences scoped to this account's team notifications (`biz_` tag). |
164
+ | `--experience_id` | `string` | no | | Only return preferences scoped to this experience (`exp_` tag). |
165
+ | `--topic_id` | `string` | no | | Only return preferences scoped to this notification topic (`topic_` tag). |
166
+ | `--first` | `number` | no | | The number of preferences to return. |
167
+ | `--after` | `string` | no | | A cursor; returns preferences after this position. |
168
+
169
+ ---
170
+
171
+ # whop users passkey-challenge
172
+
173
+ Create Challenge
174
+
175
+ ## Options
176
+
177
+ | Flag | Type | Required | Default | Description |
178
+ |------|------|----------|---------|-------------|
179
+ | `--challenge_type` | `string` | yes | | The ceremony this challenge is for. |
180
+ | `--passkey_id` | `string` | no | | The passkey the ceremony targets, prefixed `wcred_`. Required when `challenge_type` is `deletion`, ignored otherwise. |
181
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
182
+
183
+ > Confirm with the user before executing this destructive command.
184
+
185
+ ---
186
+
187
+ # whop users passkeys
188
+
189
+ List
190
+
191
+ ## Options
192
+
193
+ | Flag | Type | Required | Default | Description |
194
+ |------|------|----------|---------|-------------|
195
+ | `--first` | `number` | no | | The number of passkeys to return (default 20, max 100). |
196
+ | `--after` | `string` | no | | A cursor; returns passkeys after this position. |
197
+ | `--last` | `number` | no | | The number of passkeys to return from the end of the range. |
198
+ | `--before` | `string` | no | | A cursor; returns passkeys before this position. |
199
+ | `--order` | `string` | no | | The field to sort passkeys by. |
200
+ | `--direction` | `string` | no | | Sort direction. |
201
+
202
+ ---
203
+
204
+ # whop users preferences
205
+
206
+ Retrieve
207
+
208
+ ---
209
+
210
+ # whop users recommend_actions
211
+
212
+ List Recommended Actions
213
+
214
+ ## Arguments
215
+
216
+ | Name | Type | Required | Description |
217
+ |------|------|----------|-------------|
218
+ | `id` | `string` | yes | `me`, or the authenticated user's own `user_` tag or username. |
219
+
220
+ ---
221
+
222
+ # whop users register-passkey
223
+
224
+ Register
225
+
226
+ ## Options
227
+
228
+ | Flag | Type | Required | Default | Description |
229
+ |------|------|----------|---------|-------------|
230
+ | `--attestation_object` | `string` | yes | | The `attestationObject` from the WebAuthn attestation response, base64url-encoded. |
231
+ | `--client_data_json` | `string` | yes | | The `clientDataJSON` from the WebAuthn attestation response, base64url-encoded. |
232
+ | `--credential_id` | `string` | yes | | The WebAuthn credential ID the authenticator returned, base64url-encoded. |
233
+ | `--nickname` | `string` | yes | | A name for this passkey, usually the device it lives on. 255 characters or fewer. |
234
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
235
+
236
+ > Confirm with the user before executing this destructive command.
237
+
238
+ ---
239
+
240
+ # whop users set-notification-preferences
241
+
242
+ Set
243
+
244
+ ## Options
245
+
246
+ | Flag | Type | Required | Default | Description |
247
+ |------|------|----------|---------|-------------|
248
+ | `--preferences` | `array` | yes | | The preferences to set, at most 100 per request. |
249
+
250
+ > Confirm with the user before executing this destructive command.
251
+
252
+ ---
253
+
254
+ # whop users update
255
+
256
+ Update User
257
+
258
+ ## Arguments
259
+
260
+ | Name | Type | Required | Description |
261
+ |------|------|----------|-------------|
262
+ | `id` | `string` | yes | User ID (prefixed `user_`) or username. |
263
+
264
+ ## Options
265
+
266
+ | Flag | Type | Required | Default | Description |
267
+ |------|------|----------|---------|-------------|
268
+ | `--account_id` | `string` | no | | The account whose profile override to update. Required for API key callers. |
269
+ | `--bio` | `string` | no | | |
270
+ | `--name` | `string` | no | | |
271
+ | `--profile_picture` | `object` | no | | |
272
+ | `--username` | `string` | no | | |
273
+
274
+ > Confirm with the user before executing this destructive command.
275
+
276
+ ---
277
+
278
+ # whop users update-me
279
+
280
+ Update Current User
281
+
282
+ ## Options
283
+
284
+ | Flag | Type | Required | Default | Description |
285
+ |------|------|----------|---------|-------------|
286
+ | `--account_id` | `string` | no | | When set, updates the authenticated user's profile override for this account instead of their global profile. |
287
+ | `--bio` | `string` | no | | |
288
+ | `--name` | `string` | no | | |
289
+ | `--profile_picture` | `object` | no | | |
290
+ | `--username` | `string` | no | | |
291
+
292
+ > Confirm with the user before executing this destructive command.
293
+
294
+ ---
295
+
296
+ # whop users update-preferences
297
+
298
+ Update
299
+
300
+ ## Options
301
+
302
+ | Flag | Type | Required | Default | Description |
303
+ |------|------|----------|---------|-------------|
304
+ | `--investigation_enabled` | `boolean` | no | | Whether investigation mode is enabled for the user. Only meaningful for staff users with investigation access. |
305
+
306
+ > Confirm with the user before executing this destructive command.
@@ -9,17 +9,59 @@ A Verification represents a legal identity for a person or business. Accounts an
9
9
 
10
10
  Use the Verifications API to start or resume a hosted verification session, check review status, and submit requested details or documents. If `requested_information` contains items, submit answers with [Update Verification](https://docs.whop.com/api-reference/beta/verifications/update-verification).
11
11
 
12
- ## Commands
12
+ # whop verifications create
13
13
 
14
- | Command | Description |
15
- |---------|-------------|
16
- | `whop verifications list` | List Verifications |
17
- | `whop verifications create` | Create Verification |
18
- | `whop verifications get` | Retrieve Verification |
19
- | `whop verifications update` | Update Verification |
14
+ Create Verification
20
15
 
21
- Run `whop verifications <command> --help` for options, or `whop verifications <command> --schema` for full argument details.
16
+ ## Options
17
+
18
+ | Flag | Type | Required | Default | Description |
19
+ |------|------|----------|---------|-------------|
20
+ | `--account_id` | `string` | no | | Account or user ID whose identity you want to verify. Use a `biz_` account ID for account verifications, or the caller's `user_` ID for personal verification. |
21
+ | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
22
+
23
+ > Confirm with the user before executing this destructive command.
24
+
25
+ ---
26
+
27
+ # whop verifications get
28
+
29
+ Retrieve Verification
30
+
31
+ ## Arguments
32
+
33
+ | Name | Type | Required | Description |
34
+ |------|------|----------|-------------|
35
+ | `verification_id` | `string` | yes | Verification profile ID, prefixed `idpf_`. |
36
+
37
+ ---
38
+
39
+ # whop verifications list
40
+
41
+ List Verifications
42
+
43
+ ## Options
44
+
45
+ | Flag | Type | Required | Default | Description |
46
+ |------|------|----------|---------|-------------|
47
+ | `--account_id` | `string` | no | | Account or user ID whose verifications you want to list. Use a `biz_` account ID, or the caller's `user_` ID for personal verifications. |
48
+ | `--order` | `string` | no | | Field used to sort returned verifications. |
49
+ | `--direction` | `string` | no | | Sort direction for returned verifications. |
50
+
51
+ ---
52
+
53
+ # whop verifications update
54
+
55
+ Update Verification
56
+
57
+ ## Arguments
58
+
59
+ | Name | Type | Required | Description |
60
+ |------|------|----------|-------------|
61
+ | `verification_id` | `string` | yes | Verification profile ID, prefixed `idpf_`. |
62
+
63
+ > Confirm with the user before executing this destructive command.
22
64
 
23
65
  ## Steps that finish in the browser
24
66
 
25
- Some commands respond with a URL the user must open in a browser to finish the flow (`authorize_url`, `session_url`, `deposit_url`) — the CLI cannot complete that step itself. When a response contains one of these fields, or the CLI prints "Action required: open this link in the user's browser", open that link in the user's browser for them, tell them what to complete there, then re-run the matching `get`/`list` command to confirm the step finished.
67
+ Some commands respond with a URL the user must open in a browser to finish the flow (`authorize_url`, `session_url`, `deposit_url`, `checkout_url`) — the CLI cannot complete that step itself. When a response contains one of these fields, or the CLI prints "Action required: open this link in the user's browser", open that link in the user's browser for them, tell them what to complete there, then re-run the matching `get`/`list` command to confirm the step finished.