Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a9cfc7
feat(api): api update
stainless-app[bot] Jan 9, 2026
ea9feac
chore: move `cgi` into dependencies for ruby 4
stainless-app[bot] Jan 9, 2026
54634cf
feat(api): api update
stainless-app[bot] Jan 10, 2026
49ad3d2
feat(api): api update
stainless-app[bot] Jan 12, 2026
7aab597
feat(api): api update
stainless-app[bot] Jan 13, 2026
555ee4d
feat(api): api update
stainless-app[bot] Jan 13, 2026
cb282a1
feat(api): api update
stainless-app[bot] Jan 13, 2026
652a0be
feat(api): api update
stainless-app[bot] Jan 15, 2026
71ef795
feat(api): api update
stainless-app[bot] Jan 16, 2026
c9daa39
feat(api): api update
stainless-app[bot] Jan 16, 2026
c27b1b0
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 16, 2026
4cafc17
feat(api): api update
stainless-app[bot] Jan 16, 2026
89df280
feat(api): api update
stainless-app[bot] Jan 17, 2026
dc41323
feat(api): api update
stainless-app[bot] Jan 19, 2026
d249eca
feat(api): api update
stainless-app[bot] Jan 19, 2026
c26ce69
feat(api): api update
stainless-app[bot] Jan 20, 2026
2cf1fad
feat(api): api update
stainless-app[bot] Jan 20, 2026
72ec1cb
feat(api): api update
stainless-app[bot] Jan 21, 2026
903a063
feat(api): api update
stainless-app[bot] Jan 21, 2026
575a5ca
feat(api): api update
stainless-app[bot] Jan 21, 2026
56c5958
feat(api): api update
stainless-app[bot] Jan 21, 2026
eb5a237
codegen metadata
stainless-app[bot] Jan 22, 2026
8c45d4d
feat(api): api update
stainless-app[bot] Jan 22, 2026
3f8895d
feat(api): api update
stainless-app[bot] Jan 23, 2026
6c8fffb
release: 0.1.0
stainless-app[bot] Jan 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/whopsdk-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: github.repository == 'whopio/whopsdk-ruby' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Check release environment
run: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.23"
".": "0.1.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 149
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-54c90c246d009f9f497b45992768d2a85ad7213629fa4910f25acd54fe226559.yml
openapi_spec_hash: 4b8eac0f1a57239c285b065fa2397a51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/frostedinc%2Fwhopsdk-c2ec7a86a71bec3d7b44bd29c8fd46b809794df3e92a39e20e4d43aed65c7725.yml
openapi_spec_hash: c1729209a70aa843c9100053913fe2a0
config_hash: d4f8c855179a930e9297fbd41adfb4f1
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
# Changelog

## 0.1.0 (2026-01-23)

Full Changelog: [v0.0.23...v0.1.0](https://github.com/whopio/whopsdk-ruby/compare/v0.0.23...v0.1.0)

### Features

* **api:** api update ([3f8895d](https://github.com/whopio/whopsdk-ruby/commit/3f8895d21e7f848239d7d5237dfe03c1c9bb40a5))
* **api:** api update ([8c45d4d](https://github.com/whopio/whopsdk-ruby/commit/8c45d4dac11f2e932e5eb0f5c1332539256f6f64))
* **api:** api update ([56c5958](https://github.com/whopio/whopsdk-ruby/commit/56c59586b405691fbb2c2673df015a6c4c6bac77))
* **api:** api update ([575a5ca](https://github.com/whopio/whopsdk-ruby/commit/575a5ca14f1a3e9feb9203f2a51bc39bc8cfe149))
* **api:** api update ([903a063](https://github.com/whopio/whopsdk-ruby/commit/903a0634fd7f585eee51454982dc27a08a0f0948))
* **api:** api update ([72ec1cb](https://github.com/whopio/whopsdk-ruby/commit/72ec1cbe453d7cc8342d2996216780493833e4da))
* **api:** api update ([2cf1fad](https://github.com/whopio/whopsdk-ruby/commit/2cf1fadbece71a34040e07c4323de0b4884cedc5))
* **api:** api update ([c26ce69](https://github.com/whopio/whopsdk-ruby/commit/c26ce69644916463ef0a386090ef1e592f2ac07f))
* **api:** api update ([d249eca](https://github.com/whopio/whopsdk-ruby/commit/d249eca80ddf15dee5653c08e3beef0835d41738))
* **api:** api update ([dc41323](https://github.com/whopio/whopsdk-ruby/commit/dc4132327cf3e40421bf9f3caeb62323ec0d1ab2))
* **api:** api update ([89df280](https://github.com/whopio/whopsdk-ruby/commit/89df280a85ad325ba5dd06ffffe7f5810590e92f))
* **api:** api update ([4cafc17](https://github.com/whopio/whopsdk-ruby/commit/4cafc1725f1047d564d1560ce959b20bf5493aa2))
* **api:** api update ([c9daa39](https://github.com/whopio/whopsdk-ruby/commit/c9daa39be528817b477fca8a6b460a31a39504e8))
* **api:** api update ([71ef795](https://github.com/whopio/whopsdk-ruby/commit/71ef7957231d741348eeb7f10e42304a6f4e9ffb))
* **api:** api update ([652a0be](https://github.com/whopio/whopsdk-ruby/commit/652a0bedb7dd68fd8e765228bbe9d251bf7c9f19))
* **api:** api update ([cb282a1](https://github.com/whopio/whopsdk-ruby/commit/cb282a111add351df6dfa3fec0fb8a428344f9bf))
* **api:** api update ([555ee4d](https://github.com/whopio/whopsdk-ruby/commit/555ee4d29583437178d523cead08eefb6690e178))
* **api:** api update ([7aab597](https://github.com/whopio/whopsdk-ruby/commit/7aab597e000981c1cb8a3048b429fd68b075cc21))
* **api:** api update ([49ad3d2](https://github.com/whopio/whopsdk-ruby/commit/49ad3d22688f431ccc5b327dd84b583591905300))
* **api:** api update ([54634cf](https://github.com/whopio/whopsdk-ruby/commit/54634cf5c996c93e3c39ce69dcc646fedbceb473))
* **api:** api update ([8a9cfc7](https://github.com/whopio/whopsdk-ruby/commit/8a9cfc7e1dc415b22d57e509b9227b0d60c88f9d))


### Chores

* **internal:** update `actions/checkout` version ([c27b1b0](https://github.com/whopio/whopsdk-ruby/commit/c27b1b08d527e42f390dd61d00716f12095b8026))
* move `cgi` into dependencies for ruby 4 ([ea9feac](https://github.com/whopio/whopsdk-ruby/commit/ea9feac06b6b5b7e217cc62207993c5132348add))

## 0.0.23 (2026-01-09)

Full Changelog: [v0.0.22...v0.0.23](https://github.com/whopio/whopsdk-ruby/compare/v0.0.22...v0.0.23)
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ GIT
PATH
remote: .
specs:
whop_sdk (0.0.23)
whop_sdk (0.1.0)
cgi
connection_pool
jwt
openssl
Expand Down Expand Up @@ -44,6 +45,7 @@ GEM
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (3.3.1)
cgi (0.5.1)
concurrent-ruby (1.3.5)
connection_pool (2.5.4)
console (1.34.2)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "whop_sdk", "~> 0.0.23"
gem "whop_sdk", "~> 0.1.0"
```

<!-- x-release-please-end -->
Expand Down
1 change: 0 additions & 1 deletion lib/whop_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@
require_relative "whop_sdk/models/withdrawal_retrieve_response"
require_relative "whop_sdk/models/withdrawal_speeds"
require_relative "whop_sdk/models/withdrawal_status"
require_relative "whop_sdk/models/withdrawal_types"
require_relative "whop_sdk/models/withdrawal_updated_webhook_event"
require_relative "whop_sdk/models"
require_relative "whop_sdk/resources/access_tokens"
Expand Down
2 changes: 0 additions & 2 deletions lib/whop_sdk/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,5 @@ module WhopSDK

WithdrawalStatus = WhopSDK::Models::WithdrawalStatus

WithdrawalTypes = WhopSDK::Models::WithdrawalTypes

WithdrawalUpdatedWebhookEvent = WhopSDK::Models::WithdrawalUpdatedWebhookEvent
end
71 changes: 16 additions & 55 deletions lib/whop_sdk/models/app_build_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class AppBuildCreateParams < WhopSDK::Internal::Type::BaseModel
# format. The zip should contain at least one main_js_bundle.hbc file and
# optionally an assets folder next to it.
#
# @return [WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID]
required :attachment, union: -> { WhopSDK::AppBuildCreateParams::Attachment }
# @return [WhopSDK::Models::AppBuildCreateParams::Attachment]
required :attachment, -> { WhopSDK::AppBuildCreateParams::Attachment }

# @!attribute checksum
# Checksum of the app build file. This is generated by the client and used to
Expand Down Expand Up @@ -55,7 +55,7 @@ class AppBuildCreateParams < WhopSDK::Internal::Type::BaseModel
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AppBuildCreateParams} for more details.
#
# @param attachment [WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID] Attachment input for the app build file. This should be an upload in .zip format
# @param attachment [WhopSDK::Models::AppBuildCreateParams::Attachment] Attachment input for the app build file. This should be an upload in .zip format
#
# @param checksum [String] Checksum of the app build file. This is generated by the client and used to veri
#
Expand All @@ -69,58 +69,19 @@ class AppBuildCreateParams < WhopSDK::Internal::Type::BaseModel
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]

# Attachment input for the app build file. This should be an upload in .zip
# format. The zip should contain at least one main_js_bundle.hbc file and
# optionally an assets folder next to it.
module Attachment
extend WhopSDK::Internal::Type::Union

# Input for an attachment
variant -> { WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID }

# Input for an attachment
variant -> { WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithID }

class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
# @!attribute direct_upload_id
# This ID should be used the first time you upload an attachment. It is the ID of
# the direct upload that was created when uploading the file to S3 via the
# mediaDirectUpload mutation.
#
# @return [String]
required :direct_upload_id, String

# @!method initialize(direct_upload_id:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID}
# for more details.
#
# Input for an attachment
#
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
end

class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The ID of an existing attachment object. Use this when updating a resource and
# keeping a subset of the attachments. Don't use this unless you know what you're
# doing.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID} for
# more details.
#
# Input for an attachment
#
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
end

# @!method self.variants
# @return [Array(WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID)]
class Attachment < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The ID of an existing file object.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# Attachment input for the app build file. This should be an upload in .zip
# format. The zip should contain at least one main_js_bundle.hbc file and
# optionally an assets folder next to it.
#
# @param id [String] The ID of an existing file object.
end
end
end
Expand Down
23 changes: 22 additions & 1 deletion lib/whop_sdk/models/app_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,35 @@ class AppCreateParams < WhopSDK::Internal::Type::BaseModel
# @return [String, nil]
optional :base_url, String, nil?: true

# @!method initialize(company_id:, name:, base_url: nil, request_options: {})
# @!attribute icon
# The icon for the app in png, jpeg, or gif format
#
# @return [WhopSDK::Models::AppCreateParams::Icon, nil]
optional :icon, -> { WhopSDK::AppCreateParams::Icon }, nil?: true

# @!method initialize(company_id:, name:, base_url: nil, icon: nil, request_options: {})
# @param company_id [String] The ID of the company to create the app for
#
# @param name [String] The name of the app to be created
#
# @param base_url [String, nil] The base URL of the app to be created
#
# @param icon [WhopSDK::Models::AppCreateParams::Icon, nil] The icon for the app in png, jpeg, or gif format
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]

class Icon < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The ID of an existing file object.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# The icon for the app in png, jpeg, or gif format
#
# @param id [String] The ID of an existing file object.
end
end
end
end
5 changes: 5 additions & 0 deletions lib/whop_sdk/models/app_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ module Order
TIME_SPENT = :time_spent
TIME_SPENT_LAST_24_HOURS = :time_spent_last_24_hours
DAILY_ACTIVE_USERS = :daily_active_users
AI_PROMPT_COUNT = :ai_prompt_count
TOTAL_AI_COST_USD = :total_ai_cost_usd
TOTAL_AI_TOKENS = :total_ai_tokens
LAST_AI_PROMPT_AT = :last_ai_prompt_at
AI_AVERAGE_RATING = :ai_average_rating

# @!method self.values
# @return [Array<Symbol>]
Expand Down
67 changes: 14 additions & 53 deletions lib/whop_sdk/models/app_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class AppUpdateParams < WhopSDK::Internal::Type::BaseModel
# @!attribute icon
# The icon for the app
#
# @return [WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID, nil]
optional :icon, union: -> { WhopSDK::AppUpdateParams::Icon }, nil?: true
# @return [WhopSDK::Models::AppUpdateParams::Icon, nil]
optional :icon, -> { WhopSDK::AppUpdateParams::Icon }, nil?: true

# @!attribute name
# The name of the app
Expand Down Expand Up @@ -90,7 +90,7 @@ class AppUpdateParams < WhopSDK::Internal::Type::BaseModel
#
# @param experience_path [String, nil] The path for the hub view of the app
#
# @param icon [WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID, nil] The icon for the app
# @param icon [WhopSDK::Models::AppUpdateParams::Icon, nil] The icon for the app
#
# @param name [String, nil] The name of the app
#
Expand All @@ -100,56 +100,17 @@ class AppUpdateParams < WhopSDK::Internal::Type::BaseModel
#
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]

# The icon for the app
module Icon
extend WhopSDK::Internal::Type::Union

# Input for an attachment
variant -> { WhopSDK::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID }

# Input for an attachment
variant -> { WhopSDK::AppUpdateParams::Icon::AttachmentInputWithID }

class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
# @!attribute direct_upload_id
# This ID should be used the first time you upload an attachment. It is the ID of
# the direct upload that was created when uploading the file to S3 via the
# mediaDirectUpload mutation.
#
# @return [String]
required :direct_upload_id, String

# @!method initialize(direct_upload_id:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID} for
# more details.
#
# Input for an attachment
#
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
end

class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The ID of an existing attachment object. Use this when updating a resource and
# keeping a subset of the attachments. Don't use this unless you know what you're
# doing.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# Some parameter documentations has been truncated, see
# {WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID} for more
# details.
#
# Input for an attachment
#
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
end

# @!method self.variants
# @return [Array(WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID)]
class Icon < WhopSDK::Internal::Type::BaseModel
# @!attribute id
# The ID of an existing file object.
#
# @return [String]
required :id, String

# @!method initialize(id:)
# The icon for the app
#
# @param id [String] The ID of an existing file object.
end

# These are the scopes an app can request on behalf of a user
Expand Down
16 changes: 16 additions & 0 deletions lib/whop_sdk/models/card_brands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ module CardBrands
JCBRUPAY = :jcbrupay
ELO = :elo
MAESTRO = :maestro
TARJETA_NARANJA = :tarjeta_naranja
CIRRUS = :cirrus
NSPK_MIR = :nspk_mir
VERVE = :verve
EBT = :ebt
PRIVATE_LABEL = :private_label
LOCAL_BRAND = :local_brand
UATP = :uatp
WEXCARD = :wexcard
UZCARD = :uzcard
MEEZA = :meeza
HRG_STORE_CARD = :hrg_store_card
GIROCARD = :girocard
FUEL_CARD = :fuel_card
DANKORT = :dankort
CARNET = :carnet
UNKNOWN = :unknown

# @!method self.values
Expand Down
Loading