diff --git a/.fern/metadata.json b/.fern/metadata.json index 9fde812f..7b6e7f1c 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -13,7 +13,7 @@ "standardwebhooks": ">= 1.0" } }, - "originGitCommit": "a75ed8a2c4e4c890672ac35738d549022c8eb8fc", + "originGitCommit": "5e4b7064e04d687363cf69ed2044c705570ebbb7", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "2.3.0", diff --git a/.fern/replay.lock b/.fern/replay.lock index 0e07be1b..735e805a 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -2268,5 +2268,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-ruby-sdk: 1.28.3 -current_generation: ce70eae742ec5a78830ac853e79ed4d8e5a84a34 + - commit_sha: 9a36badc7fc1bfd15a60b2e399c8908fe2ea1aba + tree_hash: d0289ee734f5b11dc352f3e315ff72423527d8e4 + timestamp: 2026-10-10T04:31:03.338Z + cli_version: unknown + generator_versions: + fernapi/fern-ruby-sdk: 1.28.3 +current_generation: 9a36badc7fc1bfd15a60b2e399c8908fe2ea1aba patches: [] diff --git a/lib/whop_sdk.rb b/lib/whop_sdk.rb index 90c872a9..1a47ebe5 100644 --- a/lib/whop_sdk.rb +++ b/lib/whop_sdk.rb @@ -359,6 +359,18 @@ require_relative "whop_sdk/ad_groups/types/update_ad_groups_request_placements" require_relative "whop_sdk/ad_groups/types/update_ad_groups_request_status" require_relative "whop_sdk/ad_groups/types/duplicate_ad_groups_response" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_api_version" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_data" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload_type" +require_relative "whop_sdk/ad_groups/types/post_ad_group_updated_payload" require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_request_order" require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_request_direction" require_relative "whop_sdk/ad_pixels/types/list_ad_pixels_response_page_info" diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload.rb new file mode 100644 index 00000000..73e8af90 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + class PostAdGroupUpdatedPayload < Internal::Types::Model + field :account_id, -> { String }, optional: true, nullable: false + + field :api_version, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadAPIVersion }, optional: false, nullable: false + + field :api_version_date, -> { String }, optional: false, nullable: true + + field :data, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadData }, optional: false, nullable: false + + field :id, -> { String }, optional: false, nullable: false + + field :previous_attributes, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false + + field :timestamp, -> { String }, optional: false, nullable: false + + field :type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadType }, optional: false, nullable: false + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_api_version.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_api_version.rb new file mode 100644 index 00000000..d769868e --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_api_version.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadAPIVersion + extend Whop_sdk::Internal::Types::Enum + + V1 = "v1" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb new file mode 100644 index 00000000..c8e19e59 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb @@ -0,0 +1,77 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + class PostAdGroupUpdatedPayloadData < Internal::Types::Model + field :ad_campaign, -> { Whop_sdk::Types::AdEntityReference }, optional: false, nullable: false + + field :audiences, -> { Whop_sdk::Types::AdGroupAudiences }, optional: false, nullable: false + + field :bid_type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataBidType }, optional: false, nullable: true + + field :budget_amount, -> { Integer }, optional: false, nullable: true + + field :budget_amount_local, -> { Integer }, optional: false, nullable: true + + field :budget_currency, -> { String }, optional: false, nullable: false + + field :budget_type, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataBudgetType }, optional: false, nullable: true + + field :conversion_event, -> { Whop_sdk::Types::ConversionEvent }, optional: false, nullable: true + + field :conversion_location, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataConversionLocation }, optional: true, nullable: false + + field :created_at, -> { String }, optional: false, nullable: false + + field :delivery_schedule, -> { Whop_sdk::Types::AdGroupDeliverySchedule }, optional: false, nullable: true + + field :delivery_status, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataDeliveryStatus }, optional: false, nullable: false + + field :demographics, -> { Whop_sdk::Types::AdGroupDemographics }, optional: false, nullable: false + + field :desired_cost_per_result, -> { Integer }, optional: false, nullable: true + + field :detailed_targeting, -> { Whop_sdk::Types::AdGroupDetailedTargeting }, optional: false, nullable: false + + field :devices, -> { Whop_sdk::Types::AdGroupDevices }, optional: false, nullable: false + + field :dynamic_creative, -> { Internal::Types::Boolean }, optional: true, nullable: false + + field :ends_at, -> { String }, optional: false, nullable: true + + field :frequency_cap, -> { Whop_sdk::Types::AdGroupFrequencyCap }, optional: false, nullable: true + + field :id, -> { String }, optional: false, nullable: false + + field :issues, -> { Internal::Types::Array[Whop_sdk::Types::AdPlatformIssue] }, optional: false, nullable: false + + field :keywords, -> { Internal::Types::Array[Whop_sdk::Types::AdGroupKeyword] }, optional: true, nullable: false + + field :languages, -> { Internal::Types::Array[String] }, optional: false, nullable: false + + field :learning_progress, -> { Whop_sdk::Types::AdGroupLearningProgress }, optional: false, nullable: true + + field :message_apps, -> { Internal::Types::Array[Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataMessageAppsItem] }, optional: true, nullable: false + + field :minimum_daily_spend, -> { Integer }, optional: true, nullable: false + + field :optimization_goal, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataOptimizationGoal }, optional: false, nullable: true + + field :placements, -> { Internal::Types::Array[Whop_sdk::Types::AdGroupPlacement] }, optional: false, nullable: false + + field :platform, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataPlatform }, optional: false, nullable: false + + field :regions, -> { Whop_sdk::Types::AdGroupRegions }, optional: false, nullable: false + + field :starts_at, -> { String }, optional: false, nullable: true + + field :status, -> { Whop_sdk::AdGroups::Types::PostAdGroupUpdatedPayloadDataStatus }, optional: false, nullable: false + + field :title, -> { String }, optional: false, nullable: true + + field :updated_at, -> { String }, optional: false, nullable: false + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb new file mode 100644 index 00000000..acf40e05 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataBidType + extend Whop_sdk::Internal::Types::Enum + + MINIMUM_COST = "minimum_cost" + AVERAGE_TARGET = "average_target" + MAXIMUM_TARGET = "maximum_target" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb new file mode 100644 index 00000000..0a04c2cf --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataBudgetType + extend Whop_sdk::Internal::Types::Enum + + DAILY = "daily" + LIFETIME = "lifetime" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb new file mode 100644 index 00000000..1ffb9a01 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataConversionLocation + extend Whop_sdk::Internal::Types::Enum + + WEBSITE = "website" + PROFILE = "profile" + INSTAGRAM_AND_FACEBOOK = "instagram_and_facebook" + INSTAGRAM_PROFILE = "instagram_profile" + MESSAGING = "messaging" + ON_AD = "on_ad" + INSTANT_FORMS = "instant_forms" + INSTANT_FORMS_AND_MESSENGER = "instant_forms_and_messenger" + WEBSITE_AND_INSTANT_FORMS = "website_and_instant_forms" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb new file mode 100644 index 00000000..588034ce --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataDeliveryStatus + extend Whop_sdk::Internal::Types::Enum + + IN_APPEAL = "in_appeal" + ALL_ADS_REJECTED = "all_ads_rejected" + REJECTED = "rejected" + DRAFT = "draft" + NO_ADS = "no_ads" + CAMPAIGN_PAUSED = "campaign_paused" + PAUSED = "paused" + PROCESSING = "processing" + ISSUES = "issues" + SCHEDULED = "scheduled" + COMPLETED = "completed" + ADS_OFF = "ads_off" + LEARNING_LIMITED = "learning_limited" + LEARNING = "learning" + ACTIVE = "active" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb new file mode 100644 index 00000000..dedc1013 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataMessageAppsItem + extend Whop_sdk::Internal::Types::Enum + + MESSENGER = "messenger" + INSTAGRAM = "instagram" + WHATSAPP = "whatsapp" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb new file mode 100644 index 00000000..7531dbcc --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataOptimizationGoal + extend Whop_sdk::Internal::Types::Enum + + CONVERSIONS = "conversions" + LINK_CLICKS = "link_clicks" + LANDING_PAGE_VIEWS = "landing_page_views" + REACH = "reach" + IMPRESSIONS = "impressions" + ENGAGEMENT = "engagement" + CONVERSATIONS = "conversations" + VIDEO_VIEWS = "video_views" + TWO_SECOND_VIEWS = "two_second_views" + PAGE_LIKES = "page_likes" + SOCIAL_PROFILE = "social_profile" + AD_RECALL_LIFT = "ad_recall_lift" + EVENT_RESPONSES = "event_responses" + REMINDERS_SET = "reminders_set" + LEAD_GENERATION = "lead_generation" + QUALITY_LEAD = "quality_lead" + VALUE = "value" + PROFILE_AND_PAGE_ENGAGEMENT = "profile_and_page_engagement" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb new file mode 100644 index 00000000..cc811f46 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataPlatform + extend Whop_sdk::Internal::Types::Enum + + META = "meta" + TIKTOK = "tiktok" + GOOGLE = "google" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb new file mode 100644 index 00000000..71d993e2 --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadDataStatus + extend Whop_sdk::Internal::Types::Enum + + ACTIVE = "active" + PAUSED = "paused" + REJECTED = "rejected" + DUPLICATING = "duplicating" + end + end + end +end diff --git a/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb new file mode 100644 index 00000000..e30acf6b --- /dev/null +++ b/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdGroups + module Types + module PostAdGroupUpdatedPayloadType + extend Whop_sdk::Internal::Types::Enum + + AD_GROUP_UPDATED = "ad_group.updated" + end + end + end +end diff --git a/lib/whop_sdk/types/permission_action.rb b/lib/whop_sdk/types/permission_action.rb index 1d6d07dd..1f94007d 100644 --- a/lib/whop_sdk/types/permission_action.rb +++ b/lib/whop_sdk/types/permission_action.rb @@ -237,6 +237,7 @@ module PermissionAction WEBHOOK_RECEIVE_CHAT = "webhook_receive:chat" WEBHOOK_RECEIVE_ENTRIES = "webhook_receive:entries" WEBHOOK_RECEIVE_AD_CAMPAIGNS = "webhook_receive:ad_campaigns" + WEBHOOK_RECEIVE_AD_GROUPS = "webhook_receive:ad_groups" WEBHOOK_RECEIVE_ADS = "webhook_receive:ads" WEBHOOK_RECEIVE_PRODUCTS = "webhook_receive:products" WEBHOOK_RECEIVE_PLANS = "webhook_receive:plans" diff --git a/lib/whop_sdk/types/webhook_event.rb b/lib/whop_sdk/types/webhook_event.rb index 45a0e985..cf3a0019 100644 --- a/lib/whop_sdk/types/webhook_event.rb +++ b/lib/whop_sdk/types/webhook_event.rb @@ -80,6 +80,7 @@ module WebhookEvent AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created" diff --git a/lib/whop_sdk/types/webhook_events_item.rb b/lib/whop_sdk/types/webhook_events_item.rb index df0aa82f..7401267d 100644 --- a/lib/whop_sdk/types/webhook_events_item.rb +++ b/lib/whop_sdk/types/webhook_events_item.rb @@ -80,6 +80,7 @@ module WebhookEventsItem AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created" diff --git a/lib/whop_sdk/types/webhook_list_item_events_item.rb b/lib/whop_sdk/types/webhook_list_item_events_item.rb index e832bf79..444ba5e5 100644 --- a/lib/whop_sdk/types/webhook_list_item_events_item.rb +++ b/lib/whop_sdk/types/webhook_list_item_events_item.rb @@ -80,6 +80,7 @@ module WebhookListItemEventsItem AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created" diff --git a/lib/whop_sdk/types/webhook_testable_events_item.rb b/lib/whop_sdk/types/webhook_testable_events_item.rb index cbb181f4..75d2f7c9 100644 --- a/lib/whop_sdk/types/webhook_testable_events_item.rb +++ b/lib/whop_sdk/types/webhook_testable_events_item.rb @@ -80,6 +80,7 @@ module WebhookTestableEventsItem AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created" diff --git a/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb b/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb index a87a948d..e625cea7 100644 --- a/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +++ b/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb @@ -78,6 +78,7 @@ module CreateWebhooksRequestEventsItem AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created" diff --git a/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb b/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb index 068399e5..24c5964b 100644 --- a/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +++ b/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb @@ -78,6 +78,7 @@ module UpdateWebhooksRequestEventsItem AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed" AD_CAMPAIGN_UPDATED = "ad_campaign.updated" AD_CAMPAIGN_EVENTS = "ad_campaign.events" + AD_GROUP_UPDATED = "ad_group.updated" AD_UPDATED = "ad.updated" CHAT_MESSAGE_CREATED = "chat.message.created" CHAT_REACTION_CREATED = "chat.reaction.created"