@whop/cli 0.16.6 → 0.17.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/dist/index.js CHANGED
@@ -13670,7 +13670,7 @@ var native_spec_default = {
13670
13670
  termsOfService: "https://whop.com/tos-developer-api/",
13671
13671
  title: "Whop API",
13672
13672
  version: "1.0.0",
13673
- "x-api-version-date": "2026-09-11"
13673
+ "x-api-version-date": "2026-09-11-1"
13674
13674
  },
13675
13675
  servers: [
13676
13676
  {
@@ -14033,7 +14033,8 @@ var native_spec_default = {
14033
14033
  "API Keys",
14034
14034
  "Api Logs",
14035
14035
  "Permissions",
14036
- "Experiments"
14036
+ "Experiments",
14037
+ "Feedback"
14037
14038
  ]
14038
14039
  }
14039
14040
  ],
@@ -14368,6 +14369,20 @@ var native_spec_default = {
14368
14369
  get: {
14369
14370
  description: "Retrieves the account's preferences: a singleton settings document keyed by preference name.",
14370
14371
  operationId: "preferences",
14372
+ parameters: [
14373
+ {
14374
+ description: "Account ID, prefixed `biz_`.",
14375
+ in: "path",
14376
+ name: "account_id",
14377
+ required: true,
14378
+ schema: {
14379
+ type: "string"
14380
+ }
14381
+ },
14382
+ {
14383
+ $ref: "#/components/parameters/ApiVersionDate"
14384
+ }
14385
+ ],
14371
14386
  responses: {
14372
14387
  "200": {
14373
14388
  content: {
@@ -14399,7 +14414,7 @@ var native_spec_default = {
14399
14414
  "pending_signature",
14400
14415
  "signed"
14401
14416
  ],
14402
- example: "signed",
14417
+ example: "not_required",
14403
14418
  type: "string"
14404
14419
  }
14405
14420
  },
@@ -14523,7 +14538,7 @@ var native_spec_default = {
14523
14538
  type: "string"
14524
14539
  },
14525
14540
  ads_triple_whale_integration: {
14526
- description: "The account's Triple Whale integration, which pushes Whop ad spend to Triple Whale's Data-In API so it reports as a `whop` channel.",
14541
+ description: "The account's Triple Whale integration, which pushes Whop ad spend to Triple Whale's Data-In API so it reports as a `whop` channel. Available to any Triple Whale customer \u2014 Shopify, WooCommerce, a custom checkout, or no connected store \u2014 by setting `shop_domain` explicitly; Shopify merchants may instead rely on a connected store's domain. Requires the `ad_campaign:create` scope. Once connected, ad click-through URLs Whop serves carry `tw_source=whop` and `tw_adid=<ad id>` query parameters so Triple Whale's pixel attributes conversions back to the originating ad \u2014 no destination URL changes are needed.",
14527
14542
  properties: {
14528
14543
  masked_api_key: {
14529
14544
  description: "The leading characters of the stored Data-In API key, followed by asterisks. The full key is never returned. `null` when no key is stored.",
@@ -14531,16 +14546,16 @@ var native_spec_default = {
14531
14546
  type: ["string", "null"]
14532
14547
  },
14533
14548
  shop_domain: {
14534
- description: "The connected Shopify store domain spend is reported for, such as `acme.myshopify.com`. `null` when no store is connected.",
14535
- example: "shinetime.myshopify.com",
14549
+ description: "The shop domain spend is reported for, such as `acme.myshopify.com` or a custom domain for a non-Shopify store. This is the explicit `shop_domain` if one was set, otherwise a connected Shopify store's domain. `null` when neither is present.",
14550
+ example: "custom-store.example.com",
14536
14551
  type: ["string", "null"]
14537
14552
  },
14538
14553
  status: {
14539
- description: "Where the integration stands. `requires_shopify_store` means no Shopify store is connected \u2014 Triple Whale keys records by Shopify shop, so no spend is reported until one is.",
14554
+ description: "Where the integration stands. `requires_shop_domain` means no shop domain is configured \u2014 set `shop_domain` explicitly, or connect a Shopify store, before spend can be reported.",
14540
14555
  enum: [
14541
14556
  "connected",
14542
14557
  "not_connected",
14543
- "requires_shopify_store"
14558
+ "requires_shop_domain"
14544
14559
  ],
14545
14560
  example: "connected",
14546
14561
  type: "string"
@@ -14619,21 +14634,10 @@ var native_spec_default = {
14619
14634
  lang: "TypeScript",
14620
14635
  source: 'import { WhopClient } from "@whop/sdk";\n\nconst client = new WhopClient({ token: "YOUR_TOKEN", apiVersionDate: "2026-08-21-1", idempotencyKey: "YOUR_IDEMPOTENCY_KEY" });\nawait client.accounts.preferences.retrieve({\n account_id: "account_id"\n});\n'
14621
14636
  }
14622
- ],
14623
- parameters: [
14624
- {
14625
- description: "Account ID, prefixed `biz_`.",
14626
- in: "path",
14627
- name: "account_id",
14628
- required: true,
14629
- schema: {
14630
- type: "string"
14631
- }
14632
- }
14633
14637
  ]
14634
14638
  },
14635
14639
  patch: {
14636
- description: "Updates the account's preferences. Each top-level key present in the body is replaced as a whole; omitted keys are left untouched. `ads_triple_whale_integration` takes the Data-In API key to connect with, or `null` to disconnect. `ads_payment_methods` always requires a `primary` entry. `backup` is optional and any pairing is allowed \u2014 two cards, `card`+`platform_balance`, or a single method \u2014 so a card-only advertiser can fund ads without a platform balance. The `primary` and `backup` must be different sources. A `platform_balance` entry may omit `id` to use the account's default Whop balance. Configuring a `card` requires a user token; account API keys can set up platform-balance billing only.",
14640
+ description: "Updates the account's preferences. Each top-level key present in the body is replaced as a whole; omitted keys are left untouched. `ads_triple_whale_integration` takes the Data-In API key to connect with, or `null` to disconnect, plus an optional `shop_domain`. `ads_payment_methods` always requires a `primary` entry. `backup` is optional and any pairing is allowed \u2014 two cards, `card`+`platform_balance`, or a single method \u2014 so a card-only advertiser can fund ads without a platform balance. The `primary` and `backup` must be different sources. A `platform_balance` entry may omit `id` to use the account's default Whop balance. Configuring a `card` requires a user token; account API keys can set up platform-balance billing only.",
14637
14641
  operationId: "update-preferences",
14638
14642
  parameters: [
14639
14643
  {
@@ -14644,6 +14648,9 @@ var native_spec_default = {
14644
14648
  schema: {
14645
14649
  type: "string"
14646
14650
  }
14651
+ },
14652
+ {
14653
+ $ref: "#/components/parameters/ApiVersionDate"
14647
14654
  }
14648
14655
  ],
14649
14656
  requestBody: {
@@ -14704,12 +14711,17 @@ var native_spec_default = {
14704
14711
  type: "string"
14705
14712
  },
14706
14713
  ads_triple_whale_integration: {
14707
- description: "Connects or disconnects the Triple Whale integration. Requires a connected Shopify store, since Triple Whale keys spend records by Shopify shop.",
14714
+ description: "Connects or disconnects the Triple Whale integration. Requires the `ad_campaign:create` scope. Connecting requires a shop domain to report spend against \u2014 either an explicit `shop_domain` (required for any merchant without a connected Shopify store, e.g. WooCommerce, a custom checkout, or a white-label platform's merchant) or a Shopify store connected on the Fulfillment page.",
14708
14715
  properties: {
14709
14716
  api_key: {
14710
- description: "A Triple Whale Data-In API key with the `Data-In Write: Ads` scope, validated against Triple Whale before it is stored. Pass `null` to disconnect. Connecting for the first time backfills the account's existing ad spend.",
14717
+ description: "A Triple Whale Data-In API key with the `Ads: Write` scope, validated against Triple Whale before it is stored. Pass `null` to disconnect. Connecting for the first time backfills the account's existing ad spend.",
14711
14718
  example: "tw_live_key_1234",
14712
14719
  type: ["string", "null"]
14720
+ },
14721
+ shop_domain: {
14722
+ description: "The exact shop domain configured in Triple Whale's Settings \u2192 Store (for Shopify this is the `.myshopify.com` domain; for a custom sales platform it's whatever domain Triple Whale assigned when the shop was set up there). Validated against Triple Whale \u2014 the API key must have access to it \u2014 before it is stored. Omit to fall back to a connected Shopify store's domain; there is no way to clear a stored value, only to overwrite it with a new domain.",
14723
+ example: "custom-store.example.com",
14724
+ type: "string"
14713
14725
  }
14714
14726
  },
14715
14727
  required: ["api_key"],
@@ -14897,7 +14909,7 @@ var native_spec_default = {
14897
14909
  type: "string"
14898
14910
  },
14899
14911
  ads_triple_whale_integration: {
14900
- description: "The account's Triple Whale integration, which pushes Whop ad spend to Triple Whale's Data-In API so it reports as a `whop` channel.",
14912
+ description: "The account's Triple Whale integration, which pushes Whop ad spend to Triple Whale's Data-In API so it reports as a `whop` channel. Available to any Triple Whale customer \u2014 Shopify, WooCommerce, a custom checkout, or no connected store \u2014 by setting `shop_domain` explicitly; Shopify merchants may instead rely on a connected store's domain. Requires the `ad_campaign:create` scope. Once connected, ad click-through URLs Whop serves carry `tw_source=whop` and `tw_adid=<ad id>` query parameters so Triple Whale's pixel attributes conversions back to the originating ad \u2014 no destination URL changes are needed.",
14901
14913
  properties: {
14902
14914
  masked_api_key: {
14903
14915
  description: "The leading characters of the stored Data-In API key, followed by asterisks. The full key is never returned. `null` when no key is stored.",
@@ -14905,18 +14917,18 @@ var native_spec_default = {
14905
14917
  type: ["string", "null"]
14906
14918
  },
14907
14919
  shop_domain: {
14908
- description: "The connected Shopify store domain spend is reported for, such as `acme.myshopify.com`. `null` when no store is connected.",
14920
+ description: "The shop domain spend is reported for, such as `acme.myshopify.com` or a custom domain for a non-Shopify store. This is the explicit `shop_domain` if one was set, otherwise a connected Shopify store's domain. `null` when neither is present.",
14909
14921
  example: "shinetime.myshopify.com",
14910
14922
  type: ["string", "null"]
14911
14923
  },
14912
14924
  status: {
14913
- description: "Where the integration stands. `requires_shopify_store` means no Shopify store is connected \u2014 Triple Whale keys records by Shopify shop, so no spend is reported until one is.",
14925
+ description: "Where the integration stands. `requires_shop_domain` means no shop domain is configured \u2014 set `shop_domain` explicitly, or connect a Shopify store, before spend can be reported.",
14914
14926
  enum: [
14915
14927
  "connected",
14916
14928
  "not_connected",
14917
- "requires_shopify_store"
14929
+ "requires_shop_domain"
14918
14930
  ],
14919
- example: "requires_shopify_store",
14931
+ example: "requires_shop_domain",
14920
14932
  type: "string"
14921
14933
  }
14922
14934
  },
@@ -57587,7 +57599,7 @@ var native_spec_default = {
57587
57599
  properties: {
57588
57600
  api_version_date: {
57589
57601
  description: "The dated API version (Api-Version-Date) to pin this webhook's payloads to. Omit to leave the webhook unpinned, tracking the current payload shape.",
57590
- example: "2026-01-01",
57602
+ example: "2026-09-11-1",
57591
57603
  type: ["string", "null"]
57592
57604
  },
57593
57605
  child_resource_events: {
@@ -57959,7 +57971,7 @@ var native_spec_default = {
57959
57971
  properties: {
57960
57972
  api_version_date: {
57961
57973
  description: "The dated API version (Api-Version-Date) to pin this webhook's payloads to. Only valid for `v1` webhooks. Omit to leave the current pin unchanged, or pass `null` to unpin and track the current payload shape.",
57962
- example: "2026-01-01",
57974
+ example: "2026-09-11-1",
57963
57975
  type: ["string", "null"]
57964
57976
  },
57965
57977
  child_resource_events: {
@@ -58651,7 +58663,7 @@ var native_spec_default = {
58651
58663
  example: {
58652
58664
  account_id: "biz_xxxxxxxxxxxxxx",
58653
58665
  api_version: "v1",
58654
- api_version_date: "2026-09-11",
58666
+ api_version_date: "2026-09-11-1",
58655
58667
  data: {
58656
58668
  balances: [],
58657
58669
  banner_image_url: null,
@@ -58962,7 +58974,7 @@ var native_spec_default = {
58962
58974
  example: {
58963
58975
  account_id: "biz_xxxxxxxxxxxxxx",
58964
58976
  api_version: "v1",
58965
- api_version_date: "2026-09-11",
58977
+ api_version_date: "2026-09-11-1",
58966
58978
  data: {
58967
58979
  balances: [],
58968
58980
  banner_image_url: null,
@@ -59273,7 +59285,7 @@ var native_spec_default = {
59273
59285
  example: {
59274
59286
  account_id: "biz_xxxxxxxxxxxxxx",
59275
59287
  api_version: "v1",
59276
- api_version_date: "2026-09-11",
59288
+ api_version_date: "2026-09-11-1",
59277
59289
  data: {
59278
59290
  balances: [],
59279
59291
  banner_image_url: null,
@@ -59584,7 +59596,7 @@ var native_spec_default = {
59584
59596
  example: {
59585
59597
  account_id: "biz_xxxxxxxxxxxxxx",
59586
59598
  api_version: "v1",
59587
- api_version_date: "2026-09-11",
59599
+ api_version_date: "2026-09-11-1",
59588
59600
  data: {
59589
59601
  ad_campaign: {
59590
59602
  id: "adcamp_xxxxxxxxxxxxxx"
@@ -59968,7 +59980,7 @@ var native_spec_default = {
59968
59980
  example: {
59969
59981
  account_id: "biz_xxxxxxxxxxxxxx",
59970
59982
  api_version: "v1",
59971
- api_version_date: "2026-09-11",
59983
+ api_version_date: "2026-09-11-1",
59972
59984
  data: {
59973
59985
  bid_type: null,
59974
59986
  budget_amount: 50,
@@ -60250,7 +60262,7 @@ var native_spec_default = {
60250
60262
  example: {
60251
60263
  account_id: "biz_xxxxxxxxxxxxxx",
60252
60264
  api_version: "v1",
60253
- api_version_date: "2026-09-11",
60265
+ api_version_date: "2026-09-11-1",
60254
60266
  data: {
60255
60267
  bid_type: null,
60256
60268
  budget_amount: 50,
@@ -60532,7 +60544,7 @@ var native_spec_default = {
60532
60544
  example: {
60533
60545
  account_id: "biz_xxxxxxxxxxxxxx",
60534
60546
  api_version: "v1",
60535
- api_version_date: "2026-09-11",
60547
+ api_version_date: "2026-09-11-1",
60536
60548
  data: {
60537
60549
  billing: null,
60538
60550
  canceled_at: null,
@@ -60848,7 +60860,7 @@ var native_spec_default = {
60848
60860
  example: {
60849
60861
  account_id: "biz_xxxxxxxxxxxxxx",
60850
60862
  api_version: "v1",
60851
- api_version_date: "2026-09-11",
60863
+ api_version_date: "2026-09-11-1",
60852
60864
  data: {
60853
60865
  billing: null,
60854
60866
  canceled_at: null,
@@ -61164,7 +61176,7 @@ var native_spec_default = {
61164
61176
  example: {
61165
61177
  account_id: "biz_xxxxxxxxxxxxxx",
61166
61178
  api_version: "v1",
61167
- api_version_date: "2026-09-11",
61179
+ api_version_date: "2026-09-11-1",
61168
61180
  data: {
61169
61181
  billing: null,
61170
61182
  canceled_at: null,
@@ -61480,7 +61492,7 @@ var native_spec_default = {
61480
61492
  example: {
61481
61493
  account_id: "biz_xxxxxxxxxxxxxx",
61482
61494
  api_version: "v1",
61483
- api_version_date: "2026-09-11",
61495
+ api_version_date: "2026-09-11-1",
61484
61496
  data: {
61485
61497
  billing: null,
61486
61498
  canceled_at: null,
@@ -61796,7 +61808,7 @@ var native_spec_default = {
61796
61808
  example: {
61797
61809
  account_id: "biz_xxxxxxxxxxxxxx",
61798
61810
  api_version: "v1",
61799
- api_version_date: "2026-09-11",
61811
+ api_version_date: "2026-09-11-1",
61800
61812
  data: {
61801
61813
  hosted_url: null,
61802
61814
  id: "ciac_xxxxxxxxxxxxxx",
@@ -61946,7 +61958,7 @@ var native_spec_default = {
61946
61958
  example: {
61947
61959
  account_id: "biz_xxxxxxxxxxxxxx",
61948
61960
  api_version: "v1",
61949
- api_version_date: "2026-09-11",
61961
+ api_version_date: "2026-09-11-1",
61950
61962
  data: {
61951
61963
  hosted_url: null,
61952
61964
  id: "ciac_xxxxxxxxxxxxxx",
@@ -62096,7 +62108,7 @@ var native_spec_default = {
62096
62108
  example: {
62097
62109
  account_id: "biz_xxxxxxxxxxxxxx",
62098
62110
  api_version: "v1",
62099
- api_version_date: "2026-09-11",
62111
+ api_version_date: "2026-09-11-1",
62100
62112
  data: {
62101
62113
  hosted_url: null,
62102
62114
  id: "ciac_xxxxxxxxxxxxxx",
@@ -62246,7 +62258,7 @@ var native_spec_default = {
62246
62258
  example: {
62247
62259
  account_id: "biz_xxxxxxxxxxxxxx",
62248
62260
  api_version: "v1",
62249
- api_version_date: "2026-09-11",
62261
+ api_version_date: "2026-09-11-1",
62250
62262
  data: {
62251
62263
  hosted_url: null,
62252
62264
  id: "ciac_xxxxxxxxxxxxxx",
@@ -62396,7 +62408,7 @@ var native_spec_default = {
62396
62408
  example: {
62397
62409
  account_id: "biz_xxxxxxxxxxxxxx",
62398
62410
  api_version: "v1",
62399
- api_version_date: "2026-09-11",
62411
+ api_version_date: "2026-09-11-1",
62400
62412
  data: {
62401
62413
  card_id: "icrd_xxxxxxxxxxxxxx",
62402
62414
  cardholder_id: null,
@@ -62526,7 +62538,7 @@ var native_spec_default = {
62526
62538
  example: {
62527
62539
  account_id: "biz_xxxxxxxxxxxxxx",
62528
62540
  api_version: "v1",
62529
- api_version_date: "2026-09-11",
62541
+ api_version_date: "2026-09-11-1",
62530
62542
  data: {
62531
62543
  card_id: "icrd_xxxxxxxxxxxxxx",
62532
62544
  cardholder_id: null,
@@ -62656,7 +62668,7 @@ var native_spec_default = {
62656
62668
  example: {
62657
62669
  account_id: "biz_xxxxxxxxxxxxxx",
62658
62670
  api_version: "v1",
62659
- api_version_date: "2026-09-11",
62671
+ api_version_date: "2026-09-11-1",
62660
62672
  data: {
62661
62673
  card_id: "icrd_xxxxxxxxxxxxxx",
62662
62674
  cardholder_id: null,
@@ -62786,7 +62798,7 @@ var native_spec_default = {
62786
62798
  example: {
62787
62799
  account_id: "biz_xxxxxxxxxxxxxx",
62788
62800
  api_version: "v1",
62789
- api_version_date: "2026-09-11",
62801
+ api_version_date: "2026-09-11-1",
62790
62802
  data: {
62791
62803
  card_id: "icrd_xxxxxxxxxxxxxx",
62792
62804
  cardholder_id: null,
@@ -62916,7 +62928,7 @@ var native_spec_default = {
62916
62928
  example: {
62917
62929
  account_id: "biz_xxxxxxxxxxxxxx",
62918
62930
  api_version: "v1",
62919
- api_version_date: "2026-09-11",
62931
+ api_version_date: "2026-09-11-1",
62920
62932
  data: {
62921
62933
  card_id: "icrd_xxxxxxxxxxxxxx",
62922
62934
  cardholder_id: null,
@@ -63046,7 +63058,7 @@ var native_spec_default = {
63046
63058
  example: {
63047
63059
  account_id: "biz_xxxxxxxxxxxxxx",
63048
63060
  api_version: "v1",
63049
- api_version_date: "2026-09-11",
63061
+ api_version_date: "2026-09-11-1",
63050
63062
  data: {
63051
63063
  amount: "75000000000",
63052
63064
  available_at: null,
@@ -63178,7 +63190,7 @@ var native_spec_default = {
63178
63190
  example: {
63179
63191
  account_id: "biz_xxxxxxxxxxxxxx",
63180
63192
  api_version: "v1",
63181
- api_version_date: "2026-09-11",
63193
+ api_version_date: "2026-09-11-1",
63182
63194
  data: {
63183
63195
  account_id: "biz_xxxxxxxxxxxxxx",
63184
63196
  amount: 150,
@@ -63357,7 +63369,7 @@ var native_spec_default = {
63357
63369
  example: {
63358
63370
  account_id: "biz_xxxxxxxxxxxxxx",
63359
63371
  api_version: "v1",
63360
- api_version_date: "2026-09-11",
63372
+ api_version_date: "2026-09-11-1",
63361
63373
  data: {
63362
63374
  account_id: "biz_xxxxxxxxxxxxxx",
63363
63375
  amount: 150,
@@ -63536,7 +63548,7 @@ var native_spec_default = {
63536
63548
  example: {
63537
63549
  account_id: "biz_xxxxxxxxxxxxxx",
63538
63550
  api_version: "v1",
63539
- api_version_date: "2026-09-11",
63551
+ api_version_date: "2026-09-11-1",
63540
63552
  data: {
63541
63553
  account_id: null,
63542
63554
  actionable: false,
@@ -63665,7 +63677,7 @@ var native_spec_default = {
63665
63677
  example: {
63666
63678
  account_id: "biz_xxxxxxxxxxxxxx",
63667
63679
  api_version: "v1",
63668
- api_version_date: "2026-09-11",
63680
+ api_version_date: "2026-09-11-1",
63669
63681
  data: {
63670
63682
  created_at: "2026-01-01T12:00:00.000Z",
63671
63683
  download_url: "https://s3.amazonaws.com/uploads/exports/members-export.csv",
@@ -63786,7 +63798,7 @@ var native_spec_default = {
63786
63798
  example: {
63787
63799
  account_id: "biz_xxxxxxxxxxxxxx",
63788
63800
  api_version: "v1",
63789
- api_version_date: "2026-09-11",
63801
+ api_version_date: "2026-09-11-1",
63790
63802
  data: {
63791
63803
  created_at: "2026-01-01T12:00:00.000Z",
63792
63804
  download_url: null,
@@ -63907,7 +63919,7 @@ var native_spec_default = {
63907
63919
  example: {
63908
63920
  account_id: "biz_xxxxxxxxxxxxxx",
63909
63921
  api_version: "v1",
63910
- api_version_date: "2026-09-11",
63922
+ api_version_date: "2026-09-11-1",
63911
63923
  data: {
63912
63924
  id: "idpf_xxxxxxxxxxxxxx"
63913
63925
  },
@@ -64028,7 +64040,7 @@ var native_spec_default = {
64028
64040
  example: {
64029
64041
  account_id: "biz_xxxxxxxxxxxxxx",
64030
64042
  api_version: "v1",
64031
- api_version_date: "2026-09-11",
64043
+ api_version_date: "2026-09-11-1",
64032
64044
  data: {
64033
64045
  access_level: "customer",
64034
64046
  account_id: "biz_xxxxxxxxxxxxxx",
@@ -64158,7 +64170,7 @@ var native_spec_default = {
64158
64170
  example: {
64159
64171
  account_id: "biz_xxxxxxxxxxxxxx",
64160
64172
  api_version: "v1",
64161
- api_version_date: "2026-09-11",
64173
+ api_version_date: "2026-09-11-1",
64162
64174
  data: {
64163
64175
  access_level: "customer",
64164
64176
  account_id: "biz_xxxxxxxxxxxxxx",
@@ -64288,7 +64300,7 @@ var native_spec_default = {
64288
64300
  example: {
64289
64301
  account_id: "biz_xxxxxxxxxxxxxx",
64290
64302
  api_version: "v1",
64291
- api_version_date: "2026-09-11",
64303
+ api_version_date: "2026-09-11-1",
64292
64304
  data: {
64293
64305
  account: {
64294
64306
  id: "biz_xxxxxxxxxxxxxx",
@@ -64419,7 +64431,7 @@ var native_spec_default = {
64419
64431
  example: {
64420
64432
  account_id: "biz_xxxxxxxxxxxxxx",
64421
64433
  api_version: "v1",
64422
- api_version_date: "2026-09-11",
64434
+ api_version_date: "2026-09-11-1",
64423
64435
  data: {
64424
64436
  account: {
64425
64437
  id: "biz_xxxxxxxxxxxxxx",
@@ -64556,7 +64568,7 @@ var native_spec_default = {
64556
64568
  example: {
64557
64569
  account_id: "biz_xxxxxxxxxxxxxx",
64558
64570
  api_version: "v1",
64559
- api_version_date: "2026-09-11",
64571
+ api_version_date: "2026-09-11-1",
64560
64572
  data: {
64561
64573
  account: {
64562
64574
  id: "biz_xxxxxxxxxxxxxx",
@@ -64687,7 +64699,7 @@ var native_spec_default = {
64687
64699
  example: {
64688
64700
  account_id: "biz_xxxxxxxxxxxxxx",
64689
64701
  api_version: "v1",
64690
- api_version_date: "2026-09-11",
64702
+ api_version_date: "2026-09-11-1",
64691
64703
  data: {
64692
64704
  account: {
64693
64705
  id: "biz_xxxxxxxxxxxxxx",
@@ -64824,7 +64836,7 @@ var native_spec_default = {
64824
64836
  example: {
64825
64837
  account_id: "biz_xxxxxxxxxxxxxx",
64826
64838
  api_version: "v1",
64827
- api_version_date: "2026-09-11",
64839
+ api_version_date: "2026-09-11-1",
64828
64840
  data: {
64829
64841
  account_id: "biz_xxxxxxxxxxxxxx",
64830
64842
  amount_after_fees: {
@@ -65072,7 +65084,7 @@ var native_spec_default = {
65072
65084
  example: {
65073
65085
  account_id: "biz_xxxxxxxxxxxxxx",
65074
65086
  api_version: "v1",
65075
- api_version_date: "2026-09-11",
65087
+ api_version_date: "2026-09-11-1",
65076
65088
  data: {
65077
65089
  account_id: "biz_xxxxxxxxxxxxxx",
65078
65090
  amount_after_fees: {
@@ -65320,7 +65332,7 @@ var native_spec_default = {
65320
65332
  example: {
65321
65333
  account_id: "biz_xxxxxxxxxxxxxx",
65322
65334
  api_version: "v1",
65323
- api_version_date: "2026-09-11",
65335
+ api_version_date: "2026-09-11-1",
65324
65336
  data: {
65325
65337
  account_id: "biz_xxxxxxxxxxxxxx",
65326
65338
  amount_after_fees: {
@@ -65568,7 +65580,7 @@ var native_spec_default = {
65568
65580
  example: {
65569
65581
  account_id: "biz_xxxxxxxxxxxxxx",
65570
65582
  api_version: "v1",
65571
- api_version_date: "2026-09-11",
65583
+ api_version_date: "2026-09-11-1",
65572
65584
  data: {
65573
65585
  account_id: "biz_xxxxxxxxxxxxxx",
65574
65586
  amount_after_fees: {
@@ -65816,7 +65828,7 @@ var native_spec_default = {
65816
65828
  example: {
65817
65829
  account_id: "biz_xxxxxxxxxxxxxx",
65818
65830
  api_version: "v1",
65819
- api_version_date: "2026-09-11",
65831
+ api_version_date: "2026-09-11-1",
65820
65832
  data: {
65821
65833
  account_id: "biz_xxxxxxxxxxxxxx",
65822
65834
  amount_after_fees: {
@@ -66060,7 +66072,7 @@ var native_spec_default = {
66060
66072
  example: {
66061
66073
  account_id: "biz_xxxxxxxxxxxxxx",
66062
66074
  api_version: "v1",
66063
- api_version_date: "2026-09-11",
66075
+ api_version_date: "2026-09-11-1",
66064
66076
  data: {
66065
66077
  account_id: "biz_xxxxxxxxxxxxxx",
66066
66078
  amount_after_fees: {
@@ -66308,7 +66320,7 @@ var native_spec_default = {
66308
66320
  example: {
66309
66321
  account_id: "biz_xxxxxxxxxxxxxx",
66310
66322
  api_version: "v1",
66311
- api_version_date: "2026-09-11",
66323
+ api_version_date: "2026-09-11-1",
66312
66324
  data: {
66313
66325
  amount: "10.0",
66314
66326
  created_at: "2026-01-01T12:00:00.000Z",
@@ -66696,7 +66708,7 @@ var native_spec_default = {
66696
66708
  example: {
66697
66709
  account_id: "biz_xxxxxxxxxxxxxx",
66698
66710
  api_version: "v1",
66699
- api_version_date: "2026-09-11",
66711
+ api_version_date: "2026-09-11-1",
66700
66712
  data: {
66701
66713
  amount: "10.0",
66702
66714
  created_at: "2026-01-01T12:00:00.000Z",
@@ -67081,7 +67093,7 @@ var native_spec_default = {
67081
67093
  example: {
67082
67094
  account_id: "biz_xxxxxxxxxxxxxx",
67083
67095
  api_version: "v1",
67084
- api_version_date: "2026-09-11",
67096
+ api_version_date: "2026-09-11-1",
67085
67097
  data: {
67086
67098
  amount: "10.0",
67087
67099
  created_at: "2026-01-01T12:00:00.000Z",
@@ -67462,7 +67474,7 @@ var native_spec_default = {
67462
67474
  example: {
67463
67475
  account_id: "biz_xxxxxxxxxxxxxx",
67464
67476
  api_version: "v1",
67465
- api_version_date: "2026-09-11",
67477
+ api_version_date: "2026-09-11-1",
67466
67478
  data: {
67467
67479
  account_reference: "4483",
67468
67480
  bank_verification_state: "no_data",
@@ -67916,7 +67928,7 @@ var native_spec_default = {
67916
67928
  example: {
67917
67929
  account_id: "biz_xxxxxxxxxxxxxx",
67918
67930
  api_version: "v1",
67919
- api_version_date: "2026-09-11",
67931
+ api_version_date: "2026-09-11-1",
67920
67932
  data: {
67921
67933
  account: {
67922
67934
  id: "biz_xxxxxxxxxxxxxx",
@@ -68202,7 +68214,7 @@ var native_spec_default = {
68202
68214
  example: {
68203
68215
  account_id: "biz_xxxxxxxxxxxxxx",
68204
68216
  api_version: "v1",
68205
- api_version_date: "2026-09-11",
68217
+ api_version_date: "2026-09-11-1",
68206
68218
  data: {
68207
68219
  account: {
68208
68220
  id: "biz_xxxxxxxxxxxxxx",
@@ -68488,7 +68500,7 @@ var native_spec_default = {
68488
68500
  example: {
68489
68501
  account_id: "biz_xxxxxxxxxxxxxx",
68490
68502
  api_version: "v1",
68491
- api_version_date: "2026-09-11",
68503
+ api_version_date: "2026-09-11-1",
68492
68504
  data: {
68493
68505
  account: {
68494
68506
  id: "biz_xxxxxxxxxxxxxx",
@@ -68774,7 +68786,7 @@ var native_spec_default = {
68774
68786
  example: {
68775
68787
  account_id: "biz_xxxxxxxxxxxxxx",
68776
68788
  api_version: "v1",
68777
- api_version_date: "2026-09-11",
68789
+ api_version_date: "2026-09-11-1",
68778
68790
  data: {
68779
68791
  account: {
68780
68792
  id: "biz_xxxxxxxxxxxxxx",
@@ -68923,7 +68935,7 @@ var native_spec_default = {
68923
68935
  example: {
68924
68936
  account_id: "biz_xxxxxxxxxxxxxx",
68925
68937
  api_version: "v1",
68926
- api_version_date: "2026-09-11",
68938
+ api_version_date: "2026-09-11-1",
68927
68939
  data: {
68928
68940
  account: {
68929
68941
  id: "biz_xxxxxxxxxxxxxx",
@@ -69072,7 +69084,7 @@ var native_spec_default = {
69072
69084
  example: {
69073
69085
  account_id: "biz_xxxxxxxxxxxxxx",
69074
69086
  api_version: "v1",
69075
- api_version_date: "2026-09-11",
69087
+ api_version_date: "2026-09-11-1",
69076
69088
  data: {
69077
69089
  account: {
69078
69090
  id: "biz_xxxxxxxxxxxxxx",
@@ -69221,7 +69233,7 @@ var native_spec_default = {
69221
69233
  example: {
69222
69234
  account_id: "biz_xxxxxxxxxxxxxx",
69223
69235
  api_version: "v1",
69224
- api_version_date: "2026-09-11",
69236
+ api_version_date: "2026-09-11-1",
69225
69237
  data: {
69226
69238
  account: {
69227
69239
  id: "biz_xxxxxxxxxxxxxx",
@@ -69370,7 +69382,7 @@ var native_spec_default = {
69370
69382
  example: {
69371
69383
  account_id: "biz_xxxxxxxxxxxxxx",
69372
69384
  api_version: "v1",
69373
- api_version_date: "2026-09-11",
69385
+ api_version_date: "2026-09-11-1",
69374
69386
  data: {
69375
69387
  account: {
69376
69388
  id: "biz_xxxxxxxxxxxxxx",
@@ -69519,7 +69531,7 @@ var native_spec_default = {
69519
69531
  example: {
69520
69532
  account_id: "biz_xxxxxxxxxxxxxx",
69521
69533
  api_version: "v1",
69522
- api_version_date: "2026-09-11",
69534
+ api_version_date: "2026-09-11-1",
69523
69535
  data: {
69524
69536
  account: {
69525
69537
  id: "biz_xxxxxxxxxxxxxx",
@@ -69677,7 +69689,7 @@ var native_spec_default = {
69677
69689
  example: {
69678
69690
  account_id: "biz_xxxxxxxxxxxxxx",
69679
69691
  api_version: "v1",
69680
- api_version_date: "2026-09-11",
69692
+ api_version_date: "2026-09-11-1",
69681
69693
  data: {
69682
69694
  account: {
69683
69695
  id: "biz_xxxxxxxxxxxxxx",
@@ -69835,7 +69847,7 @@ var native_spec_default = {
69835
69847
  example: {
69836
69848
  account_id: "biz_xxxxxxxxxxxxxx",
69837
69849
  api_version: "v1",
69838
- api_version_date: "2026-09-11",
69850
+ api_version_date: "2026-09-11-1",
69839
69851
  data: {
69840
69852
  account: {
69841
69853
  id: "biz_xxxxxxxxxxxxxx",
@@ -69993,7 +70005,7 @@ var native_spec_default = {
69993
70005
  example: {
69994
70006
  account_id: "biz_xxxxxxxxxxxxxx",
69995
70007
  api_version: "v1",
69996
- api_version_date: "2026-09-11",
70008
+ api_version_date: "2026-09-11-1",
69997
70009
  data: {
69998
70010
  account_id: "biz_xxxxxxxxxxxxxx",
69999
70011
  carrier: "ups",
@@ -70116,7 +70128,7 @@ var native_spec_default = {
70116
70128
  example: {
70117
70129
  account_id: "biz_xxxxxxxxxxxxxx",
70118
70130
  api_version: "v1",
70119
- api_version_date: "2026-09-11",
70131
+ api_version_date: "2026-09-11-1",
70120
70132
  data: {
70121
70133
  account_id: "biz_xxxxxxxxxxxxxx",
70122
70134
  carrier: "ups",
@@ -70239,7 +70251,7 @@ var native_spec_default = {
70239
70251
  example: {
70240
70252
  account_id: "biz_xxxxxxxxxxxxxx",
70241
70253
  api_version: "v1",
70242
- api_version_date: "2026-09-11",
70254
+ api_version_date: "2026-09-11-1",
70243
70255
  data: {
70244
70256
  account: {
70245
70257
  id: "biz_xxxxxxxxxxxxxx",
@@ -70448,7 +70460,7 @@ var native_spec_default = {
70448
70460
  example: {
70449
70461
  account_id: "biz_xxxxxxxxxxxxxx",
70450
70462
  api_version: "v1",
70451
- api_version_date: "2026-09-11",
70463
+ api_version_date: "2026-09-11-1",
70452
70464
  data: {
70453
70465
  amount: 250,
70454
70466
  created_at: "2026-01-01T12:00:00.000Z",
@@ -70832,7 +70844,7 @@ var native_spec_default = {
70832
70844
  example: {
70833
70845
  account_id: "biz_xxxxxxxxxxxxxx",
70834
70846
  api_version: "v1",
70835
- api_version_date: "2026-09-11",
70847
+ api_version_date: "2026-09-11-1",
70836
70848
  data: {
70837
70849
  amount: 250,
70838
70850
  created_at: "2026-01-01T12:00:00.000Z",
@@ -71216,7 +71228,7 @@ var native_spec_default = {
71216
71228
  example: {
71217
71229
  account_id: "biz_xxxxxxxxxxxxxx",
71218
71230
  api_version: "v1",
71219
- api_version_date: "2026-09-11",
71231
+ api_version_date: "2026-09-11-1",
71220
71232
  data: {
71221
71233
  amount: 10,
71222
71234
  created_at: "2026-01-01T12:00:00.000Z",
@@ -71566,7 +71578,7 @@ var native_spec_default = {
71566
71578
  name: "Api-Version-Date",
71567
71579
  required: false,
71568
71580
  schema: {
71569
- example: "2026-09-11",
71581
+ example: "2026-09-11-1",
71570
71582
  type: "string"
71571
71583
  }
71572
71584
  },
@@ -75760,9 +75772,10 @@ var native_spec_default = {
75760
75772
  "2026-09-06",
75761
75773
  "2026-09-09",
75762
75774
  "2026-09-09-1",
75763
- "2026-09-11"
75775
+ "2026-09-11",
75776
+ "2026-09-11-1"
75764
75777
  ],
75765
- example: "2026-09-11",
75778
+ example: "2026-09-11-1",
75766
75779
  type: "string"
75767
75780
  },
75768
75781
  created_at: {
@@ -79685,32 +79698,11 @@ var native_spec_default = {
79685
79698
  example: "whop_ai",
79686
79699
  type: "string"
79687
79700
  },
79688
- expected_delta: {
79689
- description: "Expected change in that ledger line over the evaluation window, in USD, negative when the action reduces it, or `null`",
79690
- oneOf: [
79691
- {
79692
- $ref: "#/components/schemas/Money"
79693
- },
79694
- {
79695
- type: "null"
79696
- }
79697
- ]
79698
- },
79699
- expected_ledger_line: {
79700
- description: "The ledger line the action is expected to move, or `null` when the card carries no expectation",
79701
- example: "ad_spend_charge",
79702
- type: ["string", "null"]
79703
- },
79704
79701
  id: {
79705
79702
  description: "Economic intelligence ID, prefixed `reca_`",
79706
79703
  example: "reca_xxxxxxxxxxxxxx",
79707
79704
  type: "string"
79708
79705
  },
79709
- inference_version: {
79710
- description: "The engine that generated the card, e.g. `whop-ai-v5`",
79711
- example: "whop-ai-v5",
79712
- type: "string"
79713
- },
79714
79706
  input: {
79715
79707
  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",
79716
79708
  example: "more sales from ads",
@@ -79758,10 +79750,7 @@ var native_spec_default = {
79758
79750
  "prompt",
79759
79751
  "reasoning",
79760
79752
  "input",
79761
- "inference_version",
79762
79753
  "status",
79763
- "expected_ledger_line",
79764
- "expected_delta",
79765
79754
  "executed_at",
79766
79755
  "superseded_at",
79767
79756
  "created_at"
@@ -88321,7 +88310,7 @@ var native_spec_default = {
88321
88310
  },
88322
88311
  api_version_date: {
88323
88312
  description: "The dated API version (Api-Version-Date) that v1 payloads for this endpoint are pinned to: events serialize exactly like a REST read at this version (the native serializer where the resource has one). Null when unpinned \u2014 legacy (v2/v5) webhooks, and v1 webhooks on the legacy payload shape.",
88324
- example: "2026-01-01",
88313
+ example: "2026-09-11-1",
88325
88314
  type: ["string", "null"]
88326
88315
  },
88327
88316
  child_resource_events: {
@@ -88711,7 +88700,7 @@ var native_spec_default = {
88711
88700
  },
88712
88701
  api_version_date: {
88713
88702
  description: "The dated API version (Api-Version-Date) that v1 payloads for this endpoint are pinned to: events serialize exactly like a REST read at this version (the native serializer where the resource has one). Null when unpinned \u2014 legacy (v2/v5) webhooks, and v1 webhooks on the legacy payload shape.",
88714
- example: "2026-01-01",
88703
+ example: "2026-09-11-1",
88715
88704
  type: ["string", "null"]
88716
88705
  },
88717
88706
  child_resource_events: {
@@ -88931,7 +88920,7 @@ var apps_spec_default = {
88931
88920
  termsOfService: "https://whop.com/tos-developer-api/",
88932
88921
  title: "Whop API",
88933
88922
  version: "1.0.0",
88934
- "x-api-version-date": "2026-09-11"
88923
+ "x-api-version-date": "2026-09-11-1"
88935
88924
  },
88936
88925
  paths: {
88937
88926
  "/app_builds": {
@@ -91246,7 +91235,7 @@ var apps_spec_default = {
91246
91235
  name: "Api-Version-Date",
91247
91236
  required: false,
91248
91237
  schema: {
91249
- example: "2026-09-11",
91238
+ example: "2026-09-11-1",
91250
91239
  type: "string"
91251
91240
  }
91252
91241
  },
@@ -91325,7 +91314,7 @@ var files_spec_default = {
91325
91314
  termsOfService: "https://whop.com/tos-developer-api/",
91326
91315
  title: "Whop API",
91327
91316
  version: "1.0.0",
91328
- "x-api-version-date": "2026-09-11"
91317
+ "x-api-version-date": "2026-09-11-1"
91329
91318
  },
91330
91319
  paths: {
91331
91320
  "/files": {
@@ -91864,7 +91853,7 @@ var files_spec_default = {
91864
91853
  name: "Api-Version-Date",
91865
91854
  required: false,
91866
91855
  schema: {
91867
- example: "2026-09-11",
91856
+ example: "2026-09-11-1",
91868
91857
  type: "string"
91869
91858
  }
91870
91859
  },
@@ -92005,7 +91994,7 @@ async function announceActionUrl(url, {
92005
91994
  // package.json
92006
91995
  var package_default = {
92007
91996
  name: "@whop/cli",
92008
- version: "0.16.6",
91997
+ version: "0.17.0",
92009
91998
  description: "The Whop CLI \u2014 build and manage Whop apps from your terminal. Human and agent friendly.",
92010
91999
  keywords: [
92011
92000
  "agent",
@@ -93863,6 +93852,48 @@ function safeParse(text4) {
93863
93852
  }
93864
93853
  }
93865
93854
 
93855
+ // src/feedback.ts
93856
+ var feedbackOptions = external_exports.object({
93857
+ content: external_exports.string().trim().min(1).max(12e3).describe(
93858
+ "Describe the problem or unanswered question and relevant context. Remove credentials, personal data, and payment details."
93859
+ )
93860
+ });
93861
+ var receipt = external_exports.object({ id: external_exports.string().startsWith("fbk_") });
93862
+ var whopFetch2 = createWhopFetch();
93863
+ function buildFeedbackCommand(kind) {
93864
+ return {
93865
+ description: kind === "ask_question" ? "Record an unanswered Whop question for internal review. Returns a receipt, not an answer; do not wait or poll for a reply." : "Report a concrete Whop problem, confusing behavior, or documentation gap for internal review. Returns a receipt; no follow-up is sent to this session.",
93866
+ hint: "Use a user credential from `whop login` (browser OAuth). Submit one real observation per call.",
93867
+ options: feedbackOptions,
93868
+ output: external_exports.object({
93869
+ submission_id: external_exports.string(),
93870
+ status: external_exports.literal("submitted"),
93871
+ message: external_exports.string()
93872
+ }),
93873
+ async run({ options }) {
93874
+ const content = options.content.replace(/Bearer\s+[A-Za-z0-9._~+/=-]+/g, "Bearer [redacted]").replace(/\b(?:apik|sk|whsec|rt|at)_[A-Za-z0-9]{8,}\b/g, "[redacted]");
93875
+ const response = await whopFetch2(
93876
+ new Request("https://whop.invalid/feedback_submissions", {
93877
+ method: "POST",
93878
+ headers: {
93879
+ "Content-Type": "application/json",
93880
+ "Idempotency-Key": crypto.randomUUID()
93881
+ },
93882
+ body: JSON.stringify({ source: `cli_${kind}`, content })
93883
+ })
93884
+ );
93885
+ if (!response.ok) throw await responseError(response);
93886
+ const saved = receipt.safeParse(await response.json());
93887
+ if (!saved.success) throw new Error("Invalid feedback receipt");
93888
+ return {
93889
+ submission_id: saved.data.id,
93890
+ status: "submitted",
93891
+ message: kind === "ask_question" ? "Question accepted for Whop's internal review. No answer will be returned in this session; continue with available information." : "Feedback accepted for Whop's internal review. No follow-up will be returned in this session."
93892
+ };
93893
+ }
93894
+ };
93895
+ }
93896
+
93866
93897
  // src/api/groups.json
93867
93898
  var groups_default = [
93868
93899
  {
@@ -97957,13 +97988,13 @@ function buildAuthGroup() {
97957
97988
  // src/media/commands.ts
97958
97989
  import { spinner as spinner5 } from "@clack/prompts";
97959
97990
  var POLL_INTERVAL_MS = 3e3;
97960
- var whopFetch2 = createWhopFetch();
97991
+ var whopFetch3 = createWhopFetch();
97961
97992
  async function buildMediaGroup(description) {
97962
97993
  const media = Cli_exports.create("media", { description });
97963
97994
  const spec2 = filterSpecByTag(native_spec_default, "Media");
97964
97995
  const generated = await Openapi_exports.generateCommands(
97965
97996
  spec2,
97966
- whopFetch2,
97997
+ whopFetch3,
97967
97998
  { config: { security: false } }
97968
97999
  );
97969
98000
  const getEntry = generated.get("get");
@@ -99305,6 +99336,8 @@ cli.command("quickstart", {
99305
99336
  outputPolicy: "agent-only",
99306
99337
  run: (c2) => runQuickstart(c2)
99307
99338
  });
99339
+ cli.command("report-feedback", buildFeedbackCommand("report_feedback"));
99340
+ cli.command("ask-question", buildFeedbackCommand("ask_question"));
99308
99341
  cli.command(await buildAppGroup());
99309
99342
  cli.command("files", {
99310
99343
  description: "Create file uploads and retrieve uploaded file details.",
@@ -99381,6 +99414,14 @@ var AUTH_SECTION = {
99381
99414
  var DEVELOPER_LABEL = "Developer";
99382
99415
  var EXTRA_SECTION_COMMANDS = {
99383
99416
  [DEVELOPER_LABEL]: [
99417
+ {
99418
+ name: "report-feedback",
99419
+ description: "Report a Whop problem for internal review"
99420
+ },
99421
+ {
99422
+ name: "ask-question",
99423
+ description: "Record an unanswered Whop question for internal review"
99424
+ },
99384
99425
  {
99385
99426
  name: "files",
99386
99427
  description: "Create file uploads and retrieve uploaded file details"