@whop/cli 0.16.6 → 0.18.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 +19 -0
- package/dist/index.js +384 -137
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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: "
|
|
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
|
|
14535
|
-
example: "
|
|
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. `
|
|
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
|
-
"
|
|
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
|
|
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,
|
|
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 `
|
|
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
|
|
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. `
|
|
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
|
-
"
|
|
14929
|
+
"requires_shop_domain"
|
|
14918
14930
|
],
|
|
14919
|
-
example: "
|
|
14931
|
+
example: "requires_shop_domain",
|
|
14920
14932
|
type: "string"
|
|
14921
14933
|
}
|
|
14922
14934
|
},
|
|
@@ -33072,6 +33084,7 @@ var native_spec_default = {
|
|
|
33072
33084
|
schema: {
|
|
33073
33085
|
items: {
|
|
33074
33086
|
enum: [
|
|
33087
|
+
"account_settlement",
|
|
33075
33088
|
"ad_budget_release",
|
|
33076
33089
|
"ad_campaign_budget",
|
|
33077
33090
|
"ad_publisher_payout",
|
|
@@ -33499,6 +33512,7 @@ var native_spec_default = {
|
|
|
33499
33512
|
schema: {
|
|
33500
33513
|
items: {
|
|
33501
33514
|
enum: [
|
|
33515
|
+
"account_settlement",
|
|
33502
33516
|
"ad_budget_release",
|
|
33503
33517
|
"ad_campaign_budget",
|
|
33504
33518
|
"ad_publisher_payout",
|
|
@@ -41773,6 +41787,7 @@ var native_spec_default = {
|
|
|
41773
41787
|
"kyc_completed",
|
|
41774
41788
|
"rmi_clear",
|
|
41775
41789
|
"identity_rfi_clear",
|
|
41790
|
+
"guardian_id_clear",
|
|
41776
41791
|
"ecommerce_fulfillment_connected",
|
|
41777
41792
|
"block_move_money_out",
|
|
41778
41793
|
"block_move_money_out_set_by_parent",
|
|
@@ -46753,6 +46768,26 @@ var native_spec_default = {
|
|
|
46753
46768
|
example: "Full interior extraction, leather conditioning, and an ozone odor treatment.",
|
|
46754
46769
|
type: ["string", "null"]
|
|
46755
46770
|
},
|
|
46771
|
+
gallery_images: {
|
|
46772
|
+
description: "Images or videos displayed in the product gallery, in display order. Replaces the existing gallery. Send an empty array to clear it; omit or pass null to leave it unchanged. A banner image does not populate the gallery.",
|
|
46773
|
+
items: {
|
|
46774
|
+
properties: {
|
|
46775
|
+
direct_upload_id: {
|
|
46776
|
+
description: "The signed ID of a completed direct upload, as an alternative to id.",
|
|
46777
|
+
example: "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
46778
|
+
type: "string"
|
|
46779
|
+
},
|
|
46780
|
+
id: {
|
|
46781
|
+
description: "The tag of an already-uploaded attachment.",
|
|
46782
|
+
example: "file_xxxxxxxxxxxxxx",
|
|
46783
|
+
type: "string"
|
|
46784
|
+
}
|
|
46785
|
+
},
|
|
46786
|
+
type: "object"
|
|
46787
|
+
},
|
|
46788
|
+
maxItems: 8,
|
|
46789
|
+
type: ["array", "null"]
|
|
46790
|
+
},
|
|
46756
46791
|
global_affiliate_percentage: {
|
|
46757
46792
|
description: "The commission rate affiliates earn.",
|
|
46758
46793
|
example: 10,
|
|
@@ -47034,6 +47069,26 @@ var native_spec_default = {
|
|
|
47034
47069
|
example: "Full interior extraction, leather conditioning, and an ozone odor treatment.",
|
|
47035
47070
|
type: ["string", "null"]
|
|
47036
47071
|
},
|
|
47072
|
+
gallery_images: {
|
|
47073
|
+
description: "Images or videos displayed in the product gallery, in display order. Replaces the existing gallery. Send an empty array to clear it; omit or pass null to leave it unchanged. A banner image does not populate the gallery.",
|
|
47074
|
+
items: {
|
|
47075
|
+
properties: {
|
|
47076
|
+
direct_upload_id: {
|
|
47077
|
+
description: "The signed ID of a completed direct upload, as an alternative to id.",
|
|
47078
|
+
example: "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
47079
|
+
type: "string"
|
|
47080
|
+
},
|
|
47081
|
+
id: {
|
|
47082
|
+
description: "The tag of an already-uploaded attachment.",
|
|
47083
|
+
example: "file_xxxxxxxxxxxxxx",
|
|
47084
|
+
type: "string"
|
|
47085
|
+
}
|
|
47086
|
+
},
|
|
47087
|
+
type: "object"
|
|
47088
|
+
},
|
|
47089
|
+
maxItems: 8,
|
|
47090
|
+
type: ["array", "null"]
|
|
47091
|
+
},
|
|
47037
47092
|
headline: {
|
|
47038
47093
|
description: "A short marketing headline for the product page.",
|
|
47039
47094
|
example: "Steam, shampoo, and odor removal in one visit",
|
|
@@ -57587,7 +57642,7 @@ var native_spec_default = {
|
|
|
57587
57642
|
properties: {
|
|
57588
57643
|
api_version_date: {
|
|
57589
57644
|
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-
|
|
57645
|
+
example: "2026-09-11-1",
|
|
57591
57646
|
type: ["string", "null"]
|
|
57592
57647
|
},
|
|
57593
57648
|
child_resource_events: {
|
|
@@ -57627,6 +57682,7 @@ var native_spec_default = {
|
|
|
57627
57682
|
"ledger_account.funds_available",
|
|
57628
57683
|
"swap.completed",
|
|
57629
57684
|
"deposit.succeeded",
|
|
57685
|
+
"financial_activity.funds_available",
|
|
57630
57686
|
"transfer.created",
|
|
57631
57687
|
"transfer.completed",
|
|
57632
57688
|
"transfer.failed",
|
|
@@ -57959,7 +58015,7 @@ var native_spec_default = {
|
|
|
57959
58015
|
properties: {
|
|
57960
58016
|
api_version_date: {
|
|
57961
58017
|
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-
|
|
58018
|
+
example: "2026-09-11-1",
|
|
57963
58019
|
type: ["string", "null"]
|
|
57964
58020
|
},
|
|
57965
58021
|
child_resource_events: {
|
|
@@ -57999,6 +58055,7 @@ var native_spec_default = {
|
|
|
57999
58055
|
"ledger_account.funds_available",
|
|
58000
58056
|
"swap.completed",
|
|
58001
58057
|
"deposit.succeeded",
|
|
58058
|
+
"financial_activity.funds_available",
|
|
58002
58059
|
"transfer.created",
|
|
58003
58060
|
"transfer.completed",
|
|
58004
58061
|
"transfer.failed",
|
|
@@ -58651,7 +58708,7 @@ var native_spec_default = {
|
|
|
58651
58708
|
example: {
|
|
58652
58709
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
58653
58710
|
api_version: "v1",
|
|
58654
|
-
api_version_date: "2026-09-11",
|
|
58711
|
+
api_version_date: "2026-09-11-1",
|
|
58655
58712
|
data: {
|
|
58656
58713
|
balances: [],
|
|
58657
58714
|
banner_image_url: null,
|
|
@@ -58962,7 +59019,7 @@ var native_spec_default = {
|
|
|
58962
59019
|
example: {
|
|
58963
59020
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
58964
59021
|
api_version: "v1",
|
|
58965
|
-
api_version_date: "2026-09-11",
|
|
59022
|
+
api_version_date: "2026-09-11-1",
|
|
58966
59023
|
data: {
|
|
58967
59024
|
balances: [],
|
|
58968
59025
|
banner_image_url: null,
|
|
@@ -59273,7 +59330,7 @@ var native_spec_default = {
|
|
|
59273
59330
|
example: {
|
|
59274
59331
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
59275
59332
|
api_version: "v1",
|
|
59276
|
-
api_version_date: "2026-09-11",
|
|
59333
|
+
api_version_date: "2026-09-11-1",
|
|
59277
59334
|
data: {
|
|
59278
59335
|
balances: [],
|
|
59279
59336
|
banner_image_url: null,
|
|
@@ -59584,7 +59641,7 @@ var native_spec_default = {
|
|
|
59584
59641
|
example: {
|
|
59585
59642
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
59586
59643
|
api_version: "v1",
|
|
59587
|
-
api_version_date: "2026-09-11",
|
|
59644
|
+
api_version_date: "2026-09-11-1",
|
|
59588
59645
|
data: {
|
|
59589
59646
|
ad_campaign: {
|
|
59590
59647
|
id: "adcamp_xxxxxxxxxxxxxx"
|
|
@@ -59968,7 +60025,7 @@ var native_spec_default = {
|
|
|
59968
60025
|
example: {
|
|
59969
60026
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
59970
60027
|
api_version: "v1",
|
|
59971
|
-
api_version_date: "2026-09-11",
|
|
60028
|
+
api_version_date: "2026-09-11-1",
|
|
59972
60029
|
data: {
|
|
59973
60030
|
bid_type: null,
|
|
59974
60031
|
budget_amount: 50,
|
|
@@ -60250,7 +60307,7 @@ var native_spec_default = {
|
|
|
60250
60307
|
example: {
|
|
60251
60308
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
60252
60309
|
api_version: "v1",
|
|
60253
|
-
api_version_date: "2026-09-11",
|
|
60310
|
+
api_version_date: "2026-09-11-1",
|
|
60254
60311
|
data: {
|
|
60255
60312
|
bid_type: null,
|
|
60256
60313
|
budget_amount: 50,
|
|
@@ -60532,7 +60589,7 @@ var native_spec_default = {
|
|
|
60532
60589
|
example: {
|
|
60533
60590
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
60534
60591
|
api_version: "v1",
|
|
60535
|
-
api_version_date: "2026-09-11",
|
|
60592
|
+
api_version_date: "2026-09-11-1",
|
|
60536
60593
|
data: {
|
|
60537
60594
|
billing: null,
|
|
60538
60595
|
canceled_at: null,
|
|
@@ -60848,7 +60905,7 @@ var native_spec_default = {
|
|
|
60848
60905
|
example: {
|
|
60849
60906
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
60850
60907
|
api_version: "v1",
|
|
60851
|
-
api_version_date: "2026-09-11",
|
|
60908
|
+
api_version_date: "2026-09-11-1",
|
|
60852
60909
|
data: {
|
|
60853
60910
|
billing: null,
|
|
60854
60911
|
canceled_at: null,
|
|
@@ -61164,7 +61221,7 @@ var native_spec_default = {
|
|
|
61164
61221
|
example: {
|
|
61165
61222
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
61166
61223
|
api_version: "v1",
|
|
61167
|
-
api_version_date: "2026-09-11",
|
|
61224
|
+
api_version_date: "2026-09-11-1",
|
|
61168
61225
|
data: {
|
|
61169
61226
|
billing: null,
|
|
61170
61227
|
canceled_at: null,
|
|
@@ -61480,7 +61537,7 @@ var native_spec_default = {
|
|
|
61480
61537
|
example: {
|
|
61481
61538
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
61482
61539
|
api_version: "v1",
|
|
61483
|
-
api_version_date: "2026-09-11",
|
|
61540
|
+
api_version_date: "2026-09-11-1",
|
|
61484
61541
|
data: {
|
|
61485
61542
|
billing: null,
|
|
61486
61543
|
canceled_at: null,
|
|
@@ -61796,7 +61853,7 @@ var native_spec_default = {
|
|
|
61796
61853
|
example: {
|
|
61797
61854
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
61798
61855
|
api_version: "v1",
|
|
61799
|
-
api_version_date: "2026-09-11",
|
|
61856
|
+
api_version_date: "2026-09-11-1",
|
|
61800
61857
|
data: {
|
|
61801
61858
|
hosted_url: null,
|
|
61802
61859
|
id: "ciac_xxxxxxxxxxxxxx",
|
|
@@ -61946,7 +62003,7 @@ var native_spec_default = {
|
|
|
61946
62003
|
example: {
|
|
61947
62004
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
61948
62005
|
api_version: "v1",
|
|
61949
|
-
api_version_date: "2026-09-11",
|
|
62006
|
+
api_version_date: "2026-09-11-1",
|
|
61950
62007
|
data: {
|
|
61951
62008
|
hosted_url: null,
|
|
61952
62009
|
id: "ciac_xxxxxxxxxxxxxx",
|
|
@@ -62096,7 +62153,7 @@ var native_spec_default = {
|
|
|
62096
62153
|
example: {
|
|
62097
62154
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62098
62155
|
api_version: "v1",
|
|
62099
|
-
api_version_date: "2026-09-11",
|
|
62156
|
+
api_version_date: "2026-09-11-1",
|
|
62100
62157
|
data: {
|
|
62101
62158
|
hosted_url: null,
|
|
62102
62159
|
id: "ciac_xxxxxxxxxxxxxx",
|
|
@@ -62246,7 +62303,7 @@ var native_spec_default = {
|
|
|
62246
62303
|
example: {
|
|
62247
62304
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62248
62305
|
api_version: "v1",
|
|
62249
|
-
api_version_date: "2026-09-11",
|
|
62306
|
+
api_version_date: "2026-09-11-1",
|
|
62250
62307
|
data: {
|
|
62251
62308
|
hosted_url: null,
|
|
62252
62309
|
id: "ciac_xxxxxxxxxxxxxx",
|
|
@@ -62396,7 +62453,7 @@ var native_spec_default = {
|
|
|
62396
62453
|
example: {
|
|
62397
62454
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62398
62455
|
api_version: "v1",
|
|
62399
|
-
api_version_date: "2026-09-11",
|
|
62456
|
+
api_version_date: "2026-09-11-1",
|
|
62400
62457
|
data: {
|
|
62401
62458
|
card_id: "icrd_xxxxxxxxxxxxxx",
|
|
62402
62459
|
cardholder_id: null,
|
|
@@ -62526,7 +62583,7 @@ var native_spec_default = {
|
|
|
62526
62583
|
example: {
|
|
62527
62584
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62528
62585
|
api_version: "v1",
|
|
62529
|
-
api_version_date: "2026-09-11",
|
|
62586
|
+
api_version_date: "2026-09-11-1",
|
|
62530
62587
|
data: {
|
|
62531
62588
|
card_id: "icrd_xxxxxxxxxxxxxx",
|
|
62532
62589
|
cardholder_id: null,
|
|
@@ -62656,7 +62713,7 @@ var native_spec_default = {
|
|
|
62656
62713
|
example: {
|
|
62657
62714
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62658
62715
|
api_version: "v1",
|
|
62659
|
-
api_version_date: "2026-09-11",
|
|
62716
|
+
api_version_date: "2026-09-11-1",
|
|
62660
62717
|
data: {
|
|
62661
62718
|
card_id: "icrd_xxxxxxxxxxxxxx",
|
|
62662
62719
|
cardholder_id: null,
|
|
@@ -62786,7 +62843,7 @@ var native_spec_default = {
|
|
|
62786
62843
|
example: {
|
|
62787
62844
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62788
62845
|
api_version: "v1",
|
|
62789
|
-
api_version_date: "2026-09-11",
|
|
62846
|
+
api_version_date: "2026-09-11-1",
|
|
62790
62847
|
data: {
|
|
62791
62848
|
card_id: "icrd_xxxxxxxxxxxxxx",
|
|
62792
62849
|
cardholder_id: null,
|
|
@@ -62916,7 +62973,7 @@ var native_spec_default = {
|
|
|
62916
62973
|
example: {
|
|
62917
62974
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
62918
62975
|
api_version: "v1",
|
|
62919
|
-
api_version_date: "2026-09-11",
|
|
62976
|
+
api_version_date: "2026-09-11-1",
|
|
62920
62977
|
data: {
|
|
62921
62978
|
card_id: "icrd_xxxxxxxxxxxxxx",
|
|
62922
62979
|
cardholder_id: null,
|
|
@@ -63046,7 +63103,7 @@ var native_spec_default = {
|
|
|
63046
63103
|
example: {
|
|
63047
63104
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63048
63105
|
api_version: "v1",
|
|
63049
|
-
api_version_date: "2026-09-11",
|
|
63106
|
+
api_version_date: "2026-09-11-1",
|
|
63050
63107
|
data: {
|
|
63051
63108
|
amount: "75000000000",
|
|
63052
63109
|
available_at: null,
|
|
@@ -63178,7 +63235,7 @@ var native_spec_default = {
|
|
|
63178
63235
|
example: {
|
|
63179
63236
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63180
63237
|
api_version: "v1",
|
|
63181
|
-
api_version_date: "2026-09-11",
|
|
63238
|
+
api_version_date: "2026-09-11-1",
|
|
63182
63239
|
data: {
|
|
63183
63240
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63184
63241
|
amount: 150,
|
|
@@ -63357,7 +63414,7 @@ var native_spec_default = {
|
|
|
63357
63414
|
example: {
|
|
63358
63415
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63359
63416
|
api_version: "v1",
|
|
63360
|
-
api_version_date: "2026-09-11",
|
|
63417
|
+
api_version_date: "2026-09-11-1",
|
|
63361
63418
|
data: {
|
|
63362
63419
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63363
63420
|
amount: 150,
|
|
@@ -63536,7 +63593,7 @@ var native_spec_default = {
|
|
|
63536
63593
|
example: {
|
|
63537
63594
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63538
63595
|
api_version: "v1",
|
|
63539
|
-
api_version_date: "2026-09-11",
|
|
63596
|
+
api_version_date: "2026-09-11-1",
|
|
63540
63597
|
data: {
|
|
63541
63598
|
account_id: null,
|
|
63542
63599
|
actionable: false,
|
|
@@ -63665,7 +63722,7 @@ var native_spec_default = {
|
|
|
63665
63722
|
example: {
|
|
63666
63723
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63667
63724
|
api_version: "v1",
|
|
63668
|
-
api_version_date: "2026-09-11",
|
|
63725
|
+
api_version_date: "2026-09-11-1",
|
|
63669
63726
|
data: {
|
|
63670
63727
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
63671
63728
|
download_url: "https://s3.amazonaws.com/uploads/exports/members-export.csv",
|
|
@@ -63786,7 +63843,7 @@ var native_spec_default = {
|
|
|
63786
63843
|
example: {
|
|
63787
63844
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63788
63845
|
api_version: "v1",
|
|
63789
|
-
api_version_date: "2026-09-11",
|
|
63846
|
+
api_version_date: "2026-09-11-1",
|
|
63790
63847
|
data: {
|
|
63791
63848
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
63792
63849
|
download_url: null,
|
|
@@ -63866,6 +63923,143 @@ var native_spec_default = {
|
|
|
63866
63923
|
tags: ["Exports"]
|
|
63867
63924
|
}
|
|
63868
63925
|
},
|
|
63926
|
+
"financial_activity.funds_available": {
|
|
63927
|
+
post: {
|
|
63928
|
+
description: "Sent when a settlement moves one release date's pending funds into the account's available balance \u2014 one event per release date that cleared, carrying that settlement's ledger line. Its posted_at is the release date at midnight UTC, the same value as settlement_time_at on every payment it clears\n\nRequired permissions:\n - `webhook_receive:financial_activity`",
|
|
63929
|
+
parameters: [
|
|
63930
|
+
{
|
|
63931
|
+
in: "header",
|
|
63932
|
+
name: "webhook-id",
|
|
63933
|
+
required: true,
|
|
63934
|
+
schema: {
|
|
63935
|
+
description: "A unique identifier for this webhook request",
|
|
63936
|
+
example: "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
|
|
63937
|
+
type: "string"
|
|
63938
|
+
}
|
|
63939
|
+
},
|
|
63940
|
+
{
|
|
63941
|
+
in: "header",
|
|
63942
|
+
name: "webhook-signature",
|
|
63943
|
+
required: true,
|
|
63944
|
+
schema: {
|
|
63945
|
+
description: "The signature of the webhook request with the webhook version prepended",
|
|
63946
|
+
example: "v1,BASE64ENCODEDSIGNATURE",
|
|
63947
|
+
type: "string"
|
|
63948
|
+
}
|
|
63949
|
+
},
|
|
63950
|
+
{
|
|
63951
|
+
in: "header",
|
|
63952
|
+
name: "webhook-timestamp",
|
|
63953
|
+
required: true,
|
|
63954
|
+
schema: {
|
|
63955
|
+
description: "The timestamp in seconds since the Unix epoch that the webhook was sent at on the server",
|
|
63956
|
+
example: "1727606400",
|
|
63957
|
+
type: "string"
|
|
63958
|
+
}
|
|
63959
|
+
}
|
|
63960
|
+
],
|
|
63961
|
+
requestBody: {
|
|
63962
|
+
content: {
|
|
63963
|
+
"application/json": {
|
|
63964
|
+
example: {
|
|
63965
|
+
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63966
|
+
api_version: "v1",
|
|
63967
|
+
api_version_date: "2026-09-11-1",
|
|
63968
|
+
data: {
|
|
63969
|
+
amount: "512345000000",
|
|
63970
|
+
available_at: "2026-01-01T12:00:00.000Z",
|
|
63971
|
+
currency: {
|
|
63972
|
+
code: "usd",
|
|
63973
|
+
precision: "100000000"
|
|
63974
|
+
},
|
|
63975
|
+
id: "line_7",
|
|
63976
|
+
line_type: "account_settlement",
|
|
63977
|
+
object: "ledger_activity",
|
|
63978
|
+
posted_at: "2026-01-02T12:00:00.000Z",
|
|
63979
|
+
resource: null,
|
|
63980
|
+
source: {
|
|
63981
|
+
id: "wallet_release_date_settlement|ldgr_xxxxxxxxxxxxxx|2026-01-01|usd",
|
|
63982
|
+
object: "settlement",
|
|
63983
|
+
release_date: "2026-01-01",
|
|
63984
|
+
settled_at: "2026-01-01T12:00:00.000Z"
|
|
63985
|
+
},
|
|
63986
|
+
usd_amount: "5123.45"
|
|
63987
|
+
},
|
|
63988
|
+
id: "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
|
|
63989
|
+
timestamp: "2025-01-01T00:00:00.000Z",
|
|
63990
|
+
type: "financial_activity.funds_available"
|
|
63991
|
+
},
|
|
63992
|
+
schema: {
|
|
63993
|
+
properties: {
|
|
63994
|
+
account_id: {
|
|
63995
|
+
description: "The account ID that this webhook event is associated with",
|
|
63996
|
+
example: "biz_xxxxxxxxxxxxxx",
|
|
63997
|
+
type: ["string", "null"]
|
|
63998
|
+
},
|
|
63999
|
+
api_version: {
|
|
64000
|
+
const: "v1",
|
|
64001
|
+
description: "The API version for this webhook",
|
|
64002
|
+
example: "v1",
|
|
64003
|
+
type: "string"
|
|
64004
|
+
},
|
|
64005
|
+
api_version_date: {
|
|
64006
|
+
description: "The dated API version (Api-Version-Date) the payload is serialized to",
|
|
64007
|
+
example: "2026-07-20",
|
|
64008
|
+
type: ["string", "null"]
|
|
64009
|
+
},
|
|
64010
|
+
data: {
|
|
64011
|
+
$ref: "#/components/schemas/LedgerActivity"
|
|
64012
|
+
},
|
|
64013
|
+
id: {
|
|
64014
|
+
description: "A unique ID for every single webhook request",
|
|
64015
|
+
example: "msg_xxxxxxxxxxxxxxxxxxxxxxxx",
|
|
64016
|
+
type: "string"
|
|
64017
|
+
},
|
|
64018
|
+
previous_attributes: {
|
|
64019
|
+
description: "For some `.updated` events, the old values of the payload fields that changed, keyed by field name. Omitted when no capture is available for the event",
|
|
64020
|
+
type: "object"
|
|
64021
|
+
},
|
|
64022
|
+
timestamp: {
|
|
64023
|
+
description: "The timestamp in ISO 8601 format that the webhook was sent at on the server",
|
|
64024
|
+
example: "2025-01-01T00:00:00.000Z",
|
|
64025
|
+
format: "date-time",
|
|
64026
|
+
type: "string"
|
|
64027
|
+
},
|
|
64028
|
+
type: {
|
|
64029
|
+
const: "financial_activity.funds_available",
|
|
64030
|
+
description: "The webhook event type",
|
|
64031
|
+
example: "financial_activity.funds_available",
|
|
64032
|
+
type: "string"
|
|
64033
|
+
}
|
|
64034
|
+
},
|
|
64035
|
+
required: [
|
|
64036
|
+
"id",
|
|
64037
|
+
"api_version",
|
|
64038
|
+
"api_version_date",
|
|
64039
|
+
"timestamp",
|
|
64040
|
+
"type",
|
|
64041
|
+
"data"
|
|
64042
|
+
],
|
|
64043
|
+
type: "object"
|
|
64044
|
+
}
|
|
64045
|
+
}
|
|
64046
|
+
}
|
|
64047
|
+
},
|
|
64048
|
+
responses: {
|
|
64049
|
+
"200": {
|
|
64050
|
+
description: "Return a 200 status to indicate that the data was received successfully"
|
|
64051
|
+
}
|
|
64052
|
+
},
|
|
64053
|
+
summary: "Financial Activity Funds available",
|
|
64054
|
+
tags: ["Ledgers"],
|
|
64055
|
+
"x-mint": {
|
|
64056
|
+
metadata: {
|
|
64057
|
+
title: "Financial Activity Funds Available",
|
|
64058
|
+
sidebarTitle: "Financial Activity Funds Available"
|
|
64059
|
+
}
|
|
64060
|
+
}
|
|
64061
|
+
}
|
|
64062
|
+
},
|
|
63869
64063
|
"identity_profile.updated": {
|
|
63870
64064
|
post: {
|
|
63871
64065
|
description: "Sent whenever an identity profile changes state \u2014 a verification is approved, needs action, or is rejected, or a Whop review opens or clears. Every other identity_profile event is also delivered as an identity_profile.updated, so you can subscribe to this single event and re-fetch the verification to read its current status.\n\nRequired permissions:\n - `identity:read`\n - `webhook_receive:identity_profiles`",
|
|
@@ -63907,7 +64101,7 @@ var native_spec_default = {
|
|
|
63907
64101
|
example: {
|
|
63908
64102
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
63909
64103
|
api_version: "v1",
|
|
63910
|
-
api_version_date: "2026-09-11",
|
|
64104
|
+
api_version_date: "2026-09-11-1",
|
|
63911
64105
|
data: {
|
|
63912
64106
|
id: "idpf_xxxxxxxxxxxxxx"
|
|
63913
64107
|
},
|
|
@@ -64028,7 +64222,7 @@ var native_spec_default = {
|
|
|
64028
64222
|
example: {
|
|
64029
64223
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64030
64224
|
api_version: "v1",
|
|
64031
|
-
api_version_date: "2026-09-11",
|
|
64225
|
+
api_version_date: "2026-09-11-1",
|
|
64032
64226
|
data: {
|
|
64033
64227
|
access_level: "customer",
|
|
64034
64228
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64158,7 +64352,7 @@ var native_spec_default = {
|
|
|
64158
64352
|
example: {
|
|
64159
64353
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64160
64354
|
api_version: "v1",
|
|
64161
|
-
api_version_date: "2026-09-11",
|
|
64355
|
+
api_version_date: "2026-09-11-1",
|
|
64162
64356
|
data: {
|
|
64163
64357
|
access_level: "customer",
|
|
64164
64358
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64288,7 +64482,7 @@ var native_spec_default = {
|
|
|
64288
64482
|
example: {
|
|
64289
64483
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64290
64484
|
api_version: "v1",
|
|
64291
|
-
api_version_date: "2026-09-11",
|
|
64485
|
+
api_version_date: "2026-09-11-1",
|
|
64292
64486
|
data: {
|
|
64293
64487
|
account: {
|
|
64294
64488
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64419,7 +64613,7 @@ var native_spec_default = {
|
|
|
64419
64613
|
example: {
|
|
64420
64614
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64421
64615
|
api_version: "v1",
|
|
64422
|
-
api_version_date: "2026-09-11",
|
|
64616
|
+
api_version_date: "2026-09-11-1",
|
|
64423
64617
|
data: {
|
|
64424
64618
|
account: {
|
|
64425
64619
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64556,7 +64750,7 @@ var native_spec_default = {
|
|
|
64556
64750
|
example: {
|
|
64557
64751
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64558
64752
|
api_version: "v1",
|
|
64559
|
-
api_version_date: "2026-09-11",
|
|
64753
|
+
api_version_date: "2026-09-11-1",
|
|
64560
64754
|
data: {
|
|
64561
64755
|
account: {
|
|
64562
64756
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64687,7 +64881,7 @@ var native_spec_default = {
|
|
|
64687
64881
|
example: {
|
|
64688
64882
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64689
64883
|
api_version: "v1",
|
|
64690
|
-
api_version_date: "2026-09-11",
|
|
64884
|
+
api_version_date: "2026-09-11-1",
|
|
64691
64885
|
data: {
|
|
64692
64886
|
account: {
|
|
64693
64887
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -64824,7 +65018,7 @@ var native_spec_default = {
|
|
|
64824
65018
|
example: {
|
|
64825
65019
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64826
65020
|
api_version: "v1",
|
|
64827
|
-
api_version_date: "2026-09-11",
|
|
65021
|
+
api_version_date: "2026-09-11-1",
|
|
64828
65022
|
data: {
|
|
64829
65023
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
64830
65024
|
amount_after_fees: {
|
|
@@ -65072,7 +65266,7 @@ var native_spec_default = {
|
|
|
65072
65266
|
example: {
|
|
65073
65267
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65074
65268
|
api_version: "v1",
|
|
65075
|
-
api_version_date: "2026-09-11",
|
|
65269
|
+
api_version_date: "2026-09-11-1",
|
|
65076
65270
|
data: {
|
|
65077
65271
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65078
65272
|
amount_after_fees: {
|
|
@@ -65320,7 +65514,7 @@ var native_spec_default = {
|
|
|
65320
65514
|
example: {
|
|
65321
65515
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65322
65516
|
api_version: "v1",
|
|
65323
|
-
api_version_date: "2026-09-11",
|
|
65517
|
+
api_version_date: "2026-09-11-1",
|
|
65324
65518
|
data: {
|
|
65325
65519
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65326
65520
|
amount_after_fees: {
|
|
@@ -65568,7 +65762,7 @@ var native_spec_default = {
|
|
|
65568
65762
|
example: {
|
|
65569
65763
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65570
65764
|
api_version: "v1",
|
|
65571
|
-
api_version_date: "2026-09-11",
|
|
65765
|
+
api_version_date: "2026-09-11-1",
|
|
65572
65766
|
data: {
|
|
65573
65767
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65574
65768
|
amount_after_fees: {
|
|
@@ -65816,7 +66010,7 @@ var native_spec_default = {
|
|
|
65816
66010
|
example: {
|
|
65817
66011
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65818
66012
|
api_version: "v1",
|
|
65819
|
-
api_version_date: "2026-09-11",
|
|
66013
|
+
api_version_date: "2026-09-11-1",
|
|
65820
66014
|
data: {
|
|
65821
66015
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
65822
66016
|
amount_after_fees: {
|
|
@@ -66060,7 +66254,7 @@ var native_spec_default = {
|
|
|
66060
66254
|
example: {
|
|
66061
66255
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
66062
66256
|
api_version: "v1",
|
|
66063
|
-
api_version_date: "2026-09-11",
|
|
66257
|
+
api_version_date: "2026-09-11-1",
|
|
66064
66258
|
data: {
|
|
66065
66259
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
66066
66260
|
amount_after_fees: {
|
|
@@ -66308,7 +66502,7 @@ var native_spec_default = {
|
|
|
66308
66502
|
example: {
|
|
66309
66503
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
66310
66504
|
api_version: "v1",
|
|
66311
|
-
api_version_date: "2026-09-11",
|
|
66505
|
+
api_version_date: "2026-09-11-1",
|
|
66312
66506
|
data: {
|
|
66313
66507
|
amount: "10.0",
|
|
66314
66508
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -66696,7 +66890,7 @@ var native_spec_default = {
|
|
|
66696
66890
|
example: {
|
|
66697
66891
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
66698
66892
|
api_version: "v1",
|
|
66699
|
-
api_version_date: "2026-09-11",
|
|
66893
|
+
api_version_date: "2026-09-11-1",
|
|
66700
66894
|
data: {
|
|
66701
66895
|
amount: "10.0",
|
|
66702
66896
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -67081,7 +67275,7 @@ var native_spec_default = {
|
|
|
67081
67275
|
example: {
|
|
67082
67276
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
67083
67277
|
api_version: "v1",
|
|
67084
|
-
api_version_date: "2026-09-11",
|
|
67278
|
+
api_version_date: "2026-09-11-1",
|
|
67085
67279
|
data: {
|
|
67086
67280
|
amount: "10.0",
|
|
67087
67281
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -67462,7 +67656,7 @@ var native_spec_default = {
|
|
|
67462
67656
|
example: {
|
|
67463
67657
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
67464
67658
|
api_version: "v1",
|
|
67465
|
-
api_version_date: "2026-09-11",
|
|
67659
|
+
api_version_date: "2026-09-11-1",
|
|
67466
67660
|
data: {
|
|
67467
67661
|
account_reference: "4483",
|
|
67468
67662
|
bank_verification_state: "no_data",
|
|
@@ -67916,7 +68110,7 @@ var native_spec_default = {
|
|
|
67916
68110
|
example: {
|
|
67917
68111
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
67918
68112
|
api_version: "v1",
|
|
67919
|
-
api_version_date: "2026-09-11",
|
|
68113
|
+
api_version_date: "2026-09-11-1",
|
|
67920
68114
|
data: {
|
|
67921
68115
|
account: {
|
|
67922
68116
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -68202,7 +68396,7 @@ var native_spec_default = {
|
|
|
68202
68396
|
example: {
|
|
68203
68397
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
68204
68398
|
api_version: "v1",
|
|
68205
|
-
api_version_date: "2026-09-11",
|
|
68399
|
+
api_version_date: "2026-09-11-1",
|
|
68206
68400
|
data: {
|
|
68207
68401
|
account: {
|
|
68208
68402
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -68488,7 +68682,7 @@ var native_spec_default = {
|
|
|
68488
68682
|
example: {
|
|
68489
68683
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
68490
68684
|
api_version: "v1",
|
|
68491
|
-
api_version_date: "2026-09-11",
|
|
68685
|
+
api_version_date: "2026-09-11-1",
|
|
68492
68686
|
data: {
|
|
68493
68687
|
account: {
|
|
68494
68688
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -68774,7 +68968,7 @@ var native_spec_default = {
|
|
|
68774
68968
|
example: {
|
|
68775
68969
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
68776
68970
|
api_version: "v1",
|
|
68777
|
-
api_version_date: "2026-09-11",
|
|
68971
|
+
api_version_date: "2026-09-11-1",
|
|
68778
68972
|
data: {
|
|
68779
68973
|
account: {
|
|
68780
68974
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -68923,7 +69117,7 @@ var native_spec_default = {
|
|
|
68923
69117
|
example: {
|
|
68924
69118
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
68925
69119
|
api_version: "v1",
|
|
68926
|
-
api_version_date: "2026-09-11",
|
|
69120
|
+
api_version_date: "2026-09-11-1",
|
|
68927
69121
|
data: {
|
|
68928
69122
|
account: {
|
|
68929
69123
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69072,7 +69266,7 @@ var native_spec_default = {
|
|
|
69072
69266
|
example: {
|
|
69073
69267
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69074
69268
|
api_version: "v1",
|
|
69075
|
-
api_version_date: "2026-09-11",
|
|
69269
|
+
api_version_date: "2026-09-11-1",
|
|
69076
69270
|
data: {
|
|
69077
69271
|
account: {
|
|
69078
69272
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69221,7 +69415,7 @@ var native_spec_default = {
|
|
|
69221
69415
|
example: {
|
|
69222
69416
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69223
69417
|
api_version: "v1",
|
|
69224
|
-
api_version_date: "2026-09-11",
|
|
69418
|
+
api_version_date: "2026-09-11-1",
|
|
69225
69419
|
data: {
|
|
69226
69420
|
account: {
|
|
69227
69421
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69370,7 +69564,7 @@ var native_spec_default = {
|
|
|
69370
69564
|
example: {
|
|
69371
69565
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69372
69566
|
api_version: "v1",
|
|
69373
|
-
api_version_date: "2026-09-11",
|
|
69567
|
+
api_version_date: "2026-09-11-1",
|
|
69374
69568
|
data: {
|
|
69375
69569
|
account: {
|
|
69376
69570
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69519,7 +69713,7 @@ var native_spec_default = {
|
|
|
69519
69713
|
example: {
|
|
69520
69714
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69521
69715
|
api_version: "v1",
|
|
69522
|
-
api_version_date: "2026-09-11",
|
|
69716
|
+
api_version_date: "2026-09-11-1",
|
|
69523
69717
|
data: {
|
|
69524
69718
|
account: {
|
|
69525
69719
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69677,7 +69871,7 @@ var native_spec_default = {
|
|
|
69677
69871
|
example: {
|
|
69678
69872
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69679
69873
|
api_version: "v1",
|
|
69680
|
-
api_version_date: "2026-09-11",
|
|
69874
|
+
api_version_date: "2026-09-11-1",
|
|
69681
69875
|
data: {
|
|
69682
69876
|
account: {
|
|
69683
69877
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69835,7 +70029,7 @@ var native_spec_default = {
|
|
|
69835
70029
|
example: {
|
|
69836
70030
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69837
70031
|
api_version: "v1",
|
|
69838
|
-
api_version_date: "2026-09-11",
|
|
70032
|
+
api_version_date: "2026-09-11-1",
|
|
69839
70033
|
data: {
|
|
69840
70034
|
account: {
|
|
69841
70035
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -69993,7 +70187,7 @@ var native_spec_default = {
|
|
|
69993
70187
|
example: {
|
|
69994
70188
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69995
70189
|
api_version: "v1",
|
|
69996
|
-
api_version_date: "2026-09-11",
|
|
70190
|
+
api_version_date: "2026-09-11-1",
|
|
69997
70191
|
data: {
|
|
69998
70192
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
69999
70193
|
carrier: "ups",
|
|
@@ -70116,7 +70310,7 @@ var native_spec_default = {
|
|
|
70116
70310
|
example: {
|
|
70117
70311
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
70118
70312
|
api_version: "v1",
|
|
70119
|
-
api_version_date: "2026-09-11",
|
|
70313
|
+
api_version_date: "2026-09-11-1",
|
|
70120
70314
|
data: {
|
|
70121
70315
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
70122
70316
|
carrier: "ups",
|
|
@@ -70239,7 +70433,7 @@ var native_spec_default = {
|
|
|
70239
70433
|
example: {
|
|
70240
70434
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
70241
70435
|
api_version: "v1",
|
|
70242
|
-
api_version_date: "2026-09-11",
|
|
70436
|
+
api_version_date: "2026-09-11-1",
|
|
70243
70437
|
data: {
|
|
70244
70438
|
account: {
|
|
70245
70439
|
id: "biz_xxxxxxxxxxxxxx",
|
|
@@ -70306,6 +70500,7 @@ var native_spec_default = {
|
|
|
70306
70500
|
claim_url: "https://whop.com/claim",
|
|
70307
70501
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
70308
70502
|
estimated_arrival: "2026-01-01T12:00:00.000Z",
|
|
70503
|
+
fee_kind: "swap",
|
|
70309
70504
|
from_amount: "502.51",
|
|
70310
70505
|
from_currency: "usdt",
|
|
70311
70506
|
id: "airdrp_xxxxxxxxxxxxxx",
|
|
@@ -70448,7 +70643,7 @@ var native_spec_default = {
|
|
|
70448
70643
|
example: {
|
|
70449
70644
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
70450
70645
|
api_version: "v1",
|
|
70451
|
-
api_version_date: "2026-09-11",
|
|
70646
|
+
api_version_date: "2026-09-11-1",
|
|
70452
70647
|
data: {
|
|
70453
70648
|
amount: 250,
|
|
70454
70649
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -70832,7 +71027,7 @@ var native_spec_default = {
|
|
|
70832
71027
|
example: {
|
|
70833
71028
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
70834
71029
|
api_version: "v1",
|
|
70835
|
-
api_version_date: "2026-09-11",
|
|
71030
|
+
api_version_date: "2026-09-11-1",
|
|
70836
71031
|
data: {
|
|
70837
71032
|
amount: 250,
|
|
70838
71033
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -71216,7 +71411,7 @@ var native_spec_default = {
|
|
|
71216
71411
|
example: {
|
|
71217
71412
|
account_id: "biz_xxxxxxxxxxxxxx",
|
|
71218
71413
|
api_version: "v1",
|
|
71219
|
-
api_version_date: "2026-09-11",
|
|
71414
|
+
api_version_date: "2026-09-11-1",
|
|
71220
71415
|
data: {
|
|
71221
71416
|
amount: 10,
|
|
71222
71417
|
created_at: "2026-01-01T12:00:00.000Z",
|
|
@@ -71566,7 +71761,7 @@ var native_spec_default = {
|
|
|
71566
71761
|
name: "Api-Version-Date",
|
|
71567
71762
|
required: false,
|
|
71568
71763
|
schema: {
|
|
71569
|
-
example: "2026-09-11",
|
|
71764
|
+
example: "2026-09-11-1",
|
|
71570
71765
|
type: "string"
|
|
71571
71766
|
}
|
|
71572
71767
|
},
|
|
@@ -75760,9 +75955,10 @@ var native_spec_default = {
|
|
|
75760
75955
|
"2026-09-06",
|
|
75761
75956
|
"2026-09-09",
|
|
75762
75957
|
"2026-09-09-1",
|
|
75763
|
-
"2026-09-11"
|
|
75958
|
+
"2026-09-11",
|
|
75959
|
+
"2026-09-11-1"
|
|
75764
75960
|
],
|
|
75765
|
-
example: "2026-09-11",
|
|
75961
|
+
example: "2026-09-11-1",
|
|
75766
75962
|
type: "string"
|
|
75767
75963
|
},
|
|
75768
75964
|
created_at: {
|
|
@@ -79679,38 +79875,11 @@ var native_spec_default = {
|
|
|
79679
79875
|
example: "2026-01-01T12:00:00.000Z",
|
|
79680
79876
|
type: ["string", "null"]
|
|
79681
79877
|
},
|
|
79682
|
-
execution_type: {
|
|
79683
|
-
description: "How the card runs. `whop_ai` means `prompt` is sent to Whop AI, which carries out every step.",
|
|
79684
|
-
enum: ["whop_ai"],
|
|
79685
|
-
example: "whop_ai",
|
|
79686
|
-
type: "string"
|
|
79687
|
-
},
|
|
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
79878
|
id: {
|
|
79705
79879
|
description: "Economic intelligence ID, prefixed `reca_`",
|
|
79706
79880
|
example: "reca_xxxxxxxxxxxxxx",
|
|
79707
79881
|
type: "string"
|
|
79708
79882
|
},
|
|
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
79883
|
input: {
|
|
79715
79884
|
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
79885
|
example: "more sales from ads",
|
|
@@ -79753,15 +79922,11 @@ var native_spec_default = {
|
|
|
79753
79922
|
"id",
|
|
79754
79923
|
"account_id",
|
|
79755
79924
|
"action_type",
|
|
79756
|
-
"execution_type",
|
|
79757
79925
|
"title",
|
|
79758
79926
|
"prompt",
|
|
79759
79927
|
"reasoning",
|
|
79760
79928
|
"input",
|
|
79761
|
-
"inference_version",
|
|
79762
79929
|
"status",
|
|
79763
|
-
"expected_ledger_line",
|
|
79764
|
-
"expected_delta",
|
|
79765
79930
|
"executed_at",
|
|
79766
79931
|
"superseded_at",
|
|
79767
79932
|
"created_at"
|
|
@@ -80448,6 +80613,7 @@ var native_spec_default = {
|
|
|
80448
80613
|
line_type: {
|
|
80449
80614
|
description: "The ledger line category this activity was posted under.",
|
|
80450
80615
|
enum: [
|
|
80616
|
+
"account_settlement",
|
|
80451
80617
|
"ad_budget_release",
|
|
80452
80618
|
"ad_campaign_budget",
|
|
80453
80619
|
"ad_publisher_payout",
|
|
@@ -81173,7 +81339,7 @@ var native_spec_default = {
|
|
|
81173
81339
|
},
|
|
81174
81340
|
source: {
|
|
81175
81341
|
additionalProperties: true,
|
|
81176
|
-
description: "Source of this ledger activity.",
|
|
81342
|
+
description: "Source of this ledger activity. Platform markup fees use object platform_fee and the ledger activity ID.",
|
|
81177
81343
|
properties: {
|
|
81178
81344
|
amount_float: {
|
|
81179
81345
|
description: "Payout amount as a decimal number in the destination currency (payout sources only; requires payout:withdrawal:read).",
|
|
@@ -81206,6 +81372,19 @@ var native_spec_default = {
|
|
|
81206
81372
|
format: "date-time",
|
|
81207
81373
|
type: ["string", "null"]
|
|
81208
81374
|
},
|
|
81375
|
+
fee_kind: {
|
|
81376
|
+
description: "Action that generated a platform markup fee: deposit, swap, transfer, card_spend, or payout. Present for platform_markup_fee and platform_markup_fee_payout, including when include_resource is false. Null when the originating action is unavailable; omitted on other source types.",
|
|
81377
|
+
enum: [
|
|
81378
|
+
"payout",
|
|
81379
|
+
"transfer",
|
|
81380
|
+
"deposit",
|
|
81381
|
+
"swap",
|
|
81382
|
+
"card_spend",
|
|
81383
|
+
null
|
|
81384
|
+
],
|
|
81385
|
+
example: "swap",
|
|
81386
|
+
type: ["string", "null"]
|
|
81387
|
+
},
|
|
81209
81388
|
from_amount: {
|
|
81210
81389
|
description: "Amount converted out of from_currency as a decimal string (swap sources only).",
|
|
81211
81390
|
example: "502.51",
|
|
@@ -82521,7 +82700,7 @@ var native_spec_default = {
|
|
|
82521
82700
|
type: ["string", "null"]
|
|
82522
82701
|
},
|
|
82523
82702
|
recovery_url: {
|
|
82524
|
-
description: "Whop-hosted URL where the buyer can sign in and complete 3D Secure for a
|
|
82703
|
+
description: "Whop-hosted URL where the buyer can sign in and complete 3D Secure for an off-session charge the bank challenged \u2014 a subscription renewal or a saved-card payment. Null when recovery is unavailable, you lack `member:basic:read`, or in list responses. Retrieve the payment for it.",
|
|
82525
82704
|
type: ["string", "null"]
|
|
82526
82705
|
},
|
|
82527
82706
|
refundable: {
|
|
@@ -82558,7 +82737,7 @@ var native_spec_default = {
|
|
|
82558
82737
|
type: ["object", "null"]
|
|
82559
82738
|
},
|
|
82560
82739
|
settlement_time_at: {
|
|
82561
|
-
description: "When the funds post to the account's available balance, at midnight UTC. The `
|
|
82740
|
+
description: "When the funds post to the account's available balance, at midnight UTC. The `financial_activity.funds_available` webhook's `posted_at` carries the same value when the settlement that clears it posts. Null until the payment is paid, and always null in list responses \u2014 retrieve the payment for it.",
|
|
82562
82741
|
type: ["string", "null"]
|
|
82563
82742
|
},
|
|
82564
82743
|
shipment_id: {
|
|
@@ -82820,10 +82999,14 @@ var native_spec_default = {
|
|
|
82820
82999
|
type: "string"
|
|
82821
83000
|
},
|
|
82822
83001
|
bank_code: {
|
|
82823
|
-
description: "The receiving bank
|
|
83002
|
+
description: "The code that identifies the receiving bank \u2014 its code in the local clearing system, or its SWIFT/BIC on a transfer that crosses borders.",
|
|
82824
83003
|
example: "684",
|
|
82825
83004
|
type: "string"
|
|
82826
83005
|
},
|
|
83006
|
+
bank_code_label: {
|
|
83007
|
+
description: "What to call `bank_code` when showing it, in the scheme's own terms \u2014 `SWIFT / BIC` on an international wire, for example.",
|
|
83008
|
+
type: "string"
|
|
83009
|
+
},
|
|
82827
83010
|
bank_name: {
|
|
82828
83011
|
description: "The receiving bank's name.",
|
|
82829
83012
|
example: "Frost Bank",
|
|
@@ -84271,6 +84454,7 @@ var native_spec_default = {
|
|
|
84271
84454
|
"webhook_receive:ledger_accounts",
|
|
84272
84455
|
"webhook_receive:accounts",
|
|
84273
84456
|
"webhook_receive:deposits",
|
|
84457
|
+
"webhook_receive:financial_activity",
|
|
84274
84458
|
"webhook_receive:transfers",
|
|
84275
84459
|
"webhook_receive:card_transactions",
|
|
84276
84460
|
"webhook_receive:cards",
|
|
@@ -84536,6 +84720,7 @@ var native_spec_default = {
|
|
|
84536
84720
|
"WebhookReceiveLedgerAccounts",
|
|
84537
84721
|
"WebhookReceiveAccounts",
|
|
84538
84722
|
"WebhookReceiveDeposits",
|
|
84723
|
+
"WebhookReceiveFinancialActivity",
|
|
84539
84724
|
"WebhookReceiveTransfers",
|
|
84540
84725
|
"WebhookReceiveCardTransactions",
|
|
84541
84726
|
"WebhookReceiveCards",
|
|
@@ -85612,7 +85797,7 @@ var native_spec_default = {
|
|
|
85612
85797
|
},
|
|
85613
85798
|
description: {
|
|
85614
85799
|
description: "Written description displayed on the product page. `null` if none is set.",
|
|
85615
|
-
example: "
|
|
85800
|
+
example: "aggregate 24/7 ROI",
|
|
85616
85801
|
type: ["string", "null"]
|
|
85617
85802
|
},
|
|
85618
85803
|
external_identifier: {
|
|
@@ -85629,7 +85814,7 @@ var native_spec_default = {
|
|
|
85629
85814
|
},
|
|
85630
85815
|
headline: {
|
|
85631
85816
|
description: "Short marketing headline displayed on product page.",
|
|
85632
|
-
example: "
|
|
85817
|
+
example: "SWAG",
|
|
85633
85818
|
type: ["string", "null"]
|
|
85634
85819
|
},
|
|
85635
85820
|
id: {
|
|
@@ -88321,7 +88506,7 @@ var native_spec_default = {
|
|
|
88321
88506
|
},
|
|
88322
88507
|
api_version_date: {
|
|
88323
88508
|
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-
|
|
88509
|
+
example: "2026-09-11-1",
|
|
88325
88510
|
type: ["string", "null"]
|
|
88326
88511
|
},
|
|
88327
88512
|
child_resource_events: {
|
|
@@ -88382,6 +88567,7 @@ var native_spec_default = {
|
|
|
88382
88567
|
"ledger_account.funds_available",
|
|
88383
88568
|
"swap.completed",
|
|
88384
88569
|
"deposit.succeeded",
|
|
88570
|
+
"financial_activity.funds_available",
|
|
88385
88571
|
"transfer.created",
|
|
88386
88572
|
"transfer.completed",
|
|
88387
88573
|
"transfer.failed",
|
|
@@ -88512,6 +88698,7 @@ var native_spec_default = {
|
|
|
88512
88698
|
"ledger_account.funds_available",
|
|
88513
88699
|
"swap.completed",
|
|
88514
88700
|
"deposit.succeeded",
|
|
88701
|
+
"financial_activity.funds_available",
|
|
88515
88702
|
"transfer.created",
|
|
88516
88703
|
"transfer.completed",
|
|
88517
88704
|
"transfer.failed",
|
|
@@ -88711,7 +88898,7 @@ var native_spec_default = {
|
|
|
88711
88898
|
},
|
|
88712
88899
|
api_version_date: {
|
|
88713
88900
|
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-
|
|
88901
|
+
example: "2026-09-11-1",
|
|
88715
88902
|
type: ["string", "null"]
|
|
88716
88903
|
},
|
|
88717
88904
|
child_resource_events: {
|
|
@@ -88772,6 +88959,7 @@ var native_spec_default = {
|
|
|
88772
88959
|
"ledger_account.funds_available",
|
|
88773
88960
|
"swap.completed",
|
|
88774
88961
|
"deposit.succeeded",
|
|
88962
|
+
"financial_activity.funds_available",
|
|
88775
88963
|
"transfer.created",
|
|
88776
88964
|
"transfer.completed",
|
|
88777
88965
|
"transfer.failed",
|
|
@@ -88931,7 +89119,7 @@ var apps_spec_default = {
|
|
|
88931
89119
|
termsOfService: "https://whop.com/tos-developer-api/",
|
|
88932
89120
|
title: "Whop API",
|
|
88933
89121
|
version: "1.0.0",
|
|
88934
|
-
"x-api-version-date": "2026-09-11"
|
|
89122
|
+
"x-api-version-date": "2026-09-11-1"
|
|
88935
89123
|
},
|
|
88936
89124
|
paths: {
|
|
88937
89125
|
"/app_builds": {
|
|
@@ -91246,7 +91434,7 @@ var apps_spec_default = {
|
|
|
91246
91434
|
name: "Api-Version-Date",
|
|
91247
91435
|
required: false,
|
|
91248
91436
|
schema: {
|
|
91249
|
-
example: "2026-09-11",
|
|
91437
|
+
example: "2026-09-11-1",
|
|
91250
91438
|
type: "string"
|
|
91251
91439
|
}
|
|
91252
91440
|
},
|
|
@@ -91325,7 +91513,7 @@ var files_spec_default = {
|
|
|
91325
91513
|
termsOfService: "https://whop.com/tos-developer-api/",
|
|
91326
91514
|
title: "Whop API",
|
|
91327
91515
|
version: "1.0.0",
|
|
91328
|
-
"x-api-version-date": "2026-09-11"
|
|
91516
|
+
"x-api-version-date": "2026-09-11-1"
|
|
91329
91517
|
},
|
|
91330
91518
|
paths: {
|
|
91331
91519
|
"/files": {
|
|
@@ -91864,7 +92052,7 @@ var files_spec_default = {
|
|
|
91864
92052
|
name: "Api-Version-Date",
|
|
91865
92053
|
required: false,
|
|
91866
92054
|
schema: {
|
|
91867
|
-
example: "2026-09-11",
|
|
92055
|
+
example: "2026-09-11-1",
|
|
91868
92056
|
type: "string"
|
|
91869
92057
|
}
|
|
91870
92058
|
},
|
|
@@ -92005,7 +92193,7 @@ async function announceActionUrl(url, {
|
|
|
92005
92193
|
// package.json
|
|
92006
92194
|
var package_default = {
|
|
92007
92195
|
name: "@whop/cli",
|
|
92008
|
-
version: "0.
|
|
92196
|
+
version: "0.18.0",
|
|
92009
92197
|
description: "The Whop CLI \u2014 build and manage Whop apps from your terminal. Human and agent friendly.",
|
|
92010
92198
|
keywords: [
|
|
92011
92199
|
"agent",
|
|
@@ -93863,6 +94051,55 @@ function safeParse(text4) {
|
|
|
93863
94051
|
}
|
|
93864
94052
|
}
|
|
93865
94053
|
|
|
94054
|
+
// src/feedback.ts
|
|
94055
|
+
var feedbackOptions = external_exports.object({
|
|
94056
|
+
account_id: external_exports.string().regex(/^biz_[A-Za-z0-9]+$/).max(255).optional().describe(
|
|
94057
|
+
"Account ID (biz_...) for the affected resource. Defaults to your active account when available."
|
|
94058
|
+
),
|
|
94059
|
+
content: external_exports.string().trim().min(1).max(12e3).describe(
|
|
94060
|
+
"Describe the problem or unanswered question and relevant context. Remove credentials, personal data, and payment details."
|
|
94061
|
+
)
|
|
94062
|
+
});
|
|
94063
|
+
var receipt = external_exports.object({ id: external_exports.string().startsWith("fbk_") });
|
|
94064
|
+
var whopFetch2 = createWhopFetch();
|
|
94065
|
+
function buildFeedbackCommand(kind) {
|
|
94066
|
+
return {
|
|
94067
|
+
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.",
|
|
94068
|
+
hint: "Use a user credential from `whop login` (browser OAuth). Submit one real observation per call.",
|
|
94069
|
+
options: feedbackOptions,
|
|
94070
|
+
output: external_exports.object({
|
|
94071
|
+
submission_id: external_exports.string(),
|
|
94072
|
+
status: external_exports.literal("submitted"),
|
|
94073
|
+
message: external_exports.string()
|
|
94074
|
+
}),
|
|
94075
|
+
async run({ options }) {
|
|
94076
|
+
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]");
|
|
94077
|
+
const response = await whopFetch2(
|
|
94078
|
+
new Request("https://whop.invalid/feedback_submissions", {
|
|
94079
|
+
method: "POST",
|
|
94080
|
+
headers: {
|
|
94081
|
+
"Content-Type": "application/json",
|
|
94082
|
+
"Idempotency-Key": crypto.randomUUID()
|
|
94083
|
+
},
|
|
94084
|
+
body: JSON.stringify({
|
|
94085
|
+
source: `cli_${kind}`,
|
|
94086
|
+
content,
|
|
94087
|
+
account_id: options.account_id ?? await resolveActiveAccountId()
|
|
94088
|
+
})
|
|
94089
|
+
})
|
|
94090
|
+
);
|
|
94091
|
+
if (!response.ok) throw await responseError(response);
|
|
94092
|
+
const saved = receipt.safeParse(await response.json());
|
|
94093
|
+
if (!saved.success) throw new Error("Invalid feedback receipt");
|
|
94094
|
+
return {
|
|
94095
|
+
submission_id: saved.data.id,
|
|
94096
|
+
status: "submitted",
|
|
94097
|
+
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."
|
|
94098
|
+
};
|
|
94099
|
+
}
|
|
94100
|
+
};
|
|
94101
|
+
}
|
|
94102
|
+
|
|
93866
94103
|
// src/api/groups.json
|
|
93867
94104
|
var groups_default = [
|
|
93868
94105
|
{
|
|
@@ -97957,13 +98194,13 @@ function buildAuthGroup() {
|
|
|
97957
98194
|
// src/media/commands.ts
|
|
97958
98195
|
import { spinner as spinner5 } from "@clack/prompts";
|
|
97959
98196
|
var POLL_INTERVAL_MS = 3e3;
|
|
97960
|
-
var
|
|
98197
|
+
var whopFetch3 = createWhopFetch();
|
|
97961
98198
|
async function buildMediaGroup(description) {
|
|
97962
98199
|
const media = Cli_exports.create("media", { description });
|
|
97963
98200
|
const spec2 = filterSpecByTag(native_spec_default, "Media");
|
|
97964
98201
|
const generated = await Openapi_exports.generateCommands(
|
|
97965
98202
|
spec2,
|
|
97966
|
-
|
|
98203
|
+
whopFetch3,
|
|
97967
98204
|
{ config: { security: false } }
|
|
97968
98205
|
);
|
|
97969
98206
|
const getEntry = generated.get("get");
|
|
@@ -99305,6 +99542,8 @@ cli.command("quickstart", {
|
|
|
99305
99542
|
outputPolicy: "agent-only",
|
|
99306
99543
|
run: (c2) => runQuickstart(c2)
|
|
99307
99544
|
});
|
|
99545
|
+
cli.command("report-feedback", buildFeedbackCommand("report_feedback"));
|
|
99546
|
+
cli.command("ask-question", buildFeedbackCommand("ask_question"));
|
|
99308
99547
|
cli.command(await buildAppGroup());
|
|
99309
99548
|
cli.command("files", {
|
|
99310
99549
|
description: "Create file uploads and retrieve uploaded file details.",
|
|
@@ -99381,6 +99620,14 @@ var AUTH_SECTION = {
|
|
|
99381
99620
|
var DEVELOPER_LABEL = "Developer";
|
|
99382
99621
|
var EXTRA_SECTION_COMMANDS = {
|
|
99383
99622
|
[DEVELOPER_LABEL]: [
|
|
99623
|
+
{
|
|
99624
|
+
name: "report-feedback",
|
|
99625
|
+
description: "Report a Whop problem for internal review"
|
|
99626
|
+
},
|
|
99627
|
+
{
|
|
99628
|
+
name: "ask-question",
|
|
99629
|
+
description: "Record an unanswered Whop question for internal review"
|
|
99630
|
+
},
|
|
99384
99631
|
{
|
|
99385
99632
|
name: "files",
|
|
99386
99633
|
description: "Create file uploads and retrieve uploaded file details"
|