@whop/cli 0.23.1 → 0.25.0

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/README.md CHANGED
@@ -10,7 +10,7 @@ whop checkout-configurations create --plan_id plan_xxx # a link that accepts
10
10
  whop media generate --type image --prompt "launch art" # make an ad creative
11
11
  whop ads create … # put it on Meta/Tiktok
12
12
  whop payouts create … # send earnings to your bank
13
- whop stats list # how it's all going
13
+ whop stats time-series list # how it's all going
14
14
  ```
15
15
 
16
16
  With the CLI you can:
@@ -50,7 +50,7 @@ That's it! Run `whop auth accounts` anytime to switch businesses.
50
50
 
51
51
  ## Financing applications
52
52
 
53
- `whop financing-applications list`, `create`, and `get` manage merchant payment-financing applications under an account. Use each command's `--help` for account and application arguments. Creating an application reuses an open application and does not submit it for review.
53
+ `whop accounts financing-applications list`, `get`, `create`, `update`, and `submit` manage merchant payment-financing applications under an account. Use each command's `--help` for account and application arguments. Creating an application reuses an open application and does not submit it for review.
54
54
 
55
55
  ## Usage
56
56
 
@@ -58,7 +58,7 @@ That's it! Run `whop auth accounts` anytime to switch businesses.
58
58
  whop --help # all commands
59
59
  whop products list # what you're selling
60
60
  whop plans create --help # options for any command
61
- whop stats list # your numbers
61
+ whop stats time-series list # your numbers
62
62
  whop accounts get jordan # retrieve a business by route
63
63
  whop partners retrieve me # your partner profile and payout rates
64
64
  ```
@@ -124,7 +124,7 @@ App logs cover the hosted server runtime. Use your browser's developer console f
124
124
  whop products create --title "Pro membership"
125
125
  whop plans create --help # one-time, recurring, trials, stock
126
126
  whop checkout-configurations create --help # shareable, prefilled checkout link
127
- whop stats list # financial, audience, and traffic reporting
127
+ whop stats time-series list # financial, audience, and traffic reporting
128
128
  ```
129
129
 
130
130
  Set product gallery images or videos with uploaded file IDs:
@@ -137,20 +137,21 @@ whop products update prod_xxxxxxxx --gallery_images '[{"id":"file_xxxxxxxx"}]'
137
137
 
138
138
  Money moves through the same surface: payouts, transfers, deposits, swaps, and cards. Payouts and card issuing require identity verification (`whop verifications`). Steps that need a browser, like KYC, show up as a link to open.
139
139
 
140
+ Use `whop transfers get-claim-link <id>` to retrieve a funded claim link by its `airdrp_` ID or public claim code. ID reads require `airdrop_link:basic:read` on the funding business or ownership of the funding personal account; a claim code allows a public preview.
141
+
140
142
  ## Read trading activity
141
143
 
142
- Trading is available by request. Email support@whop.com to get access.
144
+ Trading account access is available by request. Email support@whop.com to get access.
143
145
 
144
146
  ```bash
145
147
  whop accounts get biz_xxx --include_trading true --format json
146
148
  whop users get me --include_trading true --format json
149
+ whop trades list --format json
147
150
  ```
148
151
 
149
- These commands retrieve trading balances, positions and open orders from the supported provider; they don't place orders or move funds. Hyperliquid is currently supported.
150
-
151
- Use `whop trades create --help` for market, limit, ladder and take-profit/stop-loss orders; `whop trades cancel trop_xxx` to cancel an original batch; and `whop trades leverage --help` to configure leverage. Retrieve an initiated action with `whop trades get trop_xxx`. These are submission records, not live fill history. Writes require an `Idempotency-Key`; reuse it after an ambiguous response.
152
+ These commands return the trading account address, its Hyperliquid websocket subscriptions, and earlier trade submissions. They don't place orders or move funds. Read live positions and open orders from Hyperliquid over the websocket.
152
153
 
153
- Opening positions and changing leverage are available by request. Cancellation and reduce-only exits keep working even when Whop pauses new positions.
154
+ Trade writes are retired. `whop trades create`, `whop trades cancel` and `whop trades leverage` return `410 Gone` and send nothing to Hyperliquid. `whop trades get trop_xxx` returns an earlier submission record, not live fills.
154
155
 
155
156
  ## Serve the customers you have
156
157
 
@@ -179,7 +180,7 @@ whop media generate --type image --prompt "A running club at sunrise" --wait
179
180
  whop ads create \
180
181
  --title "Launch ad" --headlines "Find your stride" --call_to_action sign_up \
181
182
  --url "https://whop.com/your-store" \
182
- --creatives '[{"id":"file_x"}]' --social_accounts '[{"id":"sacc_x"}]' \
183
+ --creatives '[{"id":"file_x"}]' --external_accounts '[{"id":"sacc_x"}]' \
183
184
  --ad_group '{"title":"US broad","conversion_location":"website","ad_campaign":{"title":"Growth","platform":"meta","objective":"sales","status":"draft","budget_amount":25,"budget_optimization":"ad_campaign"}}'
184
185
  whop ad-campaigns update <adcamp_id> --status active # launch when ready
185
186
  ```
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ };
18
+ var __export = (target, all) => {
19
+ for (var name in all)
20
+ __defProp(target, name, { get: all[name], enumerable: true });
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") {
24
+ for (let key of __getOwnPropNames(from))
25
+ if (!__hasOwnProp.call(to, key) && key !== except)
26
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31
+ // If the importer is in node compatibility mode or this is not an ESM
32
+ // file that has been converted to a CommonJS file using a Babel-
33
+ // compatible transform (i.e. "__esModule" has not been set), then set
34
+ // "default" to the CommonJS "module.exports" for node compatibility.
35
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
+ mod
37
+ ));
38
+
39
+ export {
40
+ __require,
41
+ __commonJS,
42
+ __export,
43
+ __toESM
44
+ };
45
+ //# sourceMappingURL=chunk-M2N2M5EJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}