Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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.1.0-alpha.8"
".": "0.1.0-alpha.9"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 955
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-8aa2c4935982d3998769d656b2caae13c71151b5f00caaa875357ceb83f6e0a6.yml
openapi_spec_hash: 47d20b6496315d47f4f64441d4682f47
config_hash: 9c2a17b9755f3edac92a3ec4b93ac51c
configured_endpoints: 959
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-3260c0cfb88ce2653c37c4c97e1dd39b965df4f2c14177677bc46d95b104525d.yml
openapi_spec_hash: 93b8671a542b331e067319184c943fdd
config_hash: 0bcc56e67986936da66e382674e17c79
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.1.0-alpha.9 (2026-05-26)

Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/HubSpot/hubspot-sdk-ruby/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)

### Features

* **api:** manual updates ([3d34c49](https://github.com/HubSpot/hubspot-sdk-ruby/commit/3d34c492a5eefe1d09bcdfb45219f977dae37002))
* **api:** manual updates ([93c23e2](https://github.com/HubSpot/hubspot-sdk-ruby/commit/93c23e2002b62e385dd2a5cbe3ce2e2357349abe))
* **api:** manual updates ([80a2464](https://github.com/HubSpot/hubspot-sdk-ruby/commit/80a246495532c57b7165d0a6a5b70b5535e6aaf9))


### Chores

* configure new SDK language ([281974e](https://github.com/HubSpot/hubspot-sdk-ruby/commit/281974e80dd42eb3af684bcfcd56f644bc553ae6))

## 0.1.0-alpha.8 (2026-05-18)

Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/HubSpot/hubspot-sdk-ruby/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
hubspot-sdk (0.1.0.pre.alpha.8)
hubspot-sdk (0.1.0.pre.alpha.9)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "hubspot-sdk", "~> 0.1.0.pre.alpha.8"
gem "hubspot-sdk", "~> 0.1.0.pre.alpha.9"
```

<!-- x-release-please-end -->
Expand Down
90 changes: 63 additions & 27 deletions lib/hubspot_sdk.rb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/hubspot_sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class Client < HubSpotSDK::Internal::Transport::BaseClient
# @return [HubSpotSDK::Resources::Webhooks]
attr_reader :webhooks

# @return [HubSpotSDK::Resources::WebhooksJournal]
attr_reader :webhooks_journal

# @api private
#
# @return [Hash{String=>String}]
Expand Down Expand Up @@ -149,6 +152,7 @@ def initialize(
@scheduler = HubSpotSDK::Resources::Scheduler.new(client: self)
@settings = HubSpotSDK::Resources::Settings.new(client: self)
@webhooks = HubSpotSDK::Resources::Webhooks.new(client: self)
@webhooks_journal = HubSpotSDK::Resources::WebhooksJournal.new(client: self)
end
end
end
16 changes: 9 additions & 7 deletions lib/hubspot_sdk/internal/type/union.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ module Type
# @api private
#
# @example
# # `token_info_response_base_if` is a `HubSpotSDK::Auth::TokenInfoResponseBaseIf`
# case token_info_response_base_if
# when HubSpotSDK::Auth::PublicAccessTokenInfoResponse
# puts(token_info_response_base_if.token)
# when HubSpotSDK::Auth::PublicRefreshTokenInfoResponse
# puts(token_info_response_base_if.active)
# # `subscription_upsert_request` is a `HubSpotSDK::SubscriptionUpsertRequest`
# case subscription_upsert_request
# when HubSpotSDK::ObjectSubscriptionUpsertRequest
# puts(subscription_upsert_request.actions)
# when HubSpotSDK::AssociationSubscriptionUpsertRequest
# puts(subscription_upsert_request.associated_object_type_ids)
# when HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest
# puts(subscription_upsert_request.event_type_id)
# else
# puts(token_info_response_base_if)
# puts(subscription_upsert_request)
# end
module Union
include HubSpotSDK::Internal::Type::Converter
Expand Down
45 changes: 45 additions & 0 deletions lib/hubspot_sdk/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,21 @@ module HubSpotSDK

Account = HubSpotSDK::Models::Account

ActionOverrideRequest = HubSpotSDK::Models::ActionOverrideRequest

ActionResponse = HubSpotSDK::Models::ActionResponse

AppLifecycleEventSubscriptionUpsertRequest =
HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest

AssociationDefinition = HubSpotSDK::Models::AssociationDefinition

AssociationDefinitionEgg = HubSpotSDK::Models::AssociationDefinitionEgg

AssociationSpec = HubSpotSDK::Models::AssociationSpec

AssociationSubscriptionUpsertRequest = HubSpotSDK::Models::AssociationSubscriptionUpsertRequest

Auth = HubSpotSDK::Models::Auth

Automation = HubSpotSDK::Models::Automation
Expand All @@ -67,6 +74,11 @@ module HubSpotSDK

BatchReadInputPropertyName = HubSpotSDK::Models::BatchReadInputPropertyName

BatchResponseJournalFetchResponse = HubSpotSDK::Models::BatchResponseJournalFetchResponse

BatchResponseJournalFetchResponseWithErrors =
HubSpotSDK::Models::BatchResponseJournalFetchResponseWithErrors

BusinessUnits = HubSpotSDK::Models::BusinessUnits

Cms = HubSpotSDK::Models::Cms
Expand All @@ -75,10 +87,20 @@ module HubSpotSDK

CommunicationPreferences = HubSpotSDK::Models::CommunicationPreferences

Condition = HubSpotSDK::Models::Condition

Conversations = HubSpotSDK::Models::Conversations

Crm = HubSpotSDK::Models::Crm

CrmObjectSnapshotBatchRequest = HubSpotSDK::Models::CrmObjectSnapshotBatchRequest

CrmObjectSnapshotBatchResponse = HubSpotSDK::Models::CrmObjectSnapshotBatchResponse

CrmObjectSnapshotRequest = HubSpotSDK::Models::CrmObjectSnapshotRequest

CrmObjectSnapshotResponse = HubSpotSDK::Models::CrmObjectSnapshotResponse

ErrorData = HubSpotSDK::Models::ErrorData

ErrorDetail = HubSpotSDK::Models::ErrorDetail
Expand All @@ -87,14 +109,31 @@ module HubSpotSDK

Files = HubSpotSDK::Models::Files

Filter = HubSpotSDK::Models::Filter

FilterCreateRequest = HubSpotSDK::Models::FilterCreateRequest

FilterCreateResponse = HubSpotSDK::Models::FilterCreateResponse

FilterResponse = HubSpotSDK::Models::FilterResponse

ForwardPaging = HubSpotSDK::Models::ForwardPaging

GdprPrivacyDeletionSubscriptionUpsertRequest =
HubSpotSDK::Models::GdprPrivacyDeletionSubscriptionUpsertRequest

JournalFetchResponse = HubSpotSDK::Models::JournalFetchResponse

ListMembershipSubscriptionUpsertRequest = HubSpotSDK::Models::ListMembershipSubscriptionUpsertRequest

Marketing = HubSpotSDK::Models::Marketing

Meta = HubSpotSDK::Models::Meta

NextPage = HubSpotSDK::Models::NextPage

ObjectSubscriptionUpsertRequest = HubSpotSDK::Models::ObjectSubscriptionUpsertRequest

ObjectTypeDefinition = HubSpotSDK::Models::ObjectTypeDefinition

ObjectTypeDefinitionLabels = HubSpotSDK::Models::ObjectTypeDefinitionLabels
Expand Down Expand Up @@ -131,11 +170,17 @@ module HubSpotSDK

Settings = HubSpotSDK::Models::Settings

SnapshotStatusResponse = HubSpotSDK::Models::SnapshotStatusResponse

StandardError = HubSpotSDK::Models::StandardError

SubscriptionUpsertRequest = HubSpotSDK::Models::SubscriptionUpsertRequest

TaskLocator = HubSpotSDK::Models::TaskLocator

VersionUser = HubSpotSDK::Models::VersionUser

Webhooks = HubSpotSDK::Models::Webhooks

WebhooksJournal = HubSpotSDK::Models::WebhooksJournal
end
49 changes: 49 additions & 0 deletions lib/hubspot_sdk/models/action_override_request.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# frozen_string_literal: true

module HubSpotSDK
module Models
class ActionOverrideRequest < HubSpotSDK::Internal::Type::BaseModel
# @!attribute associated_object_type_ids
# An array of strings, each representing an associated object type ID relevant to
# the action override.
#
# @return [Array<String>, nil]
optional :associated_object_type_ids,
HubSpotSDK::Internal::Type::ArrayOf[String],
api_name: :associatedObjectTypeIds

# @!attribute list_ids
# An array of integers representing list IDs that are associated with the action
# override. The integers are in int64 format.
#
# @return [Array<Integer>, nil]
optional :list_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :listIds

# @!attribute object_ids
# An array of integers, each representing an object ID for which the action
# override is applicable. The integers are in int64 format.
#
# @return [Array<Integer>, nil]
optional :object_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :objectIds

# @!attribute properties
# An array of strings representing the properties to be overridden in the action.
# Each string corresponds to a property name.
#
# @return [Array<String>, nil]
optional :properties, HubSpotSDK::Internal::Type::ArrayOf[String]

# @!method initialize(associated_object_type_ids: nil, list_ids: nil, object_ids: nil, properties: nil)
# Some parameter documentations has been truncated, see
# {HubSpotSDK::Models::ActionOverrideRequest} for more details.
#
# @param associated_object_type_ids [Array<String>] An array of strings, each representing an associated object type ID relevant to
#
# @param list_ids [Array<Integer>] An array of integers representing list IDs that are associated with the action o
#
# @param object_ids [Array<Integer>] An array of integers, each representing an object ID for which the action overri
#
# @param properties [Array<String>] An array of strings representing the properties to be overridden in the action.
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# frozen_string_literal: true

module HubSpotSDK
module Models
class AppLifecycleEventSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel
# @!attribute event_type_id
#
# @return [String]
required :event_type_id, String, api_name: :eventTypeId

# @!attribute properties
#
# @return [Array<String>]
required :properties, HubSpotSDK::Internal::Type::ArrayOf[String]

# @!attribute subscription_type
#
# @return [Symbol, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType]
required :subscription_type,
enum: -> { HubSpotSDK::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType },
api_name: :subscriptionType

# @!method initialize(event_type_id:, properties:, subscription_type:)
# @param event_type_id [String]
# @param properties [Array<String>]
# @param subscription_type [Symbol, HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest::SubscriptionType]

# @see HubSpotSDK::Models::AppLifecycleEventSubscriptionUpsertRequest#subscription_type
module SubscriptionType
extend HubSpotSDK::Internal::Type::Enum

APP_LIFECYCLE_EVENT = :APP_LIFECYCLE_EVENT

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
81 changes: 81 additions & 0 deletions lib/hubspot_sdk/models/association_subscription_upsert_request.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# frozen_string_literal: true

module HubSpotSDK
module Models
class AssociationSubscriptionUpsertRequest < HubSpotSDK::Internal::Type::BaseModel
# @!attribute actions
#
# @return [Array<Symbol, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::Action>]
required :actions,
-> { HubSpotSDK::Internal::Type::ArrayOf[enum: HubSpotSDK::AssociationSubscriptionUpsertRequest::Action] }

# @!attribute associated_object_type_ids
#
# @return [Array<String>]
required :associated_object_type_ids,
HubSpotSDK::Internal::Type::ArrayOf[String],
api_name: :associatedObjectTypeIds

# @!attribute object_ids
#
# @return [Array<Integer>]
required :object_ids, HubSpotSDK::Internal::Type::ArrayOf[Integer], api_name: :objectIds

# @!attribute object_type_id
#
# @return [String]
required :object_type_id, String, api_name: :objectTypeId

# @!attribute portal_id
#
# @return [Integer]
required :portal_id, Integer, api_name: :portalId

# @!attribute subscription_type
#
# @return [Symbol, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::SubscriptionType]
required :subscription_type,
enum: -> { HubSpotSDK::AssociationSubscriptionUpsertRequest::SubscriptionType },
api_name: :subscriptionType

# @!method initialize(actions:, associated_object_type_ids:, object_ids:, object_type_id:, portal_id:, subscription_type:)
# @param actions [Array<Symbol, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::Action>]
# @param associated_object_type_ids [Array<String>]
# @param object_ids [Array<Integer>]
# @param object_type_id [String]
# @param portal_id [Integer]
# @param subscription_type [Symbol, HubSpotSDK::Models::AssociationSubscriptionUpsertRequest::SubscriptionType]

module Action
extend HubSpotSDK::Internal::Type::Enum

CREATE = :CREATE
UPDATE = :UPDATE
DELETE = :DELETE
MERGE = :MERGE
RESTORE = :RESTORE
ASSOCIATION_ADDED = :ASSOCIATION_ADDED
ASSOCIATION_REMOVED = :ASSOCIATION_REMOVED
SNAPSHOT = :SNAPSHOT
APP_INSTALL = :APP_INSTALL
APP_UNINSTALL = :APP_UNINSTALL
ADDED_TO_LIST = :ADDED_TO_LIST
REMOVED_FROM_LIST = :REMOVED_FROM_LIST
GDPR_DELETE = :GDPR_DELETE

# @!method self.values
# @return [Array<Symbol>]
end

# @see HubSpotSDK::Models::AssociationSubscriptionUpsertRequest#subscription_type
module SubscriptionType
extend HubSpotSDK::Internal::Type::Enum

ASSOCIATION = :ASSOCIATION

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end
Loading