@whop/cli 0.18.0 → 0.18.1

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/dist/index.js CHANGED
@@ -14271,7 +14271,7 @@ var native_spec_default = {
14271
14271
  properties: {
14272
14272
  affiliate_code: {
14273
14273
  description: "The username, if any, of the partner who referred this account",
14274
- example: "random-username-48-xxxxxxxx",
14274
+ example: "random-username-38-xxxxxxxx",
14275
14275
  type: ["string", "null"]
14276
14276
  },
14277
14277
  blueprint_id: {
@@ -14426,6 +14426,85 @@ var native_spec_default = {
14426
14426
  ],
14427
14427
  type: "object"
14428
14428
  },
14429
+ ads_certifications: {
14430
+ description: "The account's advertising certifications, one entry per certification type Whop offers. Start an application by setting a type's `status` to `pending_information` via `PATCH`, then answer the fields it requests via `GET`/`PATCH /verifications/{id}`.",
14431
+ items: {
14432
+ properties: {
14433
+ approved_countries: {
14434
+ description: "Countries every approved application of this type covers, as ISO 3166-1 alpha-2 codes. Ads targeting only these countries are exempt from the category's restrictions.",
14435
+ items: {
14436
+ type: "string"
14437
+ },
14438
+ type: "array"
14439
+ },
14440
+ business_name: {
14441
+ description: "The business name on the latest application.",
14442
+ type: ["string", "null"]
14443
+ },
14444
+ business_type: {
14445
+ description: "The kind of business on the latest application. `null` until the account applies.",
14446
+ enum: [
14447
+ "online_pharmacy",
14448
+ "pharmaceutical_manufacturer",
14449
+ "telehealth_provider",
14450
+ null
14451
+ ],
14452
+ example: "online_pharmacy",
14453
+ type: ["string", "null"]
14454
+ },
14455
+ certification_type: {
14456
+ description: "The certification this entry describes.",
14457
+ enum: ["prescription_drug_ads"],
14458
+ example: "prescription_drug_ads",
14459
+ type: "string"
14460
+ },
14461
+ countries: {
14462
+ description: "Countries the latest application covers, as ISO 3166-1 alpha-2 codes.",
14463
+ items: {
14464
+ type: "string"
14465
+ },
14466
+ type: "array"
14467
+ },
14468
+ denial_reason: {
14469
+ description: "Why the latest application was denied. `null` unless `status` is `denied`.",
14470
+ type: ["string", "null"]
14471
+ },
14472
+ request_id: {
14473
+ description: "The latest application's request ID, prefixed `inrq_`. `null` until the account applies.",
14474
+ type: ["string", "null"]
14475
+ },
14476
+ status: {
14477
+ description: "`not_started` until the account applies; `pending_information` while an application waits for answers; `in_review` once submitted; then `approved` or `denied`.",
14478
+ enum: [
14479
+ "not_started",
14480
+ "pending_information",
14481
+ "in_review",
14482
+ "approved",
14483
+ "denied"
14484
+ ],
14485
+ example: "not_started",
14486
+ type: "string"
14487
+ },
14488
+ url: {
14489
+ description: "The website on the latest application.",
14490
+ type: ["string", "null"]
14491
+ }
14492
+ },
14493
+ required: [
14494
+ "certification_type",
14495
+ "status",
14496
+ "request_id",
14497
+ "business_name",
14498
+ "url",
14499
+ "business_type",
14500
+ "countries",
14501
+ "approved_countries",
14502
+ "denial_reason"
14503
+ ],
14504
+ type: "object"
14505
+ },
14506
+ type: "array"
14507
+ },
14429
14508
  ads_payment_methods: {
14430
14509
  description: "How the account pays for Whop Ads spend. `primary` is charged first; `backup` covers the charge when the primary fails. `null` until ads billing has been configured.",
14431
14510
  properties: {
@@ -14590,6 +14669,7 @@ var native_spec_default = {
14590
14669
  "ads_reporting_currency",
14591
14670
  "ads_scheduling_timezone",
14592
14671
  "ads_agreement",
14672
+ "ads_certifications",
14593
14673
  "ads_triple_whale_integration",
14594
14674
  "cards_auto_top_up",
14595
14675
  "cards_notifications",
@@ -14658,6 +14738,26 @@ var native_spec_default = {
14658
14738
  "application/json": {
14659
14739
  schema: {
14660
14740
  properties: {
14741
+ ads_certifications: {
14742
+ additionalProperties: {
14743
+ properties: {
14744
+ status: {
14745
+ description: "Must be `pending_information`.",
14746
+ enum: ["pending_information"],
14747
+ type: "string"
14748
+ }
14749
+ },
14750
+ required: ["status"],
14751
+ type: "object"
14752
+ },
14753
+ description: "Opens an advertising certification application. Keyed by certification type (`prescription_drug_ads`); set the entry's `status` to `pending_information` to start, then answer the requested fields via `PATCH /verifications/{id}`. Only one application per type can be open at a time; every other status is set by Whop's review.",
14754
+ example: {
14755
+ prescription_drug_ads: {
14756
+ status: "pending_information"
14757
+ }
14758
+ },
14759
+ type: "object"
14760
+ },
14661
14761
  ads_payment_methods: {
14662
14762
  description: "How the account pays for Whop Ads spend. `primary` is charged first; `backup` covers the charge when the primary fails.",
14663
14763
  properties: {
@@ -14797,6 +14897,86 @@ var native_spec_default = {
14797
14897
  ],
14798
14898
  type: "object"
14799
14899
  },
14900
+ ads_certifications: {
14901
+ description: "The account's advertising certifications, one entry per certification type Whop offers. Start an application by setting a type's `status` to `pending_information` via `PATCH`, then answer the fields it requests via `GET`/`PATCH /verifications/{id}`.",
14902
+ items: {
14903
+ properties: {
14904
+ approved_countries: {
14905
+ description: "Countries every approved application of this type covers, as ISO 3166-1 alpha-2 codes. Ads targeting only these countries are exempt from the category's restrictions.",
14906
+ items: {
14907
+ type: "string"
14908
+ },
14909
+ type: "array"
14910
+ },
14911
+ business_name: {
14912
+ description: "The business name on the latest application.",
14913
+ type: ["string", "null"]
14914
+ },
14915
+ business_type: {
14916
+ description: "The kind of business on the latest application. `null` until the account applies.",
14917
+ enum: [
14918
+ "online_pharmacy",
14919
+ "pharmaceutical_manufacturer",
14920
+ "telehealth_provider",
14921
+ null
14922
+ ],
14923
+ example: "online_pharmacy",
14924
+ type: ["string", "null"]
14925
+ },
14926
+ certification_type: {
14927
+ description: "The certification this entry describes.",
14928
+ enum: ["prescription_drug_ads"],
14929
+ example: "prescription_drug_ads",
14930
+ type: "string"
14931
+ },
14932
+ countries: {
14933
+ description: "Countries the latest application covers, as ISO 3166-1 alpha-2 codes.",
14934
+ items: {
14935
+ type: "string"
14936
+ },
14937
+ type: "array"
14938
+ },
14939
+ denial_reason: {
14940
+ description: "Why the latest application was denied. `null` unless `status` is `denied`.",
14941
+ type: ["string", "null"]
14942
+ },
14943
+ request_id: {
14944
+ description: "The latest application's request ID, prefixed `inrq_`. `null` until the account applies.",
14945
+ example: "inrq_xxxxxxxxxxxxxx",
14946
+ type: ["string", "null"]
14947
+ },
14948
+ status: {
14949
+ description: "`not_started` until the account applies; `pending_information` while an application waits for answers; `in_review` once submitted; then `approved` or `denied`.",
14950
+ enum: [
14951
+ "not_started",
14952
+ "pending_information",
14953
+ "in_review",
14954
+ "approved",
14955
+ "denied"
14956
+ ],
14957
+ example: "not_started",
14958
+ type: "string"
14959
+ },
14960
+ url: {
14961
+ description: "The website on the latest application.",
14962
+ type: ["string", "null"]
14963
+ }
14964
+ },
14965
+ required: [
14966
+ "certification_type",
14967
+ "status",
14968
+ "request_id",
14969
+ "business_name",
14970
+ "url",
14971
+ "business_type",
14972
+ "countries",
14973
+ "approved_countries",
14974
+ "denial_reason"
14975
+ ],
14976
+ type: "object"
14977
+ },
14978
+ type: "array"
14979
+ },
14800
14980
  ads_payment_methods: {
14801
14981
  description: "How the account pays for Whop Ads spend. `primary` is charged first; `backup` covers the charge when the primary fails. `null` until ads billing has been configured.",
14802
14982
  properties: {
@@ -14961,6 +15141,7 @@ var native_spec_default = {
14961
15141
  "ads_reporting_currency",
14962
15142
  "ads_scheduling_timezone",
14963
15143
  "ads_agreement",
15144
+ "ads_certifications",
14964
15145
  "ads_triple_whale_integration",
14965
15146
  "cards_auto_top_up",
14966
15147
  "cards_notifications",
@@ -14988,6 +15169,10 @@ var native_spec_default = {
14988
15169
  "404": {
14989
15170
  $ref: "#/components/responses/NotFound",
14990
15171
  description: "account not found"
15172
+ },
15173
+ "409": {
15174
+ $ref: "#/components/responses/Conflict",
15175
+ description: "an application for that certification is already open"
14991
15176
  }
14992
15177
  },
14993
15178
  security: [
@@ -27591,7 +27776,7 @@ var native_spec_default = {
27591
27776
  },
27592
27777
  "/deposits": {
27593
27778
  post: {
27594
- description: "Retrieve the deposit methods for an account, including crypto and bank transfer. Crypto deposits require a $10 minimum.",
27779
+ description: "Retrieve the deposit methods for an account, including crypto and bank transfer. Bitcoin deposits are converted by Relay directly to USDT on Plasma in the destination account's wallet. Crypto deposits require a $10 minimum.",
27595
27780
  operationId: "create",
27596
27781
  parameters: [
27597
27782
  {
@@ -27746,6 +27931,7 @@ var native_spec_default = {
27746
27931
  enum: [
27747
27932
  "Ethereum",
27748
27933
  "Solana",
27934
+ "Bitcoin",
27749
27935
  "Base",
27750
27936
  "BNB Smart Chain",
27751
27937
  "Hyperliquid",
@@ -27764,7 +27950,7 @@ var native_spec_default = {
27764
27950
  properties: {
27765
27951
  icon_url: {
27766
27952
  description: "Token icon URL. Null when no icon is available.",
27767
- example: "https://whop.com/_static/images/crypto/ethereum.svg",
27953
+ example: "https://whop.com/_static/images/crypto/pyusd.svg",
27768
27954
  type: ["string", "null"]
27769
27955
  },
27770
27956
  name: {
@@ -27772,6 +27958,7 @@ var native_spec_default = {
27772
27958
  enum: [
27773
27959
  "ARB",
27774
27960
  "BNB",
27961
+ "BTC",
27775
27962
  "ETH",
27776
27963
  "EURC",
27777
27964
  "HYPE",
@@ -27790,7 +27977,7 @@ var native_spec_default = {
27790
27977
  "pUSD",
27791
27978
  "wETH"
27792
27979
  ],
27793
- example: "wETH",
27980
+ example: "PYUSD",
27794
27981
  type: "string"
27795
27982
  }
27796
27983
  },
@@ -29480,7 +29667,7 @@ var native_spec_default = {
29480
29667
  }
29481
29668
  }
29482
29669
  },
29483
- description: "empty for a connected (child) account"
29670
+ description: "recommendations listed"
29484
29671
  },
29485
29672
  "400": {
29486
29673
  $ref: "#/components/responses/InvalidParameters",
@@ -36861,6 +37048,15 @@ var native_spec_default = {
36861
37048
  enum: ["first", "second", "blueprint"],
36862
37049
  type: "string"
36863
37050
  }
37051
+ },
37052
+ {
37053
+ description: "Case-insensitive business-name prefix, or an exact `biz_` account ID. Surrounding whitespace is ignored; blank values apply no filter.",
37054
+ in: "query",
37055
+ name: "business_prefix_query",
37056
+ required: false,
37057
+ schema: {
37058
+ type: "string"
37059
+ }
36864
37060
  }
36865
37061
  ],
36866
37062
  responses: {
@@ -37725,7 +37921,13 @@ var native_spec_default = {
37725
37921
  required: false,
37726
37922
  schema: {
37727
37923
  items: {
37728
- enum: ["sales", "ad_spend", "transfer", "card_interchange"],
37924
+ enum: [
37925
+ "sales",
37926
+ "ad_spend",
37927
+ "transfer",
37928
+ "card_interchange",
37929
+ "onboarding_reward"
37930
+ ],
37729
37931
  example: "sales",
37730
37932
  type: "string"
37731
37933
  },
@@ -37918,12 +38120,13 @@ var native_spec_default = {
37918
38120
  type: ["string", "null"]
37919
38121
  },
37920
38122
  income_source: {
37921
- description: "Which income source the commission is on: product-sales gross profit, Whop Ads spend billed to the business, platform balance transfer fees, or Whop Card interchange.",
38123
+ description: "Which income source the commission is on: product-sales gross profit, Whop Ads spend billed to the business, platform balance transfer fees, Whop Card interchange, or a fixed onboarding reward paid to the partner when a referred business qualifies.",
37922
38124
  enum: [
37923
38125
  "sales",
37924
38126
  "ad_spend",
37925
38127
  "transfer",
37926
- "card_interchange"
38128
+ "card_interchange",
38129
+ "onboarding_reward"
37927
38130
  ],
37928
38131
  example: "sales",
37929
38132
  type: "string"
@@ -38091,6 +38294,42 @@ var native_spec_default = {
38091
38294
  ],
38092
38295
  type: "object"
38093
38296
  },
38297
+ {
38298
+ properties: {
38299
+ business_id: {
38300
+ description: "The referred business that qualified.",
38301
+ type: "string"
38302
+ },
38303
+ created_at: {
38304
+ example: "2026-01-01T12:00:00.000Z",
38305
+ format: "date-time",
38306
+ type: "string"
38307
+ },
38308
+ id: {
38309
+ description: "The onboarding reward the referred business qualified for, prefixed `onbr_`.",
38310
+ example: "onbr_xxxxxxxxxxxxxx",
38311
+ type: ["string", "null"]
38312
+ },
38313
+ object: {
38314
+ enum: ["onboarding_reward"],
38315
+ example: "onboarding_reward",
38316
+ type: "string"
38317
+ },
38318
+ slug: {
38319
+ description: "The reward link slug.",
38320
+ example: "launch-reward",
38321
+ type: ["string", "null"]
38322
+ }
38323
+ },
38324
+ required: [
38325
+ "object",
38326
+ "id",
38327
+ "slug",
38328
+ "business_id",
38329
+ "created_at"
38330
+ ],
38331
+ type: "object"
38332
+ },
38094
38333
  {
38095
38334
  type: "null"
38096
38335
  }
@@ -45760,7 +45999,7 @@ var native_spec_default = {
45760
45999
  },
45761
46000
  "/plans/{id}": {
45762
46001
  delete: {
45763
- description: "Permanently delete a plan from a product. Existing memberships on this plan will not be affected.",
46002
+ description: "Delete a plan from a product. It stops selling immediately; existing memberships on this plan will not be affected.",
45764
46003
  operationId: "delete",
45765
46004
  responses: {
45766
46005
  "200": {
@@ -56997,6 +57236,13 @@ var native_spec_default = {
56997
57236
  enum: ["raw", "vault_token"],
56998
57237
  example: "raw",
56999
57238
  type: "string"
57239
+ },
57240
+ values: {
57241
+ description: "Every chosen option for a `select` item that accepts more than one answer, such as the countries an advertising certification covers. Use `value` for every other item.",
57242
+ items: {
57243
+ type: "string"
57244
+ },
57245
+ type: "array"
57000
57246
  }
57001
57247
  },
57002
57248
  required: ["id"],
@@ -57190,6 +57436,13 @@ var native_spec_default = {
57190
57436
  enum: ["raw", "vault_token"],
57191
57437
  example: "raw",
57192
57438
  type: "string"
57439
+ },
57440
+ values: {
57441
+ description: "Every chosen option for a `select` item that accepts more than one answer, such as the countries an advertising certification covers. Use `value` for every other item.",
57442
+ items: {
57443
+ type: "string"
57444
+ },
57445
+ type: "array"
57193
57446
  }
57194
57447
  },
57195
57448
  required: ["id"],
@@ -74451,7 +74704,7 @@ var native_spec_default = {
74451
74704
  type: ["number", "null"]
74452
74705
  },
74453
74706
  budget_type: {
74454
- description: "Whether `budget_amount` is spent per day (`daily`) or over the ad group's full run (`lifetime`).",
74707
+ description: "Whether `budget_amount` is spent per day (`daily`) or over the ad group's full run (`lifetime`). A `lifetime` ad group also needs `ends_at`, at least 24 hours after it starts.",
74455
74708
  enum: ["daily", "lifetime", null],
74456
74709
  example: "daily",
74457
74710
  type: ["string", "null"]
@@ -78309,7 +78562,7 @@ var native_spec_default = {
78309
78562
  },
78310
78563
  id: {
78311
78564
  description: "Livestream feed ID.",
78312
- example: "lfeed_3",
78565
+ example: "lfeed_1",
78313
78566
  type: "string"
78314
78567
  },
78315
78568
  recording_status: {
@@ -79862,7 +80115,7 @@ var native_spec_default = {
79862
80115
  },
79863
80116
  action_type: {
79864
80117
  description: "The playbook action this card recommends, or `null` for an untyped card; new values may be added, so handle unknown types gracefully",
79865
- example: "scale_winning_ads",
80118
+ example: "improve_landing_page",
79866
80119
  type: ["string", "null"]
79867
80120
  },
79868
80121
  created_at: {
@@ -79882,7 +80135,7 @@ var native_spec_default = {
79882
80135
  },
79883
80136
  input: {
79884
80137
  description: "What the owner asked for, in their own words, when this recommendation was requested, or `null` when the engine chose the action on its own",
79885
- example: "more sales from ads",
80138
+ example: "Grow revenue",
79886
80139
  type: ["string", "null"]
79887
80140
  },
79888
80141
  prompt: {
@@ -79892,7 +80145,7 @@ var native_spec_default = {
79892
80145
  },
79893
80146
  reasoning: {
79894
80147
  description: "The signal and number the recommendation rests on, or `null`",
79895
- example: "Capped 9 of 14 days.",
80148
+ example: "Revenue fell by 20%.",
79896
80149
  type: ["string", "null"]
79897
80150
  },
79898
80151
  status: {
@@ -79905,11 +80158,12 @@ var native_spec_default = {
79905
80158
  "superseded",
79906
80159
  "failed"
79907
80160
  ],
79908
- example: "ready",
80161
+ example: "superseded",
79909
80162
  type: "string"
79910
80163
  },
79911
80164
  superseded_at: {
79912
80165
  description: "When a newer card replaced this one, as an ISO 8601 timestamp, or `null`",
80166
+ example: "2026-01-01T12:00:00.000Z",
79913
80167
  type: ["string", "null"]
79914
80168
  },
79915
80169
  title: {
@@ -82401,6 +82655,17 @@ var native_spec_default = {
82401
82655
  $ref: "#/components/schemas/UserSummary",
82402
82656
  description: "Partner whose link attributed this reward."
82403
82657
  },
82658
+ partner_reward_amount: {
82659
+ description: "What the partner earns when a referred business qualifies for this reward. Null when the reward pays the business only.",
82660
+ oneOf: [
82661
+ {
82662
+ $ref: "#/components/schemas/Money"
82663
+ },
82664
+ {
82665
+ type: "null"
82666
+ }
82667
+ ]
82668
+ },
82404
82669
  qualification_amount: {
82405
82670
  description: "Required qualifying volume. Null for an immediate reward.",
82406
82671
  oneOf: [
@@ -82464,6 +82729,7 @@ var native_spec_default = {
82464
82729
  "status",
82465
82730
  "reward_type",
82466
82731
  "reward_amount",
82732
+ "partner_reward_amount",
82467
82733
  "qualification_income_source",
82468
82734
  "qualification_amount",
82469
82735
  "qualification_progress",
@@ -85797,7 +86063,7 @@ var native_spec_default = {
85797
86063
  },
85798
86064
  description: {
85799
86065
  description: "Written description displayed on the product page. `null` if none is set.",
85800
- example: "aggregate 24/7 ROI",
86066
+ example: "exploit end-to-end users",
85801
86067
  type: ["string", "null"]
85802
86068
  },
85803
86069
  external_identifier: {
@@ -85814,7 +86080,7 @@ var native_spec_default = {
85814
86080
  },
85815
86081
  headline: {
85816
86082
  description: "Short marketing headline displayed on product page.",
85817
- example: "SWAG",
86083
+ example: "immersive experience",
85818
86084
  type: ["string", "null"]
85819
86085
  },
85820
86086
  id: {
@@ -92193,7 +92459,7 @@ async function announceActionUrl(url, {
92193
92459
  // package.json
92194
92460
  var package_default = {
92195
92461
  name: "@whop/cli",
92196
- version: "0.18.0",
92462
+ version: "0.18.1",
92197
92463
  description: "The Whop CLI \u2014 build and manage Whop apps from your terminal. Human and agent friendly.",
92198
92464
  keywords: [
92199
92465
  "agent",
@@ -93042,6 +93308,9 @@ var WHOP_SCOPES = [
93042
93308
  "audience:update",
93043
93309
  "bounty:basic:read",
93044
93310
  "bounty:create",
93311
+ "bounty:submission:create",
93312
+ "bounty:submission:delete",
93313
+ "bounty:update",
93045
93314
  "chat:message:create",
93046
93315
  "chat:moderate",
93047
93316
  "chat:read",
@@ -93064,6 +93333,7 @@ var WHOP_SCOPES = [
93064
93333
  "course_lesson_interaction:read",
93065
93334
  "courses:read",
93066
93335
  "courses:update",
93336
+ "crypto_wallet:swap",
93067
93337
  "custom_emoji:update",
93068
93338
  "developer:basic:read",
93069
93339
  "developer:create_app",
@@ -93081,6 +93351,8 @@ var WHOP_SCOPES = [
93081
93351
  "experience:detach",
93082
93352
  "experience:hidden_experience:read",
93083
93353
  "experience:update",
93354
+ "experiment:manage",
93355
+ "experiment:read",
93084
93356
  "forum:moderate",
93085
93357
  "forum:post:create",
93086
93358
  "forum:read",
@@ -93124,6 +93396,7 @@ var WHOP_SCOPES = [
93124
93396
  "payment:dispute_alert:read",
93125
93397
  "payment:manage",
93126
93398
  "payment:resolution_center",
93399
+ "payment:resolution_center_case:manage",
93127
93400
  "payment:resolution_center_case:read",
93128
93401
  "payment:setup_intent:read",
93129
93402
  "payout:account:read",
@@ -93171,6 +93444,8 @@ var WHOP_SCOPES = [
93171
93444
  "tracking_link:stats:read",
93172
93445
  "tracking_link:update",
93173
93446
  "user:balance:read",
93447
+ "user:notifications:read",
93448
+ "user:notifications:update",
93174
93449
  "user:profile:update"
93175
93450
  ];
93176
93451